@ryuzaki13/react-foundation-ui 1.8.6 → 1.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/chunks/date-input-g6l1iDmf.js.map +1 -1
  2. package/package.json +4 -4
  3. package/storybook-static/assets/{Badge-CV8uR5lW.js → Badge-C4U4sxtF.js} +1 -1
  4. package/storybook-static/assets/{Badge.stories-DqTFDEB6.js → Badge.stories-DHmJTpdf.js} +1 -1
  5. package/storybook-static/assets/{BadgeList-CVWvhSS7.js → BadgeList-BOs5ycWn.js} +1 -1
  6. package/storybook-static/assets/{Button-C5Z6nJ9s.js → Button-BTtYeCS_.js} +1 -1
  7. package/storybook-static/assets/{Button-DtySOeyD.js → Button-Bkb3wQw6.js} +1 -1
  8. package/storybook-static/assets/{Button.stories--Wr67DaY.js → Button.stories-DgFLAdcg.js} +1 -1
  9. package/storybook-static/assets/{CalendarView-ZzqQ8UIe.js → CalendarView-BIFHbOTr.js} +1 -1
  10. package/storybook-static/assets/{CheckBox-BfNP6vO6.js → CheckBox-76M-N56J.js} +1 -1
  11. package/storybook-static/assets/{CheckBox-BBNTe4u8.js → CheckBox-D4u-58g8.js} +1 -1
  12. package/storybook-static/assets/{CheckBox.module-CoYygdZx.js → CheckBox.module-BOAVN-Ny.js} +1 -1
  13. package/storybook-static/assets/{CheckBox.stories-B4Sv2TXp.js → CheckBox.stories-Caw6-hSQ.js} +1 -1
  14. package/storybook-static/assets/{Color-6AOWCN3U-Ce5w8Y2l.js → Color-6AOWCN3U-CPYGaU3y.js} +1 -1
  15. package/storybook-static/assets/{ContextMenu-D-lV53Zc.js → ContextMenu-CUWt-eg1.js} +1 -1
  16. package/storybook-static/assets/{ContextMenu-Boi0R7-s.js → ContextMenu-gfYYiVdR.js} +1 -1
  17. package/storybook-static/assets/{ContextMenu.stories-D_rxDbLk.js → ContextMenu.stories-BuQS57wW.js} +1 -1
  18. package/storybook-static/assets/{CustomOptionButton-VYfjUfhW.js → CustomOptionButton-Be7sd0Lb.js} +1 -1
  19. package/storybook-static/assets/{DateInput-f-RcBdOb.js → DateInput-B4oviF7J.js} +1 -1
  20. package/storybook-static/assets/{DateInput-q2hPsJcH.js → DateInput-BQGUMYsW.js} +1 -1
  21. package/storybook-static/assets/{DateInput.stories-zQzjIsfx.js → DateInput.stories-D6q7J1C4.js} +1 -1
  22. package/storybook-static/assets/{DateRangePresetSelect-DQBOF8f5.js → DateRangePresetSelect-BAxaG0HP.js} +1 -1
  23. package/storybook-static/assets/{DateRangePresetSelect-Ciikik1_.js → DateRangePresetSelect-Cq6pOZPu.js} +1 -1
  24. package/storybook-static/assets/{DateRangePresetSelect.stories-BF8IP5Ep.js → DateRangePresetSelect.stories-d4HFbao6.js} +1 -1
  25. package/storybook-static/assets/{Detail-CEl8URNQ.js → Detail-DlETcWVp.js} +1 -1
  26. package/storybook-static/assets/{Detail.stories-Mr3ypLAA.js → Detail.stories-BEwFXEZH.js} +1 -1
  27. package/storybook-static/assets/{Dialog-Dj2y3EO1.js → Dialog-Bk8aoiOf.js} +1 -1
  28. package/storybook-static/assets/{Dialog-BydPFV17.js → Dialog-D63TJr1M.js} +1 -1
  29. package/storybook-static/assets/{Dialog.stories-C1WlZdyp.js → Dialog.stories-BR7NqeZj.js} +1 -1
  30. package/storybook-static/assets/{Disclosure-DH77E5hY.js → Disclosure-zQK54WKU.js} +1 -1
  31. package/storybook-static/assets/{Disclosure.stories-B9ZVczUX.js → Disclosure.stories-CNLpB5YJ.js} +1 -1
  32. package/storybook-static/assets/{DisclosureGroup-CIoFeosY.js → DisclosureGroup-C_nZSLZw.js} +1 -1
  33. package/storybook-static/assets/{DocsRenderer-JROSPFPF-CbJN3X6f.js → DocsRenderer-JROSPFPF-CoU8mWAw.js} +2 -2
  34. package/storybook-static/assets/{DropZone-CR7xRn_b.js → DropZone-CUz1Q4bA.js} +1 -1
  35. package/storybook-static/assets/{DropZone-DTBV-X-J.js → DropZone-Y5hvED_x.js} +1 -1
  36. package/storybook-static/assets/{DropZone.stories-Cw_og1Cs.js → DropZone.stories-BH4FSM4P.js} +1 -1
  37. package/storybook-static/assets/{DropdownMenu-CVIeHT8N.js → DropdownMenu-Bi6-5Gqf.js} +1 -1
  38. package/storybook-static/assets/{ExpandableActionPanel-D8U6v8X7.js → ExpandableActionPanel-BfWj887r.js} +1 -1
  39. package/storybook-static/assets/{ExpandableActionPanel.stories-D42CZyOc.js → ExpandableActionPanel.stories-CGxcwRMU.js} +1 -1
  40. package/storybook-static/assets/{Flex-Bcsl0U5O.js → Flex-Dm-Qfvzk.js} +1 -1
  41. package/storybook-static/assets/{Flex.stories-C0vSa3mh.js → Flex.stories-B3zMz03s.js} +1 -1
  42. package/storybook-static/assets/{FlexContainer-LmZIdhq2.js → FlexContainer-BWyPlTMB.js} +1 -1
  43. package/storybook-static/assets/{FlexItem-vkDYa5tA.js → FlexItem-pu3E11Sf.js} +1 -1
  44. package/storybook-static/assets/{FloatingPopover-DvU3oc_q.js → FloatingPopover-NMRTnqfo.js} +1 -1
  45. package/storybook-static/assets/FormattedTableCell-BISjHrBJ.js +15 -0
  46. package/storybook-static/assets/{Grid-BCzygAqy.js → Grid-CzO0Ae1r.js} +1 -1
  47. package/storybook-static/assets/{Grid-Wl0Y0YAh.js → Grid-vZyA-712.js} +1 -1
  48. package/storybook-static/assets/{Grid.stories-G6gMmKCP.js → Grid.stories-BQqK0zom.js} +1 -1
  49. package/storybook-static/assets/{GridContainer-qDguE1HS.js → GridContainer-fKYgDsLl.js} +1 -1
  50. package/storybook-static/assets/{ImageCropper.stories-u6rOvDbd.js → ImageCropper.stories-Ca4MZWOW.js} +3 -3
  51. package/storybook-static/assets/{ImageRenderer-BYIRHN5G.js → ImageRenderer-BWIk_76e.js} +1 -1
  52. package/storybook-static/assets/{ImageRenderer.stories-BMEHEIVH.js → ImageRenderer.stories-C1FfOcFD.js} +1 -1
  53. package/storybook-static/assets/{ImageView.stories-DiEA93Yz.js → ImageView.stories-DyuR7kdq.js} +1 -1
  54. package/storybook-static/assets/{ImageViewer.stories-DyxctGxM.js → ImageViewer.stories-PcvOFYqC.js} +2 -2
  55. package/storybook-static/assets/{ImageViewerRuntime--h_3C2s0.js → ImageViewerRuntime-BiI7Xukq.js} +2 -2
  56. package/storybook-static/assets/{Input-CViRQ_rj.js → Input-CsD-x1BQ.js} +1 -1
  57. package/storybook-static/assets/{Input-B2kOwWOU.js → Input-D_4GoCLl.js} +1 -1
  58. package/storybook-static/assets/{Input.stories-D9eo9MWc.js → Input.stories-D-1urO1N.js} +1 -1
  59. package/storybook-static/assets/{InputDateTime-T9_iyG4G.js → InputDateTime-CFQanHxB.js} +1 -1
  60. package/storybook-static/assets/{InputDateTime.stories-DzegljaN.js → InputDateTime.stories-Q4Ao5Tat.js} +1 -1
  61. package/storybook-static/assets/{InputFile-CA3YpXnm.js → InputFile-Bj8PXGY3.js} +1 -1
  62. package/storybook-static/assets/{InputFile-Cvdj6RfC.js → InputFile-DM6fBXUx.js} +1 -1
  63. package/storybook-static/assets/{InputFile.stories-C18UaXPS.js → InputFile.stories-DC27BYoQ.js} +1 -1
  64. package/storybook-static/assets/{InputFiles-nS_qsXY7.js → InputFiles-D59MGS0Z.js} +1 -1
  65. package/storybook-static/assets/{InputFiles-C4OkTG9M.js → InputFiles-teFj6f6X.js} +1 -1
  66. package/storybook-static/assets/{InputFiles.stories-BYd0Pe0R.js → InputFiles.stories-DX5UEvYR.js} +1 -1
  67. package/storybook-static/assets/{InputFilesList-CXPf7Ui_.js → InputFilesList-BD4Y0gN-.js} +1 -1
  68. package/storybook-static/assets/{InputImage-kd50L1Gf.js → InputImage-DmsFGNLJ.js} +1 -1
  69. package/storybook-static/assets/{InputImage-jDVIxP7S.js → InputImage-Du6jGDmY.js} +1 -1
  70. package/storybook-static/assets/{InputImage.stories-D-xmS4Qj.js → InputImage.stories-u0hrr-Da.js} +1 -1
  71. package/storybook-static/assets/{InteractiveComponents-D13nzSK7.js → InteractiveComponents-BLQiSO3p.js} +1 -1
  72. package/storybook-static/assets/{InteractiveComponents.stories-yITzDh-Y.js → InteractiveComponents.stories-BxIVvRz5.js} +1 -1
  73. package/storybook-static/assets/{LayoutPicker-BfYXGIKb.js → LayoutPicker-TecE4x6w.js} +1 -1
  74. package/storybook-static/assets/{LayoutPicker-9FVo0bF3.js → LayoutPicker-xUooYcbS.js} +1 -1
  75. package/storybook-static/assets/{LayoutPicker.stories-B-UnuGFM.js → LayoutPicker.stories-YDMnmhJ4.js} +1 -1
  76. package/storybook-static/assets/{Listbox-9LVlsDzw.js → Listbox-D2k8QfTs.js} +1 -1
  77. package/storybook-static/assets/{Listbox-C53-i-L6.js → Listbox-DplAn6ND.js} +1 -1
  78. package/storybook-static/assets/{Listbox.stories-CCN72ABE.js → Listbox.stories-Bg3_UQD4.js} +1 -1
  79. package/storybook-static/assets/{Modal-CoXpuByh.js → Modal-4OdkCwCv.js} +1 -1
  80. package/storybook-static/assets/{Modal.stories-DAj_oPSt.js → Modal.stories-BwawDSGR.js} +1 -1
  81. package/storybook-static/assets/{ModalManagerProvider-C7pGT0B3.js → ModalManagerProvider-CYR_xbpx.js} +1 -1
  82. package/storybook-static/assets/{MultiSelect-DqeGNK15.js → MultiSelect-CXn1CY9G.js} +1 -1
  83. package/storybook-static/assets/{MultiSelect-DZ2krz-D.js → MultiSelect-iwbCRD9H.js} +1 -1
  84. package/storybook-static/assets/{MultiSelect.stories-BoVHXMbn.js → MultiSelect.stories-BSjAL2ua.js} +1 -1
  85. package/storybook-static/assets/{NoData-N6Pbu0LD.js → NoData-6Scjk2OD.js} +1 -1
  86. package/storybook-static/assets/{NotificationsHost--uPz1G3j.js → NotificationsHost-DK3A-iq7.js} +1 -1
  87. package/storybook-static/assets/{NotificationsHost.stories-B-X-Ljxs.js → NotificationsHost.stories-BRmPf9Q7.js} +1 -1
  88. package/storybook-static/assets/{ODataMultiSelect-7U6nJdqB.js → ODataMultiSelect-CuNGV1QU.js} +1 -1
  89. package/storybook-static/assets/{ODataMultiSelect.stories-B-t6MsOr.js → ODataMultiSelect.stories-CyAonfZC.js} +1 -1
  90. package/storybook-static/assets/{ODataSelect-Dy-fSgE6.js → ODataSelect-vhh4NJS_.js} +1 -1
  91. package/storybook-static/assets/{ODataSelect.stories-DhqHtcmD.js → ODataSelect.stories-aJBFF45H.js} +1 -1
  92. package/storybook-static/assets/{ODataTreeMultiSelect-Ol0nuytU.js → ODataTreeMultiSelect-vPtlTloF.js} +1 -1
  93. package/storybook-static/assets/{ODataTreeMultiSelect.stories-BupVzhbY.js → ODataTreeMultiSelect.stories-DTBAF628.js} +1 -1
  94. package/storybook-static/assets/{ODataTreeSelect-EkpDmDyk.js → ODataTreeSelect-BCVVLB9M.js} +1 -1
  95. package/storybook-static/assets/{ODataTreeSelect.stories-CFdbwyEg.js → ODataTreeSelect.stories-CptC0p6O.js} +1 -1
  96. package/storybook-static/assets/{OneStepScroller-rmyPl9f5.js → OneStepScroller-DerjCiL3.js} +1 -1
  97. package/storybook-static/assets/{Option-72PrSDkj.js → Option-DkAw9S3l.js} +1 -1
  98. package/storybook-static/assets/{OptionButton-Br8QoJL7.js → OptionButton-CGurT23Z.js} +1 -1
  99. package/storybook-static/assets/{PeriodSelect-C5Xk-g4Y.js → PeriodSelect-DOO139ke.js} +1 -1
  100. package/storybook-static/assets/{PeriodSelect-DEZVGWGR.js → PeriodSelect-TrGTMIid.js} +1 -1
  101. package/storybook-static/assets/{PeriodSelect.stories-BVBP97HW.js → PeriodSelect.stories-B3GEgBZ1.js} +1 -1
  102. package/storybook-static/assets/{PickerTriggerActions-DSmRHX1I.js → PickerTriggerActions-CKVPuKEC.js} +1 -1
  103. package/storybook-static/assets/{Popover-BpbeIq6-.js → Popover-BNItmUQ9.js} +1 -1
  104. package/storybook-static/assets/{Popover-1KQwBxEJ.js → Popover-DgXqO0PN.js} +1 -1
  105. package/storybook-static/assets/{Popover.stories-6RDZ0TND.js → Popover.stories-bX5S41pH.js} +1 -1
  106. package/storybook-static/assets/{PresetRangeDateInput-BdkKzY69.js → PresetRangeDateInput-B4FYPy8g.js} +1 -1
  107. package/storybook-static/assets/{PresetRangeDateInput-CDhgmyFs.js → PresetRangeDateInput-GSnnpZzy.js} +1 -1
  108. package/storybook-static/assets/{PresetRangeDateInput.stories-BoE41IUK.js → PresetRangeDateInput.stories-Ca0mIo33.js} +1 -1
  109. package/storybook-static/assets/{PresetSelect-CA5AyOOy.js → PresetSelect-B_KRl4SQ.js} +1 -1
  110. package/storybook-static/assets/README-1RIcD7RV.js +694 -0
  111. package/storybook-static/assets/README-B1XUsXZj.js +334 -0
  112. package/storybook-static/assets/README-BH78sIZ_.js +288 -0
  113. package/storybook-static/assets/README-BgeYwR6t.js +347 -0
  114. package/storybook-static/assets/README-BhsUMTSk.js +860 -0
  115. package/storybook-static/assets/README-Bj88Ecb7.js +876 -0
  116. package/storybook-static/assets/README-C9saKIyr.js +417 -0
  117. package/storybook-static/assets/README-CP1S4LYF.js +1309 -0
  118. package/storybook-static/assets/README-Cc-guFb0.js +1487 -0
  119. package/storybook-static/assets/README-CheO0E1A.js +282 -0
  120. package/storybook-static/assets/README-CiuVVUgE.js +420 -0
  121. package/storybook-static/assets/README-CvRg9lqh.js +273 -0
  122. package/storybook-static/assets/README-DCdV2RQL.js +1093 -0
  123. package/storybook-static/assets/README-DyNQqotW.js +338 -0
  124. package/storybook-static/assets/README-W1rhe8Sk.js +648 -0
  125. package/storybook-static/assets/{RadioButton-IDzSzftl.js → RadioButton-CA9DN5bY.js} +1 -1
  126. package/storybook-static/assets/{RadioButton-DCoo55ld.js → RadioButton-DcXbcFW1.js} +1 -1
  127. package/storybook-static/assets/{RadioButton.stories-BEk1uc2x.js → RadioButton.stories-1_kzxnXY.js} +1 -1
  128. package/storybook-static/assets/{RadioGroup-CbBmuFtC.js → RadioGroup-bEwTHCyS.js} +1 -1
  129. package/storybook-static/assets/{RadioGroup-VSiqFUI1.js → RadioGroup-mfYgdfXM.js} +1 -1
  130. package/storybook-static/assets/{RadioGroup.stories-DR7Vskyy.js → RadioGroup.stories-CecdqPms.js} +1 -1
  131. package/storybook-static/assets/{Scrollable-CDZ18AWy.js → Scrollable-1fdTDJHK.js} +1 -1
  132. package/storybook-static/assets/{Select-IWQpo0LQ.js → Select-CvQZGS1G.js} +1 -1
  133. package/storybook-static/assets/{Select-YjugVUKX.js → Select-Df5Md2Cm.js} +1 -1
  134. package/storybook-static/assets/{Select.stories-4JpnXfaB.js → Select.stories-M4M80KTq.js} +1 -1
  135. package/storybook-static/assets/{SerializableSelect-oxnbV26a.js → SerializableSelect-CnsGo9Ep.js} +1 -1
  136. package/storybook-static/assets/{SerializableSelect.stories-CjVcuU4t.js → SerializableSelect.stories-BJ6MlNDx.js} +1 -1
  137. package/storybook-static/assets/{SingleDateTimeInput-DFPke7bv.js → SingleDateTimeInput-BCV0gfB9.js} +1 -1
  138. package/storybook-static/assets/{SingleDateTimeInput-CQ1_ABKA.js → SingleDateTimeInput-DJH7zSIz.js} +1 -1
  139. package/storybook-static/assets/{SingleDateTimeInput.stories--Nky_yBh.js → SingleDateTimeInput.stories-DgEwAFe8.js} +1 -1
  140. package/storybook-static/assets/{Slider-DGVl0dbV.js → Slider-D504FPH3.js} +1 -1
  141. package/storybook-static/assets/{Slider-L7pqW7xG.js → Slider-cLRAHPLi.js} +1 -1
  142. package/storybook-static/assets/{Slider.stories-DkqUavTk.js → Slider.stories-EI314Iff.js} +1 -1
  143. package/storybook-static/assets/{SliderInput-B7U8M2UN.js → SliderInput-Bt0H8rgN.js} +1 -1
  144. package/storybook-static/assets/{SliderInput-Dn5-Dt4w.js → SliderInput-E5p3n3VY.js} +1 -1
  145. package/storybook-static/assets/{SliderInput.stories-B9WBQOiA.js → SliderInput.stories-CDYPq7fP.js} +1 -1
  146. package/storybook-static/assets/{Sortable-DxdXjG1a.js → Sortable-Bzd7JK4E.js} +1 -1
  147. package/storybook-static/assets/{Sortable.stories-D1rp2l9M.js → Sortable.stories-DNGbmn2a.js} +1 -1
  148. package/storybook-static/assets/{Splitter-yZpkev96.js → Splitter-DSf48AOW.js} +1 -1
  149. package/storybook-static/assets/{Splitter.stories-C3TCKNhu.js → Splitter.stories-DUKsOqNN.js} +1 -1
  150. package/storybook-static/assets/{StateSelect-DZjPblfU.js → StateSelect-BxuKIsLa.js} +1 -1
  151. package/storybook-static/assets/{StateSelect-CaAFL9Jr.js → StateSelect-HKOT6kq9.js} +1 -1
  152. package/storybook-static/assets/{StateSelect.stories-D7EwT0sO.js → StateSelect.stories-CbLvq7ou.js} +1 -1
  153. package/storybook-static/assets/{StringToggle.stories-DuaWy2LK.js → StringToggle.stories-DOKL-aWy.js} +1 -1
  154. package/storybook-static/assets/{Switch-C0GQ2oXw.js → Switch-CLAfhk73.js} +1 -1
  155. package/storybook-static/assets/{Switch-DCNQT47U.js → Switch-CVTjSEq1.js} +1 -1
  156. package/storybook-static/assets/{Switch.stories-CAIEfQb6.js → Switch.stories-CL5Xe_HQ.js} +1 -1
  157. package/storybook-static/assets/{Table-Be1uta4G.js → Table-DKc19RME.js} +1 -1
  158. package/storybook-static/assets/Table.stories-CJ9DR1S-.js +207 -0
  159. package/storybook-static/assets/{Tabs-Co7Z92UK.js → Tabs-De_4F0H3.js} +1 -1
  160. package/storybook-static/assets/{Tabs.stories-D84U8aJM.js → Tabs.stories-DPAvvkh9.js} +2 -2
  161. package/storybook-static/assets/{TabsBox-CUpOXGdh.js → TabsBox-Cy5CICcb.js} +1 -1
  162. package/storybook-static/assets/{TagInput-BbLK6uxZ.js → TagInput-7n98ftvD.js} +1 -1
  163. package/storybook-static/assets/{TagInput.stories-D34JCfyM.js → TagInput.stories-B6JAb3XA.js} +1 -1
  164. package/storybook-static/assets/{Text-DtJw3wMU.js → Text-CjSG8mvD.js} +1 -1
  165. package/storybook-static/assets/{Textarea-Cz6RWJdh.js → Textarea-CQqwaJ0Q.js} +1 -1
  166. package/storybook-static/assets/{Textarea-C9MWeqLC.js → Textarea-Dea29_yQ.js} +1 -1
  167. package/storybook-static/assets/{Textarea.stories-DqK16XGS.js → Textarea.stories-BZf3Cu4S.js} +1 -1
  168. package/storybook-static/assets/{TimePanel-DcZ-UUgO.js → TimePanel-CPZ4jOw2.js} +1 -1
  169. package/storybook-static/assets/{TimePanel.stories-BafOmX3I.js → TimePanel.stories-y5Lp9sMG.js} +1 -1
  170. package/storybook-static/assets/{Toggle-CgU6o7qM.js → Toggle-CJHzo9mB.js} +1 -1
  171. package/storybook-static/assets/{Toggle-oYTkCbEJ.js → Toggle-s7SzQ11W.js} +1 -1
  172. package/storybook-static/assets/{Toggle.stories-CbmOBWIu.js → Toggle.stories-Dk3C5Le5.js} +1 -1
  173. package/storybook-static/assets/{TreeMultiSelect-B4WfXc4Z.js → TreeMultiSelect-CxXF7pQE.js} +1 -1
  174. package/storybook-static/assets/{TreeMultiSelect-DN_CYg-F.js → TreeMultiSelect-DfeggvLr.js} +1 -1
  175. package/storybook-static/assets/{TreeMultiSelect.stories-DYVj6Rm6.js → TreeMultiSelect.stories-DKiHT_6L.js} +1 -1
  176. package/storybook-static/assets/{TreePickerBase-8gA_hIXn.js → TreePickerBase-DKJJDVC_.js} +1 -1
  177. package/storybook-static/assets/{TreeSelect-CTtmHF-B.js → TreeSelect-2E1KhJMi.js} +1 -1
  178. package/storybook-static/assets/{TreeSelect-2bjYl5ox.js → TreeSelect-h23orAoA.js} +1 -1
  179. package/storybook-static/assets/{TreeSelect.stories-BEAY61pJ.js → TreeSelect.stories-DO06yaS0.js} +1 -1
  180. package/storybook-static/assets/{TreeTable-B4BaHybr.js → TreeTable-ByV2_E0S.js} +1 -1
  181. package/storybook-static/assets/{TreeTable.stories-lLwH2Gzl.js → TreeTable.stories-D4gbQx59.js} +2 -2
  182. package/storybook-static/assets/{WithTooltip-7X4HQR7L-Cakt_JaX.js → WithTooltip-7X4HQR7L-DQ4Qthn2.js} +1 -1
  183. package/storybook-static/assets/{array-D-_yMMUK-CIRmlF93.js → array-D-_yMMUK-BQ0uu1hZ.js} +1 -1
  184. package/storybook-static/assets/{async-DFALSYBD.js → async-BI7SlYp0.js} +1 -1
  185. package/storybook-static/assets/axe-_9eNhXQJ.js +20 -0
  186. package/storybook-static/assets/{blocks-Dr191OF5.js → blocks-B8F5vBhs.js} +6 -6
  187. package/storybook-static/assets/check-mlY_aVEI.js +1 -0
  188. package/storybook-static/assets/chevron-down-C7c-TcEc.js +1 -0
  189. package/storybook-static/assets/chevron-left-2LrGBhDY.js +1 -0
  190. package/storybook-static/assets/chevron-right-D6NN1_UQ.js +1 -0
  191. package/storybook-static/assets/{chunk-242VQQM5-BMWWiybC.js → chunk-242VQQM5-bHL6qIJq.js} +1 -1
  192. package/storybook-static/assets/{chunk-DRQKCCAG-CqE-Zrl9.js → chunk-DRQKCCAG-DvsmU7ha.js} +1 -1
  193. package/storybook-static/assets/{chunk-IMSF75WX-yvVUwIQZ.js → chunk-IMSF75WX-CGYlPTyG.js} +1 -1
  194. package/storybook-static/assets/{chunk-KJHJLCBK-D-yQfkOi.js → chunk-KJHJLCBK-yRlRMfNs.js} +1 -1
  195. package/storybook-static/assets/{chunk-QQBDHPVZ-B98qboss.js → chunk-QQBDHPVZ-DC5n6Pix.js} +1 -1
  196. package/storybook-static/assets/{chunk-W22LQPXL-BR_vFDlt.js → chunk-W22LQPXL-5sD3hVeE.js} +1 -1
  197. package/storybook-static/assets/{circle-alert-Is-jAV5H.js → circle-alert-H_7GSXFp.js} +1 -1
  198. package/storybook-static/assets/circle-check-B0voRIBT.js +1 -0
  199. package/storybook-static/assets/{components-DqFIc_sf.js → components-Bw-2TeQP.js} +12 -12
  200. package/storybook-static/assets/{contextMenu-CWKJO78E.js → contextMenu-B8JusItT.js} +1 -1
  201. package/storybook-static/assets/{createControlledStoryRender-DHsyXc1B.js → createControlledStoryRender-BouhvX-R.js} +1 -1
  202. package/storybook-static/assets/{date-segments-D3HouZ37.js → date-segments-DeoMkKv9.js} +1 -1
  203. package/storybook-static/assets/{defaultRenderers-V5HI39JH.js → defaultRenderers-BHXboKuy.js} +1 -1
  204. package/storybook-static/assets/{dom-B3G_GtJw.js → dom-DBd_DWF8.js} +1 -1
  205. package/storybook-static/assets/{download-B61X2hm8.js → download-CSY7aIz0.js} +1 -1
  206. package/storybook-static/assets/{error-BZrNlEUO.js → error-De9R4E_F.js} +1 -1
  207. package/storybook-static/assets/{file-vPGnhPr-.js → file-CwRoWxeB.js} +1 -1
  208. package/storybook-static/assets/floating-ui.react-D7RwPYeO.js +1 -0
  209. package/storybook-static/assets/formatter-L2YTDE3Q-CRGuSxAF.js +1 -0
  210. package/storybook-static/assets/{formatters-CBgrBeSA-DY6OIAc8.js → formatters-CBgrBeSA-CqB1pZxS.js} +1 -1
  211. package/storybook-static/assets/{foundationLib-10USAmEi.js → foundationLib-BoYGVeXe.js} +1 -1
  212. package/storybook-static/assets/{hooks-C8GJ9Cvf.js → hooks-DQXvhAPr.js} +2 -2
  213. package/storybook-static/assets/iframe-B8PAuhnL.js +1 -0
  214. package/storybook-static/assets/{iframe-Bu7ux79g.js → iframe-CViB2sFm.js} +23 -23
  215. package/storybook-static/assets/{info-CnuHFdaB.js → info-MrQcS8jn.js} +1 -1
  216. package/storybook-static/assets/{matchers-JIUQ3HVY-DvR2XErZ.js → matchers-JIUQ3HVY-C789_MAK.js} +1 -1
  217. package/storybook-static/assets/{media-BycWpjAl.js → media-D9cE2tzi.js} +1 -1
  218. package/storybook-static/assets/odata-CBGaUmRT.js +1 -0
  219. package/storybook-static/assets/{odata-service-B6TxBSLm-BW9QLSrS.js → odata-service-B6TxBSLm-Bq8Ya67E.js} +1 -1
  220. package/storybook-static/assets/{odataFetchFn-CAzdQ6ar.js → odataFetchFn-CPO8XIYX.js} +1 -1
  221. package/storybook-static/assets/{odataStoryFixtures-CX6euJaD.js → odataStoryFixtures--SWu2yC_.js} +2 -2
  222. package/storybook-static/assets/{persisted-BKBboERB.js → persisted-B2dfNRCz.js} +1 -1
  223. package/storybook-static/assets/{preload-helper-BHmFeTtP.js → preload-helper-wdlQj8DP.js} +1 -1
  224. package/storybook-static/assets/react-18-D4o7zN8K.js +9 -0
  225. package/storybook-static/assets/{react-C21x__mS.js → react-BZJXY1be.js} +1 -1
  226. package/storybook-static/assets/{react-qN2cStNd.js → react-Bl2r1tuC.js} +1 -1
  227. package/storybook-static/assets/{react-CvkUhHUq.js → react-GkniIHEK.js} +1 -1
  228. package/storybook-static/assets/{react-dom-2o2phaJG.js → react-dom-BzEl8usk.js} +1 -1
  229. package/storybook-static/assets/react-iQQwtFPL.js +9 -0
  230. package/storybook-static/assets/{refresh-cw-ByNiehPJ.js → refresh-cw-_wTFfhR2.js} +1 -1
  231. package/storybook-static/assets/{rolldown-runtime-C0FnF6B9.js → rolldown-runtime-DkW27tQK.js} +1 -1
  232. package/storybook-static/assets/{settings-2-BGG8WBgX.js → settings-2-BqduNJjJ.js} +1 -1
  233. package/storybook-static/assets/{shim-BUMlC1GG.js → shim-DlYORV19.js} +1 -1
  234. package/storybook-static/assets/{sortable-6C6S-hq-.js → sortable-D-m6SEp7.js} +1 -1
  235. package/storybook-static/assets/syntaxhighlighter-QEQV7K2Y-CEo9I1qZ.js +6 -0
  236. package/storybook-static/assets/{theming-mTWhffkp.js → theming-Cvtrnj7n.js} +1 -1
  237. package/storybook-static/assets/{trash-2-EYPGQg68.js → trash-2-65ZF92zp.js} +1 -1
  238. package/storybook-static/assets/{treeStoryFixtures-Ci7STpiz.js → treeStoryFixtures-DXHh9GL3.js} +1 -1
  239. package/storybook-static/assets/{triangle-alert-qcSLqRkW.js → triangle-alert-k_CRNi0k.js} +1 -1
  240. package/storybook-static/assets/{ui.module-D4CuGr8r.js → ui.module-Cat84Nza.js} +1 -1
  241. package/storybook-static/assets/{uiClasses-CVGbL980.js → uiClasses-B9c6dZuu.js} +1 -1
  242. package/storybook-static/assets/{useFlexClasses-Gn9spXEB.js → useFlexClasses-SgVG37Bb.js} +1 -1
  243. package/storybook-static/assets/{useODataSelectBase-LQU24QnI.js → useODataSelectBase-Ck_hduYv.js} +1 -1
  244. package/storybook-static/assets/{useODataTreeData-0I485gNf.js → useODataTreeData-DTrxPY_k.js} +1 -1
  245. package/storybook-static/assets/usePickerDefaultFilter-5Q1pAV4d.js +1 -0
  246. package/storybook-static/assets/{usePickerQuery-B0a5nSeM.js → usePickerQuery-DdeWtJWc.js} +1 -1
  247. package/storybook-static/assets/{usePickerTriggerController-DMRm063p.js → usePickerTriggerController-D8hxWmGo.js} +1 -1
  248. package/storybook-static/assets/{utils-DUM89eIj.js → utils-tg3ibbzi.js} +1 -1
  249. package/storybook-static/assets/x-C5XG0bD4.js +1 -0
  250. package/storybook-static/iframe.html +7 -7
  251. package/storybook-static/index.json +1 -1
  252. package/storybook-static/project.json +1 -1
  253. package/storybook-static/sb-addons/chromatic-com-storybook-1/manager-bundle.js +35 -33
  254. package/storybook-static/sb-manager/globals-runtime.js +7 -7
  255. package/storybook-static/sb-manager/globals.js +1 -1
  256. package/storybook-static/sb-manager/runtime.js +88 -89
  257. package/storybook-static/vite-inject-mocker-entry.js +2 -2
  258. package/storybook-static/assets/FormattedTableCell-CGREP0wz.js +0 -15
  259. package/storybook-static/assets/Table.stories-ByUJbaZl.js +0 -207
  260. package/storybook-static/assets/axe-Bq-2xuso.js +0 -20
  261. package/storybook-static/assets/browserAndReact-BDUP5jYY.js +0 -70
  262. package/storybook-static/assets/check-D56EYchd.js +0 -1
  263. package/storybook-static/assets/chevron-down-CzEzTRkp.js +0 -1
  264. package/storybook-static/assets/chevron-left-Dl69q13G.js +0 -1
  265. package/storybook-static/assets/chevron-right-CJNjsAmt.js +0 -1
  266. package/storybook-static/assets/circle-check-6tyIZ3Kl.js +0 -1
  267. package/storybook-static/assets/filesAndExcel-Bs3kqlsI.js +0 -92
  268. package/storybook-static/assets/floating-ui.react-bhmHzD7p.js +0 -1
  269. package/storybook-static/assets/formatter-L2YTDE3Q-x0raBH34.js +0 -1
  270. package/storybook-static/assets/formatters-NGPd1d-h.js +0 -202
  271. package/storybook-static/assets/formatters-runtime-CCfGWt-f.js +0 -329
  272. package/storybook-static/assets/iframe-BEvUkaBB.js +0 -1
  273. package/storybook-static/assets/odata-BslPtJet.js +0 -1
  274. package/storybook-static/assets/odataAndTables-Cyl3UJOz.js +0 -77
  275. package/storybook-static/assets/pureUtilities-Bj6GraNW.js +0 -30
  276. package/storybook-static/assets/react-18-CgkwBzTo.js +0 -9
  277. package/storybook-static/assets/react-CjYyitxm.js +0 -9
  278. package/storybook-static/assets/runtimeAndState-mq-BaPyx.js +0 -93
  279. package/storybook-static/assets/syntaxhighlighter-T5IQBZDB-B5rzfkHU.js +0 -6
  280. package/storybook-static/assets/usePickerDefaultFilter-Be420WNF.js +0 -1
  281. package/storybook-static/assets/x-FZLq51ZK.js +0 -1
@@ -1,10 +1,10 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theming-mTWhffkp.js","./rolldown-runtime-C0FnF6B9.js","./react-C21x__mS.js","./chunk-IMSF75WX-yvVUwIQZ.js","./chunk-DRQKCCAG-CqE-Zrl9.js","./syntaxhighlighter-T5IQBZDB-B5rzfkHU.js","./chunk-W22LQPXL-BR_vFDlt.js","./iframe-Bu7ux79g.js","./preload-helper-BHmFeTtP.js","./chunk-KJHJLCBK-D-yQfkOi.js","./iframe-BIt4o49Q.css","./react-dom-2o2phaJG.js","./chunk-242VQQM5-BMWWiybC.js","./formatter-L2YTDE3Q-x0raBH34.js","./WithTooltip-7X4HQR7L-Cakt_JaX.js"])))=>i.map(i=>d[i]);
2
- import{n as e,o as t,r as n,t as r}from"./rolldown-runtime-C0FnF6B9.js";import{n as i,t as a}from"./preload-helper-BHmFeTtP.js";import{t as o}from"./react-C21x__mS.js";import{a as s,c,d as l,g as u,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x}from"./chunk-KJHJLCBK-D-yQfkOi.js";import{a as S,i as C,n as w,o as T,t as E}from"./chunk-IMSF75WX-yvVUwIQZ.js";import{n as D}from"./iframe-Bu7ux79g.js";import{a as O,n as k,o as ee,r as A}from"./chunk-W22LQPXL-BR_vFDlt.js";import{C as j,S as te,a as ne,b as re,f as ie,g as ae,h as oe,i as se,m as ce,o as le,p as ue,s as de,u as M,v as fe,w as pe,x as me,y as he}from"./theming-mTWhffkp.js";import{n as ge,t as _e}from"./chunk-DRQKCCAG-CqE-Zrl9.js";import{t as ve}from"./react-dom-2o2phaJG.js";import{t as ye}from"./chunk-242VQQM5-BMWWiybC.js";import"./blocks-Dr191OF5.js";import{t as be}from"./shim-BUMlC1GG.js";function xe(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var N,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge;function Ke(){return(Ke=e((()=>{N=t(o(),1),Se=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z`,fill:e}))),Ce=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z`,fill:e}))),we=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z`,fill:e}))),Te=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z`,fill:e}))),Ee=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z`,fill:e}))),De=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z`,fill:e}))),Oe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z`,fill:e}))),ke=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z`,fill:e}))),Ae=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z`,fill:e}))),je=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Me=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z`,fill:e}))),Ne=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Pe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}))),Fe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z`,fill:e}),N.createElement(`path`,{d:`M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z`,fill:e}))),Ie=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z`,fill:e}),N.createElement(`path`,{d:`M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z`,fill:e}))),Le=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z`,fill:e}))),Re=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z`,fill:e}))),ze=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z`,fill:e}))),Be=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z`,fill:e}))),Ve=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z`,fill:e}))),He=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z`,fill:e}))),Ue=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z`,fill:e}))),We=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z`,fill:e}))),Ge=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z`,fill:e})))})))()}function qe({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function Je(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set(`ref`,`error`),t.toString()}catch{return e}}var Ye;function Xe(){return(Xe=e((()=>{Ye=class e extends Error{constructor(t){super(e.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return qe({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${qe({code:t,category:n})}?ref=error`:typeof e==`string`?i=Je(e):Array.isArray(e)&&(i=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theming-Cvtrnj7n.js","./rolldown-runtime-DkW27tQK.js","./react-BZJXY1be.js","./chunk-IMSF75WX-CGYlPTyG.js","./chunk-DRQKCCAG-DvsmU7ha.js","./syntaxhighlighter-QEQV7K2Y-CEo9I1qZ.js","./chunk-W22LQPXL-5sD3hVeE.js","./iframe-CViB2sFm.js","./preload-helper-wdlQj8DP.js","./chunk-KJHJLCBK-yRlRMfNs.js","./iframe-BIt4o49Q.css","./react-dom-BzEl8usk.js","./chunk-242VQQM5-bHL6qIJq.js","./formatter-L2YTDE3Q-CRGuSxAF.js","./WithTooltip-7X4HQR7L-DQ4Qthn2.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,n as t,r as n,t as r}from"./rolldown-runtime-DkW27tQK.js";import{n as i,t as a}from"./preload-helper-wdlQj8DP.js";import{t as o}from"./react-BZJXY1be.js";import{a as s,c,d as l,g as u,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x}from"./chunk-KJHJLCBK-yRlRMfNs.js";import{a as S,i as C,n as w,o as T,t as E}from"./chunk-IMSF75WX-CGYlPTyG.js";import{n as D}from"./iframe-CViB2sFm.js";import{a as O,n as k,o as ee,r as A}from"./chunk-W22LQPXL-5sD3hVeE.js";import{C as j,S as te,a as ne,b as re,f as ie,g as ae,h as oe,i as se,m as ce,o as le,p as ue,s as de,u as M,v as fe,w as pe,x as me,y as he}from"./theming-Cvtrnj7n.js";import{n as ge,t as _e}from"./chunk-DRQKCCAG-DvsmU7ha.js";import{t as ve}from"./react-dom-BzEl8usk.js";import{t as ye}from"./chunk-242VQQM5-bHL6qIJq.js";import"./blocks-B8F5vBhs.js";import{t as be}from"./shim-DlYORV19.js";function xe(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var N,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge;function Ke(){return(Ke=t((()=>{N=e(o(),1),Se=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z`,fill:e}))),Ce=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z`,fill:e}))),we=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z`,fill:e}))),Te=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z`,fill:e}))),Ee=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z`,fill:e}))),De=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z`,fill:e}))),Oe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z`,fill:e}))),ke=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z`,fill:e}))),Ae=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z`,fill:e}))),je=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Me=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z`,fill:e}))),Ne=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}),N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`,fill:e}))),Pe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z`,fill:e}))),Fe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z`,fill:e}),N.createElement(`path`,{d:`M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z`,fill:e}))),Ie=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z`,fill:e}),N.createElement(`path`,{d:`M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z`,fill:e}))),Le=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z`,fill:e}))),Re=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z`,fill:e}))),ze=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z`,fill:e}))),Be=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z`,fill:e}))),Ve=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z`,fill:e}))),He=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z`,fill:e}))),Ue=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z`,fill:e}))),We=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z`,fill:e}))),Ge=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z`,fill:e})))})))()}function qe({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function Je(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set(`ref`,`error`),t.toString()}catch{return e}}var Ye;function Xe(){return(Xe=t((()=>{Ye=class e extends Error{constructor(t){super(e.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return qe({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${qe({code:t,category:n})}?ref=error`:typeof e==`string`?i=Je(e):Array.isArray(e)&&(i=`
3
3
  ${e.map(e=>` - ${Je(e)}`).join(`
4
4
  `)}`),`${r}${i==null?``:`
5
5
 
6
6
  More info: ${i}
7
- `}`}}})))()}var Ze;function Qe(){return(Qe=e((()=>{Xe(),Ze=class extends Ye{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`PREVIEW_API`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}}})))()}var $e;function et(){return(et=e((()=>{S(),$e=E({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r}})})))()}var tt;function nt(){return(nt=e((()=>{Xe(),et(),S(),C($e(),1),tt=class extends Ye{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`CORE-SERVER`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}}})))()}var rt,it;function at(){return(at=e((()=>{Xe(),rt=class extends Ye{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`MANAGER_API`,code:1,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},it=class extends Ye{constructor(e){super({name:`UniversalStoreFollowerTimeoutError`,category:`MANAGER_UNIVERSAL-STORE`,code:1,message:`Timed out waiting for leader state for UniversalStore follower with id: '${e}'. Ensure a leader with the same id exists and is reachable before creating a follower.`})}}})))()}function ot(e){let t={};for(let n of Object.values(e))for(let e of Object.values(n))t[e.value]=(t[e.value]??0)+1;return t}function st({universalStatusStore:e,useUniversalStore:t,environment:n}){let r={getAll(){return e.getState()},set(t){e.setState(e=>{let n={...e};for(let e of t){let{storyId:t,typeId:r}=e;n[t]={...n[t]??{},[r]:e}}return n})},onAllStatusChange(t){return e.onStateChange((e,n)=>{t(e,n)})},onSelect(t){return e.subscribe(pt.SELECT,e=>{t(e.payload)})},selectStatuses:t=>{e.send({type:pt.SELECT,payload:t})},unset(t){if(!t){e.setState({});return}e.setState(e=>{let n={...e};for(let e of t)delete n[e];return n})},typeId:void 0},i=t=>({getAll:r.getAll,set(r){e.setState(e=>{let i={...e};for(let e of r){let{storyId:r}=e;if(e.typeId!==t)switch(n){case`server`:throw new tt({status:e,typeId:t});case`manager`:throw new rt({status:e,typeId:t});default:throw new Ze({status:e,typeId:t})}i[r]={...i[r]??{},[t]:e}}return i})},onAllStatusChange:r.onAllStatusChange,onSelect(n){return e.subscribe(pt.SELECT,e=>{e.payload.some(e=>e.typeId===t)&&n(e.payload)})},unset(n){e.setState(e=>{let r={...e};for(let e in r)if(r[e]?.[t]&&(!n||n?.includes(e))){let{[t]:n,...i}=r[e];r[e]=i}return r})},typeId:t});return t?{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e,useStatusStore:n=>t(e,n)[0]}:{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e}}var ct,lt,ut,dt,ft,pt;function mt(){return(mt=e((()=>{Qe(),nt(),at(),ct=`status-value:`,lt=[`status-value:pending`,`status-value:success`,`status-value:new`,`status-value:modified`,`status-value:affected`,`status-value:reviewing`,`status-value:warning`,`status-value:error`,`status-value:unknown`],ut=e=>{if(e===`related`)return`status-value:affected`;let t=`${ct}${e}`;return lt.includes(t)?t:void 0},dt=e=>e===`status-value:affected`?`related`:e.slice(ct.length),ft={id:`storybook/status`,leader:!0,initialState:{}},pt={SELECT:`select`}})))()}var ht,gt,_t,vt;function yt(){return(yt=e((()=>{ht=`collection`,gt=e=>e===`/review/`||e===`/review`,_t=(e,t)=>!!e&&e.startsWith(`/story/`)&&t?.[ht]!==void 0,vt=(e,t)=>!!e&&(gt(e)||e.startsWith(`/review/`)||_t(e,t))})))()}function bt(e){let t=Dn.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of On.filter(t=>e[t]!==void 0))t[n]=e[n];return t}function xt(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function St(e){var t=Cr.call(e,Tr),n=e[Tr];try{e[Tr]=void 0;var r=!0}catch{}var i=wr.call(e);return r&&(t?e[Tr]=n:delete e[Tr]),i}function Ct(e){return Dr.call(e)}function wt(e){return e==null?e===void 0?Ar:kr:jr&&jr in Object(e)?Er(e):Or(e)}function Tt(e){return typeof e==`object`&&!!e}function Et(e){return typeof e==`symbol`||Nr(e)&&Mr(e)==Pr}function Dt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e){if(typeof e==`string`)return e;if(Lr(e))return Ir(e,Ot)+``;if(Fr(e))return Br?Br.call(e):``;var t=e+``;return t==`0`&&1/e==-Rr?`-0`:t}function kt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function At(e){if(!Hr(e))return!1;var t=Mr(e);return t==Wr||t==Gr||t==Ur||t==Kr}function jt(e){return!!Yr&&Yr in e}function Mt(e){if(e!=null){try{return Zr.call(e)}catch{}try{return e+``}catch{}}return``}function Nt(e){return!Hr(e)||Xr(e)?!1:(qr(e)?ai:ei).test(Qr(e))}function Pt(e,t){return e?.[t]}function Ft(e,t){var n=si(e,t);return oi(n)?n:void 0}function It(e,t){return e===t||e!==e&&t!==t}function Lt(e,t){if(Lr(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Fr(e)?!0:di.test(e)||!ui.test(e)||t!=null&&e in Object(t)}function Rt(){this.__data__=pi?pi(null):{},this.size=0}function zt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Bt(e){var t=this.__data__;if(pi){var n=t[e];return n===gi?void 0:n}return _i.call(t,e)?t[e]:void 0}function Vt(e){var t=this.__data__;return pi?t[e]!==void 0:yi.call(t,e)}function Ht(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=pi&&t===void 0?xi:t,this}function Ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wt(){this.__data__=[],this.size=0}function Gt(e,t){for(var n=e.length;n--;)if(li(e[n][0],t))return n;return-1}function Kt(e){var t=this.__data__,n=Ti(t,e);return n<0?!1:(n==t.length-1?t.pop():Ei.call(t,n,1),--this.size,!0)}function qt(e){var t=this.__data__,n=Ti(t,e);return n<0?void 0:t[n][1]}function Jt(e){return Ti(this.__data__,e)>-1}function Yt(e,t){var n=this.__data__,r=Ti(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zt(){this.size=0,this.__data__={hash:new Ci,map:new(Mi||ji),string:new Ci}}function Qt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $t(e,t){var n=e.__data__;return Pi(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function en(e){var t=Fi(this,e).delete(e);return this.size-=+!!t,t}function tn(e){return Fi(this,e).get(e)}function nn(e){return Fi(this,e).has(e)}function rn(e,t){var n=Fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function an(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function on(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Vi);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(on.Cache||Bi),n}function sn(e){var t=Hi(e,function(e){return n.size===Ui&&n.clear(),e}),n=t.cache;return t}function cn(e){return e==null?``:Vr(e)}function ln(e,t){return Lr(e)?e:fi(e,t)?[e]:qi(Ji(e))}function un(e){if(typeof e==`string`||Fr(e))return e;var t=e+``;return t==`0`&&1/e==-Xi?`-0`:t}function dn(e,t){t=Yi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Zi(t[n++])];return n&&n==r?e:void 0}function fn(e,t,n){var r=e==null?void 0:Qi(e,t);return r===void 0?n:r}function pn(e){if(!ea(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=bt(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,P,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca;function la(){return(la=e((()=>{at(),mn=new Map,hn=`UNIVERSAL_STORE:`,gn={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},_n=class e{constructor(t,n){if(this.debugging=!1,this.listeners=new Map([[`*`,new Set]]),this.getState=()=>(this.debug(`getState`,{state:this.state}),this.state),this.subscribe=(e,t)=>{let n=typeof e==`function`,r=n?`*`:e,i=n?e:t;if(this.debug(`subscribe`,{eventType:r,listener:i}),!i)throw TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(i),()=>{this.debug(`unsubscribe`,{eventType:r,listener:i}),this.listeners.has(r)&&(this.listeners.get(r).delete(i),this.listeners.get(r)?.size===0&&this.listeners.delete(r))}},this.send=t=>{if(this.debug(`send`,{event:t}),this.status!==e.Status.READY)throw TypeError(T`Cannot send event before store is ready. You can get the current status with store.status,
7
+ `}`}}})))()}var Ze;function Qe(){return(Qe=t((()=>{Xe(),Ze=class extends Ye{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`PREVIEW_API`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}}})))()}var $e;function et(){return(et=t((()=>{S(),$e=E({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r}})})))()}var tt;function nt(){return(nt=t((()=>{Xe(),et(),S(),C($e(),1),tt=class extends Ye{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`CORE-SERVER`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}}})))()}var rt,it;function at(){return(at=t((()=>{Xe(),rt=class extends Ye{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`MANAGER_API`,code:1,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},it=class extends Ye{constructor(e){super({name:`UniversalStoreFollowerTimeoutError`,category:`MANAGER_UNIVERSAL-STORE`,code:1,message:`Timed out waiting for leader state for UniversalStore follower with id: '${e}'. Ensure a leader with the same id exists and is reachable before creating a follower.`})}}})))()}function ot(e){let t={};for(let n of Object.values(e))for(let e of Object.values(n))t[e.value]=(t[e.value]??0)+1;return t}function st({universalStatusStore:e,useUniversalStore:t,environment:n}){let r={getAll(){return e.getState()},set(t){e.setState(e=>{let n={...e};for(let e of t){let{storyId:t,typeId:r}=e;n[t]={...n[t]??{},[r]:e}}return n})},onAllStatusChange(t){return e.onStateChange((e,n)=>{t(e,n)})},onSelect(t){return e.subscribe(pt.SELECT,e=>{t(e.payload)})},selectStatuses:t=>{e.send({type:pt.SELECT,payload:t})},unset(t){if(!t){e.setState({});return}e.setState(e=>{let n={...e};for(let e of t)delete n[e];return n})},typeId:void 0},i=t=>({getAll:r.getAll,set(r){e.setState(e=>{let i={...e};for(let e of r){let{storyId:r}=e;if(e.typeId!==t)switch(n){case`server`:throw new tt({status:e,typeId:t});case`manager`:throw new rt({status:e,typeId:t});default:throw new Ze({status:e,typeId:t})}i[r]={...i[r]??{},[t]:e}}return i})},onAllStatusChange:r.onAllStatusChange,onSelect(n){return e.subscribe(pt.SELECT,e=>{e.payload.some(e=>e.typeId===t)&&n(e.payload)})},unset(n){e.setState(e=>{let r={...e};for(let e in r)if(r[e]?.[t]&&(!n||n?.includes(e))){let{[t]:n,...i}=r[e];r[e]=i}return r})},typeId:t});return t?{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e,useStatusStore:n=>t(e,n)[0]}:{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e}}var ct,lt,ut,dt,ft,pt;function mt(){return(mt=t((()=>{Qe(),nt(),at(),ct=`status-value:`,lt=[`status-value:pending`,`status-value:success`,`status-value:new`,`status-value:modified`,`status-value:affected`,`status-value:reviewing`,`status-value:warning`,`status-value:error`,`status-value:unknown`],ut=e=>{if(e===`related`)return`status-value:affected`;let t=`${ct}${e}`;return lt.includes(t)?t:void 0},dt=e=>e===`status-value:affected`?`related`:e.slice(ct.length),ft={id:`storybook/status`,leader:!0,initialState:{}},pt={SELECT:`select`}})))()}var ht,gt,_t,vt;function yt(){return(yt=t((()=>{ht=`collection`,gt=e=>e===`/review/`||e===`/review`,_t=(e,t)=>!!e&&e.startsWith(`/story/`)&&t?.[ht]!==void 0,vt=(e,t)=>!!e&&(gt(e)||e.startsWith(`/review/`)||_t(e,t))})))()}function bt(e){let t=Dn.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of On.filter(t=>e[t]!==void 0))t[n]=e[n];return t}function xt(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}function St(e){var t=Cr.call(e,Tr),n=e[Tr];try{e[Tr]=void 0;var r=!0}catch{}var i=wr.call(e);return r&&(t?e[Tr]=n:delete e[Tr]),i}function Ct(e){return Dr.call(e)}function wt(e){return e==null?e===void 0?Ar:kr:jr&&jr in Object(e)?Er(e):Or(e)}function Tt(e){return typeof e==`object`&&!!e}function Et(e){return typeof e==`symbol`||Nr(e)&&Mr(e)==Pr}function Dt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ot(e){if(typeof e==`string`)return e;if(Lr(e))return Ir(e,Ot)+``;if(Fr(e))return Br?Br.call(e):``;var t=e+``;return t==`0`&&1/e==-Rr?`-0`:t}function kt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function At(e){if(!Hr(e))return!1;var t=Mr(e);return t==Wr||t==Gr||t==Ur||t==Kr}function jt(e){return!!Yr&&Yr in e}function Mt(e){if(e!=null){try{return Zr.call(e)}catch{}try{return e+``}catch{}}return``}function Nt(e){return!Hr(e)||Xr(e)?!1:(qr(e)?ai:ei).test(Qr(e))}function Pt(e,t){return e?.[t]}function Ft(e,t){var n=si(e,t);return oi(n)?n:void 0}function It(e,t){return e===t||e!==e&&t!==t}function Lt(e,t){if(Lr(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Fr(e)?!0:di.test(e)||!ui.test(e)||t!=null&&e in Object(t)}function Rt(){this.__data__=pi?pi(null):{},this.size=0}function zt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Bt(e){var t=this.__data__;if(pi){var n=t[e];return n===gi?void 0:n}return _i.call(t,e)?t[e]:void 0}function Vt(e){var t=this.__data__;return pi?t[e]!==void 0:yi.call(t,e)}function Ht(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=pi&&t===void 0?xi:t,this}function Ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wt(){this.__data__=[],this.size=0}function Gt(e,t){for(var n=e.length;n--;)if(li(e[n][0],t))return n;return-1}function Kt(e){var t=this.__data__,n=Ti(t,e);return n<0?!1:(n==t.length-1?t.pop():Ei.call(t,n,1),--this.size,!0)}function qt(e){var t=this.__data__,n=Ti(t,e);return n<0?void 0:t[n][1]}function Jt(e){return Ti(this.__data__,e)>-1}function Yt(e,t){var n=this.__data__,r=Ti(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zt(){this.size=0,this.__data__={hash:new Ci,map:new(Mi||ji),string:new Ci}}function Qt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function $t(e,t){var n=e.__data__;return Pi(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function en(e){var t=Fi(this,e).delete(e);return this.size-=+!!t,t}function tn(e){return Fi(this,e).get(e)}function nn(e){return Fi(this,e).has(e)}function rn(e,t){var n=Fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function an(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function on(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Vi);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(on.Cache||Bi),n}function sn(e){var t=Hi(e,function(e){return n.size===Ui&&n.clear(),e}),n=t.cache;return t}function cn(e){return e==null?``:Vr(e)}function ln(e,t){return Lr(e)?e:fi(e,t)?[e]:qi(Ji(e))}function un(e){if(typeof e==`string`||Fr(e))return e;var t=e+``;return t==`0`&&1/e==-Xi?`-0`:t}function dn(e,t){t=Yi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Zi(t[n++])];return n&&n==r?e:void 0}function fn(e,t,n){var r=e==null?void 0:Qi(e,t);return r===void 0?n:r}function pn(e){if(!ea(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=bt(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,P,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca;function la(){return(la=t((()=>{at(),mn=new Map,hn=`UNIVERSAL_STORE:`,gn={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},_n=class e{constructor(t,n){if(this.debugging=!1,this.listeners=new Map([[`*`,new Set]]),this.getState=()=>(this.debug(`getState`,{state:this.state}),this.state),this.subscribe=(e,t)=>{let n=typeof e==`function`,r=n?`*`:e,i=n?e:t;if(this.debug(`subscribe`,{eventType:r,listener:i}),!i)throw TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(i),()=>{this.debug(`unsubscribe`,{eventType:r,listener:i}),this.listeners.has(r)&&(this.listeners.get(r).delete(i),this.listeners.get(r)?.size===0&&this.listeners.delete(r))}},this.send=t=>{if(this.debug(`send`,{event:t}),this.status!==e.Status.READY)throw TypeError(T`Cannot send event before store is ready. You can get the current status with store.status,
8
8
  or await store.readyPromise to wait for the store to be ready before sending events.
9
9
  ${JSON.stringify({event:t,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(t,{actor:this.actor}),this.emitToChannel(t,{actor:this.actor})},this.debugging=t.debug??!1,!e.isInternalConstructing)throw TypeError(`UniversalStore is not constructable - use UniversalStore.create() instead`);if(e.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?e.ActorType.LEADER:e.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${hn}${this.id}`,this.debug(`constructor`,{options:t,environmentOverrides:n,channelEventName:this.channelEventName}),this.actor.type===e.ActorType.LEADER)this.syncing={state:gn.RESOLVED,promise:Promise.resolve()};else{let e,t,n=new Promise((n,r)=>{e=()=>{this.syncing.state===gn.PENDING&&(this.syncing.state=gn.RESOLVED,n())},t=e=>{this.syncing.state===gn.PENDING&&(this.syncing.state=gn.REJECTED,r(e))}});this.syncing={state:gn.PENDING,promise:n,resolve:e,reject:t}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=n?.channel??e.preparation.channel,this.environment=n?.environment??e.preparation.environment,this.channel&&this.environment?(n||e.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):e.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,n,r=new Promise((e,r)=>{t=t=>{e(t)},n=(...e)=>{r(e)}});e.preparation={resolve:t,reject:n,promise:r}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??e.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return e.Status.UNPREPARED;switch(this.syncing?.state){case gn.PENDING:case void 0:return e.Status.SYNCING;case gn.REJECTED:return e.Status.ERROR;case gn.RESOLVED:default:return e.Status.READY}}untilReady(){let t=this.channel&&this.environment?Promise.resolve():e.preparation.promise;return Promise.all([t,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!=`string`)throw TypeError(`id is required and must be a string, when creating a UniversalStore`);t.debug&&console.debug(T`[UniversalStore]
10
10
  create`,{options:t});let n=mn.get(t.id);if(n)return console.warn(T`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
@@ -15,12 +15,12 @@ More info: ${i}
15
15
  Leaders detected:
16
16
  this: ${JSON.stringify(this.actor,null,2)}
17
17
  other: ${JSON.stringify(r.actor,null,2)}`)}i&&(this.debug(`handleChannelEvents: forwarding event`,{channelEvent:t}),this.emitToChannel(n,{actor:r.actor,forwardingActor:this.actor}))}if(this.actor.type===e.ActorType.FOLLOWER)switch(n.type){case e.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug(`handleChannelEvents: Setting state from leader's existing state response`,{event:n}),this.syncing?.state!==gn.PENDING)break;this.syncing.resolve?.();let t={type:e.InternalEventType.SET_STATE,payload:{state:n.payload,previousState:this.state}};this.state=n.payload,this.emitToListeners(t,r);break}n.type===e.InternalEventType.SET_STATE&&(this.debug(`handleChannelEvents: Setting state`,{event:n}),this.state=n.payload.state),this.emitToListeners(n,{actor:r.actor})}debug(t,n){this.debugging&&console.debug(T`[UniversalStore::${this.id}::${this.environment??e.Environment.UNKNOWN}]
18
- ${t}`,JSON.stringify({data:n,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){e.preparation.reject(Error(`reset`)),e.setupPreparationPromise(),e.isInternalConstructing=!1}},_n.ActorType={LEADER:`LEADER`,FOLLOWER:`FOLLOWER`},_n.Environment={SERVER:`SERVER`,MANAGER:`MANAGER`,PREVIEW:`PREVIEW`,UNKNOWN:`UNKNOWN`,MOCK:`MOCK`},_n.InternalEventType={EXISTING_STATE_REQUEST:`__EXISTING_STATE_REQUEST`,EXISTING_STATE_RESPONSE:`__EXISTING_STATE_RESPONSE`,SET_STATE:`__SET_STATE`,LEADER_CREATED:`__LEADER_CREATED`,FOLLOWER_CREATED:`__FOLLOWER_CREATED`},_n.Status={UNPREPARED:`UNPREPARED`,SYNCING:`SYNCING`,READY:`READY`,ERROR:`ERROR`},_n.isInternalConstructing=!1,_n.setupPreparationPromise(),vn=_n,yn=Object.create,bn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Sn=Object.getOwnPropertyNames,Cn=Object.getPrototypeOf,wn=Object.prototype.hasOwnProperty,P=(e,t)=>function(){return t||(0,e[Sn(e)[0]])((t={exports:{}}).exports,t),t.exports},Tn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Sn(t))!wn.call(e,i)&&i!==n&&bn(e,i,{get:()=>t[i],enumerable:!(r=xn(t,i))||r.enumerable});return e},En=(e,t,n)=>(n=e==null?{}:yn(Cn(e)),Tn(t||!e||!e.__esModule?bn(n,`default`,{value:e,enumerable:!0}):n,e)),Dn=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],On=[`detail`],kn=P({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),An=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),jn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Mn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Nn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Pn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Fn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),In=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Ln=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Rn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),zn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Bn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Vn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Hn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Un=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),Wn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=Un();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),Gn=P({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Kn=P({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=Gn();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),qn=P({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),Jn=P({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),Yn=P({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=Jn();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),Xn=P({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}}),Zn=P({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=kn().getPrototypeOf||null}}),Qn=P({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}}}),$n=P({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=Qn();t.exports=Function.prototype.bind||n}}),er=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),tr=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),nr=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}}),rr=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=$n(),r=tr(),i=er();t.exports=nr()||n.call(i,r)}}),ir=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=$n(),r=Fn(),i=er(),a=rr();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),ar=P({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=ir(),r=Kn(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&(function(e){return s(e==null?e:o(e))})}}),or=P({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=Xn(),r=Zn(),i=ar();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),sr=P({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=$n().call(n,r)}}),cr=P({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=kn(),i=An(),a=jn(),o=Mn(),s=Nn(),c=Pn(),l=Fn(),u=In(),d=Ln(),f=Rn(),p=zn(),m=Bn(),h=Vn(),g=Hn(),_=Wn(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Kn(),x=qn(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=Yn()(),T=or(),E=Zn(),D=Xn(),O=tr(),k=er(),ee={},A=typeof Uint8Array>`u`||!T?n:T(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":A,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){te=T(T(e)),j[`%Error.prototype%`]=te}var te,ne=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return j[t]=n,n},re={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},ie=$n(),ae=sr(),oe=ie.call(k,Array.prototype.concat),se=ie.call(O,Array.prototype.splice),ce=ie.call(k,String.prototype.replace),le=ie.call(k,String.prototype.slice),ue=ie.call(k,RegExp.prototype.exec),de=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,fe=function(e){var t=le(e,0,1),n=le(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ce(e,de,function(e,t,n,i){r[r.length]=n?ce(i,M,`$1`):t||e}),r},pe=function(e,t){var n=e,r;if(ae(re,n)&&(r=re[n],n=`%`+r[0]+`%`),ae(j,n)){var i=j[n];if(i===ee&&(i=ne(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ue(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fe(e),r=n.length>0?n[0]:``,i=pe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],se(n,oe([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=le(p,0,1),h=le(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ae(j,a))o=j[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ae(o,p),o=o[p];f&&!s&&(j[a]=o)}}return o}}}),lr=P({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=cr(),r=ir(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),ur=P({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=Jn();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),dr=P({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=lr(),r=ur()(),i=sr(),a=Kn(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),fr=P({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),pr=P({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=lr(),r=dr(),i=n(`RegExp.prototype.exec`),a=Fn();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),mr=P({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=lr(),r=n(`Object.prototype.toString`),i=Yn()(),a=pr();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`&&s(o(e))},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),hr=En(dr()),gr=En(fr()),_r=En(mr()),vr=typeof global==`object`&&global&&global.Object===Object&&global,yr=typeof self==`object`&&self&&self.Object===Object&&self,br=vr||yr||Function(`return this`)(),xr=br.Symbol,Sr=Object.prototype,Cr=Sr.hasOwnProperty,wr=Sr.toString,Tr=xr?xr.toStringTag:void 0,Er=St,Dr=Object.prototype.toString,Or=Ct,kr=`[object Null]`,Ar=`[object Undefined]`,jr=xr?xr.toStringTag:void 0,Mr=wt,Nr=Tt,Pr=`[object Symbol]`,Fr=Et,Ir=Dt,Lr=Array.isArray,Rr=1/0,zr=xr?xr.prototype:void 0,Br=zr?zr.toString:void 0,Vr=Ot,Hr=kt,Ur=`[object AsyncFunction]`,Wr=`[object Function]`,Gr=`[object GeneratorFunction]`,Kr=`[object Proxy]`,qr=At,Jr=br[`__core-js_shared__`],Yr=(function(){var e=/[^.]+$/.exec(Jr&&Jr.keys&&Jr.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),Xr=jt,Zr=Function.prototype.toString,Qr=Mt,$r=/[\\^$.*+?()[\]{}|]/g,ei=/^\[object .+?Constructor\]$/,ti=Function.prototype,ni=Object.prototype,ri=ti.toString,ii=ni.hasOwnProperty,ai=RegExp(`^`+ri.call(ii).replace($r,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),oi=Nt,si=Pt,ci=Ft,li=It,ui=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,fi=Lt,pi=ci(Object,`create`),mi=Rt,hi=zt,gi=`__lodash_hash_undefined__`,_i=Object.prototype.hasOwnProperty,vi=Bt,yi=Object.prototype.hasOwnProperty,bi=Vt,xi=`__lodash_hash_undefined__`,Si=Ht,Ut.prototype.clear=mi,Ut.prototype.delete=hi,Ut.prototype.get=vi,Ut.prototype.has=bi,Ut.prototype.set=Si,Ci=Ut,wi=Wt,Ti=Gt,Ei=Array.prototype.splice,Di=Kt,Oi=qt,ki=Jt,Ai=Yt,Xt.prototype.clear=wi,Xt.prototype.delete=Di,Xt.prototype.get=Oi,Xt.prototype.has=ki,Xt.prototype.set=Ai,ji=Xt,Mi=ci(br,`Map`),Ni=Zt,Pi=Qt,Fi=$t,Ii=en,Li=tn,Ri=nn,zi=rn,an.prototype.clear=Ni,an.prototype.delete=Ii,an.prototype.get=Li,an.prototype.has=Ri,an.prototype.set=zi,Bi=an,Vi=`Expected a function`,on.Cache=Bi,Hi=on,Ui=500,Wi=sn,Gi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ki=/\\(\\)?/g,qi=Wi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Gi,function(e,n,r,i){t.push(r?i.replace(Ki,`$1`):n||e)}),t}),Ji=cn,Yi=ln,Xi=1/0,Zi=un,Qi=dn,$i=fn,ea=xt,ta=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,na=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),ra=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return ta.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,hr.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,gr.default)(o))return;if((0,_r.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:pn(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},ia=function(e){let t=[],n;return function(r,i){if(r===``&&(n=i,t.forEach(({target:e,container:t,replacement:r})=>{let i=na(r)?JSON.parse(r):r.split(`.`);t[e]=i.length===0?n:$i(n,i)})),r===`_constructor-name_`)return i;if(ea(i)&&i.__isConvertedError__){let{message:e,...t}=i.errorProperties,n=Error(e);return Object.assign(n,t),n}if(typeof i==`string`&&i.startsWith(`_regexp_`)&&e.allowRegExp){let[,e,t]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof i==`string`&&i.startsWith(`_date_`)&&e.allowDate?new Date(i.replace(`_date_`,``)):typeof i==`string`&&i.startsWith(`_duplicate_`)?(t.push({target:r,container:this,replacement:i.replace(/^_duplicate_/,``)}),null):typeof i==`string`&&i.startsWith(`_symbol_`)&&e.allowSymbol?Symbol(i.replace(`_symbol_`,``)):typeof i==`string`&&i.startsWith(`_gsymbol_`)&&e.allowSymbol?Symbol.for(i.replace(`_gsymbol_`,``)):typeof i==`string`&&i===`_-Infinity_`?-1/0:typeof i==`string`&&i===`_Infinity_`?1/0:typeof i==`string`&&i===`_NaN_`?NaN:typeof i==`string`&&i.startsWith(`_bigint_`)&&typeof BigInt==`function`?BigInt(i.replace(`_bigint_`,``)):i}},aa={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},oa=(e,t={})=>{let n={...aa,...t};return JSON.stringify(pn(e),ra(n),t.space)},sa=()=>{let e=new Map;return function t(n){ea(n)&&Object.entries(n).forEach(([r,i])=>{i===`_undefined_`?n[r]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(n)&&n.forEach((r,i)=>{r===`_undefined_`?(e.set(r,!0),n[i]=void 0):e.get(r)||(e.set(r,!0),t(r))})}},ca=(e,t={})=>{let n={...aa,...t},r=JSON.parse(e,ia(n));return sa()(r),r}})))()}function ua(e){globalThis.__STORYBOOK_ADDONS_CHANNEL__=e}function da(){let e=globalThis.__STORYBOOK_ADDONS_CHANNEL__;return e&&(va=e),va??null}function fa(e){va=e??void 0,ua(va)}function pa(){fa(new _a({}))}function ma(){da()||pa()}var ha,ga,_a,va;function ya(){return(ya=e((()=>{ha=e=>e.transports!==void 0,ga=()=>Math.random().toString(16).slice(2),_a=class{constructor(e={}){this.sender=ga(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,ha(e)?(this.transports=e.transports||[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let n={type:e,args:t,from:this.sender},r={};t.length>=1&&t[0]&&t[0].options&&(r=t[0].options);let i=()=>{this.transports.forEach(e=>{e.send(n,r)}),this.handleEvent(n)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let n=this.onceListener(e,t);this.addListener(e,n)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let n=this.listeners(e);n&&(this.events[e]=n.filter(e=>e!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(t=>{t.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let n=(...r)=>(this.removeListener(e,n),t(...r));return n}},typeof window>`u`&&ma()})))()}function ba(e){return!e&&!io?ao:{lang:e?.lang??io?.lang,message:e?.message,abortEarly:e?.abortEarly??io?.abortEarly,abortPipeEarly:e?.abortPipeEarly??io?.abortPipeEarly}}function xa(e){return oo?.get(e)}function Sa(e){return so?.get(e)}function Ca(e,t){return co?.get(e)?.get(t)}function wa(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function Ta(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??wa(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??Ca(e.reference,c.lang)??(l?Sa(c.lang):null)??r.message??xa(c.lang);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function Ea(e){let t=lo.get(e);return t||(t={version:1,vendor:`valibot`,validate(t){return e[`~run`]({value:t},ba())}},lo.set(e,t)),t}function Da(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!==`__proto__`&&t!==`prototype`&&t!==`constructor`}function Oa(e,t){return{kind:`validation`,type:`min_value`,reference:Oa,async:!1,expects:`>=${e instanceof Date?e.toJSON():wa(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&Ta(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():wa(e.value)}),e}}}function ka(e){return{kind:`validation`,type:`safe_integer`,reference:ka,async:!1,expects:null,requirement:Number.isSafeInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&Ta(this,`safe integer`,e,t),e}}}function Aa(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function ja(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function Ma(e,t){return{kind:`schema`,type:`array`,reference:Ma,expects:`Array`,async:!1,item:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else Ta(this,`type`,e,t);return e}}}function Na(e,t){return{kind:`schema`,type:`custom`,reference:Na,expects:`unknown`,async:!1,check:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:Ta(this,`type`,e,t),e}}}function Pa(e,t){return{kind:`schema`,type:`loose_object`,reference:Pa,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:ja(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Aa(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(Ta(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly)for(let t in n)Da(n,t)&&!(t in this.entries)&&(e.value[t]=n[t])}else Ta(this,`type`,e,t);return e}}}function Fa(e){return{kind:`schema`,type:`number`,reference:Fa,expects:`number`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:Ta(this,`type`,e,t),e}}}function Ia(e,t){return{kind:`schema`,type:`object`,reference:Ia,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:ja(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Aa(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(Ta(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}}else Ta(this,`type`,e,t);return e}}}function La(e,t){return{kind:`schema`,type:`optional`,reference:La,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return Ea(this)},"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=ja(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function Ra(e,t,n){return{kind:`schema`,type:`record`,reference:Ra,expects:`Object`,async:!1,key:e,value:t,message:n,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in n)if(Da(n,r)){let i=n[r],a=this.key[`~run`]({value:r},t);if(a.issues){let o={type:`object`,origin:`key`,input:n,key:r,value:i};for(let t of a.issues)t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}let o=this.value[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}(!a.typed||!o.typed)&&(e.typed=!1),a.typed&&(e.value[a.value]=o.value)}}else Ta(this,`type`,e,t);return e}}}function F(e){return{kind:`schema`,type:`string`,reference:F,expects:`string`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return typeof e.value==`string`?e.typed=!0:Ta(this,`type`,e,t),e}}}function za(e){return{kind:`schema`,type:`undefined`,reference:za,expects:`undefined`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:Ta(this,`type`,e,t),e}}}function Ba(){return{kind:`schema`,type:`unknown`,reference:Ba,expects:`unknown`,async:!1,get"~standard"(){return Ea(this)},"~run"(e){return e.typed=!0,e}}}function Va(e){return{kind:`schema`,type:`void`,reference:Va,expects:`void`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:Ta(this,`type`,e,t),e}}}function Ha(...e){return{...e[0],pipe:e,get"~standard"(){return Ea(this)},"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r[`~run`](t,n))}return t}}}function Ua(){if(mo>1)mo--;else{var e,t=!1;for((function(){var e=_o;for(_o=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o})();po!==void 0;){var n=po;for(po=void 0,ho++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Ja(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(ho=0,mo--,t)throw e}}function Wa(e){var t=I;I=void 0;try{return e()}finally{I=t}}function Ga(e){if(I!==void 0){var t=e.n;if(t===void 0||t.t!==I)return t={i:0,S:e,p:I.s,n:void 0,t:I,e:void 0,x:void 0,r:t},I.s!==void 0&&(I.s.n=t),I.s=t,e.n=t,32&I.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=I.s,t.n=void 0,I.s.n=t,I.s=t),t}}function Ka(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function qa(e,t){return new Ka(e,t)}function Ja(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ya(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Xa(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Za(e,t){Ka.call(this,void 0),this.x=e,this.s=void 0,this.g=vo-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Qa(e,t){return new Za(e,t)}function $a(e){var t=e.m;if(e.m=void 0,typeof t==`function`){mo++;var n=I;I=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,eo(e),t}finally{I=n,Ua()}}}function eo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,$a(e)}function to(e){if(I!==this)throw Error(`Out-of-order effect`);Xa(this),I=e,this.f&=-2,8&this.f&&eo(this),Ua()}function no(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,fo&&fo.push(this)}function ro(e,t){var n=new no(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var io,ao,oo,so,co,lo,uo,I,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po;function Fo(){return(Fo=e((()=>{ao={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0},lo=new WeakMap,Ha(Fa(),ka(),Oa(0)),La(Ba()),La(Ba()),uo=Symbol.for(`preact-signals`),I=void 0,po=void 0,mo=0,ho=0,go=0,_o=void 0,vo=0,Ka.prototype.brand=uo,Ka.prototype.h=function(){return!0},Ka.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?Wa(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},Ka.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&Wa(function(){var e;(e=t.Z)==null||e.call(t)}))}},Ka.prototype.subscribe=function(e){var t=this;return ro(function(){var n=t.value,r=I;I=void 0;try{e(n)}finally{I=r}},{name:`sub`})},Ka.prototype.valueOf=function(){return this.value},Ka.prototype.toString=function(){return this.value+``},Ka.prototype.toJSON=function(){return this.value},Ka.prototype.peek=function(){var e=this;return Wa(function(){return e.value})},Object.defineProperty(Ka.prototype,"value",{get:function(){var e=Ga(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ho>100)throw Error(`Cycle detected`);(function(e){mo!==0&&ho===0&&e.l!==go&&(e.l=go,_o={S:e,v:e.v,i:e.i,o:_o})})(this),this.v=e,this.i++,vo++,mo++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ua()}}}}),Za.prototype=new Ka,Za.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===vo))return!0;if(this.g=vo,this.f|=1,this.i>0&&!Ja(this))return this.f&=-2,!0;var e=I;try{Ya(this),I=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return I=e,Xa(this),this.f&=-2,!0},Za.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ka.prototype.S.call(this,e)},Za.prototype.U=function(e){if(this.t!==void 0&&(Ka.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Za.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Za.prototype,"value",{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=Ga(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),no.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.m=t)}finally{e()}},no.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,$a(this),Ya(this),mo++;var e=I;return I=this,to.bind(this,e)},no.prototype.N=function(){2&this.f||(this.f|=2,this.u=po,po=this)},no.prototype.d=function(){this.f|=8,1&this.f||eo(this)},no.prototype.dispose=function(){this.d()},yo=new WeakMap,bo=new WeakMap,xo=new WeakMap,So=new WeakSet,Co=new WeakMap,wo=/^\$/,To=Object.getOwnPropertyDescriptor,Eo=!1,Do=function(e,t){var n=new Proxy(e,t);return So.add(n),n},Oo=function(){throw Error(`Don't mutate the signals directly.`)},ko=function(e){return function(t,n,r){if(Eo)return Reflect.get(t,n,r);var i=e||n[0]===`$`;if(!e&&i&&Array.isArray(t)){if(n===`$`)return xo.has(t)||xo.set(t,Do(t,jo)),xo.get(t);i=n===`$length`}yo.has(r)||yo.set(r,new Map);var a=yo.get(r),o=i?n.replace(wo,``):n;if(a.has(o)||typeof To(t,o)?.get!=`function`){var s=Reflect.get(t,o,r);if(i&&typeof s==`function`)return;if(typeof o==`symbol`&&Mo.has(o))return s;a.has(o)||(Po(s)&&(bo.has(s)||bo.set(s,Do(s,Ao)),s=bo.get(s)),a.set(o,qa(s)))}else a.set(o,Qa(function(){return Reflect.get(t,o,r)}));return i?a.get(o):a.get(o).value}},Ao={get:ko(!1),set:function(e,t,n,r){if(typeof To(e,t)?.set==`function`)return Reflect.set(e,t,n,r);yo.has(r)||yo.set(r,new Map);var i=yo.get(r);if(t[0]===`$`){n instanceof Ka||Oo();var a=t.replace(wo,``);return i.set(a,n),Reflect.set(e,a,n.peek(),r)}var o=n;Po(n)&&(bo.has(n)||bo.set(n,Do(n,Ao)),o=bo.get(n));var s=!(t in e),c=Reflect.set(e,t,n,r);return i.has(t)?i.get(t).value=o:i.set(t,qa(o)),s&&Co.has(e)&&Co.get(e).value++,Array.isArray(e)&&i.has(`length`)&&(i.get(`length`).value=e.length),c},deleteProperty:function(e,t){t[0]===`$`&&Oo();var n=yo.get(bo.get(e)),r=Reflect.deleteProperty(e,t);return n&&n.has(t)&&(n.get(t).value=void 0),Co.has(e)&&Co.get(e).value++,r},ownKeys:function(e){return Co.has(e)||Co.set(e,qa(0)),Co._=Co.get(e).value,Reflect.ownKeys(e)}},jo={get:ko(!0),set:Oo,deleteProperty:Oo},Mo=new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return typeof e==`symbol`})),No=new Set([Object,Array]),Po=function(e){return typeof e==`object`&&!!e&&No.has(e.constructor)&&!So.has(e)}})))()}function Io(e,t,n){for(n of e.keys())if(Lo(n,t))return n}function Lo(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Lo(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=Io(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=Io(t,i),!i)||!Lo(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(Bo.call(e,n)&&++r&&!Bo.call(t,n)||!(n in t)||!Lo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Ro(e,t){let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i];t(a)?n.push(a):r.push(a)}return[n,r]}function zo(e,t){let n={};for(let r=0;r<e.length;r++){let i=e[r],a=t(i);n[a]=(n[a]??0)+1}return n}var Bo;function Vo(){return(Vo=e((()=>{o(),o(),Bo=Object.prototype.hasOwnProperty})))()}function Ho(){return new _a({transport:{setHandler:()=>{},send:()=>{}}})}var Uo,Wo,Go;function Ko(){return(Ko=e((()=>{ya(),Uo={AUTODOCS:`autodocs`,ATTACHED_MDX:`attached-mdx`,UNATTACHED_MDX:`unattached-mdx`,PLAY_FN:`play-fn`,TEST_FN:`test-fn`,DEV:`dev`,TEST:`test`,MANIFEST:`manifest`},Wo={_docs:(e,t)=>t?e.type!==`docs`:e.type===`docs`,_play:(e,t)=>t?e.type!==`story`||!e.tags?.includes(Uo.PLAY_FN):e.type===`story`&&!!e.tags?.includes(Uo.PLAY_FN),_test:(e,t)=>t?e.type!==`story`||e.subtype!==`test`:e.type===`story`&&e.subtype===`test`},Go=e=>(t,n)=>n?!t.tags?.includes(e):!!t.tags?.includes(e)})))()}function qo(e){let t=e.length;if(t===0)return``;let n=``,r=0,i=0;outer:for(;i<t;i++){let a=e.charCodeAt(i);for(;a<128;){if(rs[a]!==1&&(r<i&&(n+=e.slice(r,i)),r=i+1,n+=ns[a]),++i===t)break outer;a=e.charCodeAt(i)}if(r<i&&(n+=e.slice(r,i)),a<2048){r=i+1,n+=ns[192|a>>6]+ns[128|a&63];continue}if(a<55296||a>=57344){r=i+1,n+=ns[224|a>>12]+ns[128|a>>6&63]+ns[128|a&63];continue}if(++i,i>=t)throw Error(`URI malformed`);let o=e.charCodeAt(i)&1023;r=i+1,a=65536+((a&1023)<<10|o),n+=ns[240|a>>18]+ns[128|a>>12&63]+ns[128|a>>6&63]+ns[128|a&63]}return r===0?e:r<t?n+e.slice(r):n}function Jo(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Yo(e,t,n,r,i){if(Jo(t))return e;let a=e[t];return typeof a==`object`&&a?a:e[t]=!r&&(i||typeof n==`number`||typeof n==`string`&&n*0==0&&n.indexOf(`.`)===-1)?[]:{}}function Xo(e,t,n=0,r,i){let{nestingSyntax:a=ss.nestingSyntax,arrayRepeat:o=ss.arrayRepeat,arrayRepeatSyntax:s=ss.arrayRepeatSyntax,nesting:c=ss.nesting,delimiter:l=ss.delimiter,valueSerializer:u=ss.valueSerializer,shouldSerializeObject:d=ss.shouldSerializeObject}=t,f=typeof l==`number`?String.fromCharCode(l):l,p=i===!0&&o,m=a===`dot`||a===`js`&&!i;if(n>cs)return``;let h=``,g=!0,_=!1;for(let i in e){let a=e[i];if(a===void 0)continue;let l;r?(l=r,p?s===`bracket`&&(l+=ls):m?(l+=fs,l+=i):(l+=us,l+=i,l+=ds)):l=i,g||(h+=f),typeof a==`object`&&a&&!d(a)?(_=a.pop!==void 0,(c||o&&_)&&(h+=Xo(a,t,n+1,l,_))):(h+=qo(l),h+=`=`,h+=u(a,i)),g&&=!1}return h}function Zo(e){let t=e.indexOf(`%`);if(t===-1)return e;let n=e.length,r=``,i=0,a=0,o=t,s=12;for(;t>-1&&t<n;){let c=Qo(e[t+1],4)|Qo(e[t+2],0),l=ps[c];if(s=ps[256+s+l],a=a<<6|c&ps[364+l],s===12)r+=e.slice(i,o),r+=a<=65535?String.fromCharCode(a):String.fromCharCode(55232+(a>>10),56320+(a&1023)),a=0,i=t+3,t=o=e.indexOf(`%`,i);else{if(s===0)return null;if(t+=3,t<n&&e.charCodeAt(t)===37)continue;return null}}return r+e.slice(i)}function Qo(e,t){let n=ms[e];return n===void 0?255:n<<t}function $o(e,t,n,r,i){let a=e.substring(t,n);return r&&(a=a.replace(hs,` `)),i&&(a=Zo(a)||a),a}function es(e,t){let{valueDeserializer:n=ss.valueDeserializer,keyDeserializer:r=ss.keyDeserializer,arrayRepeatSyntax:i=ss.arrayRepeatSyntax,nesting:a=ss.nesting,arrayRepeat:o=ss.arrayRepeat,nestingSyntax:s=ss.nestingSyntax,delimiter:c=ss.delimiter}=t??{},l=typeof c==`string`?c.charCodeAt(0):c,u=s===`js`,d=new gs;if(typeof e!=`string`)return d;let f=e.length,p=``,m=-1,h=-1,g=-1,_=d,v,y=``,b=``,x=!1,S=!1,C=!1,w=!1,T=!1,E=!1,D=0,O=-1,k=-1,ee=-1;for(let t=0;t<f+1;t++){if(D=t===f?l:e.charCodeAt(t),D===l){if(E=h>m,E||(h=t),g!==h-1&&(b=$o(e,g+1,O>-1?O:h,C,x),y=r(b),v!==void 0&&(_=Yo(_,v,y,u&&T,void 0))),E||y!==``){E&&(p=e.slice(h+1,t),w&&(p=p.replace(hs,` `)),S&&(p=Zo(p)||p));let r=n(p,y);if(o){let e=_[y];e===void 0?O>-1?_[y]=[r]:_[y]=r:e.pop?e.push(r):_[y]=[e,r]}else _[y]=r}p=``,m=t,h=t,x=!1,S=!1,C=!1,w=!1,T=!1,O=-1,g=t,_=d,v=void 0,y=``}else D===93?(o&&i===`bracket`&&ee===91&&(O=k),a&&(s===`index`||u)&&h<=m&&(g!==k&&(b=$o(e,g+1,t,C,x),y=r(b),v!==void 0&&(_=Yo(_,v,y,void 0,void 0)),v=y,C=!1,x=!1),g=t,T=!1)):D===46?a&&(s===`dot`||u)&&h<=m&&(g!==k&&(b=$o(e,g+1,t,C,x),y=r(b),v!==void 0&&(_=Yo(_,v,y,u)),v=y,C=!1,x=!1),T=!0,g=t):D===91?a&&(s===`index`||u)&&h<=m&&(g!==k&&(b=$o(e,g+1,t,C,x),y=r(b),u&&v!==void 0&&(_=Yo(_,v,y,u)),v=y,C=!1,x=!1,T=!1),g=t):D===61?h<=m?h=t:S=!0:D===43?h>m?w=!0:C=!0:D===37&&(h>m?S=!0:x=!0);k=t,ee=D}return d}function ts(e,t){return typeof e!=`object`||!e?``:Xo(e,t??{})}var ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs;function _s(){return(_s=e((()=>{ns=Array.from({length:256},(e,t)=>`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase()),rs=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]),is=e=>{switch(typeof e){case`string`:return qo(e);case`bigint`:case`boolean`:return``+e;case`number`:if(Number.isFinite(e))return e<1e21?``+e:qo(``+e)}return e instanceof Date?qo(e.toISOString()):``},as=e=>e instanceof Date,os=e=>e,ss={nesting:!0,nestingSyntax:`dot`,arrayRepeat:!1,arrayRepeatSyntax:`repeat`,delimiter:38,valueDeserializer:os,valueSerializer:is,keyDeserializer:os,shouldSerializeObject:as},cs=20,ls=`[]`,us=`[`,ds=`]`,fs=`.`,ps=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7],ms={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},hs=/\+/g,gs=function(){},gs.prototype=Object.create(null)})))()}var vs;function ys(){return(ys=e((()=>{vs=e=>e})))()}function bs(e){return`${e}.json`}var xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As;function js(){return(js=e((()=>{Fo(),ys(),xs=`storybook/measure-addon`,`${xs}`,`${xs}`,`${xs}`,`${xs}`,Ss=Ia({id:F()}),Cs=Na(e=>typeof e==`object`&&!!e&&!Array.isArray(e)),ws=Ia({name:F(),message:F()}),Ts=Ra(F(),Ma(F())),Es={name:F(),path:F(),description:La(F()),summary:La(F()),jsDocTags:Ts,argTypes:La(Cs),error:La(ws)},Ds={...Es,import:La(F())},Os=Pa(Ds),ks=Pa({id:F(),...Es,subcomponents:La(Ra(F(),Os))}),As=La(ks),vs({id:`core/docgen`,description:`Component documentation (name, description, props, JSDoc tags) keyed by component id.`,initialState:{components:{}},queries:{docgen:{description:`Returns the docgen payload for one component id, or undefined when not loaded.`,input:Ss,output:As,handler:(e,t)=>t.self.state.components[e.id],load:async(e,t)=>{await t.self.commands.extractDocgen(e)},staticPath:e=>bs(e.id)},docgenForAllComponents:{description:`Returns docgen payloads for every component in the story index.`,input:Va(),output:Ra(F(),ks),handler:(e,t)=>t.self.state.components,load:async(e,t)=>{await t.self.commands.extractAllDocgen(void 0)}}},commands:{extractDocgen:{description:`Resolves the story entry for a component id, runs the registered provider chain, writes the result into state, and returns it (or undefined when no provider produced docgen).`,input:Ss,output:As},extractAllDocgen:{description:"Extracts docgen for every component id in the story index by invoking `extractDocgen` for each.",input:za(),output:Va()}}})})))()}function Ms(){return(Ms=e((()=>{})))()}var Ns,Ps;function Fs(){return(Fs=e((()=>{Ns=`storybook/actions`,`${Ns}`,Ps=`${Ns}/action-event`,`${Ns}`})))()}function Is(e,t={}){let n={...Ls,...t},r=function(...r){if(t.implicit){let t=(`__STORYBOOK_PREVIEW__`in zs?zs.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(e=>e.phase===`playing`||e.phase===`rendering`);if(t){let n=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,r=new Rs({phase:t.phase,name:e,deprecated:n});if(n)console.warn(r);else throw r}}let i=Bs.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),o=r.map(Us),s={id:a,count:0,data:{name:e,args:r.length>1?o:o[0]},options:{...n,maxDepth:5+(n.depth||3)}};i.emit(Ps,s)};return r.isAction=!0,r.implicit=t.implicit,r}var Ls,Rs,zs,Bs,Vs,Hs,Us;function Ws(){return(Ws=e((()=>{Fs(),Ls={depth:10,clearOnStoryChange:!0,limit:50},{ImplicitActionsDuringRendering:Rs}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:zs}=__STORYBOOK_MODULE_GLOBAL__,{addons:Bs}=__STORYBOOK_MODULE_PREVIEW_API__,Vs=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:Vs(n,t)},Hs=e=>!!(typeof e==`object`&&e&&Vs(e,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof e.persist==`function`),Us=e=>{if(Hs(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,`view`),r=n?.value;return typeof r==`object`&&r?.constructor.name===`Window`&&Object.defineProperty(t,"view",{...n,value:Object.create(r.constructor.prototype)}),t}return e}})))()}var Gs;function Ks(){return(Ks=e((()=>{Gs=`storybook/background`,`${Gs}`})))()}var qs;function Js(){return(Js=e((()=>{qs={CALL:`storybook/instrumenter/call`,SYNC:`storybook/instrumenter/sync`,START:`storybook/instrumenter/start`,BACK:`storybook/instrumenter/back`,GOTO:`storybook/instrumenter/goto`,NEXT:`storybook/instrumenter/next`,END:`storybook/instrumenter/end`}})))()}function Ys(e){return String(e)}function Xs(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function Zs(e=!1){let t=Xs(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of Ku)i[e]=t?r(a(n[0]),a(n[1]),n[2]):Ys;return i}function Qs(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function $s(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function ec(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function tc(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function nc(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function rc(e,t,n,r,i,a){let o=``,s=$s(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function ic(e){return ed.has(e)||td.test(e)}function ac(e){return e.constructor.name===`NamedNodeMap`}function oc(e){return e.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function sc(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
18
+ ${t}`,JSON.stringify({data:n,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){e.preparation.reject(Error(`reset`)),e.setupPreparationPromise(),e.isInternalConstructing=!1}},_n.ActorType={LEADER:`LEADER`,FOLLOWER:`FOLLOWER`},_n.Environment={SERVER:`SERVER`,MANAGER:`MANAGER`,PREVIEW:`PREVIEW`,UNKNOWN:`UNKNOWN`,MOCK:`MOCK`},_n.InternalEventType={EXISTING_STATE_REQUEST:`__EXISTING_STATE_REQUEST`,EXISTING_STATE_RESPONSE:`__EXISTING_STATE_RESPONSE`,SET_STATE:`__SET_STATE`,LEADER_CREATED:`__LEADER_CREATED`,FOLLOWER_CREATED:`__FOLLOWER_CREATED`},_n.Status={UNPREPARED:`UNPREPARED`,SYNCING:`SYNCING`,READY:`READY`,ERROR:`ERROR`},_n.isInternalConstructing=!1,_n.setupPreparationPromise(),vn=_n,yn=Object.create,bn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Sn=Object.getOwnPropertyNames,Cn=Object.getPrototypeOf,wn=Object.prototype.hasOwnProperty,P=(e,t)=>function(){return t||(0,e[Sn(e)[0]])((t={exports:{}}).exports,t),t.exports},Tn=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Sn(t))!wn.call(e,i)&&i!==n&&bn(e,i,{get:()=>t[i],enumerable:!(r=xn(t,i))||r.enumerable});return e},En=(e,t,n)=>(n=e==null?{}:yn(Cn(e)),Tn(t||!e||!e.__esModule?bn(n,`default`,{value:e,enumerable:!0}):n,e)),Dn=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],On=[`detail`],kn=P({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),An=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),jn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Mn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Nn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Pn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Fn=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),In=P({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Ln=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Rn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),zn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Bn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Vn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Hn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Un=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),Wn=P({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=Un();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),Gn=P({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Kn=P({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=Gn();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),qn=P({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),Jn=P({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),Yn=P({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=Jn();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),Xn=P({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null}}),Zn=P({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=kn().getPrototypeOf||null}}),Qn=P({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}}}),$n=P({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=Qn();t.exports=Function.prototype.bind||n}}),er=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),tr=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),nr=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply}}),rr=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=$n(),r=tr(),i=er();t.exports=nr()||n.call(i,r)}}),ir=P({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=$n(),r=Fn(),i=er(),a=rr();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),ar=P({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=ir(),r=Kn(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&(function(e){return s(e==null?e:o(e))})}}),or=P({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=Xn(),r=Zn(),i=ar();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),sr=P({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=$n().call(n,r)}}),cr=P({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=kn(),i=An(),a=jn(),o=Mn(),s=Nn(),c=Pn(),l=Fn(),u=In(),d=Ln(),f=Rn(),p=zn(),m=Bn(),h=Vn(),g=Hn(),_=Wn(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Kn(),x=qn(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=Yn()(),T=or(),E=Zn(),D=Xn(),O=tr(),k=er(),ee={},A=typeof Uint8Array>`u`||!T?n:T(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":A,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){te=T(T(e)),j[`%Error.prototype%`]=te}var te,ne=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return j[t]=n,n},re={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},ie=$n(),ae=sr(),oe=ie.call(k,Array.prototype.concat),se=ie.call(O,Array.prototype.splice),ce=ie.call(k,String.prototype.replace),le=ie.call(k,String.prototype.slice),ue=ie.call(k,RegExp.prototype.exec),de=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,fe=function(e){var t=le(e,0,1),n=le(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ce(e,de,function(e,t,n,i){r[r.length]=n?ce(i,M,`$1`):t||e}),r},pe=function(e,t){var n=e,r;if(ae(re,n)&&(r=re[n],n=`%`+r[0]+`%`),ae(j,n)){var i=j[n];if(i===ee&&(i=ne(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ue(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fe(e),r=n.length>0?n[0]:``,i=pe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],se(n,oe([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=le(p,0,1),h=le(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ae(j,a))o=j[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ae(o,p),o=o[p];f&&!s&&(j[a]=o)}}return o}}}),lr=P({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=cr(),r=ir(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),ur=P({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=Jn();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),dr=P({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=lr(),r=ur()(),i=sr(),a=Kn(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),fr=P({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),pr=P({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=lr(),r=dr(),i=n(`RegExp.prototype.exec`),a=Fn();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),mr=P({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=lr(),r=n(`Object.prototype.toString`),i=Yn()(),a=pr();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`&&s(o(e))},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),hr=En(dr()),gr=En(fr()),_r=En(mr()),vr=typeof global==`object`&&global&&global.Object===Object&&global,yr=typeof self==`object`&&self&&self.Object===Object&&self,br=vr||yr||Function(`return this`)(),xr=br.Symbol,Sr=Object.prototype,Cr=Sr.hasOwnProperty,wr=Sr.toString,Tr=xr?xr.toStringTag:void 0,Er=St,Dr=Object.prototype.toString,Or=Ct,kr=`[object Null]`,Ar=`[object Undefined]`,jr=xr?xr.toStringTag:void 0,Mr=wt,Nr=Tt,Pr=`[object Symbol]`,Fr=Et,Ir=Dt,Lr=Array.isArray,Rr=1/0,zr=xr?xr.prototype:void 0,Br=zr?zr.toString:void 0,Vr=Ot,Hr=kt,Ur=`[object AsyncFunction]`,Wr=`[object Function]`,Gr=`[object GeneratorFunction]`,Kr=`[object Proxy]`,qr=At,Jr=br[`__core-js_shared__`],Yr=(function(){var e=/[^.]+$/.exec(Jr&&Jr.keys&&Jr.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),Xr=jt,Zr=Function.prototype.toString,Qr=Mt,$r=/[\\^$.*+?()[\]{}|]/g,ei=/^\[object .+?Constructor\]$/,ti=Function.prototype,ni=Object.prototype,ri=ti.toString,ii=ni.hasOwnProperty,ai=RegExp(`^`+ri.call(ii).replace($r,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),oi=Nt,si=Pt,ci=Ft,li=It,ui=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,fi=Lt,pi=ci(Object,`create`),mi=Rt,hi=zt,gi=`__lodash_hash_undefined__`,_i=Object.prototype.hasOwnProperty,vi=Bt,yi=Object.prototype.hasOwnProperty,bi=Vt,xi=`__lodash_hash_undefined__`,Si=Ht,Ut.prototype.clear=mi,Ut.prototype.delete=hi,Ut.prototype.get=vi,Ut.prototype.has=bi,Ut.prototype.set=Si,Ci=Ut,wi=Wt,Ti=Gt,Ei=Array.prototype.splice,Di=Kt,Oi=qt,ki=Jt,Ai=Yt,Xt.prototype.clear=wi,Xt.prototype.delete=Di,Xt.prototype.get=Oi,Xt.prototype.has=ki,Xt.prototype.set=Ai,ji=Xt,Mi=ci(br,`Map`),Ni=Zt,Pi=Qt,Fi=$t,Ii=en,Li=tn,Ri=nn,zi=rn,an.prototype.clear=Ni,an.prototype.delete=Ii,an.prototype.get=Li,an.prototype.has=Ri,an.prototype.set=zi,Bi=an,Vi=`Expected a function`,on.Cache=Bi,Hi=on,Ui=500,Wi=sn,Gi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ki=/\\(\\)?/g,qi=Wi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Gi,function(e,n,r,i){t.push(r?i.replace(Ki,`$1`):n||e)}),t}),Ji=cn,Yi=ln,Xi=1/0,Zi=un,Qi=dn,$i=fn,ea=xt,ta=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,na=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),ra=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return ta.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,hr.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,gr.default)(o))return;if((0,_r.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:pn(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},ia=function(e){let t=[],n;return function(r,i){if(r===``&&(n=i,t.forEach(({target:e,container:t,replacement:r})=>{let i=na(r)?JSON.parse(r):r.split(`.`);t[e]=i.length===0?n:$i(n,i)})),r===`_constructor-name_`)return i;if(ea(i)&&i.__isConvertedError__){let{message:e,...t}=i.errorProperties,n=Error(e);return Object.assign(n,t),n}if(typeof i==`string`&&i.startsWith(`_regexp_`)&&e.allowRegExp){let[,e,t]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof i==`string`&&i.startsWith(`_date_`)&&e.allowDate?new Date(i.replace(`_date_`,``)):typeof i==`string`&&i.startsWith(`_duplicate_`)?(t.push({target:r,container:this,replacement:i.replace(/^_duplicate_/,``)}),null):typeof i==`string`&&i.startsWith(`_symbol_`)&&e.allowSymbol?Symbol(i.replace(`_symbol_`,``)):typeof i==`string`&&i.startsWith(`_gsymbol_`)&&e.allowSymbol?Symbol.for(i.replace(`_gsymbol_`,``)):typeof i==`string`&&i===`_-Infinity_`?-1/0:typeof i==`string`&&i===`_Infinity_`?1/0:typeof i==`string`&&i===`_NaN_`?NaN:typeof i==`string`&&i.startsWith(`_bigint_`)&&typeof BigInt==`function`?BigInt(i.replace(`_bigint_`,``)):i}},aa={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},oa=(e,t={})=>{let n={...aa,...t};return JSON.stringify(pn(e),ra(n),t.space)},sa=()=>{let e=new Map;return function t(n){ea(n)&&Object.entries(n).forEach(([r,i])=>{i===`_undefined_`?n[r]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(n)&&n.forEach((r,i)=>{r===`_undefined_`?(e.set(r,!0),n[i]=void 0):e.get(r)||(e.set(r,!0),t(r))})}},ca=(e,t={})=>{let n={...aa,...t},r=JSON.parse(e,ia(n));return sa()(r),r}})))()}function ua(e){globalThis.__STORYBOOK_ADDONS_CHANNEL__=e}function da(){let e=globalThis.__STORYBOOK_ADDONS_CHANNEL__;return e&&(va=e),va??null}function fa(e){va=e??void 0,ua(va)}function pa(){fa(new _a({}))}function ma(){da()||pa()}var ha,ga,_a,va;function ya(){return(ya=t((()=>{ha=e=>e.transports!==void 0,ga=()=>Math.random().toString(16).slice(2),_a=class{constructor(e={}){this.sender=ga(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,ha(e)?(this.transports=e.transports||[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let n={type:e,args:t,from:this.sender},r={};t.length>=1&&t[0]&&t[0].options&&(r=t[0].options);let i=()=>{this.transports.forEach(e=>{e.send(n,r)}),this.handleEvent(n)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let n=this.onceListener(e,t);this.addListener(e,n)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let n=this.listeners(e);n&&(this.events[e]=n.filter(e=>e!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(t=>{t.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let n=(...r)=>(this.removeListener(e,n),t(...r));return n}},typeof window>`u`&&ma()})))()}function ba(e){return!e&&!io?ao:{lang:e?.lang??io?.lang,message:e?.message,abortEarly:e?.abortEarly??io?.abortEarly,abortPipeEarly:e?.abortPipeEarly??io?.abortPipeEarly}}function xa(e){return oo?.get(e)}function Sa(e){return so?.get(e)}function Ca(e,t){return co?.get(e)?.get(t)}function wa(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function Ta(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??wa(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??Ca(e.reference,c.lang)??(l?Sa(c.lang):null)??r.message??xa(c.lang);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function Ea(e){let t=lo.get(e);return t||(t={version:1,vendor:`valibot`,validate(t){return e[`~run`]({value:t},ba())}},lo.set(e,t)),t}function Da(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!==`__proto__`&&t!==`prototype`&&t!==`constructor`}function Oa(e,t){return{kind:`validation`,type:`min_value`,reference:Oa,async:!1,expects:`>=${e instanceof Date?e.toJSON():wa(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&Ta(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():wa(e.value)}),e}}}function ka(e){return{kind:`validation`,type:`safe_integer`,reference:ka,async:!1,expects:null,requirement:Number.isSafeInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&Ta(this,`safe integer`,e,t),e}}}function Aa(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function ja(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function Ma(e,t){return{kind:`schema`,type:`array`,reference:Ma,expects:`Array`,async:!1,item:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else Ta(this,`type`,e,t);return e}}}function Na(e,t){return{kind:`schema`,type:`custom`,reference:Na,expects:`unknown`,async:!1,check:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:Ta(this,`type`,e,t),e}}}function Pa(e,t){return{kind:`schema`,type:`loose_object`,reference:Pa,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:ja(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Aa(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(Ta(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly)for(let t in n)Da(n,t)&&!(t in this.entries)&&(e.value[t]=n[t])}else Ta(this,`type`,e,t);return e}}}function Fa(e){return{kind:`schema`,type:`number`,reference:Fa,expects:`number`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:Ta(this,`type`,e,t),e}}}function Ia(e,t){return{kind:`schema`,type:`object`,reference:Ia,expects:`Object`,async:!1,entries:e,message:t,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:ja(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=Aa(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(Ta(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}}else Ta(this,`type`,e,t);return e}}}function La(e,t){return{kind:`schema`,type:`optional`,reference:La,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return Ea(this)},"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=ja(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}}}function Ra(e,t,n){return{kind:`schema`,type:`record`,reference:Ra,expects:`Object`,async:!1,key:e,value:t,message:n,get"~standard"(){return Ea(this)},"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in n)if(Da(n,r)){let i=n[r],a=this.key[`~run`]({value:r},t);if(a.issues){let o={type:`object`,origin:`key`,input:n,key:r,value:i};for(let t of a.issues)t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}let o=this.value[`~run`]({value:i},t);if(o.issues){let a={type:`object`,origin:`value`,input:n,key:r,value:i};for(let t of o.issues)t.path?t.path.unshift(a):t.path=[a],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}(!a.typed||!o.typed)&&(e.typed=!1),a.typed&&(e.value[a.value]=o.value)}}else Ta(this,`type`,e,t);return e}}}function F(e){return{kind:`schema`,type:`string`,reference:F,expects:`string`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return typeof e.value==`string`?e.typed=!0:Ta(this,`type`,e,t),e}}}function za(e){return{kind:`schema`,type:`undefined`,reference:za,expects:`undefined`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:Ta(this,`type`,e,t),e}}}function Ba(){return{kind:`schema`,type:`unknown`,reference:Ba,expects:`unknown`,async:!1,get"~standard"(){return Ea(this)},"~run"(e){return e.typed=!0,e}}}function Va(e){return{kind:`schema`,type:`void`,reference:Va,expects:`void`,async:!1,message:e,get"~standard"(){return Ea(this)},"~run"(e,t){return e.value===void 0?e.typed=!0:Ta(this,`type`,e,t),e}}}function Ha(...e){return{...e[0],pipe:e,get"~standard"(){return Ea(this)},"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r[`~run`](t,n))}return t}}}function Ua(){if(mo>1)mo--;else{var e,t=!1;for((function(){var e=_o;for(_o=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o})();po!==void 0;){var n=po;for(po=void 0,ho++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Ja(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(ho=0,mo--,t)throw e}}function Wa(e){var t=I;I=void 0;try{return e()}finally{I=t}}function Ga(e){if(I!==void 0){var t=e.n;if(t===void 0||t.t!==I)return t={i:0,S:e,p:I.s,n:void 0,t:I,e:void 0,x:void 0,r:t},I.s!==void 0&&(I.s.n=t),I.s=t,e.n=t,32&I.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=I.s,t.n=void 0,I.s.n=t,I.s=t),t}}function Ka(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function qa(e,t){return new Ka(e,t)}function Ja(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ya(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Xa(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Za(e,t){Ka.call(this,void 0),this.x=e,this.s=void 0,this.g=vo-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function Qa(e,t){return new Za(e,t)}function $a(e){var t=e.m;if(e.m=void 0,typeof t==`function`){mo++;var n=I;I=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,eo(e),t}finally{I=n,Ua()}}}function eo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,$a(e)}function to(e){if(I!==this)throw Error(`Out-of-order effect`);Xa(this),I=e,this.f&=-2,8&this.f&&eo(this),Ua()}function no(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,fo&&fo.push(this)}function ro(e,t){var n=new no(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var io,ao,oo,so,co,lo,uo,I,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po;function Fo(){return(Fo=t((()=>{ao={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0},lo=new WeakMap,Ha(Fa(),ka(),Oa(0)),La(Ba()),La(Ba()),uo=Symbol.for(`preact-signals`),I=void 0,po=void 0,mo=0,ho=0,go=0,_o=void 0,vo=0,Ka.prototype.brand=uo,Ka.prototype.h=function(){return!0},Ka.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?Wa(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},Ka.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&Wa(function(){var e;(e=t.Z)==null||e.call(t)}))}},Ka.prototype.subscribe=function(e){var t=this;return ro(function(){var n=t.value,r=I;I=void 0;try{e(n)}finally{I=r}},{name:`sub`})},Ka.prototype.valueOf=function(){return this.value},Ka.prototype.toString=function(){return this.value+``},Ka.prototype.toJSON=function(){return this.value},Ka.prototype.peek=function(){var e=this;return Wa(function(){return e.value})},Object.defineProperty(Ka.prototype,"value",{get:function(){var e=Ga(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ho>100)throw Error(`Cycle detected`);(function(e){mo!==0&&ho===0&&e.l!==go&&(e.l=go,_o={S:e,v:e.v,i:e.i,o:_o})})(this),this.v=e,this.i++,vo++,mo++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ua()}}}}),Za.prototype=new Ka,Za.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===vo))return!0;if(this.g=vo,this.f|=1,this.i>0&&!Ja(this))return this.f&=-2,!0;var e=I;try{Ya(this),I=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return I=e,Xa(this),this.f&=-2,!0},Za.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ka.prototype.S.call(this,e)},Za.prototype.U=function(e){if(this.t!==void 0&&(Ka.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Za.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Za.prototype,"value",{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=Ga(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),no.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.m=t)}finally{e()}},no.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,$a(this),Ya(this),mo++;var e=I;return I=this,to.bind(this,e)},no.prototype.N=function(){2&this.f||(this.f|=2,this.u=po,po=this)},no.prototype.d=function(){this.f|=8,1&this.f||eo(this)},no.prototype.dispose=function(){this.d()},yo=new WeakMap,bo=new WeakMap,xo=new WeakMap,So=new WeakSet,Co=new WeakMap,wo=/^\$/,To=Object.getOwnPropertyDescriptor,Eo=!1,Do=function(e,t){var n=new Proxy(e,t);return So.add(n),n},Oo=function(){throw Error(`Don't mutate the signals directly.`)},ko=function(e){return function(t,n,r){if(Eo)return Reflect.get(t,n,r);var i=e||n[0]===`$`;if(!e&&i&&Array.isArray(t)){if(n===`$`)return xo.has(t)||xo.set(t,Do(t,jo)),xo.get(t);i=n===`$length`}yo.has(r)||yo.set(r,new Map);var a=yo.get(r),o=i?n.replace(wo,``):n;if(a.has(o)||typeof To(t,o)?.get!=`function`){var s=Reflect.get(t,o,r);if(i&&typeof s==`function`)return;if(typeof o==`symbol`&&Mo.has(o))return s;a.has(o)||(Po(s)&&(bo.has(s)||bo.set(s,Do(s,Ao)),s=bo.get(s)),a.set(o,qa(s)))}else a.set(o,Qa(function(){return Reflect.get(t,o,r)}));return i?a.get(o):a.get(o).value}},Ao={get:ko(!1),set:function(e,t,n,r){if(typeof To(e,t)?.set==`function`)return Reflect.set(e,t,n,r);yo.has(r)||yo.set(r,new Map);var i=yo.get(r);if(t[0]===`$`){n instanceof Ka||Oo();var a=t.replace(wo,``);return i.set(a,n),Reflect.set(e,a,n.peek(),r)}var o=n;Po(n)&&(bo.has(n)||bo.set(n,Do(n,Ao)),o=bo.get(n));var s=!(t in e),c=Reflect.set(e,t,n,r);return i.has(t)?i.get(t).value=o:i.set(t,qa(o)),s&&Co.has(e)&&Co.get(e).value++,Array.isArray(e)&&i.has(`length`)&&(i.get(`length`).value=e.length),c},deleteProperty:function(e,t){t[0]===`$`&&Oo();var n=yo.get(bo.get(e)),r=Reflect.deleteProperty(e,t);return n&&n.has(t)&&(n.get(t).value=void 0),Co.has(e)&&Co.get(e).value++,r},ownKeys:function(e){return Co.has(e)||Co.set(e,qa(0)),Co._=Co.get(e).value,Reflect.ownKeys(e)}},jo={get:ko(!0),set:Oo,deleteProperty:Oo},Mo=new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return typeof e==`symbol`})),No=new Set([Object,Array]),Po=function(e){return typeof e==`object`&&!!e&&No.has(e.constructor)&&!So.has(e)}})))()}function Io(e,t,n){for(n of e.keys())if(Lo(n,t))return n}function Lo(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Lo(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=Io(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=Io(t,i),!i)||!Lo(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(Bo.call(e,n)&&++r&&!Bo.call(t,n)||!(n in t)||!Lo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Ro(e,t){let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i];t(a)?n.push(a):r.push(a)}return[n,r]}function zo(e,t){let n={};for(let r=0;r<e.length;r++){let i=e[r],a=t(i);n[a]=(n[a]??0)+1}return n}var Bo;function Vo(){return(Vo=t((()=>{o(),o(),Bo=Object.prototype.hasOwnProperty})))()}function Ho(){return new _a({transport:{setHandler:()=>{},send:()=>{}}})}var Uo,Wo,Go;function Ko(){return(Ko=t((()=>{ya(),Uo={AUTODOCS:`autodocs`,ATTACHED_MDX:`attached-mdx`,UNATTACHED_MDX:`unattached-mdx`,PLAY_FN:`play-fn`,TEST_FN:`test-fn`,DEV:`dev`,TEST:`test`,MANIFEST:`manifest`},Wo={_docs:(e,t)=>t?e.type!==`docs`:e.type===`docs`,_play:(e,t)=>t?e.type!==`story`||!e.tags?.includes(Uo.PLAY_FN):e.type===`story`&&!!e.tags?.includes(Uo.PLAY_FN),_test:(e,t)=>t?e.type!==`story`||e.subtype!==`test`:e.type===`story`&&e.subtype===`test`},Go=e=>(t,n)=>n?!t.tags?.includes(e):!!t.tags?.includes(e)})))()}function qo(e){let t=e.length;if(t===0)return``;let n=``,r=0,i=0;outer:for(;i<t;i++){let a=e.charCodeAt(i);for(;a<128;){if(rs[a]!==1&&(r<i&&(n+=e.slice(r,i)),r=i+1,n+=ns[a]),++i===t)break outer;a=e.charCodeAt(i)}if(r<i&&(n+=e.slice(r,i)),a<2048){r=i+1,n+=ns[192|a>>6]+ns[128|a&63];continue}if(a<55296||a>=57344){r=i+1,n+=ns[224|a>>12]+ns[128|a>>6&63]+ns[128|a&63];continue}if(++i,i>=t)throw Error(`URI malformed`);let o=e.charCodeAt(i)&1023;r=i+1,a=65536+((a&1023)<<10|o),n+=ns[240|a>>18]+ns[128|a>>12&63]+ns[128|a>>6&63]+ns[128|a&63]}return r===0?e:r<t?n+e.slice(r):n}function Jo(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function Yo(e,t,n,r,i){if(Jo(t))return e;let a=e[t];return typeof a==`object`&&a?a:e[t]=!r&&(i||typeof n==`number`||typeof n==`string`&&n*0==0&&n.indexOf(`.`)===-1)?[]:{}}function Xo(e,t,n=0,r,i){let{nestingSyntax:a=ss.nestingSyntax,arrayRepeat:o=ss.arrayRepeat,arrayRepeatSyntax:s=ss.arrayRepeatSyntax,nesting:c=ss.nesting,delimiter:l=ss.delimiter,valueSerializer:u=ss.valueSerializer,shouldSerializeObject:d=ss.shouldSerializeObject}=t,f=typeof l==`number`?String.fromCharCode(l):l,p=i===!0&&o,m=a===`dot`||a===`js`&&!i;if(n>cs)return``;let h=``,g=!0,_=!1;for(let i in e){let a=e[i];if(a===void 0)continue;let l;r?(l=r,p?s===`bracket`&&(l+=ls):m?(l+=fs,l+=i):(l+=us,l+=i,l+=ds)):l=i,g||(h+=f),typeof a==`object`&&a&&!d(a)?(_=a.pop!==void 0,(c||o&&_)&&(h+=Xo(a,t,n+1,l,_))):(h+=qo(l),h+=`=`,h+=u(a,i)),g&&=!1}return h}function Zo(e){let t=e.indexOf(`%`);if(t===-1)return e;let n=e.length,r=``,i=0,a=0,o=t,s=12;for(;t>-1&&t<n;){let c=Qo(e[t+1],4)|Qo(e[t+2],0),l=ps[c];if(s=ps[256+s+l],a=a<<6|c&ps[364+l],s===12)r+=e.slice(i,o),r+=a<=65535?String.fromCharCode(a):String.fromCharCode(55232+(a>>10),56320+(a&1023)),a=0,i=t+3,t=o=e.indexOf(`%`,i);else{if(s===0)return null;if(t+=3,t<n&&e.charCodeAt(t)===37)continue;return null}}return r+e.slice(i)}function Qo(e,t){let n=ms[e];return n===void 0?255:n<<t}function $o(e,t,n,r,i){let a=e.substring(t,n);return r&&(a=a.replace(hs,` `)),i&&(a=Zo(a)||a),a}function es(e,t){let{valueDeserializer:n=ss.valueDeserializer,keyDeserializer:r=ss.keyDeserializer,arrayRepeatSyntax:i=ss.arrayRepeatSyntax,nesting:a=ss.nesting,arrayRepeat:o=ss.arrayRepeat,nestingSyntax:s=ss.nestingSyntax,delimiter:c=ss.delimiter}=t??{},l=typeof c==`string`?c.charCodeAt(0):c,u=s===`js`,d=new gs;if(typeof e!=`string`)return d;let f=e.length,p=``,m=-1,h=-1,g=-1,_=d,v,y=``,b=``,x=!1,S=!1,C=!1,w=!1,T=!1,E=!1,D=0,O=-1,k=-1,ee=-1;for(let t=0;t<f+1;t++){if(D=t===f?l:e.charCodeAt(t),D===l){if(E=h>m,E||(h=t),g!==h-1&&(b=$o(e,g+1,O>-1?O:h,C,x),y=r(b),v!==void 0&&(_=Yo(_,v,y,u&&T,void 0))),E||y!==``){E&&(p=e.slice(h+1,t),w&&(p=p.replace(hs,` `)),S&&(p=Zo(p)||p));let r=n(p,y);if(o){let e=_[y];e===void 0?O>-1?_[y]=[r]:_[y]=r:e.pop?e.push(r):_[y]=[e,r]}else _[y]=r}p=``,m=t,h=t,x=!1,S=!1,C=!1,w=!1,T=!1,O=-1,g=t,_=d,v=void 0,y=``}else D===93?(o&&i===`bracket`&&ee===91&&(O=k),a&&(s===`index`||u)&&h<=m&&(g!==k&&(b=$o(e,g+1,t,C,x),y=r(b),v!==void 0&&(_=Yo(_,v,y,void 0,void 0)),v=y,C=!1,x=!1),g=t,T=!1)):D===46?a&&(s===`dot`||u)&&h<=m&&(g!==k&&(b=$o(e,g+1,t,C,x),y=r(b),v!==void 0&&(_=Yo(_,v,y,u)),v=y,C=!1,x=!1),T=!0,g=t):D===91?a&&(s===`index`||u)&&h<=m&&(g!==k&&(b=$o(e,g+1,t,C,x),y=r(b),u&&v!==void 0&&(_=Yo(_,v,y,u)),v=y,C=!1,x=!1,T=!1),g=t):D===61?h<=m?h=t:S=!0:D===43?h>m?w=!0:C=!0:D===37&&(h>m?S=!0:x=!0);k=t,ee=D}return d}function ts(e,t){return typeof e!=`object`||!e?``:Xo(e,t??{})}var ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs;function _s(){return(_s=t((()=>{ns=Array.from({length:256},(e,t)=>`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase()),rs=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]),is=e=>{switch(typeof e){case`string`:return qo(e);case`bigint`:case`boolean`:return``+e;case`number`:if(Number.isFinite(e))return e<1e21?``+e:qo(``+e)}return e instanceof Date?qo(e.toISOString()):``},as=e=>e instanceof Date,os=e=>e,ss={nesting:!0,nestingSyntax:`dot`,arrayRepeat:!1,arrayRepeatSyntax:`repeat`,delimiter:38,valueDeserializer:os,valueSerializer:is,keyDeserializer:os,shouldSerializeObject:as},cs=20,ls=`[]`,us=`[`,ds=`]`,fs=`.`,ps=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7],ms={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},hs=/\+/g,gs=function(){},gs.prototype=Object.create(null)})))()}var vs;function ys(){return(ys=t((()=>{vs=e=>e})))()}function bs(e){return`${e}.json`}var xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As;function js(){return(js=t((()=>{Fo(),ys(),xs=`storybook/measure-addon`,`${xs}`,`${xs}`,`${xs}`,`${xs}`,Ss=Ia({id:F()}),Cs=Na(e=>typeof e==`object`&&!!e&&!Array.isArray(e)),ws=Ia({name:F(),message:F()}),Ts=Ra(F(),Ma(F())),Es={name:F(),path:F(),description:La(F()),summary:La(F()),jsDocTags:Ts,argTypes:La(Cs),error:La(ws)},Ds={...Es,import:La(F())},Os=Pa(Ds),ks=Pa({id:F(),...Es,subcomponents:La(Ra(F(),Os))}),As=La(ks),vs({id:`core/docgen`,description:`Component documentation (name, description, props, JSDoc tags) keyed by component id.`,initialState:{components:{}},queries:{docgen:{description:`Returns the docgen payload for one component id, or undefined when not loaded.`,input:Ss,output:As,handler:(e,t)=>t.self.state.components[e.id],load:async(e,t)=>{await t.self.commands.extractDocgen(e)},staticPath:e=>bs(e.id)},docgenForAllComponents:{description:`Returns docgen payloads for every component in the story index.`,input:Va(),output:Ra(F(),ks),handler:(e,t)=>t.self.state.components,load:async(e,t)=>{await t.self.commands.extractAllDocgen(void 0)}}},commands:{extractDocgen:{description:`Resolves the story entry for a component id, runs the registered provider chain, writes the result into state, and returns it (or undefined when no provider produced docgen).`,input:Ss,output:As},extractAllDocgen:{description:"Extracts docgen for every component id in the story index by invoking `extractDocgen` for each.",input:za(),output:Va()}}})})))()}function Ms(){return(Ms=t((()=>{})))()}var Ns,Ps;function Fs(){return(Fs=t((()=>{Ns=`storybook/actions`,`${Ns}`,Ps=`${Ns}/action-event`,`${Ns}`})))()}function Is(e,t={}){let n={...Ls,...t},r=function(...r){if(t.implicit){let t=(`__STORYBOOK_PREVIEW__`in zs?zs.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(e=>e.phase===`playing`||e.phase===`rendering`);if(t){let n=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,r=new Rs({phase:t.phase,name:e,deprecated:n});if(n)console.warn(r);else throw r}}let i=Bs.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),o=r.map(Us),s={id:a,count:0,data:{name:e,args:r.length>1?o:o[0]},options:{...n,maxDepth:5+(n.depth||3)}};i.emit(Ps,s)};return r.isAction=!0,r.implicit=t.implicit,r}var Ls,Rs,zs,Bs,Vs,Hs,Us;function Ws(){return(Ws=t((()=>{Fs(),Ls={depth:10,clearOnStoryChange:!0,limit:50},{ImplicitActionsDuringRendering:Rs}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:zs}=__STORYBOOK_MODULE_GLOBAL__,{addons:Bs}=__STORYBOOK_MODULE_PREVIEW_API__,Vs=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:Vs(n,t)},Hs=e=>!!(typeof e==`object`&&e&&Vs(e,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof e.persist==`function`),Us=e=>{if(Hs(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,`view`),r=n?.value;return typeof r==`object`&&r?.constructor.name===`Window`&&Object.defineProperty(t,"view",{...n,value:Object.create(r.constructor.prototype)}),t}return e}})))()}var Gs;function Ks(){return(Ks=t((()=>{Gs=`storybook/background`,`${Gs}`})))()}var qs;function Js(){return(Js=t((()=>{qs={CALL:`storybook/instrumenter/call`,SYNC:`storybook/instrumenter/sync`,START:`storybook/instrumenter/start`,BACK:`storybook/instrumenter/back`,GOTO:`storybook/instrumenter/goto`,NEXT:`storybook/instrumenter/next`,END:`storybook/instrumenter/end`}})))()}function Ys(e){return String(e)}function Xs(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function Zs(e=!1){let t=Xs(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of Ku)i[e]=t?r(a(n[0]),a(n[1]),n[2]):Ys;return i}function Qs(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function $s(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function ec(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function tc(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function nc(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function rc(e,t,n,r,i,a){let o=``,s=$s(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function ic(e){return ed.has(e)||td.test(e)}function ac(e){return e.constructor.name===`NamedNodeMap`}function oc(e){return e.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function sc(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
19
19
  `)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function cc(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?lc(e,t):a(e,t,n,r,i))).join(``)}function lc(e,t){let n=t.colors.content;return n.open+oc(e)+n.close}function uc(e,t){let n=t.colors.comment;return`${n.open}<!--${oc(e)}-->${n.close}`}function dc(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function fc(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}function pc(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function mc(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||pc(e);return n===ad&&(ld.test(t)||i)||n===od&&t===`Text`||n===sd&&t===`Comment`||n===cd&&t===`DocumentFragment`}function hc(e){return e.nodeType===od}function gc(e){return e.nodeType===sd}function _c(e){return e.nodeType===cd}function vc(e,t,n,r,i,a,o){return++r>t.maxDepth?Cd(Sd(o)):`${Sd(o)+wd}{${ec(e.entries(),t,n,r,i,a)}}`}function yc(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function bc(e,t,n,r,i,a){let o=Sd(e._name||`Record`);return++r>t.maxDepth?Cd(o):`${o+wd}{${ec(yc(e),t,n,r,i,a)}}`}function xc(e,t,n,r,i,a){let o=Sd(`Seq`);return++r>t.maxDepth?Cd(o):e[hd]?`${o+wd}{${e._iter||e._object?ec(e.entries(),t,n,r,i,a):Td}}`:`${o+wd}[${e._iter||e._array||e._collection||e._iterable?tc(e.values(),t,n,r,i,a):Td}]`}function Sc(e,t,n,r,i,a,o){return++r>t.maxDepth?Cd(Sd(o)):`${Sd(o)+wd}[${tc(e.values(),t,n,r,i,a)}]`}function Cc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wc(){if(Ad)return L;Ad=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return L.ContextConsumer=a,L.ContextProvider=o,L.Element=e,L.ForwardRef=s,L.Fragment=n,L.Lazy=d,L.Memo=u,L.Portal=t,L.Profiler=i,L.StrictMode=r,L.Suspense=c,L.SuspenseList=l,L.isContextConsumer=function(e){return m(e)===a},L.isContextProvider=function(e){return m(e)===o},L.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},L.isForwardRef=function(e){return m(e)===s},L.isFragment=function(e){return m(e)===n},L.isLazy=function(e){return m(e)===d},L.isMemo=function(e){return m(e)===u},L.isPortal=function(e){return m(e)===t},L.isProfiler=function(e){return m(e)===i},L.isStrictMode=function(e){return m(e)===r},L.isSuspense=function(e){return m(e)===c},L.isSuspenseList=function(e){return m(e)===l},L.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&!!e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0)},L.typeOf=m,L}function Tc(){return jd||(jd=1,kd.exports=wc()),kd.exports}function Ec(){if(Fd)return R;Fd=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return R.ContextConsumer=o,R.ContextProvider=a,R.Element=e,R.ForwardRef=c,R.Fragment=n,R.Lazy=f,R.Memo=d,R.Portal=t,R.Profiler=i,R.StrictMode=r,R.Suspense=l,R.SuspenseList=u,R.isAsyncMode=function(){return!1},R.isConcurrentMode=function(){return!1},R.isContextConsumer=function(e){return h(e)===o},R.isContextProvider=function(e){return h(e)===a},R.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},R.isForwardRef=function(e){return h(e)===c},R.isFragment=function(e){return h(e)===n},R.isLazy=function(e){return h(e)===f},R.isMemo=function(e){return h(e)===d},R.isPortal=function(e){return h(e)===t},R.isProfiler=function(e){return h(e)===i},R.isStrictMode=function(e){return h(e)===r},R.isSuspense=function(e){return h(e)===l},R.isSuspenseList=function(e){return h(e)===u},R.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0)},R.typeOf=h,R}function Dc(){return Id||(Id=1,Pd.exports=Ec()),Pd.exports}function Oc(e,t=[]){if(Array.isArray(e))for(let n of e)Oc(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function kc(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(zd.isFragment(e))return`React.Fragment`;if(zd.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(zd.isContextProvider(e))return`Context.Provider`;if(zd.isContextConsumer(e))return`Context.Consumer`;if(zd.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(zd.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function Ac(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}function jc(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}function Mc(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function Nc(e){return typeof window<`u`&&e===window}function Pc(e){return e===`[object Array]`||e===`[object ArrayBuffer]`||e===`[object DataView]`||e===`[object Float32Array]`||e===`[object Float64Array]`||e===`[object Int8Array]`||e===`[object Int16Array]`||e===`[object Int32Array]`||e===`[object Uint8Array]`||e===`[object Uint8ClampedArray]`||e===`[object Uint16Array]`||e===`[object Uint32Array]`}function Fc(e){return Object.is(e,-0)?`-0`:String(e)}function Ic(e){return`${e}n`}function Lc(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function Rc(e){return String(e).replace(Zd,`Symbol($1)`)}function zc(e){return`[${Yd.call(e)}]`}function Bc(e,t,n,r){if(e===!0||e===!1)return`${e}`;if(e===void 0)return`undefined`;if(e===null)return`null`;let i=typeof e;if(i===`number`)return Fc(e);if(i===`bigint`)return Ic(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return Lc(e,t);if(i===`symbol`)return Rc(e);let a=qd.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?Lc(e,t):a===`[object Symbol]`?Rc(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:Jd.call(e):a===`[object Error]`?zc(e):a===`[object RegExp]`?n?Xd.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):Xd.call(e):e instanceof Error?zc(e):null}function Vc(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return Gc(e.toJSON(),t,n,r,i,!0);let c=qd.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${nc(e,t,n,r,i,Gc)}]`:Pc(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${nc(e,t,n,r,i,Gc)}]`:c===`[object Map]`?o?`[Map]`:`Map {${ec(e.entries(),t,n,r,i,Gc,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${tc(e.values(),t,n,r,i,Gc)}}`:o||Nc(e)?`[${Mc(e)}]`:`${s||!t.printBasicPrototype&&Mc(e)===`Object`?``:`${Mc(e)} `}{${rc(e,t,n,r,i,Gc)}}`}function Hc(e){return e.serialize!=null}function Uc(e,t,n,r,i,a){let o;try{o=Hc(e)?e.serialize(t,n,r,i,a,Gc):e.print(t,e=>Gc(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(Qd,`
20
20
  ${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new $d(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function Wc(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new $d(e.message,e.stack)}return null}function Gc(e,t,n,r,i,a){let o=Wc(t.plugins,e);if(o!==null)return Uc(o,e,t,n,r,i);let s=Bc(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?Vc(e,t,n,r,i,a):s}function Kc(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(rf,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function qc(){return nf.reduce((e,t)=>{let n=tf[t],r=n&&qu[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function Jc(){return nf.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function Yc(e){return e?.printFunctionName??rf.printFunctionName}function Xc(e){return e?.escapeRegex??rf.escapeRegex}function Zc(e){return e?.escapeString??rf.escapeString}function Qc(e){return{callToJSON:e?.callToJSON??rf.callToJSON,colors:e?.highlight?qc():Jc(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:rf.compareKeys,escapeRegex:Xc(e),escapeString:Zc(e),indent:e?.min?``:$c(e?.indent??rf.indent),maxDepth:e?.maxDepth??rf.maxDepth,maxWidth:e?.maxWidth??rf.maxWidth,min:e?.min??rf.min,plugins:e?.plugins??rf.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Yc(e),spacingInner:e?.min?` `:`
21
21
  `,spacingOuter:e?.min?``:`
22
22
  `}}function $c(e){return Array.from({length:e+1}).join(` `)}function el(e,t){if(t&&(Kc(t),t.plugins)){let n=Wc(t.plugins,e);if(n!==null)return Uc(n,e,Qc(t),``,0,[])}let n=Bc(e,Yc(t),Xc(t),Zc(t));return n===null?Vc(e,Qc(t),``,0,[]):n}function tl(e,t){let n=of[sf[t]]||of[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function nl({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=tl),d}function rl(e){return e>=`\ud800`&&e<=`\udbff`}function il(e,t,n=cf){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&rl(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function al(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${cf}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${cf}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function ol(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function sl([e,t],n){return n.truncate-=2,typeof e==`string`?e=ol(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function cl(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=al(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=al(n.map(t=>[t,e[t]]),t,sl)),`[ ${r}${i?`, ${i}`:``} ]`}function ll(e,t){let n=lf(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(il(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${cf}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=al(r.map(t=>[t,e[t]]),t,sl)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function ul(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${il(r[1],t.truncate-i.length-1)}`,`date`)}function dl(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${il(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function fl([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function pl(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function ml(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${al(pl(e),t,fl)} }`)}function hl(e,t){return uf(e)?t.stylize(`NaN`,`number`):e===1/0?t.stylize(`Infinity`,`number`):e===-1/0?t.stylize(`-Infinity`,`number`):e===0?t.stylize(1/e==1/0?`+0`:`-0`,`number`):t.stylize(il(String(e),t.truncate),`number`)}function gl(e,t){let n=il(e.toString(),t.truncate-1);return n!==cf&&(n+=`n`),t.stylize(n,`bigint`)}function _l(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${il(i,r)}/${n}`,`regexp`)}function vl(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function yl(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${al(vl(e),t)} }`)}function bl(e){return ff[e]||`\\u${`0000${e.charCodeAt(0).toString(pf)}`.slice(-mf)}`}function xl(e,t){return df.test(e)&&(e=e.replace(df,bl)),t.stylize(`'${il(e,t.truncate-2)}'`,`string`)}function Sl(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}function Cl(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=al(n.map(t=>[t,e[t]]),t,sl),a=al(r.map(t=>[t,e[t]]),t,sl);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}function wl(e,t){let n=``;return _f&&_f in e&&(n=e[_f]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${Cl(e,t)}`}function Tl(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${al(e,t)} ]`)}function El(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>vf.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=il(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=al(n.map(t=>[t,e[t]]),t,sl);return`${r}${i}${a?` { ${a} }`:``}`}function Dl([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function Ol(e,t){return al(e,t,kl,`
23
- `)}function kl(e,t){switch(e.nodeType){case 1:return Al(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Al(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=al(n.map(t=>[t,e.getAttribute(t)]),t,Dl,` `)),t.truncate-=s.length;let c=t.truncate,l=Ol(e.children,t);return l&&l.length>c&&(l=`${cf}(${e.children.length})`),`${i}${s}${a}${l}${o}`}function jl(e,t={}){let n=nl(t,jl),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=Tf.call(e).slice(8,-1)),i in Cf)return Cf[i](e,n);if(r&&e){let t=wf(e,n,i);if(t)return typeof t==`string`?t:jl(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Cl(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?Al(e,n):`constructor`in e?e.constructor===Object?Cl(e,n):wl(e,n):e===Object(e)?Cl(e,n):n.stylize(String(e),i)}function Ml(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=el(e,{maxDepth:t,escapeString:!1,plugins:Mf,...r})}catch{a=el(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Mf,...r})}return a.length>=i&&t>1?Ml(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}function Nl(...e){if(typeof e[0]!=`string`){let t=[];for(let n=0;n<e.length;n++)t.push(Pl(e[n],{depth:0,colors:!1}));return t.join(` `)}let t=e.length,n=1,r=e[0],i=String(r).replace(Nf,r=>{if(r===`%%`)return`%`;if(n>=t)return r;switch(r){case`%s`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():Pl(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[n++])).toString();case`%o`:return Pl(e[n++],{showHidden:!0,showProxy:!0});case`%O`:return Pl(e[n++]);case`%c`:return n++,``;case`%j`:try{return JSON.stringify(e[n++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return r}});for(let r=e[n];n<t;r=e[++n])i+=typeof r!=`object`||!r?` ${r}`:` ${Pl(r)}`;return i}function Pl(e,t={}){return t.truncate===0&&(t.truncate=1/0),jl(e,t)}function Fl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Il(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Ll(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Rl(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function zl(e){let t=new Set;return Il(e)?[]:(Rl(e,t),Array.from(t))}function Bl(e,t=Pf){return Vl(e,new WeakMap,t)}function Vl(e,t,n=Pf){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=Vl(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=zl(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=Vl(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function Hl(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Ul(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Wl(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function Gl(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===Lf?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===If?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new Rf(Ff,i)),e[n[r-1]+1][0]=If,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&ql(e),Kl(e),a=1;a<e.length;){if(e[a-1][0]===Ff&&e[a][0]===If){let t=e[a-1][1],n=e[a][1],r=Wl(t,n),i=Wl(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new Rf(Lf,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new Rf(Lf,t.substring(0,i))),e[a-1][0]=If,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=Ff,e[a+1][1]=t.substring(i),a++),a++}a++}}function Kl(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Lf&&e[t+1][0]===Lf){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=Ul(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=Jl(n,r)+Jl(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=Jl(n,r)+Jl(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function ql(e){e.push(new Rf(Lf,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case If:r++,a+=e[t][1],t++;break;case Ff:n++,i+=e[t][1],t++;break;case Lf:n+r>1?(n!==0&&r!==0&&(o=Hl(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===Lf?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new Rf(Lf,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=Ul(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new Rf(Ff,i)),t++),a.length&&(e.splice(t,0,new Rf(If,a)),t++),t++):t!==0&&e[t-1][0]===Lf?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Lf&&e[t+1][0]===Lf&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&ql(e)}function Jl(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(zf),a=r.match(zf),o=i&&n.match(Bf),s=a&&r.match(Bf),c=o&&n.match(Vf),l=s&&r.match(Vf),u=c&&e.match(Hf),d=l&&t.match(Uf);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}function Yl(){if(qf)return Kf;qf=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[+!!a];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:T}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&T<i&&c(C,w,n,T,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return Kf}function Xl(e,t){return e.replace(/\s+$/,e=>t(e))}function Zl(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${Xl(e,i)}`)}function Ql(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Zl(e,t,n,r,i,a)}function $l(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Zl(e,t,n,r,i,a)}function eu(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Zl(e,t,n,r,i,a)}function tu(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function nu(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===Lf;)c+=1;if(t!==c)if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}for(;c!==n&&e[c][0]!==Lf;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(eu(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(Ql(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push($l(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===Lf;)c+=1;if(a!==c)if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=tu(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}for(;c!==n&&e[c][0]===Ff;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===If;)y(e[c][1]),c+=1}return l&&(d[f]=tu(p,h,m,g,t)),d.join(`
23
+ `)}function kl(e,t){switch(e.nodeType){case 1:return Al(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Al(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=al(n.map(t=>[t,e.getAttribute(t)]),t,Dl,` `)),t.truncate-=s.length;let c=t.truncate,l=Ol(e.children,t);return l&&l.length>c&&(l=`${cf}(${e.children.length})`),`${i}${s}${a}${l}${o}`}function jl(e,t={}){let n=nl(t,jl),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=Tf.call(e).slice(8,-1)),i in Cf)return Cf[i](e,n);if(r&&e){let t=wf(e,n,i);if(t)return typeof t==`string`?t:jl(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Cl(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?Al(e,n):`constructor`in e?e.constructor===Object?Cl(e,n):wl(e,n):e===Object(e)?Cl(e,n):n.stylize(String(e),i)}function Ml(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=el(e,{maxDepth:t,escapeString:!1,plugins:Mf,...r})}catch{a=el(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Mf,...r})}return a.length>=i&&t>1?Ml(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}function Nl(...e){if(typeof e[0]!=`string`){let t=[];for(let n=0;n<e.length;n++)t.push(Pl(e[n],{depth:0,colors:!1}));return t.join(` `)}let t=e.length,n=1,r=e[0],i=String(r).replace(Nf,r=>{if(r===`%%`)return`%`;if(n>=t)return r;switch(r){case`%s`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():Pl(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[n++])).toString();case`%o`:return Pl(e[n++],{showHidden:!0,showProxy:!0});case`%O`:return Pl(e[n++]);case`%c`:return n++,``;case`%j`:try{return JSON.stringify(e[n++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return r}});for(let r=e[n];n<t;r=e[++n])i+=typeof r!=`object`||!r?` ${r}`:` ${Pl(r)}`;return i}function Pl(e,t={}){return t.truncate===0&&(t.truncate=1/0),jl(e,t)}function Fl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Il(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Ll(e){return Object.prototype.toString.apply(e).slice(8,-1)}function Rl(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function zl(e){let t=new Set;return Il(e)?[]:(Rl(e,t),Array.from(t))}function Bl(e,t=Pf){return Vl(e,new WeakMap,t)}function Vl(e,t,n=Pf){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=Vl(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=zl(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=Vl(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function Hl(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Ul(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Wl(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function Gl(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===Lf?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===If?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new Rf(Ff,i)),e[n[r-1]+1][0]=If,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&ql(e),Kl(e),a=1;a<e.length;){if(e[a-1][0]===Ff&&e[a][0]===If){let t=e[a-1][1],n=e[a][1],r=Wl(t,n),i=Wl(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new Rf(Lf,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new Rf(Lf,t.substring(0,i))),e[a-1][0]=If,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=Ff,e[a+1][1]=t.substring(i),a++),a++}a++}}function Kl(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Lf&&e[t+1][0]===Lf){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=Ul(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=Jl(n,r)+Jl(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=Jl(n,r)+Jl(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function ql(e){e.push(new Rf(Lf,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case If:r++,a+=e[t][1],t++;break;case Ff:n++,i+=e[t][1],t++;break;case Lf:n+r>1?(n!==0&&r!==0&&(o=Hl(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===Lf?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new Rf(Lf,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=Ul(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new Rf(Ff,i)),t++),a.length&&(e.splice(t,0,new Rf(If,a)),t++),t++):t!==0&&e[t-1][0]===Lf?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===Lf&&e[t+1][0]===Lf&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),s=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),s=!0)),t++;s&&ql(e)}function Jl(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(zf),a=r.match(zf),o=i&&n.match(Bf),s=a&&r.match(Bf),c=o&&n.match(Vf),l=s&&r.match(Vf),u=c&&e.match(Hf),d=l&&t.match(Uf);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}function Yl(){if(qf)return Kf;qf=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[+!!a];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:T}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&T<i&&c(C,w,n,T,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return Kf}function Xl(e,t){return e.replace(/\s+$/,e=>t(e))}function Zl(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${Xl(e,i)}`)}function Ql(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Zl(e,t,n,r,i,a)}function $l(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Zl(e,t,n,r,i,a)}function eu(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return Zl(e,t,n,r,i,a)}function tu(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function nu(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===Lf;)c+=1;if(t!==c){if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}}for(;c!==n&&e[c][0]!==Lf;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(eu(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(Ql(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push($l(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===Lf;)c+=1;if(a!==c){if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=tu(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}}for(;c!==n&&e[c][0]===Ff;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===If;)y(e[c][1]),c+=1}return l&&(d[f]=tu(p,h,m,g,t)),d.join(`
24
24
  `)}function ru(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case Ff:return Ql(i,a,t);case If:return $l(i,a,t);default:return eu(i,a,t)}}).join(`
25
25
  `)}function iu(){return{aAnnotation:`Expected`,aColor:qu.green,aIndicator:`-`,bAnnotation:`Received`,bColor:qu.red,bIndicator:`+`,changeColor:qu.inverse,changeLineTrailingSpaceColor:Yf,commonColor:qu.dim,commonIndicator:` `,commonLineTrailingSpaceColor:Yf,compareKeys:void 0,contextLines:Xf,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:qu.yellow,printBasicPrototype:!1,truncateThreshold:Zf,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:Yf}}function au(e){return e&&typeof e==`function`?e:void 0}function ou(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:Xf}function su(e={}){return{...iu(),...e,compareKeys:au(e.compareKeys),contextLines:ou(e.contextLines)}}function cu(e){return e.length===1&&e[0].length===0}function lu(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case Ff:t+=1;break;case If:n+=1}}),{a:t,b:n}}function uu({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}
26
26
  ${i(f)}
@@ -58,11 +58,11 @@ ${r}`)),r}function ku(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=s
58
58
  `)||e.includes(`
59
59
  `))return xu(t,e,n);let[a]=Su(t,e,!0),o=a.some(e=>e[0]===Lf),s=Fu(r,i);return`${s(r)+Ru(zu(a,Ff,o))}
60
60
  ${s(i)+Lu(zu(a,If,o))}`}let a=Bl(t,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=Pu(Bl(e,{forceWritable:!0}),a);return wu(o,s,n)}function Pu(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<`u`&&typeof t.cause>`u`?(delete e.cause,{replacedActual:e,replacedExpected:t}):Mu(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),zl(t).forEach(i=>{let a=t[i],o=e[i];if(ju(a))a.asymmetricMatch(o)&&(e[i]=a);else if(ju(o))o.asymmetricMatch(a)&&(t[i]=o);else if(Mu(o,a)){let s=Pu(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Fu(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}function Iu(e){return e.replace(/\s+$/gm,e=>up.repeat(e.length))}function Lu(e){return qu.red(Iu(Ml(e)))}function Ru(e){return qu.green(Iu(Ml(e)))}function zu(e,t,n){return e.reduce((e,r)=>e+(r[0]===Lf?r[1]:r[0]===t?n?qu.inverse(r[1]):r[1]:``),``)}function Bu(e){return e&&(e[fp]||e[dp])}function Vu(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function Hu(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&Uu(()=>n.message??=e.message),typeof e.stack==`string`&&Uu(()=>n.stack??=e.stack),typeof e.name==`string`&&Uu(()=>n.name??=e.name),e.cause!=null&&Uu(()=>n.cause??=Hu(e.cause,t))),Hu(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Bu(e))return Hu(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype===`AsyncFunction`)return`Promise`;if(typeof Element<`u`&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch==`function`)return`${e.toString()} ${Nl(e.sample)}`;if(typeof e.toJSON==`function`)return Hu(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=Hu(e,t)}catch(e){n[r]=Vu(e)}}),n}{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==pp;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=Hu(e[r],t)}catch(e){delete n[r],n[r]=Vu(e)}}),r=Object.getPrototypeOf(r);return n}}function Uu(e){try{return e()}catch{}}function Wu(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``)}function Gu(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=Nu(r.actual,r.expected,{...t,...r.diffOptions})),`expected`in r&&typeof r.expected!=`string`&&(r.expected=Ml(r.expected,10)),`actual`in r&&typeof r.actual!=`string`&&(r.actual=Ml(r.actual,10));try{typeof r.message==`string`&&(r.message=Wu(r.message))}catch{}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=Gu(r.cause,t,n))}catch{}try{return Hu(r)}catch(e){return Hu(Error(`Failed to fully serialize error: ${e?.message}
61
- Inner error message: ${r?.message}`))}}var Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,L,Ad,jd,Md,Nd,Pd,R,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp;function mp(){return(mp=e((()=>{Ku=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}),Ys.open=``,Ys.close=``,Ku.reduce((e,[t])=>(e[t]=Ys,e),{isColorSupported:!1}),qu=Zs(),Ju=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,Yu=` `,Xu=(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Yu}[${nc(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Yu}{${rc(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+Yu+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},Zu=e=>e&&e.$$typeof===Ju,Qu={serialize:Xu,test:Zu},$u=` `,ed=new Set([`DOMStringMap`,`NamedNodeMap`]),td=/^(?:HTML\w*Collection|NodeList)$/,nd=e=>e&&e.constructor&&!!e.constructor.name&&ic(e.constructor.name),rd=(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+$u)+(ed.has(o)?`{${rc(ac(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${nc([...e],t,n,r,i,a)}]`)},id={serialize:rd,test:nd},ad=1,od=3,sd=8,cd=11,ld=/^(?:(?:HTML|SVG)\w*)?Element$/,ud=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&mc(e)},dd=(e,t,n,r,i,a)=>{if(hc(e))return lc(e.data,t);if(gc(e))return uc(e.data,t);let o=_c(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?fc(o,t):dc(o,sc(_c(e)?[]:Array.from(e.attributes,e=>e.name).sort(),_c(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),cc(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},fd={serialize:dd,test:ud},pd=`@@__IMMUTABLE_ITERABLE__@@`,md=`@@__IMMUTABLE_LIST__@@`,hd=`@@__IMMUTABLE_KEYED__@@`,gd=`@@__IMMUTABLE_MAP__@@`,_d=`@@__IMMUTABLE_ORDERED__@@`,vd=`@@__IMMUTABLE_RECORD__@@`,yd=`@@__IMMUTABLE_SEQ__@@`,bd=`@@__IMMUTABLE_SET__@@`,xd=`@@__IMMUTABLE_STACK__@@`,Sd=e=>`Immutable.${e}`,Cd=e=>`[${e}]`,wd=` `,Td=`…`,Ed=(e,t,n,r,i,a)=>e[gd]?vc(e,t,n,r,i,a,e[_d]?`OrderedMap`:`Map`):e[md]?Sc(e,t,n,r,i,a,`List`):e[bd]?Sc(e,t,n,r,i,a,e[_d]?`OrderedSet`:`Set`):e[xd]?Sc(e,t,n,r,i,a,`Stack`):e[yd]?xc(e,t,n,r,i,a):bc(e,t,n,r,i,a),Dd=e=>e&&(e[pd]===!0||e[vd]===!0),Od={serialize:Ed,test:Dd},kd={exports:{}},L={},Md=Tc(),Nd=Qs({__proto__:null,default:Cc(Md)},[Md]),Pd={exports:{}},R={},Ld=Dc(),Rd=Qs({__proto__:null,default:Cc(Ld)},[Ld]),zd=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>Rd[e](t)||Nd[e](t)])),Bd=(e,t,n,r,i,a)=>++r>t.maxDepth?fc(kc(e),t):dc(kc(e),sc(Ac(e),e.props,t,n+t.indent,r,i,a),cc(Oc(e.props.children),t,n+t.indent,r,i,a),t,n),Vd=e=>e!=null&&zd.isElement(e),Hd={serialize:Bd,test:Vd},Ud=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487,Wd=(e,t,n,r,i,a)=>++r>t.maxDepth?fc(e.type,t):dc(e.type,e.props?sc(jc(e),e.props,t,n+t.indent,r,i,a):``,e.children?cc(e.children,t,n+t.indent,r,i,a):``,t,n),Gd=e=>e&&e.$$typeof===Ud,Kd={serialize:Wd,test:Gd},qd=Object.prototype.toString,Jd=Date.prototype.toISOString,Yd=Error.prototype.toString,Xd=RegExp.prototype.toString,Zd=/^Symbol\((.*)\)(.*)$/,Qd=/\n/g,$d=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}},ef={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...typeof c<`u`?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?Mc(e):e.name;return o?`[${d}]`:`${d} {${ec(Object.entries(u).values(),t,n,r,i,a)}}`}},tf={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},nf=Object.keys(tf),rf={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:tf},af={AsymmetricMatcher:Qu,DOMCollection:id,DOMElement:fd,Immutable:Od,ReactElement:Hd,ReactTestComponent:Kd,Error:ef},of={bold:[`1`,`22`],dim:[`2`,`22`],italic:[`3`,`23`],underline:[`4`,`24`],inverse:[`7`,`27`],hidden:[`8`,`28`],strike:[`9`,`29`],black:[`30`,`39`],red:[`31`,`39`],green:[`32`,`39`],yellow:[`33`,`39`],blue:[`34`,`39`],magenta:[`35`,`39`],cyan:[`36`,`39`],white:[`37`,`39`],brightblack:[`30;1`,`39`],brightred:[`31;1`,`39`],brightgreen:[`32;1`,`39`],brightyellow:[`33;1`,`39`],brightblue:[`34;1`,`39`],brightmagenta:[`35;1`,`39`],brightcyan:[`36;1`,`39`],brightwhite:[`37;1`,`39`],grey:[`90`,`39`]},sf={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},cf=`…`,lf=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,uf=Number.isNaN||(e=>e!==e),df=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),ff={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},pf=16,mf=4,hf=()=>`Promise{…}`;try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))&&(hf=(r,i)=>{let[a,o]=e(r);return a===t?`Promise{<pending>}`:`Promise${a===n?`!`:``}{${i.inspect(o,i)}}`})}catch{}gf=hf,_f=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1,vf=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`],yf=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,bf=Symbol.for(`nodejs.util.inspect.custom`),xf=new WeakMap,Sf={},Cf={undefined:(e,t)=>t.stylize(`undefined`,`undefined`),null:(e,t)=>t.stylize(`null`,`null`),boolean:(e,t)=>t.stylize(String(e),`boolean`),Boolean:(e,t)=>t.stylize(String(e),`boolean`),number:hl,Number:hl,bigint:gl,BigInt:gl,string:xl,String:xl,function:dl,Function:dl,symbol:Sl,Symbol:Sl,Array:cl,Date:ul,Map:ml,Set:yl,RegExp:_l,Promise:gf,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:Tl,Int8Array:ll,Uint8Array:ll,Uint8ClampedArray:ll,Int16Array:ll,Uint16Array:ll,Int32Array:ll,Uint32Array:ll,Float32Array:ll,Float64Array:ll,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:El,HTMLCollection:Ol,NodeList:Ol},wf=(e,t,n)=>yf in e&&typeof e[yf]==`function`?e[yf](t):bf in e&&typeof e[bf]==`function`?e[bf](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&xf.has(e.constructor)?xf.get(e.constructor)(e,t):Sf[n]?Sf[n](e,t):``,Tf=Object.prototype.toString,{AsymmetricMatcher:Ef,DOMCollection:Df,DOMElement:Of,Immutable:kf,ReactElement:Af,ReactTestComponent:jf}=af,Mf=[jf,Af,Of,Df,kf,Ef],Nf=/%[sdjifoOc%]/g,Pf={forceWritable:!1},Ff=-1,If=1,Lf=0,Rf=class{0;1;constructor(e,t){this[0]=e,this[1]=t}},zf=/[^a-z0-9]/i,Bf=/\s/,Vf=/[\r\n]/,Hf=/\n\r?\n$/,Uf=/^\r?\n\r?\n/,Wf=`Compared values have no visual difference.`,Gf="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Kf={},Jf=Fl(Yl()),Yf=e=>e,Xf=5,Zf=0,Qf=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Rf(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new Rf(this.op,this.line[0][1]):new Rf(this.op,vu(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
61
+ Inner error message: ${r?.message}`))}}var Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,L,Ad,jd,Md,Nd,Pd,R,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp;function mp(){return(mp=t((()=>{Ku=Object.entries({reset:[0,0],bold:[1,22,`\x1B[22m\x1B[1m`],dim:[2,22,`\x1B[22m\x1B[2m`],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}),Ys.open=``,Ys.close=``,Ku.reduce((e,[t])=>(e[t]=Ys,e),{isColorSupported:!1}),qu=Zs(),Ju=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,Yu=` `,Xu=(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Yu}[${nc(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Yu}{${rc(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+Yu+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},Zu=e=>e&&e.$$typeof===Ju,Qu={serialize:Xu,test:Zu},$u=` `,ed=new Set([`DOMStringMap`,`NamedNodeMap`]),td=/^(?:HTML\w*Collection|NodeList)$/,nd=e=>e&&e.constructor&&!!e.constructor.name&&ic(e.constructor.name),rd=(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+$u)+(ed.has(o)?`{${rc(ac(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${nc([...e],t,n,r,i,a)}]`)},id={serialize:rd,test:nd},ad=1,od=3,sd=8,cd=11,ld=/^(?:(?:HTML|SVG)\w*)?Element$/,ud=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&mc(e)},dd=(e,t,n,r,i,a)=>{if(hc(e))return lc(e.data,t);if(gc(e))return uc(e.data,t);let o=_c(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?fc(o,t):dc(o,sc(_c(e)?[]:Array.from(e.attributes,e=>e.name).sort(),_c(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),cc(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},fd={serialize:dd,test:ud},pd=`@@__IMMUTABLE_ITERABLE__@@`,md=`@@__IMMUTABLE_LIST__@@`,hd=`@@__IMMUTABLE_KEYED__@@`,gd=`@@__IMMUTABLE_MAP__@@`,_d=`@@__IMMUTABLE_ORDERED__@@`,vd=`@@__IMMUTABLE_RECORD__@@`,yd=`@@__IMMUTABLE_SEQ__@@`,bd=`@@__IMMUTABLE_SET__@@`,xd=`@@__IMMUTABLE_STACK__@@`,Sd=e=>`Immutable.${e}`,Cd=e=>`[${e}]`,wd=` `,Td=`…`,Ed=(e,t,n,r,i,a)=>e[gd]?vc(e,t,n,r,i,a,e[_d]?`OrderedMap`:`Map`):e[md]?Sc(e,t,n,r,i,a,`List`):e[bd]?Sc(e,t,n,r,i,a,e[_d]?`OrderedSet`:`Set`):e[xd]?Sc(e,t,n,r,i,a,`Stack`):e[yd]?xc(e,t,n,r,i,a):bc(e,t,n,r,i,a),Dd=e=>e&&(e[pd]===!0||e[vd]===!0),Od={serialize:Ed,test:Dd},kd={exports:{}},L={},Md=Tc(),Nd=Qs({__proto__:null,default:Cc(Md)},[Md]),Pd={exports:{}},R={},Ld=Dc(),Rd=Qs({__proto__:null,default:Cc(Ld)},[Ld]),zd=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>Rd[e](t)||Nd[e](t)])),Bd=(e,t,n,r,i,a)=>++r>t.maxDepth?fc(kc(e),t):dc(kc(e),sc(Ac(e),e.props,t,n+t.indent,r,i,a),cc(Oc(e.props.children),t,n+t.indent,r,i,a),t,n),Vd=e=>e!=null&&zd.isElement(e),Hd={serialize:Bd,test:Vd},Ud=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487,Wd=(e,t,n,r,i,a)=>++r>t.maxDepth?fc(e.type,t):dc(e.type,e.props?sc(jc(e),e.props,t,n+t.indent,r,i,a):``,e.children?cc(e.children,t,n+t.indent,r,i,a):``,t,n),Gd=e=>e&&e.$$typeof===Ud,Kd={serialize:Wd,test:Gd},qd=Object.prototype.toString,Jd=Date.prototype.toISOString,Yd=Error.prototype.toString,Xd=RegExp.prototype.toString,Zd=/^Symbol\((.*)\)(.*)$/,Qd=/\n/g,$d=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}},ef={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...typeof c<`u`?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?Mc(e):e.name;return o?`[${d}]`:`${d} {${ec(Object.entries(u).values(),t,n,r,i,a)}}`}},tf={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},nf=Object.keys(tf),rf={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:tf},af={AsymmetricMatcher:Qu,DOMCollection:id,DOMElement:fd,Immutable:Od,ReactElement:Hd,ReactTestComponent:Kd,Error:ef},of={bold:[`1`,`22`],dim:[`2`,`22`],italic:[`3`,`23`],underline:[`4`,`24`],inverse:[`7`,`27`],hidden:[`8`,`28`],strike:[`9`,`29`],black:[`30`,`39`],red:[`31`,`39`],green:[`32`,`39`],yellow:[`33`,`39`],blue:[`34`,`39`],magenta:[`35`,`39`],cyan:[`36`,`39`],white:[`37`,`39`],brightblack:[`30;1`,`39`],brightred:[`31;1`,`39`],brightgreen:[`32;1`,`39`],brightyellow:[`33;1`,`39`],brightblue:[`34;1`,`39`],brightmagenta:[`35;1`,`39`],brightcyan:[`36;1`,`39`],brightwhite:[`37;1`,`39`],grey:[`90`,`39`]},sf={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},cf=`…`,lf=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,uf=Number.isNaN||(e=>e!==e),df=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),ff={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},pf=16,mf=4,hf=()=>`Promise{…}`;try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))&&(hf=(r,i)=>{let[a,o]=e(r);return a===t?`Promise{<pending>}`:`Promise${a===n?`!`:``}{${i.inspect(o,i)}}`})}catch{}gf=hf,_f=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1,vf=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`],yf=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,bf=Symbol.for(`nodejs.util.inspect.custom`),xf=new WeakMap,Sf={},Cf={undefined:(e,t)=>t.stylize(`undefined`,`undefined`),null:(e,t)=>t.stylize(`null`,`null`),boolean:(e,t)=>t.stylize(String(e),`boolean`),Boolean:(e,t)=>t.stylize(String(e),`boolean`),number:hl,Number:hl,bigint:gl,BigInt:gl,string:xl,String:xl,function:dl,Function:dl,symbol:Sl,Symbol:Sl,Array:cl,Date:ul,Map:ml,Set:yl,RegExp:_l,Promise:gf,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:Tl,Int8Array:ll,Uint8Array:ll,Uint8ClampedArray:ll,Int16Array:ll,Uint16Array:ll,Int32Array:ll,Uint32Array:ll,Float32Array:ll,Float64Array:ll,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:El,HTMLCollection:Ol,NodeList:Ol},wf=(e,t,n)=>yf in e&&typeof e[yf]==`function`?e[yf](t):bf in e&&typeof e[bf]==`function`?e[bf](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&xf.has(e.constructor)?xf.get(e.constructor)(e,t):Sf[n]?Sf[n](e,t):``,Tf=Object.prototype.toString,{AsymmetricMatcher:Ef,DOMCollection:Df,DOMElement:Of,Immutable:kf,ReactElement:Af,ReactTestComponent:jf}=af,Mf=[jf,Af,Of,Df,kf,Ef],Nf=/%[sdjifoOc%]/g,Pf={forceWritable:!1},Ff=-1,If=1,Lf=0,Rf=class{0;1;constructor(e,t){this[0]=e,this[1]=t}},zf=/[^a-z0-9]/i,Bf=/\s/,Vf=/[\r\n]/,Hf=/\n\r?\n$/,Uf=/^\r?\n\r?\n/,Wf=`Compared values have no visual difference.`,Gf="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Kf={},Jf=Fl(Yl()),Yf=e=>e,Xf=5,Zf=0,Qf=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Rf(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new Rf(this.op,this.line[0][1]):new Rf(this.op,vu(this.op,this.line,this.changeColor))),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
62
62
  `)){let e=t.split(`
63
63
  `),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},$f=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes(`
64
64
  `)){let e=n.split(`
65
- `),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new Rf(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new Rf(t,e)):e.length!==0&&this.pushDiffChangeLines(new Rf(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}},{AsymmetricMatcher:ep,DOMCollection:tp,DOMElement:np,Immutable:rp,ReactElement:ip,ReactTestComponent:ap}=af,op=[ap,ip,np,tp,rp,ep,af.Error],sp={maxDepth:20,plugins:op},cp={callToJSON:!1,maxDepth:8,plugins:op},lp=2e4,up=`·`,dp=`@@__IMMUTABLE_RECORD__@@`,fp=`@@__IMMUTABLE_ITERABLE__@@`,pp=Object.getPrototypeOf({})})))()}function hp(e,t={}){try{let n=!1,r=!1;return Sp.window?.location?.search?.includes(`instrument=true`)?n=!0:Sp.window?.location?.search?.includes(`instrument=false`)&&(r=!0),Sp.window?.parent===Sp.window&&!n||r?e:(Sp.window&&!Sp.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Sp.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new jp),(Sp.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(t){return vp.warn(t),e}}function gp(e,t){let n=e;for(;n!=null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function _p(e){if(typeof e!=`function`)return!1;let t=Object.getOwnPropertyDescriptor(e,`prototype`);return t?!t.writable:!1}var vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp;function Mp(){return(Mp=e((()=>{Js(),mp(),{once:vp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:yp,SET_CURRENT_STORY:bp,STORY_RENDER_PHASE_CHANGED:xp}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Sp}=__STORYBOOK_MODULE_GLOBAL__,Cp=globalThis.__STORYBOOK_ADDONS_PREVIEW,wp=Error("This function ran after the play function completed. Did you forget to `await` it?"),Tp=e=>Object.prototype.toString.call(e)===`[object Object]`,Ep=e=>Object.prototype.toString.call(e)===`[object Module]`,Dp=e=>{if(!Tp(e)&&!Ep(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Tp(t)},Op=e=>{try{return new e.constructor}catch{return{}}},kp=()=>({renderPhase:`preparing`,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Ap=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(e=>e.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,e])=>e.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},jp=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=Sp.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{Sp.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:e,renderPhase:t,isPlaying:n=!0,isDebugging:r=!1})=>{let i=this.getState(e);this.setState(e,{...kp(),...Ap(i,r),renderPhase:t||i.renderPhase,shadowCalls:r?i.shadowCalls:[],chainedCallIds:r?i.chainedCallIds:new Set,playUntil:r?i.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(e)},t=e=>({storyId:t,playUntil:n})=>{this.getState(t).isDebugging||this.setState(t,({calls:e})=>({calls:[],shadowCalls:e.map(e=>({...e,status:`waiting`})),isDebugging:!0}));let r=this.getLog(t);this.setState(t,({shadowCalls:e})=>{if(n||!r.length)return{playUntil:n};let t=e.findIndex(e=>e.id===r[0].callId);return{playUntil:e.slice(0,t).filter(e=>e.interceptable&&!e.ancestors?.length).slice(-1)[0]?.id}}),e.emit(yp,{storyId:t,isDebugging:!0})},n=e=>({storyId:n})=>{let r=this.getLog(n).filter(e=>!e.ancestors?.length),i=r.reduceRight((e,t,n)=>e>=0||t.status===`waiting`?e:n,-1);t(e)({storyId:n,playUntil:r[i-1]?.callId})},r=e=>({storyId:n,callId:r})=>{let{calls:i,shadowCalls:a,resolvers:o}=this.getState(n),s=i.find(({id:e})=>e===r),c=a.find(({id:e})=>e===r);if(!s&&c&&Object.values(o).length>0){let e=this.getLog(n).find(e=>e.status===`waiting`)?.callId;c.id!==e&&this.setState(n,{playUntil:c.id}),Object.values(o).forEach(e=>e())}else t(e)({storyId:n,playUntil:r})},i=e=>({storyId:n})=>{let{resolvers:r}=this.getState(n);if(Object.values(r).length>0)Object.values(r).forEach(e=>e());else{let r=this.getLog(n).find(e=>e.status===`waiting`)?.callId;r?t(e)({storyId:n,playUntil:r}):a({storyId:n})}},a=({storyId:e})=>{this.setState(e,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(e).resolvers).forEach(e=>e())},o=({storyId:t,newPhase:n})=>{let{isDebugging:r}=this.getState(t);if(n===`preparing`&&r||n===`playing`)return e({storyId:t,renderPhase:n,isDebugging:r});n===`played`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1,isDebugging:!1}):n===`errored`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1}):n===`aborted`?this.setState(t,{renderPhase:n,isLocked:!0,isPlaying:!1}):this.setState(t,{renderPhase:n}),this.sync(t)};Cp&&Cp.ready().then(()=>{this.channel=Cp.getChannel(),this.channel.on(yp,e),this.channel.on(xp,o),this.channel.on(bp,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(qs.START,t(this.channel)),this.channel.on(qs.BACK,n(this.channel)),this.channel.on(qs.GOTO,r(this.channel)),this.channel.on(qs.NEXT,i(this.channel)),this.channel.on(qs.END,a)})}getState(e){return this.state[e]||kp()}setState(e,t){if(e){let n=this.getState(e),r=typeof t==`function`?t(n):t;this.state={...this.state,[e]:{...n,...r}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((e,[t,n])=>{let r=Ap(n);return r&&(e[t]=Object.assign(kp(),r)),e},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(qs.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((e,t)=>{r[t]=e});let i=new Set;return r.reduceRight((e,t)=>(t.args.forEach(e=>{e?.__callId__&&i.add(e.__callId__)}),t.path.forEach(e=>{e.__callId__&&i.add(e.__callId__)}),(t.interceptable||t.exception)&&!i.has(t.id)&&(e.unshift({callId:t.id,status:t.status,ancestors:t.ancestors}),i.add(t.id)),e),[])}instrument(e,t,n=0){if(!Dp(e))return e;let{mutate:r=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,a.reduce((r,a)=>{let o=gp(e,a);if(typeof o?.get==`function`){if(o.configurable){let s=()=>o?.get?.bind(e)?.();Object.defineProperty(r,a,{get:()=>this.instrument(s(),{...t,path:i.concat(a)},n)})}return r}let s=e[a];return typeof s==`function`?`__originalFn__`in s&&typeof s.__originalFn__==`function`?(r[a]=s,r):(r[a]=(...n)=>this.track(a,s,e,n,t),r[a].__originalFn__=s,Object.defineProperty(r[a],"name",{value:a,writable:!1}),Object.keys(s).length>0&&Object.assign(r[a],this.instrument({...s},{...t,path:i.concat(a)},n)),r):(r[a]=this.instrument(s,{...t,path:i.concat(a)},n),r)},r?e:Op(e))}track(e,t,n,r,i){let a=r?.[0]?.__storyId__||Sp.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:s}=this.getState(a);this.setState(a,{cursor:o+1});let c=`${s.slice(-1)[0]||a} [${o}] ${e}`,{path:l=[],intercept:u=!1,retain:d=!1}=i,f=typeof u==`function`?u(e,l):u,p={id:c,cursor:o,storyId:a,ancestors:s,path:l,method:e,args:r,interceptable:f,retain:d},m=(f&&!s.length?this.intercept:this.invoke).call(this,t,n,p,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:a,playUntil:o}=this.getState(n.storyId),s=i.has(n.id);return!a||s||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(e=>{this.setState(n.storyId,({resolvers:t})=>({isLocked:!1,resolvers:{...t,[n.id]:e}}))}).then(()=>(this.setState(n.storyId,e=>{let{[n.id]:t,...r}=e.resolvers;return{isLocked:!0,resolvers:r}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:a}=this.getState(n.storyId),o=(e,t,n)=>{if(n.includes(e))return`[Circular]`;if(n=[...n,e],t>25)return`...`;if(i.has(e))return i.get(e);if(e instanceof Array)return e.map(e=>o(e,++t,n));if(e instanceof Date)return{__date__:{value:e.toISOString()}};if(e instanceof Error){let{name:t,message:n,stack:r}=e;return{__error__:{name:t,message:n,stack:r}}}if(e instanceof RegExp){let{flags:t,source:n}=e;return{__regexp__:{flags:t,source:n}}}if(e instanceof Sp.window?.HTMLElement){let{prefix:t,localName:n,id:r,classList:i,innerText:a}=e;return{__element__:{prefix:t,localName:n,id:r,classNames:Array.from(i),innerText:a}}}return typeof e==`function`?{__function__:{name:`getMockName`in e?e.getMockName():e.name}}:typeof e==`symbol`?{__symbol__:{description:e.description}}:typeof e==`object`&&e?.constructor?.name&&e?.constructor?.name!==`Object`?{__class__:{name:e.constructor.name}}:Object.prototype.toString.call(e)===`[object Object]`?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r,++t,n)])):e},s={...n,args:n.args.map(e=>o(e,0,[]))};n.path.forEach(e=>{e?.__callId__&&this.setState(n.storyId,({chainedCallIds:t})=>({chainedCallIds:new Set(Array.from(t).concat(e.__callId__))}))});let c=e=>{if(e instanceof Error){let{name:t,message:r,stack:i,callId:a=n.id}=e,{showDiff:o=void 0,diff:c=void 0,actual:l=void 0,expected:u=void 0}=e.name===`AssertionError`?Gu(e):e,d={name:t,message:r,stack:i,callId:a,showDiff:o,diff:c,actual:l,expected:u};if(this.update({...s,status:`error`,exception:d}),this.setState(n.storyId,t=>({callRefsByResult:new Map([...Array.from(t.callRefsByResult.entries()),[e,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(e,`callId`)||Object.defineProperty(e,"callId",{value:n.id}),e}throw e};try{if(a===`played`&&!n.retain)throw wp;let i=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(e=>typeof e!=`function`||_p(e)||Object.keys(e).length?e:(...t)=>{let{cursor:r,ancestors:i}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...i,n.id]});let a=()=>this.setState(n.storyId,{cursor:r,ancestors:i}),o=!1;try{let n=e(...t);return n instanceof Promise?(o=!0,n.finally(a)):n}finally{o||a()}}),o=e.apply(t,i);return o&&[`object`,`function`,`symbol`].includes(typeof o)&&this.setState(n.storyId,e=>({callRefsByResult:new Map([...Array.from(e.callRefsByResult.entries()),[o,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:o instanceof Promise?`active`:`done`}),o instanceof Promise?o.then(e=>(this.update({...s,status:`done`}),e),c):o}catch(e){return c(e)}}update(e){this.channel?.emit(qs.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return{calls:Object.values(n).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:t,isPlaying:n}=this.getState(e),r=this.getLog(e),i=r.filter(({ancestors:e})=>!e.length).find(e=>e.status===`waiting`)?.callId,a=r.some(e=>e.status===`active`);if(this.detached||t||a||r.length===0){let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:r};this.channel?.emit(qs.SYNC,e);return}let o=r.some(e=>e.status===`done`||e.status===`error`),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:r,pausedAt:i};this.channel?.emit(qs.SYNC,s)};this.setState(e,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}}})))()}function Np(e){return`${e}.json`}var Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,z,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm;function Km(){return(Km=e((()=>{js(),Ms(),Fo(),g(),Ws(),Ks(),S(),Km(),Mp(),ys(),Pp=E({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}}),Fp=C(Pp(),1),Ip=e=>e.map(e=>typeof e<`u`).filter(Boolean).length,Lp=(e,t)=>{let{exists:n,eq:r,neq:i,truthy:a}=e;if(Ip([n,r,i,a])>1)throw Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:r,neq:i})}`);if(typeof r<`u`)return(0,Fp.isEqual)(t,r);if(typeof i<`u`)return!(0,Fp.isEqual)(t,i);if(typeof n<`u`){let e=typeof t<`u`;return n?e:!e}return typeof a>`u`||a?!!t:!t},Rp=(e,t,n)=>{if(!e.if)return!0;let{arg:r,global:i}=e.if;if(Ip([r,i])!==1)throw Error(`Invalid conditional value ${JSON.stringify({arg:r,global:i})}`);let a=r?t[r]:n[i];return Lp(e.if,a)},zp={},w(zp,{argsEnhancers:()=>Up}),Bp=(e,t)=>typeof t[e]>`u`&&!(e in t),Vp=e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([e])=>!!a.test(e)).reduce((e,[n,i])=>(Bp(n,t)&&(e[n]=Is(n,{implicit:!0,id:r})),e),{})},Hp=e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([e,t])=>!!t.action).reduce((e,[n,r])=>(Bp(n,t)&&(e[n]=Is(typeof r.action==`string`?r.action:n)),e),{})},Up=[Hp,Vp],Wp={},w(Wp,{loaders:()=>Jp}),{onMockCall:Gp}=__STORYBOOK_MODULE_TEST__,Kp=!1,qp=e=>{let{parameters:t}=e;t?.actions?.disable||Kp||(Gp((e,t)=>{let n=e.getMockName();n!==`spy`&&n!==`vi.fn()`&&(!/^next\/.*::/.test(n)||[`next/router::useRouter()`,`next/navigation::useRouter()`,`next/navigation::redirect`,`next/link::Link`,`next/cache::`,`next/headers::cookies().set`,`next/headers::cookies().delete`,`next/headers::headers().set`,`next/headers::headers().delete`].some(e=>n.startsWith(e)))&&Is(n)(t)}),Kp=!0)},Jp=[qp],{useEffect:Yp}=__STORYBOOK_MODULE_PREVIEW_API__,{document:Xp}=globalThis,Zp=()=>globalThis?.matchMedia?!!globalThis.matchMedia(`(prefers-reduced-motion: reduce)`)?.matches:!1,Zp(),globalThis.FEATURES?.backgrounds,{step:Qp}=hp({step:async(e,t,n)=>t(n)},{intercept:!0}),{addons:$p}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:em}=__STORYBOOK_MODULE_CORE_EVENTS__,tm={chevronLeft:[`M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z`],chevronRight:[`M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z`],info:[`M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z`,`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`],shareAlt:[`M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z`,`M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z`]},nm=`svg,path,rect,circle,line,polyline,polygon,ellipse,text`.split(`,`),rm=(e,t={},n)=>{let r=nm.includes(e)?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e);return Object.entries(t).forEach(([e,t])=>{/[A-Z]/.test(e)?(e===`onClick`&&(r.addEventListener(`click`,t),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())})),e===`onMouseEnter`&&r.addEventListener(`mouseenter`,t),e===`onMouseLeave`&&r.addEventListener(`mouseleave`,t)):r.setAttribute(e,t)}),n?.forEach(e=>{if(e!=null&&e!==!1)try{r.appendChild(e)}catch{r.appendChild(document.createTextNode(String(e)))}}),r},im=e=>tm[e]&&rm(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,xmlns:`http://www.w3.org/2000/svg`},tm[e].map(e=>rm(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:e}))),am=e=>{if(`elements`in e){let{elements:t,color:n,style:r}=e;return{id:void 0,priority:0,selectors:t,styles:{outline:`2px ${r} ${n}`,outlineOffset:`2px`,boxShadow:`0 0 0 6px rgba(255,255,255,0.6)`},menu:void 0}}let{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:`2px dashed #029cfd`},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},om=e=>e instanceof Function,sm=new Map,cm=new Map,lm=new Map,um=e=>{let t=Symbol();return cm.set(t,[]),sm.set(t,e),{get:()=>sm.get(t),set:e=>{let n=sm.get(t),r=om(e)?e(n):e;r!==n&&(sm.set(t,r),cm.get(t)?.forEach(e=>{lm.get(e)?.(),lm.set(e,e(r))}))},subscribe:e=>(cm.get(t)?.push(e),()=>{let n=cm.get(t);n&&cm.set(t,n.filter(t=>t!==e))}),teardown:()=>{cm.get(t)?.forEach(e=>{lm.get(e)?.(),lm.delete(e)}),cm.delete(t),sm.delete(t)}}},dm=e=>{let t=document.getElementById(`storybook-root`),n=new Map;for(let r of e){let{priority:e=0}=r;for(let i of r.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let t of a){let a=n.get(t);(!a||a.priority<=e)&&n.set(t,{...r,priority:e,selectors:Array.from(new Set((a?.selectors||[]).concat(i)))})}}}return n},fm=e=>Array.from(e.entries()).map(([e,{selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a}])=>{let{top:o,left:s,width:c,height:l}=e.getBoundingClientRect(),{position:u}=getComputedStyle(e);return{element:e,selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a,top:u===`fixed`?o:o+window.scrollY,left:u===`fixed`?s:s+window.scrollX,width:c,height:l}}).sort((e,t)=>t.width*t.height-e.width*e.height),pm=(e,t)=>{let n=e.getBoundingClientRect(),{x:r,y:i}=t;return n?.top&&n?.left&&r>=n.left&&r<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},mm=(e,t,n)=>{if(!t||!n)return!1;let{left:r,top:i,width:a,height:o}=e;o<28&&(i-=Math.round((28-o)/2),o=28),a<28&&(r-=Math.round((28-a)/2),a=28),t.style.position===`fixed`&&(r+=window.scrollX,i+=window.scrollY);let{x:s,y:c}=n;return s>=r&&s<=r+a&&c>=i&&c<=i+o},hm=(e,t,n={})=>{let{x:r,y:i}=t,{margin:a=5,topOffset:o=0,centered:s=!1}=n,{scrollX:c,scrollY:l,innerHeight:u,innerWidth:d}=window,f=Math.min(e.style.position===`fixed`?i-l:i,u-e.clientHeight-a-o+l),p=s?e.clientWidth/2:0,m=e.style.position===`fixed`?Math.max(Math.min(r-c,d-p-a),p+a):Math.max(Math.min(r,d-p-a+c),p+a+c);Object.assign(e.style,{...m!==r&&{left:`${m}px`},...f!==i&&{top:`${f}px`}})},gm=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.showPopover()},_m=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.hidePopover()},vm=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(e=>[e.name,e.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),z=`storybook-highlights-menu`,ym=`storybook-highlights-root`,bm=`storybook-root`,xm=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,n=um([]),r=um(new Map),i=um([]),a=um(),o=um(),c=um([]),l=um([]),u=um(),d=um(),p=t.getElementById(ym);n.subscribe(()=>{p||(p=rm(`div`,{id:ym}),t.body.appendChild(p))}),n.subscribe(e=>{let n=t.getElementById(bm);if(!n)return;r.set(dm(e));let i=new MutationObserver(()=>r.set(dm(e)));return i.observe(n,{subtree:!0,childList:!0}),()=>{i.disconnect()}}),r.subscribe(e=>{let n=()=>requestAnimationFrame(()=>i.set(fm(e))),r=new ResizeObserver(n);r.observe(t.body),Array.from(e.keys()).forEach(e=>r.observe(e));let a=Array.from(t.body.querySelectorAll(`*`)).filter(e=>{let{overflow:t,overflowX:n,overflowY:r}=window.getComputedStyle(e);return[`auto`,`scroll`].some(e=>[t,n,r].includes(e))});return a.forEach(e=>e.addEventListener(`scroll`,n)),()=>{r.disconnect(),a.forEach(e=>e.removeEventListener(`scroll`,n))}}),r.subscribe(e=>{let n=Array.from(e.keys()).filter(({style:e})=>e.position===`sticky`),r=()=>requestAnimationFrame(()=>{i.set(e=>e.map(e=>{if(n.includes(e.element)){let{top:t,left:n}=e.element.getBoundingClientRect();return{...e,top:t+window.scrollY,left:n+window.scrollX}}return e}))});return t.addEventListener(`scroll`,r),()=>t.removeEventListener(`scroll`,r)}),r.subscribe(e=>{c.set(t=>t.filter(({element:t})=>e.has(t)))}),c.subscribe(e=>{e.length?(d.set(t=>e.some(e=>e.element===t?.element)?t:void 0),u.set(t=>e.some(e=>e.element===t?.element)?t:void 0)):(d.set(void 0),u.set(void 0),a.set(void 0))});let m=new Map(new Map);n.subscribe(e=>{e.forEach(({keyframes:e})=>{if(e){let n=m.get(e);n||(n=t.createElement(`style`),n.setAttribute(`data-highlight`,`keyframes`),m.set(e,n),t.head.appendChild(n)),n.innerHTML=e}}),m.forEach((t,n)=>{e.some(e=>e.keyframes===n)||(t.remove(),m.delete(n))})});let g=new Map(new Map);i.subscribe(e=>{e.forEach(e=>{let t=g.get(e.element);if(p&&!t){let n={popover:`manual`,"data-highlight-dimensions":`w${e.width.toFixed(0)}h${e.height.toFixed(0)}`,"data-highlight-coordinates":`x${e.left.toFixed(0)}y${e.top.toFixed(0)}`};t=p.appendChild(rm(`div`,n,[rm(`div`)])),g.set(e.element,t)}}),g.forEach((t,n)=>{e.some(({element:e})=>e===n)||(t.remove(),g.delete(n))})}),i.subscribe(e=>{let n=e.filter(e=>e.menu);if(!n.length)return;let r=e=>{requestAnimationFrame(()=>{let r=t.getElementById(z),i={x:e.pageX,y:e.pageY};if(r&&!pm(r,i)){let e=n.filter(e=>mm(e,g.get(e.element),i));a.set(e.length?i:void 0),c.set(e)}})};return t.addEventListener(`click`,r),()=>t.removeEventListener(`click`,r)});let _=()=>{let e=t.getElementById(z),n=o.get();!n||e&&pm(e,n)||l.set(e=>{let t=i.get().filter(e=>mm(e,g.get(e.element),n)),r=e.filter(e=>t.includes(e)),a=t.filter(t=>!e.includes(t)),o=e.length-r.length;return a.length||o?[...r,...a]:e})};o.subscribe(_),i.subscribe(_);let y=()=>{let e=d.get(),t=e?[e]:c.get(),n=t.length===1?t[0]:u.get(),r=a.get()!==void 0;i.get().forEach(e=>{let i=g.get(e.element);if(i){let a=n===e,o=r?n?a:t.includes(e):l.get()?.includes(e);Object.assign(i.style,{animation:`none`,background:`transparent`,border:`none`,boxSizing:`border-box`,outline:`none`,outlineOffset:`0px`,...e.styles,...o?e.hoverStyles:{},...a?e.focusStyles:{},position:getComputedStyle(e.element).position===`fixed`?`fixed`:`absolute`,zIndex:h-10,top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`,margin:0,padding:0,cursor:e.menu&&o?`pointer`:`default`,pointerEvents:e.menu?`auto`:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`visible`}),Object.assign(i.children[0].style,{width:`100%`,height:`100%`,minHeight:`28px`,minWidth:`28px`,boxSizing:`content-box`,padding:i.style.outlineWidth||`0px`}),gm(i)}})};i.subscribe(y),c.subscribe(y),l.subscribe(y),u.subscribe(y),d.subscribe(y);let x=()=>{if(!p)return;let n=t.getElementById(z);if(n)n.innerHTML=``;else{let e={id:z,popover:`manual`};n=p.appendChild(rm(`div`,e)),p.appendChild(rm(`style`,{},[`
65
+ `),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new Rf(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new Rf(t,e)):e.length!==0&&this.pushDiffChangeLines(new Rf(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}},{AsymmetricMatcher:ep,DOMCollection:tp,DOMElement:np,Immutable:rp,ReactElement:ip,ReactTestComponent:ap}=af,op=[ap,ip,np,tp,rp,ep,af.Error],sp={maxDepth:20,plugins:op},cp={callToJSON:!1,maxDepth:8,plugins:op},lp=2e4,up=`·`,dp=`@@__IMMUTABLE_RECORD__@@`,fp=`@@__IMMUTABLE_ITERABLE__@@`,pp=Object.getPrototypeOf({})})))()}function hp(e,t={}){try{let n=!1,r=!1;return Sp.window?.location?.search?.includes(`instrument=true`)?n=!0:Sp.window?.location?.search?.includes(`instrument=false`)&&(r=!0),Sp.window?.parent===Sp.window&&!n||r?e:(Sp.window&&!Sp.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Sp.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new jp),(Sp.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(t){return vp.warn(t),e}}function gp(e,t){let n=e;for(;n!=null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function _p(e){if(typeof e!=`function`)return!1;let t=Object.getOwnPropertyDescriptor(e,`prototype`);return t?!t.writable:!1}var vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp;function Mp(){return(Mp=t((()=>{Js(),mp(),{once:vp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:yp,SET_CURRENT_STORY:bp,STORY_RENDER_PHASE_CHANGED:xp}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Sp}=__STORYBOOK_MODULE_GLOBAL__,Cp=globalThis.__STORYBOOK_ADDONS_PREVIEW,wp=Error("This function ran after the play function completed. Did you forget to `await` it?"),Tp=e=>Object.prototype.toString.call(e)===`[object Object]`,Ep=e=>Object.prototype.toString.call(e)===`[object Module]`,Dp=e=>{if(!Tp(e)&&!Ep(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Tp(t)},Op=e=>{try{return new e.constructor}catch{return{}}},kp=()=>({renderPhase:`preparing`,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Ap=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(e=>e.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,e])=>e.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},jp=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=Sp.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{Sp.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:e,renderPhase:t,isPlaying:n=!0,isDebugging:r=!1})=>{let i=this.getState(e);this.setState(e,{...kp(),...Ap(i,r),renderPhase:t||i.renderPhase,shadowCalls:r?i.shadowCalls:[],chainedCallIds:r?i.chainedCallIds:new Set,playUntil:r?i.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(e)},t=e=>({storyId:t,playUntil:n})=>{this.getState(t).isDebugging||this.setState(t,({calls:e})=>({calls:[],shadowCalls:e.map(e=>({...e,status:`waiting`})),isDebugging:!0}));let r=this.getLog(t);this.setState(t,({shadowCalls:e})=>{if(n||!r.length)return{playUntil:n};let t=e.findIndex(e=>e.id===r[0].callId);return{playUntil:e.slice(0,t).filter(e=>e.interceptable&&!e.ancestors?.length).slice(-1)[0]?.id}}),e.emit(yp,{storyId:t,isDebugging:!0})},n=e=>({storyId:n})=>{let r=this.getLog(n).filter(e=>!e.ancestors?.length),i=r.reduceRight((e,t,n)=>e>=0||t.status===`waiting`?e:n,-1);t(e)({storyId:n,playUntil:r[i-1]?.callId})},r=e=>({storyId:n,callId:r})=>{let{calls:i,shadowCalls:a,resolvers:o}=this.getState(n),s=i.find(({id:e})=>e===r),c=a.find(({id:e})=>e===r);if(!s&&c&&Object.values(o).length>0){let e=this.getLog(n).find(e=>e.status===`waiting`)?.callId;c.id!==e&&this.setState(n,{playUntil:c.id}),Object.values(o).forEach(e=>e())}else t(e)({storyId:n,playUntil:r})},i=e=>({storyId:n})=>{let{resolvers:r}=this.getState(n);if(Object.values(r).length>0)Object.values(r).forEach(e=>e());else{let r=this.getLog(n).find(e=>e.status===`waiting`)?.callId;r?t(e)({storyId:n,playUntil:r}):a({storyId:n})}},a=({storyId:e})=>{this.setState(e,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(e).resolvers).forEach(e=>e())},o=({storyId:t,newPhase:n})=>{let{isDebugging:r}=this.getState(t);if(n===`preparing`&&r||n===`playing`)return e({storyId:t,renderPhase:n,isDebugging:r});n===`played`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1,isDebugging:!1}):n===`errored`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1}):n===`aborted`?this.setState(t,{renderPhase:n,isLocked:!0,isPlaying:!1}):this.setState(t,{renderPhase:n}),this.sync(t)};Cp&&Cp.ready().then(()=>{this.channel=Cp.getChannel(),this.channel.on(yp,e),this.channel.on(xp,o),this.channel.on(bp,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(qs.START,t(this.channel)),this.channel.on(qs.BACK,n(this.channel)),this.channel.on(qs.GOTO,r(this.channel)),this.channel.on(qs.NEXT,i(this.channel)),this.channel.on(qs.END,a)})}getState(e){return this.state[e]||kp()}setState(e,t){if(e){let n=this.getState(e),r=typeof t==`function`?t(n):t;this.state={...this.state,[e]:{...n,...r}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((e,[t,n])=>{let r=Ap(n);return r&&(e[t]=Object.assign(kp(),r)),e},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(qs.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((e,t)=>{r[t]=e});let i=new Set;return r.reduceRight((e,t)=>(t.args.forEach(e=>{e?.__callId__&&i.add(e.__callId__)}),t.path.forEach(e=>{e.__callId__&&i.add(e.__callId__)}),(t.interceptable||t.exception)&&!i.has(t.id)&&(e.unshift({callId:t.id,status:t.status,ancestors:t.ancestors}),i.add(t.id)),e),[])}instrument(e,t,n=0){if(!Dp(e))return e;let{mutate:r=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,a.reduce((r,a)=>{let o=gp(e,a);if(typeof o?.get==`function`){if(o.configurable){let s=()=>o?.get?.bind(e)?.();Object.defineProperty(r,a,{get:()=>this.instrument(s(),{...t,path:i.concat(a)},n)})}return r}let s=e[a];return typeof s==`function`?`__originalFn__`in s&&typeof s.__originalFn__==`function`?(r[a]=s,r):(r[a]=(...n)=>this.track(a,s,e,n,t),r[a].__originalFn__=s,Object.defineProperty(r[a],"name",{value:a,writable:!1}),Object.keys(s).length>0&&Object.assign(r[a],this.instrument({...s},{...t,path:i.concat(a)},n)),r):(r[a]=this.instrument(s,{...t,path:i.concat(a)},n),r)},r?e:Op(e))}track(e,t,n,r,i){let a=r?.[0]?.__storyId__||Sp.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:s}=this.getState(a);this.setState(a,{cursor:o+1});let c=`${s.slice(-1)[0]||a} [${o}] ${e}`,{path:l=[],intercept:u=!1,retain:d=!1}=i,f=typeof u==`function`?u(e,l):u,p={id:c,cursor:o,storyId:a,ancestors:s,path:l,method:e,args:r,interceptable:f,retain:d},m=(f&&!s.length?this.intercept:this.invoke).call(this,t,n,p,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:a,playUntil:o}=this.getState(n.storyId),s=i.has(n.id);return!a||s||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(e=>{this.setState(n.storyId,({resolvers:t})=>({isLocked:!1,resolvers:{...t,[n.id]:e}}))}).then(()=>(this.setState(n.storyId,e=>{let{[n.id]:t,...r}=e.resolvers;return{isLocked:!0,resolvers:r}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:a}=this.getState(n.storyId),o=(e,t,n)=>{if(n.includes(e))return`[Circular]`;if(n=[...n,e],t>25)return`...`;if(i.has(e))return i.get(e);if(e instanceof Array)return e.map(e=>o(e,++t,n));if(e instanceof Date)return{__date__:{value:e.toISOString()}};if(e instanceof Error){let{name:t,message:n,stack:r}=e;return{__error__:{name:t,message:n,stack:r}}}if(e instanceof RegExp){let{flags:t,source:n}=e;return{__regexp__:{flags:t,source:n}}}if(e instanceof Sp.window?.HTMLElement){let{prefix:t,localName:n,id:r,classList:i,innerText:a}=e;return{__element__:{prefix:t,localName:n,id:r,classNames:Array.from(i),innerText:a}}}return typeof e==`function`?{__function__:{name:`getMockName`in e?e.getMockName():e.name}}:typeof e==`symbol`?{__symbol__:{description:e.description}}:typeof e==`object`&&e?.constructor?.name&&e?.constructor?.name!==`Object`?{__class__:{name:e.constructor.name}}:Object.prototype.toString.call(e)===`[object Object]`?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r,++t,n)])):e},s={...n,args:n.args.map(e=>o(e,0,[]))};n.path.forEach(e=>{e?.__callId__&&this.setState(n.storyId,({chainedCallIds:t})=>({chainedCallIds:new Set(Array.from(t).concat(e.__callId__))}))});let c=e=>{if(e instanceof Error){let{name:t,message:r,stack:i,callId:a=n.id}=e,{showDiff:o=void 0,diff:c=void 0,actual:l=void 0,expected:u=void 0}=e.name===`AssertionError`?Gu(e):e,d={name:t,message:r,stack:i,callId:a,showDiff:o,diff:c,actual:l,expected:u};if(this.update({...s,status:`error`,exception:d}),this.setState(n.storyId,t=>({callRefsByResult:new Map([...Array.from(t.callRefsByResult.entries()),[e,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(e,`callId`)||Object.defineProperty(e,"callId",{value:n.id}),e}throw e};try{if(a===`played`&&!n.retain)throw wp;let i=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(e=>typeof e!=`function`||_p(e)||Object.keys(e).length?e:(...t)=>{let{cursor:r,ancestors:i}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...i,n.id]});let a=()=>this.setState(n.storyId,{cursor:r,ancestors:i}),o=!1;try{let n=e(...t);return n instanceof Promise?(o=!0,n.finally(a)):n}finally{o||a()}}),o=e.apply(t,i);return o&&[`object`,`function`,`symbol`].includes(typeof o)&&this.setState(n.storyId,e=>({callRefsByResult:new Map([...Array.from(e.callRefsByResult.entries()),[o,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:o instanceof Promise?`active`:`done`}),o instanceof Promise?o.then(e=>(this.update({...s,status:`done`}),e),c):o}catch(e){return c(e)}}update(e){this.channel?.emit(qs.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return{calls:Object.values(n).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:t,isPlaying:n}=this.getState(e),r=this.getLog(e),i=r.filter(({ancestors:e})=>!e.length).find(e=>e.status===`waiting`)?.callId,a=r.some(e=>e.status===`active`);if(this.detached||t||a||r.length===0){let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:r};this.channel?.emit(qs.SYNC,e);return}let o=r.some(e=>e.status===`done`||e.status===`error`),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:r,pausedAt:i};this.channel?.emit(qs.SYNC,s)};this.setState(e,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}}})))()}function Np(e){return`${e}.json`}var Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,z,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm;function Km(){return(Km=t((()=>{js(),Ms(),Fo(),g(),Ws(),Ks(),S(),Km(),Mp(),ys(),Pp=E({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}}),Fp=C(Pp(),1),Ip=e=>e.map(e=>typeof e<`u`).filter(Boolean).length,Lp=(e,t)=>{let{exists:n,eq:r,neq:i,truthy:a}=e;if(Ip([n,r,i,a])>1)throw Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:r,neq:i})}`);if(typeof r<`u`)return(0,Fp.isEqual)(t,r);if(typeof i<`u`)return!(0,Fp.isEqual)(t,i);if(typeof n<`u`){let e=typeof t<`u`;return n?e:!e}return typeof a>`u`||a?!!t:!t},Rp=(e,t,n)=>{if(!e.if)return!0;let{arg:r,global:i}=e.if;if(Ip([r,i])!==1)throw Error(`Invalid conditional value ${JSON.stringify({arg:r,global:i})}`);let a=r?t[r]:n[i];return Lp(e.if,a)},zp={},w(zp,{argsEnhancers:()=>Up}),Bp=(e,t)=>typeof t[e]>`u`&&!(e in t),Vp=e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([e])=>!!a.test(e)).reduce((e,[n,i])=>(Bp(n,t)&&(e[n]=Is(n,{implicit:!0,id:r})),e),{})},Hp=e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([e,t])=>!!t.action).reduce((e,[n,r])=>(Bp(n,t)&&(e[n]=Is(typeof r.action==`string`?r.action:n)),e),{})},Up=[Hp,Vp],Wp={},w(Wp,{loaders:()=>Jp}),{onMockCall:Gp}=__STORYBOOK_MODULE_TEST__,Kp=!1,qp=e=>{let{parameters:t}=e;t?.actions?.disable||Kp||(Gp((e,t)=>{let n=e.getMockName();n!==`spy`&&n!==`vi.fn()`&&(!/^next\/.*::/.test(n)||[`next/router::useRouter()`,`next/navigation::useRouter()`,`next/navigation::redirect`,`next/link::Link`,`next/cache::`,`next/headers::cookies().set`,`next/headers::cookies().delete`,`next/headers::headers().set`,`next/headers::headers().delete`].some(e=>n.startsWith(e)))&&Is(n)(t)}),Kp=!0)},Jp=[qp],{useEffect:Yp}=__STORYBOOK_MODULE_PREVIEW_API__,{document:Xp}=globalThis,Zp=()=>globalThis?.matchMedia?!!globalThis.matchMedia(`(prefers-reduced-motion: reduce)`)?.matches:!1,Zp(),globalThis.FEATURES?.backgrounds,{step:Qp}=hp({step:async(e,t,n)=>t(n)},{intercept:!0}),{addons:$p}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:em}=__STORYBOOK_MODULE_CORE_EVENTS__,tm={chevronLeft:[`M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z`],chevronRight:[`M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z`],info:[`M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z`,`M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z`],shareAlt:[`M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z`,`M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z`]},nm=`svg,path,rect,circle,line,polyline,polygon,ellipse,text`.split(`,`),rm=(e,t={},n)=>{let r=nm.includes(e)?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e);return Object.entries(t).forEach(([e,t])=>{/[A-Z]/.test(e)?(e===`onClick`&&(r.addEventListener(`click`,t),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())})),e===`onMouseEnter`&&r.addEventListener(`mouseenter`,t),e===`onMouseLeave`&&r.addEventListener(`mouseleave`,t)):r.setAttribute(e,t)}),n?.forEach(e=>{if(e!=null&&e!==!1)try{r.appendChild(e)}catch{r.appendChild(document.createTextNode(String(e)))}}),r},im=e=>tm[e]&&rm(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,xmlns:`http://www.w3.org/2000/svg`},tm[e].map(e=>rm(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:e}))),am=e=>{if(`elements`in e){let{elements:t,color:n,style:r}=e;return{id:void 0,priority:0,selectors:t,styles:{outline:`2px ${r} ${n}`,outlineOffset:`2px`,boxShadow:`0 0 0 6px rgba(255,255,255,0.6)`},menu:void 0}}let{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:`2px dashed #029cfd`},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},om=e=>e instanceof Function,sm=new Map,cm=new Map,lm=new Map,um=e=>{let t=Symbol();return cm.set(t,[]),sm.set(t,e),{get:()=>sm.get(t),set:e=>{let n=sm.get(t),r=om(e)?e(n):e;r!==n&&(sm.set(t,r),cm.get(t)?.forEach(e=>{lm.get(e)?.(),lm.set(e,e(r))}))},subscribe:e=>(cm.get(t)?.push(e),()=>{let n=cm.get(t);n&&cm.set(t,n.filter(t=>t!==e))}),teardown:()=>{cm.get(t)?.forEach(e=>{lm.get(e)?.(),lm.delete(e)}),cm.delete(t),sm.delete(t)}}},dm=e=>{let t=document.getElementById(`storybook-root`),n=new Map;for(let r of e){let{priority:e=0}=r;for(let i of r.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let t of a){let a=n.get(t);(!a||a.priority<=e)&&n.set(t,{...r,priority:e,selectors:Array.from(new Set((a?.selectors||[]).concat(i)))})}}}return n},fm=e=>Array.from(e.entries()).map(([e,{selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a}])=>{let{top:o,left:s,width:c,height:l}=e.getBoundingClientRect(),{position:u}=getComputedStyle(e);return{element:e,selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a,top:u===`fixed`?o:o+window.scrollY,left:u===`fixed`?s:s+window.scrollX,width:c,height:l}}).sort((e,t)=>t.width*t.height-e.width*e.height),pm=(e,t)=>{let n=e.getBoundingClientRect(),{x:r,y:i}=t;return n?.top&&n?.left&&r>=n.left&&r<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},mm=(e,t,n)=>{if(!t||!n)return!1;let{left:r,top:i,width:a,height:o}=e;o<28&&(i-=Math.round((28-o)/2),o=28),a<28&&(r-=Math.round((28-a)/2),a=28),t.style.position===`fixed`&&(r+=window.scrollX,i+=window.scrollY);let{x:s,y:c}=n;return s>=r&&s<=r+a&&c>=i&&c<=i+o},hm=(e,t,n={})=>{let{x:r,y:i}=t,{margin:a=5,topOffset:o=0,centered:s=!1}=n,{scrollX:c,scrollY:l,innerHeight:u,innerWidth:d}=window,f=Math.min(e.style.position===`fixed`?i-l:i,u-e.clientHeight-a-o+l),p=s?e.clientWidth/2:0,m=e.style.position===`fixed`?Math.max(Math.min(r-c,d-p-a),p+a):Math.max(Math.min(r,d-p-a+c),p+a+c);Object.assign(e.style,{...m!==r&&{left:`${m}px`},...f!==i&&{top:`${f}px`}})},gm=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.showPopover()},_m=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.hidePopover()},vm=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(e=>[e.name,e.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),z=`storybook-highlights-menu`,ym=`storybook-highlights-root`,bm=`storybook-root`,xm=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,n=um([]),r=um(new Map),i=um([]),a=um(),o=um(),c=um([]),l=um([]),u=um(),d=um(),p=t.getElementById(ym);n.subscribe(()=>{p||(p=rm(`div`,{id:ym}),t.body.appendChild(p))}),n.subscribe(e=>{let n=t.getElementById(bm);if(!n)return;r.set(dm(e));let i=new MutationObserver(()=>r.set(dm(e)));return i.observe(n,{subtree:!0,childList:!0}),()=>{i.disconnect()}}),r.subscribe(e=>{let n=()=>requestAnimationFrame(()=>i.set(fm(e))),r=new ResizeObserver(n);r.observe(t.body),Array.from(e.keys()).forEach(e=>r.observe(e));let a=Array.from(t.body.querySelectorAll(`*`)).filter(e=>{let{overflow:t,overflowX:n,overflowY:r}=window.getComputedStyle(e);return[`auto`,`scroll`].some(e=>[t,n,r].includes(e))});return a.forEach(e=>e.addEventListener(`scroll`,n)),()=>{r.disconnect(),a.forEach(e=>e.removeEventListener(`scroll`,n))}}),r.subscribe(e=>{let n=Array.from(e.keys()).filter(({style:e})=>e.position===`sticky`),r=()=>requestAnimationFrame(()=>{i.set(e=>e.map(e=>{if(n.includes(e.element)){let{top:t,left:n}=e.element.getBoundingClientRect();return{...e,top:t+window.scrollY,left:n+window.scrollX}}return e}))});return t.addEventListener(`scroll`,r),()=>t.removeEventListener(`scroll`,r)}),r.subscribe(e=>{c.set(t=>t.filter(({element:t})=>e.has(t)))}),c.subscribe(e=>{e.length?(d.set(t=>e.some(e=>e.element===t?.element)?t:void 0),u.set(t=>e.some(e=>e.element===t?.element)?t:void 0)):(d.set(void 0),u.set(void 0),a.set(void 0))});let m=new Map(new Map);n.subscribe(e=>{e.forEach(({keyframes:e})=>{if(e){let n=m.get(e);n||(n=t.createElement(`style`),n.setAttribute(`data-highlight`,`keyframes`),m.set(e,n),t.head.appendChild(n)),n.innerHTML=e}}),m.forEach((t,n)=>{e.some(e=>e.keyframes===n)||(t.remove(),m.delete(n))})});let g=new Map(new Map);i.subscribe(e=>{e.forEach(e=>{let t=g.get(e.element);if(p&&!t){let n={popover:`manual`,"data-highlight-dimensions":`w${e.width.toFixed(0)}h${e.height.toFixed(0)}`,"data-highlight-coordinates":`x${e.left.toFixed(0)}y${e.top.toFixed(0)}`};t=p.appendChild(rm(`div`,n,[rm(`div`)])),g.set(e.element,t)}}),g.forEach((t,n)=>{e.some(({element:e})=>e===n)||(t.remove(),g.delete(n))})}),i.subscribe(e=>{let n=e.filter(e=>e.menu);if(!n.length)return;let r=e=>{requestAnimationFrame(()=>{let r=t.getElementById(z),i={x:e.pageX,y:e.pageY};if(r&&!pm(r,i)){let e=n.filter(e=>mm(e,g.get(e.element),i));a.set(e.length?i:void 0),c.set(e)}})};return t.addEventListener(`click`,r),()=>t.removeEventListener(`click`,r)});let _=()=>{let e=t.getElementById(z),n=o.get();!n||e&&pm(e,n)||l.set(e=>{let t=i.get().filter(e=>mm(e,g.get(e.element),n)),r=e.filter(e=>t.includes(e)),a=t.filter(t=>!e.includes(t)),o=e.length-r.length;return a.length||o?[...r,...a]:e})};o.subscribe(_),i.subscribe(_);let y=()=>{let e=d.get(),t=e?[e]:c.get(),n=t.length===1?t[0]:u.get(),r=a.get()!==void 0;i.get().forEach(e=>{let i=g.get(e.element);if(i){let a=n===e,o=r?n?a:t.includes(e):l.get()?.includes(e);Object.assign(i.style,{animation:`none`,background:`transparent`,border:`none`,boxSizing:`border-box`,outline:`none`,outlineOffset:`0px`,...e.styles,...o?e.hoverStyles:{},...a?e.focusStyles:{},position:getComputedStyle(e.element).position===`fixed`?`fixed`:`absolute`,zIndex:h-10,top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`,margin:0,padding:0,cursor:e.menu&&o?`pointer`:`default`,pointerEvents:e.menu?`auto`:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`visible`}),Object.assign(i.children[0].style,{width:`100%`,height:`100%`,minHeight:`28px`,minWidth:`28px`,boxSizing:`content-box`,padding:i.style.outlineWidth||`0px`}),gm(i)}})};i.subscribe(y),c.subscribe(y),l.subscribe(y),u.subscribe(y),d.subscribe(y);let x=()=>{if(!p)return;let n=t.getElementById(z);if(n)n.innerHTML=``;else{let e={id:z,popover:`manual`};n=p.appendChild(rm(`div`,e)),p.appendChild(rm(`style`,{},[`
66
66
  #${z} {
67
67
  position: absolute;
68
68
  z-index: ${h};
@@ -164,11 +164,11 @@ Inner error message: ${r?.message}`))}}var Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,i
164
164
  60% { outline: 2px solid #1EA7FD00; }
165
165
  80% { outline: 2px solid #1EA7FD; }
166
166
  100% { outline: 2px solid #1EA7FD00; }
167
- }`}]),T=setTimeout(()=>C(i),3500)}),e.on(em,({newPhase:e})=>{e===`loading`&&w()})},globalThis?.FEATURES?.highlight&&$p?.ready&&$p.ready().then(xm),{useEffect:Sm}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Cm}=__STORYBOOK_MODULE_GLOBAL__,{global:wm}=__STORYBOOK_MODULE_GLOBAL__,{global:Tm}=__STORYBOOK_MODULE_GLOBAL__,globalThis.FEATURES?.measure,{useEffect:Em,useMemo:Dm}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Om}=__STORYBOOK_MODULE_GLOBAL__,globalThis.FEATURES?.outline,km=Ia({id:F()}),Am=Ia({name:F(),message:F()}),jm=Ia({id:F(),name:F(),snippet:La(F()),description:La(F()),summary:La(F()),error:La(Am)}),Mm=Ia({id:F(),name:F(),path:F(),import:La(F()),stories:Ra(F(),jm),error:La(Am)}),Nm=La(Mm),vs({id:`core/story-docs`,description:`Story documentation (snippets, descriptions, imports) keyed by component id.`,initialState:{components:{}},queries:{storyDocs:{description:`Returns the story-docs payload for one component id, or undefined when not loaded.`,input:km,output:Nm,handler:(e,t)=>Object.hasOwn(t.self.state.components,e.id)?t.self.state.components[e.id]:void 0,load:async(e,t)=>{await t.self.commands.extractStoryDocs(e)},staticPath:e=>Np(e.id)},storyDocsForAllComponents:{description:`Returns story-docs payloads for every component in the story index.`,input:Va(),output:Ra(F(),Mm),handler:(e,t)=>t.self.state.components,load:async(e,t)=>{await t.self.commands.extractAllStoryDocs(void 0)}}},commands:{extractStoryDocs:{description:`Resolves the story entry for a component id, runs the registered provider chain, writes the result into state, and returns it (or undefined when no provider produced story docs).`,input:km,output:Nm},extractAllStoryDocs:{description:"Extracts story docs for every component id in the story index by invoking `extractStoryDocs` for each.",input:za(),output:Va()}}}),{emitTransformCode:Pm,getService:Fm}=__STORYBOOK_MODULE_PREVIEW_API__,{clearAllMocks:Im,fn:Lm,isMockFunction:Rm,resetAllMocks:zm,restoreAllMocks:Bm,uninstrumentedUserEvent:Vm,within:Hm}=__STORYBOOK_MODULE_TEST__,Um=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),Wm=(e,t)=>{let n=Um(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},Gm=(e,t)=>`${Wm(e,`kind`)}${t?`--${Wm(t,`name`)}`:``}`})))()}function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qm.apply(this,arguments)}function Jm(e,t){if(e===!1||e===null||typeof e>`u`)throw Error(t)}function Ym(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function Xm(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Zm(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Qm(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Xm(e):e;return{pathname:n?n.startsWith(`/`)?n:$m(n,t):t,search:ag(r),hash:og(i)}}function $m(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function eh(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function th(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function nh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=Xm(e):(i=qm({},e),Jm(!i.pathname||!i.pathname.includes(`?`),eh(`?`,`pathname`,`search`,i)),Jm(!i.pathname||!i.pathname.includes(`#`),eh(`#`,`pathname`,`hash`,i)),Jm(!i.search||!i.search.includes(`#`),eh(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(r||o==null)s=n;else{let e=t.length-1;if(o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Qm(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}function rh(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ih(){return ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ih.apply(this,arguments)}function ah(e,t){let{relative:n}=t===void 0?{}:t;oh()||Jm(!1);let{basename:r,navigator:i}=B.useContext(dg),{hash:a,pathname:o,search:s}=dh(e,{relative:n}),c=o;return r!==`/`&&(c=o===`/`?r:ig([r,o])),i.createHref({pathname:c,search:s,hash:a})}function oh(){return B.useContext(fg)!=null}function sh(){return oh()||Jm(!1),B.useContext(fg).location}function ch(e){B.useContext(dg).static||B.useLayoutEffect(e)}function lh(){let{isDataRoute:e}=B.useContext(pg);return e?yh():uh()}function uh(){oh()||Jm(!1);let e=B.useContext(lg),{basename:t,navigator:n}=B.useContext(dg),{matches:r}=B.useContext(pg),{pathname:i}=sh(),a=JSON.stringify(th(r).map(e=>e.pathnameBase)),o=B.useRef(!1);return ch(()=>{o.current=!0}),B.useCallback(function(r,s){if(s===void 0&&(s={}),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=nh(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:ig([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}function dh(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=B.useContext(pg),{pathname:i}=sh(),a=JSON.stringify(th(r).map(e=>e.pathnameBase));return B.useMemo(()=>nh(e,JSON.parse(a),i,n===`path`),[e,a,i,n])}function fh(){let e=vh(),t=rh(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return B.createElement(B.Fragment,null,B.createElement(`h2`,null,`Unexpected Application Error!`),B.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?B.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}function ph(e){let t=B.useContext(lg);return t||Jm(!1),t}function mh(e){let t=B.useContext(ug);return t||Jm(!1),t}function hh(e){let t=B.useContext(pg);return t||Jm(!1),t}function gh(e){let t=hh(e),n=t.matches[t.matches.length-1];return n.route.id||Jm(!1),n.route.id}function _h(){return gh(gg.UseRouteId)}function vh(){let e=B.useContext(mg),t=mh(gg.UseRouteError),n=gh(gg.UseRouteError);return e||t.errors?.[n]}function yh(){let{router:e}=ph(hg.UseNavigateStable),t=gh(gg.UseNavigateStable),n=B.useRef(!1);return ch(()=>{n.current=!0}),B.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,ih({fromRouteId:t},i)))},[e,t])}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bh.apply(this,arguments)}function xh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Sh(e){return e!=null&&typeof e.tagName==`string`}function Ch(e){return Sh(e)&&e.tagName.toLowerCase()===`button`}function wh(e){return Sh(e)&&e.tagName.toLowerCase()===`form`}function Th(e){return Sh(e)&&e.tagName.toLowerCase()===`input`}function Eh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dh(e,t){return e.button===0&&(!t||t===`_self`)&&!Eh(e)}function Oh(){if(bg===null)try{new FormData(document.createElement(`form`),0),bg=!1}catch{bg=!0}return bg}function kh(e){return e!=null&&!xg.has(e)?null:e}function Ah(e,t){let n,r,i,a,o;if(wh(e)){let o=e.getAttribute(`action`);r=o?Zm(o,t):null,n=e.getAttribute(`method`)||vg,i=kh(e.getAttribute(`enctype`))||yg,a=new FormData(e)}else if(Ch(e)||Th(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Zm(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||vg,i=kh(e.getAttribute(`formenctype`))||kh(o.getAttribute(`enctype`))||yg,a=new FormData(o,e),!Oh()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?t+`.`:``;a.append(e+`x`,`0`),a.append(e+`y`,`0`)}else t&&a.append(t,r)}}else{if(Sh(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);n=vg,r=null,i=yg,o=e}return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function jh(e){let t=Lh.useContext(lg);return t||Jm(!1),t}function Mh(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,s=lh(),c=sh(),l=dh(e,{relative:o});return Lh.useCallback(t=>{if(Dh(t,n)){t.preventDefault();let n=r===void 0?Ym(c)===Ym(l):r;s(e,{replace:n,state:i,preventScrollReset:a,relative:o})}},[c,s,l,r,i,n,e,a,o])}function Nh(){if(typeof document>`u`)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function Ph(){let{router:e}=jh(kg.UseSubmit),{basename:t}=Lh.useContext(dg),n=_h();return Lh.useCallback(function(r,i){i===void 0&&(i={}),Nh();let{action:a,method:o,encType:s,formData:c,body:l}=Ah(r,t);e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:l,formMethod:i.method||o,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n})},[e,t,n])}function Fh(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=Lh.useContext(dg),i=Lh.useContext(pg);i||Jm(!1);let[a]=i.matches.slice(-1),o=bh({},dh(e||`.`,{relative:n})),s=sh();if(e==null&&(o.search=s.search,a.route.index)){let e=new URLSearchParams(o.search);e.delete(`index`),o.search=e.toString()?`?`+e.toString():``}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),r!==`/`&&(o.pathname=o.pathname===`/`?r:ig([r,o.pathname])),Ym(o)}var Ih,Lh,B,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg;function Fg(){return(Fg=e((()=>{yt(),_s(),_e(),m(),S(),Ih=t(o(),1),Lh=t(o(),1),B=t(o(),1),{once:Rh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,zh=C(ge(),1),Bh=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/,Vh=(0,zh.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,n,r,i]=e.toLowerCase().match(Bh)||[];n?Object.assign(t,{viewMode:n,storyId:i,refId:r}):gt(e)&&(t.viewMode=`review`)}return t}),Hh=Symbol(`Deeply equal`),Uh=(e,t)=>{if(typeof e!=typeof t)return t;if(d(e,t))return Hh;if(Array.isArray(e)&&Array.isArray(t)){let n=t.reduce((t,n,r)=>{let i=Uh(e[r],n);return i!==Hh&&(t[r]=i),t},Array(t.length));return t.length>=e.length?n:n.concat(Array(e.length-t.length).fill(void 0))}return u(e)&&u(t)?Object.keys({...e,...t}).reduce((n,r)=>{let i=Uh(e?.[r],t?.[r]);return i===Hh?n:Object.assign(n,{[r]:i})},{}):t},Wh=/^[a-zA-Z0-9 _-]*$/,Gh=/^-?[0-9]+(\.[0-9]+)?$/,Kh=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,qh=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Jh=(e=``,t)=>e===null||e===``||!Wh.test(e)?!1:t==null||t instanceof Date||typeof t==`number`||typeof t==`boolean`?!0:typeof t==`string`?Wh.test(t)||Gh.test(t)||Kh.test(t)||qh.test(t):Array.isArray(t)?t.every(t=>Jh(e,t)):u(t)?Object.entries(t).every(([e,t])=>Jh(e,t)):!1,Yh=e=>e===void 0?`!undefined`:e===null?`!null`:typeof e==`string`?Kh.test(e)?`!hex(${e.slice(1)})`:qh.test(e)?`!${e.replace(/[\s%]/g,``)}`:e:typeof e==`boolean`?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(Yh):u(e)?Object.entries(e).reduce((e,[t,n])=>Object.assign(e,{[t]:Yh(n)}),{}):e,Xh=e=>{switch(e){case`%20`:return`+`;case`%5B`:return`[`;case`%5D`:return`]`;case`%2C`:return`,`;case`%3A`:return`:`}return e},Zh=/%[0-9A-F]{2}/g,Qh=(e,t)=>{let n=Uh(e,t);if(!n||n===Hh)return``;let r=Object.entries(n).reduce((e,[t,n])=>Jh(t,n)?Object.assign(e,{[t]:n}):(Rh.warn(T`
167
+ }`}]),T=setTimeout(()=>C(i),3500)}),e.on(em,({newPhase:e})=>{e===`loading`&&w()})},globalThis?.FEATURES?.highlight&&$p?.ready&&$p.ready().then(xm),{useEffect:Sm}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Cm}=__STORYBOOK_MODULE_GLOBAL__,{global:wm}=__STORYBOOK_MODULE_GLOBAL__,{global:Tm}=__STORYBOOK_MODULE_GLOBAL__,globalThis.FEATURES?.measure,{useEffect:Em,useMemo:Dm}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Om}=__STORYBOOK_MODULE_GLOBAL__,globalThis.FEATURES?.outline,km=Ia({id:F()}),Am=Ia({name:F(),message:F()}),jm=Ia({id:F(),name:F(),snippet:La(F()),description:La(F()),summary:La(F()),error:La(Am)}),Mm=Ia({id:F(),name:F(),path:F(),import:La(F()),stories:Ra(F(),jm),error:La(Am)}),Nm=La(Mm),vs({id:`core/story-docs`,description:`Story documentation (snippets, descriptions, imports) keyed by component id.`,initialState:{components:{}},queries:{storyDocs:{description:`Returns the story-docs payload for one component id, or undefined when not loaded.`,input:km,output:Nm,handler:(e,t)=>Object.hasOwn(t.self.state.components,e.id)?t.self.state.components[e.id]:void 0,load:async(e,t)=>{await t.self.commands.extractStoryDocs(e)},staticPath:e=>Np(e.id)},storyDocsForAllComponents:{description:`Returns story-docs payloads for every component in the story index.`,input:Va(),output:Ra(F(),Mm),handler:(e,t)=>t.self.state.components,load:async(e,t)=>{await t.self.commands.extractAllStoryDocs(void 0)}}},commands:{extractStoryDocs:{description:`Resolves the story entry for a component id, runs the registered provider chain, writes the result into state, and returns it (or undefined when no provider produced story docs).`,input:km,output:Nm},extractAllStoryDocs:{description:"Extracts story docs for every component id in the story index by invoking `extractStoryDocs` for each.",input:za(),output:Va()}}}),{emitTransformCode:Pm,getService:Fm}=__STORYBOOK_MODULE_PREVIEW_API__,{clearAllMocks:Im,fn:Lm,isMockFunction:Rm,resetAllMocks:zm,restoreAllMocks:Bm,uninstrumentedUserEvent:Vm,within:Hm}=__STORYBOOK_MODULE_TEST__,Um=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),Wm=(e,t)=>{let n=Um(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},Gm=(e,t)=>`${Wm(e,`kind`)}${t?`--${Wm(t,`name`)}`:``}`})))()}function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qm.apply(this,arguments)}function Jm(e,t){if(e===!1||e===null||typeof e>`u`)throw Error(t)}function Ym(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function Xm(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Zm(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Qm(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Xm(e):e;return{pathname:n?n.startsWith(`/`)?n:$m(n,t):t,search:ag(r),hash:og(i)}}function $m(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function eh(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function th(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function nh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=Xm(e):(i=qm({},e),Jm(!i.pathname||!i.pathname.includes(`?`),eh(`?`,`pathname`,`search`,i)),Jm(!i.pathname||!i.pathname.includes(`#`),eh(`#`,`pathname`,`hash`,i)),Jm(!i.search||!i.search.includes(`#`),eh(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(r||o==null)s=n;else{let e=t.length-1;if(o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Qm(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}function rh(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ih(){return ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ih.apply(this,arguments)}function ah(e,t){let{relative:n}=t===void 0?{}:t;oh()||Jm(!1);let{basename:r,navigator:i}=B.useContext(dg),{hash:a,pathname:o,search:s}=dh(e,{relative:n}),c=o;return r!==`/`&&(c=o===`/`?r:ig([r,o])),i.createHref({pathname:c,search:s,hash:a})}function oh(){return B.useContext(fg)!=null}function sh(){return oh()||Jm(!1),B.useContext(fg).location}function ch(e){B.useContext(dg).static||B.useLayoutEffect(e)}function lh(){let{isDataRoute:e}=B.useContext(pg);return e?yh():uh()}function uh(){oh()||Jm(!1);let e=B.useContext(lg),{basename:t,navigator:n}=B.useContext(dg),{matches:r}=B.useContext(pg),{pathname:i}=sh(),a=JSON.stringify(th(r).map(e=>e.pathnameBase)),o=B.useRef(!1);return ch(()=>{o.current=!0}),B.useCallback(function(r,s){if(s===void 0&&(s={}),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=nh(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:ig([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}function dh(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=B.useContext(pg),{pathname:i}=sh(),a=JSON.stringify(th(r).map(e=>e.pathnameBase));return B.useMemo(()=>nh(e,JSON.parse(a),i,n===`path`),[e,a,i,n])}function fh(){let e=vh(),t=rh(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return B.createElement(B.Fragment,null,B.createElement(`h2`,null,`Unexpected Application Error!`),B.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?B.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}function ph(e){let t=B.useContext(lg);return t||Jm(!1),t}function mh(e){let t=B.useContext(ug);return t||Jm(!1),t}function hh(e){let t=B.useContext(pg);return t||Jm(!1),t}function gh(e){let t=hh(e),n=t.matches[t.matches.length-1];return n.route.id||Jm(!1),n.route.id}function _h(){return gh(gg.UseRouteId)}function vh(){let e=B.useContext(mg),t=mh(gg.UseRouteError),n=gh(gg.UseRouteError);return e||t.errors?.[n]}function yh(){let{router:e}=ph(hg.UseNavigateStable),t=gh(gg.UseNavigateStable),n=B.useRef(!1);return ch(()=>{n.current=!0}),B.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,ih({fromRouteId:t},i)))},[e,t])}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bh.apply(this,arguments)}function xh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Sh(e){return e!=null&&typeof e.tagName==`string`}function Ch(e){return Sh(e)&&e.tagName.toLowerCase()===`button`}function wh(e){return Sh(e)&&e.tagName.toLowerCase()===`form`}function Th(e){return Sh(e)&&e.tagName.toLowerCase()===`input`}function Eh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dh(e,t){return e.button===0&&(!t||t===`_self`)&&!Eh(e)}function Oh(){if(bg===null)try{new FormData(document.createElement(`form`),0),bg=!1}catch{bg=!0}return bg}function kh(e){return e!=null&&!xg.has(e)?null:e}function Ah(e,t){let n,r,i,a,o;if(wh(e)){let o=e.getAttribute(`action`);r=o?Zm(o,t):null,n=e.getAttribute(`method`)||vg,i=kh(e.getAttribute(`enctype`))||yg,a=new FormData(e)}else if(Ch(e)||Th(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Zm(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||vg,i=kh(e.getAttribute(`formenctype`))||kh(o.getAttribute(`enctype`))||yg,a=new FormData(o,e),!Oh()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?t+`.`:``;a.append(e+`x`,`0`),a.append(e+`y`,`0`)}else t&&a.append(t,r)}}else{if(Sh(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);n=vg,r=null,i=yg,o=e}return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function jh(e){let t=Lh.useContext(lg);return t||Jm(!1),t}function Mh(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o}=t===void 0?{}:t,s=lh(),c=sh(),l=dh(e,{relative:o});return Lh.useCallback(t=>{if(Dh(t,n)){t.preventDefault();let n=r===void 0?Ym(c)===Ym(l):r;s(e,{replace:n,state:i,preventScrollReset:a,relative:o})}},[c,s,l,r,i,n,e,a,o])}function Nh(){if(typeof document>`u`)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function Ph(){let{router:e}=jh(kg.UseSubmit),{basename:t}=Lh.useContext(dg),n=_h();return Lh.useCallback(function(r,i){i===void 0&&(i={}),Nh();let{action:a,method:o,encType:s,formData:c,body:l}=Ah(r,t);e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:c,body:l,formMethod:i.method||o,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n})},[e,t,n])}function Fh(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=Lh.useContext(dg),i=Lh.useContext(pg);i||Jm(!1);let[a]=i.matches.slice(-1),o=bh({},dh(e||`.`,{relative:n})),s=sh();if(e==null&&(o.search=s.search,a.route.index)){let e=new URLSearchParams(o.search);e.delete(`index`),o.search=e.toString()?`?`+e.toString():``}return(!e||e===`.`)&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,`?index&`):`?index`),r!==`/`&&(o.pathname=o.pathname===`/`?r:ig([r,o.pathname])),Ym(o)}var Ih,Lh,B,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg;function Fg(){return(Fg=t((()=>{yt(),_s(),_e(),m(),S(),Ih=e(o(),1),Lh=e(o(),1),B=e(o(),1),{once:Rh}=__STORYBOOK_MODULE_CLIENT_LOGGER__,zh=C(ge(),1),Bh=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/,Vh=(0,zh.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,n,r,i]=e.toLowerCase().match(Bh)||[];n?Object.assign(t,{viewMode:n,storyId:i,refId:r}):gt(e)&&(t.viewMode=`review`)}return t}),Hh=Symbol(`Deeply equal`),Uh=(e,t)=>{if(typeof e!=typeof t)return t;if(d(e,t))return Hh;if(Array.isArray(e)&&Array.isArray(t)){let n=t.reduce((t,n,r)=>{let i=Uh(e[r],n);return i!==Hh&&(t[r]=i),t},Array(t.length));return t.length>=e.length?n:n.concat(Array(e.length-t.length).fill(void 0))}return u(e)&&u(t)?Object.keys({...e,...t}).reduce((n,r)=>{let i=Uh(e?.[r],t?.[r]);return i===Hh?n:Object.assign(n,{[r]:i})},{}):t},Wh=/^[a-zA-Z0-9 _-]*$/,Gh=/^-?[0-9]+(\.[0-9]+)?$/,Kh=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,qh=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Jh=(e=``,t)=>e===null||e===``||!Wh.test(e)?!1:t==null||t instanceof Date||typeof t==`number`||typeof t==`boolean`?!0:typeof t==`string`?Wh.test(t)||Gh.test(t)||Kh.test(t)||qh.test(t):Array.isArray(t)?t.every(t=>Jh(e,t)):u(t)?Object.entries(t).every(([e,t])=>Jh(e,t)):!1,Yh=e=>e===void 0?`!undefined`:e===null?`!null`:typeof e==`string`?Kh.test(e)?`!hex(${e.slice(1)})`:qh.test(e)?`!${e.replace(/[\s%]/g,``)}`:e:typeof e==`boolean`?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(Yh):u(e)?Object.entries(e).reduce((e,[t,n])=>Object.assign(e,{[t]:Yh(n)}),{}):e,Xh=e=>{switch(e){case`%20`:return`+`;case`%5B`:return`[`;case`%5D`:return`]`;case`%2C`:return`,`;case`%3A`:return`:`}return e},Zh=/%[0-9A-F]{2}/g,Qh=(e,t)=>{let n=Uh(e,t);if(!n||n===Hh)return``;let r=Object.entries(n).reduce((e,[t,n])=>Jh(t,n)?Object.assign(e,{[t]:n}):(Rh.warn(T`
168
168
  Omitted potentially unsafe URL args.
169
169
 
170
170
  More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
171
- `),e),{});return ts(Yh(r),{delimiter:`;`,nesting:!0,nestingSyntax:`js`}).replace(Zh,Xh).split(`;`).map(e=>e.replace(`=`,`:`)).join(`;`)},$h=(0,zh.default)(1e3)(e=>e===void 0?{}:es(e)),eg=e=>$h(e?.search?e.search.slice(1):``),(0,zh.default)(1e3)((e,t,n=!0)=>{if(n){if(typeof t!=`string`)throw Error(`startsWith only works with string targets`);return e&&e.startsWith(t)?{path:e}:null}let r=typeof t==`string`&&e===t,i=e&&t&&e.match(t);return r||i?{path:e}:null}),{global:tg}=__STORYBOOK_MODULE_GLOBAL__,(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(ng||={}),(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(rg||={}),ig=e=>e.join(`/`).replace(/\/\/+/g,`/`),ag=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,og=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,sg=[`post`,`put`,`patch`,`delete`],new Set(sg),cg=[`get`,...sg],new Set(cg),lg=B.createContext(null),ug=B.createContext(null),B.createContext(null),dg=B.createContext(null),fg=B.createContext(null),pg=B.createContext({outlet:null,matches:[],isDataRoute:!1}),mg=B.createContext(null),B.createContext(null),B.createElement(fh,null),hg=(function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e})(hg||{}),gg=(function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e})(gg||{}),_g=(function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e})(_g||{}),new Promise(()=>{}),vg=`get`,yg=`application/x-www-form-urlencoded`,bg=null,xg=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]),Sg=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`],Cg=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`children`],wg=[`reloadDocument`,`replace`,`state`,`method`,`action`,`onSubmit`,`submit`,`relative`,`preventScrollReset`],Tg=typeof window<`u`&&typeof window.document<`u`&&typeof window.document.createElement<`u`,Eg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dg=Lh.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l}=e,u=xh(e,Sg),{basename:d}=Lh.useContext(dg),f,p=!1;if(typeof c==`string`&&Eg.test(c)&&(f=c,Tg))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=Zm(t.pathname,d);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:p=!0}catch{}let m=ah(c,{relative:r}),h=Mh(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r});function g(e){n&&n(e),e.defaultPrevented||h(e)}return Lh.createElement(`a`,bh({},u,{href:f||m,onClick:p||i?n:g,ref:t,target:s}))}),Lh.forwardRef(function(e,t){let{"aria-current":n=`page`,caseSensitive:r=!1,className:i=``,end:a=!1,style:o,to:s,children:c}=e,l=xh(e,Cg),u=dh(s,{relative:l.relative}),d=sh(),f=Lh.useContext(ug),{navigator:p}=Lh.useContext(dg),m=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,h=d.pathname,g=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(h=h.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase());let _=h===m||!a&&h.startsWith(m)&&h.charAt(m.length)===`/`,v=g!=null&&(g===m||!a&&g.startsWith(m)&&g.charAt(m.length)===`/`),y=_?n:void 0,b;b=typeof i==`function`?i({isActive:_,isPending:v}):[i,_?`active`:null,v?`pending`:null].filter(Boolean).join(` `);let x=typeof o==`function`?o({isActive:_,isPending:v}):o;return Lh.createElement(Dg,bh({},l,{"aria-current":y,className:b,ref:t,style:x,to:s}),typeof c==`function`?c({isActive:_,isPending:v}):c)}),Lh.forwardRef((e,t)=>{let n=Ph();return Lh.createElement(Og,bh({},e,{submit:n,ref:t}))}),Og=Lh.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,state:i,method:a=vg,action:o,onSubmit:s,submit:c,relative:l,preventScrollReset:u}=e,d=xh(e,wg),f=a.toLowerCase()===`get`?`get`:`post`,p=Fh(o,{relative:l});return Lh.createElement(`form`,bh({ref:t,method:f,action:p,onSubmit:n?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=t?.getAttribute(`formmethod`)||a;c(t||e.currentTarget,{method:n,replace:r,state:i,relative:l,preventScrollReset:u})}},d))}),(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`})(kg||={}),(function(e){e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Ag||={}),{document:jg}=tg,Mg=()=>`${jg.location.pathname}?`,Ng=({to:e,children:t,...n})=>Ih.createElement(Dg,{to:`${Mg()}path=${e}`,...n},t),Ng.displayName=`QueryLink`,Pg=({children:e})=>{let t=sh(),{path:n=``,singleStory:r}=eg(t),{viewMode:i,storyId:a,refId:o}=Vh(n);return Ih.createElement(Ih.Fragment,null,e({path:n||`/`,location:t,viewMode:i,storyId:a,refId:o,singleStory:r===`true`}))},Pg.displayName=`QueryLocation`})))()}var Ig=r(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),Lg=r(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Rg=r(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Ig(),a=Lg();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),zg=r(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Bg=r(((e,t)=>{var n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),Vg=r(((e,t)=>{var n=Lg(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Ig(),{safeRe:a,t:o}=Rg(),s=zg(),{compareIdentifiers:c}=Bg(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);this.prerelease=l[4]?l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Hg=r(((e,t)=>{var n=Vg();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Ug=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Wg=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Gg=r(((e,t)=>{var n=Vg();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Kg=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),qg=r(((e,t)=>{var n=Vg();t.exports=(e,t)=>new n(e,t).major})),Jg=r(((e,t)=>{var n=Vg();t.exports=(e,t)=>new n(e,t).minor})),Yg=r(((e,t)=>{var n=Vg();t.exports=(e,t)=>new n(e,t).patch})),Xg=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Zg=r(((e,t)=>{var n=Vg();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Qg=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(t,e,r)})),$g=r(((e,t)=>{var n=Zg();t.exports=(e,t)=>n(e,t,!0)})),e_=r(((e,t)=>{var n=Vg();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),t_=r(((e,t)=>{var n=e_();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),n_=r(((e,t)=>{var n=e_();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),r_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)>0})),i_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)<0})),a_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)===0})),o_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)!==0})),s_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)>=0})),c_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)<=0})),l_=r(((e,t)=>{var n=a_(),r=o_(),i=r_(),a=s_(),o=i_(),s=c_();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),u_=r(((e,t)=>{var n=Vg(),r=Hg(),{safeRe:i,t:a}=Rg();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),d_=r(((e,t)=>{var n=Hg(),r=Ig(),i=Vg(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),f_=r(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),p_=r(((e,t)=>{var n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>ee(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1}};var r=new(f_()),i=zg(),a=m_(),o=Lg(),s=Vg(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=Rg(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=Ig(),g=new RegExp(l[u.BUILD],`g`),_=e=>e.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=T(e,t),o(`caret`,e),e=C(e,t),o(`tildes`,e),e=D(e,t),o(`xrange`,e),e=k(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t,n)=>x(e)&&!x(t)||x(t)&&n&&!x(n),C=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(` `),w=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},D=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>O(e,t)).join(` `)),O=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),S(i,a,s))return e;let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},k=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),ee=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),m_=r(((e,t)=>{var n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.value=this.semver===n?``:this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),this.semver=r[2]?new c(r[2],this.options.loose):n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``||new l(t.value,n).test(this.value):t.operator===``?t.value===``||new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=zg(),{safeRe:i,t:a}=Rg(),o=l_(),s=Lg(),c=Vg(),l=p_()})),h_=r(((e,t)=>{var n=p_();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),g_=r(((e,t)=>{var n=p_();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),__=r(((e,t)=>{var n=Vg(),r=p_();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),v_=r(((e,t)=>{var n=Vg(),r=p_();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),y_=r(((e,t)=>{var n=Vg(),r=p_(),i=r_();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),b_=r(((e,t)=>{var n=p_();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),x_=r(((e,t)=>{var n=Vg(),r=m_(),{ANY:i}=r,a=p_(),o=h_(),s=r_(),c=i_(),l=c_(),u=s_();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),S_=r(((e,t)=>{var n=x_();t.exports=(e,t,r)=>n(e,t,`>`,r)})),C_=r(((e,t)=>{var n=x_();t.exports=(e,t,r)=>n(e,t,`<`,r)})),w_=r(((e,t)=>{var n=p_();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),T_=r(((e,t)=>{var n=h_(),r=Zg();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),E_=r(((e,t)=>{var n=p_(),r=m_(),{ANY:i}=r,a=h_(),o=Zg(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),D_=r(((e,t)=>{var n=Rg(),r=Ig(),i=Vg(),a=Bg();t.exports={parse:Hg(),valid:Ug(),clean:Wg(),inc:Gg(),diff:Kg(),major:qg(),minor:Jg(),patch:Yg(),prerelease:Xg(),compare:Zg(),rcompare:Qg(),compareLoose:$g(),compareBuild:e_(),sort:t_(),rsort:n_(),gt:r_(),lt:i_(),eq:a_(),neq:o_(),gte:s_(),lte:c_(),cmp:l_(),coerce:u_(),truncate:d_(),Comparator:m_(),Range:p_(),satisfies:h_(),toComparators:g_(),maxSatisfying:__(),minSatisfying:v_(),minVersion:y_(),validRange:b_(),outside:x_(),gtr:S_(),ltr:C_(),intersects:w_(),simplifyRange:T_(),subset:E_(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}));function O_(){return globalThis[dv]||(globalThis[dv]=new uv),globalThis[dv]}function k_(e,t,n){let r=Object.keys(e??{});return r.indexOf(t)>=0?t:r.length?r[0]:n}async function A_(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw Error(`Unexpected boolean response`);if(!t.ok){if(t.status===401)try{let e=await t.json();if(e.loginUrl)return{loginUrl:e.loginUrl}}catch{}throw Error(`Unexpected response not OK: ${t.statusText}`)}let n=await t.json();return n.entries||n.stories?{storyIndex:n}:n}catch(e){return{indexError:e}}}function j_(e){return Hy.activeElement&&e?.contains(Hy.activeElement)}function M_(e){return Object.keys(e)}function N_(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null||t.closest(`dialog[open]`))}function P_(e){if(!e||typeof e==`string`)return e;let t={...e};return zb.forEach(e=>{e in t&&delete t[e]}),t}function F_(e){return e.get(Sx)||{}}function I_(e,t){return e.set(Sx,t)}function L_(e,t){return I_(e,{...F_(e),...t})}function R_({filter:e=kx,children:t}){let n=(0,B_.useContext)(Tx),r=(0,B_.useRef)(t),i=(0,B_.useRef)(e);if(typeof r.current!=`function`)return B_.createElement(B_.Fragment,null,r.current);let a=i.current(n),o=(0,B_.useMemo)(()=>[...Object.entries(a).reduce((e,t)=>e.concat(t),[])],[n.state]);return(0,B_.useMemo)(()=>{let e=r.current;return B_.createElement(e,{...a})},o)}function z_({universalTestProviderStore:e,useUniversalStore:t}){let n={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:`settings-changed`})})},onRunAll:t=>e.subscribe(`run-all`,t),onClearAll:t=>e.subscribe(`clear-all`,t)},r={...n,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:t=>e.subscribe(`settings-changed`,t),runAll:async()=>{await e.untilReady(),e.send({type:`run-all`})},clearAll:async()=>{await e.untilReady(),e.send({type:`clear-all`})}},i=t=>{let r=()=>e.getState()[t]??`test-provider-state:pending`,i=n=>{e.untilReady().then(()=>{e.setState(e=>({...e,[t]:n}))})};return{...n,testProviderId:t,getState:r,setState:i,runWithState:async e=>{i(`test-provider-state:running`);try{await e(),i(`test-provider-state:succeeded`)}catch{i(`test-provider-state:crashed`)}}}};return t?{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e,useTestProviderStore:n=>t(e,n)[0]}:{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e}}var B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx;function Bx(){return(Bx=e((()=>{mt(),yt(),la(),Vo(),Ko(),_s(),_e(),y(),m(),ya(),S(),B_=t(o(),1),V_=o(),Km(),oe(),H_=t(o(),1),Ke(),Fg(),U_=t(o(),1),W_=t(D_(),1),G_=t(o(),1),i(),K_=E({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}}),q_=E({"../../node_modules/copy-to-clipboard/index.js"(e,t){var n=K_(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),typeof n.clipboardData>`u`){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o}}),J_=E({"../../node_modules/store2/dist/store2.js"(e,t){(function(e,n){var r={version:`2.14.4`,areas:{},apis:{},nsdelim:`.`,inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t},stringify:function(e,t){return e===void 0||typeof e==`function`?e+``:JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch{return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,n){e.setItem(t,n)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var i=r.inherit(r.storeAPI,function(e,t,n){return arguments.length===0?i.getAll():typeof t==`function`?i.transact(e,t,n):t===void 0?typeof e==`string`||typeof e==`number`?i.get(e):typeof e==`function`?i.each(e):e?i.setAll(e,t):i.clear():i.set(e,t,n)});i._id=e;try{var a=`__store2_test`;t.setItem(a,`ok`),i._area=t,t.removeItem(a)}catch{i._area=r.storage(`fake`)}return i._ns=n||``,r.areas[e]||(r.areas[e]=i._area),r.apis[i._ns+i._id]||(r.apis[i._ns+i._id]=i),i},storeAPI:{area:function(e,t){var n=this[e];return(!n||!n.area)&&(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):``;var i=e,a=this[i];if((!a||!a.namespace)&&(a=r.Store(this._id,this._area,this._ns+i+n),a._delim=n,this[i]||(this[i]=a),!t))for(var o in r.areas)a.area(o,r.areas[o]);return a},isFake:function(e){return e?(this._real=this._area,this._area=r.storage(`fake`)):e===!1&&(this._area=this._real||this._area),this._area.name===`fake`},toString:function(){return`store`+(this._ns?`.`+this.namespace():``)+`[`+this._id+`]`},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,i=r.length(this._area);n<i;n++){var a=this._out(r.key(this._area,n));if(a!==void 0&&e.call(this,a,this.get(a),t)===!1)break;i>r.length(this._area)&&(i--,n--)}return t||this},keys:function(e){return this.each(function(e,t,n){n.push(e)},e||[])},get:function(e,t){var n=r.get(this._area,this._in(e)),i;return typeof t==`function`&&(i=t,t=null),n===null?t??n:r.parse(n,i)},getAll:function(e){return this.each(function(e,t,n){n[e]=t},e||{})},transact:function(e,t,n){var r=this.get(e,n),i=t(r);return this.set(e,i===void 0?r:i),this},set:function(e,t,n){var i=this.get(e),a;return i!=null&&n===!1?t:(typeof n==`function`&&(a=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,a),n)||i)},setAll:function(e,t){var n,r;for(var i in e)r=e[i],this.set(i,r,t)!==r&&(n=!0);return n},add:function(e,t,n){var i=this.get(e);if(i instanceof Array)t=i.concat(t);else if(i!==null){var a=typeof i;if(a===typeof t&&a===`object`){for(var o in t)i[o]=t[o];t=i}else t=i+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each(function(e){r.remove(this._area,this._in(e))},1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return typeof e!=`string`&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&e.indexOf(this._ns)===0?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var n in this.items)if(this.has(n)&&e===t++)return n},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},i=r.Store(`local`,(function(){try{return localStorage}catch{}})());i.local=i,i._=r,i.area(`session`,(function(){try{return sessionStorage}catch{}})()),i.area(`page`,r.storage(`page`)),typeof n==`function`&&n.amd!==void 0?n(`store2`,[],function(){return i}):typeof t<`u`&&t.exports?t.exports=i:(e.store&&(r.conflict=e.store),e.store=i)})(e,e&&e.define)}}),{DOCS_PREPARED:Y_,SET_STORIES:X_,SHARED_STATE_CHANGED:Z_,SHARED_STATE_SET:Q_,STORY_CHANGED:$_,STORY_PREPARED:ev}=__STORYBOOK_MODULE_CORE_EVENTS__,tv=({api:e,state:t})=>(0,V_.createContext)({api:e,state:t}),{logger:nv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,rv=(e,...t)=>{let n={};n=p({},e,(e,t)=>{if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.find(e=>e===t||d(e,t))||e.push(t)}),e;if(Array.isArray(e))return nv.log([`the types mismatch, picking`,e]),e});for(let e of t)n=p(n,e,(e,t)=>{if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.find(e=>e===t||d(e,t))||e.push(t)}),e;if(Array.isArray(e))return nv.log([`the types mismatch, picking`,e]),e});return n},iv=(e,...t)=>{let n={};n=p({},e,(e,t)=>{if(Array.isArray(t))return t});for(let e of t)n=p(n,e,(e,t)=>{if(Array.isArray(t))return t});return n},av=(...e)=>e.reduce((e,t)=>rv(e,t),{}),ov=av,{logger:sv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:cv}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:lv}=__STORYBOOK_MODULE_TYPES__,uv=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>{if(this.channel)return this.channel;let e=da();return e?(this.channel=e,this.resolve(),this.channel):Ho()},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel||!!da(),this.setChannel=e=>{this.channel=e,fa(e),this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(cv,this.config):this.ready().then(e=>{e.emit(cv,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&sv.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:n}=t,r=this.getElements(n);r[e]={...t,id:e}}experimental_getRegisteredAddons(e){return Object.keys(e?this.getElements(e):this.loaders)}},dv=`__STORYBOOK_ADDONS_MANAGER`,O_(),fv={},w(fv,{ensurePanel:()=>k_,init:()=>hv}),{logger:pv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:mv}=__STORYBOOK_MODULE_TYPES__,hv=({provider:e,store:t,fullAPI:n})=>{let r={getElements:t=>e.getElements(t),clearStatuses:()=>{let e=r.getElements(mv.experimental_TEST_PROVIDER);Object.values(e).forEach(e=>{try{e.clear?.()}catch(t){try{pv.warn(`Failed to clear test provider "${e.id}":`,t)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:e}=t.getState();return k_(r.getElements(mv.PANEL),e,e)},setSelectedPanel:e=>{t.setState({selectedPanel:e},{persistence:`session`})},setAddonState(e,n,i){let a=typeof n==`function`?n:()=>n;return t.setState(t=>({...t,addons:{...t.addons,[e]:a(t.addons[e])}}),i).then(()=>r.getAddonState(e))},getAddonState:e=>t.getState().addons[e]||globalThis?.STORYBOOK_ADDON_STATE[e]};return{api:r,state:{selectedPanel:k_(r.getElements(mv.PANEL),t.getState().selectedPanel),addons:{}}}},gv={},w(gv,{init:()=>_v}),_v=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,n)=>(e.channel?.on(t,n),()=>e.channel?.off(t,n)),off:(t,n)=>e.channel?.off(t,n),once:(t,n)=>e.channel?.once(t,n),emit:(t,n,...r)=>{n?.options?.target&&n.options.target!==`storybook-preview-iframe`&&!n.options.target.startsWith(`storybook-ref-`)&&(n.options.target=n.options.target===`storybook_internal`?`storybook-preview-iframe`:`storybook-ref-${n.options.target}`),e.channel?.emit(t,n,...r)}},state:{}}),vv={},w(vv,{init:()=>Jv}),{logger:yv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:bv,SET_GLOBALS:xv,UPDATE_GLOBALS:Sv}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:Cv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,wv={},w(wv,{defaultStoryMapper:()=>Vv,getSourceType:()=>Bv,init:()=>Kv}),{global:Tv}=__STORYBOOK_MODULE_GLOBAL__,Ev=C(ge(),1),Dv=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((e,n)=>(t.includes(n)&&e.push(n),e),[]),Ov=/\s*\/\s*/,kv=({globalParameters:e,kindParameters:t,stories:n})=>c(n,n=>({...n,parameters:Ex(e,t[n.kind],n.parameters)})),Av=e=>({v:5,entries:Object.entries(e).reduce((e,[t,n])=>{if(!n)return e;let{docsOnly:r,fileName:i,...a}=n.parameters,o={title:n.kind,id:t,name:n.name,importPath:i};if(r)e[t]={type:`docs`,tags:[`stories-mdx`],storiesImports:[],...o};else{let{argTypes:r,args:i,initialArgs:s}=n;e[t]={type:`story`,subtype:`story`,...o,parameters:a,argTypes:r,args:i,initialArgs:s}}return e},{})}),jv=e=>({v:3,stories:Object.values(e.stories).reduce((e,t)=>(e[t.id]={...t,title:t.kind,name:t.name||t.story,importPath:t.parameters.fileName||``},e),{})}),Mv=e=>{let t=zo(Object.values(e.stories),e=>e.title);return{v:4,entries:Object.values(e.stories).reduce((e,n)=>{let r=`story`;return(n.parameters?.docsOnly||n.name===`Page`&&t[n.title]===1)&&(r=`docs`),e[n.id]={type:r,...r===`docs`&&{tags:[`stories-mdx`],storiesImports:[]},...n},delete e[n.id].story,delete e[n.id].kind,e},{})}},Nv=e=>({v:5,entries:Object.values(e.entries).reduce((e,t)=>(e[t.id]={...t,tags:t.tags?[Uo.DEV,Uo.TEST,...t.tags]:[Uo.DEV]},e),{})}),Pv=(e,{provider:t,docsOptions:n,filters:r,allStatuses:i,statusFilterKey:a})=>{if(!e.v)throw Error(`Composition: Missing stories.json version`);let o=e;o=o.v===2?jv(o):o,o=o.v===3?Mv(o):o,o=o.v===4?Nv(o):o,o=o;let s=Object.values(o.entries),c=Object.values(r),l=a?r[a]:void 0,u=s.filter(e=>{let t=i[e.id]??{};return l&&!l({...e,statuses:t})&&!s.filter(t=>`parent`in t&&t.parent===e.id).some(e=>l({...e,statuses:i[e.id]??{}}))?!1:Object.values(t).some(({value:e})=>e===`status-value:error`)||c.every(n=>n({...e,statuses:t}))?!0:s.filter(t=>`parent`in t&&t.parent===e.id).some(e=>c.every(n=>n({...e,statuses:t})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:p=[],renderLabel:m}=d,h=typeof f<`u`,g=u.reduce((e,t)=>{if(n.docsMode&&t.type!==`docs`)return e;let{title:r}=t,i=r.trim().split(Ov),a=(!h||f)&&i.length>1?[i.shift()]:[],o=[...a,...i],s=o.reduce((e,t,n)=>{let i=n>0&&e[n-1],a=Um(i?`${i}-${t}`:t);if(t.trim()===``)throw Error(T`Invalid title ${r} ending in slash.`);if(i===a)throw Error(T`
171
+ `),e),{});return ts(Yh(r),{delimiter:`;`,nesting:!0,nestingSyntax:`js`}).replace(Zh,Xh).split(`;`).map(e=>e.replace(`=`,`:`)).join(`;`)},$h=(0,zh.default)(1e3)(e=>e===void 0?{}:es(e)),eg=e=>$h(e?.search?e.search.slice(1):``),(0,zh.default)(1e3)((e,t,n=!0)=>{if(n){if(typeof t!=`string`)throw Error(`startsWith only works with string targets`);return e&&e.startsWith(t)?{path:e}:null}let r=typeof t==`string`&&e===t,i=e&&t&&e.match(t);return r||i?{path:e}:null}),{global:tg}=__STORYBOOK_MODULE_GLOBAL__,(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(ng||={}),(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(rg||={}),ig=e=>e.join(`/`).replace(/\/\/+/g,`/`),ag=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,og=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,sg=[`post`,`put`,`patch`,`delete`],new Set(sg),cg=[`get`,...sg],new Set(cg),lg=B.createContext(null),ug=B.createContext(null),B.createContext(null),dg=B.createContext(null),fg=B.createContext(null),pg=B.createContext({outlet:null,matches:[],isDataRoute:!1}),mg=B.createContext(null),B.createContext(null),B.createElement(fh,null),hg=(function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e})(hg||{}),gg=(function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e})(gg||{}),_g=(function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e})(_g||{}),new Promise(()=>{}),vg=`get`,yg=`application/x-www-form-urlencoded`,bg=null,xg=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]),Sg=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`],Cg=[`aria-current`,`caseSensitive`,`className`,`end`,`style`,`to`,`children`],wg=[`reloadDocument`,`replace`,`state`,`method`,`action`,`onSubmit`,`submit`,`relative`,`preventScrollReset`],Tg=typeof window<`u`&&typeof window.document<`u`&&typeof window.document.createElement<`u`,Eg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dg=Lh.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l}=e,u=xh(e,Sg),{basename:d}=Lh.useContext(dg),f,p=!1;if(typeof c==`string`&&Eg.test(c)&&(f=c,Tg))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=Zm(t.pathname,d);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:p=!0}catch{}let m=ah(c,{relative:r}),h=Mh(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r});function g(e){n&&n(e),e.defaultPrevented||h(e)}return Lh.createElement(`a`,bh({},u,{href:f||m,onClick:p||i?n:g,ref:t,target:s}))}),Lh.forwardRef(function(e,t){let{"aria-current":n=`page`,caseSensitive:r=!1,className:i=``,end:a=!1,style:o,to:s,children:c}=e,l=xh(e,Cg),u=dh(s,{relative:l.relative}),d=sh(),f=Lh.useContext(ug),{navigator:p}=Lh.useContext(dg),m=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,h=d.pathname,g=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(h=h.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase());let _=h===m||!a&&h.startsWith(m)&&h.charAt(m.length)===`/`,v=g!=null&&(g===m||!a&&g.startsWith(m)&&g.charAt(m.length)===`/`),y=_?n:void 0,b;b=typeof i==`function`?i({isActive:_,isPending:v}):[i,_?`active`:null,v?`pending`:null].filter(Boolean).join(` `);let x=typeof o==`function`?o({isActive:_,isPending:v}):o;return Lh.createElement(Dg,bh({},l,{"aria-current":y,className:b,ref:t,style:x,to:s}),typeof c==`function`?c({isActive:_,isPending:v}):c)}),Lh.forwardRef((e,t)=>{let n=Ph();return Lh.createElement(Og,bh({},e,{submit:n,ref:t}))}),Og=Lh.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,state:i,method:a=vg,action:o,onSubmit:s,submit:c,relative:l,preventScrollReset:u}=e,d=xh(e,wg),f=a.toLowerCase()===`get`?`get`:`post`,p=Fh(o,{relative:l});return Lh.createElement(`form`,bh({ref:t,method:f,action:p,onSubmit:n?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=t?.getAttribute(`formmethod`)||a;c(t||e.currentTarget,{method:n,replace:r,state:i,relative:l,preventScrollReset:u})}},d))}),(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`})(kg||={}),(function(e){e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Ag||={}),{document:jg}=tg,Mg=()=>`${jg.location.pathname}?`,Ng=({to:e,children:t,...n})=>Ih.createElement(Dg,{to:`${Mg()}path=${e}`,...n},t),Ng.displayName=`QueryLink`,Pg=({children:e})=>{let t=sh(),{path:n=``,singleStory:r}=eg(t),{viewMode:i,storyId:a,refId:o}=Vh(n);return Ih.createElement(Ih.Fragment,null,e({path:n||`/`,location:t,viewMode:i,storyId:a,refId:o,singleStory:r===`true`}))},Pg.displayName=`QueryLocation`})))()}var Ig=r(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),Lg=r(((e,t)=>{t.exports=typeof process==`object`&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),Rg=r(((e,t)=>{var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Ig(),a=Lg();e=t.exports={};var o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),zg=r(((e,t)=>{var n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),Bg=r(((e,t)=>{var n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),Vg=r(((e,t)=>{var n=Lg(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=Ig(),{safeRe:a,t:o}=Rg(),s=zg(),{compareIdentifiers:c}=Bg(),l=(e,t)=>{let n=t.split(`.`);if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(c(e[t],n[t])!==0)return!1;return!0};t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);this.prerelease=l[4]?l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e!==i)return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];if(n===!1&&(r=[t]),l(this.prerelease,t)){let e=this.prerelease[t.split(`.`).length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),Hg=r(((e,t)=>{var n=Vg();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Ug=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Wg=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Gg=r(((e,t)=>{var n=Vg();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Kg=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),qg=r(((e,t)=>{var n=Vg();t.exports=(e,t)=>new n(e,t).major})),Jg=r(((e,t)=>{var n=Vg();t.exports=(e,t)=>new n(e,t).minor})),Yg=r(((e,t)=>{var n=Vg();t.exports=(e,t)=>new n(e,t).patch})),Xg=r(((e,t)=>{var n=Hg();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Zg=r(((e,t)=>{var n=Vg();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Qg=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(t,e,r)})),$g=r(((e,t)=>{var n=Zg();t.exports=(e,t)=>n(e,t,!0)})),e_=r(((e,t)=>{var n=Vg();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),t_=r(((e,t)=>{var n=e_();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),n_=r(((e,t)=>{var n=e_();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),r_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)>0})),i_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)<0})),a_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)===0})),o_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)!==0})),s_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)>=0})),c_=r(((e,t)=>{var n=Zg();t.exports=(e,t,r)=>n(e,t,r)<=0})),l_=r(((e,t)=>{var n=a_(),r=o_(),i=r_(),a=s_(),o=i_(),s=c_();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),u_=r(((e,t)=>{var n=Vg(),r=Hg(),{safeRe:i,t:a}=Rg();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),d_=r(((e,t)=>{var n=Hg(),r=Ig(),i=Vg(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),f_=r(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),p_=r(((e,t)=>{var n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>ee(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1}};var r=new(f_()),i=zg(),a=m_(),o=Lg(),s=Vg(),{safeRe:c,src:l,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=Rg(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=Ig(),g=new RegExp(l[u.BUILD],`g`),_=e=>e.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=T(e,t),o(`caret`,e),e=C(e,t),o(`tildes`,e),e=D(e,t),o(`xrange`,e),e=k(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t,n)=>x(e)&&!x(t)||x(t)&&n&&!x(n),C=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(` `),w=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`tilde`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(o(`replaceTilde pr`,s),c=`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`):c=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,o(`tilde return`,c),c})},T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},D=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>O(e,t)).join(` `)),O=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{if(o(`xRange`,e,n,r,i,a,s,c),S(i,a,s))return e;let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},k=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),ee=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),m_=r(((e,t)=>{var n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.value=this.semver===n?``:this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),this.semver=r[2]?new c(r[2],this.options.loose):n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``||new l(t.value,n).test(this.value):t.operator===``?t.value===``||new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};var r=zg(),{safeRe:i,t:a}=Rg(),o=l_(),s=Lg(),c=Vg(),l=p_()})),h_=r(((e,t)=>{var n=p_();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),g_=r(((e,t)=>{var n=p_();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),__=r(((e,t)=>{var n=Vg(),r=p_();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),v_=r(((e,t)=>{var n=Vg(),r=p_();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),y_=r(((e,t)=>{var n=Vg(),r=p_(),i=r_();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),b_=r(((e,t)=>{var n=p_();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),x_=r(((e,t)=>{var n=Vg(),r=m_(),{ANY:i}=r,a=p_(),o=h_(),s=r_(),c=i_(),l=c_(),u=s_();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),S_=r(((e,t)=>{var n=x_();t.exports=(e,t,r)=>n(e,t,`>`,r)})),C_=r(((e,t)=>{var n=x_();t.exports=(e,t,r)=>n(e,t,`<`,r)})),w_=r(((e,t)=>{var n=p_();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),T_=r(((e,t)=>{var n=h_(),r=Zg();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),E_=r(((e,t)=>{var n=p_(),r=m_(),{ANY:i}=r,a=h_(),o=Zg(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),D_=r(((e,t)=>{var n=Rg(),r=Ig(),i=Vg(),a=Bg();t.exports={parse:Hg(),valid:Ug(),clean:Wg(),inc:Gg(),diff:Kg(),major:qg(),minor:Jg(),patch:Yg(),prerelease:Xg(),compare:Zg(),rcompare:Qg(),compareLoose:$g(),compareBuild:e_(),sort:t_(),rsort:n_(),gt:r_(),lt:i_(),eq:a_(),neq:o_(),gte:s_(),lte:c_(),cmp:l_(),coerce:u_(),truncate:d_(),Comparator:m_(),Range:p_(),satisfies:h_(),toComparators:g_(),maxSatisfying:__(),minSatisfying:v_(),minVersion:y_(),validRange:b_(),outside:x_(),gtr:S_(),ltr:C_(),intersects:w_(),simplifyRange:T_(),subset:E_(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}));function O_(){return globalThis[dv]||(globalThis[dv]=new uv),globalThis[dv]}function k_(e,t,n){let r=Object.keys(e??{});return r.indexOf(t)>=0?t:r.length?r[0]:n}async function A_(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw Error(`Unexpected boolean response`);if(!t.ok){if(t.status===401)try{let e=await t.json();if(e.loginUrl)return{loginUrl:e.loginUrl}}catch{}throw Error(`Unexpected response not OK: ${t.statusText}`)}let n=await t.json();return n.entries||n.stories?{storyIndex:n}:n}catch(e){return{indexError:e}}}function j_(e){return Hy.activeElement&&e?.contains(Hy.activeElement)}function M_(e){return Object.keys(e)}function N_(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null||t.closest(`dialog[open]`))}function P_(e){if(!e||typeof e==`string`)return e;let t={...e};return zb.forEach(e=>{e in t&&delete t[e]}),t}function F_(e){return e.get(Sx)||{}}function I_(e,t){return e.set(Sx,t)}function L_(e,t){return I_(e,{...F_(e),...t})}function R_({filter:e=kx,children:t}){let n=(0,B_.useContext)(Tx),r=(0,B_.useRef)(t),i=(0,B_.useRef)(e);if(typeof r.current!=`function`)return B_.createElement(B_.Fragment,null,r.current);let a=i.current(n),o=(0,B_.useMemo)(()=>[...Object.entries(a).reduce((e,t)=>e.concat(t),[])],[n.state]);return(0,B_.useMemo)(()=>{let e=r.current;return B_.createElement(e,{...a})},o)}function z_({universalTestProviderStore:e,useUniversalStore:t}){let n={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:`settings-changed`})})},onRunAll:t=>e.subscribe(`run-all`,t),onClearAll:t=>e.subscribe(`clear-all`,t)},r={...n,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:t=>e.subscribe(`settings-changed`,t),runAll:async()=>{await e.untilReady(),e.send({type:`run-all`})},clearAll:async()=>{await e.untilReady(),e.send({type:`clear-all`})}},i=t=>{let r=()=>e.getState()[t]??`test-provider-state:pending`,i=n=>{e.untilReady().then(()=>{e.setState(e=>({...e,[t]:n}))})};return{...n,testProviderId:t,getState:r,setState:i,runWithState:async e=>{i(`test-provider-state:running`);try{await e(),i(`test-provider-state:succeeded`)}catch{i(`test-provider-state:crashed`)}}}};return t?{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e,useTestProviderStore:n=>t(e,n)[0]}:{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e}}var B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv,Ev,Dv,Ov,kv,Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx;function Bx(){return(Bx=t((()=>{mt(),yt(),la(),Vo(),Ko(),_s(),_e(),y(),m(),ya(),S(),B_=e(o(),1),V_=o(),Km(),oe(),H_=e(o(),1),Ke(),Fg(),U_=e(o(),1),W_=e(D_(),1),G_=e(o(),1),i(),K_=E({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}}),q_=E({"../../node_modules/copy-to-clipboard/index.js"(e,t){var n=K_(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),typeof n.clipboardData>`u`){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o}}),J_=E({"../../node_modules/store2/dist/store2.js"(e,t){(function(e,n){var r={version:`2.14.4`,areas:{},apis:{},nsdelim:`.`,inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t},stringify:function(e,t){return e===void 0||typeof e==`function`?e+``:JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch{return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,n){e.setItem(t,n)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var i=r.inherit(r.storeAPI,function(e,t,n){return arguments.length===0?i.getAll():typeof t==`function`?i.transact(e,t,n):t===void 0?typeof e==`string`||typeof e==`number`?i.get(e):typeof e==`function`?i.each(e):e?i.setAll(e,t):i.clear():i.set(e,t,n)});i._id=e;try{var a=`__store2_test`;t.setItem(a,`ok`),i._area=t,t.removeItem(a)}catch{i._area=r.storage(`fake`)}return i._ns=n||``,r.areas[e]||(r.areas[e]=i._area),r.apis[i._ns+i._id]||(r.apis[i._ns+i._id]=i),i},storeAPI:{area:function(e,t){var n=this[e];return(!n||!n.area)&&(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):``;var i=e,a=this[i];if((!a||!a.namespace)&&(a=r.Store(this._id,this._area,this._ns+i+n),a._delim=n,this[i]||(this[i]=a),!t))for(var o in r.areas)a.area(o,r.areas[o]);return a},isFake:function(e){return e?(this._real=this._area,this._area=r.storage(`fake`)):e===!1&&(this._area=this._real||this._area),this._area.name===`fake`},toString:function(){return`store`+(this._ns?`.`+this.namespace():``)+`[`+this._id+`]`},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,i=r.length(this._area);n<i;n++){var a=this._out(r.key(this._area,n));if(a!==void 0&&e.call(this,a,this.get(a),t)===!1)break;i>r.length(this._area)&&(i--,n--)}return t||this},keys:function(e){return this.each(function(e,t,n){n.push(e)},e||[])},get:function(e,t){var n=r.get(this._area,this._in(e)),i;return typeof t==`function`&&(i=t,t=null),n===null?t??n:r.parse(n,i)},getAll:function(e){return this.each(function(e,t,n){n[e]=t},e||{})},transact:function(e,t,n){var r=this.get(e,n),i=t(r);return this.set(e,i===void 0?r:i),this},set:function(e,t,n){var i=this.get(e),a;return i!=null&&n===!1?t:(typeof n==`function`&&(a=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,a),n)||i)},setAll:function(e,t){var n,r;for(var i in e)r=e[i],this.set(i,r,t)!==r&&(n=!0);return n},add:function(e,t,n){var i=this.get(e);if(i instanceof Array)t=i.concat(t);else if(i!==null){var a=typeof i;if(a===typeof t&&a===`object`){for(var o in t)i[o]=t[o];t=i}else t=i+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each(function(e){r.remove(this._area,this._in(e))},1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return typeof e!=`string`&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&e.indexOf(this._ns)===0?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var n in this.items)if(this.has(n)&&e===t++)return n},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},i=r.Store(`local`,(function(){try{return localStorage}catch{}})());i.local=i,i._=r,i.area(`session`,(function(){try{return sessionStorage}catch{}})()),i.area(`page`,r.storage(`page`)),typeof n==`function`&&n.amd!==void 0?n(`store2`,[],function(){return i}):typeof t<`u`&&t.exports?t.exports=i:(e.store&&(r.conflict=e.store),e.store=i)})(e,e&&e.define)}}),{DOCS_PREPARED:Y_,SET_STORIES:X_,SHARED_STATE_CHANGED:Z_,SHARED_STATE_SET:Q_,STORY_CHANGED:$_,STORY_PREPARED:ev}=__STORYBOOK_MODULE_CORE_EVENTS__,tv=({api:e,state:t})=>(0,V_.createContext)({api:e,state:t}),{logger:nv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,rv=(e,...t)=>{let n={};n=p({},e,(e,t)=>{if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.find(e=>e===t||d(e,t))||e.push(t)}),e;if(Array.isArray(e))return nv.log([`the types mismatch, picking`,e]),e});for(let e of t)n=p(n,e,(e,t)=>{if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.find(e=>e===t||d(e,t))||e.push(t)}),e;if(Array.isArray(e))return nv.log([`the types mismatch, picking`,e]),e});return n},iv=(e,...t)=>{let n={};n=p({},e,(e,t)=>{if(Array.isArray(t))return t});for(let e of t)n=p(n,e,(e,t)=>{if(Array.isArray(t))return t});return n},av=(...e)=>e.reduce((e,t)=>rv(e,t),{}),ov=av,{logger:sv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:cv}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:lv}=__STORYBOOK_MODULE_TYPES__,uv=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>{if(this.channel)return this.channel;let e=da();return e?(this.channel=e,this.resolve(),this.channel):Ho()},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel||!!da(),this.setChannel=e=>{this.channel=e,fa(e),this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(cv,this.config):this.ready().then(e=>{e.emit(cv,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&sv.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:n}=t,r=this.getElements(n);r[e]={...t,id:e}}experimental_getRegisteredAddons(e){return Object.keys(e?this.getElements(e):this.loaders)}},dv=`__STORYBOOK_ADDONS_MANAGER`,O_(),fv={},w(fv,{ensurePanel:()=>k_,init:()=>hv}),{logger:pv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:mv}=__STORYBOOK_MODULE_TYPES__,hv=({provider:e,store:t,fullAPI:n})=>{let r={getElements:t=>e.getElements(t),clearStatuses:()=>{let e=r.getElements(mv.experimental_TEST_PROVIDER);Object.values(e).forEach(e=>{try{e.clear?.()}catch(t){try{pv.warn(`Failed to clear test provider "${e.id}":`,t)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:e}=t.getState();return k_(r.getElements(mv.PANEL),e,e)},setSelectedPanel:e=>{t.setState({selectedPanel:e},{persistence:`session`})},setAddonState(e,n,i){let a=typeof n==`function`?n:()=>n;return t.setState(t=>({...t,addons:{...t.addons,[e]:a(t.addons[e])}}),i).then(()=>r.getAddonState(e))},getAddonState:e=>t.getState().addons[e]||globalThis?.STORYBOOK_ADDON_STATE[e]};return{api:r,state:{selectedPanel:k_(r.getElements(mv.PANEL),t.getState().selectedPanel),addons:{}}}},gv={},w(gv,{init:()=>_v}),_v=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,n)=>(e.channel?.on(t,n),()=>e.channel?.off(t,n)),off:(t,n)=>e.channel?.off(t,n),once:(t,n)=>e.channel?.once(t,n),emit:(t,n,...r)=>{n?.options?.target&&n.options.target!==`storybook-preview-iframe`&&!n.options.target.startsWith(`storybook-ref-`)&&(n.options.target=n.options.target===`storybook_internal`?`storybook-preview-iframe`:`storybook-ref-${n.options.target}`),e.channel?.emit(t,n,...r)}},state:{}}),vv={},w(vv,{init:()=>Jv}),{logger:yv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:bv,SET_GLOBALS:xv,UPDATE_GLOBALS:Sv}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:Cv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,wv={},w(wv,{defaultStoryMapper:()=>Vv,getSourceType:()=>Bv,init:()=>Kv}),{global:Tv}=__STORYBOOK_MODULE_GLOBAL__,Ev=C(ge(),1),Dv=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((e,n)=>(t.includes(n)&&e.push(n),e),[]),Ov=/\s*\/\s*/,kv=({globalParameters:e,kindParameters:t,stories:n})=>c(n,n=>({...n,parameters:Ex(e,t[n.kind],n.parameters)})),Av=e=>({v:5,entries:Object.entries(e).reduce((e,[t,n])=>{if(!n)return e;let{docsOnly:r,fileName:i,...a}=n.parameters,o={title:n.kind,id:t,name:n.name,importPath:i};if(r)e[t]={type:`docs`,tags:[`stories-mdx`],storiesImports:[],...o};else{let{argTypes:r,args:i,initialArgs:s}=n;e[t]={type:`story`,subtype:`story`,...o,parameters:a,argTypes:r,args:i,initialArgs:s}}return e},{})}),jv=e=>({v:3,stories:Object.values(e.stories).reduce((e,t)=>(e[t.id]={...t,title:t.kind,name:t.name||t.story,importPath:t.parameters.fileName||``},e),{})}),Mv=e=>{let t=zo(Object.values(e.stories),e=>e.title);return{v:4,entries:Object.values(e.stories).reduce((e,n)=>{let r=`story`;return(n.parameters?.docsOnly||n.name===`Page`&&t[n.title]===1)&&(r=`docs`),e[n.id]={type:r,...r===`docs`&&{tags:[`stories-mdx`],storiesImports:[]},...n},delete e[n.id].story,delete e[n.id].kind,e},{})}},Nv=e=>({v:5,entries:Object.values(e.entries).reduce((e,t)=>(e[t.id]={...t,tags:t.tags?[Uo.DEV,Uo.TEST,...t.tags]:[Uo.DEV]},e),{})}),Pv=(e,{provider:t,docsOptions:n,filters:r,allStatuses:i,statusFilterKey:a})=>{if(!e.v)throw Error(`Composition: Missing stories.json version`);let o=e;o=o.v===2?jv(o):o,o=o.v===3?Mv(o):o,o=o.v===4?Nv(o):o,o=o;let s=Object.values(o.entries),c=Object.values(r),l=a?r[a]:void 0,u=s.filter(e=>{let t=i[e.id]??{};return l&&!l({...e,statuses:t})&&!s.filter(t=>`parent`in t&&t.parent===e.id).some(e=>l({...e,statuses:i[e.id]??{}}))?!1:Object.values(t).some(({value:e})=>e===`status-value:error`)||c.every(n=>n({...e,statuses:t}))?!0:s.filter(t=>`parent`in t&&t.parent===e.id).some(e=>c.every(n=>n({...e,statuses:t})))}),{sidebar:d={}}=t.getConfig(),{showRoots:f,collapsedRoots:p=[],renderLabel:m}=d,h=typeof f<`u`,g=u.reduce((e,t)=>{if(n.docsMode&&t.type!==`docs`)return e;let{title:r}=t,i=r.trim().split(Ov),a=(!h||f)&&i.length>1?[i.shift()]:[],o=[...a,...i],s=o.reduce((e,t,n)=>{let i=n>0&&e[n-1],a=Um(i?`${i}-${t}`:t);if(t.trim()===``)throw Error(T`Invalid title ${r} ending in slash.`);if(i===a)throw Error(T`
172
172
  Invalid part '${t}', leading to id === parentId ('${a}'), inside title '${r}'
173
173
 
174
174
  Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
@@ -182,7 +182,7 @@ Inner error message: ${r?.message}`))}}var Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,i
182
182
  it's possible a CORS error happened.
183
183
 
184
184
  Please check your dev-tools network tab.
185
- `});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=Vv}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?Av(Gv(s,h,{storyMapper:m})):o,f=Pv(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=Pv(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=(d=Hv(d,h),Uv(d,h?.storyUpdates)),f&&=(f=Hv(f,h),Uv(f,h?.storyUpdates)),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&Tv.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},qv=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=Bv(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return Cv.warn(`Received a ${i} frame that was not configured as a ref`),null}},Jv=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(Sv,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();Lo(t,i)||e.setState({globals:t}),Lo(r,a)||e.setState({userGlobals:r}),Lo(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(bv,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=qv(this,t);i?yv.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(xv,function({globals:n,globalTypes:i}){let{ref:a}=qv(this,t),o=e.getState()?.userGlobals;a?Object.keys(n).length>0&&yv.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!Lo(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},Yv={},w(Yv,{ActiveTabs:()=>ty,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>iy,DEFAULT_NAV_SIZE:()=>ry,DEFAULT_RIGHT_PANEL_WIDTH:()=>ay,focusableUIElements:()=>sy,getDefaultLayoutState:()=>oy,init:()=>my,isPagesViewMode:()=>ny}),{SET_CONFIG:Xv}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Zv}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:Qv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{document:$v}=Zv,ey=e=>typeof e==`function`,ty={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},ny=e=>e!==void 0&&e!==`story`&&e!==`docs`&&e!==`review`,ry=300,iy=300,ay=400,oy=()=>({ui:{enableShortcuts:!0},layout:{initialActive:ty.CANVAS,navSize:ry,bottomPanelHeight:iy,rightPanelWidth:ay,recentVisibleSizes:{navSize:ry,bottomPanelHeight:iy,rightPanelWidth:ay},panelPosition:`bottom`,showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:ce()}),sy={addonPanel:`storybook-panel-region`,storySearchField:`storybook-explorer-searchfield`,storyListMenu:`storybook-explorer-menu`,storyPanelRoot:`storybook-panel-root`,showAddonPanel:`storybook-show-addon-panel`,sidebarRegion:`storybook-sidebar-region`,showSidebar:`storybook-show-sidebar`},cy=e=>e.layout.navSize>0,ly=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},uy=e=>!cy(e)&&!ly(e),dy=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),fy=(e,t,n)=>{let r=Object.keys(e),i=l(t,r);for(let e of Object.keys(i))Qv(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${e}: ... } })\` instead.`);let a=_(i,t.layout||{}),{showPanel:o,showNav:s}=a,c=_(e,l(a,r));return s===!1||n?(c.recentVisibleSizes=dy(c),c.navSize=0):s===!0&&(c.navSize=c.recentVisibleSizes.navSize),o===!1?(c.recentVisibleSizes=dy(c),c.bottomPanelHeight=0,c.rightPanelWidth=0):o===!0&&(c.bottomPanelHeight=c.recentVisibleSizes.bottomPanelHeight,c.rightPanelWidth=c.recentVisibleSizes.rightPanelWidth),c},py=(e,t)=>{let n=Object.keys(e),r=l(t,n);for(let e of Object.keys(r))Qv(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${e}: ... } })\` instead.`);let i=n;return _(e,l(_(r,t.ui||{}),i))},my=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=uy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:dy(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=ly(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:dy(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=cy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:dy(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:dy(i)}}},{persistence:`session`})},focusOnUIElement(e,t){let{forceFocus:n=!1,select:r=!1,poll:i=!0}=typeof t==`boolean`?{select:t}:t??{};if(!e)return!1;let a=()=>{let t=$v.getElementById(e);return!t||(t.focus(),t!==$v.activeElement&&n&&t.getAttribute(`tabindex`)===null&&(t.setAttribute(`tabindex`,`-1`),t.focus()),t!==$v.activeElement&&t.id!==$v.activeElement?.id)?!1:(r&&t.select?.(),!0)};return a()?!0:i?new Promise(e=>{let t=Date.now(),n=setInterval(()=>{let r=Date.now()-t;if(a()){clearInterval(n),e(!0);return}r>=500&&(clearInterval(n),e(!1))},50)}):!1},getInitialOptions(){let e=t.getConfig(),r=oy(),{theme:i,selectedPanel:a,layoutCustomisations:o}=e;return{...r,layout:fy(r.layout,e,!!n),layoutCustomisations:{...r.layoutCustomisations,...o??{}},ui:py(r.ui,e),selectedPanel:a||r.selectedPanel,theme:i||r.theme}},getIsFullscreen(){return uy(e.getState())},getIsPanelShown(){return ly(e.getState())},getIsNavShown(){return cy(e.getState())},getNavAvailability(){let t=e.getState();return vt(t.path,t.customQueryParams)?`unavailable`:cy(t)?`shown`:`hidden`},getShowToolbarWithCustomisations(t){let n=e.getState();return ey(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return ey(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(ey(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s=fy(r,t,!!n),c=py(i,t),l={...o,...t.theme},u={};d(i,c)||(u.ui=c),d(r,s)||(u.layout=s),t.selectedPanel&&!d(a,t.selectedPanel)&&(u.selectedPanel=t.selectedPanel),Object.keys(u).length&&e.setState(u,{persistence:`permanent`}),d(o,l)||e.setState({theme:l})}},i=l(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(Xv,()=>{r.setOptions(rv(r.getInitialOptions(),i))}),{api:r,state:rv(r.getInitialOptions(),i)}},hy={},w(hy,{init:()=>gy}),gy=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ro(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ro(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),_y={},w(_y,{init:()=>by}),{OPEN_IN_EDITOR_REQUEST:vy,OPEN_IN_EDITOR_RESPONSE:yy}=__STORYBOOK_MODULE_CORE_EVENTS__,by=({provider:e,fullAPI:t})=>({api:{openInEditor(t){return new Promise(n=>{let{file:r,line:i,column:a}=t,o=t=>{t.file===r&&t.line===i&&t.column===a&&(e.channel?.off(yy,o),n(t))};e.channel?.on(yy,o),e.channel?.emit(vy,t)})}},state:{notifications:[]},init:async()=>{let{color:n}=await a(async()=>{let{color:e}=await import(`./theming-mTWhffkp.js`).then(e=>(e.a(),e.d));return{color:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);e.channel?.on(yy,e=>{e.error!==null&&t.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:H_.createElement(Pe,{color:n.negative}),duration:8e3})})}}),xy={},w(xy,{init:()=>Sy}),Sy=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),Cy={},w(Cy,{init:()=>wy}),wy=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),Ty={},w(Ty,{controlOrMetaKey:()=>Wy,defaultShortcuts:()=>Gy,init:()=>qy,isMacLike:()=>Uy,keys:()=>M_}),Ey=C(q_(),1),{FORCE_REMOUNT:Dy,PREVIEW_KEYDOWN:Oy,STORIES_COLLAPSE_ALL:ky,STORIES_EXPAND_ALL:Ay}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:jy}=__STORYBOOK_MODULE_GLOBAL__,{global:My}=__STORYBOOK_MODULE_GLOBAL__,{navigator:Ny}=My,Py=()=>Ny&&Ny.platform?!!Ny.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Fy=()=>Py()?`⌥`:`alt`,Iy=e=>{if([`Meta`,`Alt`,`Control`,`Shift`,`Tab`].includes(e.key))return null;let t=[];e.altKey&&t.push(`alt`),e.ctrlKey&&t.push(`control`),e.metaKey&&t.push(`meta`),e.shiftKey&&t.push(`shift`);let n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);return e.key===` `&&t.push(`space`),e.key===`Escape`&&t.push(`escape`),e.key===`ArrowRight`&&t.push(`ArrowRight`),e.key===`ArrowDown`&&t.push(`ArrowDown`),e.key===`ArrowUp`&&t.push(`ArrowUp`),e.key===`ArrowLeft`&&t.push(`ArrowLeft`),t.length>0?t:null},Ly=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),Ry=e=>e===`alt`?Fy():e===`control`?`⌃`:e===`meta`?`⌘`:e===`shift`?`⇧​`:e===`Enter`||e===`Backspace`||e===`Esc`||e===`escape`?``:e===` `?`SPACE`:e===`ArrowUp`?`↑`:e===`ArrowDown`?`↓`:e===`ArrowLeft`?`←`:e===`ArrowRight`?`→`:e?.toUpperCase(),zy=e=>e.map(Ry).join(` `),By=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:Vy,document:Hy}=jy,Uy=()=>Vy&&Vy.platform?!!Vy.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Wy=()=>Uy()?`meta`:`control`,Gy=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[Wy(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[Wy(),`shift`,`,`],aboutPage:[Wy(),`,`],escape:[`escape`],collapseAll:[Wy(),`shift`,`ArrowUp`],expandAll:[Wy(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),Ky={},qy=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Gy,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Ky},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),Ky[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=Iy(e),n=r.getShortcutKeys(),i=M_(n).find(e=>Ly(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(!i)return;let c=t.getNavAvailability()===`unavailable`,l=[`focusNav`,`search`,`toggleNav`].includes(n);if(!(c&&l))switch(r?.preventDefault&&r.preventDefault(),n){case`escape`:t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break;case`goToNextLandmark`:case`goToPreviousLandmark`:break;case`focusNav`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(sy.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(sy.storySearchField,!0)},0);break;case`focusIframe`:{let e=Hy.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(sy.storyPanelRoot);break;case`nextStory`:t.jumpToStory(1);break;case`prevStory`:t.jumpToStory(-1);break;case`nextComponent`:t.jumpToComponent(1);break;case`prevComponent`:t.jumpToComponent(-1);break;case`fullScreen`:t.toggleFullscreen();break;case`togglePanel`:{let e=t.getIsPanelShown(),n=Hy.getElementById(sy.addonPanel);t.togglePanel(),e&&j_(n)&&t.focusOnUIElement(sy.showAddonPanel,{poll:!0}).then(e=>{e===!1&&Hy.body.focus()}),e||t.focusOnUIElement(sy.addonPanel,{forceFocus:!0,poll:!0});break}case`toggleNav`:{let e=t.getIsNavShown(),n=Hy.getElementById(sy.sidebarRegion);t.toggleNav(),e&&j_(n)&&t.focusOnUIElement(sy.showSidebar,{poll:!0}).then(e=>{e===!1&&Hy.body.focus()}),e||t.focusOnUIElement(sy.sidebarRegion,{forceFocus:!0,poll:!0});break}case`toolbar`:t.toggleToolbar();break;case`panelPosition`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break;case`aboutPage`:t.navigate(`/settings/about`);break;case`shortcutsPage`:t.navigate(`/settings/shortcuts`);break;case`collapseAll`:t.emit(ky);break;case`expandAll`:t.emit(Ay);break;case`remount`:t.emit(Dy,{storyId:a});break;case`openInEditor`:jy.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,Ey.default)(e)}break;default:Ky[n].action();break}}},{shortcuts:i=Gy}=e.getState();return{api:r,state:{shortcuts:M_(Gy).reduce((e,t)=>({...e,[t]:i[t]||Gy[t]}),Gy)},init:()=>{Hy.addEventListener(`keydown`,e=>{N_(e)||r.handleKeydownEvent(e)}),n.channel?.on(Oy,e=>{r.handleKeydownEvent(e.event)})}}},Jy={},w(Jy,{init:()=>Vb}),{logger:Yy}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:Xy,CURRENT_STORY_WAS_SET:Zy,DOCS_PREPARED:Qy,PRELOAD_ENTRIES:$y,RESET_STORY_ARGS:eb,SELECT_STORY:tb,SET_CONFIG:nb,SET_CURRENT_STORY:rb,SET_FILTER:ib,SET_INDEX:ab,SET_STORIES:ob,SIDEBAR_FILTER_CHANGED:sb,STORY_ARGS_UPDATED:cb,STORY_CHANGED:lb,STORY_INDEX_INVALIDATED:ub,STORY_MISSING:db,STORY_PREPARED:fb,STORY_SPECIFIED:pb,UPDATE_STORY_ARGS:mb}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:hb}=__STORYBOOK_MODULE_GLOBAL__,gb=(e,t={})=>[e,...Object.entries(t).filter(([e,t])=>e!==`path`&&t!=null).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),_b=(e,t)=>{let n=U_.useRef(t?t(e.getState()):e.getState()),r=U_.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e),o=t(i);!d(a,o)&&(n.current=a,r())}),[e,t]),i=U_.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return d(i,n.current)||(n.current=i),n.current},[e,t]);return[U_.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:vb,getStatusStoreByTypeId:yb,useStatusStore:bb,universalStatusStore:xb}=st({universalStatusStore:vn.create({...ft,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:_b,environment:`manager`}),Sb=(e,t)=>{if(!e)return{included:[],excluded:[]};let n=[],r=[];return e.split(`;`).forEach(e=>{if(!e)return;let i=e.startsWith(`!`),a=t(i?e.slice(1):e);a!=null&&(i?r.push(a):n.push(a))}),{included:n,excluded:r}},Cb=e=>Sb(e,ut),wb=(e,t)=>{if(!e.length&&!t.length)return;let n=e.map(e=>dt(e)).sort(),r=t.map(e=>`!${dt(e)}`).sort();return[...n,...r].join(`;`)},Tb=(e,t)=>n=>{if(!e.length&&!t.length)return!0;let r=(vb.getAll()??{})[n.id],i=r?Object.values(r).map(e=>e.value):[],a=!e.length||e.some(e=>i.includes(e)),o=!t.length||t.every(e=>!i.includes(e));return a&&o},Eb=C(ge(),1),Db={$docs:`_docs`,$play:`_play`,$test:`_test`},Ob=e=>Sb(e,e=>Db[e]??e),kb=(e,t)=>{if(!e.length&&!t.length)return``;let n=Object.fromEntries(Object.entries(Db).map(([e,t])=>[t,e])),r=e.map(e=>n[e]??e).sort(),i=t.map(e=>`!${n[e]??e}`).sort();return[...r,...i].join(`;`)},Ab=(0,Eb.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,e])=>e.defaultFilterSelection===`include`).map(([e])=>e),excluded:t.filter(([,e])=>e.defaultFilterSelection===`exclude`).map(([e])=>e)}}),jb=e=>{let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r.excludeFromSidebar&&(e[n]=!0),e},{});return e=>{let n=e.tags??[],r=e.type===`docs`&&!n.includes(Uo.ATTACHED_MDX)&&!n.includes(Uo.UNATTACHED_MDX);return(n.includes(Uo.DEV)||r)&&n.filter(e=>t[e]).length===0}},Mb=(e,t)=>{let n=e=>Object.values(e.reduce((e,t)=>(Object.hasOwn(Wo,t)?e[`built-in`].push(Wo[t]):e.user.push(Go(t)),e),{"built-in":[],user:[]})).filter(e=>e.length>0);return r=>{let i=n(e),a=n(t);return(!i.length||i.every(e=>e.some(e=>e(r,!1))))&&(!a.length||a.every(e=>e.every(e=>e(r,!0))))}},{fetch:Nb}=hb,Pb=`./index.json`,Fb=`tags-filter`,Ib=`static-filter`,Lb=`status-filter`,Rb=new Set(Object.keys(Wo)),zb=[`enableShortcuts`,`theme`,`showRoots`],Bb={tag:{included:`includedTagFilters`,excluded:`excludedTagFilters`},status:{included:`includedStatusFilters`,excluded:`excludedStatusFilters`}},Vb=({fullAPI:e,store:t,navigate:n,provider:r,state:{location:i}={},storyId:a,viewMode:o,docsOptions:s={}})=>{let c=(e,r)=>{let{customQueryParams:i}=t.getState();n(gb(e,i??{}),r)},l=e=>t.setState(e,{persistence:`url`,serialize:e=>{let t=kb(e.includedTagFilters,e.excludedTagFilters),n=wb(e.includedStatusFilters,e.excludedStatusFilters);return{tags:t??null,statuses:n??null}}}),u=!1,d=async(e,n,r)=>{let{included:i,excluded:a}=Bb[e],o=t.getState(),s=new Set(o[i]),c=new Set(o[a]);for(let e of n){let[t,n]=r?[c,s]:[s,c];n.delete(e),t.add(e)}await l({[i]:Array.from(s),[a]:Array.from(c)})},f=async(e,n)=>{let{included:r,excluded:i}=Bb[e],a=t.getState(),o=new Set(n);await l({[r]:a[r].filter(e=>!o.has(e)),[i]:a[i].filter(e=>!o.has(e))})},p=(e,n)=>{let i=t.getState(),a=(i.includedTagFilters??[]).filter(e=>Rb.has(e)),o=(i.excludedTagFilters??[]).filter(e=>Rb.has(e)),s=!!globalThis?.FEATURES?.changeDetection,c=s?i.includedStatusFilters??[]:[],l=s?i.excludedStatusFilters??[]:[],u={},d=i.internal_index?Object.values(i.internal_index.entries):[];for(let e of new Set([...a,...o])){let t=Wo[e];u[e]=d.filter(e=>t(e)).length}if(c.length>0||l.length>0){let e=ot(vb.getAll());for(let t of new Set([...c,...l]))e[t]!==void 0&&(u[t]=e[t])}r.channel?.emit(sb,{trigger:e,changed:n,activeTagFilters:{included:a,excluded:o},activeStatusFilters:{included:c,excluded:l},storyCounts:u})},m={storyId:Gm,getData:(e,t)=>{let n=m.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=m.getData(e,t);return n?n.type!==`story`||n.prepared:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return m.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=m.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return m.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!m.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let s=m.findSiblingStoryId(r,o,e,!0);s&&m.selectStory(s,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=m.getData(r,a);if(!o)return;let s=o.refId?i[o.refId].filteredIndex:n;if(!s)return;let c=m.findSiblingStoryId(r,s,e,!1);c&&m.selectStory(c,void 0,{ref:a})},selectFirstStory:()=>{let e=t.getState(),{filteredIndex:n}=e;if(n){let e=Object.keys(n).find(e=>n[e].type===`story`);e&&m.selectStory(e);return}let{index:r}=e;if(!r)return;let i=Object.keys(r).find(e=>r[e].type===`story`);if(i){m.selectStory(i);return}c(`/`)},selectStory:(e=void 0,n=void 0,r={})=>{let{ref:i}=r,{storyId:a,index:o,filteredIndex:s,refs:l,settings:u}=t.getState(),d=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...u,lastTrackedStoryId:e.id}}),c(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,f=a?.split(`--`,2)[0],p=i?l[i].index:o,h=i?l[i].filteredIndex:s;if(!(!p||!h))if(n)if(!e)d(p[Gm(f,n)]);else{let t=i?`${i}_${Gm(e,n)}`:Gm(e,n);if(p[t])d(p[t]);else{let t=p[Um(e)];if(t?.type===`component`){let e=t.children.find(e=>p[e].name===n);d(e?p[e]:void 0)}}}else{let t=e?p[e]||p[Um(e)]:p[f];if(!t)throw Error(`Unknown id or title: '${e}'`);d(t)||d(m.findLeafEntry(h,t.id))}},findLeafEntry(e,t){let n=e[t];if(!n)return;if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t]);return r?m.findLeafEntry(e,r):void 0},findLeafStoryId(e,t){return m.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=Iv(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=Lv(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(mb,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(eb,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await Nb(Pb);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){Yy.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await m.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),o=vb.getAll(),c=Pv(e,{provider:r,docsOptions:s,filters:a,allStatuses:o,statusFilterKey:Lb}),l=Pv(e,{provider:r,docsOptions:s,filters:{},allStatuses:o});await t.setState({internal_index:e,filteredIndex:Fv(c,n),index:Fv(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState(e=>({filters:{...e.filters,[n]:i}}));let{internal_index:a}=t.getState();if(!a)return;await m.setIndex(a);let o=await e.getRefs();for(let[t,{internal_index:n,...r}]of Object.entries(o))await e.setRef(t,{...r,storyIndex:n},!0);r.channel?.emit(ib,{id:n})},resetTagFilters:async()=>{await l(e=>({includedTagFilters:e.defaultIncludedTagFilters,excludedTagFilters:e.defaultExcludedTagFilters})),await h()},setAllTagFilters:async(e,t)=>{await l({includedTagFilters:e,excludedTagFilters:t}),await h()},addTagFilters:async(e,t)=>{await d(`tag`,e,t),await h(),e.length===1&&Rb.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:t?`exclude`:`include`})},removeTagFilters:async e=>{await f(`tag`,e),await h(),e.length===1&&Rb.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:`remove`})},resetStatusFilters:async()=>{await l({includedStatusFilters:[],excludedStatusFilters:[]}),await g()},setAllStatusFilters:async(e,n)=>{let r=t.getState(),i=new Set(r.includedStatusFilters??[]),a=new Set(r.excludedStatusFilters??[]),o=new Set(e),s=new Set(n);await l({includedStatusFilters:e,excludedStatusFilters:n}),await g();let c=new Set([...i,...a,...o,...s]);for(let e of c){let t=i.has(e),n=a.has(e),r=o.has(e),c=s.has(e);if(t===r&&n===c)continue;let l;l=r?`include`:c?`exclude`:`remove`,p(`interaction`,{filterType:`status`,filterId:e,action:l})}},addStatusFilters:async(e,t)=>{await d(`status`,e,t),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:t?`exclude`:`include`})},removeStatusFilters:async e=>{await f(`status`,e),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:`remove`})}},h=()=>{let{includedTagFilters:e,excludedTagFilters:n}=t.getState();return m.experimental_setFilter(Fb,Mb(e,n))},g=()=>{let{includedStatusFilters:e,excludedStatusFilters:n}=t.getState();return m.experimental_setFilter(Lb,Tb(e??[],n??[]))};r.channel?.on(pb,function({storyId:n,viewMode:i}){let{sourceType:a}=qv(this,e);if(a===`local`){let e=t.getState(),a=!vt(e.path,e.customQueryParams)&&(e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`),o=e.viewMode&&e.storyId,s=e.viewMode!==i||e.storyId!==n,{type:l}=e.index?.[e.storyId]||{},u=l!==`root`&&l!==`component`&&l!==`group`;if(a){let{filteredIndex:t}=e;if(t&&!o&&t[n]?.type!==`story`){let e=t?Object.keys(t).find(e=>{let n=t[e];return n.type===`story`||n.type===`docs`}):void 0;e&&c(`/${i}/${e}`);return}o&&s&&u?r.channel?.emit(rb,{storyId:e.storyId,viewMode:e.viewMode}):s&&c(`/${i}/${n}`)}}}),r.channel?.on(Zy,function(){let{ref:t}=qv(this,e);m.setPreviewInitialized(t)}),r.channel?.on(lb,function(){let{sourceType:t}=qv(this,e);if(t===`local`){let t=m.getCurrentParameter(`options`);t&&e.setOptions(P_(t))}}),r.channel?.on(fb,function({id:n,...i}){let{ref:a,sourceType:o}=qv(this,e);if(m.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(P_(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([m.findSiblingStoryId(e,n,1,!0),m.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit($y,{ids:a,options:{target:i}})}}),r.channel?.on(Qy,function({id:t,...n}){let{ref:r}=qv(this,e);m.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(ab,function(t){let{ref:n}=qv(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{m.setIndex(t);let n=m.getCurrentParameter(`options`);e.setOptions(P_(n))}}),r.channel?.on(ob,function(t){let{ref:n}=qv(this,e),r=t.v?kv(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(tb,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=qv(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(cb,function({storyId:t,args:n}){let{ref:r}=qv(this,e);m.updateStory(t,{args:n},r)}),r.channel?.on(Xy,function(t){let{ref:n}=qv(this,e);m.setPreviewInitialized(n)}),r.channel?.on(db,function(t){let{ref:n}=qv(this,e);m.setPreviewInitialized(n)}),r.channel?.on(nb,()=>{let e=r.getConfig()?.sidebar?.filters||{},{includedTagFilters:n,excludedTagFilters:i,includedStatusFilters:a,excludedStatusFilters:o,tagPresets:s}=t.getState();t.setState(({filters:t})=>({filters:{...t,...e,[Ib]:jb(s),[Fb]:Mb(n,i),[Lb]:Tb(a,o)}}))}),vb.onAllStatusChange(async()=>{g();let{internal_index:n}=t.getState();if(!n)return;await m.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})});let _=r.getConfig()?.sidebar?.filters||{},v=hb.TAGS_OPTIONS||{},y=Ab(v),{tags:b,statuses:x}=eg(i??{search:``}),S=Ob(b),C=b!==void 0,w=C?S.included:y.included,T=C?S.excluded:y.excluded,E=Cb(x),D=E.included,O=E.excluded;return{api:m,state:{storyId:a,viewMode:o,hasCalledSetOptions:!1,previewInitialized:!1,filters:{..._,[Ib]:jb(v),[Fb]:Mb(w,T),[Lb]:Tb(D,O)},tagPresets:v,defaultIncludedTagFilters:y.included,defaultExcludedTagFilters:y.excluded,includedTagFilters:w,excludedTagFilters:T,includedStatusFilters:D,excludedStatusFilters:O},init:async()=>{if(r.channel?.on(ub,()=>m.fetchIndex()),await m.fetchIndex(),u)return;u=!0;let e=w.some(e=>Rb.has(e))||T.some(e=>Rb.has(e)),t=!!globalThis?.FEATURES?.changeDetection&&(D.length>0||O.length>0);(e||t)&&p(`url`)}}},Hb={},w(Hb,{getCustomQueryParams:()=>$b,init:()=>nx}),{GLOBALS_UPDATED:Ub,NAVIGATE_URL:Wb,SET_CURRENT_STORY:Gb,STORY_ARGS_UPDATED:Kb,UPDATE_QUERY_PARAMS:qb}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Jb}=__STORYBOOK_MODULE_GLOBAL__,Yb=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},Xb=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),Zb=(e,t)=>{let n=Xb(e),r=Xb(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},Qb=[`full`,`panel`,`nav`,`shortcuts`,`addonPanel`,`tabs`,`path`],$b=e=>x(eg(e),Qb),tx=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u}=eg(e),d,f,p;Yb(a)===!0?(d=0,f=0,p=0):Yb(a)===!1&&(d=ry,f=iy,p=ay),i||(Yb(s)===!0&&(d=ry),Yb(s)===!1&&(d=0)),Yb(o)===!1&&(f=0,p=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:p,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:Yb(u)},h={enableShortcuts:Yb(c)},g=l||void 0,_=r,v=$b(e),y=Lo(ex,v)?ex:v;return ex=y,{viewMode:n,layout:m,ui:h,selectedPanel:g,location:e,path:t,customQueryParams:y,storyId:_}},nx=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n(gb(e,t),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`,embed:g=!1,freeze:_=!1}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let v=c.pathname||`/`,y=Jb.window.location.origin+v,b=Jb.STORYBOOK_NETWORK_ADDRESS??y,S=u===`origin`?y:u===`network`?b:v,C=m?l[m].url+`/iframe.html`:Jb.PREVIEW_URL||`${S.replace(/\/[^/]*\.html$/,``).replace(/\/?$/,`/`)}iframe.html`,w=m?`&refId=${encodeURIComponent(m)}`:``,{args:T=``,globals:E=``,...D}=p,O=d?Zb(s?.args??``,T):T,k=f?Zb(s?.globals??``,E):E,ee=x(D,[`embed`,`freeze`]),A=x(D,[`id`,`viewMode`,`embed`,`freeze`]),j=ts(ee,{nesting:!0,nestingSyntax:`js`}),te=ts(A,{nesting:!0,nestingSyntax:`js`});O&&=`&args=${O}`,k&&=`&globals=${k}`,j&&=`&${j}`,te&&=`&${te}`;let ne=g?`&embed=true`:``,re=_?`&freeze=finished`:``;return{managerHref:`${S}?path=/${h}/${m?`${m}_`:``}${e}${O}${k}${j}`,previewHref:`${C}?id=${e}&viewMode=${h}${w}${O}${m?``:k}${te}${ne}${re}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e?.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={...n};for(let[t,n]of Object.entries(e))n==null?delete i[t]:i[t]=n;Lo(n,i)||(t.setState({customQueryParams:i}),r.channel?.emit(qb,i))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=Qh(l,c);a(`${e}${t}`,{...n,args:u||null},{replace:!0}),o.setQueryParams({args:u||null})};r.channel?.on(Gb,()=>s());let c;return r.channel?.on(Kb,()=>{`requestIdleCallback`in Jb.window?(c&&Jb.window.cancelIdleCallback(c),c=Jb.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(Ub,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=Qh(t,rv(t,e));a(`${n}${r}`,{...i,globals:s||null},{replace:!0}),o.setQueryParams({globals:s||null})}),r.channel?.on(Wb,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:tx(e),init:()=>{t.registerPersistenceHandler(`url`,(e,n)=>{if(n){let e=n(t.getState());o.applyQueryParams(e,{replace:!0})}})}}},rx={},w(rx,{init:()=>ux}),ix=C(ge(),1),{global:ax}=__STORYBOOK_MODULE_GLOBAL__,ox=`10.5.5`,{VERSIONCHECK:sx}=ax,cx=(0,ix.default)(1)(()=>{try{return{...JSON.parse(sx).data||{}}}catch{return{}}}),lx=e=>e.includes(`vue`)?`vue`:e,ux=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:ox},...cx()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&W_.default.prerelease(r.version)&&n?t&&W_.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${W_.default.major(l)}.${W_.default.minor(l)}/`;else if(r&&l&&s){let e=W_.default.diff(s,l);e===`patch`||e===null||(u+=`${W_.default.major(l)}.${W_.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof ax.STORYBOOK_RENDERER<`u`){let e=ax.STORYBOOK_RENDERER;e&&(u+=`?renderer=${lx(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=W_.default.prerelease(t.version)?`${W_.default.major(t.version)}.${W_.default.minor(t.version)}.${W_.default.patch(t.version)}`:t.version,r=W_.default.diff(n,e.version);return W_.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=cx();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},dx={},w(dx,{init:()=>yx}),{REQUEST_WHATS_NEW_DATA:fx,RESULT_WHATS_NEW_DATA:px,SET_WHATS_NEW_CACHE:mx,TOGGLE_WHATS_NEW_NOTIFICATIONS:hx}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:gx}=__STORYBOOK_MODULE_GLOBAL__,_x=`whats-new`,vx=({color:e=`currentColor`,size:t=14})=>G_.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},G_.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z`,fill:e})),yx=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(_x))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(hx,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(fx),new Promise(e=>n.channel?.once(px,({data:t})=>e(t)))}function s(e){n.channel?.emit(mx,e)}return{init:async()=>{if(gx.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState(),r=n?.path===`/onboarding`||n.queryParams?.onboarding===`true`,a=n?.path===`/review/`||n?.path===`/review`||n?.path?.startsWith(`/review/`);!r&&!a&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:_x,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:G_.createElement(vx,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},bx=C(J_(),1),xx=e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),oa(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:ca(r)})},xx(bx.default._),Sx=`@storybook/manager/store`,Cx=class{constructor({allowPersistence:e,setState:t,getState:n}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=n}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let e of[bx.default.local,bx.default.session]){let t=F_(e);if(`includedTagFilters`in t||`excludedTagFilters`in t){let{includedTagFilters:n,excludedTagFilters:r,...i}=t;I_(e,i)}}let t=F_(bx.default.local),n=F_(bx.default.session);return{...e,...t,...n}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});if(a!==`none`&&this.upstreamPersistence)if(a===`url`){let e=this.persistenceHandlers.get(`url`);e&&await e(s,i?.serialize)}else await L_(a===`session`?bx.default.session:bx.default.local,s);return r&&r(c),c}},{ActiveTabs:wx}=Yv,Tx=tv({api:void 0,state:ov({})}),Ex=(...e)=>iv({},...e),Dx=class extends B_.Component{constructor(e){super(e),this.api={},this.mounted=!1,this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new Cx({getState:()=>this.state,setState:(e,t)=>{if(!this.mounted){let n=typeof e==`function`?e(this.state):e;return this.state={...this.state,...n},t?.(this.state),this.state}return this.setState(e,()=>t(this.state)),this.state}}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(ov({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[xy,gv,fv,Yv,hy,Cy,Ty,Jy,wv,vv,Hb,rx,dx,_y].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=ov(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let n=t.location?.search!==e.location?.search;return t.path!==e.path||n?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:$b(e.location)}:null}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!d(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return B_.createElement(Ox,{effect:this.initModules},B_.createElement(Tx.Provider,{value:t},B_.createElement(R_,null,e)))}},Dx.displayName=`Manager`,Ox=({children:e,effect:t})=>(B_.useEffect(t,[]),e),kx=e=>e,globalThis.STORYBOOK_ADDON_STATE={},{STORYBOOK_ADDON_STATE:Ax}=globalThis,{Channel:jx}=__STORYBOOK_MODULE_CHANNELS__,Mx={id:`storybook/test-provider`,leader:!0,initialState:{}},{fullTestProviderStore:Nx,getTestProviderStoreById:Px,useTestProviderStore:Fx,universalTestProviderStore:Ix}=z_({universalTestProviderStore:vn.create({...Mx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:_b}),Lx={id:`storybook/checklist`,initialState:{items:{accessibilityTests:{status:`open`},aiSetup:{status:`open`},autodocs:{status:`open`},ciTests:{status:`open`},controls:{status:`open`},coverage:{status:`open`},guidedTour:{status:`open`},installA11y:{status:`open`},installChromatic:{status:`open`},installDocs:{status:`open`},installVitest:{status:`open`},mdxDocs:{status:`open`},moreComponents:{status:`open`},moreStories:{status:`open`},onboardingSurvey:{status:`open`},organizeStories:{status:`open`},renderComponent:{status:`open`},runTests:{status:`open`},publishStorybook:{status:`open`},shareStorybook:{status:`open`},viewports:{status:`open`},visualTests:{status:`open`},whatsNewStorybook10:{status:`open`},writeInteractions:{status:`open`}},widget:{}}},Rx=e=>({getValue:t=>e.getState().items[t]??{status:`open`,mutedAt:void 0},accept:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`accepted`}}}))},done:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`done`}}}))},skip:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`skipped`}}}))},reset:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`open`}}}))},mute:t=>{e.setState(e=>({...e,items:t.reduce((t,n)=>({...t,[n]:{...e.items[n],mutedAt:Date.now()}}),e.items)}))},disable:t=>{e.setState(e=>({...e,widget:{...e.widget,disable:t},items:Object.entries(e.items).reduce((e,[t,n])=>({...e,[t]:{...n,mutedAt:void 0}}),e.items)}))}}),zx=vn.create({...Lx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),Rx(zx)})))()}var Vx=n({createCopyToClipboardFunction:()=>Wx});async function Hx(e){try{await hM.top?.navigator.clipboard.writeText(e)}catch{await hM.navigator.clipboard.writeText(e)}}async function Ux(e){let t=mM.createElement(`TEXTAREA`),n=mM.activeElement;t.value=e,mM.body.appendChild(t),t.select(),mM.execCommand(`copy`),mM.body.removeChild(t),n.focus()}function Wx(){return hM.navigator?.clipboard?Hx:Ux}function Gx(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Kx(...e){return t=>{let n=!1,r=e.map(e=>{let r=Gx(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Gx(e[t],null)}}}}function qx(e){return typeof e==`object`&&!!e&&`then`in e}function Jx(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===_M&&`_payload`in e&&qx(e._payload)}function Yx(e){let t=Xx(e),n=GO.forwardRef((e,n)=>{let{children:r,...i}=e;Jx(r)&&typeof vM==`function`&&(r=vM(r._payload));let a=GO.Children.toArray(r),o=a.find(Qx);if(o){let e=o.props.children,r=a.map(t=>t===o?GO.Children.count(e)>1?GO.Children.only(null):GO.isValidElement(e)?e.props.children:null:t);return(0,KO.jsx)(t,{...i,ref:n,children:GO.isValidElement(e)?GO.cloneElement(e,void 0,r):null})}return(0,KO.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Xx(e){let t=GO.forwardRef((e,t)=>{let{children:n,...r}=e;if(Jx(n)&&typeof vM==`function`&&(n=vM(n._payload)),GO.isValidElement(n)){let e=eS(n),i=$x(r,n.props);return n.type!==GO.Fragment&&(i.ref=t?Kx(t,e):e),GO.cloneElement(n,i)}return GO.Children.count(n)>1?GO.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function Zx(e){let t=({children:e})=>(0,KO.jsx)(KO.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=bM,t}function Qx(e){return GO.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===bM}function $x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function eS(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tS(e){let[t,n]=(0,ZO.useState)(e),r=(0,ZO.useRef)(t),i=(0,ZO.useRef)(null),a=(0,ZO.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return Y(()=>{r.current=t,i.current&&a.current()}),[t,(0,ZO.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}function nS(e=!1){let t=(0,$O.useContext)(TM),n=(0,$O.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=$O.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=DM.get(e);n==null?DM.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,DM.delete(e))}n.current=++t.current}return n.current}function rS(e){let t=(0,$O.useContext)(TM),n=nS(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function iS(e){let t=$O.useId(),[n]=(0,$O.useState)(cS()),r=n?`react-aria`:`react-aria${wM.prefix}`;return e||`${r}-${t}`}function aS(){return!1}function oS(){return!0}function sS(e){return()=>{}}function cS(){return typeof $O.useSyncExternalStore==`function`?$O.useSyncExternalStore(sS,aS,oS):(0,$O.useContext)(EM)}function lS(e){let[t,n]=(0,QO.useState)(e),r=(0,QO.useRef)(null),i=OM(t),a=(0,QO.useRef)(null);if(jM&&jM.register(a,i),kM){let e=AM.get(i);e&&!e.includes(r)?e.push(r):AM.set(i,[r])}return Y(()=>{let e=i;return()=>{jM&&jM.unregister(a),AM.delete(e)}},[i]),(0,QO.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function uS(e,t){if(e===t)return e;let n=AM.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=AM.get(t);return r?(r.forEach(t=>t.current=e),e):t}function dS(e=[]){let t=lS(),[n,r]=tS(t),i=(0,QO.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Y(i,[t,i,...e]),n}function fS(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function pS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function mS(e){return pS(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function hS(){return NM}function gS(e,t){if(!hS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:mS(n)?n.host:n.parentNode}return!1}function _S(e){return hS()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function vS(e,t,n,r){return hS()?new FM(e,t,n,r):e.createTreeWalker(t,n,r)}function yS(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yS(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function bS(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yS(e))&&(r&&(r+=` `),r+=t);return r}function V(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=fS(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=IM(n,i):e===`id`&&n&&i?t.id=uS(n,i):t[e]=i===void 0?n:i}}return t}function xS(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=SS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():SS(e[n],null)})}}}function SS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function CS(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(LM.has(t)||n&&RM.has(t)||r&&zM.has(t)||i&&BM.has(t)||a&&(VM.has(t)||t.endsWith(`Capture`)&&VM.has(t.slice(0,-7)))||o?.has(t)||HM.test(t))&&(s[t]=e[t]);return s}function wS(e){if(TS())e.focus({preventScroll:!0});else{let t=ES(e);e.focus(),DS(t)}}function TS(){if(UM==null){UM=!1;try{document.createElement(`div`).focus({get preventScroll(){return UM=!0,!0}})}catch{}}return UM}function ES(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function DS(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function OS(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function kS(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function AS(e){let t=null;return()=>(t??=e(),t)}function jS(){return(0,ek.useContext)($M)}function MS(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function NS(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;QM()&&(i=window.event)!=null&&(r=i.type)!=null&&r.startsWith(`key`)&&e.target===`_blank`&&(WM()?a=!0:o=!0);let l=YM()&&WM()&&!KM()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});NS.isOpening=n,wS(e),e.dispatchEvent(l),NS.isOpening=!1}function PS(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function FS(e,t){PS(e,e=>NS(e,t))}function IS(e){let t=jS().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function LS(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&MS(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}function RS(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=eN.get(t.target);r||(r=new Set,eN.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=eN.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),eN.delete(t.target)),eN.size===0)){for(let e of tN)e();tN.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function zS(){for(let[e]of eN)`isConnected`in e&&!e.isConnected&&eN.delete(e)}function BS(e){requestAnimationFrame(()=>{zS(),eN.size===0?e():tN.add(e)})}function VS(){let e=(0,tk.useRef)(new Map),t=(0,tk.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,tk.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,tk.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,tk.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function HS(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=lS(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function US(e){let t=(0,nk.useRef)(null),n=(0,nk.useRef)(void 0),r=(0,nk.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,nk.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}function WS(e){let t=(0,rk.useRef)(null);return nN(()=>{t.current=e},[e]),(0,rk.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function GS(e,t){let n=(0,ik.useRef)(!0),r=(0,ik.useRef)(null);Y(()=>(n.current=!0,()=>{n.current=!1}),[]),Y(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function KS(){return typeof window.ResizeObserver<`u`}function qS(e){let{ref:t,box:n,onResize:r}=e,i=WS(r);(0,ak.useEffect)(()=>{let e=t?.current;if(e)if(KS()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}else return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}},[t,n])}function JS(e,t){Y(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function YS(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function XS(e,t){let n=e;for(YS(n,t)&&(n=n.parentElement);n&&!YS(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ZS(e,t){let n=[];for(;e&&e!==document.documentElement;)YS(e,t)&&n.push(e),e=e.parentElement;return n}function QS(e){return WM()?e.metaKey:e.ctrlKey}function $S(e){return e instanceof HTMLInputElement&&!rN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function eC(e){let[t,n]=(0,ok.useState)();return Y(()=>{if(!e)return;let t=aN.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${iN++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},aN.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),aN.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function tC(e,t,n,r){let i=WS(n),a=n==null;(0,sk.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function nC(e,t){let n=rC(e,t,`left`),r=rC(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function rC(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function iC(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=ZS(e);s||t.push(o);for(let n of t)nC(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function aC(e){return e.pointerType===``&&e.isTrusted?!0:ZM()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function oC(e){return!ZM()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function sC(e){let t=ck.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function cC(e,t=!0){let[n,r]=(0,uk.useState)(!0),i=n&&t;return Y(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),uC(e,i,(0,uk.useCallback)(()=>r(!1),[])),i}function lC(e,t){let[n,r]=(0,uk.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`)}let i=n===`exiting`;return uC(e,i,(0,uk.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function uC(e,t,n){Y(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,lk.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function dC(e){let t=MM(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function fC(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function pC(e,t){return cN?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&dC(e)&&fC(e,t)&&(!e.parentElement||pC(e.parentElement,e))}function mC(e){return e.matches(uN)&&pC(e)&&!gC(e)}function hC(e){return e.matches(dN)&&pC(e)&&!gC(e)}function gC(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function _C(e,t,n){let[r,i]=(0,dk.useState)(e||t),a=(0,dk.useRef)(r),o=(0,dk.useRef)(e!==void 0),s=e!==void 0;(0,dk.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;fN(()=>{a.current=c});let[,l]=(0,dk.useReducer)(()=>({}),{});return[c,(0,dk.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function vC(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function yC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function bC(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function xC(e){let t=(0,fk.useRef)({isFocused:!1,observer:null});Y(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=WS(t=>{e?.(t)});return(0,fk.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{if(t.current.isFocused=!1,r.disabled){let t=yC(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}function SC(e){for(;e&&!mC(e);)e=e.parentElement;let t=MM(e),n=t.document.activeElement;if(!n||n===e)return;pN=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,wS(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,wS(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),pN=!1,r=!1},l=requestAnimationFrame(c);return c}function CC(e){if(qM()){if(mN==="default"){let t=X(e);hN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}mN=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;gN.set(e,e.style[t]),e.style[t]=`none`}}function wC(e){if(qM()){if(mN!==`disabled`)return;mN=`restoring`,setTimeout(()=>{BS(()=>{if(mN===`restoring`){let t=X(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=hN||``),hN=``,mN=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&gN.has(e)){let t=gN.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),gN.delete(e)}}function TC(e,t){return t.get?t.get.call(e):t.value}function EC(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function DC(e,t){return TC(e,EC(e,t,`get`))}function OC(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function kC(e,t,n){OC(e,t),t.set(e,n)}function AC(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function jC(e,t,n){return AC(e,EC(e,t,`set`),n),n}function MC(e){let t=(0,mk.useContext)(_N);if(t){let{register:n,...r}=t;e=V(r,e),n()}return JS(t,e.ref),e}function NC(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=MC(e),[m,h]=(0,mk.useState)(!1),g=(0,mk.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=VS(),y=WS((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new yN(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=WS((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new yN(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new yN(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=WS((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new yN(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=WS(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(IC(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||wC(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=WS(e=>{u&&S(e)}),w=WS(e=>{s||o?.(e)}),T=WS((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);bC(n,t),o(yC(n))}}),E=(0,mk.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(FC(t.nativeEvent,t.currentTarget)&&gS(t.currentTarget,_S(t.nativeEvent))){var r;RC(_S(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(X(t.currentTarget),`keyup`,fS(t=>{FC(t,r)&&!t.repeat&&gS(r,_S(t))&&e.target&&x(IC(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&WM()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!gS(t.currentTarget,_S(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!NS.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||aC(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x(IC(t.currentTarget,t),r),a=b(IC(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&FC(t,e.target)){var r;RC(_S(t),t.key)&&t.preventDefault();let n=_S(t),i=gS(e.target,_S(t));b(IC(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&PC(e.target)&&gS(e.target,n)&&!t[bN]&&(t[bN]=!0,NS(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!gS(t.currentTarget,_S(t.nativeEvent)))return;if(oC(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||CC(e.target),i=y(t,e.pointerType);let a=_S(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(X(t.currentTarget),`pointerup`,n,!1),_(X(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(gS(t.currentTarget,_S(t.nativeEvent))&&t.button===0){if(l){let n=SC(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!gS(t.currentTarget,_S(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(IC(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b(IC(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(gS(e.target,_S(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(wS(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{gS(e.currentTarget,_S(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,mk.useEffect)(()=>{if(!f)return;let e=X(f.current);if(!e||!e.head||e.getElementById(xN))return;let t=e.createElement(`style`);t.id=xN,t.textContent=`
185
+ `});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=Vv}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?Av(Gv(s,h,{storyMapper:m})):o,f=Pv(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=Pv(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=(d=Hv(d,h),Uv(d,h?.storyUpdates)),f&&=(f=Hv(f,h),Uv(f,h?.storyUpdates)),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&Tv.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},qv=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=Bv(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return Cv.warn(`Received a ${i} frame that was not configured as a ref`),null}},Jv=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(Sv,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();Lo(t,i)||e.setState({globals:t}),Lo(r,a)||e.setState({userGlobals:r}),Lo(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(bv,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=qv(this,t);i?yv.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(xv,function({globals:n,globalTypes:i}){let{ref:a}=qv(this,t),o=e.getState()?.userGlobals;a?Object.keys(n).length>0&&yv.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!Lo(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},Yv={},w(Yv,{ActiveTabs:()=>ty,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>iy,DEFAULT_NAV_SIZE:()=>ry,DEFAULT_RIGHT_PANEL_WIDTH:()=>ay,focusableUIElements:()=>sy,getDefaultLayoutState:()=>oy,init:()=>my,isPagesViewMode:()=>ny}),{SET_CONFIG:Xv}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Zv}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:Qv}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{document:$v}=Zv,ey=e=>typeof e==`function`,ty={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},ny=e=>e!==void 0&&e!==`story`&&e!==`docs`&&e!==`review`,ry=300,iy=300,ay=400,oy=()=>({ui:{enableShortcuts:!0},layout:{initialActive:ty.CANVAS,navSize:ry,bottomPanelHeight:iy,rightPanelWidth:ay,recentVisibleSizes:{navSize:ry,bottomPanelHeight:iy,rightPanelWidth:ay},panelPosition:`bottom`,showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:ce()}),sy={addonPanel:`storybook-panel-region`,storySearchField:`storybook-explorer-searchfield`,storyListMenu:`storybook-explorer-menu`,storyPanelRoot:`storybook-panel-root`,showAddonPanel:`storybook-show-addon-panel`,sidebarRegion:`storybook-sidebar-region`,showSidebar:`storybook-show-sidebar`},cy=e=>e.layout.navSize>0,ly=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},uy=e=>!cy(e)&&!ly(e),dy=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),fy=(e,t,n)=>{let r=Object.keys(e),i=l(t,r);for(let e of Object.keys(i))Qv(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${e}: ... } })\` instead.`);let a=_(i,t.layout||{}),{showPanel:o,showNav:s}=a,c=_(e,l(a,r));return s===!1||n?(c.recentVisibleSizes=dy(c),c.navSize=0):s===!0&&(c.navSize=c.recentVisibleSizes.navSize),o===!1?(c.recentVisibleSizes=dy(c),c.bottomPanelHeight=0,c.rightPanelWidth=0):o===!0&&(c.bottomPanelHeight=c.recentVisibleSizes.bottomPanelHeight,c.rightPanelWidth=c.recentVisibleSizes.rightPanelWidth),c},py=(e,t)=>{let n=Object.keys(e),r=l(t,n);for(let e of Object.keys(r))Qv(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${e}: ... } })\` instead.`);let i=n;return _(e,l(_(r,t.ui||{}),i))},my=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=uy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:dy(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=ly(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:dy(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=cy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:dy(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:dy(i)}}},{persistence:`session`})},focusOnUIElement(e,t){let{forceFocus:n=!1,select:r=!1,poll:i=!0}=typeof t==`boolean`?{select:t}:t??{};if(!e)return!1;let a=()=>{let t=$v.getElementById(e);return!t||(t.focus(),t!==$v.activeElement&&n&&t.getAttribute(`tabindex`)===null&&(t.setAttribute(`tabindex`,`-1`),t.focus()),t!==$v.activeElement&&t.id!==$v.activeElement?.id)?!1:(r&&t.select?.(),!0)};return a()?!0:i?new Promise(e=>{let t=Date.now(),n=setInterval(()=>{let r=Date.now()-t;if(a()){clearInterval(n),e(!0);return}r>=500&&(clearInterval(n),e(!1))},50)}):!1},getInitialOptions(){let e=t.getConfig(),r=oy(),{theme:i,selectedPanel:a,layoutCustomisations:o}=e;return{...r,layout:fy(r.layout,e,!!n),layoutCustomisations:{...r.layoutCustomisations,...o??{}},ui:py(r.ui,e),selectedPanel:a||r.selectedPanel,theme:i||r.theme}},getIsFullscreen(){return uy(e.getState())},getIsPanelShown(){return ly(e.getState())},getIsNavShown(){return cy(e.getState())},getNavAvailability(){let t=e.getState();return vt(t.path,t.customQueryParams)?`unavailable`:cy(t)?`shown`:`hidden`},getShowToolbarWithCustomisations(t){let n=e.getState();return ey(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return ey(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(ey(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s=fy(r,t,!!n),c=py(i,t),l={...o,...t.theme},u={};d(i,c)||(u.ui=c),d(r,s)||(u.layout=s),t.selectedPanel&&!d(a,t.selectedPanel)&&(u.selectedPanel=t.selectedPanel),Object.keys(u).length&&e.setState(u,{persistence:`permanent`}),d(o,l)||e.setState({theme:l})}},i=l(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(Xv,()=>{r.setOptions(rv(r.getInitialOptions(),i))}),{api:r,state:rv(r.getInitialOptions(),i)}},hy={},w(hy,{init:()=>gy}),gy=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ro(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=Ro(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),_y={},w(_y,{init:()=>by}),{OPEN_IN_EDITOR_REQUEST:vy,OPEN_IN_EDITOR_RESPONSE:yy}=__STORYBOOK_MODULE_CORE_EVENTS__,by=({provider:e,fullAPI:t})=>({api:{openInEditor(t){return new Promise(n=>{let{file:r,line:i,column:a}=t,o=t=>{t.file===r&&t.line===i&&t.column===a&&(e.channel?.off(yy,o),n(t))};e.channel?.on(yy,o),e.channel?.emit(vy,t)})}},state:{notifications:[]},init:async()=>{let{color:n}=await a(async()=>{let{color:e}=await import(`./theming-Cvtrnj7n.js`).then(e=>(e.a(),e.d));return{color:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);e.channel?.on(yy,e=>{e.error!==null&&t.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:H_.createElement(Pe,{color:n.negative}),duration:8e3})})}}),xy={},w(xy,{init:()=>Sy}),Sy=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),Cy={},w(Cy,{init:()=>wy}),wy=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),Ty={},w(Ty,{controlOrMetaKey:()=>Wy,defaultShortcuts:()=>Gy,init:()=>qy,isMacLike:()=>Uy,keys:()=>M_}),Ey=C(q_(),1),{FORCE_REMOUNT:Dy,PREVIEW_KEYDOWN:Oy,STORIES_COLLAPSE_ALL:ky,STORIES_EXPAND_ALL:Ay}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:jy}=__STORYBOOK_MODULE_GLOBAL__,{global:My}=__STORYBOOK_MODULE_GLOBAL__,{navigator:Ny}=My,Py=()=>Ny&&Ny.platform?!!Ny.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Fy=()=>Py()?`⌥`:`alt`,Iy=e=>{if([`Meta`,`Alt`,`Control`,`Shift`,`Tab`].includes(e.key))return null;let t=[];e.altKey&&t.push(`alt`),e.ctrlKey&&t.push(`control`),e.metaKey&&t.push(`meta`),e.shiftKey&&t.push(`shift`);let n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);return e.key===` `&&t.push(`space`),e.key===`Escape`&&t.push(`escape`),e.key===`ArrowRight`&&t.push(`ArrowRight`),e.key===`ArrowDown`&&t.push(`ArrowDown`),e.key===`ArrowUp`&&t.push(`ArrowUp`),e.key===`ArrowLeft`&&t.push(`ArrowLeft`),t.length>0?t:null},Ly=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),Ry=e=>e===`alt`?Fy():e===`control`?`⌃`:e===`meta`?`⌘`:e===`shift`?`⇧​`:e===`Enter`||e===`Backspace`||e===`Esc`||e===`escape`?``:e===` `?`SPACE`:e===`ArrowUp`?`↑`:e===`ArrowDown`?`↓`:e===`ArrowLeft`?`←`:e===`ArrowRight`?`→`:e?.toUpperCase(),zy=e=>e.map(Ry).join(` `),By=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:Vy,document:Hy}=jy,Uy=()=>Vy&&Vy.platform?!!Vy.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Wy=()=>Uy()?`meta`:`control`,Gy=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[Wy(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[Wy(),`shift`,`,`],aboutPage:[Wy(),`,`],escape:[`escape`],collapseAll:[Wy(),`shift`,`ArrowUp`],expandAll:[Wy(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),Ky={},qy=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Gy,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Ky},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),Ky[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=Iy(e),n=r.getShortcutKeys(),i=M_(n).find(e=>Ly(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(!i)return;let c=t.getNavAvailability()===`unavailable`,l=[`focusNav`,`search`,`toggleNav`].includes(n);if(!(c&&l))switch(r?.preventDefault&&r.preventDefault(),n){case`escape`:t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break;case`goToNextLandmark`:case`goToPreviousLandmark`:break;case`focusNav`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(sy.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(sy.storySearchField,!0)},0);break;case`focusIframe`:{let e=Hy.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(sy.storyPanelRoot);break;case`nextStory`:t.jumpToStory(1);break;case`prevStory`:t.jumpToStory(-1);break;case`nextComponent`:t.jumpToComponent(1);break;case`prevComponent`:t.jumpToComponent(-1);break;case`fullScreen`:t.toggleFullscreen();break;case`togglePanel`:{let e=t.getIsPanelShown(),n=Hy.getElementById(sy.addonPanel);t.togglePanel(),e&&j_(n)&&t.focusOnUIElement(sy.showAddonPanel,{poll:!0}).then(e=>{e===!1&&Hy.body.focus()}),e||t.focusOnUIElement(sy.addonPanel,{forceFocus:!0,poll:!0});break}case`toggleNav`:{let e=t.getIsNavShown(),n=Hy.getElementById(sy.sidebarRegion);t.toggleNav(),e&&j_(n)&&t.focusOnUIElement(sy.showSidebar,{poll:!0}).then(e=>{e===!1&&Hy.body.focus()}),e||t.focusOnUIElement(sy.sidebarRegion,{forceFocus:!0,poll:!0});break}case`toolbar`:t.toggleToolbar();break;case`panelPosition`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break;case`aboutPage`:t.navigate(`/settings/about`);break;case`shortcutsPage`:t.navigate(`/settings/shortcuts`);break;case`collapseAll`:t.emit(ky);break;case`expandAll`:t.emit(Ay);break;case`remount`:t.emit(Dy,{storyId:a});break;case`openInEditor`:jy.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,Ey.default)(e)}break;default:Ky[n].action();break}}},{shortcuts:i=Gy}=e.getState();return{api:r,state:{shortcuts:M_(Gy).reduce((e,t)=>({...e,[t]:i[t]||Gy[t]}),Gy)},init:()=>{Hy.addEventListener(`keydown`,e=>{N_(e)||r.handleKeydownEvent(e)}),n.channel?.on(Oy,e=>{r.handleKeydownEvent(e.event)})}}},Jy={},w(Jy,{init:()=>Vb}),{logger:Yy}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:Xy,CURRENT_STORY_WAS_SET:Zy,DOCS_PREPARED:Qy,PRELOAD_ENTRIES:$y,RESET_STORY_ARGS:eb,SELECT_STORY:tb,SET_CONFIG:nb,SET_CURRENT_STORY:rb,SET_FILTER:ib,SET_INDEX:ab,SET_STORIES:ob,SIDEBAR_FILTER_CHANGED:sb,STORY_ARGS_UPDATED:cb,STORY_CHANGED:lb,STORY_INDEX_INVALIDATED:ub,STORY_MISSING:db,STORY_PREPARED:fb,STORY_SPECIFIED:pb,UPDATE_STORY_ARGS:mb}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:hb}=__STORYBOOK_MODULE_GLOBAL__,gb=(e,t={})=>[e,...Object.entries(t).filter(([e,t])=>e!==`path`&&t!=null).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),_b=(e,t)=>{let n=U_.useRef(t?t(e.getState()):e.getState()),r=U_.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e),o=t(i);!d(a,o)&&(n.current=a,r())}),[e,t]),i=U_.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return d(i,n.current)||(n.current=i),n.current},[e,t]);return[U_.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:vb,getStatusStoreByTypeId:yb,useStatusStore:bb,universalStatusStore:xb}=st({universalStatusStore:vn.create({...ft,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:_b,environment:`manager`}),Sb=(e,t)=>{if(!e)return{included:[],excluded:[]};let n=[],r=[];return e.split(`;`).forEach(e=>{if(!e)return;let i=e.startsWith(`!`),a=t(i?e.slice(1):e);a!=null&&(i?r.push(a):n.push(a))}),{included:n,excluded:r}},Cb=e=>Sb(e,ut),wb=(e,t)=>{if(!e.length&&!t.length)return;let n=e.map(e=>dt(e)).sort(),r=t.map(e=>`!${dt(e)}`).sort();return[...n,...r].join(`;`)},Tb=(e,t)=>n=>{if(!e.length&&!t.length)return!0;let r=(vb.getAll()??{})[n.id],i=r?Object.values(r).map(e=>e.value):[],a=!e.length||e.some(e=>i.includes(e)),o=!t.length||t.every(e=>!i.includes(e));return a&&o},Eb=C(ge(),1),Db={$docs:`_docs`,$play:`_play`,$test:`_test`},Ob=e=>Sb(e,e=>Db[e]??e),kb=(e,t)=>{if(!e.length&&!t.length)return``;let n=Object.fromEntries(Object.entries(Db).map(([e,t])=>[t,e])),r=e.map(e=>n[e]??e).sort(),i=t.map(e=>`!${n[e]??e}`).sort();return[...r,...i].join(`;`)},Ab=(0,Eb.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,e])=>e.defaultFilterSelection===`include`).map(([e])=>e),excluded:t.filter(([,e])=>e.defaultFilterSelection===`exclude`).map(([e])=>e)}}),jb=e=>{let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r.excludeFromSidebar&&(e[n]=!0),e},{});return e=>{let n=e.tags??[],r=e.type===`docs`&&!n.includes(Uo.ATTACHED_MDX)&&!n.includes(Uo.UNATTACHED_MDX);return(n.includes(Uo.DEV)||r)&&n.filter(e=>t[e]).length===0}},Mb=(e,t)=>{let n=e=>Object.values(e.reduce((e,t)=>(Object.hasOwn(Wo,t)?e[`built-in`].push(Wo[t]):e.user.push(Go(t)),e),{"built-in":[],user:[]})).filter(e=>e.length>0);return r=>{let i=n(e),a=n(t);return(!i.length||i.every(e=>e.some(e=>e(r,!1))))&&(!a.length||a.every(e=>e.every(e=>e(r,!0))))}},{fetch:Nb}=hb,Pb=`./index.json`,Fb=`tags-filter`,Ib=`static-filter`,Lb=`status-filter`,Rb=new Set(Object.keys(Wo)),zb=[`enableShortcuts`,`theme`,`showRoots`],Bb={tag:{included:`includedTagFilters`,excluded:`excludedTagFilters`},status:{included:`includedStatusFilters`,excluded:`excludedStatusFilters`}},Vb=({fullAPI:e,store:t,navigate:n,provider:r,state:{location:i}={},storyId:a,viewMode:o,docsOptions:s={}})=>{let c=(e,r)=>{let{customQueryParams:i}=t.getState();n(gb(e,i??{}),r)},l=e=>t.setState(e,{persistence:`url`,serialize:e=>{let t=kb(e.includedTagFilters,e.excludedTagFilters),n=wb(e.includedStatusFilters,e.excludedStatusFilters);return{tags:t??null,statuses:n??null}}}),u=!1,d=async(e,n,r)=>{let{included:i,excluded:a}=Bb[e],o=t.getState(),s=new Set(o[i]),c=new Set(o[a]);for(let e of n){let[t,n]=r?[c,s]:[s,c];n.delete(e),t.add(e)}await l({[i]:Array.from(s),[a]:Array.from(c)})},f=async(e,n)=>{let{included:r,excluded:i}=Bb[e],a=t.getState(),o=new Set(n);await l({[r]:a[r].filter(e=>!o.has(e)),[i]:a[i].filter(e=>!o.has(e))})},p=(e,n)=>{let i=t.getState(),a=(i.includedTagFilters??[]).filter(e=>Rb.has(e)),o=(i.excludedTagFilters??[]).filter(e=>Rb.has(e)),s=!!globalThis?.FEATURES?.changeDetection,c=s?i.includedStatusFilters??[]:[],l=s?i.excludedStatusFilters??[]:[],u={},d=i.internal_index?Object.values(i.internal_index.entries):[];for(let e of new Set([...a,...o])){let t=Wo[e];u[e]=d.filter(e=>t(e)).length}if(c.length>0||l.length>0){let e=ot(vb.getAll());for(let t of new Set([...c,...l]))e[t]!==void 0&&(u[t]=e[t])}r.channel?.emit(sb,{trigger:e,changed:n,activeTagFilters:{included:a,excluded:o},activeStatusFilters:{included:c,excluded:l},storyCounts:u})},m={storyId:Gm,getData:(e,t)=>{let n=m.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=m.getData(e,t);return n?n.type!==`story`||n.prepared:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return m.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=m.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return m.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!m.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let s=m.findSiblingStoryId(r,o,e,!0);s&&m.selectStory(s,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=m.getData(r,a);if(!o)return;let s=o.refId?i[o.refId].filteredIndex:n;if(!s)return;let c=m.findSiblingStoryId(r,s,e,!1);c&&m.selectStory(c,void 0,{ref:a})},selectFirstStory:()=>{let e=t.getState(),{filteredIndex:n}=e;if(n){let e=Object.keys(n).find(e=>n[e].type===`story`);e&&m.selectStory(e);return}let{index:r}=e;if(!r)return;let i=Object.keys(r).find(e=>r[e].type===`story`);if(i){m.selectStory(i);return}c(`/`)},selectStory:(e=void 0,n=void 0,r={})=>{let{ref:i}=r,{storyId:a,index:o,filteredIndex:s,refs:l,settings:u}=t.getState(),d=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...u,lastTrackedStoryId:e.id}}),c(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,f=a?.split(`--`,2)[0],p=i?l[i].index:o,h=i?l[i].filteredIndex:s;if(!(!p||!h)){if(n){if(!e)d(p[Gm(f,n)]);else{let t=i?`${i}_${Gm(e,n)}`:Gm(e,n);if(p[t])d(p[t]);else{let t=p[Um(e)];if(t?.type===`component`){let e=t.children.find(e=>p[e].name===n);d(e?p[e]:void 0)}}}}else{let t=e?p[e]||p[Um(e)]:p[f];if(!t)throw Error(`Unknown id or title: '${e}'`);d(t)||d(m.findLeafEntry(h,t.id))}}},findLeafEntry(e,t){let n=e[t];if(!n)return;if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t]);return r?m.findLeafEntry(e,r):void 0},findLeafStoryId(e,t){return m.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=Iv(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=Lv(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(mb,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(eb,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await Nb(Pb);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){Yy.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await m.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),o=vb.getAll(),c=Pv(e,{provider:r,docsOptions:s,filters:a,allStatuses:o,statusFilterKey:Lb}),l=Pv(e,{provider:r,docsOptions:s,filters:{},allStatuses:o});await t.setState({internal_index:e,filteredIndex:Fv(c,n),index:Fv(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState(e=>({filters:{...e.filters,[n]:i}}));let{internal_index:a}=t.getState();if(!a)return;await m.setIndex(a);let o=await e.getRefs();for(let[t,{internal_index:n,...r}]of Object.entries(o))await e.setRef(t,{...r,storyIndex:n},!0);r.channel?.emit(ib,{id:n})},resetTagFilters:async()=>{await l(e=>({includedTagFilters:e.defaultIncludedTagFilters,excludedTagFilters:e.defaultExcludedTagFilters})),await h()},setAllTagFilters:async(e,t)=>{await l({includedTagFilters:e,excludedTagFilters:t}),await h()},addTagFilters:async(e,t)=>{await d(`tag`,e,t),await h(),e.length===1&&Rb.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:t?`exclude`:`include`})},removeTagFilters:async e=>{await f(`tag`,e),await h(),e.length===1&&Rb.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:`remove`})},resetStatusFilters:async()=>{await l({includedStatusFilters:[],excludedStatusFilters:[]}),await g()},setAllStatusFilters:async(e,n)=>{let r=t.getState(),i=new Set(r.includedStatusFilters??[]),a=new Set(r.excludedStatusFilters??[]),o=new Set(e),s=new Set(n);await l({includedStatusFilters:e,excludedStatusFilters:n}),await g();let c=new Set([...i,...a,...o,...s]);for(let e of c){let t=i.has(e),n=a.has(e),r=o.has(e),c=s.has(e);if(t===r&&n===c)continue;let l;l=r?`include`:c?`exclude`:`remove`,p(`interaction`,{filterType:`status`,filterId:e,action:l})}},addStatusFilters:async(e,t)=>{await d(`status`,e,t),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:t?`exclude`:`include`})},removeStatusFilters:async e=>{await f(`status`,e),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:`remove`})}},h=()=>{let{includedTagFilters:e,excludedTagFilters:n}=t.getState();return m.experimental_setFilter(Fb,Mb(e,n))},g=()=>{let{includedStatusFilters:e,excludedStatusFilters:n}=t.getState();return m.experimental_setFilter(Lb,Tb(e??[],n??[]))};r.channel?.on(pb,function({storyId:n,viewMode:i}){let{sourceType:a}=qv(this,e);if(a===`local`){let e=t.getState(),a=!vt(e.path,e.customQueryParams)&&(e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`),o=e.viewMode&&e.storyId,s=e.viewMode!==i||e.storyId!==n,{type:l}=e.index?.[e.storyId]||{},u=l!==`root`&&l!==`component`&&l!==`group`;if(a){let{filteredIndex:t}=e;if(t&&!o&&t[n]?.type!==`story`){let e=t?Object.keys(t).find(e=>{let n=t[e];return n.type===`story`||n.type===`docs`}):void 0;e&&c(`/${i}/${e}`);return}o&&s&&u?r.channel?.emit(rb,{storyId:e.storyId,viewMode:e.viewMode}):s&&c(`/${i}/${n}`)}}}),r.channel?.on(Zy,function(){let{ref:t}=qv(this,e);m.setPreviewInitialized(t)}),r.channel?.on(lb,function(){let{sourceType:t}=qv(this,e);if(t===`local`){let t=m.getCurrentParameter(`options`);t&&e.setOptions(P_(t))}}),r.channel?.on(fb,function({id:n,...i}){let{ref:a,sourceType:o}=qv(this,e);if(m.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(P_(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([m.findSiblingStoryId(e,n,1,!0),m.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit($y,{ids:a,options:{target:i}})}}),r.channel?.on(Qy,function({id:t,...n}){let{ref:r}=qv(this,e);m.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(ab,function(t){let{ref:n}=qv(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{m.setIndex(t);let n=m.getCurrentParameter(`options`);e.setOptions(P_(n))}}),r.channel?.on(ob,function(t){let{ref:n}=qv(this,e),r=t.v?kv(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(tb,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=qv(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(cb,function({storyId:t,args:n}){let{ref:r}=qv(this,e);m.updateStory(t,{args:n},r)}),r.channel?.on(Xy,function(t){let{ref:n}=qv(this,e);m.setPreviewInitialized(n)}),r.channel?.on(db,function(t){let{ref:n}=qv(this,e);m.setPreviewInitialized(n)}),r.channel?.on(nb,()=>{let e=r.getConfig()?.sidebar?.filters||{},{includedTagFilters:n,excludedTagFilters:i,includedStatusFilters:a,excludedStatusFilters:o,tagPresets:s}=t.getState();t.setState(({filters:t})=>({filters:{...t,...e,[Ib]:jb(s),[Fb]:Mb(n,i),[Lb]:Tb(a,o)}}))}),vb.onAllStatusChange(async()=>{g();let{internal_index:n}=t.getState();if(!n)return;await m.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})});let _=r.getConfig()?.sidebar?.filters||{},v=hb.TAGS_OPTIONS||{},y=Ab(v),{tags:b,statuses:x}=eg(i??{search:``}),S=Ob(b),C=b!==void 0,w=C?S.included:y.included,T=C?S.excluded:y.excluded,E=Cb(x),D=E.included,O=E.excluded;return{api:m,state:{storyId:a,viewMode:o,hasCalledSetOptions:!1,previewInitialized:!1,filters:{..._,[Ib]:jb(v),[Fb]:Mb(w,T),[Lb]:Tb(D,O)},tagPresets:v,defaultIncludedTagFilters:y.included,defaultExcludedTagFilters:y.excluded,includedTagFilters:w,excludedTagFilters:T,includedStatusFilters:D,excludedStatusFilters:O},init:async()=>{if(r.channel?.on(ub,()=>m.fetchIndex()),await m.fetchIndex(),u)return;u=!0;let e=w.some(e=>Rb.has(e))||T.some(e=>Rb.has(e)),t=!!globalThis?.FEATURES?.changeDetection&&(D.length>0||O.length>0);(e||t)&&p(`url`)}}},Hb={},w(Hb,{getCustomQueryParams:()=>$b,init:()=>nx}),{GLOBALS_UPDATED:Ub,NAVIGATE_URL:Wb,SET_CURRENT_STORY:Gb,STORY_ARGS_UPDATED:Kb,UPDATE_QUERY_PARAMS:qb}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Jb}=__STORYBOOK_MODULE_GLOBAL__,Yb=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},Xb=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),Zb=(e,t)=>{let n=Xb(e),r=Xb(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},Qb=[`full`,`panel`,`nav`,`shortcuts`,`addonPanel`,`tabs`,`path`],$b=e=>x(eg(e),Qb),tx=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u}=eg(e),d,f,p;Yb(a)===!0?(d=0,f=0,p=0):Yb(a)===!1&&(d=ry,f=iy,p=ay),i||(Yb(s)===!0&&(d=ry),Yb(s)===!1&&(d=0)),Yb(o)===!1&&(f=0,p=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:p,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:Yb(u)},h={enableShortcuts:Yb(c)},g=l||void 0,_=r,v=$b(e),y=Lo(ex,v)?ex:v;return ex=y,{viewMode:n,layout:m,ui:h,selectedPanel:g,location:e,path:t,customQueryParams:y,storyId:_}},nx=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n(gb(e,t),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`,embed:g=!1,freeze:_=!1}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let v=c.pathname||`/`,y=Jb.window.location.origin+v,b=Jb.STORYBOOK_NETWORK_ADDRESS??y,S=u===`origin`?y:u===`network`?b:v,C=m?l[m].url+`/iframe.html`:Jb.PREVIEW_URL||`${S.replace(/\/[^/]*\.html$/,``).replace(/\/?$/,`/`)}iframe.html`,w=m?`&refId=${encodeURIComponent(m)}`:``,{args:T=``,globals:E=``,...D}=p,O=d?Zb(s?.args??``,T):T,k=f?Zb(s?.globals??``,E):E,ee=x(D,[`embed`,`freeze`]),A=x(D,[`id`,`viewMode`,`embed`,`freeze`]),j=ts(ee,{nesting:!0,nestingSyntax:`js`}),te=ts(A,{nesting:!0,nestingSyntax:`js`});O&&=`&args=${O}`,k&&=`&globals=${k}`,j&&=`&${j}`,te&&=`&${te}`;let ne=g?`&embed=true`:``,re=_?`&freeze=finished`:``;return{managerHref:`${S}?path=/${h}/${m?`${m}_`:``}${e}${O}${k}${j}`,previewHref:`${C}?id=${e}&viewMode=${h}${w}${O}${m?``:k}${te}${ne}${re}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e?.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={...n};for(let[t,n]of Object.entries(e))n==null?delete i[t]:i[t]=n;Lo(n,i)||(t.setState({customQueryParams:i}),r.channel?.emit(qb,i))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=Qh(l,c);a(`${e}${t}`,{...n,args:u||null},{replace:!0}),o.setQueryParams({args:u||null})};r.channel?.on(Gb,()=>s());let c;return r.channel?.on(Kb,()=>{`requestIdleCallback`in Jb.window?(c&&Jb.window.cancelIdleCallback(c),c=Jb.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(Ub,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=Qh(t,rv(t,e));a(`${n}${r}`,{...i,globals:s||null},{replace:!0}),o.setQueryParams({globals:s||null})}),r.channel?.on(Wb,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:tx(e),init:()=>{t.registerPersistenceHandler(`url`,(e,n)=>{if(n){let e=n(t.getState());o.applyQueryParams(e,{replace:!0})}})}}},rx={},w(rx,{init:()=>ux}),ix=C(ge(),1),{global:ax}=__STORYBOOK_MODULE_GLOBAL__,ox=`10.5.8`,{VERSIONCHECK:sx}=ax,cx=(0,ix.default)(1)(()=>{try{return{...JSON.parse(sx).data||{}}}catch{return{}}}),lx=e=>e.includes(`vue`)?`vue`:e,ux=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:ox},...cx()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&W_.default.prerelease(r.version)&&n?t&&W_.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${W_.default.major(l)}.${W_.default.minor(l)}/`;else if(r&&l&&s){let e=W_.default.diff(s,l);e===`patch`||e===null||(u+=`${W_.default.major(l)}.${W_.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof ax.STORYBOOK_RENDERER<`u`){let e=ax.STORYBOOK_RENDERER;e&&(u+=`?renderer=${lx(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=W_.default.prerelease(t.version)?`${W_.default.major(t.version)}.${W_.default.minor(t.version)}.${W_.default.patch(t.version)}`:t.version,r=W_.default.diff(n,e.version);return W_.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=cx();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},dx={},w(dx,{init:()=>yx}),{REQUEST_WHATS_NEW_DATA:fx,RESULT_WHATS_NEW_DATA:px,SET_WHATS_NEW_CACHE:mx,TOGGLE_WHATS_NEW_NOTIFICATIONS:hx}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:gx}=__STORYBOOK_MODULE_GLOBAL__,_x=`whats-new`,vx=({color:e=`currentColor`,size:t=14})=>G_.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},G_.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z`,fill:e})),yx=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(_x))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(hx,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(fx),new Promise(e=>n.channel?.once(px,({data:t})=>e(t)))}function s(e){n.channel?.emit(mx,e)}return{init:async()=>{if(gx.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState(),r=n?.path===`/onboarding`||n.queryParams?.onboarding===`true`,a=n?.path===`/review/`||n?.path===`/review`||n?.path?.startsWith(`/review/`);!r&&!a&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:_x,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:G_.createElement(vx,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},bx=C(J_(),1),xx=e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),oa(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:ca(r)})},xx(bx.default._),Sx=`@storybook/manager/store`,Cx=class{constructor({allowPersistence:e,setState:t,getState:n}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=n}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let e of[bx.default.local,bx.default.session]){let t=F_(e);if(`includedTagFilters`in t||`excludedTagFilters`in t){let{includedTagFilters:n,excludedTagFilters:r,...i}=t;I_(e,i)}}let t=F_(bx.default.local),n=F_(bx.default.session);return{...e,...t,...n}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});if(a!==`none`&&this.upstreamPersistence){if(a===`url`){let e=this.persistenceHandlers.get(`url`);e&&await e(s,i?.serialize)}else await L_(a===`session`?bx.default.session:bx.default.local,s)}return r&&r(c),c}},{ActiveTabs:wx}=Yv,Tx=tv({api:void 0,state:ov({})}),Ex=(...e)=>iv({},...e),Dx=class extends B_.Component{constructor(e){super(e),this.api={},this.mounted=!1,this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new Cx({getState:()=>this.state,setState:(e,t)=>{if(!this.mounted){let n=typeof e==`function`?e(this.state):e;return this.state={...this.state,...n},t?.(this.state),this.state}return this.setState(e,()=>t(this.state)),this.state}}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(ov({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[xy,gv,fv,Yv,hy,Cy,Ty,Jy,wv,vv,Hb,rx,dx,_y].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=ov(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let n=t.location?.search!==e.location?.search;return t.path!==e.path||n?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:$b(e.location)}:null}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!d(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return B_.createElement(Ox,{effect:this.initModules},B_.createElement(Tx.Provider,{value:t},B_.createElement(R_,null,e)))}},Dx.displayName=`Manager`,Ox=({children:e,effect:t})=>(B_.useEffect(t,[]),e),kx=e=>e,globalThis.STORYBOOK_ADDON_STATE={},{STORYBOOK_ADDON_STATE:Ax}=globalThis,{Channel:jx}=__STORYBOOK_MODULE_CHANNELS__,Mx={id:`storybook/test-provider`,leader:!0,initialState:{}},{fullTestProviderStore:Nx,getTestProviderStoreById:Px,useTestProviderStore:Fx,universalTestProviderStore:Ix}=z_({universalTestProviderStore:vn.create({...Mx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:_b}),Lx={id:`storybook/checklist`,initialState:{items:{accessibilityTests:{status:`open`},aiSetup:{status:`open`},autodocs:{status:`open`},ciTests:{status:`open`},controls:{status:`open`},coverage:{status:`open`},guidedTour:{status:`open`},installA11y:{status:`open`},installChromatic:{status:`open`},installDocs:{status:`open`},installVitest:{status:`open`},mdxDocs:{status:`open`},moreComponents:{status:`open`},moreStories:{status:`open`},onboardingSurvey:{status:`open`},organizeStories:{status:`open`},renderComponent:{status:`open`},runTests:{status:`open`},publishStorybook:{status:`open`},shareStorybook:{status:`open`},viewports:{status:`open`},visualTests:{status:`open`},whatsNewStorybook10:{status:`open`},writeInteractions:{status:`open`}},widget:{}}},Rx=e=>({getValue:t=>e.getState().items[t]??{status:`open`,mutedAt:void 0},accept:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`accepted`}}}))},done:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`done`}}}))},skip:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`skipped`}}}))},reset:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`open`}}}))},mute:t=>{e.setState(e=>({...e,items:t.reduce((t,n)=>({...t,[n]:{...e.items[n],mutedAt:Date.now()}}),e.items)}))},disable:t=>{e.setState(e=>({...e,widget:{...e.widget,disable:t},items:Object.entries(e.items).reduce((e,[t,n])=>({...e,[t]:{...n,mutedAt:void 0}}),e.items)}))}}),zx=vn.create({...Lx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),Rx(zx)})))()}var Vx=n({createCopyToClipboardFunction:()=>Wx});async function Hx(e){try{await hM.top?.navigator.clipboard.writeText(e)}catch{await hM.navigator.clipboard.writeText(e)}}async function Ux(e){let t=mM.createElement(`TEXTAREA`),n=mM.activeElement;t.value=e,mM.body.appendChild(t),t.select(),mM.execCommand(`copy`),mM.body.removeChild(t),n.focus()}function Wx(){return hM.navigator?.clipboard?Hx:Ux}function Gx(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Kx(...e){return t=>{let n=!1,r=e.map(e=>{let r=Gx(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Gx(e[t],null)}}}}function qx(e){return typeof e==`object`&&!!e&&`then`in e}function Jx(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===_M&&`_payload`in e&&qx(e._payload)}function Yx(e){let t=Xx(e),n=GO.forwardRef((e,n)=>{let{children:r,...i}=e;Jx(r)&&typeof vM==`function`&&(r=vM(r._payload));let a=GO.Children.toArray(r),o=a.find(Qx);if(o){let e=o.props.children,r=a.map(t=>t===o?GO.Children.count(e)>1?GO.Children.only(null):GO.isValidElement(e)?e.props.children:null:t);return(0,KO.jsx)(t,{...i,ref:n,children:GO.isValidElement(e)?GO.cloneElement(e,void 0,r):null})}return(0,KO.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Xx(e){let t=GO.forwardRef((e,t)=>{let{children:n,...r}=e;if(Jx(n)&&typeof vM==`function`&&(n=vM(n._payload)),GO.isValidElement(n)){let e=eS(n),i=$x(r,n.props);return n.type!==GO.Fragment&&(i.ref=t?Kx(t,e):e),GO.cloneElement(n,i)}return GO.Children.count(n)>1?GO.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function Zx(e){let t=({children:e})=>(0,KO.jsx)(KO.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=bM,t}function Qx(e){return GO.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===bM}function $x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function eS(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tS(e){let[t,n]=(0,ZO.useState)(e),r=(0,ZO.useRef)(t),i=(0,ZO.useRef)(null),a=(0,ZO.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return Y(()=>{r.current=t,i.current&&a.current()}),[t,(0,ZO.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}function nS(e=!1){let t=(0,$O.useContext)(TM),n=(0,$O.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=$O.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=DM.get(e);n==null?DM.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,DM.delete(e))}n.current=++t.current}return n.current}function rS(e){let t=(0,$O.useContext)(TM),n=nS(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function iS(e){let t=$O.useId(),[n]=(0,$O.useState)(cS()),r=n?`react-aria`:`react-aria${wM.prefix}`;return e||`${r}-${t}`}function aS(){return!1}function oS(){return!0}function sS(e){return()=>{}}function cS(){return typeof $O.useSyncExternalStore==`function`?$O.useSyncExternalStore(sS,aS,oS):(0,$O.useContext)(EM)}function lS(e){let[t,n]=(0,QO.useState)(e),r=(0,QO.useRef)(null),i=OM(t),a=(0,QO.useRef)(null);if(jM&&jM.register(a,i),kM){let e=AM.get(i);e&&!e.includes(r)?e.push(r):AM.set(i,[r])}return Y(()=>{let e=i;return()=>{jM&&jM.unregister(a),AM.delete(e)}},[i]),(0,QO.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function uS(e,t){if(e===t)return e;let n=AM.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=AM.get(t);return r?(r.forEach(t=>t.current=e),e):t}function dS(e=[]){let t=lS(),[n,r]=tS(t),i=(0,QO.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Y(i,[t,i,...e]),n}function fS(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function pS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function mS(e){return pS(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function hS(){return NM}function gS(e,t){if(!hS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:mS(n)?n.host:n.parentNode}return!1}function _S(e){return hS()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function vS(e,t,n,r){return hS()?new FM(e,t,n,r):e.createTreeWalker(t,n,r)}function yS(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yS(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function bS(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yS(e))&&(r&&(r+=` `),r+=t);return r}function V(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=fS(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=IM(n,i):e===`id`&&n&&i?t.id=uS(n,i):t[e]=i===void 0?n:i}}return t}function xS(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=SS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():SS(e[n],null)})}}}function SS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function CS(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(LM.has(t)||n&&RM.has(t)||r&&zM.has(t)||i&&BM.has(t)||a&&(VM.has(t)||t.endsWith(`Capture`)&&VM.has(t.slice(0,-7)))||o?.has(t)||HM.test(t))&&(s[t]=e[t]);return s}function wS(e){if(TS())e.focus({preventScroll:!0});else{let t=ES(e);e.focus(),DS(t)}}function TS(){if(UM==null){UM=!1;try{document.createElement(`div`).focus({get preventScroll(){return UM=!0,!0}})}catch{}}return UM}function ES(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function DS(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function OS(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function kS(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function AS(e){let t=null;return()=>(t??=e(),t)}function jS(){return(0,ek.useContext)($M)}function MS(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function NS(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;QM()&&(i=window.event)!=null&&(r=i.type)!=null&&r.startsWith(`key`)&&e.target===`_blank`&&(WM()?a=!0:o=!0);let l=YM()&&WM()&&!KM()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});NS.isOpening=n,wS(e),e.dispatchEvent(l),NS.isOpening=!1}function PS(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function FS(e,t){PS(e,e=>NS(e,t))}function IS(e){let t=jS().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function LS(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&MS(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}function RS(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=eN.get(t.target);r||(r=new Set,eN.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=eN.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),eN.delete(t.target)),eN.size===0)){for(let e of tN)e();tN.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function zS(){for(let[e]of eN)`isConnected`in e&&!e.isConnected&&eN.delete(e)}function BS(e){requestAnimationFrame(()=>{zS(),eN.size===0?e():tN.add(e)})}function VS(){let e=(0,tk.useRef)(new Map),t=(0,tk.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,tk.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,tk.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,tk.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function HS(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=lS(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function US(e){let t=(0,nk.useRef)(null),n=(0,nk.useRef)(void 0),r=(0,nk.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,nk.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}function WS(e){let t=(0,rk.useRef)(null);return nN(()=>{t.current=e},[e]),(0,rk.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function GS(e,t){let n=(0,ik.useRef)(!0),r=(0,ik.useRef)(null);Y(()=>(n.current=!0,()=>{n.current=!1}),[]),Y(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function KS(){return typeof window.ResizeObserver<`u`}function qS(e){let{ref:t,box:n,onResize:r}=e,i=WS(r);(0,ak.useEffect)(()=>{let e=t?.current;if(e){if(KS()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}}},[t,n])}function JS(e,t){Y(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function YS(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function XS(e,t){let n=e;for(YS(n,t)&&(n=n.parentElement);n&&!YS(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ZS(e,t){let n=[];for(;e&&e!==document.documentElement;)YS(e,t)&&n.push(e),e=e.parentElement;return n}function QS(e){return WM()?e.metaKey:e.ctrlKey}function $S(e){return e instanceof HTMLInputElement&&!rN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function eC(e){let[t,n]=(0,ok.useState)();return Y(()=>{if(!e)return;let t=aN.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${iN++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},aN.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),aN.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function tC(e,t,n,r){let i=WS(n),a=n==null;(0,sk.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function nC(e,t){let n=rC(e,t,`left`),r=rC(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function rC(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function iC(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=ZS(e);s||t.push(o);for(let n of t)nC(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function aC(e){return e.pointerType===``&&e.isTrusted?!0:ZM()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function oC(e){return!ZM()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function sC(e){let t=ck.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function cC(e,t=!0){let[n,r]=(0,uk.useState)(!0),i=n&&t;return Y(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),uC(e,i,(0,uk.useCallback)(()=>r(!1),[])),i}function lC(e,t){let[n,r]=(0,uk.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`)}let i=n===`exiting`;return uC(e,i,(0,uk.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function uC(e,t,n){Y(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,lk.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function dC(e){let t=MM(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function fC(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function pC(e,t){return cN?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&dC(e)&&fC(e,t)&&(!e.parentElement||pC(e.parentElement,e))}function mC(e){return e.matches(uN)&&pC(e)&&!gC(e)}function hC(e){return e.matches(dN)&&pC(e)&&!gC(e)}function gC(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function _C(e,t,n){let[r,i]=(0,dk.useState)(e||t),a=(0,dk.useRef)(r),o=(0,dk.useRef)(e!==void 0),s=e!==void 0;(0,dk.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;fN(()=>{a.current=c});let[,l]=(0,dk.useReducer)(()=>({}),{});return[c,(0,dk.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function vC(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function yC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function bC(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function xC(e){let t=(0,fk.useRef)({isFocused:!1,observer:null});Y(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=WS(t=>{e?.(t)});return(0,fk.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{if(t.current.isFocused=!1,r.disabled){let t=yC(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}function SC(e){for(;e&&!mC(e);)e=e.parentElement;let t=MM(e),n=t.document.activeElement;if(!n||n===e)return;pN=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,wS(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,wS(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),pN=!1,r=!1},l=requestAnimationFrame(c);return c}function CC(e){if(qM()){if(mN==="default"){let t=X(e);hN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}mN=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;gN.set(e,e.style[t]),e.style[t]=`none`}}function wC(e){if(qM()){if(mN!==`disabled`)return;mN=`restoring`,setTimeout(()=>{BS(()=>{if(mN===`restoring`){let t=X(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=hN||``),hN=``,mN=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&gN.has(e)){let t=gN.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),gN.delete(e)}}function TC(e,t){return t.get?t.get.call(e):t.value}function EC(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function DC(e,t){return TC(e,EC(e,t,`get`))}function OC(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function kC(e,t,n){OC(e,t),t.set(e,n)}function AC(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function jC(e,t,n){return AC(e,EC(e,t,`set`),n),n}function MC(e){let t=(0,mk.useContext)(_N);if(t){let{register:n,...r}=t;e=V(r,e),n()}return JS(t,e.ref),e}function NC(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=MC(e),[m,h]=(0,mk.useState)(!1),g=(0,mk.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=VS(),y=WS((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new yN(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=WS((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new yN(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new yN(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=WS((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new yN(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=WS(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(IC(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||wC(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=WS(e=>{u&&S(e)}),w=WS(e=>{s||o?.(e)}),T=WS((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);bC(n,t),o(yC(n))}}),E=(0,mk.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(FC(t.nativeEvent,t.currentTarget)&&gS(t.currentTarget,_S(t.nativeEvent))){var r;RC(_S(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(X(t.currentTarget),`keyup`,fS(t=>{FC(t,r)&&!t.repeat&&gS(r,_S(t))&&e.target&&x(IC(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&WM()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!gS(t.currentTarget,_S(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!NS.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||aC(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x(IC(t.currentTarget,t),r),a=b(IC(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&FC(t,e.target)){var r;RC(_S(t),t.key)&&t.preventDefault();let n=_S(t),i=gS(e.target,_S(t));b(IC(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&PC(e.target)&&gS(e.target,n)&&!t[bN]&&(t[bN]=!0,NS(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!gS(t.currentTarget,_S(t.nativeEvent)))return;if(oC(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||CC(e.target),i=y(t,e.pointerType);let a=_S(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(X(t.currentTarget),`pointerup`,n,!1),_(X(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(gS(t.currentTarget,_S(t.nativeEvent))&&t.button===0){if(l){let n=SC(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!gS(t.currentTarget,_S(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(IC(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b(IC(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(gS(e.target,_S(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(wS(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{gS(e.currentTarget,_S(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,mk.useEffect)(()=>{if(!f)return;let e=X(f.current);if(!e||!e.head||e.getElementById(xN))return;let t=e.createElement(`style`);t.id=xN,t.textContent=`
186
186
  @layer {
187
187
  [${SN}] {
188
188
  touch-action: pan-x pan-y pinch-zoom;
@@ -194,7 +194,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
194
194
  * {
195
195
  overscroll-behavior: contain;
196
196
  }
197
- }`,document.head.prepend(r);let i=n=>{if(!(n.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&n.preventDefault()}},a=e=>{let t=e.target,n=e.relatedTarget;n&&$S(n)?(n.focus({preventScroll:!0}),kE(n,$S(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=document.activeElement!=null&&$S(document.activeElement);o.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&kE(this,t)};let s=fS(OE(document,`touchstart`,n,{passive:!1,capture:!0}),OE(document,`touchmove`,i,{passive:!1,capture:!0}),OE(document,`blur`,a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function DE(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function OE(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function kE(e,t){t||!mF?AE(e):mF.addEventListener(`resize`,()=>AE(e),{once:!0})}function AE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=XS(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;mF&&(n=Math.min(n,mF.offsetTop+mF.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function jE(){return(0,Rk.useContext)(_F)??{}}function ME(e){let{children:t}=e,n=(0,zk.useContext)(vF),[r,i]=(0,zk.useState)(0),a=(0,zk.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return zk.createElement(vF.Provider,{value:a},t)}function NE(){let e=(0,zk.useContext)(vF);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function PE(e){let{modalProviderProps:t}=NE();return zk.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function FE(e){return zk.createElement(ME,null,zk.createElement(PE,e))}function IE(e){let t=cS(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=jE();if(!e.portalContainer&&i&&(n=i()),zk.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=zk.createElement(FE,r);return Bk.createPortal(a,n)}function LE(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,Hk.useState)(!1),{focusWithinProps:a}=sw({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,Hk.useMemo)(()=>r?t:t?{...eI,...t}:eI,[r]);return{visuallyHiddenProps:{...a,style:o}}}function RE(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=LE(e);return Hk.createElement(n,V(a,o),t)}function zE(e){return e&&e.__esModule?e.default:e}function BE(e){let{onDismiss:t,...n}=e,r=HS(n,BT(zE($F),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return Vk.createElement(RE,null,Vk.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}function VE(e,t){let n=MM(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&tI,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&d(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)d(e),e=n.nextNode()}},d=e=>{let t=nI.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),nI.set(e,t+1))};rI.length&&rI[rI.length-1].disconnect(),u(i);let f=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`&&![...o,...s].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?o.add(e):e instanceof Element&&u(e)});f.observe(i,{childList:!0,subtree:!0});let p={visibleNodes:o,hiddenNodes:s,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return rI.push(p),()=>{f.disconnect();for(let e of s){let t=nI.get(e);t!=null&&(t===1?(l(e,!1),nI.delete(e)):nI.set(e,t-1))}p===rI[rI.length-1]?(rI.pop(),rI.length&&rI[rI.length-1].observe()):rI.splice(rI.indexOf(p),1)}}function HE(e){let t=rI[rI.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function UE(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=SE({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=GT({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return wE({isDisabled:a||!t.isOpen}),(0,Uk.useEffect)(()=>{if(t.isOpen&&r.current)return a?HE(i?.current??r.current):VE([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:V(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}function WE(e){let t=cS(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,Wk.useState)(!1),o=(0,Wk.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=jE();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=Wk.createElement(JT,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=Wk.createElement(iI.Provider,{value:o},Wk.createElement(ow,null,c)),Gk.createPortal(c,n)}function GE(){let e=(0,Wk.useContext)(iI)?.setContain;Y(()=>{e?.(!0)},[e])}function KE(e,t,n){let{overlayProps:r,underlayProps:i}=SE({...e,isOpen:t.isOpen,onClose:t.close},n);return wE({isDisabled:!t.isOpen}),GE(),(0,Kk.useEffect)(()=>{if(t.isOpen&&n.current)return VE([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:V(r),underlayProps:i}}function qE(e){let[t,n]=_C(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:n,open:(0,Jk.useCallback)(()=>{n(!0)},[n]),close:(0,Jk.useCallback)(()=>{n(!1)},[n]),toggle:(0,Jk.useCallback)(()=>{n(!t)},[n,t])}}function JE(e={}){let{delay:t=aI,closeDelay:n=oI}=e,{isOpen:r,open:i,close:a}=qE(e),o=(0,qk.useMemo)(()=>`${++cI}`,[]),s=(0,qk.useRef)(null),c=(0,qk.useRef)(a),l=()=>{sI[o]=f},u=()=>{for(let e in sI)e!==o&&(sI[e](!0),delete sI[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),lI=!0,i(),uI&&=(clearTimeout(uI),null),dI&&=(clearTimeout(dI),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),uI&&=(clearTimeout(uI),null),lI&&(dI&&clearTimeout(dI),dI=setTimeout(()=>{delete sI[o],dI=null,lI=!1},Math.max(oI,n)))},p=()=>{u(),l(),!r&&!uI&&!lI?uI=setTimeout(()=>{uI=null,lI=!0,d()},t):r||d()};return(0,qk.useEffect)(()=>{c.current=a},[a]),(0,qk.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),sI[o]&&delete sI[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function YE(e){let t=JE(e),n=(0,Yk.useRef)(null),{triggerProps:r,tooltipProps:i}=xw(e,t,n);return Yk.createElement(hw,{values:[[fI,t],[pI,{...i,triggerRef:n}]]},Yk.createElement(NN,{...r,ref:n},e.children))}function XE(e){let t=(0,Yk.useContext)(fI),n=(0,Yk.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=GT({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=cC(e.tooltipRef,!!a)||e.isEntering||!1,c=gw({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=V(e,r);let{tooltipProps:l}=bw(e,t),u=CS(e,{global:!0});return Yk.createElement(`div`,{...V(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},Yk.createElement(VN.Provider,{value:{...i,placement:a,ref:n}},c.children))}function ZE(e=``){let t=e.toLowerCase().trim().replace(/\s+/g,`-`);return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?Zk.createElement(`span`,{id:t,hidden:!0},e):null}}function QE(e){let t=e=>typeof window<`u`&&window.matchMedia(e).matches,[n,r]=(0,rA.useState)(t(e));function i(){r(t(e))}return(0,rA.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addEventListener(`change`,i),()=>{t.removeEventListener(`change`,i)}},[e]),n}function $E({container:e,portalSelector:t,children:n,width:r,height:i,ariaLabel:a,dismissOnClickOutside:o=!0,dismissOnEscape:s=!0,className:c,open:l,onEscapeKeyDown:u,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:h=`dialog`,...g}){let _;(a===void 0||a===``)&&(_=`ariaLabel`,YI("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),u!==void 0&&(_=`onEscapeKeyDown`,YI("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(_=`onInteractOutside`,YI("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=(0,tA.useRef)(null),[{status:y,isMounted:b},x]=rL({timeout:QE(`(prefers-reduced-motion: reduce)`)?0:m,mountOnEnter:!0,unmountOnExit:!0}),S=qE({isOpen:l||b,defaultOpen:p,onOpenChange:e=>{x(e),f?.(e)}}),C=()=>{S.close()},{modalProps:w,underlayProps:T}=KE({isDismissable:o,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?e=>{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,relatedTarget:e});return d(t),!t.defaultPrevented}:void 0},S,v);if((0,tA.useEffect)(()=>{let e=l??p??!1;e&&!b?x(!0):!e&&b&&x(!1)},[l,p,b,x]),(0,tA.useEffect)(()=>{b&&(l||p)&&f?.(!0)},[b]),(0,tA.useEffect)(()=>{if(b&&(l||p)&&v.current)return VE([v.current],{shouldUseInert:!0})},[b,l,p,v]),!b||y===`exited`||y===`unmounted`)return null;let E=V(w,{onKeyDown:e=>{e.key===`Escape`?s&&(u?.(e.nativeEvent),e.nativeEvent.defaultPrevented||C()):w.onKeyDown?.(e)}}),D=e??(t?document.querySelector(t):void 0);return tA.createElement(WE,{disableFocusManagement:!0,portalContainer:D||void 0},tA.createElement(JT,{restoreFocus:!0,contain:!0,autoFocus:!0},tA.createElement(_L,{$status:y,$transitionDuration:m,...T}),tA.createElement(`div`,{role:`dialog`,"aria-label":a,ref:v,...E},tA.createElement(jL.Provider,{value:{close:C}},tA.createElement(`div`,{tabIndex:-1},tA.createElement(vL,{"data-deprecated":_,$variant:h,$status:y,$transitionDuration:m,className:c,width:r,height:i,...g},n))))))}function eD(e,t){var n=(0,lA.useRef)(null),r=(0,lA.useRef)(null);r.current=t;var i=(0,lA.useRef)(null);(0,lA.useEffect)(function(){a()});var a=(0,lA.useCallback)(function(){var t=i.current,a=r.current,o=t||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===o&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:e,cleanup:o?e(o):void 0})},[e]);return(0,lA.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,lA.useCallback)(function(e){i.current=e,a()},[a])}function tD(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t===`contentBoxSize`?e.contentRect[n===`inlineSize`?`width`:`height`]:void 0}function nD(e){e===void 0&&(e={});var t=e.onResize,n=(0,lA.useRef)(void 0);n.current=t;var r=e.round||Math.round,i=(0,lA.useRef)(),a=(0,lA.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],c=(0,lA.useRef)(!1);(0,lA.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var l=(0,lA.useRef)({width:void 0,height:void 0}),u=eD((0,lA.useCallback)(function(t){return(!i.current||i.current.box!==e.box||i.current.round!==r)&&(i.current={box:e.box,round:r,instance:new ResizeObserver(function(t){var i=t[0],a=e.box===`border-box`?`borderBoxSize`:e.box===`device-pixel-content-box`?`devicePixelContentBoxSize`:`contentBoxSize`,o=tD(i,a,`inlineSize`),u=tD(i,a,`blockSize`),d=o?r(o):void 0,f=u?r(u):void 0;if(l.current.width!==d||l.current.height!==f){var p={width:d,height:f};l.current.width=d,l.current.height=f,n.current?n.current(p):c.current||s(p)}})}),i.current.instance.observe(t,{box:e.box}),function(){i.current&&i.current.instance.unobserve(t)}},[e.box,r]),e.ref);return(0,lA.useMemo)(function(){return{ref:u,width:o.width,height:o.height}},[u,o.width,o.height])}function rD({centered:e,scale:t,children:n}){let r=(0,cA.useRef)(null),[i,a]=(0,cA.useState)(0),o=(0,cA.useCallback)(({height:e})=>{e&&a(e/t)},[t]);return(0,cA.useEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[t]),nD({ref:r,onResize:o}),cA.createElement(ML,{centered:e,scale:t,elementHeight:i},cA.createElement(`div`,{ref:r,className:`innerZoomElementWrapper`},n))}function iD(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),hR||(hR=document.createElement(`textarea`),hR.setAttribute(`tabindex`,`-1`),hR.setAttribute(`aria-hidden`,`true`),mR(hR)),hR.parentNode===null&&document.body.appendChild(hR);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;hR.style[t]=o[t]}),mR(hR),hR.value=t;var c=gR(hR,e);hR.value=t,c=gR(hR,e),hR.value=`x`;var l=hR.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function aD(e,t,n){var r=lR(n);yA.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}function oD(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function sD(e){return{...e,type:`option`,value:uD(e.value)}}function cD(e){return`type`in e&&e.type===`reset`?e:sD(e)}function lD(e){if(e!==IR)return e}function uD(e){return e===void 0?IR:e}function dD(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}function fD(e,t){return t===void 0?[]:oD(t)?e.filter(e=>e.value===t).map(sD):e.filter(e=>t.some(t=>e.value===t)).map(sD)}function pD(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function mD(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,EA.useMemo)(()=>new WeakMap,a);return(0,EA.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,EA.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}if(typeof t!=`function`)return t},[t,n,o,r,i])}function hD(e){if((0,DA.useContext)(ez))return DA.createElement(DA.Fragment,null,e.children);let t=DA.createElement(ez.Provider,{value:!0},e.children);return DA.createElement(`template`,{"data-react-aria-hidden":!0},t)}function gD(e){let t=(t,n)=>(0,DA.useContext)(ez)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,DA.forwardRef)(t)}function _D(){return(0,DA.useContext)(ez)}function vD(e){if((0,W.useContext)(nz))return e.content;let{collection:t,document:n}=xD(e.createCollection);return W.createElement(W.Fragment,null,W.createElement(hD,null,W.createElement(nz.Provider,{value:n},e.content)),W.createElement(yD,{render:e.children,collection:t}))}function yD({collection:e,render:t}){return t(e)}function bD(e,t,n){let r=cS(),i=(0,W.useRef)(r);i.current=r;let a=(0,W.useCallback)(()=>i.current?n():t(),[t,n]);return(0,kA.useSyncExternalStore)(e,a)}function xD(e){let[t]=(0,W.useState)(()=>new $R(e?.()||new XR)),n=rz((0,W.useCallback)(e=>t.subscribe(e),[t]),(0,W.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,W.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return Y(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}function SD(e){var t;return t=class extends WR{},t.type=e,t}function CD(e,t,n,r,i,a){typeof e==`string`&&(e=SD(e));let o=(0,W.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,W.useContext)(iz);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?W.createElement(iz.Provider,{value:o},i):null}return W.createElement(e.type,{ref:o},i)}function wD(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,W.forwardRef)((r,i)=>{let a=(0,W.useContext)(MN);if(!(0,W.useContext)(tz)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return CD(e,r,i,`children`in r?r.children:null,null,e=>W.createElement(MN.Provider,{value:a},W.createElement(n,{node:e})))});return r.displayName=t.name,r}function TD(e,t,n=ED){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,W.forwardRef)((t,i)=>CD(e,t,i,null,n(t),e=>W.createElement(r,{node:e}))??W.createElement(W.Fragment,null));return i.displayName=t.name,i}function ED(e){return mD({...e,addIdAndValue:!0})}function DD(e){let t=(0,W.useContext)(az),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=ED({...e,idScope:r,dependencies:n});return(0,W.useContext)(nz)&&(i=W.createElement(OD,null,i)),t=(0,W.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),W.createElement(az.Provider,{value:t},i)}function OD({children:e}){let t=(0,W.useContext)(nz),n=(0,W.useMemo)(()=>W.createElement(nz.Provider,{value:null},W.createElement(tz.Provider,{value:!0},e)),[e]);return cS()?W.createElement(iz.Provider,{value:t},n):(0,OA.createPortal)(n,t)}function kD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=lS(t);let o=lS(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=HS({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function AD(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=CS(e,{labelable:!0}),{labelProps:c,fieldProps:l}=kD({...e,labelElementType:`span`});t=vC(t,n,r);let u=(t-n)/(r-n),d=UT(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:V(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}function jD(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=NC({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=aw(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=V(y,_,CS(e,{labelable:!0}));return{isPressed:v,buttonProps:V(g,b,{"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 MD(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}function ND({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,G.useRef)(null),o=(0,G.useRef)(null),s=(0,G.useContext)(uz),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=UE({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=cC(m,!!f)||i.isEntering||!1,g=gw({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,G.useState)(!1);Y(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,G.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&ew(m.current)},[v,m,i.trigger]);let b=(0,G.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=G.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=G.createElement(`div`,{...V(CS(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&G.createElement(BE,{onDismiss:e.close}),G.createElement(VN.Provider,{value:{...d,placement:f,ref:a}},b),G.createElement(BE,{onDismiss:e.close}));return c?G.createElement(WE,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):G.createElement(WE,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&G.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),G.createElement(`div`,{ref:o,style:{display:`contents`}},G.createElement(uz.Provider,{value:o},S)))}function PD(e,t,n){return mD({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:NA.createElement(NA.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,FD(e,t,n))}})}function FD(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,NA.isValidElement)(t)&&s.push((0,NA.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}function ID(e){return(0,NA.useMemo)(()=>e==null?null:new Set([e]),[e])}function LD(e){let t=CS(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}function RD(e){return JM()?e.altKey:e.ctrlKey}function zD(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}function BD(e){let t=lS();return Sz.set(e,t),t}function VD(e){return Sz.get(e)}function HD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,RA.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=UD(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},Cz)}}:void 0}}}function UD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function WD(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=Hw(),_=jS(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!RD(e)){(0,zA.flushSync)(()=>{t.setFocusedKey(n,i)});let a=zD(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!RD(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,QS(e));t.setFocusedKey(r),r!=null&&(QS(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,QS(e));t.setFocusedKey(r),r!=null&&(QS(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:QS(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=pE(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&wS(t)}break}}},y=(0,BA.useRef)({top:0,left:0});tC(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else!p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=zD(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&wS(e),XC()===`keyboard`&&iC(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,BA.useRef)(!1);tC(r,sN,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=WS(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=PM();vE(r.current),bE(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});GS(()=>{S.current&&C()},[t.collection,C]);let w=WS(()=>{t.collection.size>0&&(S.current=!1)});GS(()=>{w()},[t.focusedKey,w]),tC(r,oN,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,BA.useRef)(i),E=(0,BA.useRef)(!1);(0,BA.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&ew(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,BA.useRef)(t.focusedKey),O=(0,BA.useRef)(null);(0,BA.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=XC(),n=zD(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(nC(m.current,n),e!==`virtual`&&iC(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&ew(r.current),D.current=t.focusedKey,E.current=!1}),(0,BA.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),tC(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:ee}=HD({keyboardDelegate:n,selectionManager:t});u||(k=V(ee,k));let A;d||(A=t.focusedKey==null?0:-1);let j=BD(t.collection);return{collectionProps:V(k,{tabIndex:A,"data-collection":j})}}function GD(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=jS();t=lS(t);let p=e=>{if(e.pointerType===`keyboard`&&RD(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(QS(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,VA.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?vE(i.current):s?s():document.activeElement!==i.current&&i.current&&ew(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,VA.useRef)(null),w=S&&v,T=(0,VA.useRef)(!1),E=(0,VA.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||qD())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!KD())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||qD()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&KD()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=VD(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=V(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=fS(k[e],D[e]));let{pressProps:ee,isPressed:A}=NC(k),j=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:te}=mw({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),ne=e=>{C.current===`touch`&&T.current&&e.preventDefault()},re=d!==`none`&&n.isLink(r)?e=>{NS.isOpening||e.preventDefault()}:void 0;return{itemProps:V(m,v||b||o&&!c?ee:{},w?te:{},{onDoubleClick:j,onDragStartCapture:ne,onClick:re,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:A,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function KD(){return window.event?.key===`Enter`}function qD(){let e=window.event;return e?.key===` `||e?.code===`Space`}function JD(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=WT({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,HA.useMemo)(()=>a||new Tz({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=WD({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function YD(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=CS(e,{labelable:!0}),{listProps:c}=JD({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return xz.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:V(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function XD(e){return null}function ZD(e){return e.hasChildItems==null?!!(e.childItems||e.title&&UA.Children.count(e.children)>0):e.hasChildItems}function QD(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function $D(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function eO(e){return e[0].toUpperCase()+e.slice(1)}function tO(e,t,n){let r=(0,GA.useMemo)(()=>new Dz,[]),{children:i,items:a,collection:o}=e;return(0,GA.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function nO(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function rO(e){return iO(e,0)}function iO(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function aO(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...oO(e,t),t],i=[...oO(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function oO(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function sO(e){let t=Oz.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(nO(i,e)):i.type===`item`&&n++};return r(e),Oz.set(e,n),n}function cO(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=xz.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,ee=jS(),A=()=>{var t;if(!C&&(O!=null&&(t=O.props)!=null&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},j=`menuitem`;C||(S.selectionMode===`single`?j=`menuitemradio`:S.selectionMode===`multiple`&&(j=`menuitemcheckbox`));let te=dS(),ne=dS(),re=dS(),ie={id:r,"aria-disabled":T||void 0,role:j,"aria-label":e[`aria-label`],"aria-labelledby":te,"aria-describedby":[ne,re].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(ie[`aria-checked`]=E),o&&(ie[`aria-posinset`]=O?.index,ie[`aria-setsize`]=sO(t.collection));let ae=(0,KA.useRef)(!1),oe=e=>{d?.(e),ae.current=e},se=(0,KA.useRef)(null),ce=e=>{e.pointerType!==`keyboard`&&(se.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(ae.current||e.target.click()),l?.(e)},le=e=>{p?.(e),A(),LS(e,ee,O.props.href,O?.props.routerOptions);let t=se.current?.pointerType===`keyboard`?se.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),se.current=null},{itemProps:ue,isFocused:de}=GD({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:M,isPressed:fe}=NC({onPressStart:c,onPress:u,onPressUp:ce,onPressChange:oe,onPressEnd:f,isDisabled:T}),{hoverProps:pe}=dw({isDisabled:T,onHoverStart(e){!YC()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:me}=rw({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:se.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:se.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e)}},onKeyUp:v}),{focusProps:he}=tw({onBlur:x,onFocus:y,onFocusChange:b}),ge=CS(O?.props);delete ge.id;let _e=IS(O?.props);return{menuItemProps:{...ie,...V(ge,_e,C?{onFocus:ue.onFocus,"data-collection":ue[`data-collection`],"data-key":ue[`data-key`]}:ue,M,pe,me,he,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:le}),tabIndex:ue.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:ue.tabIndex},labelProps:{id:te},descriptionProps:{id:ne},keyboardShortcutProps:{id:re},isFocused:de,isFocusVisible:de&&S.isFocused&&YC()&&!w,isSelected:E,isPressed:fe,isDisabled:T}}function lO(e){let{heading:t,"aria-label":n}=e,r=lS();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function uO(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,qA.useRef)(void 0),o=(0,qA.useRef)(void 0),s=(0,qA.useRef)(0),c=(0,qA.useRef)(void 0),l=(0,qA.useRef)(void 0),u=(0,qA.useRef)(void 0),d=(0,qA.useRef)(2),[f,p]=(0,qA.useState)(!1);qS({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=kz,a.current=void 0},h=ZC(),g=WS(e=>{f&&e.preventDefault()});(0,qA.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,qA.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<Az)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+Mz,v=Math.atan2(h-o.current.bottom,g)-Mz,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,kz):Math.max(d.current-1,0),d.current>=kz?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},jz))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=kz}},[i,r,t,h,p,g,n])}function dO(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=lS(),u=lS(),{direction:d}=Hw(),f=(0,JA.useRef)(void 0),p=(0,JA.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=WS(e=>{p(),t.open(e)}),h=WS(()=>{p(),t.close()});Y(()=>()=>{p()},[p]);let g={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&wS(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&wS(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&wS(n.current));break}}}};return tC(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()}),uO({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},onPress:e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},onHoverChange:e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())},onKeyDown:e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&wS(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&wS(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation()}},isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function fO(e){let t=qE(e),[n,r]=(0,YA.useState)(null),[i,a]=(0,YA.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function pO(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,XA.useState)(r?.length),c=(0,XA.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,XA.useState)(null),d=(0,XA.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,XA.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,XA.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,XA.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}function mO(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function hO(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,ZA.useRef)(!1),[,s]=(0,ZA.useState)(!1),c=(0,ZA.useRef)(null),l=(0,ZA.useRef)(null),[,u]=(0,ZA.useState)(null),[d,f]=_C((0,ZA.useMemo)(()=>gO(e.selectedKeys),[e.selectedKeys]),(0,ZA.useMemo)(()=>gO(e.defaultSelectedKeys,new Pz),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,ZA.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,ZA.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,ZA.useRef)(i);return(0,ZA.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!mO(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function gO(e,t){return e?e===`all`?`all`:new Pz(e):t}function _O(e){let{onExpandedChange:t}=e,[n,r]=_C(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=hO(e),a=(0,QA.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=tO(e,(0,QA.useCallback)(e=>new Nz(e,{expandedKeys:n}),[n]),null);return(0,QA.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(vO(n,e))},setExpandedKeys:r,selectionManager:new Fz(o,i)}}function vO(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function yO({props:e,collection:t,menuRef:n}){[e,n]=vw(e,n,hz);let{filter:r,...i}=e,a=(0,K.useMemo)(()=>r?t.filter(r):t,[t,r]),o=_O({...e,collection:a,children:void 0}),s=(0,K.useContext)(Rz),{isVirtualized:c,CollectionRoot:l}=(0,K.useContext)(mz),{menuProps:u}=YD({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=gw({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=K.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=CS(e,{global:!0});return K.createElement(JT,null,K.createElement(`div`,{...V(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},K.createElement(hw,{values:[[Lz,o],[yz,{elementType:`div`}],[fz,{name:`MenuSection`,render:bO}],[Bz,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Uz,null],[hz,null],[gz,null],[zz,o.selectionManager],[Rz,s??fO({})]]},K.createElement(l,{collection:o.collection,persistedKeys:ID(o.selectionManager.focusedKey),scrollRef:n})),f))}function bO(e,t,n,r=`react-aria-MenuSection`){let i=(0,K.useContext)(Lz),{CollectionBranch:a}=(0,K.useContext)(mz),[o,s]=yw(),{headingProps:c,groupProps:l}=lO({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=gw({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,K.useContext)(zz),f=hO(e),p=e.selectionMode==null?d:new Hz(d,f),m=CS(e,{global:!0});return delete m.id,K.createElement(`section`,{...V(m,u,l),ref:t},K.createElement(hw,{values:[[_z,{...c,ref:o}],[zz,p]]},K.createElement(a,{collection:i.collection,parent:n})))}function xO(e,t){let{role:n=`dialog`}=e,r=dS();r=e[`aria-label`]?void 0:r;let i=(0,$A.useRef)(!1);return(0,$A.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){ew(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),ew(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),GE(),{dialogProps:{...CS(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}function SO(e){let t=fO(e),n=(0,ej.useRef)(null),{triggerProps:r,overlayProps:i}=CE({type:`dialog`},t,n),[a,o]=(0,ej.useState)(null);return qS({ref:n,onResize:(0,ej.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=lS(),i[`aria-labelledby`]=r.id,ej.createElement(hw,{values:[[Gz,t],[Rz,t],[Wz,i],[lz,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},ej.createElement(IN,{...r,ref:n,isPressed:t.isOpen},e.children))}function CO({children:e,...t},n){let r={props:t,ref:n};if(xB(r))return sj.createElement(`a`,{ref:r.ref,...r.props},e);if(SB(r))return sj.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}function wO(e){FB("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=(0,uj.useRef)(),n=(0,uj.useRef)(),r=(0,uj.useRef)(new Map),{width:i=1}=nD({ref:t}),[a,o]=(0,uj.useState)(e),[s,c]=(0,uj.useState)([]),l=(0,uj.useRef)(e),u=(0,uj.useCallback)(({menuName:e,actions:t})=>{let i=s.some(({active:e})=>e),[a,o]=(0,uj.useState)(!1);return uj.createElement(uj.Fragment,null,uj.createElement(Kz,{ariaLabel:`Additional tabs`,visible:a,onVisibleChange:o,placement:`bottom`,popover:uj.createElement(uB,{links:s.map(({title:e,id:n,color:r,active:i})=>({id:n,title:e,color:r,active:i,onClick:e=>{e.preventDefault(),t.onSelect(n)}}))})},uj.createElement(LB,{id:`addons-menu-button`,ref:n,active:i,preActive:a,style:{visibility:s.length?`visible`:`hidden`},"aria-hidden":!s.length,className:`tabbutton`,type:`button`,role:`tab`},e,uj.createElement(IB,{className:`addon-collapsible-icon`,isActive:i||a}))),s.map(({title:e,id:t,color:n},i)=>{let a=`index-${i}`;return uj.createElement(TB,{id:`tabbutton-${Um(t)??a}`,style:{visibility:`hidden`},"aria-hidden":!0,tabIndex:-1,ref:e=>{r.current.set(t,e)},className:`tabbutton`,type:`button`,key:t,textColor:n,role:`tab`},e)}))},[s]),d=(0,uj.useCallback)(()=>{if(!t.current||!n.current)return;let{x:i,width:u}=t.current.getBoundingClientRect(),{width:d}=n.current.getBoundingClientRect(),f=s.length?i+u-d:i+u,p=[],m=0,h=e.filter(e=>{let{id:t}=e,n=r.current.get(t),{width:a=0}=n?.getBoundingClientRect()||{},o=i+m+a>f;return(!o||!n)&&p.push(e),m+=a,o});(p.length!==a.length||l.current!==e)&&(o(p),c(h),l.current=e)},[s.length,e,a]);return(0,uj.useLayoutEffect)(d,[d,i]),{tabRefs:r,addonsRef:n,tabBarRef:t,visibleList:a,invisibleList:s,AddonTab:u}}function TO(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,fj.useState)(!1);Y(()=>{var e;o(!!(t.current&&(e=t.current.parentElement)!=null&&e.closest(`[role="toolbar"]`)))});let{direction:s}=Hw(),c=s===`rtl`&&i===`horizontal`,l=mE(t),u=e=>{if(e.currentTarget.contains(e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),d.current=document.activeElement,e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,fj.useRef)(null),f=e=>{!e.currentTarget.contains(e.relatedTarget)&&!d.current&&(d.current=e.target)},p=e=>{var n;if(d.current&&!e.currentTarget.contains(e.relatedTarget)&&(n=t.current)!=null&&n.contains(e.target)){var r;(r=d.current)==null||r.focus(),d.current=null}};return{toolbarProps:{...CS(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function EO(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${YB.get(e)}-${n}-${t}`):``}function DO(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=GD({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a,linkBehavior:`selection`}),f=EO(t,r,`tab`),p=EO(t,r,`tabpanel`),{tabIndex:m}=u,h=t.collection.getItem(r),g=CS(h?.props,{labelable:!0});delete g.id;let _=IS(h?.props),{focusableProps:v}=aw({isDisabled:l},n);return{tabProps:V(g,v,_,u,{id:f,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?p:void 0,tabIndex:l?void 0:m,role:`tab`}),isSelected:c,isDisabled:l,isPressed:d}}function OO(e,t,n){let r=_E(n)?void 0:0,i=EO(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:V(HS({...e,id:i,"aria-labelledby":EO(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}function kO(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=Hw(),{collectionProps:l}=WD({ref:n,selectionManager:o,keyboardDelegate:(0,pj.useMemo)(()=>new XB(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=lS();return YB.set(t,u),{tabListProps:{...V(l,HS({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function AO(e){let{filter:t,layoutDelegate:n}=e,r=hO(e),i=(0,gj.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=tO(e,(0,gj.useCallback)(e=>t?new cV(t(e)):new cV(e),[t]),(0,gj.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,gj.useMemo)(()=>new Fz(a,r,{layoutDelegate:n}),[a,r,n]);return jO(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function jO(e,t){let n=(0,gj.useRef)(null);(0,gj.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getItem(t.focusedKey),i=[...n.current.getKeys()].map(e=>{let t=n.current.getItem(e);return t?.type===`item`?t:null}).filter(e=>e!==null),a=[...e.getKeys()].map(t=>{let n=e.getItem(t);return n?.type===`item`?n:null}).filter(e=>e!==null),o=(i?.length??0)-(a?.length??0),s=Math.min(o>1?Math.max((r?.index??0)-o+1,0):r?.index??0,(a?.length??0)-1),c=null,l=!1;for(;s>=0;){if(!t.isDisabled(a[s].key)){c=a[s];break}s<a.length-1&&!l?s++:(l=!0,s>(r?.index??0)&&(s=r?.index??0),s--)}t.setFocusedKey(c?c.key:null)}n.current=e},[e,t])}function MO(e){let[t,n]=_C(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,_j.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=AO({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function NO(e){let t=MO({...e,onSelectionChange:e.onSelectionChange?t=>{var n;t!=null&&((n=e.onSelectionChange)==null||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??PO(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,vj.useRef)(i);return(0,vj.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=PO(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function PO(e,t){let n=null;if(e){var r,i,a,o;for(n=e.getFirstKey();n!=null&&(t.has(n)||(i=e.getItem(n))!=null&&(r=i.props)!=null&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||(o=e.getItem(n))!=null&&(a=o.props)!=null&&a.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}function FO({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=NO({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=gE({within:!0}),c=(0,J.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=gw({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=CS(e,{global:!0});return J.createElement(`div`,{...V(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},J.createElement(hw,{values:[[mV,e],[hV,i]]},l.children))}function IO({props:e,forwardedRef:t}){let n=(0,J.useContext)(hV),{CollectionRoot:r}=(0,J.useContext)(mz),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=_w(mV),o=US(t),{tabListProps:s}=kO({...e,orientation:i,keyboardActivation:a},n,o),c=gw({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=CS(e,{global:!0});return delete l.id,J.createElement(`div`,{...V(l,c,s),ref:o,"data-orientation":i||void 0},J.createElement(r,{collection:n.collection,persistedKeys:ID(n.selectionManager.focusedKey)}))}var LO,RO,zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,U,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,W,kA,AA,jA,MA,G,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,K,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,q,pj,mj,hj,gj,_j,vj,J,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,Y,wM,TM,EM,DM,OM,kM,AM,jM,X,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,qM,JM,YM,XM,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,Z,rP,iP,aP,oP,Q,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,$,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV;function FV(){return(FV=e((()=>{A(),ee(),te(),_e(),S(),LO=o(),RO=t(o(),1),ne(),zO=t(o(),1),BO=t(o(),1),VO=t(o(),1),o(),HO=t(o(),1),Ke(),UO=t(o(),1),WO=t(o(),1),GO=t(o(),1),o(),KO=D(),Bx(),qO=t(o(),1),JO=t(o(),1),YO=t(o(),1),XO=t(o(),1),ZO=o(),QO=o(),$O=t(o(),1),ek=t(o(),1),o(),tk=o(),nk=o(),rk=t(o(),1),o(),ik=o(),ak=o(),o(),ok=o(),sk=o(),o(),o(),o(),o(),ck=o(),lk=ve(),uk=o(),dk=t(o(),1),fk=o(),pk=t(o(),1),ve(),mk=o(),hk=o(),gk=o(),_k=t(o(),1),vk=t(o(),1),yk=t(o(),1),bk=o(),xk=o(),Sk=o(),o(),o(),Ck=o(),wk=t(o(),1),Tk=t(o(),1),Ek=o(),Dk=o(),Ok=o(),kk=o(),Ak=t(o(),1),o(),jk=o(),o(),o(),Mk=o(),o(),Nk=t(o(),1),Pk=o(),o(),Fk=o(),Ik=o(),Lk=o(),Rk=t(o(),1),zk=t(o(),1),Bk=t(ve(),1),Vk=t(o(),1),Hk=t(o(),1),Uk=o(),Wk=t(o(),1),Gk=t(ve(),1),Kk=o(),qk=o(),Jk=o(),Yk=t(o(),1),Xk=t(o(),1),Zk=t(o(),1),Qk=t(o(),1),$k=t(o(),1),eA=t(o(),1),tA=t(o(),1),nA=o(),o(),rA=o(),iA=t(o(),1),aA=o(),oA=t(o(),1),sA=t(o(),1),o(),o(),cA=t(o(),1),lA=o(),uA=t(o(),1),dA=t(o(),1),U=t(o(),1),fA=t(o(),1),pA=t(o(),1),mA=t(o(),1),hA=o(),gA=t(o(),1),_A=t(o(),1),vA=t(o(),1),yA=t(o(),1),bA=t(o(),1),xA=o(),SA=t(o(),1),CA=t(o(),1),wA=t(o(),1),TA=t(o(),1),EA=o(),DA=t(o(),1),OA=ve(),W=t(o(),1),kA=be(),AA=t(o(),1),jA=t(o(),1),o(),MA=t(o(),1),G=t(o(),1),NA=t(o(),1),PA=o(),FA=t(o(),1),IA=t(o(),1),LA=t(o(),1),RA=o(),zA=ve(),BA=o(),VA=o(),HA=o(),UA=t(o(),1),o(),WA=t(o(),1),GA=o(),KA=o(),qA=o(),JA=o(),YA=o(),XA=o(),ZA=o(),QA=o(),K=t(o(),1),$A=o(),ej=t(o(),1),tj=t(o(),1),nj=t(o(),1),o(),rj=t(o(),1),ij=t(o(),1),aj=t(o(),1),Km(),oj=t(o(),1),sj=t(o(),1),cj=t(o(),1),lj=t(o(),1),uj=t(o(),1),o(),o(),dj=t(o(),1),fj=o(),q=t(o(),1),pj=o(),mj=t(o(),1),hj=t(o(),1),gj=o(),_j=o(),vj=o(),o(),J=t(o(),1),o(),o(),o(),o(),o(),yj=t(o(),1),o(),o(),i(),bj=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},xj=({theme:e})=>({margin:`20px 0 8px`,padding:0,cursor:`text`,position:`relative`,color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}}),Sj=({theme:e})=>({lineHeight:1,margin:`0 2px`,padding:`3px 5px`,whiteSpace:`nowrap`,borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base===`light`?`1px solid hsl(0 0 0 / 0.05)`:`1px solid hsl(0 0 100 / 0.05)`,color:e.color.defaultText,backgroundColor:e.base===`light`?`hsl(0 0 0 / 0.01)`:`hsl(0 0 100 / 0.02)`}),Cj=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`}),wj={margin:`16px 0`},Tj=M.div(Cj),Ej=({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return zO.createElement(`a`,{href:n,target:r,...t})},Dj=M(Ej)(({theme:e})=>({...Cj({theme:e}),fontSize:`inherit`,lineHeight:`24px`,color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"&.absent":{color:`#cc0000`},"&.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}})),Oj=M.blockquote(({theme:e})=>({...Cj({theme:e}),...wj,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),kj=[],Aj=null,jj=(0,VO.lazy)(async()=>{let{SyntaxHighlighter:e}=await a(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-T5IQBZDB-B5rzfkHU.js`);return{SyntaxHighlighter:e}},__vite__mapDeps([5,1,2,3,6,7,8,9,10,0,4,11,12]),import.meta.url);return kj.length>0&&(kj.forEach(t=>{e.registerLanguage(...t)}),kj=[]),Aj===null&&(Aj=e),{default:t=>VO.createElement(e,{...t})}}),Mj=(0,VO.lazy)(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([a(()=>import(`./syntaxhighlighter-T5IQBZDB-B5rzfkHU.js`),__vite__mapDeps([5,1,2,3,6,7,8,9,10,0,4,11,12]),import.meta.url),a(()=>import(`./formatter-L2YTDE3Q-x0raBH34.js`),__vite__mapDeps([13,1,3,4]),import.meta.url)]);return kj.length>0&&(kj.forEach(t=>{e.registerLanguage(...t)}),kj=[]),Aj===null&&(Aj=e),{default:n=>VO.createElement(e,{...n,formatter:t})}}),Nj=e=>VO.createElement(VO.Suspense,{fallback:VO.createElement(`div`,null)},e.format===!1?VO.createElement(jj,{...e}):VO.createElement(Mj,{...e})),Nj.registerLanguage=(...e)=>{if(Aj!==null){Aj.registerLanguage(...e);return}kj.push(e)},Pj=e=>typeof e==`string`,Fj=/[\n\r]/g,Ij=M.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`,...Sj({theme:e})})),Lj=M(Nj)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:`19px`,margin:`25px 0 40px`,borderRadius:e.appBorderRadius,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,"pre.prismjs":{padding:20,background:`inherit`}})),Rj=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=BO.Children.toArray(t);return i.filter(Pj).some(e=>e.match(Fj))?BO.createElement(Lj,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):BO.createElement(Ij,{...n,className:e},i)},zj=M.dl(({theme:e})=>({...Cj({theme:e}),...wj,padding:0,"& dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,padding:0,margin:`16px 0 4px`},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:`0 0 16px`,padding:`0 15px`},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),Bj=M.div(Cj),Vj=M.h1(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Hj=M.h2(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Uj=M.h3(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.m1}px`})),Wj=M.h4(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.s3}px`})),Gj=M.h5(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.s2}px`})),Kj=M.h6(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),qj=M.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),Jj=M.img({maxWidth:`100%`}),Yj=M.li(({theme:e})=>({...Cj({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":Sj({theme:e})})),Xj={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Zj=M.ol(({theme:e})=>({...Cj({theme:e}),...wj,...Xj,listStyle:`decimal`})),Qj=M.p(({theme:e})=>({...Cj({theme:e}),...wj,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":Sj({theme:e})})),$j=M.pre(({theme:e})=>({...Cj({theme:e}),...wj,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,lineHeight:`18px`,padding:`11px 1rem`,whiteSpace:`pre-wrap`,color:`inherit`,borderRadius:3,margin:`1rem 0`,"&:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`,code:{color:`inherit`,fontSize:`inherit`}},"& code":{whiteSpace:`pre`},"& code, & tt":{border:`none`}})),eM=M.span(({theme:e})=>({...Cj({theme:e}),"&.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"&.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"&.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"&.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"&.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}}})),tM=M.title(Sj),nM=M.table(({theme:e})=>({...Cj({theme:e}),...wj,fontSize:e.typography.size.s2,lineHeight:`24px`,padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base===`dark`?e.color.darker:e.color.lighter},"& tr th":{fontWeight:`bold`,color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:`6px 13px`},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:`6px 13px`},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),rM={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},iM=M.ul(({theme:e})=>({...Cj({theme:e}),...wj,...rM,listStyle:`disc`})),aM={h1:e=>RO.createElement(Vj,{...bj(e,`h1`)}),h2:e=>RO.createElement(Hj,{...bj(e,`h2`)}),h3:e=>RO.createElement(Uj,{...bj(e,`h3`)}),h4:e=>RO.createElement(Wj,{...bj(e,`h4`)}),h5:e=>RO.createElement(Gj,{...bj(e,`h5`)}),h6:e=>RO.createElement(Kj,{...bj(e,`h6`)}),pre:e=>RO.createElement($j,{...bj(e,`pre`)}),a:e=>RO.createElement(Dj,{...bj(e,`a`)}),hr:e=>RO.createElement(qj,{...bj(e,`hr`)}),dl:e=>RO.createElement(zj,{...bj(e,`dl`)}),blockquote:e=>RO.createElement(Oj,{...bj(e,`blockquote`)}),table:e=>RO.createElement(nM,{...bj(e,`table`)}),img:e=>RO.createElement(Jj,{...bj(e,`img`)}),div:e=>RO.createElement(Bj,{...bj(e,`div`)}),span:e=>RO.createElement(eM,{...bj(e,`span`)}),li:e=>RO.createElement(Yj,{...bj(e,`li`)}),ul:e=>RO.createElement(iM,{...bj(e,`ul`)}),ol:e=>RO.createElement(Zj,{...bj(e,`ol`)}),p:e=>RO.createElement(Qj,{...bj(e,`p`)}),code:e=>RO.createElement(Rj,{...bj(e,`code`)}),tt:e=>RO.createElement(tM,{...bj(e,`tt`)}),resetwrapper:e=>RO.createElement(Tj,{...bj(e,`resetwrapper`)})},M.div(({theme:e,compact:t})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:`12px`,minWidth:20,borderRadius:20,padding:t?`4px 7px`:`4px 10px`}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:`currentColor`}}},({theme:e,status:t})=>{switch(t){case`critical`:return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case`negative`:return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case`warning`:return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case`neutral`:return{color:e.fgColor.muted,background:e.base===`dark`?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${me(.8,e.textMutedColor)}`};case`positive`:return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case`active`:return{color:e.base===`light`?he(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${me(.9,e.color.secondary)}`};default:return{}}}),{deprecate:oM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,sM=0,cM=e=>e.button===sM&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,lM=(e,t)=>{cM(e)&&(e.preventDefault(),t(e))},uM=M.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:`0.7em`,width:`0.7em`,marginRight:0,marginLeft:`0.25em`,bottom:`auto`,verticalAlign:`inherit`}}:{},({containsIcon:e})=>e?{svg:{height:`1em`,width:`1em`,verticalAlign:`middle`,position:`relative`,bottom:0,marginRight:0}}:{}),dM=M.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:he(.07,e.color.secondary),"svg path:not([fill])":{fill:he(.07,e.color.secondary)}},"&:active":{color:he(.1,e.color.secondary),"svg path:not([fill])":{fill:he(.1,e.color.secondary)}},svg:{display:`inline-block`,height:`1em`,width:`1em`,verticalAlign:`text-top`,position:`relative`,bottom:`-0.125em`,marginRight:`0.4em`,"& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[2]}}}:{}},({nochrome:e})=>e?{color:`inherit`,"&:hover, &:active":{color:`inherit`,textDecoration:`underline`}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:`none`,padding:0,fontSize:`inherit`,lineHeight:`inherit`,"&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:`1`}}:{}),fM=(0,HO.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,isButton:o=void 0,href:s,...c},l)=>(o!==void 0&&oM("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),HO.createElement(dM,{as:s?`a`:`button`,href:s,...c,ref:l,isButton:!s||o===!0,onClick:n&&e?e=>lM(e,n):n,className:a},HO.createElement(uM,{withArrow:r,containsIcon:i},t,r&&HO.createElement(Re,null))))),fM.displayName=`Link`,M.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:`1.6`,h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`},"pre pre code, pre.prismjs code":{color:`inherit`,fontSize:`inherit`},"pre code":{margin:0,padding:0,whiteSpace:`pre`,border:`none`,background:`transparent`},"pre code, pre tt":{backgroundColor:`transparent`,border:`none`},"body > *:first-of-type":{marginTop:`0 !important`},"body > *:last-child":{marginBottom:`0 !important`},a:{color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}},"a.absent":{color:`#cc0000`},"a.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"h1, h2, h3, h4, h5, h6":{margin:`20px 0 10px`,padding:0,cursor:`text`,position:`relative`,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:`15px 0`},hr:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:`inline-block`},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,margin:`0 0 15px`,padding:`0 15px`,"&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:`white`,margin:0,padding:0,"& th":{fontWeight:`bold`,border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:`100%`},"span.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"span.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"span.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"span.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"span.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}},"code, tt":{margin:`0 2px`,padding:`0 5px`,whiteSpace:`nowrap`,border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base===`dark`?e.color.darkest:e.color.dark}})),{global:pM}=__STORYBOOK_MODULE_GLOBAL__,{document:mM,window:hM}=pM,{deprecate:gM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,_M=Symbol.for(`react.lazy`),vM=GO.use,yM=Yx(`Slot`),bM=Symbol(`radix.slottable`),Zx(`Slottable`),xM=M.div(({theme:e})=>({padding:`2px 6px`,lineHeight:`16px`,fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:`0 0 5px 0 rgba(0, 0, 0, 0.3)`,borderRadius:4,whiteSpace:`nowrap`,pointerEvents:`none`,zIndex:-1,background:e.base===`light`?`rgba(60, 60, 60, 0.9)`:`rgba(0, 0, 0, 0.95)`})),SM=({note:e,...t})=>JO.createElement(xM,{...t},e),{deprecate:CM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Y=typeof document<`u`?XO.useLayoutEffect:()=>{},wM={prefix:String(Math.round(Math.random()*1e10)),current:0},TM=$O.createContext(wM),EM=$O.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,DM=new WeakMap,OM=typeof $O.useId==`function`?iS:rS,kM=!!(typeof window<`u`&&window.document&&window.document.createElement),AM=new Map,typeof FinalizationRegistry<`u`&&(jM=new FinalizationRegistry(e=>{AM.delete(e)})),X=e=>e?.ownerDocument??document,MM=e=>e&&`window`in e&&e.window===e?e:X(e).defaultView||window,NM=!1,PM=(e=document)=>{var t;if(!hS())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n},FM=class{get currentNode(){return this._currentNode}set currentNode(e){if(!gS(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return gS(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}},IM=bS,LM=new Set([`id`]),RM=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),zM=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),BM=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),VM=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`.split(`.`)),HM=/^(data-.*)$/,UM=null,WM=AS(function(){return kS(/^Mac/i)}),GM=AS(function(){return kS(/^iPhone/i)}),KM=AS(function(){return kS(/^iPad/i)||WM()&&navigator.maxTouchPoints>1}),qM=AS(function(){return GM()||KM()}),JM=AS(function(){return WM()||qM()}),YM=AS(function(){return OS(/AppleWebKit/i)&&!XM()}),XM=AS(function(){return OS(/Chrome/i)}),ZM=AS(function(){return OS(/Android/i)}),QM=AS(function(){return OS(/Firefox/i)}),$M=(0,ek.createContext)({isNative:!0,open:FS,useHref:e=>e}),NS.isOpening=!1,eN=new Map,tN=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,RS):RS()),nN=rk.useInsertionEffect??Y,rN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),typeof document<`u`&&window.visualViewport,iN=0,aN=new Map,oN=`react-aria-clear-focus`,sN=`react-aria-focus`,cN=typeof Element<`u`&&`checkVisibility`in Element.prototype,lN=[`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`],uN=lN.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,lN.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),dN=lN.join(`:not([hidden]):not([tabindex="-1"]),`),fN=typeof document<`u`?dk.useInsertionEffect??dk.useLayoutEffect:()=>{},pN=!1,mN=`default`,hN=``,gN=new WeakMap,_N=pk.createContext({register:()=>{}}),_N.displayName=`PressResponderContext`,vN=new WeakMap,yN=class{continuePropagation(){jC(this,vN,!1)}get shouldStopPropagation(){return DC(this,vN)}constructor(e,t,n,r){kC(this,vN,{writable:!0,value:void 0}),jC(this,vN,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},bN=Symbol(`linkClicked`),xN=`react-aria-pressable-style`,SN=`data-react-aria-pressable`,CN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),wN=null,TN=new Set,EN=new Map,DN=!1,ON=!1,kN={Tab:!0,Escape:!0},AN=(e,t)=>{let n=MM(e),r=X(e);t&&r.removeEventListener(`DOMContentLoaded`,t),EN.has(n)&&(n.HTMLElement.prototype.focus=EN.get(n).focus,r.removeEventListener(`keydown`,HC,!0),r.removeEventListener(`keyup`,HC,!0),r.removeEventListener(`click`,WC,!0),n.removeEventListener(`focus`,GC,!0),n.removeEventListener(`blur`,KC,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,UC,!0),r.removeEventListener(`pointermove`,UC,!0),r.removeEventListener(`pointerup`,UC,!0)),EN.delete(n))},typeof document<`u`&&JC(),jN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),MN=_k.createContext(null),NN=_k.forwardRef(function(e,t){let{children:n,...r}=e,i=US(t),a={...r,ref:i};return _k.createElement(MN.Provider,{value:a},n)}),PN=(0,_k.forwardRef)(({children:e,...t},n)=>{n=US(n);let{focusableProps:r}=aw(t,n),i=_k.Children.only(e);(0,_k.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return _k.cloneElement(i,{...V(r,i.props),ref:xS(a,n)})}),FN=vk.forwardRef(({children:e,...t},n)=>{n=US(n);let{pressProps:r}=NC({...t,ref:n}),{focusableProps:i}=aw(t,n),a=vk.Children.only(e);(0,vk.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return vk.cloneElement(a,{...V(r,i,a.props),ref:xS(o,n)})}),IN=yk.forwardRef(({children:e,...t},n)=>{let r=(0,yk.useRef)(!1),i=(0,yk.useContext)(_N);n=US(n||i?.ref);let a=V(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return JS(i,n),(0,yk.useEffect)(()=>{r.current||=!0},[]),yk.createElement(_N.Provider,{value:a},e)}),LN=!1,RN=0,zN=500,BN=Symbol(`default`),VN=(0,Tk.createContext)({placement:`bottom`}),(0,Tk.forwardRef)(function(e,t){[e,t]=vw(e,t,VN);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=gw({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=CS(e);return Tk.createElement(`div`,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),HN={top:`top`,bottom:`top`,left:`left`,right:`left`},UN={top:`bottom`,bottom:`top`,left:`right`,right:`left`},WN={top:`left`,left:`top`},GN={top:`height`,left:`width`},KN={width:`totalWidth`,height:`totalHeight`},qN={},JN=typeof document<`u`?window.visualViewport:null,YN=new WeakMap,XN=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),ZN=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),QN=Symbol.for(`react-aria.i18n.locale`),$N=zw(),eP=new Set,tP=Ak.createContext(null),nP=function(e,t){return nP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nP(e,t)},Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z.apply(this,arguments)},rP=function(){return JSON.stringify(arguments)},iP=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e})(),aP={create:function(){return new iP}},oP={variadic:Qw,monadic:$w},(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`})(Q||={}),(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`})(sP||={}),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(cP||={}),lP=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,uP=/(?:[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,dP=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,fP=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pP=/^(@+)?(\+|#+)?[rs]?$/g,mP=/(\*)(0+)|(#+)(0+)|(0+)/g,hP=/^(0+)$/,gP={"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`]},_P=RegExp(`^${lP.source}*`),vP=RegExp(`${lP.source}*\$`),yP=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),bP=!!String.fromCodePoint,xP=!!Object.fromEntries,SP=!!String.prototype.codePointAt,CP=!!String.prototype.trimStart,wP=!!String.prototype.trimEnd,TP=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},EP=!0;try{DP=xT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),EP=DP.exec(`a`)?.[0]===`a`}catch{EP=!1}OP=yP?(function(e,t,n){return e.startsWith(t,n)}):(function(e,t,n){return e.slice(n,n+t.length)===t}),kP=bP?String.fromCodePoint:(function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t}),AP=xP?Object.fromEntries:(function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t}),jP=SP?(function(e,t){return e.codePointAt(t)}):(function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}}),MP=CP?(function(e){return e.trimStart()}):(function(e){return e.replace(_P,``)}),NP=wP?(function(e){return e.trimEnd()}):(function(e){return e.replace(vP,``)}),EP?(FP=xT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),PP=function(e,t){return FP.lastIndex=t,FP.exec(e)[1]??``}):PP=function(e,t){for(var n=[];;){var r=jP(e,t);if(r===void 0||TT(r)||ET(r))break;n.push(r),t+=r>=65536?2:1}return kP.apply(void 0,n)},IP=(function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(i===125&&e>0)break;if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:sP.pound,location:H(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Q.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ST(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:sP.literal,value:`<${r}/>`,location:H(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!ST(this.char()))return this.error(Q.INVALID_TAG,H(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:sP.tag,value:r,children:a,location:H(n,this.clonePosition())},err:null}:this.error(Q.INVALID_TAG,H(o,this.clonePosition()))):this.error(Q.UNMATCHED_CLOSING_TAG,H(s,this.clonePosition()))}return this.error(Q.UNCLOSED_TAG,H(n,this.clonePosition()))}return this.error(Q.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&wT(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=H(n,this.clonePosition());return{val:{type:sP.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!CT(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){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(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return kP.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),kP(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Q.EMPTY_ARGUMENT,H(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:sP.argument,value:r,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=PP(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:H(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(Q.EXPECT_ARGUMENT_TYPE,H(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=NP(l.val);if(u.length===0)return this.error(Q.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:H(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=H(r,this.clonePosition());if(s&&OP(s?.style,`::`,0)){var p=MP(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:sP.number,value:n,location:f,style:l.val},err:null}}if(p.length===0)return this.error(Q.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=yT(p,this.locale));var u={type:cP.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?dT(m):{}};return{val:{type:a===`date`?sP.date:sP.time,value:n,location:f,style:u},err:null}}return{val:{type:a===`number`?sP.number:a===`date`?sP.date:sP.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(Q.EXPECT_SELECT_ARGUMENT_OPTIONS,H(h,Z({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=H(r,this.clonePosition());return a===`select`?{val:{type:sP.select,value:n,options:AP(v.val),location:y},err:null}:{val:{type:sP.plural,value:n,options:AP(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(Q.INVALID_ARGUMENT_TYPE,H(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(Q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=fT(e)}catch{return this.error(Q.INVALID_NUMBER_SKELETON,t)}return{val:{type:cP.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?vT(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=H(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?Q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:H(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Q.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=H(r,this.clonePosition());return i?(a*=n,TP(a)?{val:a,err:null}:this.error(t,s)):this.error(e,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 e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=jP(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(OP(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&TT(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e})(),(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(LP||={}),RP=(function(e){Uw(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t})(Error),zP=(function(e){Uw(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,LP.INVALID_VALUE,i)||this}return t})(RP),BP=(function(e){Uw(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,LP.INVALID_VALUE,r)||this}return t})(RP),VP=(function(e){Uw(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,LP.MISSING_VALUE,n)||this}return t})(RP),(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(HP||={}),(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==HP.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return jT(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=Ww(o,[`formatters`]);this.ast=e.__parse(t,Z(Z({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=NT(e.formats,r),this.formatters=i&&i.formatters||FT(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(!(typeof Intl.Locale>`u`)){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=OT,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})(),UP=Symbol.for(`react-aria.i18n.locale`),WP=Symbol.for(`react-aria.i18n.strings`),KP=class e{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=IT(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[UP];if(GP===void 0){let t=window[WP];if(!t)return null;GP={};for(let r in t)GP[r]=new e({[n]:t[r]},n)}let r=GP?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}},qP=new Map,JP=new Map,YP=class{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=qP.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),qP.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=JP.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),JP.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}constructor(e,t){this.locale=e,this.strings=t}},XP=new WeakMap,ZP=1080,QP=24*ZP,$P=29,eF=12*ZP+793,$P*QP+eF,tF=new Map,nF=!1;try{nF=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}rF=!1;try{rF=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}if(iF={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},aF=class{format(e){let t=``;if(t=!nF&&this.options.signDisplay!=null?HT(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!rF){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=iF[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u2013 ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!nF&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!rF&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=VT(e,t),this.options=t}},oF=new Map,sF=typeof document<`u`?window.visualViewport:null,cF=Nk.createContext(null),lF=`react-aria-focus-scope-restore`,$=null,uF=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new dF({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&tE(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new dF({scopeRef:null}),this.fastMap.set(null,this.root)}},dF=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},fF=new uF,pF=[],mF=typeof document<`u`&&window.visualViewport,hF=0,_F=(0,Rk.createContext)({}),vF=zk.createContext(null),yF={},yF={dismiss:`تجاهل`},bF={},bF={dismiss:`Отхвърляне`},xF={},xF={dismiss:`Odstranit`},SF={},SF={dismiss:`Luk`},CF={},CF={dismiss:`Schließen`},wF={},wF={dismiss:`Απόρριψη`},TF={},TF={dismiss:`Dismiss`},EF={},EF={dismiss:`Descartar`},DF={},DF={dismiss:`Lõpeta`},OF={},OF={dismiss:`Hylkää`},kF={},kF={dismiss:`Rejeter`},AF={},AF={dismiss:`התעלם`},jF={},jF={dismiss:`Odbaci`},MF={},MF={dismiss:`Elutasítás`},NF={},NF={dismiss:`Ignora`},PF={},PF={dismiss:`閉じる`},FF={},FF={dismiss:`무시`},IF={},IF={dismiss:`Atmesti`},LF={},LF={dismiss:`Nerādīt`},RF={},RF={dismiss:`Lukk`},zF={},zF={dismiss:`Negeren`},BF={},BF={dismiss:`Zignoruj`},VF={},VF={dismiss:`Descartar`},HF={},HF={dismiss:`Dispensar`},UF={},UF={dismiss:`Revocare`},WF={},WF={dismiss:`Пропустить`},GF={},GF={dismiss:`Zrušiť`},KF={},KF={dismiss:`Opusti`},qF={},qF={dismiss:`Odbaci`},JF={},JF={dismiss:`Avvisa`},YF={},YF={dismiss:`Kapat`},XF={},XF={dismiss:`Скасувати`},ZF={},ZF={dismiss:`取消`},QF={},QF={dismiss:`關閉`},$F={},$F={"ar-AE":yF,"bg-BG":bF,"cs-CZ":xF,"da-DK":SF,"de-DE":CF,"el-GR":wF,"en-US":TF,"es-ES":EF,"et-EE":DF,"fi-FI":OF,"fr-FR":kF,"he-IL":AF,"hr-HR":jF,"hu-HU":MF,"it-IT":NF,"ja-JP":PF,"ko-KR":FF,"lt-LT":IF,"lv-LV":LF,"nb-NO":RF,"nl-NL":zF,"pl-PL":BF,"pt-BR":VF,"pt-PT":HF,"ro-RO":UF,"ru-RU":WF,"sk-SK":GF,"sl-SI":KF,"sr-SP":qF,"sv-SE":JF,"tr-TR":YF,"uk-UA":XF,"zh-CN":ZF,"zh-TW":QF},eI={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`},tI=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,nI=new WeakMap,rI=[],iI=Wk.createContext(null),aI=1500,oI=500,sI={},cI=0,lI=!1,uI=null,dI=null,fI=(0,Yk.createContext)(null),pI=(0,Yk.createContext)(null),mI=(0,Yk.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=vw(t,n,pI);let r=(0,Yk.useContext)(fI),i=JE(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=lC(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:Yk.createElement(IE,{portalContainer:e},Yk.createElement(XE,{...t,tooltipRef:n,isExiting:o}))}),hI=C(ge(),1),gI=(0,hI.default)(1e3)(e=>e===`left-end`?`left bottom`:e===`right-end`?`right bottom`:e===`left-start`?`left top`:e===`right-start`?`right top`:e.replace(`-`,` `)),M.div({width:500,height:500,paddingTop:100,overflowY:`scroll`,background:`#eee`,position:`relative`}),_I=(0,Xk.forwardRef)((e,t)=>Xk.createElement(`button`,{...e,ref:t,style:{width:120,height:50,margin:10}})),_I.displayName=`Trigger`,vI=({triggerOnFocusOnly:e=!1,placement:t=`top`,offset:n=8,tooltip:r,children:i,defaultVisible:a,startOpen:o,delayShow:s=400,delayHide:c=200,visible:l,onVisibleChange:u,...d})=>{let f=gI(t),p=YO.Children.only(i);o!==void 0&&CM("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,h]=(0,YO.useState)(a??o??!1),g=(0,YO.useCallback)(e=>{h(e),u?.(e)},[u]);return YO.createElement(YE,{delay:s,closeDelay:c,isOpen:l??m,onOpenChange:g,trigger:e?`focus`:void 0,...d},YO.createElement(PN,null,YO.cloneElement(p,{"aria-describedby":null})),YO.createElement(mI,{"data-testid":`tooltip`,placement:f,offset:n,onOpenChange:g,style:{outline:`none`},...d},r))},yI=({children:e,disableAllTooltips:t,shortcut:n,tooltip:r})=>{let i=(0,qO.useMemo)(()=>{let e=document?.body?.getAttribute(`data-shortcuts-enabled`)!==`false`;if(!(!r&&(!n||!e)))return[r,n&&e&&`[${zy(n)}]`].filter(Boolean).join(` `)},[n,r]);return i?qO.createElement(vI,{placement:`top`,tooltip:qO.createElement(SM,{note:i}),visible:!t&&void 0},e):qO.createElement(qO.Fragment,null,e)},yI.displayName=`InteractiveTooltipWrapper`,bI=(0,WO.forwardRef)(({as:e=`button`,asChild:t=!1,animation:n=`none`,size:r=`small`,appearance:i=`default`,variant:a=`outline`,padding:o=`medium`,disabled:s=!1,readOnly:c=!1,active:l,onClick:u,ariaLabel:d,ariaDescription:f=void 0,tooltip:p=void 0,shortcut:m=void 0,disableAllTooltips:h=!1,...g},_)=>{let v=t?yM:e,y;!c&&(d===void 0||d===``)&&(y=`ariaLabel`,gM(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${g.children}.`)),l!==void 0&&(y=`active`,gM("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:b,AriaDescription:x}=ZE(f),S=(0,WO.useMemo)(()=>m?By(m):void 0,[m]),[C,w]=(0,WO.useState)(!1);return(0,WO.useEffect)(()=>{let e=setTimeout(()=>{C&&w(!1)},1e3);return()=>clearTimeout(e)},[C]),WO.createElement(WO.Fragment,null,WO.createElement(yI,{disableAllTooltips:h,shortcut:m,tooltip:p||(d===!1?void 0:d)},WO.createElement(xI,{"data-deprecated":y,as:v,ref:_,appearance:i,variant:a,size:r,padding:o,$disabled:s||c,"aria-disabled":s||c?`true`:void 0,readOnly:c,active:l,animating:C,animation:n,onClick:s||c?void 0:e=>{u&&u(e),n!==`none`&&w(!0)},"aria-label":!c&&d!==!1?d:void 0,"aria-keyshortcuts":c?void 0:S,...c?{}:b,...g})),WO.createElement(x,null))}),bI.displayName=`Button`,xI=M(`button`,{shouldForwardProp:e=>le(e)})(({theme:e,appearance:t,variant:n,size:r,$disabled:i,readOnly:a,active:o,animating:s,animation:c=`none`,padding:l})=>{let u=t===`agentic`?{foreground:e.fgColor.agentic,background:e.bgColor.agentic,outline:e.borderColor.agentic}:{foreground:e.color.secondary,background:e.button.background,outline:e.button.border};return{border:0,cursor:a?`inherit`:i?`not-allowed`:`pointer`,display:`inline-flex`,gap:`6px`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,padding:l===`none`?0:l===`small`&&r===`small`?`0 7px`:l===`small`&&r===`medium`?`0 9px`:r===`small`?`0 10px`:r===`medium`?`0 12px`:0,height:r===`small`?`28px`:`32px`,position:`relative`,textAlign:`center`,textDecoration:`none`,transitionProperty:`background, box-shadow`,transitionDuration:`150ms`,transitionTimingFunction:`ease-out`,verticalAlign:`top`,whiteSpace:`nowrap`,userSelect:`none`,opacity:i&&!a?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:`1`,background:n===`solid`?e.base===`light`?u.foreground:he(.18,u.foreground):n===`outline`?u.background:n===`ghost`&&o?me(.93,t===`agentic`?e.bgColor.agentic:e.barSelectedColor):`transparent`,color:n===`solid`?e.color.lightest:n===`outline`?t===`agentic`?e.fgColor.agentic:e.input.color:n===`ghost`&&o?e.base===`light`?he(.1,u.foreground):u.foreground:n===`ghost`?e.textMutedColor:e.input.color,boxShadow:n===`outline`?`${u.outline} 0 0 0 1px inset`:`none`,borderRadius:e.input.borderRadius,flexShrink:0,...!a&&{"&:hover":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let t=u.foreground;return n===`solid`&&(t=e.base===`light`?re(.1,u.foreground):he(.3,u.foreground)),n===`outline`&&(t=u.background),n===`ghost`?me(.86,u.foreground):e.base===`light`?he(.02,t):re(.03,t)})()},"&:active":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let r=u.foreground;return n===`solid`&&(r=u.foreground),n===`outline`&&(r=u.background),n===`ghost`?t===`agentic`?e.bgColor.agentic:e.background.hoverable:e.base===`light`?he(.02,r):re(.03,r)})()},"&:focus-visible":{outline:`2px solid ${j(u.foreground,1)}`,outlineOffset:2,zIndex:`1`},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:`0 0 auto`,animation:s&&c!==`none`?`${e.animation[c]} 1000ms ease-out`:``}}}),SI=(0,WO.forwardRef)((e,t)=>(gM("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),WO.createElement(bI,{ref:t,...e,"data-deprecated":`IconButton`}))),SI.displayName=`IconButton`,CI=(0,Qk.forwardRef)(({pressed:e,...t},n)=>Qk.createElement(wI,{role:`switch`,"aria-checked":e,ref:n,pressed:e,...t})),CI.displayName=`ToggleButton`,wI=M(bI)(({theme:e,variant:t=`outline`,pressed:n})=>({...n?{...t===`solid`?{background:e.base===`lighten`?he(.1,e.color.secondary):he(.2,e.color.secondary)}:{},...t===`outline`?{background:me(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t===`ghost`?{background:me(.93,e.barSelectedColor),color:e.base===`light`?he(.1,e.color.secondary):e.color.secondary}:{}}:{}})),TI=M.li(({active:e,theme:t})=>({display:`flex`,alignItems:`center`,justifyContent:`space-between`,flex:`0 0 auto`,overflow:`hidden`,minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?`var(--listbox-item-active-color)`:t.color.defaultText,"--listbox-item-active-color":t.base===`light`?he(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?`var(--listbox-item-active-color)`:t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:`not-allowed`},'&[aria-selected="true"]':{color:`var(--listbox-item-active-color)`,fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":`var(--listbox-item-active-color)`},"&:not(:hover, :has(:focus-visible)) :not(input) + input":{position:`absolute`,opacity:0},'&[role="option"]':{cursor:`pointer`,borderRadius:t.input.borderRadius,outlineOffset:-2,padding:`0 9px`,gap:8,"&:hover":{background:me(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionBehavior:`allow-discrete`,transitionDuration:`var(--transition-duration, 0.2s)`,transitionProperty:`opacity, block-size, content-visibility`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}}),({transitionStatus:e})=>{switch(e){case`preEnter`:case`exiting`:case`exited`:return{opacity:0,blockSize:0,contentVisibility:`hidden`};default:return{opacity:1,blockSize:`auto`,contentVisibility:`visible`}}}),EI=M(TI)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:`auto`,marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionProperty:`inline-size, margin-left, opacity, padding-inline`,transitionDuration:`var(--transition-duration, 0.2s)`}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),DI=M(bI)(({size:e})=>({gap:e===`small`?6:8,"&:focus-visible":{outlineOffset:-2}})),OI=M(CI)({"&:focus-visible":{outlineOffset:-2}}),kI=(0,UO.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return UO.createElement(DI,{...r,variant:n,padding:e,size:t,ref:i})}),AI=(0,UO.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return UO.createElement(OI,{...r,variant:n,padding:e,size:t,ref:i})}),jI=M(kI)(({theme:e})=>({height:`auto`,minHeight:32,flex:`0 1 100%`,textAlign:`start`,justifyContent:`space-between`,fontWeight:`inherit`,color:`inherit`,"&:hover":{color:`inherit`},"& input:enabled:focus-visible":{outline:`none`},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),MI=e=>UO.createElement(jI,{as:`a`,...e}),NI=M.div(({theme:e})=>({display:`flex`,flexDirection:`column`,justifyContent:`center`,flexGrow:1,minWidth:0,padding:`8px 0`,lineHeight:`16px`,"& > *":{margin:0,whiteSpace:`normal`},"& > span":{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},"& small":{fontSize:`inherit`,color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),PI=M.div({display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`0 0 14px`,width:14,height:14,color:`var(--listbox-item-muted-color)`}),FI=Object.assign(M.ul(({theme:e,onClick:t})=>({listStyle:`none`,margin:0,padding:4,cursor:t?`pointer`:`default`,"& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:TI,HoverItem:EI,Button:kI,Toggle:AI,Action:jI,Link:MI,Text:NI,Icon:PI}),II=M.div(({collapsed:e=!1})=>({blockSize:e?0:`auto`,contentVisibility:e?`hidden`:`visible`,transform:e?`translateY(-10px)`:`translateY(0)`,opacity:+!e,overflow:`hidden`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s)`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}})),Object.assign(function({children:e,summary:t,collapsed:n,disabled:r,initialCollapsed:i,storageKey:a,state:o,...s}){let c=RI({collapsed:n,disabled:r,initialCollapsed:i,storageKey:a}),l=o||c;return $k.createElement($k.Fragment,null,typeof t==`function`?t(l):t,$k.createElement(II,{...s,id:l.contentId,collapsed:l.isCollapsed,"aria-hidden":l.isCollapsed},typeof e==`function`?e(l):e))},{Content:II}),LI=(e,t)=>{let[n,r]=(0,$k.useState)(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return(0,$k.useEffect)(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]},RI=({collapsed:e,disabled:t,initialCollapsed:n=e,storageKey:r})=>{let[i,a]=LI(r&&`useCollapsible:${r}`,!!n);(0,$k.useEffect)(()=>{e!==void 0&&a(e)},[e,a]);let o=(0,$k.useCallback)(e=>{e?.stopPropagation(),t||a(e=>!e)},[t,a]),s=lS();return{contentId:s,isCollapsed:i,isDisabled:!!t,setCollapsed:a,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":s,"aria-expanded":!i}}},zI=(e,t)=>t&&t in e?e[t]:void 0,BI=(e,t)=>zI(e.fgColor,t)??zI(e.color,t),VI=(e,t,n)=>zI(e.borderColor,t)??zI(e.color,n),HI=(e,t)=>zI(e.bgColor,t)??e.background.content,UI=(e,t)=>{let n=HI(e,t);return`linear-gradient(${n}, ${n}), ${e.background.content}`},WI=de({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),GI=de({"0%":{transform:`rotate(0deg)`},"10%":{transform:`rotate(20deg)`},"40%":{transform:`rotate(170deg)`},"50%":{transform:`rotate(180deg)`},"60%":{transform:`rotate(190deg)`},"90%":{transform:`rotate(340deg)`},"100%":{transform:`rotate(360deg)`}}),KI=de({to:{backgroundPositionX:`36%`}}),qI=M.div(({color:e,theme:t})=>({color:BI(t,e),borderRadius:t.appBorderRadius,background:UI(t,e),position:`relative`})),JI=M.div(({animation:e=`none`,color:t,outlineColor:n=t,theme:r})=>({position:`relative`,width:`100%`,padding:1,overflow:`hidden`,backgroundColor:HI(r,t),borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e===`none`&&VI(r,t,n)||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:`box-shadow 1s`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s), box-shadow 1s`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`box-shadow 1s`},"&:before":{content:`""`,display:e===`none`?`none`:`block`,position:`absolute`,left:0,top:0,width:`100%`,height:`100%`,opacity:1,...e===`rainbow`&&{animation:`${KI} 10s infinite linear, ${WI} 60s infinite linear`,backgroundImage:`linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))`,backgroundSize:`1000%`,backgroundPositionX:`100%`},...e===`spin`&&{left:`50%`,top:`50%`,marginLeft:`calc(max(100vw, 100vh) * -0.5)`,marginTop:`calc(max(100vw, 100vh) * -0.5)`,height:`max(100vw, 100vh)`,width:`max(100vw, 100vh)`,animation:`${GI} 5s linear infinite`,backgroundImage:n===`negative`?`conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)`:n===`agentic`?r.base===`dark`?`conic-gradient(transparent 90deg, rgba(114,58,166,0.65) 150deg, rgba(157,98,214,0.6) 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #b6a7ff 150deg, #d8aeff 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)`}}})),Object.assign((0,eA.forwardRef)(function({outlineAnimation:e=`none`,color:t,outlineColor:n,outlineAttrs:r={},...i},a){return eA.createElement(JI,{animation:e,color:t,outlineColor:n,ref:a,...r},eA.createElement(qI,{color:t,...i}))}),{Content:qI,Outline:JI}),{deprecate:YI}=__STORYBOOK_MODULE_CLIENT_LOGGER__,XI=[`preEnter`,`entering`,`entered`,`preExit`,`exiting`,`exited`,`unmounted`],ZI=e=>({_s:e,status:XI[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),QI=e=>e?6:5,$I=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return QI(t)}},eL=e=>typeof e==`object`?[e.enter,e.exit]:[e,e],tL=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),nL=(e,t,n,r,i)=>{clearTimeout(r.current);let a=ZI(e);t(a),n.current=a,i&&i({current:a})},rL=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:i,initialEntered:a,mountOnEnter:o,unmountOnExit:s,onStateChange:c}={})=>{let[l,u]=(0,nA.useState)(()=>ZI(a?2:QI(o))),d=(0,nA.useRef)(l),f=(0,nA.useRef)(),[p,m]=eL(i),h=(0,nA.useCallback)(()=>{let e=$I(d.current._s,s);e&&nL(e,u,d,f,c)},[c,s]);return[l,(0,nA.useCallback)(i=>{let a=e=>{switch(nL(e,u,d,f,c),e){case 1:p>=0&&(f.current=setTimeout(h,p));break;case 4:m>=0&&(f.current=setTimeout(h,m));break;case 0:case 3:f.current=tL(a,e)}},o=d.current.isEnter;typeof i!=`boolean`&&(i=!o),i?!o&&a(e?+!n:2):o&&a(t?r?3:4:QI(s))},[h,c,e,t,n,r,p,m,s]),h]},iL={},w(iL,{Actions:()=>OL,Close:()=>yL,CloseButton:()=>xL,Col:()=>wL,Container:()=>vL,Content:()=>SL,Description:()=>DL,Dialog:()=>bL,Error:()=>AL,ErrorWrapper:()=>kL,Header:()=>TL,Overlay:()=>_L,Row:()=>CL,Title:()=>EL}),{deprecate:aL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,(0,aA.createContext)(null),(0,aA.createContext)(null),(0,aA.createContext)(null),(0,aA.createContext)(null),(0,aA.createContext)(null),oL=(0,aA.createContext)({}),sL=(0,oA.forwardRef)(function(e,t){[e,t]=vw(e,t,oL);let{children:n,level:r=3,className:i,...a}=e,o=`h${r}`;return oA.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),cL=(0,sA.createContext)({}),lL=(0,sA.forwardRef)(function(e,t){[e,t]=vw(e,t,cL);let{elementType:n=`span`,...r}=e;return sA.createElement(n,{className:`react-aria-Text`,...r,ref:t})}),uL=de({from:{opacity:0},to:{opacity:1}}),dL=de({from:{opacity:1},to:{opacity:0}}),fL=de({from:{maxHeight:0},to:{}}),pL=de({from:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`},to:{opacity:1,transform:`translate(-50%, -50%) scale(1)`}}),mL=de({from:{opacity:1,transform:`translate(-50%, -50%) scale(1)`},to:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`}}),hL=de({from:{opacity:0,maxHeight:`0px`},to:{opacity:1,maxHeight:`80vh`}}),gL=de({from:{opacity:1,maxHeight:`80vh`},to:{opacity:0,maxHeight:`0px`}}),_L=M.div(({$status:e,$transitionDuration:t})=>({backdropFilter:`blur(24px)`,background:`rgba(0, 0, 0, 0.4)`,position:`absolute`,inset:0,width:`100%`,height:`100%`,zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e===`exiting`||e===`preExit`?`${dL} ${t}ms`:`${uL} ${t}ms`,animationFillMode:`forwards`}})),vL=M.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:`0px 4px 67px 0px #00000040`,position:`absolute`,overflow:`auto`,zIndex:1e5,"&:focus-visible":{outline:`none`}}),({theme:e,width:t,height:n,$variant:r,$status:i,$transitionDuration:a})=>r===`dialog`?{top:`50%`,left:`50%`,width:t??740,height:n??`auto`,maxWidth:`calc(100% - 40px)`,maxHeight:`85vh`,"@media (prefers-reduced-motion: no-preference)":{willChange:`transform, opacity`,animationTimingFunction:`cubic-bezier(0.32, 0.72, 0, 1)`,animation:i===`exiting`||i===`preExit`?`${mL} ${a}ms`:`${pL} ${a}ms`,animationFillMode:`forwards !important`},"@media (prefers-reduced-motion: reduce)":{transform:`translate(-50%, -50%) scale(1)`}}:{bottom:`0`,left:`0`,right:`0`,borderRadius:`10px 10px 0 0`,overflow:`hidden`,width:t??`100%`,height:n??`80%`,maxWidth:`100%`,background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:`cubic-bezier(.9,.16,.77,.64)`,animation:i===`exiting`||i===`preExit`?`${gL} ${a}ms`:`${hL} ${a}ms`,animationFillMode:`forwards !important`}}),yL=({asChild:e,children:t,onClick:n,...r})=>{let{close:i}=(0,iA.useContext)(jL);if(e&&iA.isValidElement(t)){let e=e=>{n?.(e),t.props.onClick?.(e),i?.()};return iA.cloneElement(t,{...r,onClick:e})}return iA.createElement(bI,{type:`button`,padding:`small`,ariaLabel:`Close modal`,variant:`ghost`,shortcut:[`Escape`],onClick:i},iA.createElement(Ae,null))},bL={Close:()=>(aL(`Modal.Dialog.Close is deprecated, please use Modal.Close instead.`),iA.createElement(yL,{"data-deprecated":`Modal.Dialog.Close`}))},xL=({ariaLabel:e,...t})=>(aL(`Modal.CloseButton is deprecated, please use Modal.Close instead.`),iA.createElement(yL,{asChild:!0},iA.createElement(bI,{ariaLabel:e||`Close`,"data-deprecated":`Modal.CloseButton`,...t},iA.createElement(Ae,null)))),SL=M.div({display:`flex`,flexDirection:`column`,margin:16,gap:16}),CL=M.div({display:`flex`,justifyContent:`space-between`,gap:16}),wL=M.div({display:`flex`,flexDirection:`column`,gap:4}),TL=({hasClose:e=!0,onClose:t,...n})=>iA.createElement(CL,null,iA.createElement(wL,{...n}),e&&iA.createElement(yL,{onClick:t})),EL=M(e=>iA.createElement(sL,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),DL=M(lL)(({theme:e})=>({position:`relative`,zIndex:1,margin:0,fontSize:e.typography.size.s2})),OL=M.div({display:`flex`,flexDirection:`row-reverse`,gap:8}),kL=M.div(({theme:e})=>({maxHeight:100,overflow:`auto`,"@media (prefers-reduced-motion: no-preference)":{animation:`${fL} 300ms, ${uL} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:`relative`,padding:`8px 16px`}})),AL=({children:e,...t})=>iA.createElement(kL,{...t},iA.createElement(`div`,null,e)),jL=(0,tA.createContext)({}),Object.assign($E,iL),M.div(({theme:e,col:t,row:n=1})=>t?{display:`inline-block`,verticalAlign:`inherit`,"& > *":{marginLeft:t*e.layoutMargin,verticalAlign:`inherit`},[`& > *:first-child${se}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${se}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.div(),M.div(({theme:e})=>({padding:30,textAlign:`center`,color:e.color.defaultText,fontSize:e.typography.size.s2-1})),ML=M.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||`auto`,transformOrigin:e?`center top`:`left top`,transform:`scale(${1/t})`})),NL=class extends uA.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute(`data-is-storybook`,e.active?`true`:`false`),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}render(){let{children:e}=this.props;return uA.createElement(uA.Fragment,null,e)}},PL={Element:rD,IFrame:NL},{global:FL}=__STORYBOOK_MODULE_GLOBAL__,{document:IL}=FL,LL=M.strong(({theme:e})=>({color:e.color.orange})),RL=M.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:`underline`})),zL=M.em(({theme:e})=>({color:e.textMutedColor})),BL=/(Error): (.*)\n/,VL=/at (?:(.*) )?\(?(.+)\)?/,HL=/([^@]+)?(?:\/<)?@(.+)?/,UL=/([^@]+)?@(.+)?/,WL=({error:e})=>{if(!e)return dA.createElement(dA.Fragment,null,`This error has no stack or message`);if(!e.stack)return dA.createElement(dA.Fragment,null,e.message||`This error has no stack or message`);let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
197
+ }`,document.head.prepend(r);let i=n=>{if(!(n.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&n.preventDefault()}},a=e=>{let t=e.target,n=e.relatedTarget;n&&$S(n)?(n.focus({preventScroll:!0}),kE(n,$S(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=document.activeElement!=null&&$S(document.activeElement);o.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&kE(this,t)};let s=fS(OE(document,`touchstart`,n,{passive:!1,capture:!0}),OE(document,`touchmove`,i,{passive:!1,capture:!0}),OE(document,`blur`,a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function DE(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function OE(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function kE(e,t){t||!mF?AE(e):mF.addEventListener(`resize`,()=>AE(e),{once:!0})}function AE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=XS(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;mF&&(n=Math.min(n,mF.offsetTop+mF.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function jE(){return(0,Rk.useContext)(_F)??{}}function ME(e){let{children:t}=e,n=(0,zk.useContext)(vF),[r,i]=(0,zk.useState)(0),a=(0,zk.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return zk.createElement(vF.Provider,{value:a},t)}function NE(){let e=(0,zk.useContext)(vF);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function PE(e){let{modalProviderProps:t}=NE();return zk.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function FE(e){return zk.createElement(ME,null,zk.createElement(PE,e))}function IE(e){let t=cS(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=jE();if(!e.portalContainer&&i&&(n=i()),zk.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=zk.createElement(FE,r);return Bk.createPortal(a,n)}function LE(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,Hk.useState)(!1),{focusWithinProps:a}=sw({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,Hk.useMemo)(()=>r?t:t?{...eI,...t}:eI,[r]);return{visuallyHiddenProps:{...a,style:o}}}function RE(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=LE(e);return Hk.createElement(n,V(a,o),t)}function zE(e){return e&&e.__esModule?e.default:e}function BE(e){let{onDismiss:t,...n}=e,r=HS(n,BT(zE($F),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return Vk.createElement(RE,null,Vk.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}function VE(e,t){let n=MM(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&tI,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&d(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)d(e),e=n.nextNode()}},d=e=>{let t=nI.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),nI.set(e,t+1))};rI.length&&rI[rI.length-1].disconnect(),u(i);let f=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`&&![...o,...s].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?o.add(e):e instanceof Element&&u(e)});f.observe(i,{childList:!0,subtree:!0});let p={visibleNodes:o,hiddenNodes:s,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return rI.push(p),()=>{f.disconnect();for(let e of s){let t=nI.get(e);t!=null&&(t===1?(l(e,!1),nI.delete(e)):nI.set(e,t-1))}p===rI[rI.length-1]?(rI.pop(),rI.length&&rI[rI.length-1].observe()):rI.splice(rI.indexOf(p),1)}}function HE(e){let t=rI[rI.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function UE(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=SE({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=GT({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return wE({isDisabled:a||!t.isOpen}),(0,Uk.useEffect)(()=>{if(t.isOpen&&r.current)return a?HE(i?.current??r.current):VE([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:V(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}function WE(e){let t=cS(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,Wk.useState)(!1),o=(0,Wk.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=jE();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=Wk.createElement(JT,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=Wk.createElement(iI.Provider,{value:o},Wk.createElement(ow,null,c)),Gk.createPortal(c,n)}function GE(){let e=(0,Wk.useContext)(iI)?.setContain;Y(()=>{e?.(!0)},[e])}function KE(e,t,n){let{overlayProps:r,underlayProps:i}=SE({...e,isOpen:t.isOpen,onClose:t.close},n);return wE({isDisabled:!t.isOpen}),GE(),(0,Kk.useEffect)(()=>{if(t.isOpen&&n.current)return VE([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:V(r),underlayProps:i}}function qE(e){let[t,n]=_C(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:n,open:(0,Jk.useCallback)(()=>{n(!0)},[n]),close:(0,Jk.useCallback)(()=>{n(!1)},[n]),toggle:(0,Jk.useCallback)(()=>{n(!t)},[n,t])}}function JE(e={}){let{delay:t=aI,closeDelay:n=oI}=e,{isOpen:r,open:i,close:a}=qE(e),o=(0,qk.useMemo)(()=>`${++cI}`,[]),s=(0,qk.useRef)(null),c=(0,qk.useRef)(a),l=()=>{sI[o]=f},u=()=>{for(let e in sI)e!==o&&(sI[e](!0),delete sI[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),lI=!0,i(),uI&&=(clearTimeout(uI),null),dI&&=(clearTimeout(dI),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),uI&&=(clearTimeout(uI),null),lI&&(dI&&clearTimeout(dI),dI=setTimeout(()=>{delete sI[o],dI=null,lI=!1},Math.max(oI,n)))},p=()=>{u(),l(),!r&&!uI&&!lI?uI=setTimeout(()=>{uI=null,lI=!0,d()},t):r||d()};return(0,qk.useEffect)(()=>{c.current=a},[a]),(0,qk.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),sI[o]&&delete sI[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function YE(e){let t=JE(e),n=(0,Yk.useRef)(null),{triggerProps:r,tooltipProps:i}=xw(e,t,n);return Yk.createElement(hw,{values:[[fI,t],[pI,{...i,triggerRef:n}]]},Yk.createElement(NN,{...r,ref:n},e.children))}function XE(e){let t=(0,Yk.useContext)(fI),n=(0,Yk.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=GT({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=cC(e.tooltipRef,!!a)||e.isEntering||!1,c=gw({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=V(e,r);let{tooltipProps:l}=bw(e,t),u=CS(e,{global:!0});return Yk.createElement(`div`,{...V(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},Yk.createElement(VN.Provider,{value:{...i,placement:a,ref:n}},c.children))}function ZE(e=``){let t=e.toLowerCase().trim().replace(/\s+/g,`-`);return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?Zk.createElement(`span`,{id:t,hidden:!0},e):null}}function QE(e){let t=e=>typeof window<`u`&&window.matchMedia(e).matches,[n,r]=(0,rA.useState)(t(e));function i(){r(t(e))}return(0,rA.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addEventListener(`change`,i),()=>{t.removeEventListener(`change`,i)}},[e]),n}function $E({container:e,portalSelector:t,children:n,width:r,height:i,ariaLabel:a,dismissOnClickOutside:o=!0,dismissOnEscape:s=!0,className:c,open:l,onEscapeKeyDown:u,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:h=`dialog`,...g}){let _;(a===void 0||a===``)&&(_=`ariaLabel`,YI("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),u!==void 0&&(_=`onEscapeKeyDown`,YI("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(_=`onInteractOutside`,YI("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=(0,tA.useRef)(null),[{status:y,isMounted:b},x]=rL({timeout:QE(`(prefers-reduced-motion: reduce)`)?0:m,mountOnEnter:!0,unmountOnExit:!0}),S=qE({isOpen:l||b,defaultOpen:p,onOpenChange:e=>{x(e),f?.(e)}}),C=()=>{S.close()},{modalProps:w,underlayProps:T}=KE({isDismissable:o,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?e=>{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,relatedTarget:e});return d(t),!t.defaultPrevented}:void 0},S,v);if((0,tA.useEffect)(()=>{let e=l??p??!1;e&&!b?x(!0):!e&&b&&x(!1)},[l,p,b,x]),(0,tA.useEffect)(()=>{b&&(l||p)&&f?.(!0)},[b]),(0,tA.useEffect)(()=>{if(b&&(l||p)&&v.current)return VE([v.current],{shouldUseInert:!0})},[b,l,p,v]),!b||y===`exited`||y===`unmounted`)return null;let E=V(w,{onKeyDown:e=>{e.key===`Escape`?s&&(u?.(e.nativeEvent),e.nativeEvent.defaultPrevented||C()):w.onKeyDown?.(e)}}),D=e??(t?document.querySelector(t):void 0);return tA.createElement(WE,{disableFocusManagement:!0,portalContainer:D||void 0},tA.createElement(JT,{restoreFocus:!0,contain:!0,autoFocus:!0},tA.createElement(_L,{$status:y,$transitionDuration:m,...T}),tA.createElement(`div`,{role:`dialog`,"aria-label":a,ref:v,...E},tA.createElement(jL.Provider,{value:{close:C}},tA.createElement(`div`,{tabIndex:-1},tA.createElement(vL,{"data-deprecated":_,$variant:h,$status:y,$transitionDuration:m,className:c,width:r,height:i,...g},n))))))}function eD(e,t){var n=(0,lA.useRef)(null),r=(0,lA.useRef)(null);r.current=t;var i=(0,lA.useRef)(null);(0,lA.useEffect)(function(){a()});var a=(0,lA.useCallback)(function(){var t=i.current,a=r.current,o=t||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===o&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:e,cleanup:o?e(o):void 0})},[e]);return(0,lA.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,lA.useCallback)(function(e){i.current=e,a()},[a])}function tD(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t===`contentBoxSize`?e.contentRect[n===`inlineSize`?`width`:`height`]:void 0}function nD(e){e===void 0&&(e={});var t=e.onResize,n=(0,lA.useRef)(void 0);n.current=t;var r=e.round||Math.round,i=(0,lA.useRef)(),a=(0,lA.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],c=(0,lA.useRef)(!1);(0,lA.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var l=(0,lA.useRef)({width:void 0,height:void 0}),u=eD((0,lA.useCallback)(function(t){return(!i.current||i.current.box!==e.box||i.current.round!==r)&&(i.current={box:e.box,round:r,instance:new ResizeObserver(function(t){var i=t[0],a=e.box===`border-box`?`borderBoxSize`:e.box===`device-pixel-content-box`?`devicePixelContentBoxSize`:`contentBoxSize`,o=tD(i,a,`inlineSize`),u=tD(i,a,`blockSize`),d=o?r(o):void 0,f=u?r(u):void 0;if(l.current.width!==d||l.current.height!==f){var p={width:d,height:f};l.current.width=d,l.current.height=f,n.current?n.current(p):c.current||s(p)}})}),i.current.instance.observe(t,{box:e.box}),function(){i.current&&i.current.instance.unobserve(t)}},[e.box,r]),e.ref);return(0,lA.useMemo)(function(){return{ref:u,width:o.width,height:o.height}},[u,o.width,o.height])}function rD({centered:e,scale:t,children:n}){let r=(0,cA.useRef)(null),[i,a]=(0,cA.useState)(0),o=(0,cA.useCallback)(({height:e})=>{e&&a(e/t)},[t]);return(0,cA.useEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[t]),nD({ref:r,onResize:o}),cA.createElement(ML,{centered:e,scale:t,elementHeight:i},cA.createElement(`div`,{ref:r,className:`innerZoomElementWrapper`},n))}function iD(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),hR||(hR=document.createElement(`textarea`),hR.setAttribute(`tabindex`,`-1`),hR.setAttribute(`aria-hidden`,`true`),mR(hR)),hR.parentNode===null&&document.body.appendChild(hR);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;hR.style[t]=o[t]}),mR(hR),hR.value=t;var c=gR(hR,e);hR.value=t,c=gR(hR,e),hR.value=`x`;var l=hR.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function aD(e,t,n){var r=lR(n);yA.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}function oD(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function sD(e){return{...e,type:`option`,value:uD(e.value)}}function cD(e){return`type`in e&&e.type===`reset`?e:sD(e)}function lD(e){if(e!==IR)return e}function uD(e){return e===void 0?IR:e}function dD(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}function fD(e,t){return t===void 0?[]:oD(t)?e.filter(e=>e.value===t).map(sD):e.filter(e=>t.some(t=>e.value===t)).map(sD)}function pD(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function mD(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,EA.useMemo)(()=>new WeakMap,a);return(0,EA.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,EA.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}if(typeof t!=`function`)return t},[t,n,o,r,i])}function hD(e){if((0,DA.useContext)(ez))return DA.createElement(DA.Fragment,null,e.children);let t=DA.createElement(ez.Provider,{value:!0},e.children);return DA.createElement(`template`,{"data-react-aria-hidden":!0},t)}function gD(e){let t=(t,n)=>(0,DA.useContext)(ez)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,DA.forwardRef)(t)}function _D(){return(0,DA.useContext)(ez)}function vD(e){if((0,W.useContext)(nz))return e.content;let{collection:t,document:n}=xD(e.createCollection);return W.createElement(W.Fragment,null,W.createElement(hD,null,W.createElement(nz.Provider,{value:n},e.content)),W.createElement(yD,{render:e.children,collection:t}))}function yD({collection:e,render:t}){return t(e)}function bD(e,t,n){let r=cS(),i=(0,W.useRef)(r);i.current=r;let a=(0,W.useCallback)(()=>i.current?n():t(),[t,n]);return(0,kA.useSyncExternalStore)(e,a)}function xD(e){let[t]=(0,W.useState)(()=>new $R(e?.()||new XR)),n=rz((0,W.useCallback)(e=>t.subscribe(e),[t]),(0,W.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,W.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return Y(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}function SD(e){var t;return t=class extends WR{},t.type=e,t}function CD(e,t,n,r,i,a){typeof e==`string`&&(e=SD(e));let o=(0,W.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,W.useContext)(iz);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?W.createElement(iz.Provider,{value:o},i):null}return W.createElement(e.type,{ref:o},i)}function wD(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,W.forwardRef)((r,i)=>{let a=(0,W.useContext)(MN);if(!(0,W.useContext)(tz)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return CD(e,r,i,`children`in r?r.children:null,null,e=>W.createElement(MN.Provider,{value:a},W.createElement(n,{node:e})))});return r.displayName=t.name,r}function TD(e,t,n=ED){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,W.forwardRef)((t,i)=>CD(e,t,i,null,n(t),e=>W.createElement(r,{node:e}))??W.createElement(W.Fragment,null));return i.displayName=t.name,i}function ED(e){return mD({...e,addIdAndValue:!0})}function DD(e){let t=(0,W.useContext)(az),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=ED({...e,idScope:r,dependencies:n});return(0,W.useContext)(nz)&&(i=W.createElement(OD,null,i)),t=(0,W.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),W.createElement(az.Provider,{value:t},i)}function OD({children:e}){let t=(0,W.useContext)(nz),n=(0,W.useMemo)(()=>W.createElement(nz.Provider,{value:null},W.createElement(tz.Provider,{value:!0},e)),[e]);return cS()?W.createElement(iz.Provider,{value:t},n):(0,OA.createPortal)(n,t)}function kD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=lS(t);let o=lS(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=HS({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function AD(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=CS(e,{labelable:!0}),{labelProps:c,fieldProps:l}=kD({...e,labelElementType:`span`});t=vC(t,n,r);let u=(t-n)/(r-n),d=UT(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:V(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}function jD(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=NC({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=aw(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=V(y,_,CS(e,{labelable:!0}));return{isPressed:v,buttonProps:V(g,b,{"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 MD(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}function ND({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,G.useRef)(null),o=(0,G.useRef)(null),s=(0,G.useContext)(uz),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=UE({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=cC(m,!!f)||i.isEntering||!1,g=gw({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,G.useState)(!1);Y(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,G.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&ew(m.current)},[v,m,i.trigger]);let b=(0,G.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=G.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=G.createElement(`div`,{...V(CS(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&G.createElement(BE,{onDismiss:e.close}),G.createElement(VN.Provider,{value:{...d,placement:f,ref:a}},b),G.createElement(BE,{onDismiss:e.close}));return c?G.createElement(WE,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):G.createElement(WE,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&G.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),G.createElement(`div`,{ref:o,style:{display:`contents`}},G.createElement(uz.Provider,{value:o},S)))}function PD(e,t,n){return mD({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:NA.createElement(NA.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,FD(e,t,n))}})}function FD(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,NA.isValidElement)(t)&&s.push((0,NA.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}function ID(e){return(0,NA.useMemo)(()=>e==null?null:new Set([e]),[e])}function LD(e){let t=CS(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}function RD(e){return JM()?e.altKey:e.ctrlKey}function zD(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}function BD(e){let t=lS();return Sz.set(e,t),t}function VD(e){return Sz.get(e)}function HD(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,RA.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=UD(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},Cz)}}:void 0}}}function UD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function WD(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=Hw(),_=jS(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!RD(e)){(0,zA.flushSync)(()=>{t.setFocusedKey(n,i)});let a=zD(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!RD(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,QS(e));t.setFocusedKey(r),r!=null&&(QS(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,QS(e));t.setFocusedKey(r),r!=null&&(QS(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:QS(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=pE(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&wS(t)}break}}},y=(0,BA.useRef)({top:0,left:0});tC(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else!p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=zD(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&wS(e),XC()===`keyboard`&&iC(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,BA.useRef)(!1);tC(r,sN,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=WS(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=PM();vE(r.current),bE(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});GS(()=>{S.current&&C()},[t.collection,C]);let w=WS(()=>{t.collection.size>0&&(S.current=!1)});GS(()=>{w()},[t.focusedKey,w]),tC(r,oN,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,BA.useRef)(i),E=(0,BA.useRef)(!1);(0,BA.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&ew(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,BA.useRef)(t.focusedKey),O=(0,BA.useRef)(null);(0,BA.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=XC(),n=zD(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(nC(m.current,n),e!==`virtual`&&iC(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&ew(r.current),D.current=t.focusedKey,E.current=!1}),(0,BA.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),tC(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:ee}=HD({keyboardDelegate:n,selectionManager:t});u||(k=V(ee,k));let A;d||(A=t.focusedKey==null?0:-1);let j=BD(t.collection);return{collectionProps:V(k,{tabIndex:A,"data-collection":j})}}function GD(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=jS();t=lS(t);let p=e=>{if(e.pointerType===`keyboard`&&RD(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(QS(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,VA.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?vE(i.current):s?s():document.activeElement!==i.current&&i.current&&ew(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,VA.useRef)(null),w=S&&v,T=(0,VA.useRef)(!1),E=(0,VA.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||qD())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!KD())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||qD()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&KD()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=VD(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=V(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=fS(k[e],D[e]));let{pressProps:ee,isPressed:A}=NC(k),j=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:te}=mw({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),ne=e=>{C.current===`touch`&&T.current&&e.preventDefault()},re=d!==`none`&&n.isLink(r)?e=>{NS.isOpening||e.preventDefault()}:void 0;return{itemProps:V(m,v||b||o&&!c?ee:{},w?te:{},{onDoubleClick:j,onDragStartCapture:ne,onClick:re,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:A,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function KD(){return window.event?.key===`Enter`}function qD(){let e=window.event;return e?.key===` `||e?.code===`Space`}function JD(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=WT({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,HA.useMemo)(()=>a||new Tz({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=WD({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function YD(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=CS(e,{labelable:!0}),{listProps:c}=JD({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return xz.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:V(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function XD(e){return null}function ZD(e){return e.hasChildItems==null?!!(e.childItems||e.title&&UA.Children.count(e.children)>0):e.hasChildItems}function QD(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function $D(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function eO(e){return e[0].toUpperCase()+e.slice(1)}function tO(e,t,n){let r=(0,GA.useMemo)(()=>new Dz,[]),{children:i,items:a,collection:o}=e;return(0,GA.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function nO(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function rO(e){return iO(e,0)}function iO(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function aO(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...oO(e,t),t],i=[...oO(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function oO(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function sO(e){let t=Oz.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(nO(i,e)):i.type===`item`&&n++};return r(e),Oz.set(e,n),n}function cO(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=xz.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,ee=jS(),A=()=>{var t;if(!C&&(O!=null&&(t=O.props)!=null&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},j=`menuitem`;C||(S.selectionMode===`single`?j=`menuitemradio`:S.selectionMode===`multiple`&&(j=`menuitemcheckbox`));let te=dS(),ne=dS(),re=dS(),ie={id:r,"aria-disabled":T||void 0,role:j,"aria-label":e[`aria-label`],"aria-labelledby":te,"aria-describedby":[ne,re].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(ie[`aria-checked`]=E),o&&(ie[`aria-posinset`]=O?.index,ie[`aria-setsize`]=sO(t.collection));let ae=(0,KA.useRef)(!1),oe=e=>{d?.(e),ae.current=e},se=(0,KA.useRef)(null),ce=e=>{e.pointerType!==`keyboard`&&(se.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(ae.current||e.target.click()),l?.(e)},le=e=>{p?.(e),A(),LS(e,ee,O.props.href,O?.props.routerOptions);let t=se.current?.pointerType===`keyboard`?se.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),se.current=null},{itemProps:ue,isFocused:de}=GD({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:M,isPressed:fe}=NC({onPressStart:c,onPress:u,onPressUp:ce,onPressChange:oe,onPressEnd:f,isDisabled:T}),{hoverProps:pe}=dw({isDisabled:T,onHoverStart(e){!YC()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:me}=rw({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:se.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:se.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e)}},onKeyUp:v}),{focusProps:he}=tw({onBlur:x,onFocus:y,onFocusChange:b}),ge=CS(O?.props);delete ge.id;let _e=IS(O?.props);return{menuItemProps:{...ie,...V(ge,_e,C?{onFocus:ue.onFocus,"data-collection":ue[`data-collection`],"data-key":ue[`data-key`]}:ue,M,pe,me,he,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:le}),tabIndex:ue.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:ue.tabIndex},labelProps:{id:te},descriptionProps:{id:ne},keyboardShortcutProps:{id:re},isFocused:de,isFocusVisible:de&&S.isFocused&&YC()&&!w,isSelected:E,isPressed:fe,isDisabled:T}}function lO(e){let{heading:t,"aria-label":n}=e,r=lS();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function uO(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,qA.useRef)(void 0),o=(0,qA.useRef)(void 0),s=(0,qA.useRef)(0),c=(0,qA.useRef)(void 0),l=(0,qA.useRef)(void 0),u=(0,qA.useRef)(void 0),d=(0,qA.useRef)(2),[f,p]=(0,qA.useState)(!1);qS({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=kz,a.current=void 0},h=ZC(),g=WS(e=>{f&&e.preventDefault()});(0,qA.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,qA.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<Az)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+Mz,v=Math.atan2(h-o.current.bottom,g)-Mz,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,kz):Math.max(d.current-1,0),d.current>=kz?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},jz))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=kz}},[i,r,t,h,p,g,n])}function dO(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=lS(),u=lS(),{direction:d}=Hw(),f=(0,JA.useRef)(void 0),p=(0,JA.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=WS(e=>{p(),t.open(e)}),h=WS(()=>{p(),t.close()});Y(()=>()=>{p()},[p]);let g={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&wS(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&wS(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&wS(n.current));break}}}};return tC(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()}),uO({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},onPress:e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},onHoverChange:e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())},onKeyDown:e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&wS(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&wS(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation()}},isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function fO(e){let t=qE(e),[n,r]=(0,YA.useState)(null),[i,a]=(0,YA.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function pO(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,XA.useState)(r?.length),c=(0,XA.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,XA.useState)(null),d=(0,XA.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,XA.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,XA.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,XA.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}function mO(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function hO(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,ZA.useRef)(!1),[,s]=(0,ZA.useState)(!1),c=(0,ZA.useRef)(null),l=(0,ZA.useRef)(null),[,u]=(0,ZA.useState)(null),[d,f]=_C((0,ZA.useMemo)(()=>gO(e.selectedKeys),[e.selectedKeys]),(0,ZA.useMemo)(()=>gO(e.defaultSelectedKeys,new Pz),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,ZA.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,ZA.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,ZA.useRef)(i);return(0,ZA.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!mO(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function gO(e,t){return e?e===`all`?`all`:new Pz(e):t}function _O(e){let{onExpandedChange:t}=e,[n,r]=_C(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=hO(e),a=(0,QA.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=tO(e,(0,QA.useCallback)(e=>new Nz(e,{expandedKeys:n}),[n]),null);return(0,QA.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(vO(n,e))},setExpandedKeys:r,selectionManager:new Fz(o,i)}}function vO(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function yO({props:e,collection:t,menuRef:n}){[e,n]=vw(e,n,hz);let{filter:r,...i}=e,a=(0,K.useMemo)(()=>r?t.filter(r):t,[t,r]),o=_O({...e,collection:a,children:void 0}),s=(0,K.useContext)(Rz),{isVirtualized:c,CollectionRoot:l}=(0,K.useContext)(mz),{menuProps:u}=YD({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=gw({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=K.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=CS(e,{global:!0});return K.createElement(JT,null,K.createElement(`div`,{...V(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},K.createElement(hw,{values:[[Lz,o],[yz,{elementType:`div`}],[fz,{name:`MenuSection`,render:bO}],[Bz,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Uz,null],[hz,null],[gz,null],[zz,o.selectionManager],[Rz,s??fO({})]]},K.createElement(l,{collection:o.collection,persistedKeys:ID(o.selectionManager.focusedKey),scrollRef:n})),f))}function bO(e,t,n,r=`react-aria-MenuSection`){let i=(0,K.useContext)(Lz),{CollectionBranch:a}=(0,K.useContext)(mz),[o,s]=yw(),{headingProps:c,groupProps:l}=lO({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=gw({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,K.useContext)(zz),f=hO(e),p=e.selectionMode==null?d:new Hz(d,f),m=CS(e,{global:!0});return delete m.id,K.createElement(`section`,{...V(m,u,l),ref:t},K.createElement(hw,{values:[[_z,{...c,ref:o}],[zz,p]]},K.createElement(a,{collection:i.collection,parent:n})))}function xO(e,t){let{role:n=`dialog`}=e,r=dS();r=e[`aria-label`]?void 0:r;let i=(0,$A.useRef)(!1);return(0,$A.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){ew(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),ew(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),GE(),{dialogProps:{...CS(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}function SO(e){let t=fO(e),n=(0,ej.useRef)(null),{triggerProps:r,overlayProps:i}=CE({type:`dialog`},t,n),[a,o]=(0,ej.useState)(null);return qS({ref:n,onResize:(0,ej.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=lS(),i[`aria-labelledby`]=r.id,ej.createElement(hw,{values:[[Gz,t],[Rz,t],[Wz,i],[lz,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},ej.createElement(IN,{...r,ref:n,isPressed:t.isOpen},e.children))}function CO({children:e,...t},n){let r={props:t,ref:n};if(xB(r))return sj.createElement(`a`,{ref:r.ref,...r.props},e);if(SB(r))return sj.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}function wO(e){FB("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=(0,uj.useRef)(),n=(0,uj.useRef)(),r=(0,uj.useRef)(new Map),{width:i=1}=nD({ref:t}),[a,o]=(0,uj.useState)(e),[s,c]=(0,uj.useState)([]),l=(0,uj.useRef)(e),u=(0,uj.useCallback)(({menuName:e,actions:t})=>{let i=s.some(({active:e})=>e),[a,o]=(0,uj.useState)(!1);return uj.createElement(uj.Fragment,null,uj.createElement(Kz,{ariaLabel:`Additional tabs`,visible:a,onVisibleChange:o,placement:`bottom`,popover:uj.createElement(uB,{links:s.map(({title:e,id:n,color:r,active:i})=>({id:n,title:e,color:r,active:i,onClick:e=>{e.preventDefault(),t.onSelect(n)}}))})},uj.createElement(LB,{id:`addons-menu-button`,ref:n,active:i,preActive:a,style:{visibility:s.length?`visible`:`hidden`},"aria-hidden":!s.length,className:`tabbutton`,type:`button`,role:`tab`},e,uj.createElement(IB,{className:`addon-collapsible-icon`,isActive:i||a}))),s.map(({title:e,id:t,color:n},i)=>{let a=`index-${i}`;return uj.createElement(TB,{id:`tabbutton-${Um(t)??a}`,style:{visibility:`hidden`},"aria-hidden":!0,tabIndex:-1,ref:e=>{r.current.set(t,e)},className:`tabbutton`,type:`button`,key:t,textColor:n,role:`tab`},e)}))},[s]),d=(0,uj.useCallback)(()=>{if(!t.current||!n.current)return;let{x:i,width:u}=t.current.getBoundingClientRect(),{width:d}=n.current.getBoundingClientRect(),f=s.length?i+u-d:i+u,p=[],m=0,h=e.filter(e=>{let{id:t}=e,n=r.current.get(t),{width:a=0}=n?.getBoundingClientRect()||{},o=i+m+a>f;return(!o||!n)&&p.push(e),m+=a,o});(p.length!==a.length||l.current!==e)&&(o(p),c(h),l.current=e)},[s.length,e,a]);return(0,uj.useLayoutEffect)(d,[d,i]),{tabRefs:r,addonsRef:n,tabBarRef:t,visibleList:a,invisibleList:s,AddonTab:u}}function TO(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,fj.useState)(!1);Y(()=>{var e;o(!!(t.current&&(e=t.current.parentElement)!=null&&e.closest(`[role="toolbar"]`)))});let{direction:s}=Hw(),c=s===`rtl`&&i===`horizontal`,l=mE(t),u=e=>{if(e.currentTarget.contains(e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),d.current=document.activeElement,e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,fj.useRef)(null),f=e=>{!e.currentTarget.contains(e.relatedTarget)&&!d.current&&(d.current=e.target)},p=e=>{var n;if(d.current&&!e.currentTarget.contains(e.relatedTarget)&&(n=t.current)!=null&&n.contains(e.target)){var r;(r=d.current)==null||r.focus(),d.current=null}};return{toolbarProps:{...CS(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function EO(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${YB.get(e)}-${n}-${t}`):``}function DO(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=GD({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a,linkBehavior:`selection`}),f=EO(t,r,`tab`),p=EO(t,r,`tabpanel`),{tabIndex:m}=u,h=t.collection.getItem(r),g=CS(h?.props,{labelable:!0});delete g.id;let _=IS(h?.props),{focusableProps:v}=aw({isDisabled:l},n);return{tabProps:V(g,v,_,u,{id:f,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?p:void 0,tabIndex:l?void 0:m,role:`tab`}),isSelected:c,isDisabled:l,isPressed:d}}function OO(e,t,n){let r=_E(n)?void 0:0,i=EO(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:V(HS({...e,id:i,"aria-labelledby":EO(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}function kO(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=Hw(),{collectionProps:l}=WD({ref:n,selectionManager:o,keyboardDelegate:(0,pj.useMemo)(()=>new XB(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=lS();return YB.set(t,u),{tabListProps:{...V(l,HS({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function AO(e){let{filter:t,layoutDelegate:n}=e,r=hO(e),i=(0,gj.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=tO(e,(0,gj.useCallback)(e=>t?new cV(t(e)):new cV(e),[t]),(0,gj.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,gj.useMemo)(()=>new Fz(a,r,{layoutDelegate:n}),[a,r,n]);return jO(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function jO(e,t){let n=(0,gj.useRef)(null);(0,gj.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getItem(t.focusedKey),i=[...n.current.getKeys()].map(e=>{let t=n.current.getItem(e);return t?.type===`item`?t:null}).filter(e=>e!==null),a=[...e.getKeys()].map(t=>{let n=e.getItem(t);return n?.type===`item`?n:null}).filter(e=>e!==null),o=(i?.length??0)-(a?.length??0),s=Math.min(o>1?Math.max((r?.index??0)-o+1,0):r?.index??0,(a?.length??0)-1),c=null,l=!1;for(;s>=0;){if(!t.isDisabled(a[s].key)){c=a[s];break}s<a.length-1&&!l?s++:(l=!0,s>(r?.index??0)&&(s=r?.index??0),s--)}t.setFocusedKey(c?c.key:null)}n.current=e},[e,t])}function MO(e){let[t,n]=_C(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,_j.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=AO({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function NO(e){let t=MO({...e,onSelectionChange:e.onSelectionChange?t=>{var n;t!=null&&((n=e.onSelectionChange)==null||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??PO(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,vj.useRef)(i);return(0,vj.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=PO(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function PO(e,t){let n=null;if(e){var r,i,a,o;for(n=e.getFirstKey();n!=null&&(t.has(n)||(i=e.getItem(n))!=null&&(r=i.props)!=null&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||(o=e.getItem(n))!=null&&(a=o.props)!=null&&a.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}function FO({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=NO({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=gE({within:!0}),c=(0,J.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=gw({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=CS(e,{global:!0});return J.createElement(`div`,{...V(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},J.createElement(hw,{values:[[mV,e],[hV,i]]},l.children))}function IO({props:e,forwardedRef:t}){let n=(0,J.useContext)(hV),{CollectionRoot:r}=(0,J.useContext)(mz),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=_w(mV),o=US(t),{tabListProps:s}=kO({...e,orientation:i,keyboardActivation:a},n,o),c=gw({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=CS(e,{global:!0});return delete l.id,J.createElement(`div`,{...V(l,c,s),ref:o,"data-orientation":i||void 0},J.createElement(r,{collection:n.collection,persistedKeys:ID(n.selectionManager.focusedKey)}))}var LO,RO,zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,U,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,W,kA,AA,jA,MA,G,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,K,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,q,pj,mj,hj,gj,_j,vj,J,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,Y,wM,TM,EM,DM,OM,kM,AM,jM,X,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,qM,JM,YM,XM,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,Z,rP,iP,aP,oP,Q,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,$,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV;function FV(){return(FV=t((()=>{A(),ee(),te(),_e(),S(),LO=o(),RO=e(o(),1),ne(),zO=e(o(),1),BO=e(o(),1),VO=e(o(),1),o(),HO=e(o(),1),Ke(),UO=e(o(),1),WO=e(o(),1),GO=e(o(),1),o(),KO=D(),Bx(),qO=e(o(),1),JO=e(o(),1),YO=e(o(),1),XO=e(o(),1),ZO=o(),QO=o(),$O=e(o(),1),ek=e(o(),1),o(),tk=o(),nk=o(),rk=e(o(),1),o(),ik=o(),ak=o(),o(),ok=o(),sk=o(),o(),o(),o(),o(),ck=o(),lk=ve(),uk=o(),dk=e(o(),1),fk=o(),pk=e(o(),1),ve(),mk=o(),hk=o(),gk=o(),_k=e(o(),1),vk=e(o(),1),yk=e(o(),1),bk=o(),xk=o(),Sk=o(),o(),o(),Ck=o(),wk=e(o(),1),Tk=e(o(),1),Ek=o(),Dk=o(),Ok=o(),kk=o(),Ak=e(o(),1),o(),jk=o(),o(),o(),Mk=o(),o(),Nk=e(o(),1),Pk=o(),o(),Fk=o(),Ik=o(),Lk=o(),Rk=e(o(),1),zk=e(o(),1),Bk=e(ve(),1),Vk=e(o(),1),Hk=e(o(),1),Uk=o(),Wk=e(o(),1),Gk=e(ve(),1),Kk=o(),qk=o(),Jk=o(),Yk=e(o(),1),Xk=e(o(),1),Zk=e(o(),1),Qk=e(o(),1),$k=e(o(),1),eA=e(o(),1),tA=e(o(),1),nA=o(),o(),rA=o(),iA=e(o(),1),aA=o(),oA=e(o(),1),sA=e(o(),1),o(),o(),cA=e(o(),1),lA=o(),uA=e(o(),1),dA=e(o(),1),U=e(o(),1),fA=e(o(),1),pA=e(o(),1),mA=e(o(),1),hA=o(),gA=e(o(),1),_A=e(o(),1),vA=e(o(),1),yA=e(o(),1),bA=e(o(),1),xA=o(),SA=e(o(),1),CA=e(o(),1),wA=e(o(),1),TA=e(o(),1),EA=o(),DA=e(o(),1),OA=ve(),W=e(o(),1),kA=be(),AA=e(o(),1),jA=e(o(),1),o(),MA=e(o(),1),G=e(o(),1),NA=e(o(),1),PA=o(),FA=e(o(),1),IA=e(o(),1),LA=e(o(),1),RA=o(),zA=ve(),BA=o(),VA=o(),HA=o(),UA=e(o(),1),o(),WA=e(o(),1),GA=o(),KA=o(),qA=o(),JA=o(),YA=o(),XA=o(),ZA=o(),QA=o(),K=e(o(),1),$A=o(),ej=e(o(),1),tj=e(o(),1),nj=e(o(),1),o(),rj=e(o(),1),ij=e(o(),1),aj=e(o(),1),Km(),oj=e(o(),1),sj=e(o(),1),cj=e(o(),1),lj=e(o(),1),uj=e(o(),1),o(),o(),dj=e(o(),1),fj=o(),q=e(o(),1),pj=o(),mj=e(o(),1),hj=e(o(),1),gj=o(),_j=o(),vj=o(),o(),J=e(o(),1),o(),o(),o(),o(),o(),yj=e(o(),1),o(),o(),i(),bj=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},xj=({theme:e})=>({margin:`20px 0 8px`,padding:0,cursor:`text`,position:`relative`,color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}}),Sj=({theme:e})=>({lineHeight:1,margin:`0 2px`,padding:`3px 5px`,whiteSpace:`nowrap`,borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base===`light`?`1px solid hsl(0 0 0 / 0.05)`:`1px solid hsl(0 0 100 / 0.05)`,color:e.color.defaultText,backgroundColor:e.base===`light`?`hsl(0 0 0 / 0.01)`:`hsl(0 0 100 / 0.02)`}),Cj=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`}),wj={margin:`16px 0`},Tj=M.div(Cj),Ej=({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return zO.createElement(`a`,{href:n,target:r,...t})},Dj=M(Ej)(({theme:e})=>({...Cj({theme:e}),fontSize:`inherit`,lineHeight:`24px`,color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"&.absent":{color:`#cc0000`},"&.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}})),Oj=M.blockquote(({theme:e})=>({...Cj({theme:e}),...wj,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),kj=[],Aj=null,jj=(0,VO.lazy)(async()=>{let{SyntaxHighlighter:e}=await a(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-QEQV7K2Y-CEo9I1qZ.js`);return{SyntaxHighlighter:e}},__vite__mapDeps([5,1,2,3,6,7,8,9,10,0,4,11,12]),import.meta.url);return kj.length>0&&(kj.forEach(t=>{e.registerLanguage(...t)}),kj=[]),Aj===null&&(Aj=e),{default:t=>VO.createElement(e,{...t})}}),Mj=(0,VO.lazy)(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([a(()=>import(`./syntaxhighlighter-QEQV7K2Y-CEo9I1qZ.js`),__vite__mapDeps([5,1,2,3,6,7,8,9,10,0,4,11,12]),import.meta.url),a(()=>import(`./formatter-L2YTDE3Q-CRGuSxAF.js`),__vite__mapDeps([13,1,3,4]),import.meta.url)]);return kj.length>0&&(kj.forEach(t=>{e.registerLanguage(...t)}),kj=[]),Aj===null&&(Aj=e),{default:n=>VO.createElement(e,{...n,formatter:t})}}),Nj=e=>VO.createElement(VO.Suspense,{fallback:VO.createElement(`div`,null)},e.format===!1?VO.createElement(jj,{...e}):VO.createElement(Mj,{...e})),Nj.registerLanguage=(...e)=>{if(Aj!==null){Aj.registerLanguage(...e);return}kj.push(e)},Pj=e=>typeof e==`string`,Fj=/[\n\r]/g,Ij=M.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`,...Sj({theme:e})})),Lj=M(Nj)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:`19px`,margin:`25px 0 40px`,borderRadius:e.appBorderRadius,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,"pre.prismjs":{padding:20,background:`inherit`}})),Rj=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=BO.Children.toArray(t);return i.filter(Pj).some(e=>e.match(Fj))?BO.createElement(Lj,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):BO.createElement(Ij,{...n,className:e},i)},zj=M.dl(({theme:e})=>({...Cj({theme:e}),...wj,padding:0,"& dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,padding:0,margin:`16px 0 4px`},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:`0 0 16px`,padding:`0 15px`},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),Bj=M.div(Cj),Vj=M.h1(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Hj=M.h2(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Uj=M.h3(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.m1}px`})),Wj=M.h4(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.s3}px`})),Gj=M.h5(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.s2}px`})),Kj=M.h6(({theme:e})=>({...Cj({theme:e}),...xj({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),qj=M.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),Jj=M.img({maxWidth:`100%`}),Yj=M.li(({theme:e})=>({...Cj({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":Sj({theme:e})})),Xj={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Zj=M.ol(({theme:e})=>({...Cj({theme:e}),...wj,...Xj,listStyle:`decimal`})),Qj=M.p(({theme:e})=>({...Cj({theme:e}),...wj,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":Sj({theme:e})})),$j=M.pre(({theme:e})=>({...Cj({theme:e}),...wj,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,lineHeight:`18px`,padding:`11px 1rem`,whiteSpace:`pre-wrap`,color:`inherit`,borderRadius:3,margin:`1rem 0`,"&:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`,code:{color:`inherit`,fontSize:`inherit`}},"& code":{whiteSpace:`pre`},"& code, & tt":{border:`none`}})),eM=M.span(({theme:e})=>({...Cj({theme:e}),"&.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"&.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"&.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"&.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"&.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}}})),tM=M.title(Sj),nM=M.table(({theme:e})=>({...Cj({theme:e}),...wj,fontSize:e.typography.size.s2,lineHeight:`24px`,padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base===`dark`?e.color.darker:e.color.lighter},"& tr th":{fontWeight:`bold`,color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:`6px 13px`},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:`6px 13px`},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),rM={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},iM=M.ul(({theme:e})=>({...Cj({theme:e}),...wj,...rM,listStyle:`disc`})),aM={h1:e=>RO.createElement(Vj,{...bj(e,`h1`)}),h2:e=>RO.createElement(Hj,{...bj(e,`h2`)}),h3:e=>RO.createElement(Uj,{...bj(e,`h3`)}),h4:e=>RO.createElement(Wj,{...bj(e,`h4`)}),h5:e=>RO.createElement(Gj,{...bj(e,`h5`)}),h6:e=>RO.createElement(Kj,{...bj(e,`h6`)}),pre:e=>RO.createElement($j,{...bj(e,`pre`)}),a:e=>RO.createElement(Dj,{...bj(e,`a`)}),hr:e=>RO.createElement(qj,{...bj(e,`hr`)}),dl:e=>RO.createElement(zj,{...bj(e,`dl`)}),blockquote:e=>RO.createElement(Oj,{...bj(e,`blockquote`)}),table:e=>RO.createElement(nM,{...bj(e,`table`)}),img:e=>RO.createElement(Jj,{...bj(e,`img`)}),div:e=>RO.createElement(Bj,{...bj(e,`div`)}),span:e=>RO.createElement(eM,{...bj(e,`span`)}),li:e=>RO.createElement(Yj,{...bj(e,`li`)}),ul:e=>RO.createElement(iM,{...bj(e,`ul`)}),ol:e=>RO.createElement(Zj,{...bj(e,`ol`)}),p:e=>RO.createElement(Qj,{...bj(e,`p`)}),code:e=>RO.createElement(Rj,{...bj(e,`code`)}),tt:e=>RO.createElement(tM,{...bj(e,`tt`)}),resetwrapper:e=>RO.createElement(Tj,{...bj(e,`resetwrapper`)})},M.div(({theme:e,compact:t})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:`12px`,minWidth:20,borderRadius:20,padding:t?`4px 7px`:`4px 10px`}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:`currentColor`}}},({theme:e,status:t})=>{switch(t){case`critical`:return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case`negative`:return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case`warning`:return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case`neutral`:return{color:e.fgColor.muted,background:e.base===`dark`?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${me(.8,e.textMutedColor)}`};case`positive`:return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case`active`:return{color:e.base===`light`?he(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${me(.9,e.color.secondary)}`};default:return{}}}),{deprecate:oM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,sM=0,cM=e=>e.button===sM&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,lM=(e,t)=>{cM(e)&&(e.preventDefault(),t(e))},uM=M.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:`0.7em`,width:`0.7em`,marginRight:0,marginLeft:`0.25em`,bottom:`auto`,verticalAlign:`inherit`}}:{},({containsIcon:e})=>e?{svg:{height:`1em`,width:`1em`,verticalAlign:`middle`,position:`relative`,bottom:0,marginRight:0}}:{}),dM=M.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:he(.07,e.color.secondary),"svg path:not([fill])":{fill:he(.07,e.color.secondary)}},"&:active":{color:he(.1,e.color.secondary),"svg path:not([fill])":{fill:he(.1,e.color.secondary)}},svg:{display:`inline-block`,height:`1em`,width:`1em`,verticalAlign:`text-top`,position:`relative`,bottom:`-0.125em`,marginRight:`0.4em`,"& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[2]}}}:{}},({nochrome:e})=>e?{color:`inherit`,"&:hover, &:active":{color:`inherit`,textDecoration:`underline`}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:`none`,padding:0,fontSize:`inherit`,lineHeight:`inherit`,"&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:`1`}}:{}),fM=(0,HO.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,isButton:o=void 0,href:s,...c},l)=>(o!==void 0&&oM("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),HO.createElement(dM,{as:s?`a`:`button`,href:s,...c,ref:l,isButton:!s||o===!0,onClick:n&&e?e=>lM(e,n):n,className:a},HO.createElement(uM,{withArrow:r,containsIcon:i},t,r&&HO.createElement(Re,null))))),fM.displayName=`Link`,M.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:`1.6`,h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`},"pre pre code, pre.prismjs code":{color:`inherit`,fontSize:`inherit`},"pre code":{margin:0,padding:0,whiteSpace:`pre`,border:`none`,background:`transparent`},"pre code, pre tt":{backgroundColor:`transparent`,border:`none`},"body > *:first-of-type":{marginTop:`0 !important`},"body > *:last-child":{marginBottom:`0 !important`},a:{color:e.color.secondary,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,textUnderlineOffset:`0.11em`,"& code":{color:`inherit`,textDecoration:`underline`,textDecorationThickness:`0.03125rem`,paddingLeft:0,paddingRight:0,"&::before":{content:`"\\00a0"`,fontSize:`0.5em`},"&::after":{content:`"\\00a0"`,fontSize:`0.5em`}}},"a.absent":{color:`#cc0000`},"a.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0,textDecoration:`none`},"&.anchor:hover, &.anchor:focus":{textDecoration:`underline`},"h1, h2, h3, h4, h5, h6":{margin:`20px 0 10px`,padding:0,cursor:`text`,position:`relative`,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& tt, & code":{fontSize:`inherit`}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:`15px 0`},hr:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:`inline-block`},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,margin:`0 0 15px`,padding:`0 15px`,"&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:`white`,margin:0,padding:0,"& th":{fontWeight:`bold`,border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:`left`,margin:0,padding:`6px 13px`},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:`100%`},"span.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"span.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"span.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"span.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"span.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}},"code, tt":{margin:`0 2px`,padding:`0 5px`,whiteSpace:`nowrap`,border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base===`dark`?e.color.darkest:e.color.dark}})),{global:pM}=__STORYBOOK_MODULE_GLOBAL__,{document:mM,window:hM}=pM,{deprecate:gM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,_M=Symbol.for(`react.lazy`),vM=GO.use,yM=Yx(`Slot`),bM=Symbol(`radix.slottable`),Zx(`Slottable`),xM=M.div(({theme:e})=>({padding:`2px 6px`,lineHeight:`16px`,fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:`0 0 5px 0 rgba(0, 0, 0, 0.3)`,borderRadius:4,whiteSpace:`nowrap`,pointerEvents:`none`,zIndex:-1,background:e.base===`light`?`rgba(60, 60, 60, 0.9)`:`rgba(0, 0, 0, 0.95)`})),SM=({note:e,...t})=>JO.createElement(xM,{...t},e),{deprecate:CM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Y=typeof document<`u`?XO.useLayoutEffect:()=>{},wM={prefix:String(Math.round(Math.random()*1e10)),current:0},TM=$O.createContext(wM),EM=$O.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,DM=new WeakMap,OM=typeof $O.useId==`function`?iS:rS,kM=!!(typeof window<`u`&&window.document&&window.document.createElement),AM=new Map,typeof FinalizationRegistry<`u`&&(jM=new FinalizationRegistry(e=>{AM.delete(e)})),X=e=>e?.ownerDocument??document,MM=e=>e&&`window`in e&&e.window===e?e:X(e).defaultView||window,NM=!1,PM=(e=document)=>{var t;if(!hS())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n},FM=class{get currentNode(){return this._currentNode}set currentNode(e){if(!gS(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return gS(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}},IM=bS,LM=new Set([`id`]),RM=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),zM=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),BM=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),VM=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`.split(`.`)),HM=/^(data-.*)$/,UM=null,WM=AS(function(){return kS(/^Mac/i)}),GM=AS(function(){return kS(/^iPhone/i)}),KM=AS(function(){return kS(/^iPad/i)||WM()&&navigator.maxTouchPoints>1}),qM=AS(function(){return GM()||KM()}),JM=AS(function(){return WM()||qM()}),YM=AS(function(){return OS(/AppleWebKit/i)&&!XM()}),XM=AS(function(){return OS(/Chrome/i)}),ZM=AS(function(){return OS(/Android/i)}),QM=AS(function(){return OS(/Firefox/i)}),$M=(0,ek.createContext)({isNative:!0,open:FS,useHref:e=>e}),NS.isOpening=!1,eN=new Map,tN=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,RS):RS()),nN=rk.useInsertionEffect??Y,rN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),typeof document<`u`&&window.visualViewport,iN=0,aN=new Map,oN=`react-aria-clear-focus`,sN=`react-aria-focus`,cN=typeof Element<`u`&&`checkVisibility`in Element.prototype,lN=[`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`],uN=lN.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,lN.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),dN=lN.join(`:not([hidden]):not([tabindex="-1"]),`),fN=typeof document<`u`?dk.useInsertionEffect??dk.useLayoutEffect:()=>{},pN=!1,mN=`default`,hN=``,gN=new WeakMap,_N=pk.createContext({register:()=>{}}),_N.displayName=`PressResponderContext`,vN=new WeakMap,yN=class{continuePropagation(){jC(this,vN,!1)}get shouldStopPropagation(){return DC(this,vN)}constructor(e,t,n,r){kC(this,vN,{writable:!0,value:void 0}),jC(this,vN,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},bN=Symbol(`linkClicked`),xN=`react-aria-pressable-style`,SN=`data-react-aria-pressable`,CN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),wN=null,TN=new Set,EN=new Map,DN=!1,ON=!1,kN={Tab:!0,Escape:!0},AN=(e,t)=>{let n=MM(e),r=X(e);t&&r.removeEventListener(`DOMContentLoaded`,t),EN.has(n)&&(n.HTMLElement.prototype.focus=EN.get(n).focus,r.removeEventListener(`keydown`,HC,!0),r.removeEventListener(`keyup`,HC,!0),r.removeEventListener(`click`,WC,!0),n.removeEventListener(`focus`,GC,!0),n.removeEventListener(`blur`,KC,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,UC,!0),r.removeEventListener(`pointermove`,UC,!0),r.removeEventListener(`pointerup`,UC,!0)),EN.delete(n))},typeof document<`u`&&JC(),jN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),MN=_k.createContext(null),NN=_k.forwardRef(function(e,t){let{children:n,...r}=e,i=US(t),a={...r,ref:i};return _k.createElement(MN.Provider,{value:a},n)}),PN=(0,_k.forwardRef)(({children:e,...t},n)=>{n=US(n);let{focusableProps:r}=aw(t,n),i=_k.Children.only(e);(0,_k.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return _k.cloneElement(i,{...V(r,i.props),ref:xS(a,n)})}),FN=vk.forwardRef(({children:e,...t},n)=>{n=US(n);let{pressProps:r}=NC({...t,ref:n}),{focusableProps:i}=aw(t,n),a=vk.Children.only(e);(0,vk.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return vk.cloneElement(a,{...V(r,i,a.props),ref:xS(o,n)})}),IN=yk.forwardRef(({children:e,...t},n)=>{let r=(0,yk.useRef)(!1),i=(0,yk.useContext)(_N);n=US(n||i?.ref);let a=V(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return JS(i,n),(0,yk.useEffect)(()=>{r.current||=!0},[]),yk.createElement(_N.Provider,{value:a},e)}),LN=!1,RN=0,zN=500,BN=Symbol(`default`),VN=(0,Tk.createContext)({placement:`bottom`}),(0,Tk.forwardRef)(function(e,t){[e,t]=vw(e,t,VN);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=gw({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=CS(e);return Tk.createElement(`div`,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),HN={top:`top`,bottom:`top`,left:`left`,right:`left`},UN={top:`bottom`,bottom:`top`,left:`right`,right:`left`},WN={top:`left`,left:`top`},GN={top:`height`,left:`width`},KN={width:`totalWidth`,height:`totalHeight`},qN={},JN=typeof document<`u`?window.visualViewport:null,YN=new WeakMap,XN=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),ZN=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),QN=Symbol.for(`react-aria.i18n.locale`),$N=zw(),eP=new Set,tP=Ak.createContext(null),nP=function(e,t){return nP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nP(e,t)},Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z.apply(this,arguments)},rP=function(){return JSON.stringify(arguments)},iP=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e})(),aP={create:function(){return new iP}},oP={variadic:Qw,monadic:$w},(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`})(Q||={}),(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`})(sP||={}),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(cP||={}),lP=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,uP=/(?:[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,dP=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,fP=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pP=/^(@+)?(\+|#+)?[rs]?$/g,mP=/(\*)(0+)|(#+)(0+)|(0+)/g,hP=/^(0+)$/,gP={"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`]},_P=RegExp(`^${lP.source}*`),vP=RegExp(`${lP.source}*\$`),yP=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),bP=!!String.fromCodePoint,xP=!!Object.fromEntries,SP=!!String.prototype.codePointAt,CP=!!String.prototype.trimStart,wP=!!String.prototype.trimEnd,TP=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},EP=!0;try{DP=xT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),EP=DP.exec(`a`)?.[0]===`a`}catch{EP=!1}OP=yP?(function(e,t,n){return e.startsWith(t,n)}):(function(e,t,n){return e.slice(n,n+t.length)===t}),kP=bP?String.fromCodePoint:(function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t}),AP=xP?Object.fromEntries:(function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t}),jP=SP?(function(e,t){return e.codePointAt(t)}):(function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}}),MP=CP?(function(e){return e.trimStart()}):(function(e){return e.replace(_P,``)}),NP=wP?(function(e){return e.trimEnd()}):(function(e){return e.replace(vP,``)}),EP?(FP=xT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),PP=function(e,t){return FP.lastIndex=t,FP.exec(e)[1]??``}):PP=function(e,t){for(var n=[];;){var r=jP(e,t);if(r===void 0||TT(r)||ET(r))break;n.push(r),t+=r>=65536?2:1}return kP.apply(void 0,n)},IP=(function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(i===125&&e>0)break;if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:sP.pound,location:H(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Q.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ST(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:sP.literal,value:`<${r}/>`,location:H(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!ST(this.char()))return this.error(Q.INVALID_TAG,H(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:sP.tag,value:r,children:a,location:H(n,this.clonePosition())},err:null}:this.error(Q.INVALID_TAG,H(o,this.clonePosition()))):this.error(Q.UNMATCHED_CLOSING_TAG,H(s,this.clonePosition()))}return this.error(Q.UNCLOSED_TAG,H(n,this.clonePosition()))}return this.error(Q.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&wT(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=H(n,this.clonePosition());return{val:{type:sP.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!CT(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){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(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return kP.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),kP(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Q.EMPTY_ARGUMENT,H(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:sP.argument,value:r,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=PP(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:H(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(Q.EXPECT_ARGUMENT_TYPE,H(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=NP(l.val);if(u.length===0)return this.error(Q.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:H(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=H(r,this.clonePosition());if(s&&OP(s?.style,`::`,0)){var p=MP(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:sP.number,value:n,location:f,style:l.val},err:null}}if(p.length===0)return this.error(Q.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=yT(p,this.locale));var u={type:cP.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?dT(m):{}};return{val:{type:a===`date`?sP.date:sP.time,value:n,location:f,style:u},err:null}}return{val:{type:a===`number`?sP.number:a===`date`?sP.date:sP.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(Q.EXPECT_SELECT_ARGUMENT_OPTIONS,H(h,Z({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=H(r,this.clonePosition());return a===`select`?{val:{type:sP.select,value:n,options:AP(v.val),location:y},err:null}:{val:{type:sP.plural,value:n,options:AP(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(Q.INVALID_ARGUMENT_TYPE,H(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(Q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=fT(e)}catch{return this.error(Q.INVALID_NUMBER_SKELETON,t)}return{val:{type:cP.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?vT(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=H(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?Q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:H(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Q.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=H(r,this.clonePosition());return i?(a*=n,TP(a)?{val:a,err:null}:this.error(t,s)):this.error(e,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 e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=jP(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(OP(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&TT(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e})(),(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(LP||={}),RP=(function(e){Uw(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t})(Error),zP=(function(e){Uw(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,LP.INVALID_VALUE,i)||this}return t})(RP),BP=(function(e){Uw(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,LP.INVALID_VALUE,r)||this}return t})(RP),VP=(function(e){Uw(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,LP.MISSING_VALUE,n)||this}return t})(RP),(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(HP||={}),(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==HP.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return jT(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=Ww(o,[`formatters`]);this.ast=e.__parse(t,Z(Z({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=NT(e.formats,r),this.formatters=i&&i.formatters||FT(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(!(typeof Intl.Locale>`u`)){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=OT,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})(),UP=Symbol.for(`react-aria.i18n.locale`),WP=Symbol.for(`react-aria.i18n.strings`),KP=class e{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=IT(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[UP];if(GP===void 0){let t=window[WP];if(!t)return null;GP={};for(let r in t)GP[r]=new e({[n]:t[r]},n)}let r=GP?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}},qP=new Map,JP=new Map,YP=class{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=qP.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),qP.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=JP.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),JP.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}constructor(e,t){this.locale=e,this.strings=t}},XP=new WeakMap,ZP=1080,QP=24*ZP,$P=29,eF=12*ZP+793,$P*QP+eF,tF=new Map,nF=!1;try{nF=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}rF=!1;try{rF=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}if(iF={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},aF=class{format(e){let t=``;if(t=!nF&&this.options.signDisplay!=null?HT(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!rF){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=iF[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u2013 ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!nF&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!rF&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=VT(e,t),this.options=t}},oF=new Map,sF=typeof document<`u`?window.visualViewport:null,cF=Nk.createContext(null),lF=`react-aria-focus-scope-restore`,$=null,uF=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new dF({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&tE(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new dF({scopeRef:null}),this.fastMap.set(null,this.root)}},dF=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},fF=new uF,pF=[],mF=typeof document<`u`&&window.visualViewport,hF=0,_F=(0,Rk.createContext)({}),vF=zk.createContext(null),yF={},yF={dismiss:`تجاهل`},bF={},bF={dismiss:`Отхвърляне`},xF={},xF={dismiss:`Odstranit`},SF={},SF={dismiss:`Luk`},CF={},CF={dismiss:`Schließen`},wF={},wF={dismiss:`Απόρριψη`},TF={},TF={dismiss:`Dismiss`},EF={},EF={dismiss:`Descartar`},DF={},DF={dismiss:`Lõpeta`},OF={},OF={dismiss:`Hylkää`},kF={},kF={dismiss:`Rejeter`},AF={},AF={dismiss:`התעלם`},jF={},jF={dismiss:`Odbaci`},MF={},MF={dismiss:`Elutasítás`},NF={},NF={dismiss:`Ignora`},PF={},PF={dismiss:`閉じる`},FF={},FF={dismiss:`무시`},IF={},IF={dismiss:`Atmesti`},LF={},LF={dismiss:`Nerādīt`},RF={},RF={dismiss:`Lukk`},zF={},zF={dismiss:`Negeren`},BF={},BF={dismiss:`Zignoruj`},VF={},VF={dismiss:`Descartar`},HF={},HF={dismiss:`Dispensar`},UF={},UF={dismiss:`Revocare`},WF={},WF={dismiss:`Пропустить`},GF={},GF={dismiss:`Zrušiť`},KF={},KF={dismiss:`Opusti`},qF={},qF={dismiss:`Odbaci`},JF={},JF={dismiss:`Avvisa`},YF={},YF={dismiss:`Kapat`},XF={},XF={dismiss:`Скасувати`},ZF={},ZF={dismiss:`取消`},QF={},QF={dismiss:`關閉`},$F={},$F={"ar-AE":yF,"bg-BG":bF,"cs-CZ":xF,"da-DK":SF,"de-DE":CF,"el-GR":wF,"en-US":TF,"es-ES":EF,"et-EE":DF,"fi-FI":OF,"fr-FR":kF,"he-IL":AF,"hr-HR":jF,"hu-HU":MF,"it-IT":NF,"ja-JP":PF,"ko-KR":FF,"lt-LT":IF,"lv-LV":LF,"nb-NO":RF,"nl-NL":zF,"pl-PL":BF,"pt-BR":VF,"pt-PT":HF,"ro-RO":UF,"ru-RU":WF,"sk-SK":GF,"sl-SI":KF,"sr-SP":qF,"sv-SE":JF,"tr-TR":YF,"uk-UA":XF,"zh-CN":ZF,"zh-TW":QF},eI={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`},tI=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,nI=new WeakMap,rI=[],iI=Wk.createContext(null),aI=1500,oI=500,sI={},cI=0,lI=!1,uI=null,dI=null,fI=(0,Yk.createContext)(null),pI=(0,Yk.createContext)(null),mI=(0,Yk.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=vw(t,n,pI);let r=(0,Yk.useContext)(fI),i=JE(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=lC(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:Yk.createElement(IE,{portalContainer:e},Yk.createElement(XE,{...t,tooltipRef:n,isExiting:o}))}),hI=C(ge(),1),gI=(0,hI.default)(1e3)(e=>e===`left-end`?`left bottom`:e===`right-end`?`right bottom`:e===`left-start`?`left top`:e===`right-start`?`right top`:e.replace(`-`,` `)),M.div({width:500,height:500,paddingTop:100,overflowY:`scroll`,background:`#eee`,position:`relative`}),_I=(0,Xk.forwardRef)((e,t)=>Xk.createElement(`button`,{...e,ref:t,style:{width:120,height:50,margin:10}})),_I.displayName=`Trigger`,vI=({triggerOnFocusOnly:e=!1,placement:t=`top`,offset:n=8,tooltip:r,children:i,defaultVisible:a,startOpen:o,delayShow:s=400,delayHide:c=200,visible:l,onVisibleChange:u,...d})=>{let f=gI(t),p=YO.Children.only(i);o!==void 0&&CM("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,h]=(0,YO.useState)(a??o??!1),g=(0,YO.useCallback)(e=>{h(e),u?.(e)},[u]);return YO.createElement(YE,{delay:s,closeDelay:c,isOpen:l??m,onOpenChange:g,trigger:e?`focus`:void 0,...d},YO.createElement(PN,null,YO.cloneElement(p,{"aria-describedby":null})),YO.createElement(mI,{"data-testid":`tooltip`,placement:f,offset:n,onOpenChange:g,style:{outline:`none`},...d},r))},yI=({children:e,disableAllTooltips:t,shortcut:n,tooltip:r})=>{let i=(0,qO.useMemo)(()=>{let e=document?.body?.getAttribute(`data-shortcuts-enabled`)!==`false`;if(!(!r&&(!n||!e)))return[r,n&&e&&`[${zy(n)}]`].filter(Boolean).join(` `)},[n,r]);return i?qO.createElement(vI,{placement:`top`,tooltip:qO.createElement(SM,{note:i}),visible:!t&&void 0},e):qO.createElement(qO.Fragment,null,e)},yI.displayName=`InteractiveTooltipWrapper`,bI=(0,WO.forwardRef)(({as:e=`button`,asChild:t=!1,animation:n=`none`,size:r=`small`,appearance:i=`default`,variant:a=`outline`,padding:o=`medium`,disabled:s=!1,readOnly:c=!1,active:l,onClick:u,ariaLabel:d,ariaDescription:f=void 0,tooltip:p=void 0,shortcut:m=void 0,disableAllTooltips:h=!1,...g},_)=>{let v=t?yM:e,y;!c&&(d===void 0||d===``)&&(y=`ariaLabel`,gM(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${g.children}.`)),l!==void 0&&(y=`active`,gM("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:b,AriaDescription:x}=ZE(f),S=(0,WO.useMemo)(()=>m?By(m):void 0,[m]),[C,w]=(0,WO.useState)(!1);return(0,WO.useEffect)(()=>{let e=setTimeout(()=>{C&&w(!1)},1e3);return()=>clearTimeout(e)},[C]),WO.createElement(WO.Fragment,null,WO.createElement(yI,{disableAllTooltips:h,shortcut:m,tooltip:p||(d===!1?void 0:d)},WO.createElement(xI,{"data-deprecated":y,as:v,ref:_,appearance:i,variant:a,size:r,padding:o,$disabled:s||c,"aria-disabled":s||c?`true`:void 0,readOnly:c,active:l,animating:C,animation:n,onClick:s||c?void 0:e=>{u&&u(e),n!==`none`&&w(!0)},"aria-label":!c&&d!==!1?d:void 0,"aria-keyshortcuts":c?void 0:S,...c?{}:b,...g})),WO.createElement(x,null))}),bI.displayName=`Button`,xI=M(`button`,{shouldForwardProp:e=>le(e)})(({theme:e,appearance:t,variant:n,size:r,$disabled:i,readOnly:a,active:o,animating:s,animation:c=`none`,padding:l})=>{let u=t===`agentic`?{foreground:e.fgColor.agentic,background:e.bgColor.agentic,outline:e.borderColor.agentic}:{foreground:e.color.secondary,background:e.button.background,outline:e.button.border};return{border:0,cursor:a?`inherit`:i?`not-allowed`:`pointer`,display:`inline-flex`,gap:`6px`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,padding:l===`none`?0:l===`small`&&r===`small`?`0 7px`:l===`small`&&r===`medium`?`0 9px`:r===`small`?`0 10px`:r===`medium`?`0 12px`:0,height:r===`small`?`28px`:`32px`,position:`relative`,textAlign:`center`,textDecoration:`none`,transitionProperty:`background, box-shadow`,transitionDuration:`150ms`,transitionTimingFunction:`ease-out`,verticalAlign:`top`,whiteSpace:`nowrap`,userSelect:`none`,opacity:i&&!a?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:`1`,background:n===`solid`?e.base===`light`?u.foreground:he(.18,u.foreground):n===`outline`?u.background:n===`ghost`&&o?me(.93,t===`agentic`?e.bgColor.agentic:e.barSelectedColor):`transparent`,color:n===`solid`?e.color.lightest:n===`outline`?t===`agentic`?e.fgColor.agentic:e.input.color:n===`ghost`&&o?e.base===`light`?he(.1,u.foreground):u.foreground:n===`ghost`?e.textMutedColor:e.input.color,boxShadow:n===`outline`?`${u.outline} 0 0 0 1px inset`:`none`,borderRadius:e.input.borderRadius,flexShrink:0,...!a&&{"&:hover":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let t=u.foreground;return n===`solid`&&(t=e.base===`light`?re(.1,u.foreground):he(.3,u.foreground)),n===`outline`&&(t=u.background),n===`ghost`?me(.86,u.foreground):e.base===`light`?he(.02,t):re(.03,t)})()},"&:active":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let r=u.foreground;return n===`solid`&&(r=u.foreground),n===`outline`&&(r=u.background),n===`ghost`?t===`agentic`?e.bgColor.agentic:e.background.hoverable:e.base===`light`?he(.02,r):re(.03,r)})()},"&:focus-visible":{outline:`2px solid ${j(u.foreground,1)}`,outlineOffset:2,zIndex:`1`},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:`0 0 auto`,animation:s&&c!==`none`?`${e.animation[c]} 1000ms ease-out`:``}}}),SI=(0,WO.forwardRef)((e,t)=>(gM("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),WO.createElement(bI,{ref:t,...e,"data-deprecated":`IconButton`}))),SI.displayName=`IconButton`,CI=(0,Qk.forwardRef)(({pressed:e,...t},n)=>Qk.createElement(wI,{role:`switch`,"aria-checked":e,ref:n,pressed:e,...t})),CI.displayName=`ToggleButton`,wI=M(bI)(({theme:e,variant:t=`outline`,pressed:n})=>({...n?{...t===`solid`?{background:e.base===`lighten`?he(.1,e.color.secondary):he(.2,e.color.secondary)}:{},...t===`outline`?{background:me(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t===`ghost`?{background:me(.93,e.barSelectedColor),color:e.base===`light`?he(.1,e.color.secondary):e.color.secondary}:{}}:{}})),TI=M.li(({active:e,theme:t})=>({display:`flex`,alignItems:`center`,justifyContent:`space-between`,flex:`0 0 auto`,overflow:`hidden`,minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?`var(--listbox-item-active-color)`:t.color.defaultText,"--listbox-item-active-color":t.base===`light`?he(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?`var(--listbox-item-active-color)`:t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:`not-allowed`},'&[aria-selected="true"]':{color:`var(--listbox-item-active-color)`,fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":`var(--listbox-item-active-color)`},"&:not(:hover, :has(:focus-visible)) :not(input) + input":{position:`absolute`,opacity:0},'&[role="option"]':{cursor:`pointer`,borderRadius:t.input.borderRadius,outlineOffset:-2,padding:`0 9px`,gap:8,"&:hover":{background:me(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionBehavior:`allow-discrete`,transitionDuration:`var(--transition-duration, 0.2s)`,transitionProperty:`opacity, block-size, content-visibility`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}}),({transitionStatus:e})=>{switch(e){case`preEnter`:case`exiting`:case`exited`:return{opacity:0,blockSize:0,contentVisibility:`hidden`};default:return{opacity:1,blockSize:`auto`,contentVisibility:`visible`}}}),EI=M(TI)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:`auto`,marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transitionProperty:`inline-size, margin-left, opacity, padding-inline`,transitionDuration:`var(--transition-duration, 0.2s)`}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),DI=M(bI)(({size:e})=>({gap:e===`small`?6:8,"&:focus-visible":{outlineOffset:-2}})),OI=M(CI)({"&:focus-visible":{outlineOffset:-2}}),kI=(0,UO.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return UO.createElement(DI,{...r,variant:n,padding:e,size:t,ref:i})}),AI=(0,UO.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return UO.createElement(OI,{...r,variant:n,padding:e,size:t,ref:i})}),jI=M(kI)(({theme:e})=>({height:`auto`,minHeight:32,flex:`0 1 100%`,textAlign:`start`,justifyContent:`space-between`,fontWeight:`inherit`,color:`inherit`,"&:hover":{color:`inherit`},"& input:enabled:focus-visible":{outline:`none`},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),MI=e=>UO.createElement(jI,{as:`a`,...e}),NI=M.div(({theme:e})=>({display:`flex`,flexDirection:`column`,justifyContent:`center`,flexGrow:1,minWidth:0,padding:`8px 0`,lineHeight:`16px`,"& > *":{margin:0,whiteSpace:`normal`},"& > span":{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},"& small":{fontSize:`inherit`,color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),PI=M.div({display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`0 0 14px`,width:14,height:14,color:`var(--listbox-item-muted-color)`}),FI=Object.assign(M.ul(({theme:e,onClick:t})=>({listStyle:`none`,margin:0,padding:4,cursor:t?`pointer`:`default`,"& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:TI,HoverItem:EI,Button:kI,Toggle:AI,Action:jI,Link:MI,Text:NI,Icon:PI}),II=M.div(({collapsed:e=!1})=>({blockSize:e?0:`auto`,contentVisibility:e?`hidden`:`visible`,transform:e?`translateY(-10px)`:`translateY(0)`,opacity:+!e,overflow:`hidden`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s)`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`none`}})),Object.assign(function({children:e,summary:t,collapsed:n,disabled:r,initialCollapsed:i,storageKey:a,state:o,...s}){let c=RI({collapsed:n,disabled:r,initialCollapsed:i,storageKey:a}),l=o||c;return $k.createElement($k.Fragment,null,typeof t==`function`?t(l):t,$k.createElement(II,{...s,id:l.contentId,collapsed:l.isCollapsed,"aria-hidden":l.isCollapsed},typeof e==`function`?e(l):e))},{Content:II}),LI=(e,t)=>{let[n,r]=(0,$k.useState)(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return(0,$k.useEffect)(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]},RI=({collapsed:e,disabled:t,initialCollapsed:n=e,storageKey:r})=>{let[i,a]=LI(r&&`useCollapsible:${r}`,!!n);(0,$k.useEffect)(()=>{e!==void 0&&a(e)},[e,a]);let o=(0,$k.useCallback)(e=>{e?.stopPropagation(),t||a(e=>!e)},[t,a]),s=lS();return{contentId:s,isCollapsed:i,isDisabled:!!t,setCollapsed:a,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":s,"aria-expanded":!i}}},zI=(e,t)=>t&&t in e?e[t]:void 0,BI=(e,t)=>zI(e.fgColor,t)??zI(e.color,t),VI=(e,t,n)=>zI(e.borderColor,t)??zI(e.color,n),HI=(e,t)=>zI(e.bgColor,t)??e.background.content,UI=(e,t)=>{let n=HI(e,t);return`linear-gradient(${n}, ${n}), ${e.background.content}`},WI=de({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),GI=de({"0%":{transform:`rotate(0deg)`},"10%":{transform:`rotate(20deg)`},"40%":{transform:`rotate(170deg)`},"50%":{transform:`rotate(180deg)`},"60%":{transform:`rotate(190deg)`},"90%":{transform:`rotate(340deg)`},"100%":{transform:`rotate(360deg)`}}),KI=de({to:{backgroundPositionX:`36%`}}),qI=M.div(({color:e,theme:t})=>({color:BI(t,e),borderRadius:t.appBorderRadius,background:UI(t,e),position:`relative`})),JI=M.div(({animation:e=`none`,color:t,outlineColor:n=t,theme:r})=>({position:`relative`,width:`100%`,padding:1,overflow:`hidden`,backgroundColor:HI(r,t),borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e===`none`&&VI(r,t,n)||r.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:`box-shadow 1s`,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`,transition:`all var(--transition-duration, 0.2s), box-shadow 1s`,transitionBehavior:`allow-discrete`},"@media (prefers-reduced-motion: reduce)":{transition:`box-shadow 1s`},"&:before":{content:`""`,display:e===`none`?`none`:`block`,position:`absolute`,left:0,top:0,width:`100%`,height:`100%`,opacity:1,...e===`rainbow`&&{animation:`${KI} 10s infinite linear, ${WI} 60s infinite linear`,backgroundImage:`linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))`,backgroundSize:`1000%`,backgroundPositionX:`100%`},...e===`spin`&&{left:`50%`,top:`50%`,marginLeft:`calc(max(100vw, 100vh) * -0.5)`,marginTop:`calc(max(100vw, 100vh) * -0.5)`,height:`max(100vw, 100vh)`,width:`max(100vw, 100vh)`,animation:`${GI} 5s linear infinite`,backgroundImage:n===`negative`?`conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)`:n===`agentic`?r.base===`dark`?`conic-gradient(transparent 90deg, rgba(114,58,166,0.65) 150deg, rgba(157,98,214,0.6) 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #b6a7ff 150deg, #d8aeff 210deg, transparent 270deg)`:`conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)`}}})),Object.assign((0,eA.forwardRef)(function({outlineAnimation:e=`none`,color:t,outlineColor:n,outlineAttrs:r={},...i},a){return eA.createElement(JI,{animation:e,color:t,outlineColor:n,ref:a,...r},eA.createElement(qI,{color:t,...i}))}),{Content:qI,Outline:JI}),{deprecate:YI}=__STORYBOOK_MODULE_CLIENT_LOGGER__,XI=[`preEnter`,`entering`,`entered`,`preExit`,`exiting`,`exited`,`unmounted`],ZI=e=>({_s:e,status:XI[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),QI=e=>e?6:5,$I=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return QI(t)}},eL=e=>typeof e==`object`?[e.enter,e.exit]:[e,e],tL=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),nL=(e,t,n,r,i)=>{clearTimeout(r.current);let a=ZI(e);t(a),n.current=a,i&&i({current:a})},rL=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:i,initialEntered:a,mountOnEnter:o,unmountOnExit:s,onStateChange:c}={})=>{let[l,u]=(0,nA.useState)(()=>ZI(a?2:QI(o))),d=(0,nA.useRef)(l),f=(0,nA.useRef)(),[p,m]=eL(i),h=(0,nA.useCallback)(()=>{let e=$I(d.current._s,s);e&&nL(e,u,d,f,c)},[c,s]);return[l,(0,nA.useCallback)(i=>{let a=e=>{switch(nL(e,u,d,f,c),e){case 1:p>=0&&(f.current=setTimeout(h,p));break;case 4:m>=0&&(f.current=setTimeout(h,m));break;case 0:case 3:f.current=tL(a,e)}},o=d.current.isEnter;typeof i!=`boolean`&&(i=!o),i?!o&&a(e?+!n:2):o&&a(t?r?3:4:QI(s))},[h,c,e,t,n,r,p,m,s]),h]},iL={},w(iL,{Actions:()=>OL,Close:()=>yL,CloseButton:()=>xL,Col:()=>wL,Container:()=>vL,Content:()=>SL,Description:()=>DL,Dialog:()=>bL,Error:()=>AL,ErrorWrapper:()=>kL,Header:()=>TL,Overlay:()=>_L,Row:()=>CL,Title:()=>EL}),{deprecate:aL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,(0,aA.createContext)(null),(0,aA.createContext)(null),(0,aA.createContext)(null),(0,aA.createContext)(null),(0,aA.createContext)(null),oL=(0,aA.createContext)({}),sL=(0,oA.forwardRef)(function(e,t){[e,t]=vw(e,t,oL);let{children:n,level:r=3,className:i,...a}=e,o=`h${r}`;return oA.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),cL=(0,sA.createContext)({}),lL=(0,sA.forwardRef)(function(e,t){[e,t]=vw(e,t,cL);let{elementType:n=`span`,...r}=e;return sA.createElement(n,{className:`react-aria-Text`,...r,ref:t})}),uL=de({from:{opacity:0},to:{opacity:1}}),dL=de({from:{opacity:1},to:{opacity:0}}),fL=de({from:{maxHeight:0},to:{}}),pL=de({from:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`},to:{opacity:1,transform:`translate(-50%, -50%) scale(1)`}}),mL=de({from:{opacity:1,transform:`translate(-50%, -50%) scale(1)`},to:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`}}),hL=de({from:{opacity:0,maxHeight:`0px`},to:{opacity:1,maxHeight:`80vh`}}),gL=de({from:{opacity:1,maxHeight:`80vh`},to:{opacity:0,maxHeight:`0px`}}),_L=M.div(({$status:e,$transitionDuration:t})=>({backdropFilter:`blur(24px)`,background:`rgba(0, 0, 0, 0.4)`,position:`absolute`,inset:0,width:`100%`,height:`100%`,zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e===`exiting`||e===`preExit`?`${dL} ${t}ms`:`${uL} ${t}ms`,animationFillMode:`forwards`}})),vL=M.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:`0px 4px 67px 0px #00000040`,position:`absolute`,overflow:`auto`,zIndex:1e5,"&:focus-visible":{outline:`none`}}),({theme:e,width:t,height:n,$variant:r,$status:i,$transitionDuration:a})=>r===`dialog`?{top:`50%`,left:`50%`,width:t??740,height:n??`auto`,maxWidth:`calc(100% - 40px)`,maxHeight:`85vh`,"@media (prefers-reduced-motion: no-preference)":{willChange:`transform, opacity`,animationTimingFunction:`cubic-bezier(0.32, 0.72, 0, 1)`,animation:i===`exiting`||i===`preExit`?`${mL} ${a}ms`:`${pL} ${a}ms`,animationFillMode:`forwards !important`},"@media (prefers-reduced-motion: reduce)":{transform:`translate(-50%, -50%) scale(1)`}}:{bottom:`0`,left:`0`,right:`0`,borderRadius:`10px 10px 0 0`,overflow:`hidden`,width:t??`100%`,height:n??`80%`,maxWidth:`100%`,background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:`allow-keywords`},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:`cubic-bezier(.9,.16,.77,.64)`,animation:i===`exiting`||i===`preExit`?`${gL} ${a}ms`:`${hL} ${a}ms`,animationFillMode:`forwards !important`}}),yL=({asChild:e,children:t,onClick:n,...r})=>{let{close:i}=(0,iA.useContext)(jL);if(e&&iA.isValidElement(t)){let e=e=>{n?.(e),t.props.onClick?.(e),i?.()};return iA.cloneElement(t,{...r,onClick:e})}return iA.createElement(bI,{type:`button`,padding:`small`,ariaLabel:`Close modal`,variant:`ghost`,shortcut:[`Escape`],onClick:i},iA.createElement(Ae,null))},bL={Close:()=>(aL(`Modal.Dialog.Close is deprecated, please use Modal.Close instead.`),iA.createElement(yL,{"data-deprecated":`Modal.Dialog.Close`}))},xL=({ariaLabel:e,...t})=>(aL(`Modal.CloseButton is deprecated, please use Modal.Close instead.`),iA.createElement(yL,{asChild:!0},iA.createElement(bI,{ariaLabel:e||`Close`,"data-deprecated":`Modal.CloseButton`,...t},iA.createElement(Ae,null)))),SL=M.div({display:`flex`,flexDirection:`column`,margin:16,gap:16}),CL=M.div({display:`flex`,justifyContent:`space-between`,gap:16}),wL=M.div({display:`flex`,flexDirection:`column`,gap:4}),TL=({hasClose:e=!0,onClose:t,...n})=>iA.createElement(CL,null,iA.createElement(wL,{...n}),e&&iA.createElement(yL,{onClick:t})),EL=M(e=>iA.createElement(sL,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),DL=M(lL)(({theme:e})=>({position:`relative`,zIndex:1,margin:0,fontSize:e.typography.size.s2})),OL=M.div({display:`flex`,flexDirection:`row-reverse`,gap:8}),kL=M.div(({theme:e})=>({maxHeight:100,overflow:`auto`,"@media (prefers-reduced-motion: no-preference)":{animation:`${fL} 300ms, ${uL} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:`relative`,padding:`8px 16px`}})),AL=({children:e,...t})=>iA.createElement(kL,{...t},iA.createElement(`div`,null,e)),jL=(0,tA.createContext)({}),Object.assign($E,iL),M.div(({theme:e,col:t,row:n=1})=>t?{display:`inline-block`,verticalAlign:`inherit`,"& > *":{marginLeft:t*e.layoutMargin,verticalAlign:`inherit`},[`& > *:first-child${se}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${se}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.div(),M.div(({theme:e})=>({padding:30,textAlign:`center`,color:e.color.defaultText,fontSize:e.typography.size.s2-1})),ML=M.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||`auto`,transformOrigin:e?`center top`:`left top`,transform:`scale(${1/t})`})),NL=class extends uA.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute(`data-is-storybook`,e.active?`true`:`false`),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}render(){let{children:e}=this.props;return uA.createElement(uA.Fragment,null,e)}},PL={Element:rD,IFrame:NL},{global:FL}=__STORYBOOK_MODULE_GLOBAL__,{document:IL}=FL,LL=M.strong(({theme:e})=>({color:e.color.orange})),RL=M.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:`underline`})),zL=M.em(({theme:e})=>({color:e.textMutedColor})),BL=/(Error): (.*)\n/,VL=/at (?:(.*) )?\(?(.+)\)?/,HL=/([^@]+)?(?:\/<)?@(.+)?/,UL=/([^@]+)?@(.+)?/,WL=({error:e})=>{if(!e)return dA.createElement(dA.Fragment,null,`This error has no stack or message`);if(!e.stack)return dA.createElement(dA.Fragment,null,e.message||`This error has no stack or message`);let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
198
198
 
199
199
  ${t}`);let n=t.match(BL);if(!n)return dA.createElement(dA.Fragment,null,t);let[,r,i]=n,[,...a]=t.split(/\n/).slice(1).map(e=>{let t=e.match(VL)||e.match(HL)||e.match(UL);return t?{name:(t[1]||``).replace(`/<`,``),location:t[2].replace(IL.location.origin,``)}:null}).filter(Boolean);return dA.createElement(dA.Fragment,null,dA.createElement(`span`,null,r),`: `,dA.createElement(LL,null,i),dA.createElement(`br`,null),a.map((e,t)=>e?.name?dA.createElement(dA.Fragment,{key:t},` `,`at `,dA.createElement(RL,null,e.name),` (`,dA.createElement(zL,null,e.location),`)`,dA.createElement(`br`,null)):dA.createElement(dA.Fragment,{key:t},` `,`at `,dA.createElement(zL,null,e?.location),dA.createElement(`br`,null))))},GL=M.input(({theme:e})=>({appearance:`none`,backgroundColor:e.input.background,border:`1px solid ${e.base===`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,borderRadius:2,display:`grid`,flexShrink:0,height:14,margin:0,placeContent:`center`,transition:`background-color 0.1s`,width:14,"&:enabled":{cursor:`pointer`},"&:disabled":{backgroundColor:`transparent`,borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base===`dark`?ue.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:`none`,backgroundColor:ue.secondary},"&:checked::before":{content:`""`,width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:`""`,width:8,height:2,background:`white`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),KL=e=>fA.createElement(GL,{...e,type:`checkbox`}),qL=M.label(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,margin:`0 15px`,padding:`8px 0`,"&:last-child":{marginBottom:`3rem`}})),JL=M.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,lineHeight:`16px`})),YL=({label:e,children:t,...n})=>pA.createElement(qL,{...n},e?pA.createElement(JL,null,pA.createElement(`span`,null,e)):null,t),XL=(({size:e})=>{switch(e){case`100%`:return{width:`100%`};case`flex`:return{flex:1};default:return{display:`inline`}}}),ZL=(({align:e})=>{switch(e){case`end`:return{textAlign:`right`};case`center`:return{textAlign:`center`};default:return{textAlign:`left`}}}),QL=(({valid:e,theme:t})=>{switch(e){case`valid`:return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case`error`:return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case`warn`:return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}}),$L={appearance:`none`,border:`0 none`,boxSizing:`inherit`,display:`block`,margin:` 0`,background:`transparent`,padding:0,fontSize:`inherit`,position:`relative`},eR=(({theme:e})=>({...$L,transition:`box-shadow 200ms ease-out, opacity 200ms ease-out`,color:e.input.color||`inherit`,background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:`20px`,padding:`6px 10px`,boxSizing:`border-box`,height:32,'&[type="file"]':{height:`auto`},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:`none`,"@media (forced-colors: active)":{outline:`1px solid highlight`}},'&[disabled], &[aria-disabled="true"]':{background:e.base===`light`?e.color.lighter:`transparent`,cursor:`not-allowed`},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),tR=M.div({position:`relative`,width:`100%`}),nR=M.div(({theme:e})=>({position:`absolute`,left:0,right:0,top:0,bottom:0,display:`flex`,alignItems:`center`,pointerEvents:`none`,overflow:`hidden`,color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:n,padding:r}=eR(e);return{fontSize:t,lineHeight:n,padding:r}}),rR=Object.assign(M((0,hA.forwardRef)(function({size:e,valid:t,align:n,value:r,suffix:i,...a},o){let s=lS();return mA.createElement(tR,null,mA.createElement(`input`,{...a,value:r,ref:o,"aria-describedby":i?s:void 0}),i&&mA.createElement(nR,{"aria-hidden":!0},mA.createElement(`span`,null,r),mA.createElement(`span`,{id:s},i)))}))(eR,XL,ZL,QL,{minHeight:32,width:`100%`}),{displayName:`Input`}),iR=M.input(({theme:e})=>({appearance:`none`,backgroundColor:e.input.background,border:`1px solid ${e.base===`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,borderRadius:8,display:`grid`,flexShrink:0,height:16,margin:-1,placeContent:`center`,transition:`background-color 0.1s`,width:16,"&:enabled":{cursor:`pointer`},"&:disabled":{backgroundColor:`transparent`,borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base===`dark`?ue.dark:e.color.mediumdark,borderColor:e.base===`dark`?ue.dark:e.color.mediumdark},"&:checked":{backgroundColor:ue.secondary,borderColor:ue.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),aR=e=>gA.createElement(iR,{...e,type:`radio`}),oR=M.select(XL,({theme:e})=>({appearance:`none`,background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:`6px 30px 6px 10px`,"@supports (appearance: base-select)":{appearance:`base-select`,background:e.input.background,padding:`6px 10px`},transition:`box-shadow 200ms ease-out, opacity 200ms ease-out`,color:e.input.color||`inherit`,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:`20px`,boxSizing:`border-box`,border:`none`,cursor:`pointer`,"& > button":{display:`flex`,alignItems:`center`,justifyContent:`space-between`,width:`100%`,gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:`none`,boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:`none`},"&::picker(select)":{appearance:`base-select`,border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base===`light`?ae(e.background.app):e.background.app,filter:`
200
200
  drop-shadow(0 5px 5px rgba(0,0,0,0.05))
@@ -202,7 +202,7 @@ ${t}`);let n=t.match(BL);if(!n)return dA.createElement(dA.Fragment,null,t);let[,
202
202
  `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:`default`,transition:`opacity 100ms ease-in-out, transform 100ms ease-in-out`,transformOrigin:`top`,transform:`translateY(0)`,opacity:1,"@starting-style":{transform:`translateY(-0.25rem) scale(0.95)`,opacity:0}},"& optgroup label":{display:`block`,padding:`3px 6px`},"& option":{lineHeight:`18px`,padding:`7px 10px`,borderRadius:4,outline:`none`,cursor:`pointer`,color:e.color.defaultText,"&::checkmark":{display:`none`},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:`transparent`,cursor:`default`,color:e.color.defaultText}}})),sR=({children:e,...t})=>_A.createElement(oR,{...t},!xe()&&_A.createElement(`button`,null,_A.createElement(`selectedcontent`,null),_A.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},_A.createElement(`path`,{d:`m6 9 6 6 6-6`}))),_A.createElement(`optgroup`,null,e)),cR=xA.useLayoutEffect,lR=function(e){var t=bA.useRef(e);return cR(function(){t.current=e}),t},uR=function(e,t){if(typeof e==`function`){e(t);return}e.current=t},dR=function(e,t){var n=SA.useRef();return SA.useCallback(function(r){e.current=r,n.current&&uR(n.current,null),n.current=t,t&&uR(t,r)},[t])},fR={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`},pR=function(e){Object.keys(fR).forEach(function(t){e.style.setProperty(t,fR[t],`important`)})},mR=pR,hR=null,gR=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize},_R=function(){},vR=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})},yR=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],bR=!!document.documentElement.currentStyle,xR=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=vR(yR,t),r=n.boxSizing;return r===``?null:(bR&&r===`border-box`&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+`px`),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})},SR=xR,CR=function(e,t){aD(document.body,`reset`,function(n){e.current.form===n.target&&t(n)})},wR=function(e){aD(window,`resize`,e)},TR=function(e){aD(document.fonts,`loadingdone`,e)},ER=[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`],DR=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?_R:a,s=e.onHeightChange,c=s===void 0?_R:s,l=ye(e,ER),u=l.value!==void 0,d=yA.useRef(null),f=dR(d,t),p=yA.useRef(0),m=yA.useRef(),h=function(){var e=d.current,t=n&&m.current?m.current:SR(e);if(t){m.current=t;var a=iD(t,e.value||e.placeholder||`x`,i,r),o=a[0],s=a[1];p.current!==o&&(p.current=o,e.style.setProperty(`height`,o+`px`,`important`),c(o,{rowHeight:s}))}};return yA.useLayoutEffect(h),CR(d,function(){if(!u){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&h()})}}),wR(h),TR(h),yA.createElement(`textarea`,pe({},l,{onChange:function(e){u||h(),o(e)},ref:f}))},OR=yA.forwardRef(DR),kR=Object.assign(M((0,vA.forwardRef)(function({size:e,valid:t,align:n,...r},i){return vA.createElement(OR,{...r,ref:i})}))(eR,XL,ZL,QL,({height:e=400})=>({overflow:`visible`,maxHeight:e})),{displayName:`Textarea`}),AR=Object.assign(M.form({boxSizing:`border-box`,width:`100%`}),{Field:YL,Input:rR,Select:sR,Textarea:kR,Button:bI,Checkbox:KL,Radio:aR}),jR=M.div(({hasCloseButton:e,padding:t})=>({display:`inline-block`,position:`relative`,minHeight:e?36:void 0,zIndex:2147483647,colorScheme:`light dark`,padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
203
203
  drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
204
204
  drop-shadow(0 1px 3px rgba(0,0,0,0.1))
205
- `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base===`light`?ae(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t===`inverse`&&{background:e.base===`light`?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t===`positive`||t===`negative`||t===`warning`)&&{background:e.background[t],color:e.color[`${t}Text`]}),MR=M(bI)({position:`absolute`,top:4,right:4}),NR=(0,CA.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>CA.createElement(jR,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&CA.createElement(MR,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},CA.createElement(Ne,null)))),NR.displayName=`Popover`,PR=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>wA.createElement(FI.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??wA.createElement(wA.Fragment,null,r&&wA.createElement(FI.Icon,null,r),wA.createElement(FI.Text,null,wA.createElement(`p`,null,t),n&&wA.createElement(`small`,null,n)),i)),PR.displayName=`SelectOption`,FR=5,IR=Symbol.for(`undefined`),LR=M(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4}),RR=M.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12})),zR=M(bI)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:me(.93,n.barSelectedColor),color:n.base===`light`?he(.1,n.color.secondary):n.color.secondary}:{}),BR=M.div({position:`fixed`,inset:0,zIndex:1e3}),VR=({children:e,handleClose:t,triggerRef:n})=>{let r=U.useRef(null);fw({ref:r,onInteractOutside:t}),(0,U.useEffect)(()=>{if(r.current)return VE([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=GT({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=SE({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=ie();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},U.createElement(WE,{disableFocusManagement:!0,...a},U.createElement(BR,{...o}),U.createElement(NR,{hasChrome:!0,ref:r,padding:0,...i},e))},HR=(0,U.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,U.useState)(h.defaultOpen||!1),[y,b]=(0,U.useState)(!1),x=US(g),S=(0,U.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,U.useRef)(null),T=qE({isOpen:_&&!n,onOpenChange:v}),E=(0,U.useCallback)(()=>{v(!1),b(!0)},[]);(0,U.useEffect)(()=>{!T.isOpen&&y&&(x.current?.ownerDocument?.defaultView&&x.current.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,U.useState)(fD(r,i)),k=(0,U.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(lD(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(lD(e.value)),n=[...t??[],e]),d?.(n.map(e=>lD(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(lD(e.value)),d?.([lD(e.value)]),[e]):t)},[a,d,l,u,o]),ee=(0,U.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:U.createElement(Ge,null),description:void 0,children:void 0}:void 0,[o,c]),A=(0,U.useMemo)(()=>ee?[ee,...r]:r,[r,ee]);(0,U.useEffect)(()=>{i&&O(fD(r,i))},[i,r]);let[j,te]=(0,U.useState)(void 0),ne=(0,U.useCallback)((e,t=!0)=>{te(cD(e)),!a&&t&&k(cD(e))},[a,k]),re=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[e===1?0:Math.min(e,A.length-1)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:uD(e.value)===j.value),n=t+e,r;r=n>=A.length&&t===A.length-1?A[0]:A[Math.min(A.length-1,n)],ne(r)},[_,j,ne,A]),ie=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[Math.max(0,A.length-e)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:uD(e.value)===j.value),n=t-e,r;r=n<0&&t===0?A[A.length-1]:A[Math.max(0,n)],ne(r)},[_,j,ne,A]),ae=(0,U.useCallback)(e=>{let t=t=>{e.preventDefault(),ne(A[t]),v(!0)},n=A.findIndex(e=>D.some(t=>t.value===uD(e.value))),r=n!==-1,i=ee&&!r?1:0,a=A.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+FR,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-FR))},[A,ee,ne,D]),oe=(0,U.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?re():e.key===`ArrowUp`?ie():e.key===`Home`?ne(A[0]):e.key===`End`?ne(A[A.length-1]):e.key===`PageDown`?re(FR):e.key===`PageUp`&&ie(FR)},[E,re,ie,A,ne]);(0,U.useEffect)(()=>{if(_&&j){let e=document.getElementById(dD(S,j));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,j,S]);let se=(0,U.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return U.createElement(U.Fragment,null,U.createElement(zR,{...h,variant:`ghost`,ariaLabel:se,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:ae,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&U.createElement(U.Fragment,null,t,m&&D[0]?.title||e),a&&U.createElement(U.Fragment,null,t,e,!!D.length&&U.createElement(RR,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&U.createElement(VR,{handleClose:E,triggerRef:x},U.createElement(LR,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:oe,tabIndex:_?0:-1},A.map(e=>({option:cD(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==ee,r=t===ee;return U.createElement(PR,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?U.createElement(AR.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:dD(S,t),isActive:_&&j?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>ne(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))}),HR.displayName=`Select`,{deprecate:UR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,WR=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},GR=class extends WR{filter(e,t,n){let[r,i]=pD(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},KR=class extends WR{},KR.type=`header`,qR=class extends WR{},qR.type=`loader`,JR=class extends GR{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},JR.type=`item`,YR=class extends GR{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},YR.type=`section`,XR=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=pD(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}},ZR=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},QR=class e extends ZR{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},$R=class extends ZR{get isConnected(){return this.isMounted}createElement(e){return new QR(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof QR&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof QR&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}},typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}ez=(0,DA.createContext)(!1),tz=(0,W.createContext)(!1),nz=(0,W.createContext)(null),rz=typeof W.useSyncExternalStore==`function`?W.useSyncExternalStore:bD,iz=(0,W.createContext)(null),az=(0,W.createContext)(null),oz=(0,AA.createContext)({}),gD(function(e,t){[e,t]=vw(e,t,oz);let{elementType:n=`label`,...r}=e;return AA.createElement(n,{className:`react-aria-Label`,...r,ref:t})}),sz=(0,jA.createContext)(null),(0,jA.forwardRef)(function(e,t){[e,t]=vw(e,t,sz);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=vC(n,r,i);let[o,s]=yw(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=AD({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=gw({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=CS(e,{global:!0});return jA.createElement(`div`,{...V(f,d,c),ref:t,slot:e.slot||void 0},jA.createElement(oz.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))}),cz=(0,MA.createContext)({}),gD(function(e,t){[e,t]=vw(e,t,cz),e=MD(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=jD(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=gE(e),{hoverProps:l,isHovered:u}=dw({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=gw({...e,values:d,defaultClassName:`react-aria-Button`}),p=lS(i.id),m=lS(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,MA.useRef)(r);(0,MA.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&O(e,`assertive`),g.current=r},[r,s,h,p]);let _=CS(e,{global:!0});return delete _.onClick,MA.createElement(`button`,{...V(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},MA.createElement(sz.Provider,{value:{id:m}},f.children))}),lz=(0,G.createContext)(null),uz=(0,G.createContext)(null),dz=(0,G.forwardRef)(function(e,t){[e,t]=vw(e,t,lz);let n=(0,G.useContext)(Gz),r=qE(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=lC(t,i.isOpen)||e.isExiting||!1,o=_D(),{direction:s}=Hw();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),G.createElement(G.Fragment,null,t)}return i&&!i.isOpen&&!a?null:G.createElement(ND,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})}),fz=(0,NA.createContext)(null),TD(`section`,(e,t,n)=>{let{name:r,render:i}=(0,NA.useContext)(fz);return i(e,t,n,`react-aria-Section`)}),pz={CollectionRoot({collection:e,renderDropIndicator:t}){return PD(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return PD(e,t,n)}},mz=(0,NA.createContext)(pz),hz=(0,PA.createContext)(null),gz=(0,PA.createContext)(null),_z=(0,FA.createContext)({}),wD(KR,function(e,t){return[e,t]=vw(e,t,_z),FA.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)}),vz=(0,IA.createContext)({}),(0,IA.forwardRef)(function(e,t){return[e,t]=vw(e,t,vz),IA.createElement(`kbd`,{dir:`ltr`,...e,ref:t})}),yz=(0,LA.createContext)({}),bz=class extends WR{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},bz.type=`separator`,wD(bz,function(e,t){[e,t]=vw(e,t,yz);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=LD({...s,elementType:n,orientation:r}),u=CS(e,{global:!0});return LA.createElement(c,{...V(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),xz=new WeakMap,Sz=new WeakMap,Cz=1e3,wz=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:zD(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},Tz=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`):null}getKeyLeftOf(e){let t=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!YS(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!YS(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new wz(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new wz(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}},XD.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:ZD(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];UA.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}},Ez=XD,Dz=class{build(e,t){return this.context=t,QD(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(WA.isValidElement(t)&&t.type===WA.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];WA.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(WA.isValidElement(e.element)&&e.element.type===WA.Fragment){let i=[];WA.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(WA.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:$D(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${eO(t.type)}> in <${eO(r?.type??`unknown parent type`)}>. Only <${eO(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:QD(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}},Oz=new WeakMap,kz=2,Az=50,jz=1e3,Mz=Math.PI/12,Nz=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},Pz=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},Fz=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&aO(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&aO(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new Pz([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new Pz(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?aO(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new Pz(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Pz([t],t,t):new Pz;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new Pz;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(rO(nO(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}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 Pz)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||n!=null&&(t=n.props)!=null&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!((n=this.collection.getItem(e))!=null&&(t=n.props)!=null&&t.isDisabled))}isLink(e){var t,n;return!!((n=this.collection.getItem(e))!=null&&(t=n.props)!=null&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}},Iz=(0,K.createContext)(null),Lz=(0,K.createContext)(null),Rz=(0,K.createContext)(null),zz=(0,K.createContext)(null),Bz=(0,K.createContext)(null),Vz=class extends WR{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},Vz.type=`submenutrigger`,TD(Vz,(e,t,n)=>{let{CollectionBranch:r}=(0,K.useContext)(mz),i=(0,K.useContext)(Lz),a=(0,K.useContext)(Rz),o=pO({triggerKey:n.key},a),s=(0,K.useRef)(null),c=US(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,K.useContext)(Bz),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=dO({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return K.createElement(hw,{values:[[Uz,{...d,onAction:void 0,ref:c}],[Iz,{ref:s,...f}],[Gz,o],[lz,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},K.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,K.forwardRef)(function(e,t){return[e,t]=vw(e,t,Iz),K.createElement(vD,{content:K.createElement(DD,e)},n=>K.createElement(yO,{props:e,collection:n,menuRef:t}))}),Hz=class extends Fz{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}},TD(YR,bO),Uz=(0,K.createContext)(null),wD(JR,function(e,t,n){[e,t]=vw(e,t,Uz);let r=_w(Uz)?.id,i=(0,K.useContext)(Lz),a=US(t),o=(0,K.useContext)(zz),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=cO({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=dw({isDisabled:d.isDisabled}),m=gw({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=CS(e,{global:!0});return delete g.id,delete g.onClick,K.createElement(h,{...V(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},K.createElement(hw,{values:[[cL,{slots:{[BN]:c,label:c,description:l}}],[vz,u]]},m.children))}),Wz=(0,ej.createContext)(null),Gz=(0,ej.createContext)(null),(0,ej.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=vw(e,t,Wz);let{dialogProps:r,titleProps:i}=xO({...e,"aria-labelledby":n},t),a=(0,ej.useContext)(Gz);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=gw({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=CS(e,{global:!0});return ej.createElement(`section`,{...V(s,o,r),ref:t,slot:e.slot||void 0},ej.createElement(hw,{values:[[oL,{slots:{[BN]:{},title:{...i,level:2}}}],[cz,{slots:{[BN]:{},close:{onPress:()=>a?.close()}}}]]},o.children))}),Kz=({ariaLabel:e,placement:t=`bottom-start`,hasChrome:n=!0,hasCloseButton:r=!1,closeLabel:i,offset:a=8,padding:o,popover:s,children:c,defaultVisible:l,visible:u,onVisibleChange:d,...f})=>{e||UR(`The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.`);let p=gI(t),[m,h]=(0,TA.useState)(l??!1),g=(0,TA.useCallback)(e=>{h(e),d?.(e)},[d]),_=(0,TA.useCallback)(()=>g(!1),[g]);return TA.createElement(SO,{defaultOpen:l,isOpen:u??m,onOpenChange:g,...f},TA.createElement(FN,null,(0,TA.cloneElement)(c,{"aria-haspopup":`dialog`})),TA.createElement(dz,{"aria-label":e,placement:p,offset:a,style:{outline:`none`}},TA.createElement(NR,{hasChrome:n,hideLabel:i,onHide:r?_:void 0,padding:o},typeof s==`function`?s({onHide:_}):s)))},qz=(0,tj.forwardRef)((e,t)=>tj.createElement(NR,{ref:t,...e})),qz.displayName=`Tooltip`,(0,nj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-Cakt_JaX.js`).then(e=>({default:e.WithTooltip})),__vite__mapDeps([14,1,2,3,0,4,11,12]),import.meta.url)),(0,nj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-Cakt_JaX.js`).then(e=>({default:e.WithTooltipPure})),__vite__mapDeps([14,1,2,3,0,4,11,12]),import.meta.url)),{deprecate:Jz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.span(),M.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),M.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),M.div({padding:15,width:280,boxSizing:`border-box`}),{deprecate:Yz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Xz=C(ge(),1),{deprecate:Zz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Qz=M(({active:e,loading:t,disabled:n,...r})=>ij.createElement(`span`,{...r}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:`inline-block`,flex:`none`,...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),$z=M.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),eB=M.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),tB=M.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),nB=M.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),rB=M.button(({theme:e})=>({width:`100%`,minWidth:0,border:`none`,borderRadius:e.appBorderRadius,background:`none`,fontSize:e.typography.size.s1,transition:`background 150ms ease-out`,color:e.color.dark,textDecoration:`none`,justifyContent:`space-between`,lineHeight:`18px`,padding:`7px 10px`,display:`flex`,alignItems:`center`,"& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:n})=>(t||n)&&{cursor:`pointer`,"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t===`label`&&{"&:has(input:not(:disabled))":{cursor:`pointer`,"&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:`not-allowed`}),iB=(0,Xz.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),aB=(0,ij.forwardRef)((e,t)=>{let{loading:n=!1,title:r=ij.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=iB(e),_=d||f;return Zz("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),ij.createElement(rB,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},ij.createElement(ij.Fragment,null,_&&ij.createElement(nB,{...h},_),r||i?ij.createElement(eB,{isIndented:c&&!_},r&&ij.createElement(Qz,{...h,loading:n},r),i&&ij.createElement(tB,{...h},i)):null,a&&ij.createElement($z,{...h},a)))}),aB.displayName=`ListItem`,oB=aB,sB=M.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),cB=M.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),lB=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,rj.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return rj.createElement(oB,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},uB=({links:e,LinkWrapper:t,...n})=>{Yz("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return rj.createElement(sB,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>rj.createElement(cB,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?rj.createElement(rj.Fragment,{key:e.id},e.content):rj.createElement(lB,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:dB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:fB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,pB=M.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),mB=M.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),hB=(0,oj.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>oj.createElement(pB,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?oj.createElement(mB,{innerStyle:n},t):t)),hB.displayName=`Bar`,gB=M.div({display:`flex`,whiteSpace:`nowrap`,flexBasis:`auto`,marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{}),gB.displayName=`Side`,_B=M.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),vB=M(hB)({paddingInline:0}),yB=({children:e,backgroundColor:t,className:n=``,...r})=>{fB(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=oj.Children.toArray(e);return oj.createElement(vB,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},oj.createElement(_B,{bgColor:t},oj.createElement(gB,{scrollable:r.scrollable,left:!0},i),a?oj.createElement(gB,{right:!0},a):null))},yB.displayName=`FlexBar`,{deprecate:bB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,xB=e=>typeof e.props.href==`string`,SB=e=>typeof e.props.href!=`string`,CB=(0,sj.forwardRef)(CO),CB.displayName=`ButtonOrLink`,wB=M(CB,{shouldForwardProp:le})({whiteSpace:`normal`,display:`inline-flex`,overflow:`hidden`,verticalAlign:`top`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,textDecoration:`none`,"&:empty":{display:`none`},"&[hidden]":{display:`none`}},({theme:e})=>({padding:`0 15px`,transition:`color 0.2s linear, border-bottom-color 0.2s linear`,height:40,lineHeight:`12px`,cursor:`pointer`,background:`transparent`,border:`0 solid transparent`,borderTop:`3px solid transparent`,borderBottom:`3px solid transparent`,fontWeight:`bold`,fontSize:13,"&:focus":{outline:`0 none`,borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:n.barHoverColor}}),TB=(0,sj.forwardRef)((e,t)=>(bB("The `TabButton` component is deprecated. Use `TabList` instead."),sj.createElement(wB,{"data-deprecated":`TabButton`,ref:t,...e}))),TB.displayName=`TabButton`,EB=M.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),DB=M.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),OB=M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),kB=M.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),AB=M.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),jB=({title:e,description:t,footer:n})=>cj.createElement(EB,null,cj.createElement(DB,null,cj.createElement(OB,null,e),t&&cj.createElement(AB,null,t)),n&&cj.createElement(kB,null,n)),{deprecate:MB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,NB=M.div(({active:e})=>e?{display:`block`}:{display:`none`}),PB=e=>(MB("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),lj.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>lj.createElement(NB,{active:e,role:`tabpanel`},i)}})),{deprecate:FB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,IB=M.span(({theme:e,isActive:t})=>({display:`inline-block`,width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:`3px solid transparent`,borderLeft:`3px solid transparent`,borderTop:`3px solid`,transition:`transform .1s ease-out`})),LB=M(TB)(({active:e,theme:t,preActive:n})=>`
205
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base===`light`?ae(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t===`inverse`&&{background:e.base===`light`?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t===`positive`||t===`negative`||t===`warning`)&&{background:e.background[t],color:e.color[`${t}Text`]}),MR=M(bI)({position:`absolute`,top:4,right:4}),NR=(0,CA.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>CA.createElement(jR,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&CA.createElement(MR,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},CA.createElement(Ne,null)))),NR.displayName=`Popover`,PR=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>wA.createElement(FI.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??wA.createElement(wA.Fragment,null,r&&wA.createElement(FI.Icon,null,r),wA.createElement(FI.Text,null,wA.createElement(`p`,null,t),n&&wA.createElement(`small`,null,n)),i)),PR.displayName=`SelectOption`,FR=5,IR=Symbol.for(`undefined`),LR=M(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4}),RR=M.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12})),zR=M(bI)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:me(.93,n.barSelectedColor),color:n.base===`light`?he(.1,n.color.secondary):n.color.secondary}:{}),BR=M.div({position:`fixed`,inset:0,zIndex:1e3}),VR=({children:e,handleClose:t,triggerRef:n})=>{let r=U.useRef(null);fw({ref:r,onInteractOutside:t}),(0,U.useEffect)(()=>{if(r.current)return VE([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=GT({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=SE({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=ie();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},U.createElement(WE,{disableFocusManagement:!0,...a},U.createElement(BR,{...o}),U.createElement(NR,{hasChrome:!0,ref:r,padding:0,...i},e))},HR=(0,U.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,U.useState)(h.defaultOpen||!1),[y,b]=(0,U.useState)(!1),x=US(g),S=(0,U.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,U.useRef)(null),T=qE({isOpen:_&&!n,onOpenChange:v}),E=(0,U.useCallback)(()=>{v(!1),b(!0)},[]);(0,U.useEffect)(()=>{!T.isOpen&&y&&(x.current?.ownerDocument?.defaultView&&x.current.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,U.useState)(fD(r,i)),k=(0,U.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(lD(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(lD(e.value)),n=[...t??[],e]),d?.(n.map(e=>lD(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(lD(e.value)),d?.([lD(e.value)]),[e]):t)},[a,d,l,u,o]),ee=(0,U.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:U.createElement(Ge,null),description:void 0,children:void 0}:void 0,[o,c]),A=(0,U.useMemo)(()=>ee?[ee,...r]:r,[r,ee]);(0,U.useEffect)(()=>{i&&O(fD(r,i))},[i,r]);let[j,te]=(0,U.useState)(void 0),ne=(0,U.useCallback)((e,t=!0)=>{te(cD(e)),!a&&t&&k(cD(e))},[a,k]),re=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[e===1?0:Math.min(e,A.length-1)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:uD(e.value)===j.value),n=t+e,r;r=n>=A.length&&t===A.length-1?A[0]:A[Math.min(A.length-1,n)],ne(r)},[_,j,ne,A]),ie=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[Math.max(0,A.length-e)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:uD(e.value)===j.value),n=t-e,r;r=n<0&&t===0?A[A.length-1]:A[Math.max(0,n)],ne(r)},[_,j,ne,A]),ae=(0,U.useCallback)(e=>{let t=t=>{e.preventDefault(),ne(A[t]),v(!0)},n=A.findIndex(e=>D.some(t=>t.value===uD(e.value))),r=n!==-1,i=ee&&!r?1:0,a=A.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+FR,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-FR))},[A,ee,ne,D]),oe=(0,U.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?re():e.key===`ArrowUp`?ie():e.key===`Home`?ne(A[0]):e.key===`End`?ne(A[A.length-1]):e.key===`PageDown`?re(FR):e.key===`PageUp`&&ie(FR)},[E,re,ie,A,ne]);(0,U.useEffect)(()=>{if(_&&j){let e=document.getElementById(dD(S,j));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,j,S]);let se=(0,U.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return U.createElement(U.Fragment,null,U.createElement(zR,{...h,variant:`ghost`,ariaLabel:se,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:ae,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&U.createElement(U.Fragment,null,t,m&&D[0]?.title||e),a&&U.createElement(U.Fragment,null,t,e,!!D.length&&U.createElement(RR,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&U.createElement(VR,{handleClose:E,triggerRef:x},U.createElement(LR,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:oe,tabIndex:_?0:-1},A.map(e=>({option:cD(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==ee,r=t===ee;return U.createElement(PR,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?U.createElement(AR.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:dD(S,t),isActive:_&&j?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>ne(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))}),HR.displayName=`Select`,{deprecate:UR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,WR=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},GR=class extends WR{filter(e,t,n){let[r,i]=pD(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},KR=class extends WR{},KR.type=`header`,qR=class extends WR{},qR.type=`loader`,JR=class extends GR{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},JR.type=`item`,YR=class extends GR{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},YR.type=`section`,XR=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=pD(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}},ZR=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},QR=class e extends ZR{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},$R=class extends ZR{get isConnected(){return this.isMounted}createElement(e){return new QR(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof QR&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof QR&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}},typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}ez=(0,DA.createContext)(!1),tz=(0,W.createContext)(!1),nz=(0,W.createContext)(null),rz=typeof W.useSyncExternalStore==`function`?W.useSyncExternalStore:bD,iz=(0,W.createContext)(null),az=(0,W.createContext)(null),oz=(0,AA.createContext)({}),gD(function(e,t){[e,t]=vw(e,t,oz);let{elementType:n=`label`,...r}=e;return AA.createElement(n,{className:`react-aria-Label`,...r,ref:t})}),sz=(0,jA.createContext)(null),(0,jA.forwardRef)(function(e,t){[e,t]=vw(e,t,sz);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=vC(n,r,i);let[o,s]=yw(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=AD({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=gw({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=CS(e,{global:!0});return jA.createElement(`div`,{...V(f,d,c),ref:t,slot:e.slot||void 0},jA.createElement(oz.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))}),cz=(0,MA.createContext)({}),gD(function(e,t){[e,t]=vw(e,t,cz),e=MD(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=jD(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=gE(e),{hoverProps:l,isHovered:u}=dw({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=gw({...e,values:d,defaultClassName:`react-aria-Button`}),p=lS(i.id),m=lS(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,MA.useRef)(r);(0,MA.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&O(e,`assertive`),g.current=r},[r,s,h,p]);let _=CS(e,{global:!0});return delete _.onClick,MA.createElement(`button`,{...V(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},MA.createElement(sz.Provider,{value:{id:m}},f.children))}),lz=(0,G.createContext)(null),uz=(0,G.createContext)(null),dz=(0,G.forwardRef)(function(e,t){[e,t]=vw(e,t,lz);let n=(0,G.useContext)(Gz),r=qE(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=lC(t,i.isOpen)||e.isExiting||!1,o=_D(),{direction:s}=Hw();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),G.createElement(G.Fragment,null,t)}return i&&!i.isOpen&&!a?null:G.createElement(ND,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})}),fz=(0,NA.createContext)(null),TD(`section`,(e,t,n)=>{let{name:r,render:i}=(0,NA.useContext)(fz);return i(e,t,n,`react-aria-Section`)}),pz={CollectionRoot({collection:e,renderDropIndicator:t}){return PD(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return PD(e,t,n)}},mz=(0,NA.createContext)(pz),hz=(0,PA.createContext)(null),gz=(0,PA.createContext)(null),_z=(0,FA.createContext)({}),wD(KR,function(e,t){return[e,t]=vw(e,t,_z),FA.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)}),vz=(0,IA.createContext)({}),(0,IA.forwardRef)(function(e,t){return[e,t]=vw(e,t,vz),IA.createElement(`kbd`,{dir:`ltr`,...e,ref:t})}),yz=(0,LA.createContext)({}),bz=class extends WR{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},bz.type=`separator`,wD(bz,function(e,t){[e,t]=vw(e,t,yz);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=LD({...s,elementType:n,orientation:r}),u=CS(e,{global:!0});return LA.createElement(c,{...V(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),xz=new WeakMap,Sz=new WeakMap,Cz=1e3,wz=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:zD(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},Tz=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`):null}getKeyLeftOf(e){let t=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!YS(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!YS(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new wz(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new wz(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}},XD.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:ZD(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];UA.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}},Ez=XD,Dz=class{build(e,t){return this.context=t,QD(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(WA.isValidElement(t)&&t.type===WA.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];WA.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(WA.isValidElement(e.element)&&e.element.type===WA.Fragment){let i=[];WA.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(WA.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:$D(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${eO(t.type)}> in <${eO(r?.type??`unknown parent type`)}>. Only <${eO(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:QD(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}},Oz=new WeakMap,kz=2,Az=50,jz=1e3,Mz=Math.PI/12,Nz=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},Pz=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},Fz=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&aO(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&aO(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new Pz([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new Pz(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?aO(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new Pz(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Pz([t],t,t):new Pz;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new Pz;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(rO(nO(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}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 Pz)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||n!=null&&(t=n.props)!=null&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!((n=this.collection.getItem(e))!=null&&(t=n.props)!=null&&t.isDisabled))}isLink(e){var t,n;return!!((n=this.collection.getItem(e))!=null&&(t=n.props)!=null&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}},Iz=(0,K.createContext)(null),Lz=(0,K.createContext)(null),Rz=(0,K.createContext)(null),zz=(0,K.createContext)(null),Bz=(0,K.createContext)(null),Vz=class extends WR{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},Vz.type=`submenutrigger`,TD(Vz,(e,t,n)=>{let{CollectionBranch:r}=(0,K.useContext)(mz),i=(0,K.useContext)(Lz),a=(0,K.useContext)(Rz),o=pO({triggerKey:n.key},a),s=(0,K.useRef)(null),c=US(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,K.useContext)(Bz),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=dO({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return K.createElement(hw,{values:[[Uz,{...d,onAction:void 0,ref:c}],[Iz,{ref:s,...f}],[Gz,o],[lz,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},K.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,K.forwardRef)(function(e,t){return[e,t]=vw(e,t,Iz),K.createElement(vD,{content:K.createElement(DD,e)},n=>K.createElement(yO,{props:e,collection:n,menuRef:t}))}),Hz=class extends Fz{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}},TD(YR,bO),Uz=(0,K.createContext)(null),wD(JR,function(e,t,n){[e,t]=vw(e,t,Uz);let r=_w(Uz)?.id,i=(0,K.useContext)(Lz),a=US(t),o=(0,K.useContext)(zz),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=cO({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=dw({isDisabled:d.isDisabled}),m=gw({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=CS(e,{global:!0});return delete g.id,delete g.onClick,K.createElement(h,{...V(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},K.createElement(hw,{values:[[cL,{slots:{[BN]:c,label:c,description:l}}],[vz,u]]},m.children))}),Wz=(0,ej.createContext)(null),Gz=(0,ej.createContext)(null),(0,ej.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=vw(e,t,Wz);let{dialogProps:r,titleProps:i}=xO({...e,"aria-labelledby":n},t),a=(0,ej.useContext)(Gz);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=gw({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=CS(e,{global:!0});return ej.createElement(`section`,{...V(s,o,r),ref:t,slot:e.slot||void 0},ej.createElement(hw,{values:[[oL,{slots:{[BN]:{},title:{...i,level:2}}}],[cz,{slots:{[BN]:{},close:{onPress:()=>a?.close()}}}]]},o.children))}),Kz=({ariaLabel:e,placement:t=`bottom-start`,hasChrome:n=!0,hasCloseButton:r=!1,closeLabel:i,offset:a=8,padding:o,popover:s,children:c,defaultVisible:l,visible:u,onVisibleChange:d,...f})=>{e||UR(`The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.`);let p=gI(t),[m,h]=(0,TA.useState)(l??!1),g=(0,TA.useCallback)(e=>{h(e),d?.(e)},[d]),_=(0,TA.useCallback)(()=>g(!1),[g]);return TA.createElement(SO,{defaultOpen:l,isOpen:u??m,onOpenChange:g,...f},TA.createElement(FN,null,(0,TA.cloneElement)(c,{"aria-haspopup":`dialog`})),TA.createElement(dz,{"aria-label":e,placement:p,offset:a,style:{outline:`none`}},TA.createElement(NR,{hasChrome:n,hideLabel:i,onHide:r?_:void 0,padding:o},typeof s==`function`?s({onHide:_}):s)))},qz=(0,tj.forwardRef)((e,t)=>tj.createElement(NR,{ref:t,...e})),qz.displayName=`Tooltip`,(0,nj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-DQ4Qthn2.js`).then(e=>({default:e.WithTooltip})),__vite__mapDeps([14,1,2,3,0,4,11,12]),import.meta.url)),(0,nj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-DQ4Qthn2.js`).then(e=>({default:e.WithTooltipPure})),__vite__mapDeps([14,1,2,3,0,4,11,12]),import.meta.url)),{deprecate:Jz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.span(),M.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),M.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),M.div({padding:15,width:280,boxSizing:`border-box`}),{deprecate:Yz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Xz=C(ge(),1),{deprecate:Zz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Qz=M(({active:e,loading:t,disabled:n,...r})=>ij.createElement(`span`,{...r}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:`inline-block`,flex:`none`,...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),$z=M.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),eB=M.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),tB=M.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),nB=M.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),rB=M.button(({theme:e})=>({width:`100%`,minWidth:0,border:`none`,borderRadius:e.appBorderRadius,background:`none`,fontSize:e.typography.size.s1,transition:`background 150ms ease-out`,color:e.color.dark,textDecoration:`none`,justifyContent:`space-between`,lineHeight:`18px`,padding:`7px 10px`,display:`flex`,alignItems:`center`,"& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:n})=>(t||n)&&{cursor:`pointer`,"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t===`label`&&{"&:has(input:not(:disabled))":{cursor:`pointer`,"&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:`not-allowed`}),iB=(0,Xz.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),aB=(0,ij.forwardRef)((e,t)=>{let{loading:n=!1,title:r=ij.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=iB(e),_=d||f;return Zz("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),ij.createElement(rB,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},ij.createElement(ij.Fragment,null,_&&ij.createElement(nB,{...h},_),r||i?ij.createElement(eB,{isIndented:c&&!_},r&&ij.createElement(Qz,{...h,loading:n},r),i&&ij.createElement(tB,{...h},i)):null,a&&ij.createElement($z,{...h},a)))}),aB.displayName=`ListItem`,oB=aB,sB=M.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),cB=M.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),lB=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,rj.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return rj.createElement(oB,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},uB=({links:e,LinkWrapper:t,...n})=>{Yz("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return rj.createElement(sB,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>rj.createElement(cB,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?rj.createElement(rj.Fragment,{key:e.id},e.content):rj.createElement(lB,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:dB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:fB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,pB=M.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),mB=M.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),hB=(0,oj.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>oj.createElement(pB,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?oj.createElement(mB,{innerStyle:n},t):t)),hB.displayName=`Bar`,gB=M.div({display:`flex`,whiteSpace:`nowrap`,flexBasis:`auto`,marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{}),gB.displayName=`Side`,_B=M.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),vB=M(hB)({paddingInline:0}),yB=({children:e,backgroundColor:t,className:n=``,...r})=>{fB(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=oj.Children.toArray(e);return oj.createElement(vB,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},oj.createElement(_B,{bgColor:t},oj.createElement(gB,{scrollable:r.scrollable,left:!0},i),a?oj.createElement(gB,{right:!0},a):null))},yB.displayName=`FlexBar`,{deprecate:bB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,xB=e=>typeof e.props.href==`string`,SB=e=>typeof e.props.href!=`string`,CB=(0,sj.forwardRef)(CO),CB.displayName=`ButtonOrLink`,wB=M(CB,{shouldForwardProp:le})({whiteSpace:`normal`,display:`inline-flex`,overflow:`hidden`,verticalAlign:`top`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,textDecoration:`none`,"&:empty":{display:`none`},"&[hidden]":{display:`none`}},({theme:e})=>({padding:`0 15px`,transition:`color 0.2s linear, border-bottom-color 0.2s linear`,height:40,lineHeight:`12px`,cursor:`pointer`,background:`transparent`,border:`0 solid transparent`,borderTop:`3px solid transparent`,borderBottom:`3px solid transparent`,fontWeight:`bold`,fontSize:13,"&:focus":{outline:`0 none`,borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:n.barHoverColor}}),TB=(0,sj.forwardRef)((e,t)=>(bB("The `TabButton` component is deprecated. Use `TabList` instead."),sj.createElement(wB,{"data-deprecated":`TabButton`,ref:t,...e}))),TB.displayName=`TabButton`,EB=M.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),DB=M.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),OB=M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),kB=M.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),AB=M.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),jB=({title:e,description:t,footer:n})=>cj.createElement(EB,null,cj.createElement(DB,null,cj.createElement(OB,null,e),t&&cj.createElement(AB,null,t)),n&&cj.createElement(kB,null,n)),{deprecate:MB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,NB=M.div(({active:e})=>e?{display:`block`}:{display:`none`}),PB=e=>(MB("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),lj.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>lj.createElement(NB,{active:e,role:`tabpanel`},i)}})),{deprecate:FB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,IB=M.span(({theme:e,isActive:t})=>({display:`inline-block`,width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:`3px solid transparent`,borderLeft:`3px solid transparent`,borderTop:`3px solid`,transition:`transform .1s ease-out`})),LB=M(TB)(({active:e,theme:t,preActive:n})=>`
206
206
  color: ${n||e?t.barSelectedColor:t.barTextColor};
207
207
  .addon-collapsible-icon {
208
208
  color: ${n||e?t.barSelectedColor:t.barTextColor};