@getontime/cli 4.2.1 → 4.3.1

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 (452) hide show
  1. package/client/assets/Backstage-D2lEbqUt.js +2 -0
  2. package/client/assets/Backstage-D2lEbqUt.js.br +0 -0
  3. package/client/assets/Backstage-D2lEbqUt.js.gz +0 -0
  4. package/client/assets/Backstage-D2lEbqUt.js.map +1 -0
  5. package/client/assets/Countdown-VV03STbF.js +2 -0
  6. package/client/assets/Countdown-VV03STbF.js.br +0 -0
  7. package/client/assets/Countdown-VV03STbF.js.gz +0 -0
  8. package/client/assets/Countdown-VV03STbF.js.map +1 -0
  9. package/client/assets/CustomTranslationModal-D1nM9W1Z.js +2 -0
  10. package/client/assets/CustomTranslationModal-D1nM9W1Z.js.br +0 -0
  11. package/client/assets/CustomTranslationModal-D1nM9W1Z.js.gz +0 -0
  12. package/client/assets/{CustomTranslationModal-CtBvokyt.js.map → CustomTranslationModal-D1nM9W1Z.js.map} +1 -1
  13. package/client/assets/DelayIndicator-Co5rMYw9.js +2 -0
  14. package/client/assets/DelayIndicator-Co5rMYw9.js.br +0 -0
  15. package/client/assets/DelayIndicator-Co5rMYw9.js.gz +0 -0
  16. package/client/assets/{DelayIndicator-BFZFpsY5.js.map → DelayIndicator-Co5rMYw9.js.map} +1 -1
  17. package/client/assets/EditorFeatureWrapper-_t_4D7Es.js +2 -0
  18. package/client/assets/EditorFeatureWrapper-_t_4D7Es.js.br +0 -0
  19. package/client/assets/EditorFeatureWrapper-_t_4D7Es.js.gz +0 -0
  20. package/client/assets/{EditorFeatureWrapper-DaMxgBMP.js.map → EditorFeatureWrapper-_t_4D7Es.js.map} +1 -1
  21. package/client/assets/EditorUtils-C3QoonjM.js +2 -0
  22. package/client/assets/EditorUtils-C3QoonjM.js.br +0 -0
  23. package/client/assets/EditorUtils-C3QoonjM.js.gz +0 -0
  24. package/client/assets/{EditorUtils-DoaSwWiz.js.map → EditorUtils-C3QoonjM.js.map} +1 -1
  25. package/client/assets/EditorUtils-L4Sg72o_.css +1 -0
  26. package/client/assets/EditorUtils-L4Sg72o_.css.br +0 -0
  27. package/client/assets/EditorUtils-L4Sg72o_.css.gz +0 -0
  28. package/client/assets/{Empty-D1UteOYj.js → Empty-DJMjfXnt.js} +2 -2
  29. package/client/assets/Empty-DJMjfXnt.js.br +2 -0
  30. package/client/assets/Empty-DJMjfXnt.js.gz +0 -0
  31. package/client/assets/{Empty-D1UteOYj.js.map → Empty-DJMjfXnt.js.map} +1 -1
  32. package/client/assets/{EmptyPage-DeRjpRKZ.js → EmptyPage-BlXZqoIr.js} +2 -2
  33. package/client/assets/EmptyPage-BlXZqoIr.js.br +0 -0
  34. package/client/assets/EmptyPage-BlXZqoIr.js.gz +0 -0
  35. package/client/assets/{EmptyPage-DeRjpRKZ.js.map → EmptyPage-BlXZqoIr.js.map} +1 -1
  36. package/client/assets/{FollowButton-FodezDem.js → FollowButton-Dy5n1J2c.js} +2 -2
  37. package/client/assets/FollowButton-Dy5n1J2c.js.br +0 -0
  38. package/client/assets/FollowButton-Dy5n1J2c.js.gz +0 -0
  39. package/client/assets/{FollowButton-FodezDem.js.map → FollowButton-Dy5n1J2c.js.map} +1 -1
  40. package/client/assets/MessageControlExport-CWQX8mH0.js +3 -0
  41. package/client/assets/MessageControlExport-CWQX8mH0.js.br +0 -0
  42. package/client/assets/MessageControlExport-CWQX8mH0.js.gz +0 -0
  43. package/client/assets/MessageControlExport-CWQX8mH0.js.map +1 -0
  44. package/client/assets/MessageControlExport-D_pNX6Vj.css +1 -0
  45. package/client/assets/MessageControlExport-D_pNX6Vj.css.br +0 -0
  46. package/client/assets/MessageControlExport-D_pNX6Vj.css.gz +0 -0
  47. package/client/assets/MilestoneEditor-CxWZdQ1B.js +2 -0
  48. package/client/assets/MilestoneEditor-CxWZdQ1B.js.br +0 -0
  49. package/client/assets/MilestoneEditor-CxWZdQ1B.js.gz +0 -0
  50. package/client/assets/MilestoneEditor-CxWZdQ1B.js.map +1 -0
  51. package/client/assets/Modal-ePA-Go14.js +2 -0
  52. package/client/assets/Modal-ePA-Go14.js.br +0 -0
  53. package/client/assets/Modal-ePA-Go14.js.gz +0 -0
  54. package/client/assets/Modal-ePA-Go14.js.map +1 -0
  55. package/client/assets/{MultiPartProgressBar-BKHk19Hb.js → MultiPartProgressBar-GQaCHX4z.js} +2 -2
  56. package/client/assets/MultiPartProgressBar-GQaCHX4z.js.br +0 -0
  57. package/client/assets/MultiPartProgressBar-GQaCHX4z.js.gz +0 -0
  58. package/client/assets/{MultiPartProgressBar-BKHk19Hb.js.map → MultiPartProgressBar-GQaCHX4z.js.map} +1 -1
  59. package/client/assets/OperatorExport-CA5WcIt5.css +1 -0
  60. package/client/assets/OperatorExport-CA5WcIt5.css.br +0 -0
  61. package/client/assets/OperatorExport-CA5WcIt5.css.gz +0 -0
  62. package/client/assets/OperatorExport-CRS08UXj.js +2 -0
  63. package/client/assets/OperatorExport-CRS08UXj.js.br +0 -0
  64. package/client/assets/OperatorExport-CRS08UXj.js.gz +0 -0
  65. package/client/assets/OperatorExport-CRS08UXj.js.map +1 -0
  66. package/client/assets/OverviewWrapper-BNRb3Ub_.js +2 -0
  67. package/client/assets/OverviewWrapper-BNRb3Ub_.js.br +0 -0
  68. package/client/assets/OverviewWrapper-BNRb3Ub_.js.gz +0 -0
  69. package/client/assets/OverviewWrapper-BNRb3Ub_.js.map +1 -0
  70. package/client/assets/{PipHost-B9-cZ8Lm.js → PipHost-DNfEY6RN.js} +2 -2
  71. package/client/assets/PipHost-DNfEY6RN.js.br +0 -0
  72. package/client/assets/PipHost-DNfEY6RN.js.gz +0 -0
  73. package/client/assets/PipHost-DNfEY6RN.js.map +1 -0
  74. package/client/assets/ProjectInfo-KPf-pM8y.js +2 -0
  75. package/client/assets/ProjectInfo-KPf-pM8y.js.br +0 -0
  76. package/client/assets/ProjectInfo-KPf-pM8y.js.gz +0 -0
  77. package/client/assets/{ProjectInfo-Dp1TZyBd.js.map → ProjectInfo-KPf-pM8y.js.map} +1 -1
  78. package/client/assets/{ProtectRoute-EejQ5o_H.js → ProtectRoute-DW_vXgYI.js} +2 -2
  79. package/client/assets/ProtectRoute-DW_vXgYI.js.br +0 -0
  80. package/client/assets/ProtectRoute-DW_vXgYI.js.gz +0 -0
  81. package/client/assets/{ProtectRoute-EejQ5o_H.js.map → ProtectRoute-DW_vXgYI.js.map} +1 -1
  82. package/client/assets/ProtectedCuesheet-CCVDLsK-.js +2 -0
  83. package/client/assets/ProtectedCuesheet-CCVDLsK-.js.br +0 -0
  84. package/client/assets/ProtectedCuesheet-CCVDLsK-.js.gz +0 -0
  85. package/client/assets/ProtectedCuesheet-CCVDLsK-.js.map +1 -0
  86. package/client/assets/ProtectedCuesheet-DPO7xYMb.css +1 -0
  87. package/client/assets/ProtectedCuesheet-DPO7xYMb.css.br +0 -0
  88. package/client/assets/ProtectedCuesheet-DPO7xYMb.css.gz +0 -0
  89. package/client/assets/{ProtectedEditor-Dw0pWw0J.css → ProtectedEditor-BtSuTFlT.css} +1 -1
  90. package/client/assets/ProtectedEditor-BtSuTFlT.css.br +0 -0
  91. package/client/assets/{ProtectedEditor-Dw0pWw0J.css.gz → ProtectedEditor-BtSuTFlT.css.gz} +0 -0
  92. package/client/assets/ProtectedEditor-Ddu9vBS8.js +3 -0
  93. package/client/assets/ProtectedEditor-Ddu9vBS8.js.br +0 -0
  94. package/client/assets/ProtectedEditor-Ddu9vBS8.js.gz +0 -0
  95. package/client/assets/ProtectedEditor-Ddu9vBS8.js.map +1 -0
  96. package/client/assets/RundownEntry-CpspmKD0.js +2 -0
  97. package/client/assets/RundownEntry-CpspmKD0.js.br +0 -0
  98. package/client/assets/RundownEntry-CpspmKD0.js.gz +0 -0
  99. package/client/assets/RundownEntry-CpspmKD0.js.map +1 -0
  100. package/client/assets/{RundownExport-DtSvAfBG.css → RundownExport-Bgtg_idR.css} +1 -1
  101. package/client/assets/RundownExport-Bgtg_idR.css.br +0 -0
  102. package/client/assets/RundownExport-Bgtg_idR.css.gz +0 -0
  103. package/client/assets/RundownExport-DhCryTUp.js +3 -0
  104. package/client/assets/RundownExport-DhCryTUp.js.br +0 -0
  105. package/client/assets/RundownExport-DhCryTUp.js.gz +0 -0
  106. package/client/assets/RundownExport-DhCryTUp.js.map +1 -0
  107. package/client/assets/{Select-cHK8JrMG.js → Select-ASOzxGFV.js} +2 -2
  108. package/client/assets/Select-ASOzxGFV.js.br +0 -0
  109. package/client/assets/Select-ASOzxGFV.js.gz +0 -0
  110. package/client/assets/Select-ASOzxGFV.js.map +1 -0
  111. package/client/assets/Studio-D7evHV2Q.js +2 -0
  112. package/client/assets/Studio-D7evHV2Q.js.br +0 -0
  113. package/client/assets/Studio-D7evHV2Q.js.gz +0 -0
  114. package/client/assets/Studio-D7evHV2Q.js.map +1 -0
  115. package/client/assets/{StyleEditor-RZvkKHdf.js → StyleEditor-DYybY9tA.js} +2 -2
  116. package/client/assets/StyleEditor-DYybY9tA.js.br +0 -0
  117. package/client/assets/StyleEditor-DYybY9tA.js.gz +0 -0
  118. package/client/assets/{StyleEditor-RZvkKHdf.js.map → StyleEditor-DYybY9tA.js.map} +1 -1
  119. package/client/assets/{SuperscriptPeriod-DaZq1rr6.js → SuperscriptPeriod-NmBzJhFK.js} +2 -2
  120. package/client/assets/SuperscriptPeriod-NmBzJhFK.js.br +0 -0
  121. package/client/assets/SuperscriptPeriod-NmBzJhFK.js.gz +0 -0
  122. package/client/assets/SuperscriptPeriod-NmBzJhFK.js.map +1 -0
  123. package/client/assets/SuperscriptTime-CA_8XRM6.js +2 -0
  124. package/client/assets/SuperscriptTime-CA_8XRM6.js.br +0 -0
  125. package/client/assets/SuperscriptTime-CA_8XRM6.js.gz +0 -0
  126. package/client/assets/SuperscriptTime-CA_8XRM6.js.map +1 -0
  127. package/client/assets/SwatchPicker-C8eFQKBd.js +2 -0
  128. package/client/assets/SwatchPicker-C8eFQKBd.js.br +0 -0
  129. package/client/assets/SwatchPicker-C8eFQKBd.js.gz +0 -0
  130. package/client/assets/SwatchPicker-C8eFQKBd.js.map +1 -0
  131. package/client/assets/{TimeElements-dIvFHgcd.js → TimeElements-D3dl9gAM.js} +2 -2
  132. package/client/assets/TimeElements-D3dl9gAM.js.br +0 -0
  133. package/client/assets/TimeElements-D3dl9gAM.js.gz +0 -0
  134. package/client/assets/TimeElements-D3dl9gAM.js.map +1 -0
  135. package/client/assets/TimeInput-DR-NCEhH.js +2 -0
  136. package/client/assets/TimeInput-DR-NCEhH.js.br +0 -0
  137. package/client/assets/TimeInput-DR-NCEhH.js.gz +0 -0
  138. package/client/assets/{TimeInput-Duzx40TC.js.map → TimeInput-DR-NCEhH.js.map} +1 -1
  139. package/client/assets/TimelinePage-BfTV9IdT.js +2 -0
  140. package/client/assets/TimelinePage-BfTV9IdT.js.br +0 -0
  141. package/client/assets/TimelinePage-BfTV9IdT.js.gz +0 -0
  142. package/client/assets/TimelinePage-BfTV9IdT.js.map +1 -0
  143. package/client/assets/Timer-DvqDm4yX.js +2 -0
  144. package/client/assets/Timer-DvqDm4yX.js.br +0 -0
  145. package/client/assets/Timer-DvqDm4yX.js.gz +0 -0
  146. package/client/assets/Timer-DvqDm4yX.js.map +1 -0
  147. package/client/assets/TimerControlExport-CQQ2KxqK.js +2 -0
  148. package/client/assets/TimerControlExport-CQQ2KxqK.js.br +0 -0
  149. package/client/assets/TimerControlExport-CQQ2KxqK.js.gz +0 -0
  150. package/client/assets/{TimerControlExport-GJn4WWdH.js.map → TimerControlExport-CQQ2KxqK.js.map} +1 -1
  151. package/client/assets/{TimerControlExport-DavNxY9p.css → TimerControlExport-cJRa5GUp.css} +1 -1
  152. package/client/assets/TimerControlExport-cJRa5GUp.css.br +0 -0
  153. package/client/assets/{TimerControlExport-DavNxY9p.css.gz → TimerControlExport-cJRa5GUp.css.gz} +0 -0
  154. package/client/assets/{TitleCard-BqbrUnHO.js → TitleCard-AESdy7kI.js} +2 -2
  155. package/client/assets/TitleCard-AESdy7kI.js.br +0 -0
  156. package/client/assets/TitleCard-AESdy7kI.js.gz +0 -0
  157. package/client/assets/{TitleCard-BqbrUnHO.js.map → TitleCard-AESdy7kI.js.map} +1 -1
  158. package/client/assets/{Tooltip-BQBvaIZx.js → Tooltip-BTK4bJkV.js} +2 -2
  159. package/client/assets/Tooltip-BTK4bJkV.js.br +0 -0
  160. package/client/assets/Tooltip-BTK4bJkV.js.gz +0 -0
  161. package/client/assets/Tooltip-BTK4bJkV.js.map +1 -0
  162. package/client/assets/ViewLogo-BZVUUIZA.js +2 -0
  163. package/client/assets/ViewLogo-BZVUUIZA.js.br +0 -0
  164. package/client/assets/ViewLogo-BZVUUIZA.js.gz +0 -0
  165. package/client/assets/ViewLogo-BZVUUIZA.js.map +1 -0
  166. package/client/assets/ViewParamsEditor-CBnRitZ4.js +2 -0
  167. package/client/assets/ViewParamsEditor-CBnRitZ4.js.br +0 -0
  168. package/client/assets/ViewParamsEditor-CBnRitZ4.js.gz +0 -0
  169. package/client/assets/ViewParamsEditor-CBnRitZ4.js.map +1 -0
  170. package/client/assets/{dateConfig-BU1RZfIK.js → dateConfig-Crm-Cu2y.js} +2 -2
  171. package/client/assets/dateConfig-Crm-Cu2y.js.br +0 -0
  172. package/client/assets/dateConfig-Crm-Cu2y.js.gz +0 -0
  173. package/client/assets/{dateConfig-BU1RZfIK.js.map → dateConfig-Crm-Cu2y.js.map} +1 -1
  174. package/client/assets/{editorSettings-BMt-7s8I.js → editorSettings-CRJwIW7V.js} +2 -2
  175. package/client/assets/editorSettings-CRJwIW7V.js.br +0 -0
  176. package/client/assets/editorSettings-CRJwIW7V.js.gz +0 -0
  177. package/client/assets/{editorSettings-BMt-7s8I.js.map → editorSettings-CRJwIW7V.js.map} +1 -1
  178. package/client/assets/{getProgress-sdxPEEPi.js → getProgress-fD6vhbNF.js} +2 -2
  179. package/client/assets/getProgress-fD6vhbNF.js.br +0 -0
  180. package/client/assets/getProgress-fD6vhbNF.js.gz +0 -0
  181. package/client/assets/{getProgress-sdxPEEPi.js.map → getProgress-fD6vhbNF.js.map} +1 -1
  182. package/client/assets/index-B1K7rED_.js +3 -0
  183. package/client/assets/index-B1K7rED_.js.br +0 -0
  184. package/client/assets/index-B1K7rED_.js.gz +0 -0
  185. package/client/assets/index-B1K7rED_.js.map +1 -0
  186. package/client/assets/{index-BuJoGGff.css → index-BAvwULMi.css} +1 -1
  187. package/client/assets/index-BAvwULMi.css.br +0 -0
  188. package/client/assets/index-BAvwULMi.css.gz +0 -0
  189. package/client/assets/{offset-BS90Rks2.js → offset-FplkvYRD.js} +2 -2
  190. package/client/assets/offset-FplkvYRD.js.br +0 -0
  191. package/client/assets/offset-FplkvYRD.js.gz +0 -0
  192. package/client/assets/{offset-BS90Rks2.js.map → offset-FplkvYRD.js.map} +1 -1
  193. package/client/assets/{parseUserTime-DZJMcfuJ.js → parseUserTime-0pNWLcr0.js} +2 -2
  194. package/client/assets/parseUserTime-0pNWLcr0.js.br +0 -0
  195. package/client/assets/parseUserTime-0pNWLcr0.js.gz +0 -0
  196. package/client/assets/{parseUserTime-DZJMcfuJ.js.map → parseUserTime-0pNWLcr0.js.map} +1 -1
  197. package/client/assets/{playbackstate-CWexoP3a.js → playbackstate-1HCEpVh5.js} +2 -2
  198. package/client/assets/playbackstate-1HCEpVh5.js.br +0 -0
  199. package/client/assets/playbackstate-1HCEpVh5.js.gz +0 -0
  200. package/client/assets/{playbackstate-CWexoP3a.js.map → playbackstate-1HCEpVh5.js.map} +1 -1
  201. package/client/assets/{presentation.utils-Zo5hNQje.js → presentation.utils-CLt2UhON.js} +2 -2
  202. package/client/assets/presentation.utils-CLt2UhON.js.br +0 -0
  203. package/client/assets/presentation.utils-CLt2UhON.js.gz +0 -0
  204. package/client/assets/{presentation.utils-Zo5hNQje.js.map → presentation.utils-CLt2UhON.js.map} +1 -1
  205. package/client/assets/rundownUtils-D1oJpMdx.js +2 -0
  206. package/client/assets/rundownUtils-D1oJpMdx.js.br +0 -0
  207. package/client/assets/rundownUtils-D1oJpMdx.js.gz +0 -0
  208. package/client/assets/{rundownUtils-Dl1x6NDv.js.map → rundownUtils-D1oJpMdx.js.map} +1 -1
  209. package/client/assets/{timer.utils-BnMyVO6Z.js → timer.utils-FiqT1yNa.js} +2 -2
  210. package/client/assets/timer.utils-FiqT1yNa.js.br +0 -0
  211. package/client/assets/timer.utils-FiqT1yNa.js.gz +0 -0
  212. package/client/assets/timer.utils-FiqT1yNa.js.map +1 -0
  213. package/client/assets/{useCustomFields-CcTb-GQM.js → useCustomFields-nW-_Zyfw.js} +2 -2
  214. package/client/assets/useCustomFields-nW-_Zyfw.js.br +0 -0
  215. package/client/assets/useCustomFields-nW-_Zyfw.js.gz +0 -0
  216. package/client/assets/{useCustomFields-CcTb-GQM.js.map → useCustomFields-nW-_Zyfw.js.map} +1 -1
  217. package/client/assets/{useFollowComponent-BjhV6Uv8.js → useFollowComponent-4cbKEsVz.js} +2 -2
  218. package/client/assets/useFollowComponent-4cbKEsVz.js.br +0 -0
  219. package/client/assets/useFollowComponent-4cbKEsVz.js.gz +0 -0
  220. package/client/assets/{useFollowComponent-BjhV6Uv8.js.map → useFollowComponent-4cbKEsVz.js.map} +1 -1
  221. package/client/assets/useProjectData-DP-pr73E.js +2 -0
  222. package/client/assets/useProjectData-DP-pr73E.js.br +0 -0
  223. package/client/assets/useProjectData-DP-pr73E.js.gz +0 -0
  224. package/client/assets/useProjectData-DP-pr73E.js.map +1 -0
  225. package/client/assets/{useReport-zMbyWwpn.js → useReport-6XA_s2Vc.js} +2 -2
  226. package/client/assets/useReport-6XA_s2Vc.js.br +0 -0
  227. package/client/assets/useReport-6XA_s2Vc.js.gz +0 -0
  228. package/client/assets/{useReport-zMbyWwpn.js.map → useReport-6XA_s2Vc.js.map} +1 -1
  229. package/client/assets/useRundown-BGhL8DEI.js +2 -0
  230. package/client/assets/useRundown-BGhL8DEI.js.br +0 -0
  231. package/client/assets/useRundown-BGhL8DEI.js.gz +0 -0
  232. package/client/assets/useRundown-BGhL8DEI.js.map +1 -0
  233. package/client/assets/{useWindowTitle-mLKt65i7.js → useWindowTitle-ahZQIheF.js} +2 -2
  234. package/client/assets/useWindowTitle-ahZQIheF.js.br +0 -0
  235. package/client/assets/useWindowTitle-ahZQIheF.js.gz +0 -0
  236. package/client/assets/useWindowTitle-ahZQIheF.js.map +1 -0
  237. package/client/assets/{validateEvent-CUmvjN95.js → validateEvent-jVIMKhmx.js} +2 -2
  238. package/client/assets/validateEvent-jVIMKhmx.js.br +0 -0
  239. package/client/assets/validateEvent-jVIMKhmx.js.gz +0 -0
  240. package/client/assets/{validateEvent-CUmvjN95.js.map → validateEvent-jVIMKhmx.js.map} +1 -1
  241. package/client/assets/vendor-DmGkEtRj.js +74 -0
  242. package/client/assets/vendor-DmGkEtRj.js.br +0 -0
  243. package/client/assets/vendor-DmGkEtRj.js.gz +0 -0
  244. package/client/assets/{vendor-Cdwxo8bP.js.map → vendor-DmGkEtRj.js.map} +1 -1
  245. package/client/assets/{viewLoader.utils-DuXjY5zb.js → viewLoader.utils-Bniie8Op.js} +2 -2
  246. package/client/assets/viewLoader.utils-Bniie8Op.js.br +0 -0
  247. package/client/assets/viewLoader.utils-Bniie8Op.js.gz +0 -0
  248. package/client/assets/{viewLoader.utils-DuXjY5zb.js.map → viewLoader.utils-Bniie8Op.js.map} +1 -1
  249. package/client/assets/{viewUtils-dKRKkb_F.js → viewUtils-VNLYoR28.js} +2 -2
  250. package/client/assets/viewUtils-VNLYoR28.js.br +0 -0
  251. package/client/assets/viewUtils-VNLYoR28.js.gz +0 -0
  252. package/client/assets/viewUtils-VNLYoR28.js.map +1 -0
  253. package/client/index.html +3 -3
  254. package/package.json +1 -1
  255. package/server/index.cjs +102 -102
  256. package/client/assets/Backstage-WSlbFC9X.js +0 -2
  257. package/client/assets/Backstage-WSlbFC9X.js.br +0 -0
  258. package/client/assets/Backstage-WSlbFC9X.js.gz +0 -0
  259. package/client/assets/Backstage-WSlbFC9X.js.map +0 -1
  260. package/client/assets/Countdown-B32qlxYT.js +0 -2
  261. package/client/assets/Countdown-B32qlxYT.js.br +0 -0
  262. package/client/assets/Countdown-B32qlxYT.js.gz +0 -0
  263. package/client/assets/Countdown-B32qlxYT.js.map +0 -1
  264. package/client/assets/CustomTranslationModal-CtBvokyt.js +0 -2
  265. package/client/assets/CustomTranslationModal-CtBvokyt.js.br +0 -0
  266. package/client/assets/CustomTranslationModal-CtBvokyt.js.gz +0 -0
  267. package/client/assets/DelayIndicator-BFZFpsY5.js +0 -2
  268. package/client/assets/DelayIndicator-BFZFpsY5.js.br +0 -0
  269. package/client/assets/DelayIndicator-BFZFpsY5.js.gz +0 -0
  270. package/client/assets/Editor-B_NlyOLw.css +0 -1
  271. package/client/assets/Editor-B_NlyOLw.css.br +0 -0
  272. package/client/assets/Editor-B_NlyOLw.css.gz +0 -0
  273. package/client/assets/Editor.module-DvV2efYs.js +0 -2
  274. package/client/assets/Editor.module-DvV2efYs.js.br +0 -0
  275. package/client/assets/Editor.module-DvV2efYs.js.gz +0 -0
  276. package/client/assets/Editor.module-DvV2efYs.js.map +0 -1
  277. package/client/assets/EditorFeatureWrapper-DaMxgBMP.js +0 -2
  278. package/client/assets/EditorFeatureWrapper-DaMxgBMP.js.br +0 -0
  279. package/client/assets/EditorFeatureWrapper-DaMxgBMP.js.gz +0 -0
  280. package/client/assets/EditorUtils-CgF7UfHP.css +0 -1
  281. package/client/assets/EditorUtils-CgF7UfHP.css.br +0 -0
  282. package/client/assets/EditorUtils-CgF7UfHP.css.gz +0 -0
  283. package/client/assets/EditorUtils-DoaSwWiz.js +0 -2
  284. package/client/assets/EditorUtils-DoaSwWiz.js.br +0 -0
  285. package/client/assets/EditorUtils-DoaSwWiz.js.gz +0 -0
  286. package/client/assets/Empty-D1UteOYj.js.br +0 -0
  287. package/client/assets/Empty-D1UteOYj.js.gz +0 -0
  288. package/client/assets/EmptyPage-DeRjpRKZ.js.br +0 -0
  289. package/client/assets/EmptyPage-DeRjpRKZ.js.gz +0 -0
  290. package/client/assets/FollowButton-FodezDem.js.br +0 -0
  291. package/client/assets/FollowButton-FodezDem.js.gz +0 -0
  292. package/client/assets/MessageControlExport-CFGgiwk_.js +0 -3
  293. package/client/assets/MessageControlExport-CFGgiwk_.js.br +0 -0
  294. package/client/assets/MessageControlExport-CFGgiwk_.js.gz +0 -0
  295. package/client/assets/MessageControlExport-CFGgiwk_.js.map +0 -1
  296. package/client/assets/MessageControlExport-DjoUioWA.css +0 -1
  297. package/client/assets/MessageControlExport-DjoUioWA.css.br +0 -0
  298. package/client/assets/MessageControlExport-DjoUioWA.css.gz +0 -0
  299. package/client/assets/MilestoneEditor-B5BdJ5ju.js +0 -2
  300. package/client/assets/MilestoneEditor-B5BdJ5ju.js.br +0 -0
  301. package/client/assets/MilestoneEditor-B5BdJ5ju.js.gz +0 -0
  302. package/client/assets/MilestoneEditor-B5BdJ5ju.js.map +0 -1
  303. package/client/assets/Modal-B8ZZbVMg.js +0 -2
  304. package/client/assets/Modal-B8ZZbVMg.js.br +0 -0
  305. package/client/assets/Modal-B8ZZbVMg.js.gz +0 -0
  306. package/client/assets/Modal-B8ZZbVMg.js.map +0 -1
  307. package/client/assets/MultiPartProgressBar-BKHk19Hb.js.br +0 -0
  308. package/client/assets/MultiPartProgressBar-BKHk19Hb.js.gz +0 -0
  309. package/client/assets/OperatorExport-BiBcgVKc.css +0 -1
  310. package/client/assets/OperatorExport-BiBcgVKc.css.br +0 -0
  311. package/client/assets/OperatorExport-BiBcgVKc.css.gz +0 -0
  312. package/client/assets/OperatorExport-DQM14DsN.js +0 -2
  313. package/client/assets/OperatorExport-DQM14DsN.js.br +0 -0
  314. package/client/assets/OperatorExport-DQM14DsN.js.gz +0 -0
  315. package/client/assets/OperatorExport-DQM14DsN.js.map +0 -1
  316. package/client/assets/OverviewWrapper-D1hUkrRi.js +0 -2
  317. package/client/assets/OverviewWrapper-D1hUkrRi.js.br +0 -0
  318. package/client/assets/OverviewWrapper-D1hUkrRi.js.gz +0 -0
  319. package/client/assets/OverviewWrapper-D1hUkrRi.js.map +0 -1
  320. package/client/assets/PipHost-B9-cZ8Lm.js.br +0 -0
  321. package/client/assets/PipHost-B9-cZ8Lm.js.gz +0 -0
  322. package/client/assets/PipHost-B9-cZ8Lm.js.map +0 -1
  323. package/client/assets/ProjectInfo-Dp1TZyBd.js +0 -2
  324. package/client/assets/ProjectInfo-Dp1TZyBd.js.br +0 -0
  325. package/client/assets/ProjectInfo-Dp1TZyBd.js.gz +0 -0
  326. package/client/assets/ProtectRoute-EejQ5o_H.js.br +0 -0
  327. package/client/assets/ProtectRoute-EejQ5o_H.js.gz +0 -0
  328. package/client/assets/ProtectedCuesheet-C_tKodwo.css +0 -1
  329. package/client/assets/ProtectedCuesheet-C_tKodwo.css.br +0 -0
  330. package/client/assets/ProtectedCuesheet-C_tKodwo.css.gz +0 -0
  331. package/client/assets/ProtectedCuesheet-DvYSgueA.js +0 -2
  332. package/client/assets/ProtectedCuesheet-DvYSgueA.js.br +0 -0
  333. package/client/assets/ProtectedCuesheet-DvYSgueA.js.gz +0 -0
  334. package/client/assets/ProtectedCuesheet-DvYSgueA.js.map +0 -1
  335. package/client/assets/ProtectedEditor-B0l0X3QP.js +0 -3
  336. package/client/assets/ProtectedEditor-B0l0X3QP.js.br +0 -0
  337. package/client/assets/ProtectedEditor-B0l0X3QP.js.gz +0 -0
  338. package/client/assets/ProtectedEditor-B0l0X3QP.js.map +0 -1
  339. package/client/assets/ProtectedEditor-Dw0pWw0J.css.br +0 -0
  340. package/client/assets/RundownEntry-CwiStTnR.js +0 -2
  341. package/client/assets/RundownEntry-CwiStTnR.js.br +0 -0
  342. package/client/assets/RundownEntry-CwiStTnR.js.gz +0 -0
  343. package/client/assets/RundownEntry-CwiStTnR.js.map +0 -1
  344. package/client/assets/RundownExport-CCaOfHIr.js +0 -3
  345. package/client/assets/RundownExport-CCaOfHIr.js.br +0 -0
  346. package/client/assets/RundownExport-CCaOfHIr.js.gz +0 -0
  347. package/client/assets/RundownExport-CCaOfHIr.js.map +0 -1
  348. package/client/assets/RundownExport-DtSvAfBG.css.br +0 -0
  349. package/client/assets/RundownExport-DtSvAfBG.css.gz +0 -0
  350. package/client/assets/Select-cHK8JrMG.js.br +0 -0
  351. package/client/assets/Select-cHK8JrMG.js.gz +0 -0
  352. package/client/assets/Select-cHK8JrMG.js.map +0 -1
  353. package/client/assets/Studio-BzwFDYzk.js +0 -2
  354. package/client/assets/Studio-BzwFDYzk.js.br +0 -0
  355. package/client/assets/Studio-BzwFDYzk.js.gz +0 -0
  356. package/client/assets/Studio-BzwFDYzk.js.map +0 -1
  357. package/client/assets/StyleEditor-RZvkKHdf.js.br +0 -0
  358. package/client/assets/StyleEditor-RZvkKHdf.js.gz +0 -0
  359. package/client/assets/SuperscriptPeriod-DaZq1rr6.js.br +0 -0
  360. package/client/assets/SuperscriptPeriod-DaZq1rr6.js.gz +0 -0
  361. package/client/assets/SuperscriptPeriod-DaZq1rr6.js.map +0 -1
  362. package/client/assets/SuperscriptTime-Mc0ZGBMo.js +0 -2
  363. package/client/assets/SuperscriptTime-Mc0ZGBMo.js.br +0 -0
  364. package/client/assets/SuperscriptTime-Mc0ZGBMo.js.gz +0 -0
  365. package/client/assets/SuperscriptTime-Mc0ZGBMo.js.map +0 -1
  366. package/client/assets/TimeElements-dIvFHgcd.js.br +0 -0
  367. package/client/assets/TimeElements-dIvFHgcd.js.gz +0 -0
  368. package/client/assets/TimeElements-dIvFHgcd.js.map +0 -1
  369. package/client/assets/TimeInput-Duzx40TC.js +0 -2
  370. package/client/assets/TimeInput-Duzx40TC.js.br +0 -0
  371. package/client/assets/TimeInput-Duzx40TC.js.gz +0 -0
  372. package/client/assets/TimelinePage-C-OHrCR8.js +0 -2
  373. package/client/assets/TimelinePage-C-OHrCR8.js.br +0 -0
  374. package/client/assets/TimelinePage-C-OHrCR8.js.gz +0 -0
  375. package/client/assets/TimelinePage-C-OHrCR8.js.map +0 -1
  376. package/client/assets/Timer-CGqVtVEC.js +0 -2
  377. package/client/assets/Timer-CGqVtVEC.js.br +0 -0
  378. package/client/assets/Timer-CGqVtVEC.js.gz +0 -0
  379. package/client/assets/Timer-CGqVtVEC.js.map +0 -1
  380. package/client/assets/TimerControlExport-DavNxY9p.css.br +0 -0
  381. package/client/assets/TimerControlExport-GJn4WWdH.js +0 -2
  382. package/client/assets/TimerControlExport-GJn4WWdH.js.br +0 -0
  383. package/client/assets/TimerControlExport-GJn4WWdH.js.gz +0 -0
  384. package/client/assets/TitleCard-BqbrUnHO.js.br +0 -0
  385. package/client/assets/TitleCard-BqbrUnHO.js.gz +0 -0
  386. package/client/assets/Tooltip-BQBvaIZx.js.br +0 -0
  387. package/client/assets/Tooltip-BQBvaIZx.js.gz +0 -0
  388. package/client/assets/Tooltip-BQBvaIZx.js.map +0 -1
  389. package/client/assets/ViewLogo-BdL1hUV1.js +0 -2
  390. package/client/assets/ViewLogo-BdL1hUV1.js.br +0 -0
  391. package/client/assets/ViewLogo-BdL1hUV1.js.gz +0 -0
  392. package/client/assets/ViewLogo-BdL1hUV1.js.map +0 -1
  393. package/client/assets/ViewParamsEditor-CFedpp6w.js +0 -2
  394. package/client/assets/ViewParamsEditor-CFedpp6w.js.br +0 -0
  395. package/client/assets/ViewParamsEditor-CFedpp6w.js.gz +0 -0
  396. package/client/assets/ViewParamsEditor-CFedpp6w.js.map +0 -1
  397. package/client/assets/dateConfig-BU1RZfIK.js.br +0 -0
  398. package/client/assets/dateConfig-BU1RZfIK.js.gz +0 -0
  399. package/client/assets/editorSettings-BMt-7s8I.js.br +0 -0
  400. package/client/assets/editorSettings-BMt-7s8I.js.gz +0 -0
  401. package/client/assets/getProgress-sdxPEEPi.js.br +0 -0
  402. package/client/assets/getProgress-sdxPEEPi.js.gz +0 -0
  403. package/client/assets/index-BuJoGGff.css.br +0 -0
  404. package/client/assets/index-BuJoGGff.css.gz +0 -0
  405. package/client/assets/index-CoGiopcb.js +0 -3
  406. package/client/assets/index-CoGiopcb.js.br +0 -0
  407. package/client/assets/index-CoGiopcb.js.gz +0 -0
  408. package/client/assets/index-CoGiopcb.js.map +0 -1
  409. package/client/assets/offset-BS90Rks2.js.br +0 -0
  410. package/client/assets/offset-BS90Rks2.js.gz +0 -0
  411. package/client/assets/parseUserTime-DZJMcfuJ.js.br +0 -0
  412. package/client/assets/parseUserTime-DZJMcfuJ.js.gz +0 -0
  413. package/client/assets/playbackstate-CWexoP3a.js.br +0 -0
  414. package/client/assets/playbackstate-CWexoP3a.js.gz +0 -0
  415. package/client/assets/presentation.utils-Zo5hNQje.js.br +0 -0
  416. package/client/assets/presentation.utils-Zo5hNQje.js.gz +0 -0
  417. package/client/assets/rundownUtils-Dl1x6NDv.js +0 -2
  418. package/client/assets/rundownUtils-Dl1x6NDv.js.br +0 -0
  419. package/client/assets/rundownUtils-Dl1x6NDv.js.gz +0 -0
  420. package/client/assets/timer.utils-BnMyVO6Z.js.br +0 -0
  421. package/client/assets/timer.utils-BnMyVO6Z.js.gz +0 -0
  422. package/client/assets/timer.utils-BnMyVO6Z.js.map +0 -1
  423. package/client/assets/useCustomFields-CcTb-GQM.js.br +0 -0
  424. package/client/assets/useCustomFields-CcTb-GQM.js.gz +0 -0
  425. package/client/assets/useFollowComponent-BjhV6Uv8.js.br +0 -0
  426. package/client/assets/useFollowComponent-BjhV6Uv8.js.gz +0 -0
  427. package/client/assets/useProjectData-B5mjXsMj.js +0 -2
  428. package/client/assets/useProjectData-B5mjXsMj.js.br +0 -0
  429. package/client/assets/useProjectData-B5mjXsMj.js.gz +0 -0
  430. package/client/assets/useProjectData-B5mjXsMj.js.map +0 -1
  431. package/client/assets/useReport-zMbyWwpn.js.br +0 -0
  432. package/client/assets/useReport-zMbyWwpn.js.gz +0 -0
  433. package/client/assets/useRundown-CHsh5rnl.js +0 -2
  434. package/client/assets/useRundown-CHsh5rnl.js.br +0 -0
  435. package/client/assets/useRundown-CHsh5rnl.js.gz +0 -0
  436. package/client/assets/useRundown-CHsh5rnl.js.map +0 -1
  437. package/client/assets/useWindowTitle-mLKt65i7.js.br +0 -0
  438. package/client/assets/useWindowTitle-mLKt65i7.js.gz +0 -0
  439. package/client/assets/useWindowTitle-mLKt65i7.js.map +0 -1
  440. package/client/assets/validateEvent-CUmvjN95.js.br +0 -0
  441. package/client/assets/validateEvent-CUmvjN95.js.gz +0 -0
  442. package/client/assets/vendor-Cdwxo8bP.js +0 -75
  443. package/client/assets/vendor-Cdwxo8bP.js.br +0 -0
  444. package/client/assets/vendor-Cdwxo8bP.js.gz +0 -0
  445. package/client/assets/viewLoader.utils-DuXjY5zb.js.br +0 -0
  446. package/client/assets/viewLoader.utils-DuXjY5zb.js.gz +0 -0
  447. package/client/assets/viewUtils-dKRKkb_F.js.br +0 -0
  448. package/client/assets/viewUtils-dKRKkb_F.js.gz +0 -0
  449. package/client/assets/viewUtils-dKRKkb_F.js.map +0 -1
  450. /package/client/assets/{useProjectData-Cw1aXCwD.css → SwatchPicker-Cw1aXCwD.css} +0 -0
  451. /package/client/assets/{useProjectData-Cw1aXCwD.css.br → SwatchPicker-Cw1aXCwD.css.br} +0 -0
  452. /package/client/assets/{useProjectData-Cw1aXCwD.css.gz → SwatchPicker-Cw1aXCwD.css.gz} +0 -0
@@ -0,0 +1,74 @@
1
+ var uk=Object.defineProperty;var k_=e=>{throw TypeError(e)};var ck=(e,t,n)=>t in e?uk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var jt=(e,t,n)=>ck(e,typeof t!="symbol"?t+"":t,n),Ny=(e,t,n)=>t.has(e)||k_("Cannot "+n);var J=(e,t,n)=>(Ny(e,t,"read from private field"),n?n.call(e):t.get(e)),et=(e,t,n)=>t.has(e)?k_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ge=(e,t,n,r)=>(Ny(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),_t=(e,t,n)=>(Ny(e,t,"access private method"),n);var _p=(e,t,n,r)=>({set _(i){Ge(e,t,i,n)},get _(){return J(e,t,r)}});(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8f4719b7-555b-41d1-85b7-c1c165e584ad",e._sentryDebugIdIdentifier="sentry-dbid-8f4719b7-555b-41d1-85b7-c1c165e584ad")}catch{}})();function cM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var fk=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};fk.SENTRY_RELEASE={id:"6e5805977a0d1a7c4e5d48f64d56f4be1a7cb87e"};var N_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fy={exports:{}},Nf={};var F_;function dk(){if(F_)return Nf;F_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Nf.Fragment=t,Nf.jsx=n,Nf.jsxs=n,Nf}var z_;function hk(){return z_||(z_=1,Fy.exports=dk()),Fy.exports}var Re=hk(),zy={exports:{}},vt={};var B_;function pk(){if(B_)return vt;B_=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"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),m=Symbol.iterator;function y(k){return k===null||typeof k!="object"?null:(k=m&&k[m]||k["@@iterator"],typeof k=="function"?k:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function C(k,$,X){this.props=k,this.context=$,this.refs=x,this.updater=X||E}C.prototype.isReactComponent={},C.prototype.setState=function(k,$){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,$,"setState")},C.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function R(){}R.prototype=C.prototype;function _(k,$,X){this.props=k,this.context=$,this.refs=x,this.updater=X||E}var O=_.prototype=new R;O.constructor=_,b(O,C.prototype),O.isPureReactComponent=!0;var T=Array.isArray;function M(){}var A={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function L(k,$,X){var te=X.ref;return{$$typeof:e,type:k,key:$,ref:te!==void 0?te:null,props:X}}function F(k,$){return L(k.type,$,k.props)}function B(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function j(k){var $={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(X){return $[X]})}var z=/\/+/g;function G(k,$){return typeof k=="object"&&k!==null&&k.key!=null?j(""+k.key):$.toString(36)}function V(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(M,M):(k.status="pending",k.then(function($){k.status==="pending"&&(k.status="fulfilled",k.value=$)},function($){k.status==="pending"&&(k.status="rejected",k.reason=$)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function P(k,$,X,te,ue){var ne=typeof k;(ne==="undefined"||ne==="boolean")&&(k=null);var ce=!1;if(k===null)ce=!0;else switch(ne){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(k.$$typeof){case e:case t:ce=!0;break;case p:return ce=k._init,P(ce(k._payload),$,X,te,ue)}}if(ce)return ue=ue(k),ce=te===""?"."+G(k,0):te,T(ue)?(X="",ce!=null&&(X=ce.replace(z,"$&/")+"/"),P(ue,$,X,"",function(Ee){return Ee})):ue!=null&&(B(ue)&&(ue=F(ue,X+(ue.key==null||k&&k.key===ue.key?"":(""+ue.key).replace(z,"$&/")+"/")+ce)),$.push(ue)),1;ce=0;var Q=te===""?".":te+":";if(T(k))for(var ve=0;ve<k.length;ve++)te=k[ve],ne=Q+G(te,ve),ce+=P(te,$,X,ne,ue);else if(ve=y(k),typeof ve=="function")for(k=ve.call(k),ve=0;!(te=k.next()).done;)te=te.value,ne=Q+G(te,ve++),ce+=P(te,$,X,ne,ue);else if(ne==="object"){if(typeof k.then=="function")return P(V(k),$,X,te,ue);throw $=String(k),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return ce}function q(k,$,X){if(k==null)return k;var te=[],ue=0;return P(k,te,"","",function(ne){return $.call(X,ne,ue++)}),te}function U(k){if(k._status===-1){var $=k._result;$=$(),$.then(function(X){(k._status===0||k._status===-1)&&(k._status=1,k._result=X)},function(X){(k._status===0||k._status===-1)&&(k._status=2,k._result=X)}),k._status===-1&&(k._status=0,k._result=$)}if(k._status===1)return k._result.default;throw k._result}var K=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Z={map:q,forEach:function(k,$,X){q(k,function(){$.apply(this,arguments)},X)},count:function(k){var $=0;return q(k,function(){$++}),$},toArray:function(k){return q(k,function($){return $})||[]},only:function(k){if(!B(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return vt.Activity=g,vt.Children=Z,vt.Component=C,vt.Fragment=n,vt.Profiler=i,vt.PureComponent=_,vt.StrictMode=r,vt.Suspense=f,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,vt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return A.H.useMemoCache(k)}},vt.cache=function(k){return function(){return k.apply(null,arguments)}},vt.cacheSignal=function(){return null},vt.cloneElement=function(k,$,X){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var te=b({},k.props),ue=k.key;if($!=null)for(ne in $.key!==void 0&&(ue=""+$.key),$)!D.call($,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&$.ref===void 0||(te[ne]=$[ne]);var ne=arguments.length-2;if(ne===1)te.children=X;else if(1<ne){for(var ce=Array(ne),Q=0;Q<ne;Q++)ce[Q]=arguments[Q+2];te.children=ce}return L(k.type,ue,te)},vt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},vt.createElement=function(k,$,X){var te,ue={},ne=null;if($!=null)for(te in $.key!==void 0&&(ne=""+$.key),$)D.call($,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ue[te]=$[te]);var ce=arguments.length-2;if(ce===1)ue.children=X;else if(1<ce){for(var Q=Array(ce),ve=0;ve<ce;ve++)Q[ve]=arguments[ve+2];ue.children=Q}if(k&&k.defaultProps)for(te in ce=k.defaultProps,ce)ue[te]===void 0&&(ue[te]=ce[te]);return L(k,ne,ue)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(k){return{$$typeof:c,render:k}},vt.isValidElement=B,vt.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:U}},vt.memo=function(k,$){return{$$typeof:d,type:k,compare:$===void 0?null:$}},vt.startTransition=function(k){var $=A.T,X={};A.T=X;try{var te=k(),ue=A.S;ue!==null&&ue(X,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(M,K)}catch(ne){K(ne)}finally{$!==null&&X.types!==null&&($.types=X.types),A.T=$}},vt.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},vt.use=function(k){return A.H.use(k)},vt.useActionState=function(k,$,X){return A.H.useActionState(k,$,X)},vt.useCallback=function(k,$){return A.H.useCallback(k,$)},vt.useContext=function(k){return A.H.useContext(k)},vt.useDebugValue=function(){},vt.useDeferredValue=function(k,$){return A.H.useDeferredValue(k,$)},vt.useEffect=function(k,$){return A.H.useEffect(k,$)},vt.useEffectEvent=function(k){return A.H.useEffectEvent(k)},vt.useId=function(){return A.H.useId()},vt.useImperativeHandle=function(k,$,X){return A.H.useImperativeHandle(k,$,X)},vt.useInsertionEffect=function(k,$){return A.H.useInsertionEffect(k,$)},vt.useLayoutEffect=function(k,$){return A.H.useLayoutEffect(k,$)},vt.useMemo=function(k,$){return A.H.useMemo(k,$)},vt.useOptimistic=function(k,$){return A.H.useOptimistic(k,$)},vt.useReducer=function(k,$,X){return A.H.useReducer(k,$,X)},vt.useRef=function(k){return A.H.useRef(k)},vt.useState=function(k){return A.H.useState(k)},vt.useSyncExternalStore=function(k,$,X){return A.H.useSyncExternalStore(k,$,X)},vt.useTransition=function(){return A.H.useTransition()},vt.version="19.2.3",vt}var H_;function Es(){return H_||(H_=1,zy.exports=pk()),zy.exports}var S=Es();const fe=Ss(S),fM=cM({__proto__:null,default:fe},[S]);var By={exports:{}},Ff={},Hy={exports:{}},Uy={};var U_;function gk(){return U_||(U_=1,function(e){function t(P,q){var U=P.length;P.push(q);e:for(;0<U;){var K=U-1>>>1,Z=P[K];if(0<i(Z,q))P[K]=q,P[U]=Z,U=K;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var q=P[0],U=P.pop();if(U!==q){P[0]=U;e:for(var K=0,Z=P.length,k=Z>>>1;K<k;){var $=2*(K+1)-1,X=P[$],te=$+1,ue=P[te];if(0>i(X,U))te<Z&&0>i(ue,X)?(P[K]=ue,P[te]=U,K=te):(P[K]=X,P[$]=U,K=$);else if(te<Z&&0>i(ue,U))P[K]=ue,P[te]=U,K=te;else break e}}return q}function i(P,q){var U=P.sortIndex-q.sortIndex;return U!==0?U:P.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],p=1,g=null,m=3,y=!1,E=!1,b=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function O(P){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=P)r(d),q.sortIndex=q.expirationTime,t(f,q);else break;q=n(d)}}function T(P){if(b=!1,O(P),!E)if(n(f)!==null)E=!0,M||(M=!0,j());else{var q=n(d);q!==null&&V(T,q.startTime-P)}}var M=!1,A=-1,D=5,L=-1;function F(){return x?!0:!(e.unstable_now()-L<D)}function B(){if(x=!1,M){var P=e.unstable_now();L=P;var q=!0;try{e:{E=!1,b&&(b=!1,R(A),A=-1),y=!0;var U=m;try{t:{for(O(P),g=n(f);g!==null&&!(g.expirationTime>P&&F());){var K=g.callback;if(typeof K=="function"){g.callback=null,m=g.priorityLevel;var Z=K(g.expirationTime<=P);if(P=e.unstable_now(),typeof Z=="function"){g.callback=Z,O(P),q=!0;break t}g===n(f)&&r(f),O(P)}else r(f);g=n(f)}if(g!==null)q=!0;else{var k=n(d);k!==null&&V(T,k.startTime-P),q=!1}}break e}finally{g=null,m=U,y=!1}q=void 0}}finally{q?j():M=!1}}}var j;if(typeof _=="function")j=function(){_(B)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,G=z.port2;z.port1.onmessage=B,j=function(){G.postMessage(null)}}else j=function(){C(B,0)};function V(P,q){A=C(function(){P(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(P){switch(m){case 1:case 2:case 3:var q=3;break;default:q=m}var U=m;m=q;try{return P()}finally{m=U}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(P,q){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var U=m;m=P;try{return q()}finally{m=U}},e.unstable_scheduleCallback=function(P,q,U){var K=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?K+U:K):U=K,P){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=U+Z,P={id:p++,callback:q,priorityLevel:P,startTime:U,expirationTime:Z,sortIndex:-1},U>K?(P.sortIndex=U,t(d,P),n(f)===null&&P===n(d)&&(b?(R(A),A=-1):b=!0,V(T,U-K))):(P.sortIndex=Z,t(f,P),E||y||(E=!0,M||(M=!0,j()))),P},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(P){var q=m;return function(){var U=m;m=q;try{return P.apply(this,arguments)}finally{m=U}}}}(Uy)),Uy}var V_;function mk(){return V_||(V_=1,Hy.exports=gk()),Hy.exports}var Vy={exports:{}},br={};var j_;function vk(){if(j_)return br;j_=1;var e=Es();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(f,d,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:f,containerInfo:d,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return br.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,br.createPortal=function(f,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,p)},br.flushSync=function(f){var d=l.T,p=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=p,r.d.f()}},br.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},br.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},br.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var p=d.as,g=c(p,d.crossOrigin),m=typeof d.integrity=="string"?d.integrity:void 0,y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:m,fetchPriority:y}):p==="script"&&r.d.X(f,{crossOrigin:g,integrity:m,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},br.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},br.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,g=c(p,d.crossOrigin);r.d.L(f,p,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},br.preloadModule=function(f,d){if(typeof f=="string")if(d){var p=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},br.requestFormReset=function(f){r.d.r(f)},br.unstable_batchedUpdates=function(f,d){return f(d)},br.useFormState=function(f,d,p){return l.H.useFormState(f,d,p)},br.useFormStatus=function(){return l.H.useHostTransitionStatus()},br.version="19.2.3",br}var $_;function dM(){if($_)return Vy.exports;$_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vy.exports=vk(),Vy.exports}var q_;function yk(){if(q_)return Ff;q_=1;var e=mk(),t=Es(),n=dM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function d(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var v=u.return;if(v===null)break;var w=v.alternate;if(w===null){if(h=v.return,h!==null){u=h;continue}break}if(v.child===w.child){for(w=v.child;w;){if(w===u)return f(v),o;if(w===h)return f(v),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=v,h=w;else{for(var I=!1,N=v.child;N;){if(N===u){I=!0,u=v,h=w;break}if(N===h){I=!0,h=v,u=w;break}N=N.sibling}if(!I){for(N=w.child;N;){if(N===u){I=!0,u=w,h=v;break}if(N===h){I=!0,h=w,u=v;break}N=N.sibling}if(!I)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function p(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=p(o),a!==null)return a;o=o.sibling}return null}var g=Object.assign,m=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function j(o){return o===null||typeof o!="object"?null:(o=B&&o[B]||o["@@iterator"],typeof o=="function"?o:null)}var z=Symbol.for("react.client.reference");function G(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===z?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case C:return"Profiler";case x:return"StrictMode";case T:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case E:return"Portal";case _:return o.displayName||"Context";case R:return(o._context.displayName||"Context")+".Consumer";case O:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case A:return a=o.displayName||null,a!==null?a:G(o.type)||"Memo";case D:a=o._payload,o=o._init;try{return G(o(a))}catch{}}return null}var V=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},K=[],Z=-1;function k(o){return{current:o}}function $(o){0>Z||(o.current=K[Z],K[Z]=null,Z--)}function X(o,a){Z++,K[Z]=o.current,o.current=a}var te=k(null),ue=k(null),ne=k(null),ce=k(null);function Q(o,a){switch(X(ne,a),X(ue,o),X(te,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?o_(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=o_(a),o=i_(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}$(te),X(te,o)}function ve(){$(te),$(ue),$(ne)}function Ee(o){o.memoizedState!==null&&X(ce,o);var a=te.current,u=i_(a,o.type);a!==u&&(X(ue,o),X(te,u))}function le(o){ue.current===o&&($(te),$(ue)),ce.current===o&&($(ce),Df._currentValue=U)}var me,Ce;function Ie(o){if(me===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);me=a&&a[1]||"",Ce=-1<u.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+me+o+Ce}var Me=!1;function be(o,a){if(!o||Me)return"";Me=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(Se){var ge=Se}Reflect.construct(o,[],Ae)}else{try{Ae.call()}catch(Se){ge=Se}o.call(Ae.prototype)}}else{try{throw Error()}catch(Se){ge=Se}(Ae=o())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(Se){if(Se&&ge&&typeof Se.stack=="string")return[Se.stack,ge.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),I=w[0],N=w[1];if(I&&N){var W=I.split(`
4
+ `),pe=N.split(`
5
+ `);for(v=h=0;h<W.length&&!W[h].includes("DetermineComponentFrameRoot");)h++;for(;v<pe.length&&!pe[v].includes("DetermineComponentFrameRoot");)v++;if(h===W.length||v===pe.length)for(h=W.length-1,v=pe.length-1;1<=h&&0<=v&&W[h]!==pe[v];)v--;for(;1<=h&&0<=v;h--,v--)if(W[h]!==pe[v]){if(h!==1||v!==1)do if(h--,v--,0>v||W[h]!==pe[v]){var _e=`
6
+ `+W[h].replace(" at new "," at ");return o.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",o.displayName)),_e}while(1<=h&&0<=v);break}}}finally{Me=!1,Error.prepareStackTrace=u}return(u=o?o.displayName||o.name:"")?Ie(u):""}function xe(o,a){switch(o.tag){case 26:case 27:case 5:return Ie(o.type);case 16:return Ie("Lazy");case 13:return o.child!==a&&a!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return be(o.type,!1);case 11:return be(o.type.render,!1);case 1:return be(o.type,!0);case 31:return Ie("Activity");default:return""}}function we(o){try{var a="",u=null;do a+=xe(o,u),u=o,o=o.return;while(o);return a}catch(h){return`
7
+ Error generating stack: `+h.message+`
8
+ `+h.stack}}var De=Object.prototype.hasOwnProperty,H=e.unstable_scheduleCallback,Y=e.unstable_cancelCallback,ee=e.unstable_shouldYield,ie=e.unstable_requestPaint,ae=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,Oe=e.unstable_ImmediatePriority,Be=e.unstable_UserBlockingPriority,Fe=e.unstable_NormalPriority,Ke=e.unstable_LowPriority,it=e.unstable_IdlePriority,rt=e.log,kt=e.unstable_setDisableYieldValue,ut=null,he=null;function ze(o){if(typeof rt=="function"&&kt(o),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(ut,o)}catch{}}var He=Math.clz32?Math.clz32:nt,tt=Math.log,mt=Math.LN2;function nt(o){return o>>>=0,o===0?32:31-(tt(o)/mt|0)|0}var yt=256,qt=262144,Ze=4194304;function bt(o){var a=o&42;if(a!==0)return a;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function ct(o,a,u){var h=o.pendingLanes;if(h===0)return 0;var v=0,w=o.suspendedLanes,I=o.pingedLanes;o=o.warmLanes;var N=h&134217727;return N!==0?(h=N&~w,h!==0?v=bt(h):(I&=N,I!==0?v=bt(I):u||(u=N&~o,u!==0&&(v=bt(u))))):(N=h&~w,N!==0?v=bt(N):I!==0?v=bt(I):u||(u=h&~o,u!==0&&(v=bt(u)))),v===0?0:a!==0&&a!==v&&(a&w)===0&&(w=v&-v,u=a&-a,w>=u||w===32&&(u&4194048)!==0)?a:v}function Bt(o,a){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&a)===0}function sn(o,a){switch(o){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var o=Ze;return Ze<<=1,(Ze&62914560)===0&&(Ze=4194304),o}function Ct(o){for(var a=[],u=0;31>u;u++)a.push(o);return a}function en(o,a){o.pendingLanes|=a,a!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ht(o,a,u,h,v,w){var I=o.pendingLanes;o.pendingLanes=u,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=u,o.entangledLanes&=u,o.errorRecoveryDisabledLanes&=u,o.shellSuspendCounter=0;var N=o.entanglements,W=o.expirationTimes,pe=o.hiddenUpdates;for(u=I&~u;0<u;){var _e=31-He(u),Ae=1<<_e;N[_e]=0,W[_e]=-1;var ge=pe[_e];if(ge!==null)for(pe[_e]=null,_e=0;_e<ge.length;_e++){var Se=ge[_e];Se!==null&&(Se.lane&=-536870913)}u&=~Ae}h!==0&&an(o,h,0),w!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=w&~(I&~a))}function an(o,a,u){o.pendingLanes|=a,o.suspendedLanes&=~a;var h=31-He(a);o.entangledLanes|=a,o.entanglements[h]=o.entanglements[h]|1073741824|u&261930}function vn(o,a){var u=o.entangledLanes|=a;for(o=o.entanglements;u;){var h=31-He(u),v=1<<h;v&a|o[h]&a&&(o[h]|=a),u&=~v}}function gn(o,a){var u=a&-a;return u=(u&42)!==0?1:cr(u),(u&(o.suspendedLanes|a))!==0?0:u}function cr(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function kr(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Vn(){var o=q.p;return o!==0?o:(o=window.event,o===void 0?32:A_(o.type))}function ro(o,a){var u=q.p;try{return q.p=o,a()}finally{q.p=u}}var Nr=Math.random().toString(36).slice(2),Qn="__reactFiber$"+Nr,fr="__reactProps$"+Nr,zi="__reactContainer$"+Nr,Hl="__reactEvents$"+Nr,J5="__reactListeners$"+Nr,Z5="__reactHandles$"+Nr,qw="__reactResources$"+Nr,Gc="__reactMarker$"+Nr;function A0(o){delete o[Qn],delete o[fr],delete o[Hl],delete o[J5],delete o[Z5]}function Ul(o){var a=o[Qn];if(a)return a;for(var u=o.parentNode;u;){if(a=u[zi]||u[Qn]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(o=d_(o);o!==null;){if(u=o[Qn])return u;o=d_(o)}return a}o=u,u=o.parentNode}return null}function Vl(o){if(o=o[Qn]||o[zi]){var a=o.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return o}return null}function Yc(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o.stateNode;throw Error(r(33))}function jl(o){var a=o[qw];return a||(a=o[qw]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function or(o){o[Gc]=!0}var Gw=new Set,Yw={};function La(o,a){$l(o,a),$l(o+"Capture",a)}function $l(o,a){for(Yw[o]=a,o=0;o<a.length;o++)Gw.add(a[o])}var eL=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Kw={},Xw={};function tL(o){return De.call(Xw,o)?!0:De.call(Kw,o)?!1:eL.test(o)?Xw[o]=!0:(Kw[o]=!0,!1)}function ph(o,a,u){if(tL(a))if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":o.removeAttribute(a);return;case"boolean":var h=a.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){o.removeAttribute(a);return}}o.setAttribute(a,""+u)}}function gh(o,a,u){if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttribute(a,""+u)}}function Bi(o,a,u,h){if(h===null)o.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttributeNS(a,u,""+h)}}function Ro(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ww(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function nL(o,a,u){var h=Object.getOwnPropertyDescriptor(o.constructor.prototype,a);if(!o.hasOwnProperty(a)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,w=h.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return v.call(this)},set:function(I){u=""+I,w.call(this,I)}}),Object.defineProperty(o,a,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(I){u=""+I},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function O0(o){if(!o._valueTracker){var a=Ww(o)?"checked":"value";o._valueTracker=nL(o,a,""+o[a])}}function Qw(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var u=a.getValue(),h="";return o&&(h=Ww(o)?o.checked?"true":"false":o.value),o=h,o!==u?(a.setValue(o),!0):!1}function mh(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var rL=/[\n"\\]/g;function xo(o){return o.replace(rL,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function M0(o,a,u,h,v,w,I,N){o.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?o.type=I:o.removeAttribute("type"),a!=null?I==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+Ro(a)):o.value!==""+Ro(a)&&(o.value=""+Ro(a)):I!=="submit"&&I!=="reset"||o.removeAttribute("value"),a!=null?I0(o,I,Ro(a)):u!=null?I0(o,I,Ro(u)):h!=null&&o.removeAttribute("value"),v==null&&w!=null&&(o.defaultChecked=!!w),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?o.name=""+Ro(N):o.removeAttribute("name")}function Jw(o,a,u,h,v,w,I,N){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(o.type=w),a!=null||u!=null){if(!(w!=="submit"&&w!=="reset"||a!=null)){O0(o);return}u=u!=null?""+Ro(u):"",a=a!=null?""+Ro(a):u,N||a===o.value||(o.value=a),o.defaultValue=a}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,o.checked=N?o.checked:!!h,o.defaultChecked=!!h,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.name=I),O0(o)}function I0(o,a,u){a==="number"&&mh(o.ownerDocument)===o||o.defaultValue===""+u||(o.defaultValue=""+u)}function ql(o,a,u,h){if(o=o.options,a){a={};for(var v=0;v<u.length;v++)a["$"+u[v]]=!0;for(u=0;u<o.length;u++)v=a.hasOwnProperty("$"+o[u].value),o[u].selected!==v&&(o[u].selected=v),v&&h&&(o[u].defaultSelected=!0)}else{for(u=""+Ro(u),a=null,v=0;v<o.length;v++){if(o[v].value===u){o[v].selected=!0,h&&(o[v].defaultSelected=!0);return}a!==null||o[v].disabled||(a=o[v])}a!==null&&(a.selected=!0)}}function Zw(o,a,u){if(a!=null&&(a=""+Ro(a),a!==o.value&&(o.value=a),u==null)){o.defaultValue!==a&&(o.defaultValue=a);return}o.defaultValue=u!=null?""+Ro(u):""}function eR(o,a,u,h){if(a==null){if(h!=null){if(u!=null)throw Error(r(92));if(V(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),a=u}u=Ro(a),o.defaultValue=u,h=o.textContent,h===u&&h!==""&&h!==null&&(o.value=h),O0(o)}function Gl(o,a){if(a){var u=o.firstChild;if(u&&u===o.lastChild&&u.nodeType===3){u.nodeValue=a;return}}o.textContent=a}var oL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tR(o,a,u){var h=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?o.setProperty(a,""):a==="float"?o.cssFloat="":o[a]="":h?o.setProperty(a,u):typeof u!="number"||u===0||oL.has(a)?a==="float"?o.cssFloat=u:o[a]=(""+u).trim():o[a]=u+"px"}function nR(o,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(o=o.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||a!=null&&a.hasOwnProperty(h)||(h.indexOf("--")===0?o.setProperty(h,""):h==="float"?o.cssFloat="":o[h]="");for(var v in a)h=a[v],a.hasOwnProperty(v)&&u[v]!==h&&tR(o,v,h)}else for(var w in a)a.hasOwnProperty(w)&&tR(o,w,a[w])}function D0(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vh(o){return sL.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Hi(){}var L0=null;function P0(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Yl=null,Kl=null;function rR(o){var a=Vl(o);if(a&&(o=a.stateNode)){var u=o[fr]||null;e:switch(o=a.stateNode,a.type){case"input":if(M0(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=o;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+xo(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var h=u[a];if(h!==o&&h.form===o.form){var v=h[fr]||null;if(!v)throw Error(r(90));M0(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<u.length;a++)h=u[a],h.form===o.form&&Qw(h)}break e;case"textarea":Zw(o,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&ql(o,!!u.multiple,a,!1)}}}var k0=!1;function oR(o,a,u){if(k0)return o(a,u);k0=!0;try{var h=o(a);return h}finally{if(k0=!1,(Yl!==null||Kl!==null)&&(op(),Yl&&(a=Yl,o=Kl,Kl=Yl=null,rR(a),o)))for(a=0;a<o.length;a++)rR(o[a])}}function Kc(o,a){var u=o.stateNode;if(u===null)return null;var h=u[fr]||null;if(h===null)return null;u=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var Ui=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N0=!1;if(Ui)try{var Xc={};Object.defineProperty(Xc,"passive",{get:function(){N0=!0}}),window.addEventListener("test",Xc,Xc),window.removeEventListener("test",Xc,Xc)}catch{N0=!1}var Cs=null,F0=null,yh=null;function iR(){if(yh)return yh;var o,a=F0,u=a.length,h,v="value"in Cs?Cs.value:Cs.textContent,w=v.length;for(o=0;o<u&&a[o]===v[o];o++);var I=u-o;for(h=1;h<=I&&a[u-h]===v[w-h];h++);return yh=v.slice(o,1<h?1-h:void 0)}function bh(o){var a=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function Sh(){return!0}function sR(){return!1}function Fr(o){function a(u,h,v,w,I){this._reactName=u,this._targetInst=v,this.type=h,this.nativeEvent=w,this.target=I,this.currentTarget=null;for(var N in o)o.hasOwnProperty(N)&&(u=o[N],this[N]=u?u(w):w[N]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Sh:sR,this.isPropagationStopped=sR,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Sh)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Sh)},persist:function(){},isPersistent:Sh}),a}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eh=Fr(Pa),Wc=g({},Pa,{view:0,detail:0}),aL=Fr(Wc),z0,B0,Qc,wh=g({},Wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:U0,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Qc&&(Qc&&o.type==="mousemove"?(z0=o.screenX-Qc.screenX,B0=o.screenY-Qc.screenY):B0=z0=0,Qc=o),z0)},movementY:function(o){return"movementY"in o?o.movementY:B0}}),aR=Fr(wh),lL=g({},wh,{dataTransfer:0}),uL=Fr(lL),cL=g({},Wc,{relatedTarget:0}),H0=Fr(cL),fL=g({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),dL=Fr(fL),hL=g({},Pa,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),pL=Fr(hL),gL=g({},Pa,{data:0}),lR=Fr(gL),mL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vL={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bL(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=yL[o])?!!a[o]:!1}function U0(){return bL}var SL=g({},Wc,{key:function(o){if(o.key){var a=mL[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=bh(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?vL[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:U0,charCode:function(o){return o.type==="keypress"?bh(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?bh(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),EL=Fr(SL),wL=g({},wh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uR=Fr(wL),RL=g({},Wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:U0}),xL=Fr(RL),CL=g({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),_L=Fr(CL),TL=g({},wh,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),AL=Fr(TL),OL=g({},Pa,{newState:0,oldState:0}),ML=Fr(OL),IL=[9,13,27,32],V0=Ui&&"CompositionEvent"in window,Jc=null;Ui&&"documentMode"in document&&(Jc=document.documentMode);var DL=Ui&&"TextEvent"in window&&!Jc,cR=Ui&&(!V0||Jc&&8<Jc&&11>=Jc),fR=" ",dR=!1;function hR(o,a){switch(o){case"keyup":return IL.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pR(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Xl=!1;function LL(o,a){switch(o){case"compositionend":return pR(a);case"keypress":return a.which!==32?null:(dR=!0,fR);case"textInput":return o=a.data,o===fR&&dR?null:o;default:return null}}function PL(o,a){if(Xl)return o==="compositionend"||!V0&&hR(o,a)?(o=iR(),yh=F0=Cs=null,Xl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return cR&&a.locale!=="ko"?null:a.data;default:return null}}var kL={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gR(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!kL[o.type]:a==="textarea"}function mR(o,a,u,h){Yl?Kl?Kl.push(h):Kl=[h]:Yl=h,a=fp(a,"onChange"),0<a.length&&(u=new Eh("onChange","change",null,u,h),o.push({event:u,listeners:a}))}var Zc=null,ef=null;function NL(o){JC(o,0)}function Rh(o){var a=Yc(o);if(Qw(a))return o}function vR(o,a){if(o==="change")return a}var yR=!1;if(Ui){var j0;if(Ui){var $0="oninput"in document;if(!$0){var bR=document.createElement("div");bR.setAttribute("oninput","return;"),$0=typeof bR.oninput=="function"}j0=$0}else j0=!1;yR=j0&&(!document.documentMode||9<document.documentMode)}function SR(){Zc&&(Zc.detachEvent("onpropertychange",ER),ef=Zc=null)}function ER(o){if(o.propertyName==="value"&&Rh(ef)){var a=[];mR(a,ef,o,P0(o)),oR(NL,a)}}function FL(o,a,u){o==="focusin"?(SR(),Zc=a,ef=u,Zc.attachEvent("onpropertychange",ER)):o==="focusout"&&SR()}function zL(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Rh(ef)}function BL(o,a){if(o==="click")return Rh(a)}function HL(o,a){if(o==="input"||o==="change")return Rh(a)}function UL(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var oo=typeof Object.is=="function"?Object.is:UL;function tf(o,a){if(oo(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var u=Object.keys(o),h=Object.keys(a);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var v=u[h];if(!De.call(a,v)||!oo(o[v],a[v]))return!1}return!0}function wR(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function RR(o,a){var u=wR(o);o=0;for(var h;u;){if(u.nodeType===3){if(h=o+u.textContent.length,o<=a&&h>=a)return{node:u,offset:a-o};o=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=wR(u)}}function xR(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?xR(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function CR(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var a=mh(o.document);a instanceof o.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)o=a.contentWindow;else break;a=mh(o.document)}return a}function q0(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}var VL=Ui&&"documentMode"in document&&11>=document.documentMode,Wl=null,G0=null,nf=null,Y0=!1;function _R(o,a,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Y0||Wl==null||Wl!==mh(h)||(h=Wl,"selectionStart"in h&&q0(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),nf&&tf(nf,h)||(nf=h,h=fp(G0,"onSelect"),0<h.length&&(a=new Eh("onSelect","select",null,a,u),o.push({event:a,listeners:h}),a.target=Wl)))}function ka(o,a){var u={};return u[o.toLowerCase()]=a.toLowerCase(),u["Webkit"+o]="webkit"+a,u["Moz"+o]="moz"+a,u}var Ql={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionrun:ka("Transition","TransitionRun"),transitionstart:ka("Transition","TransitionStart"),transitioncancel:ka("Transition","TransitionCancel"),transitionend:ka("Transition","TransitionEnd")},K0={},TR={};Ui&&(TR=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function Na(o){if(K0[o])return K0[o];if(!Ql[o])return o;var a=Ql[o],u;for(u in a)if(a.hasOwnProperty(u)&&u in TR)return K0[o]=a[u];return o}var AR=Na("animationend"),OR=Na("animationiteration"),MR=Na("animationstart"),jL=Na("transitionrun"),$L=Na("transitionstart"),qL=Na("transitioncancel"),IR=Na("transitionend"),DR=new Map,X0="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");X0.push("scrollEnd");function $o(o,a){DR.set(o,a),La(a,[o])}var xh=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Co=[],Jl=0,W0=0;function Ch(){for(var o=Jl,a=W0=Jl=0;a<o;){var u=Co[a];Co[a++]=null;var h=Co[a];Co[a++]=null;var v=Co[a];Co[a++]=null;var w=Co[a];if(Co[a++]=null,h!==null&&v!==null){var I=h.pending;I===null?v.next=v:(v.next=I.next,I.next=v),h.pending=v}w!==0&&LR(u,v,w)}}function _h(o,a,u,h){Co[Jl++]=o,Co[Jl++]=a,Co[Jl++]=u,Co[Jl++]=h,W0|=h,o.lanes|=h,o=o.alternate,o!==null&&(o.lanes|=h)}function Q0(o,a,u,h){return _h(o,a,u,h),Th(o)}function Fa(o,a){return _h(o,null,null,a),Th(o)}function LR(o,a,u){o.lanes|=u;var h=o.alternate;h!==null&&(h.lanes|=u);for(var v=!1,w=o.return;w!==null;)w.childLanes|=u,h=w.alternate,h!==null&&(h.childLanes|=u),w.tag===22&&(o=w.stateNode,o===null||o._visibility&1||(v=!0)),o=w,w=w.return;return o.tag===3?(w=o.stateNode,v&&a!==null&&(v=31-He(u),o=w.hiddenUpdates,h=o[v],h===null?o[v]=[a]:h.push(a),a.lane=u|536870912),w):null}function Th(o){if(50<Cf)throw Cf=0,sy=null,Error(r(185));for(var a=o.return;a!==null;)o=a,a=o.return;return o.tag===3?o.stateNode:null}var Zl={};function GL(o,a,u,h){this.tag=o,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function io(o,a,u,h){return new GL(o,a,u,h)}function J0(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Vi(o,a){var u=o.alternate;return u===null?(u=io(o.tag,a,o.key,o.mode),u.elementType=o.elementType,u.type=o.type,u.stateNode=o.stateNode,u.alternate=o,o.alternate=u):(u.pendingProps=a,u.type=o.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=o.flags&65011712,u.childLanes=o.childLanes,u.lanes=o.lanes,u.child=o.child,u.memoizedProps=o.memoizedProps,u.memoizedState=o.memoizedState,u.updateQueue=o.updateQueue,a=o.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=o.sibling,u.index=o.index,u.ref=o.ref,u.refCleanup=o.refCleanup,u}function PR(o,a){o.flags&=65011714;var u=o.alternate;return u===null?(o.childLanes=0,o.lanes=a,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,a=u.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),o}function Ah(o,a,u,h,v,w){var I=0;if(h=o,typeof o=="function")J0(o)&&(I=1);else if(typeof o=="string")I=QP(o,u,te.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case L:return o=io(31,u,a,v),o.elementType=L,o.lanes=w,o;case b:return za(u.children,v,w,a);case x:I=8,v|=24;break;case C:return o=io(12,u,a,v|2),o.elementType=C,o.lanes=w,o;case T:return o=io(13,u,a,v),o.elementType=T,o.lanes=w,o;case M:return o=io(19,u,a,v),o.elementType=M,o.lanes=w,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case _:I=10;break e;case R:I=9;break e;case O:I=11;break e;case A:I=14;break e;case D:I=16,h=null;break e}I=29,u=Error(r(130,o===null?"null":typeof o,"")),h=null}return a=io(I,u,a,v),a.elementType=o,a.type=h,a.lanes=w,a}function za(o,a,u,h){return o=io(7,o,h,a),o.lanes=u,o}function Z0(o,a,u){return o=io(6,o,null,a),o.lanes=u,o}function kR(o){var a=io(18,null,null,0);return a.stateNode=o,a}function ev(o,a,u){return a=io(4,o.children!==null?o.children:[],o.key,a),a.lanes=u,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}var NR=new WeakMap;function _o(o,a){if(typeof o=="object"&&o!==null){var u=NR.get(o);return u!==void 0?u:(a={value:o,source:a,stack:we(a)},NR.set(o,a),a)}return{value:o,source:a,stack:we(a)}}var eu=[],tu=0,Oh=null,rf=0,To=[],Ao=0,_s=null,ui=1,ci="";function ji(o,a){eu[tu++]=rf,eu[tu++]=Oh,Oh=o,rf=a}function FR(o,a,u){To[Ao++]=ui,To[Ao++]=ci,To[Ao++]=_s,_s=o;var h=ui;o=ci;var v=32-He(h)-1;h&=~(1<<v),u+=1;var w=32-He(a)+v;if(30<w){var I=v-v%5;w=(h&(1<<I)-1).toString(32),h>>=I,v-=I,ui=1<<32-He(a)+v|u<<v|h,ci=w+o}else ui=1<<w|u<<v|h,ci=o}function tv(o){o.return!==null&&(ji(o,1),FR(o,1,0))}function nv(o){for(;o===Oh;)Oh=eu[--tu],eu[tu]=null,rf=eu[--tu],eu[tu]=null;for(;o===_s;)_s=To[--Ao],To[Ao]=null,ci=To[--Ao],To[Ao]=null,ui=To[--Ao],To[Ao]=null}function zR(o,a){To[Ao++]=ui,To[Ao++]=ci,To[Ao++]=_s,ui=a.id,ci=a.overflow,_s=o}var dr=null,yn=null,Nt=!1,Ts=null,Oo=!1,rv=Error(r(519));function As(o){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw of(_o(a,o)),rv}function BR(o){var a=o.stateNode,u=o.type,h=o.memoizedProps;switch(a[Qn]=o,a[fr]=h,u){case"dialog":Dt("cancel",a),Dt("close",a);break;case"iframe":case"object":case"embed":Dt("load",a);break;case"video":case"audio":for(u=0;u<Tf.length;u++)Dt(Tf[u],a);break;case"source":Dt("error",a);break;case"img":case"image":case"link":Dt("error",a),Dt("load",a);break;case"details":Dt("toggle",a);break;case"input":Dt("invalid",a),Jw(a,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Dt("invalid",a);break;case"textarea":Dt("invalid",a),eR(a,h.value,h.defaultValue,h.children)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||h.suppressHydrationWarning===!0||n_(a.textContent,u)?(h.popover!=null&&(Dt("beforetoggle",a),Dt("toggle",a)),h.onScroll!=null&&Dt("scroll",a),h.onScrollEnd!=null&&Dt("scrollend",a),h.onClick!=null&&(a.onclick=Hi),a=!0):a=!1,a||As(o,!0)}function HR(o){for(dr=o.return;dr;)switch(dr.tag){case 5:case 31:case 13:Oo=!1;return;case 27:case 3:Oo=!0;return;default:dr=dr.return}}function nu(o){if(o!==dr)return!1;if(!Nt)return HR(o),Nt=!0,!1;var a=o.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=o.type,u=!(u!=="form"&&u!=="button")||Ey(o.type,o.memoizedProps)),u=!u),u&&yn&&As(o),HR(o),a===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));yn=f_(o)}else if(a===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));yn=f_(o)}else a===27?(a=yn,Vs(o.type)?(o=_y,_y=null,yn=o):yn=a):yn=dr?Io(o.stateNode.nextSibling):null;return!0}function Ba(){yn=dr=null,Nt=!1}function ov(){var o=Ts;return o!==null&&(Ur===null?Ur=o:Ur.push.apply(Ur,o),Ts=null),o}function of(o){Ts===null?Ts=[o]:Ts.push(o)}var iv=k(null),Ha=null,$i=null;function Os(o,a,u){X(iv,a._currentValue),a._currentValue=u}function qi(o){o._currentValue=iv.current,$(iv)}function sv(o,a,u){for(;o!==null;){var h=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),o===u)break;o=o.return}}function av(o,a,u,h){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var w=v.dependencies;if(w!==null){var I=v.child;w=w.firstContext;e:for(;w!==null;){var N=w;w=v;for(var W=0;W<a.length;W++)if(N.context===a[W]){w.lanes|=u,N=w.alternate,N!==null&&(N.lanes|=u),sv(w.return,u,o),h||(I=null);break e}w=N.next}}else if(v.tag===18){if(I=v.return,I===null)throw Error(r(341));I.lanes|=u,w=I.alternate,w!==null&&(w.lanes|=u),sv(I,u,o),I=null}else I=v.child;if(I!==null)I.return=v;else for(I=v;I!==null;){if(I===o){I=null;break}if(v=I.sibling,v!==null){v.return=I.return,I=v;break}I=I.return}v=I}}function ru(o,a,u,h){o=null;for(var v=a,w=!1;v!==null;){if(!w){if((v.flags&524288)!==0)w=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var I=v.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var N=v.type;oo(v.pendingProps.value,I.value)||(o!==null?o.push(N):o=[N])}}else if(v===ce.current){if(I=v.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Df):o=[Df])}v=v.return}o!==null&&av(a,o,u,h),a.flags|=262144}function Mh(o){for(o=o.firstContext;o!==null;){if(!oo(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ua(o){Ha=o,$i=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function hr(o){return UR(Ha,o)}function Ih(o,a){return Ha===null&&Ua(o),UR(o,a)}function UR(o,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},$i===null){if(o===null)throw Error(r(308));$i=a,o.dependencies={lanes:0,firstContext:a},o.flags|=524288}else $i=$i.next=a;return u}var YL=typeof AbortController<"u"?AbortController:function(){var o=[],a=this.signal={aborted:!1,addEventListener:function(u,h){o.push(h)}};this.abort=function(){a.aborted=!0,o.forEach(function(u){return u()})}},KL=e.unstable_scheduleCallback,XL=e.unstable_NormalPriority,jn={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lv(){return{controller:new YL,data:new Map,refCount:0}}function sf(o){o.refCount--,o.refCount===0&&KL(XL,function(){o.controller.abort()})}var af=null,uv=0,ou=0,iu=null;function WL(o,a){if(af===null){var u=af=[];uv=0,ou=dy(),iu={status:"pending",value:void 0,then:function(h){u.push(h)}}}return uv++,a.then(VR,VR),a}function VR(){if(--uv===0&&af!==null){iu!==null&&(iu.status="fulfilled");var o=af;af=null,ou=0,iu=null;for(var a=0;a<o.length;a++)(0,o[a])()}}function QL(o,a){var u=[],h={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return o.then(function(){h.status="fulfilled",h.value=a;for(var v=0;v<u.length;v++)(0,u[v])(a)},function(v){for(h.status="rejected",h.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),h}var jR=P.S;P.S=function(o,a){_C=ae(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&WL(o,a),jR!==null&&jR(o,a)};var Va=k(null);function cv(){var o=Va.current;return o!==null?o:pn.pooledCache}function Dh(o,a){a===null?X(Va,Va.current):X(Va,a.pool)}function $R(){var o=cv();return o===null?null:{parent:jn._currentValue,pool:o}}var su=Error(r(460)),fv=Error(r(474)),Lh=Error(r(542)),Ph={then:function(){}};function qR(o){return o=o.status,o==="fulfilled"||o==="rejected"}function GR(o,a,u){switch(u=o[u],u===void 0?o.push(a):u!==a&&(a.then(Hi,Hi),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,KR(o),o;default:if(typeof a.status=="string")a.then(Hi,Hi);else{if(o=pn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=a,o.status="pending",o.then(function(h){if(a.status==="pending"){var v=a;v.status="fulfilled",v.value=h}},function(h){if(a.status==="pending"){var v=a;v.status="rejected",v.reason=h}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,KR(o),o}throw $a=a,su}}function ja(o){try{var a=o._init;return a(o._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?($a=u,su):u}}var $a=null;function YR(){if($a===null)throw Error(r(459));var o=$a;return $a=null,o}function KR(o){if(o===su||o===Lh)throw Error(r(483))}var au=null,lf=0;function kh(o){var a=lf;return lf+=1,au===null&&(au=[]),GR(au,o,a)}function uf(o,a){a=a.props.ref,o.ref=a!==void 0?a:null}function Nh(o,a){throw a.$$typeof===m?Error(r(525)):(o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)))}function XR(o){function a(se,re){if(o){var de=se.deletions;de===null?(se.deletions=[re],se.flags|=16):de.push(re)}}function u(se,re){if(!o)return null;for(;re!==null;)a(se,re),re=re.sibling;return null}function h(se){for(var re=new Map;se!==null;)se.key!==null?re.set(se.key,se):re.set(se.index,se),se=se.sibling;return re}function v(se,re){return se=Vi(se,re),se.index=0,se.sibling=null,se}function w(se,re,de){return se.index=de,o?(de=se.alternate,de!==null?(de=de.index,de<re?(se.flags|=67108866,re):de):(se.flags|=67108866,re)):(se.flags|=1048576,re)}function I(se){return o&&se.alternate===null&&(se.flags|=67108866),se}function N(se,re,de,Te){return re===null||re.tag!==6?(re=Z0(de,se.mode,Te),re.return=se,re):(re=v(re,de),re.return=se,re)}function W(se,re,de,Te){var Je=de.type;return Je===b?_e(se,re,de.props.children,Te,de.key):re!==null&&(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===D&&ja(Je)===re.type)?(re=v(re,de.props),uf(re,de),re.return=se,re):(re=Ah(de.type,de.key,de.props,null,se.mode,Te),uf(re,de),re.return=se,re)}function pe(se,re,de,Te){return re===null||re.tag!==4||re.stateNode.containerInfo!==de.containerInfo||re.stateNode.implementation!==de.implementation?(re=ev(de,se.mode,Te),re.return=se,re):(re=v(re,de.children||[]),re.return=se,re)}function _e(se,re,de,Te,Je){return re===null||re.tag!==7?(re=za(de,se.mode,Te,Je),re.return=se,re):(re=v(re,de),re.return=se,re)}function Ae(se,re,de){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Z0(""+re,se.mode,de),re.return=se,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case y:return de=Ah(re.type,re.key,re.props,null,se.mode,de),uf(de,re),de.return=se,de;case E:return re=ev(re,se.mode,de),re.return=se,re;case D:return re=ja(re),Ae(se,re,de)}if(V(re)||j(re))return re=za(re,se.mode,de,null),re.return=se,re;if(typeof re.then=="function")return Ae(se,kh(re),de);if(re.$$typeof===_)return Ae(se,Ih(se,re),de);Nh(se,re)}return null}function ge(se,re,de,Te){var Je=re!==null?re.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return Je!==null?null:N(se,re,""+de,Te);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case y:return de.key===Je?W(se,re,de,Te):null;case E:return de.key===Je?pe(se,re,de,Te):null;case D:return de=ja(de),ge(se,re,de,Te)}if(V(de)||j(de))return Je!==null?null:_e(se,re,de,Te,null);if(typeof de.then=="function")return ge(se,re,kh(de),Te);if(de.$$typeof===_)return ge(se,re,Ih(se,de),Te);Nh(se,de)}return null}function Se(se,re,de,Te,Je){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return se=se.get(de)||null,N(re,se,""+Te,Je);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case y:return se=se.get(Te.key===null?de:Te.key)||null,W(re,se,Te,Je);case E:return se=se.get(Te.key===null?de:Te.key)||null,pe(re,se,Te,Je);case D:return Te=ja(Te),Se(se,re,de,Te,Je)}if(V(Te)||j(Te))return se=se.get(de)||null,_e(re,se,Te,Je,null);if(typeof Te.then=="function")return Se(se,re,de,kh(Te),Je);if(Te.$$typeof===_)return Se(se,re,de,Ih(re,Te),Je);Nh(re,Te)}return null}function Xe(se,re,de,Te){for(var Je=null,Ut=null,We=re,wt=re=0,Pt=null;We!==null&&wt<de.length;wt++){We.index>wt?(Pt=We,We=null):Pt=We.sibling;var Vt=ge(se,We,de[wt],Te);if(Vt===null){We===null&&(We=Pt);break}o&&We&&Vt.alternate===null&&a(se,We),re=w(Vt,re,wt),Ut===null?Je=Vt:Ut.sibling=Vt,Ut=Vt,We=Pt}if(wt===de.length)return u(se,We),Nt&&ji(se,wt),Je;if(We===null){for(;wt<de.length;wt++)We=Ae(se,de[wt],Te),We!==null&&(re=w(We,re,wt),Ut===null?Je=We:Ut.sibling=We,Ut=We);return Nt&&ji(se,wt),Je}for(We=h(We);wt<de.length;wt++)Pt=Se(We,se,wt,de[wt],Te),Pt!==null&&(o&&Pt.alternate!==null&&We.delete(Pt.key===null?wt:Pt.key),re=w(Pt,re,wt),Ut===null?Je=Pt:Ut.sibling=Pt,Ut=Pt);return o&&We.forEach(function(Ys){return a(se,Ys)}),Nt&&ji(se,wt),Je}function ot(se,re,de,Te){if(de==null)throw Error(r(151));for(var Je=null,Ut=null,We=re,wt=re=0,Pt=null,Vt=de.next();We!==null&&!Vt.done;wt++,Vt=de.next()){We.index>wt?(Pt=We,We=null):Pt=We.sibling;var Ys=ge(se,We,Vt.value,Te);if(Ys===null){We===null&&(We=Pt);break}o&&We&&Ys.alternate===null&&a(se,We),re=w(Ys,re,wt),Ut===null?Je=Ys:Ut.sibling=Ys,Ut=Ys,We=Pt}if(Vt.done)return u(se,We),Nt&&ji(se,wt),Je;if(We===null){for(;!Vt.done;wt++,Vt=de.next())Vt=Ae(se,Vt.value,Te),Vt!==null&&(re=w(Vt,re,wt),Ut===null?Je=Vt:Ut.sibling=Vt,Ut=Vt);return Nt&&ji(se,wt),Je}for(We=h(We);!Vt.done;wt++,Vt=de.next())Vt=Se(We,se,wt,Vt.value,Te),Vt!==null&&(o&&Vt.alternate!==null&&We.delete(Vt.key===null?wt:Vt.key),re=w(Vt,re,wt),Ut===null?Je=Vt:Ut.sibling=Vt,Ut=Vt);return o&&We.forEach(function(lk){return a(se,lk)}),Nt&&ji(se,wt),Je}function cn(se,re,de,Te){if(typeof de=="object"&&de!==null&&de.type===b&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case y:e:{for(var Je=de.key;re!==null;){if(re.key===Je){if(Je=de.type,Je===b){if(re.tag===7){u(se,re.sibling),Te=v(re,de.props.children),Te.return=se,se=Te;break e}}else if(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===D&&ja(Je)===re.type){u(se,re.sibling),Te=v(re,de.props),uf(Te,de),Te.return=se,se=Te;break e}u(se,re);break}else a(se,re);re=re.sibling}de.type===b?(Te=za(de.props.children,se.mode,Te,de.key),Te.return=se,se=Te):(Te=Ah(de.type,de.key,de.props,null,se.mode,Te),uf(Te,de),Te.return=se,se=Te)}return I(se);case E:e:{for(Je=de.key;re!==null;){if(re.key===Je)if(re.tag===4&&re.stateNode.containerInfo===de.containerInfo&&re.stateNode.implementation===de.implementation){u(se,re.sibling),Te=v(re,de.children||[]),Te.return=se,se=Te;break e}else{u(se,re);break}else a(se,re);re=re.sibling}Te=ev(de,se.mode,Te),Te.return=se,se=Te}return I(se);case D:return de=ja(de),cn(se,re,de,Te)}if(V(de))return Xe(se,re,de,Te);if(j(de)){if(Je=j(de),typeof Je!="function")throw Error(r(150));return de=Je.call(de),ot(se,re,de,Te)}if(typeof de.then=="function")return cn(se,re,kh(de),Te);if(de.$$typeof===_)return cn(se,re,Ih(se,de),Te);Nh(se,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,re!==null&&re.tag===6?(u(se,re.sibling),Te=v(re,de),Te.return=se,se=Te):(u(se,re),Te=Z0(de,se.mode,Te),Te.return=se,se=Te),I(se)):u(se,re)}return function(se,re,de,Te){try{lf=0;var Je=cn(se,re,de,Te);return au=null,Je}catch(We){if(We===su||We===Lh)throw We;var Ut=io(29,We,null,se.mode);return Ut.lanes=Te,Ut.return=se,Ut}finally{}}}var qa=XR(!0),WR=XR(!1),Ms=!1;function dv(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hv(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Is(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Ds(o,a,u){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(Gt&2)!==0){var v=h.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),h.pending=a,a=Th(o),LR(o,null,u),a}return _h(o,h,a,u),Th(o)}function cf(o,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var h=a.lanes;h&=o.pendingLanes,u|=h,a.lanes=u,vn(o,u)}}function pv(o,a){var u=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var v=null,w=null;if(u=u.firstBaseUpdate,u!==null){do{var I={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};w===null?v=w=I:w=w.next=I,u=u.next}while(u!==null);w===null?v=w=a:w=w.next=a}else v=w=a;u={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:w,shared:h.shared,callbacks:h.callbacks},o.updateQueue=u;return}o=u.lastBaseUpdate,o===null?u.firstBaseUpdate=a:o.next=a,u.lastBaseUpdate=a}var gv=!1;function ff(){if(gv){var o=iu;if(o!==null)throw o}}function df(o,a,u,h){gv=!1;var v=o.updateQueue;Ms=!1;var w=v.firstBaseUpdate,I=v.lastBaseUpdate,N=v.shared.pending;if(N!==null){v.shared.pending=null;var W=N,pe=W.next;W.next=null,I===null?w=pe:I.next=pe,I=W;var _e=o.alternate;_e!==null&&(_e=_e.updateQueue,N=_e.lastBaseUpdate,N!==I&&(N===null?_e.firstBaseUpdate=pe:N.next=pe,_e.lastBaseUpdate=W))}if(w!==null){var Ae=v.baseState;I=0,_e=pe=W=null,N=w;do{var ge=N.lane&-536870913,Se=ge!==N.lane;if(Se?(Lt&ge)===ge:(h&ge)===ge){ge!==0&&ge===ou&&(gv=!0),_e!==null&&(_e=_e.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Xe=o,ot=N;ge=a;var cn=u;switch(ot.tag){case 1:if(Xe=ot.payload,typeof Xe=="function"){Ae=Xe.call(cn,Ae,ge);break e}Ae=Xe;break e;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=ot.payload,ge=typeof Xe=="function"?Xe.call(cn,Ae,ge):Xe,ge==null)break e;Ae=g({},Ae,ge);break e;case 2:Ms=!0}}ge=N.callback,ge!==null&&(o.flags|=64,Se&&(o.flags|=8192),Se=v.callbacks,Se===null?v.callbacks=[ge]:Se.push(ge))}else Se={lane:ge,tag:N.tag,payload:N.payload,callback:N.callback,next:null},_e===null?(pe=_e=Se,W=Ae):_e=_e.next=Se,I|=ge;if(N=N.next,N===null){if(N=v.shared.pending,N===null)break;Se=N,N=Se.next,Se.next=null,v.lastBaseUpdate=Se,v.shared.pending=null}}while(!0);_e===null&&(W=Ae),v.baseState=W,v.firstBaseUpdate=pe,v.lastBaseUpdate=_e,w===null&&(v.shared.lanes=0),Fs|=I,o.lanes=I,o.memoizedState=Ae}}function QR(o,a){if(typeof o!="function")throw Error(r(191,o));o.call(a)}function JR(o,a){var u=o.callbacks;if(u!==null)for(o.callbacks=null,o=0;o<u.length;o++)QR(u[o],a)}var lu=k(null),Fh=k(0);function ZR(o,a){o=es,X(Fh,o),X(lu,a),es=o|a.baseLanes}function mv(){X(Fh,es),X(lu,lu.current)}function vv(){es=Fh.current,$(lu),$(Fh)}var so=k(null),Mo=null;function Ls(o){var a=o.alternate;X(kn,kn.current&1),X(so,o),Mo===null&&(a===null||lu.current!==null||a.memoizedState!==null)&&(Mo=o)}function yv(o){X(kn,kn.current),X(so,o),Mo===null&&(Mo=o)}function ex(o){o.tag===22?(X(kn,kn.current),X(so,o),Mo===null&&(Mo=o)):Ps()}function Ps(){X(kn,kn.current),X(so,so.current)}function ao(o){$(so),Mo===o&&(Mo=null),$(kn)}var kn=k(0);function zh(o){for(var a=o;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||xy(u)||Cy(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Gi=0,St=null,ln=null,$n=null,Bh=!1,uu=!1,Ga=!1,Hh=0,hf=0,cu=null,JL=0;function On(){throw Error(r(321))}function bv(o,a){if(a===null)return!1;for(var u=0;u<a.length&&u<o.length;u++)if(!oo(o[u],a[u]))return!1;return!0}function Sv(o,a,u,h,v,w){return Gi=w,St=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,P.H=o===null||o.memoizedState===null?Fx:kv,Ga=!1,w=u(h,v),Ga=!1,uu&&(w=nx(a,u,h,v)),tx(o),w}function tx(o){P.H=mf;var a=ln!==null&&ln.next!==null;if(Gi=0,$n=ln=St=null,Bh=!1,hf=0,cu=null,a)throw Error(r(300));o===null||qn||(o=o.dependencies,o!==null&&Mh(o)&&(qn=!0))}function nx(o,a,u,h){St=o;var v=0;do{if(uu&&(cu=null),hf=0,uu=!1,25<=v)throw Error(r(301));if(v+=1,$n=ln=null,o.updateQueue!=null){var w=o.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}P.H=zx,w=a(u,h)}while(uu);return w}function ZL(){var o=P.H,a=o.useState()[0];return a=typeof a.then=="function"?pf(a):a,o=o.useState()[0],(ln!==null?ln.memoizedState:null)!==o&&(St.flags|=1024),a}function Ev(){var o=Hh!==0;return Hh=0,o}function wv(o,a,u){a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~u}function Rv(o){if(Bh){for(o=o.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Bh=!1}Gi=0,$n=ln=St=null,uu=!1,hf=Hh=0,cu=null}function _r(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $n===null?St.memoizedState=$n=o:$n=$n.next=o,$n}function Nn(){if(ln===null){var o=St.alternate;o=o!==null?o.memoizedState:null}else o=ln.next;var a=$n===null?St.memoizedState:$n.next;if(a!==null)$n=a,ln=o;else{if(o===null)throw St.alternate===null?Error(r(467)):Error(r(310));ln=o,o={memoizedState:ln.memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},$n===null?St.memoizedState=$n=o:$n=$n.next=o}return $n}function Uh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pf(o){var a=hf;return hf+=1,cu===null&&(cu=[]),o=GR(cu,o,a),a=St,($n===null?a.memoizedState:$n.next)===null&&(a=a.alternate,P.H=a===null||a.memoizedState===null?Fx:kv),o}function Vh(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return pf(o);if(o.$$typeof===_)return hr(o)}throw Error(r(438,String(o)))}function xv(o){var a=null,u=St.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var h=St.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(a={data:h.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Uh(),St.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(o),h=0;h<o;h++)u[h]=F;return a.index++,u}function Yi(o,a){return typeof a=="function"?a(o):a}function jh(o){var a=Nn();return Cv(a,ln,o)}function Cv(o,a,u){var h=o.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var v=o.baseQueue,w=h.pending;if(w!==null){if(v!==null){var I=v.next;v.next=w.next,w.next=I}a.baseQueue=v=w,h.pending=null}if(w=o.baseState,v===null)o.memoizedState=w;else{a=v.next;var N=I=null,W=null,pe=a,_e=!1;do{var Ae=pe.lane&-536870913;if(Ae!==pe.lane?(Lt&Ae)===Ae:(Gi&Ae)===Ae){var ge=pe.revertLane;if(ge===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Ae===ou&&(_e=!0);else if((Gi&ge)===ge){pe=pe.next,ge===ou&&(_e=!0);continue}else Ae={lane:0,revertLane:pe.revertLane,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},W===null?(N=W=Ae,I=w):W=W.next=Ae,St.lanes|=ge,Fs|=ge;Ae=pe.action,Ga&&u(w,Ae),w=pe.hasEagerState?pe.eagerState:u(w,Ae)}else ge={lane:Ae,revertLane:pe.revertLane,gesture:pe.gesture,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},W===null?(N=W=ge,I=w):W=W.next=ge,St.lanes|=Ae,Fs|=Ae;pe=pe.next}while(pe!==null&&pe!==a);if(W===null?I=w:W.next=N,!oo(w,o.memoizedState)&&(qn=!0,_e&&(u=iu,u!==null)))throw u;o.memoizedState=w,o.baseState=I,o.baseQueue=W,h.lastRenderedState=w}return v===null&&(h.lanes=0),[o.memoizedState,h.dispatch]}function _v(o){var a=Nn(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var h=u.dispatch,v=u.pending,w=a.memoizedState;if(v!==null){u.pending=null;var I=v=v.next;do w=o(w,I.action),I=I.next;while(I!==v);oo(w,a.memoizedState)||(qn=!0),a.memoizedState=w,a.baseQueue===null&&(a.baseState=w),u.lastRenderedState=w}return[w,h]}function rx(o,a,u){var h=St,v=Nn(),w=Nt;if(w){if(u===void 0)throw Error(r(407));u=u()}else u=a();var I=!oo((ln||v).memoizedState,u);if(I&&(v.memoizedState=u,qn=!0),v=v.queue,Ov(sx.bind(null,h,v,o),[o]),v.getSnapshot!==a||I||$n!==null&&$n.memoizedState.tag&1){if(h.flags|=2048,fu(9,{destroy:void 0},ix.bind(null,h,v,u,a),null),pn===null)throw Error(r(349));w||(Gi&127)!==0||ox(h,a,u)}return u}function ox(o,a,u){o.flags|=16384,o={getSnapshot:a,value:u},a=St.updateQueue,a===null?(a=Uh(),St.updateQueue=a,a.stores=[o]):(u=a.stores,u===null?a.stores=[o]:u.push(o))}function ix(o,a,u,h){a.value=u,a.getSnapshot=h,ax(a)&&lx(o)}function sx(o,a,u){return u(function(){ax(a)&&lx(o)})}function ax(o){var a=o.getSnapshot;o=o.value;try{var u=a();return!oo(o,u)}catch{return!0}}function lx(o){var a=Fa(o,2);a!==null&&Vr(a,o,2)}function Tv(o){var a=_r();if(typeof o=="function"){var u=o;if(o=u(),Ga){ze(!0);try{u()}finally{ze(!1)}}}return a.memoizedState=a.baseState=o,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:o},a}function ux(o,a,u,h){return o.baseState=u,Cv(o,ln,typeof h=="function"?h:Yi)}function eP(o,a,u,h,v){if(Gh(o))throw Error(r(485));if(o=a.action,o!==null){var w={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){w.listeners.push(I)}};P.T!==null?u(!0):w.isTransition=!1,h(w),u=a.pending,u===null?(w.next=a.pending=w,cx(a,w)):(w.next=u.next,a.pending=u.next=w)}}function cx(o,a){var u=a.action,h=a.payload,v=o.state;if(a.isTransition){var w=P.T,I={};P.T=I;try{var N=u(v,h),W=P.S;W!==null&&W(I,N),fx(o,a,N)}catch(pe){Av(o,a,pe)}finally{w!==null&&I.types!==null&&(w.types=I.types),P.T=w}}else try{w=u(v,h),fx(o,a,w)}catch(pe){Av(o,a,pe)}}function fx(o,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){dx(o,a,h)},function(h){return Av(o,a,h)}):dx(o,a,u)}function dx(o,a,u){a.status="fulfilled",a.value=u,hx(a),o.state=u,a=o.pending,a!==null&&(u=a.next,u===a?o.pending=null:(u=u.next,a.next=u,cx(o,u)))}function Av(o,a,u){var h=o.pending;if(o.pending=null,h!==null){h=h.next;do a.status="rejected",a.reason=u,hx(a),a=a.next;while(a!==h)}o.action=null}function hx(o){o=o.listeners;for(var a=0;a<o.length;a++)(0,o[a])()}function px(o,a){return a}function gx(o,a){if(Nt){var u=pn.formState;if(u!==null){e:{var h=St;if(Nt){if(yn){t:{for(var v=yn,w=Oo;v.nodeType!==8;){if(!w){v=null;break t}if(v=Io(v.nextSibling),v===null){v=null;break t}}w=v.data,v=w==="F!"||w==="F"?v:null}if(v){yn=Io(v.nextSibling),h=v.data==="F!";break e}}As(h)}h=!1}h&&(a=u[0])}}return u=_r(),u.memoizedState=u.baseState=a,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:px,lastRenderedState:a},u.queue=h,u=Px.bind(null,St,h),h.dispatch=u,h=Tv(!1),w=Pv.bind(null,St,!1,h.queue),h=_r(),v={state:a,dispatch:null,action:o,pending:null},h.queue=v,u=eP.bind(null,St,v,w,u),v.dispatch=u,h.memoizedState=o,[a,u,!1]}function mx(o){var a=Nn();return vx(a,ln,o)}function vx(o,a,u){if(a=Cv(o,a,px)[0],o=jh(Yi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var h=pf(a)}catch(I){throw I===su?Lh:I}else h=a;a=Nn();var v=a.queue,w=v.dispatch;return u!==a.memoizedState&&(St.flags|=2048,fu(9,{destroy:void 0},tP.bind(null,v,u),null)),[h,w,o]}function tP(o,a){o.action=a}function yx(o){var a=Nn(),u=ln;if(u!==null)return vx(a,u,o);Nn(),a=a.memoizedState,u=Nn();var h=u.queue.dispatch;return u.memoizedState=o,[a,h,!1]}function fu(o,a,u,h){return o={tag:o,create:u,deps:h,inst:a,next:null},a=St.updateQueue,a===null&&(a=Uh(),St.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=o.next=o:(h=u.next,u.next=o,o.next=h,a.lastEffect=o),o}function bx(){return Nn().memoizedState}function $h(o,a,u,h){var v=_r();St.flags|=o,v.memoizedState=fu(1|a,{destroy:void 0},u,h===void 0?null:h)}function qh(o,a,u,h){var v=Nn();h=h===void 0?null:h;var w=v.memoizedState.inst;ln!==null&&h!==null&&bv(h,ln.memoizedState.deps)?v.memoizedState=fu(a,w,u,h):(St.flags|=o,v.memoizedState=fu(1|a,w,u,h))}function Sx(o,a){$h(8390656,8,o,a)}function Ov(o,a){qh(2048,8,o,a)}function nP(o){St.flags|=4;var a=St.updateQueue;if(a===null)a=Uh(),St.updateQueue=a,a.events=[o];else{var u=a.events;u===null?a.events=[o]:u.push(o)}}function Ex(o){var a=Nn().memoizedState;return nP({ref:a,nextImpl:o}),function(){if((Gt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function wx(o,a){return qh(4,2,o,a)}function Rx(o,a){return qh(4,4,o,a)}function xx(o,a){if(typeof a=="function"){o=o();var u=a(o);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function Cx(o,a,u){u=u!=null?u.concat([o]):null,qh(4,4,xx.bind(null,a,o),u)}function Mv(){}function _x(o,a){var u=Nn();a=a===void 0?null:a;var h=u.memoizedState;return a!==null&&bv(a,h[1])?h[0]:(u.memoizedState=[o,a],o)}function Tx(o,a){var u=Nn();a=a===void 0?null:a;var h=u.memoizedState;if(a!==null&&bv(a,h[1]))return h[0];if(h=o(),Ga){ze(!0);try{o()}finally{ze(!1)}}return u.memoizedState=[h,a],h}function Iv(o,a,u){return u===void 0||(Gi&1073741824)!==0&&(Lt&261930)===0?o.memoizedState=a:(o.memoizedState=u,o=AC(),St.lanes|=o,Fs|=o,u)}function Ax(o,a,u,h){return oo(u,a)?u:lu.current!==null?(o=Iv(o,u,h),oo(o,a)||(qn=!0),o):(Gi&42)===0||(Gi&1073741824)!==0&&(Lt&261930)===0?(qn=!0,o.memoizedState=u):(o=AC(),St.lanes|=o,Fs|=o,a)}function Ox(o,a,u,h,v){var w=q.p;q.p=w!==0&&8>w?w:8;var I=P.T,N={};P.T=N,Pv(o,!1,a,u);try{var W=v(),pe=P.S;if(pe!==null&&pe(N,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var _e=QL(W,h);gf(o,a,_e,co(o))}else gf(o,a,h,co(o))}catch(Ae){gf(o,a,{then:function(){},status:"rejected",reason:Ae},co())}finally{q.p=w,I!==null&&N.types!==null&&(I.types=N.types),P.T=I}}function rP(){}function Dv(o,a,u,h){if(o.tag!==5)throw Error(r(476));var v=Mx(o).queue;Ox(o,v,a,U,u===null?rP:function(){return Ix(o),u(h)})}function Mx(o){var a=o.memoizedState;if(a!==null)return a;a={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:U},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:u},next:null},o.memoizedState=a,o=o.alternate,o!==null&&(o.memoizedState=a),a}function Ix(o){var a=Mx(o);a.next===null&&(a=o.alternate.memoizedState),gf(o,a.next.queue,{},co())}function Lv(){return hr(Df)}function Dx(){return Nn().memoizedState}function Lx(){return Nn().memoizedState}function oP(o){for(var a=o.return;a!==null;){switch(a.tag){case 24:case 3:var u=co();o=Is(u);var h=Ds(a,o,u);h!==null&&(Vr(h,a,u),cf(h,a,u)),a={cache:lv()},o.payload=a;return}a=a.return}}function iP(o,a,u){var h=co();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Gh(o)?kx(a,u):(u=Q0(o,a,u,h),u!==null&&(Vr(u,o,h),Nx(u,a,h)))}function Px(o,a,u){var h=co();gf(o,a,u,h)}function gf(o,a,u,h){var v={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Gh(o))kx(a,v);else{var w=o.alternate;if(o.lanes===0&&(w===null||w.lanes===0)&&(w=a.lastRenderedReducer,w!==null))try{var I=a.lastRenderedState,N=w(I,u);if(v.hasEagerState=!0,v.eagerState=N,oo(N,I))return _h(o,a,v,0),pn===null&&Ch(),!1}catch{}finally{}if(u=Q0(o,a,v,h),u!==null)return Vr(u,o,h),Nx(u,a,h),!0}return!1}function Pv(o,a,u,h){if(h={lane:2,revertLane:dy(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Gh(o)){if(a)throw Error(r(479))}else a=Q0(o,u,h,2),a!==null&&Vr(a,o,2)}function Gh(o){var a=o.alternate;return o===St||a!==null&&a===St}function kx(o,a){uu=Bh=!0;var u=o.pending;u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a}function Nx(o,a,u){if((u&4194048)!==0){var h=a.lanes;h&=o.pendingLanes,u|=h,a.lanes=u,vn(o,u)}}var mf={readContext:hr,use:Vh,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useLayoutEffect:On,useInsertionEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useSyncExternalStore:On,useId:On,useHostTransitionStatus:On,useFormState:On,useActionState:On,useOptimistic:On,useMemoCache:On,useCacheRefresh:On};mf.useEffectEvent=On;var Fx={readContext:hr,use:Vh,useCallback:function(o,a){return _r().memoizedState=[o,a===void 0?null:a],o},useContext:hr,useEffect:Sx,useImperativeHandle:function(o,a,u){u=u!=null?u.concat([o]):null,$h(4194308,4,xx.bind(null,a,o),u)},useLayoutEffect:function(o,a){return $h(4194308,4,o,a)},useInsertionEffect:function(o,a){$h(4,2,o,a)},useMemo:function(o,a){var u=_r();a=a===void 0?null:a;var h=o();if(Ga){ze(!0);try{o()}finally{ze(!1)}}return u.memoizedState=[h,a],h},useReducer:function(o,a,u){var h=_r();if(u!==void 0){var v=u(a);if(Ga){ze(!0);try{u(a)}finally{ze(!1)}}}else v=a;return h.memoizedState=h.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},h.queue=o,o=o.dispatch=iP.bind(null,St,o),[h.memoizedState,o]},useRef:function(o){var a=_r();return o={current:o},a.memoizedState=o},useState:function(o){o=Tv(o);var a=o.queue,u=Px.bind(null,St,a);return a.dispatch=u,[o.memoizedState,u]},useDebugValue:Mv,useDeferredValue:function(o,a){var u=_r();return Iv(u,o,a)},useTransition:function(){var o=Tv(!1);return o=Ox.bind(null,St,o.queue,!0,!1),_r().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,a,u){var h=St,v=_r();if(Nt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),pn===null)throw Error(r(349));(Lt&127)!==0||ox(h,a,u)}v.memoizedState=u;var w={value:u,getSnapshot:a};return v.queue=w,Sx(sx.bind(null,h,w,o),[o]),h.flags|=2048,fu(9,{destroy:void 0},ix.bind(null,h,w,u,a),null),u},useId:function(){var o=_r(),a=pn.identifierPrefix;if(Nt){var u=ci,h=ui;u=(h&~(1<<32-He(h)-1)).toString(32)+u,a="_"+a+"R_"+u,u=Hh++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=JL++,a="_"+a+"r_"+u.toString(32)+"_";return o.memoizedState=a},useHostTransitionStatus:Lv,useFormState:gx,useActionState:gx,useOptimistic:function(o){var a=_r();a.memoizedState=a.baseState=o;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Pv.bind(null,St,!0,u),u.dispatch=a,[o,a]},useMemoCache:xv,useCacheRefresh:function(){return _r().memoizedState=oP.bind(null,St)},useEffectEvent:function(o){var a=_r(),u={impl:o};return a.memoizedState=u,function(){if((Gt&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},kv={readContext:hr,use:Vh,useCallback:_x,useContext:hr,useEffect:Ov,useImperativeHandle:Cx,useInsertionEffect:wx,useLayoutEffect:Rx,useMemo:Tx,useReducer:jh,useRef:bx,useState:function(){return jh(Yi)},useDebugValue:Mv,useDeferredValue:function(o,a){var u=Nn();return Ax(u,ln.memoizedState,o,a)},useTransition:function(){var o=jh(Yi)[0],a=Nn().memoizedState;return[typeof o=="boolean"?o:pf(o),a]},useSyncExternalStore:rx,useId:Dx,useHostTransitionStatus:Lv,useFormState:mx,useActionState:mx,useOptimistic:function(o,a){var u=Nn();return ux(u,ln,o,a)},useMemoCache:xv,useCacheRefresh:Lx};kv.useEffectEvent=Ex;var zx={readContext:hr,use:Vh,useCallback:_x,useContext:hr,useEffect:Ov,useImperativeHandle:Cx,useInsertionEffect:wx,useLayoutEffect:Rx,useMemo:Tx,useReducer:_v,useRef:bx,useState:function(){return _v(Yi)},useDebugValue:Mv,useDeferredValue:function(o,a){var u=Nn();return ln===null?Iv(u,o,a):Ax(u,ln.memoizedState,o,a)},useTransition:function(){var o=_v(Yi)[0],a=Nn().memoizedState;return[typeof o=="boolean"?o:pf(o),a]},useSyncExternalStore:rx,useId:Dx,useHostTransitionStatus:Lv,useFormState:yx,useActionState:yx,useOptimistic:function(o,a){var u=Nn();return ln!==null?ux(u,ln,o,a):(u.baseState=o,[o,u.queue.dispatch])},useMemoCache:xv,useCacheRefresh:Lx};zx.useEffectEvent=Ex;function Nv(o,a,u,h){a=o.memoizedState,u=u(h,a),u=u==null?a:g({},a,u),o.memoizedState=u,o.lanes===0&&(o.updateQueue.baseState=u)}var Fv={enqueueSetState:function(o,a,u){o=o._reactInternals;var h=co(),v=Is(h);v.payload=a,u!=null&&(v.callback=u),a=Ds(o,v,h),a!==null&&(Vr(a,o,h),cf(a,o,h))},enqueueReplaceState:function(o,a,u){o=o._reactInternals;var h=co(),v=Is(h);v.tag=1,v.payload=a,u!=null&&(v.callback=u),a=Ds(o,v,h),a!==null&&(Vr(a,o,h),cf(a,o,h))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var u=co(),h=Is(u);h.tag=2,a!=null&&(h.callback=a),a=Ds(o,h,u),a!==null&&(Vr(a,o,u),cf(a,o,u))}};function Bx(o,a,u,h,v,w,I){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,w,I):a.prototype&&a.prototype.isPureReactComponent?!tf(u,h)||!tf(v,w):!0}function Hx(o,a,u,h){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,h),a.state!==o&&Fv.enqueueReplaceState(a,a.state,null)}function Ya(o,a){var u=a;if("ref"in a){u={};for(var h in a)h!=="ref"&&(u[h]=a[h])}if(o=o.defaultProps){u===a&&(u=g({},u));for(var v in o)u[v]===void 0&&(u[v]=o[v])}return u}function Ux(o){xh(o)}function Vx(o){console.error(o)}function jx(o){xh(o)}function Yh(o,a){try{var u=o.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(h){setTimeout(function(){throw h})}}function $x(o,a,u){try{var h=o.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function zv(o,a,u){return u=Is(u),u.tag=3,u.payload={element:null},u.callback=function(){Yh(o,a)},u}function qx(o){return o=Is(o),o.tag=3,o}function Gx(o,a,u,h){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var w=h.value;o.payload=function(){return v(w)},o.callback=function(){$x(a,u,h)}}var I=u.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(o.callback=function(){$x(a,u,h),typeof v!="function"&&(zs===null?zs=new Set([this]):zs.add(this));var N=h.stack;this.componentDidCatch(h.value,{componentStack:N!==null?N:""})})}function sP(o,a,u,h,v){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(a=u.alternate,a!==null&&ru(a,u,v,!0),u=so.current,u!==null){switch(u.tag){case 31:case 13:return Mo===null?ip():u.alternate===null&&Mn===0&&(Mn=3),u.flags&=-257,u.flags|=65536,u.lanes=v,h===Ph?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([h]):a.add(h),uy(o,h,v)),!1;case 22:return u.flags|=65536,h===Ph?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([h]):u.add(h)),uy(o,h,v)),!1}throw Error(r(435,u.tag))}return uy(o,h,v),ip(),!1}if(Nt)return a=so.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,h!==rv&&(o=Error(r(422),{cause:h}),of(_o(o,u)))):(h!==rv&&(a=Error(r(423),{cause:h}),of(_o(a,u))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,h=_o(h,u),v=zv(o.stateNode,h,v),pv(o,v),Mn!==4&&(Mn=2)),!1;var w=Error(r(520),{cause:h});if(w=_o(w,u),xf===null?xf=[w]:xf.push(w),Mn!==4&&(Mn=2),a===null)return!0;h=_o(h,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,o=v&-v,u.lanes|=o,o=zv(u.stateNode,h,o),pv(u,o),!1;case 1:if(a=u.type,w=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(zs===null||!zs.has(w))))return u.flags|=65536,v&=-v,u.lanes|=v,v=qx(v),Gx(v,o,u,h),pv(u,v),!1}u=u.return}while(u!==null);return!1}var Bv=Error(r(461)),qn=!1;function pr(o,a,u,h){a.child=o===null?WR(a,null,u,h):qa(a,o.child,u,h)}function Yx(o,a,u,h,v){u=u.render;var w=a.ref;if("ref"in h){var I={};for(var N in h)N!=="ref"&&(I[N]=h[N])}else I=h;return Ua(a),h=Sv(o,a,u,I,w,v),N=Ev(),o!==null&&!qn?(wv(o,a,v),Ki(o,a,v)):(Nt&&N&&tv(a),a.flags|=1,pr(o,a,h,v),a.child)}function Kx(o,a,u,h,v){if(o===null){var w=u.type;return typeof w=="function"&&!J0(w)&&w.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=w,Xx(o,a,w,h,v)):(o=Ah(u.type,null,h,a,a.mode,v),o.ref=a.ref,o.return=a,a.child=o)}if(w=o.child,!Yv(o,v)){var I=w.memoizedProps;if(u=u.compare,u=u!==null?u:tf,u(I,h)&&o.ref===a.ref)return Ki(o,a,v)}return a.flags|=1,o=Vi(w,h),o.ref=a.ref,o.return=a,a.child=o}function Xx(o,a,u,h,v){if(o!==null){var w=o.memoizedProps;if(tf(w,h)&&o.ref===a.ref)if(qn=!1,a.pendingProps=h=w,Yv(o,v))(o.flags&131072)!==0&&(qn=!0);else return a.lanes=o.lanes,Ki(o,a,v)}return Hv(o,a,u,h,v)}function Wx(o,a,u,h){var v=h.children,w=o!==null?o.memoizedState:null;if(o===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((a.flags&128)!==0){if(w=w!==null?w.baseLanes|u:u,o!==null){for(h=a.child=o.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~w}else h=0,a.child=null;return Qx(o,a,w,u,h)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},o!==null&&Dh(a,w!==null?w.cachePool:null),w!==null?ZR(a,w):mv(),ex(a);else return h=a.lanes=536870912,Qx(o,a,w!==null?w.baseLanes|u:u,u,h)}else w!==null?(Dh(a,w.cachePool),ZR(a,w),Ps(),a.memoizedState=null):(o!==null&&Dh(a,null),mv(),Ps());return pr(o,a,v,u),a.child}function vf(o,a){return o!==null&&o.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Qx(o,a,u,h,v){var w=cv();return w=w===null?null:{parent:jn._currentValue,pool:w},a.memoizedState={baseLanes:u,cachePool:w},o!==null&&Dh(a,null),mv(),ex(a),o!==null&&ru(o,a,h,!0),a.childLanes=v,null}function Kh(o,a){return a=Wh({mode:a.mode,children:a.children},o.mode),a.ref=o.ref,o.child=a,a.return=o,a}function Jx(o,a,u){return qa(a,o.child,null,u),o=Kh(a,a.pendingProps),o.flags|=2,ao(a),a.memoizedState=null,o}function aP(o,a,u){var h=a.pendingProps,v=(a.flags&128)!==0;if(a.flags&=-129,o===null){if(Nt){if(h.mode==="hidden")return o=Kh(a,h),a.lanes=536870912,vf(null,o);if(yv(a),(o=yn)?(o=c_(o,Oo),o=o!==null&&o.data==="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:_s!==null?{id:ui,overflow:ci}:null,retryLane:536870912,hydrationErrors:null},u=kR(o),u.return=a,a.child=u,dr=a,yn=null)):o=null,o===null)throw As(a);return a.lanes=536870912,null}return Kh(a,h)}var w=o.memoizedState;if(w!==null){var I=w.dehydrated;if(yv(a),v)if(a.flags&256)a.flags&=-257,a=Jx(o,a,u);else if(a.memoizedState!==null)a.child=o.child,a.flags|=128,a=null;else throw Error(r(558));else if(qn||ru(o,a,u,!1),v=(u&o.childLanes)!==0,qn||v){if(h=pn,h!==null&&(I=gn(h,u),I!==0&&I!==w.retryLane))throw w.retryLane=I,Fa(o,I),Vr(h,o,I),Bv;ip(),a=Jx(o,a,u)}else o=w.treeContext,yn=Io(I.nextSibling),dr=a,Nt=!0,Ts=null,Oo=!1,o!==null&&zR(a,o),a=Kh(a,h),a.flags|=4096;return a}return o=Vi(o.child,{mode:h.mode,children:h.children}),o.ref=a.ref,a.child=o,o.return=a,o}function Xh(o,a){var u=a.ref;if(u===null)o!==null&&o.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(o===null||o.ref!==u)&&(a.flags|=4194816)}}function Hv(o,a,u,h,v){return Ua(a),u=Sv(o,a,u,h,void 0,v),h=Ev(),o!==null&&!qn?(wv(o,a,v),Ki(o,a,v)):(Nt&&h&&tv(a),a.flags|=1,pr(o,a,u,v),a.child)}function Zx(o,a,u,h,v,w){return Ua(a),a.updateQueue=null,u=nx(a,h,u,v),tx(o),h=Ev(),o!==null&&!qn?(wv(o,a,w),Ki(o,a,w)):(Nt&&h&&tv(a),a.flags|=1,pr(o,a,u,w),a.child)}function eC(o,a,u,h,v){if(Ua(a),a.stateNode===null){var w=Zl,I=u.contextType;typeof I=="object"&&I!==null&&(w=hr(I)),w=new u(h,w),a.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Fv,a.stateNode=w,w._reactInternals=a,w=a.stateNode,w.props=h,w.state=a.memoizedState,w.refs={},dv(a),I=u.contextType,w.context=typeof I=="object"&&I!==null?hr(I):Zl,w.state=a.memoizedState,I=u.getDerivedStateFromProps,typeof I=="function"&&(Nv(a,u,I,h),w.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(I=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),I!==w.state&&Fv.enqueueReplaceState(w,w.state,null),df(a,h,w,v),ff(),w.state=a.memoizedState),typeof w.componentDidMount=="function"&&(a.flags|=4194308),h=!0}else if(o===null){w=a.stateNode;var N=a.memoizedProps,W=Ya(u,N);w.props=W;var pe=w.context,_e=u.contextType;I=Zl,typeof _e=="object"&&_e!==null&&(I=hr(_e));var Ae=u.getDerivedStateFromProps;_e=typeof Ae=="function"||typeof w.getSnapshotBeforeUpdate=="function",N=a.pendingProps!==N,_e||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(N||pe!==I)&&Hx(a,w,h,I),Ms=!1;var ge=a.memoizedState;w.state=ge,df(a,h,w,v),ff(),pe=a.memoizedState,N||ge!==pe||Ms?(typeof Ae=="function"&&(Nv(a,u,Ae,h),pe=a.memoizedState),(W=Ms||Bx(a,u,W,h,ge,pe,I))?(_e||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(a.flags|=4194308)):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=pe),w.props=h,w.state=pe,w.context=I,h=W):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{w=a.stateNode,hv(o,a),I=a.memoizedProps,_e=Ya(u,I),w.props=_e,Ae=a.pendingProps,ge=w.context,pe=u.contextType,W=Zl,typeof pe=="object"&&pe!==null&&(W=hr(pe)),N=u.getDerivedStateFromProps,(pe=typeof N=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(I!==Ae||ge!==W)&&Hx(a,w,h,W),Ms=!1,ge=a.memoizedState,w.state=ge,df(a,h,w,v),ff();var Se=a.memoizedState;I!==Ae||ge!==Se||Ms||o!==null&&o.dependencies!==null&&Mh(o.dependencies)?(typeof N=="function"&&(Nv(a,u,N,h),Se=a.memoizedState),(_e=Ms||Bx(a,u,_e,h,ge,Se,W)||o!==null&&o.dependencies!==null&&Mh(o.dependencies))?(pe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(h,Se,W),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(h,Se,W)),typeof w.componentDidUpdate=="function"&&(a.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof w.componentDidUpdate!="function"||I===o.memoizedProps&&ge===o.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ge===o.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=Se),w.props=h,w.state=Se,w.context=W,h=_e):(typeof w.componentDidUpdate!="function"||I===o.memoizedProps&&ge===o.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ge===o.memoizedState||(a.flags|=1024),h=!1)}return w=h,Xh(o,a),h=(a.flags&128)!==0,w||h?(w=a.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:w.render(),a.flags|=1,o!==null&&h?(a.child=qa(a,o.child,null,v),a.child=qa(a,null,u,v)):pr(o,a,u,v),a.memoizedState=w.state,o=a.child):o=Ki(o,a,v),o}function tC(o,a,u,h){return Ba(),a.flags|=256,pr(o,a,u,h),a.child}var Uv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vv(o){return{baseLanes:o,cachePool:$R()}}function jv(o,a,u){return o=o!==null?o.childLanes&~u:0,a&&(o|=uo),o}function nC(o,a,u){var h=a.pendingProps,v=!1,w=(a.flags&128)!==0,I;if((I=w)||(I=o!==null&&o.memoizedState===null?!1:(kn.current&2)!==0),I&&(v=!0,a.flags&=-129),I=(a.flags&32)!==0,a.flags&=-33,o===null){if(Nt){if(v?Ls(a):Ps(),(o=yn)?(o=c_(o,Oo),o=o!==null&&o.data!=="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:_s!==null?{id:ui,overflow:ci}:null,retryLane:536870912,hydrationErrors:null},u=kR(o),u.return=a,a.child=u,dr=a,yn=null)):o=null,o===null)throw As(a);return Cy(o)?a.lanes=32:a.lanes=536870912,null}var N=h.children;return h=h.fallback,v?(Ps(),v=a.mode,N=Wh({mode:"hidden",children:N},v),h=za(h,v,u,null),N.return=a,h.return=a,N.sibling=h,a.child=N,h=a.child,h.memoizedState=Vv(u),h.childLanes=jv(o,I,u),a.memoizedState=Uv,vf(null,h)):(Ls(a),$v(a,N))}var W=o.memoizedState;if(W!==null&&(N=W.dehydrated,N!==null)){if(w)a.flags&256?(Ls(a),a.flags&=-257,a=qv(o,a,u)):a.memoizedState!==null?(Ps(),a.child=o.child,a.flags|=128,a=null):(Ps(),N=h.fallback,v=a.mode,h=Wh({mode:"visible",children:h.children},v),N=za(N,v,u,null),N.flags|=2,h.return=a,N.return=a,h.sibling=N,a.child=h,qa(a,o.child,null,u),h=a.child,h.memoizedState=Vv(u),h.childLanes=jv(o,I,u),a.memoizedState=Uv,a=vf(null,h));else if(Ls(a),Cy(N)){if(I=N.nextSibling&&N.nextSibling.dataset,I)var pe=I.dgst;I=pe,h=Error(r(419)),h.stack="",h.digest=I,of({value:h,source:null,stack:null}),a=qv(o,a,u)}else if(qn||ru(o,a,u,!1),I=(u&o.childLanes)!==0,qn||I){if(I=pn,I!==null&&(h=gn(I,u),h!==0&&h!==W.retryLane))throw W.retryLane=h,Fa(o,h),Vr(I,o,h),Bv;xy(N)||ip(),a=qv(o,a,u)}else xy(N)?(a.flags|=192,a.child=o.child,a=null):(o=W.treeContext,yn=Io(N.nextSibling),dr=a,Nt=!0,Ts=null,Oo=!1,o!==null&&zR(a,o),a=$v(a,h.children),a.flags|=4096);return a}return v?(Ps(),N=h.fallback,v=a.mode,W=o.child,pe=W.sibling,h=Vi(W,{mode:"hidden",children:h.children}),h.subtreeFlags=W.subtreeFlags&65011712,pe!==null?N=Vi(pe,N):(N=za(N,v,u,null),N.flags|=2),N.return=a,h.return=a,h.sibling=N,a.child=h,vf(null,h),h=a.child,N=o.child.memoizedState,N===null?N=Vv(u):(v=N.cachePool,v!==null?(W=jn._currentValue,v=v.parent!==W?{parent:W,pool:W}:v):v=$R(),N={baseLanes:N.baseLanes|u,cachePool:v}),h.memoizedState=N,h.childLanes=jv(o,I,u),a.memoizedState=Uv,vf(o.child,h)):(Ls(a),u=o.child,o=u.sibling,u=Vi(u,{mode:"visible",children:h.children}),u.return=a,u.sibling=null,o!==null&&(I=a.deletions,I===null?(a.deletions=[o],a.flags|=16):I.push(o)),a.child=u,a.memoizedState=null,u)}function $v(o,a){return a=Wh({mode:"visible",children:a},o.mode),a.return=o,o.child=a}function Wh(o,a){return o=io(22,o,null,a),o.lanes=0,o}function qv(o,a,u){return qa(a,o.child,null,u),o=$v(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function rC(o,a,u){o.lanes|=a;var h=o.alternate;h!==null&&(h.lanes|=a),sv(o.return,a,u)}function Gv(o,a,u,h,v,w){var I=o.memoizedState;I===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:v,treeForkCount:w}:(I.isBackwards=a,I.rendering=null,I.renderingStartTime=0,I.last=h,I.tail=u,I.tailMode=v,I.treeForkCount=w)}function oC(o,a,u){var h=a.pendingProps,v=h.revealOrder,w=h.tail;h=h.children;var I=kn.current,N=(I&2)!==0;if(N?(I=I&1|2,a.flags|=128):I&=1,X(kn,I),pr(o,a,h,u),h=Nt?rf:0,!N&&o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&rC(o,u,a);else if(o.tag===19)rC(o,u,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(u=a.child,v=null;u!==null;)o=u.alternate,o!==null&&zh(o)===null&&(v=u),u=u.sibling;u=v,u===null?(v=a.child,a.child=null):(v=u.sibling,u.sibling=null),Gv(a,!1,v,u,w,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=a.child,a.child=null;v!==null;){if(o=v.alternate,o!==null&&zh(o)===null){a.child=v;break}o=v.sibling,v.sibling=u,u=v,v=o}Gv(a,!0,u,null,w,h);break;case"together":Gv(a,!1,null,null,void 0,h);break;default:a.memoizedState=null}return a.child}function Ki(o,a,u){if(o!==null&&(a.dependencies=o.dependencies),Fs|=a.lanes,(u&a.childLanes)===0)if(o!==null){if(ru(o,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,u=Vi(o,o.pendingProps),a.child=u,u.return=a;o.sibling!==null;)o=o.sibling,u=u.sibling=Vi(o,o.pendingProps),u.return=a;u.sibling=null}return a.child}function Yv(o,a){return(o.lanes&a)!==0?!0:(o=o.dependencies,!!(o!==null&&Mh(o)))}function lP(o,a,u){switch(a.tag){case 3:Q(a,a.stateNode.containerInfo),Os(a,jn,o.memoizedState.cache),Ba();break;case 27:case 5:Ee(a);break;case 4:Q(a,a.stateNode.containerInfo);break;case 10:Os(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,yv(a),null;break;case 13:var h=a.memoizedState;if(h!==null)return h.dehydrated!==null?(Ls(a),a.flags|=128,null):(u&a.child.childLanes)!==0?nC(o,a,u):(Ls(a),o=Ki(o,a,u),o!==null?o.sibling:null);Ls(a);break;case 19:var v=(o.flags&128)!==0;if(h=(u&a.childLanes)!==0,h||(ru(o,a,u,!1),h=(u&a.childLanes)!==0),v){if(h)return oC(o,a,u);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),X(kn,kn.current),h)break;return null;case 22:return a.lanes=0,Wx(o,a,u,a.pendingProps);case 24:Os(a,jn,o.memoizedState.cache)}return Ki(o,a,u)}function iC(o,a,u){if(o!==null)if(o.memoizedProps!==a.pendingProps)qn=!0;else{if(!Yv(o,u)&&(a.flags&128)===0)return qn=!1,lP(o,a,u);qn=(o.flags&131072)!==0}else qn=!1,Nt&&(a.flags&1048576)!==0&&FR(a,rf,a.index);switch(a.lanes=0,a.tag){case 16:e:{var h=a.pendingProps;if(o=ja(a.elementType),a.type=o,typeof o=="function")J0(o)?(h=Ya(o,h),a.tag=1,a=eC(null,a,o,h,u)):(a.tag=0,a=Hv(null,a,o,h,u));else{if(o!=null){var v=o.$$typeof;if(v===O){a.tag=11,a=Yx(null,a,o,h,u);break e}else if(v===A){a.tag=14,a=Kx(null,a,o,h,u);break e}}throw a=G(o)||o,Error(r(306,a,""))}}return a;case 0:return Hv(o,a,a.type,a.pendingProps,u);case 1:return h=a.type,v=Ya(h,a.pendingProps),eC(o,a,h,v,u);case 3:e:{if(Q(a,a.stateNode.containerInfo),o===null)throw Error(r(387));h=a.pendingProps;var w=a.memoizedState;v=w.element,hv(o,a),df(a,h,null,u);var I=a.memoizedState;if(h=I.cache,Os(a,jn,h),h!==w.cache&&av(a,[jn],u,!0),ff(),h=I.element,w.isDehydrated)if(w={element:h,isDehydrated:!1,cache:I.cache},a.updateQueue.baseState=w,a.memoizedState=w,a.flags&256){a=tC(o,a,h,u);break e}else if(h!==v){v=_o(Error(r(424)),a),of(v),a=tC(o,a,h,u);break e}else{switch(o=a.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(yn=Io(o.firstChild),dr=a,Nt=!0,Ts=null,Oo=!0,u=WR(a,null,h,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ba(),h===v){a=Ki(o,a,u);break e}pr(o,a,h,u)}a=a.child}return a;case 26:return Xh(o,a),o===null?(u=m_(a.type,null,a.pendingProps,null))?a.memoizedState=u:Nt||(u=a.type,o=a.pendingProps,h=dp(ne.current).createElement(u),h[Qn]=a,h[fr]=o,gr(h,u,o),or(h),a.stateNode=h):a.memoizedState=m_(a.type,o.memoizedProps,a.pendingProps,o.memoizedState),null;case 27:return Ee(a),o===null&&Nt&&(h=a.stateNode=h_(a.type,a.pendingProps,ne.current),dr=a,Oo=!0,v=yn,Vs(a.type)?(_y=v,yn=Io(h.firstChild)):yn=v),pr(o,a,a.pendingProps.children,u),Xh(o,a),o===null&&(a.flags|=4194304),a.child;case 5:return o===null&&Nt&&((v=h=yn)&&(h=zP(h,a.type,a.pendingProps,Oo),h!==null?(a.stateNode=h,dr=a,yn=Io(h.firstChild),Oo=!1,v=!0):v=!1),v||As(a)),Ee(a),v=a.type,w=a.pendingProps,I=o!==null?o.memoizedProps:null,h=w.children,Ey(v,w)?h=null:I!==null&&Ey(v,I)&&(a.flags|=32),a.memoizedState!==null&&(v=Sv(o,a,ZL,null,null,u),Df._currentValue=v),Xh(o,a),pr(o,a,h,u),a.child;case 6:return o===null&&Nt&&((o=u=yn)&&(u=BP(u,a.pendingProps,Oo),u!==null?(a.stateNode=u,dr=a,yn=null,o=!0):o=!1),o||As(a)),null;case 13:return nC(o,a,u);case 4:return Q(a,a.stateNode.containerInfo),h=a.pendingProps,o===null?a.child=qa(a,null,h,u):pr(o,a,h,u),a.child;case 11:return Yx(o,a,a.type,a.pendingProps,u);case 7:return pr(o,a,a.pendingProps,u),a.child;case 8:return pr(o,a,a.pendingProps.children,u),a.child;case 12:return pr(o,a,a.pendingProps.children,u),a.child;case 10:return h=a.pendingProps,Os(a,a.type,h.value),pr(o,a,h.children,u),a.child;case 9:return v=a.type._context,h=a.pendingProps.children,Ua(a),v=hr(v),h=h(v),a.flags|=1,pr(o,a,h,u),a.child;case 14:return Kx(o,a,a.type,a.pendingProps,u);case 15:return Xx(o,a,a.type,a.pendingProps,u);case 19:return oC(o,a,u);case 31:return aP(o,a,u);case 22:return Wx(o,a,u,a.pendingProps);case 24:return Ua(a),h=hr(jn),o===null?(v=cv(),v===null&&(v=pn,w=lv(),v.pooledCache=w,w.refCount++,w!==null&&(v.pooledCacheLanes|=u),v=w),a.memoizedState={parent:h,cache:v},dv(a),Os(a,jn,v)):((o.lanes&u)!==0&&(hv(o,a),df(a,null,null,u),ff()),v=o.memoizedState,w=a.memoizedState,v.parent!==h?(v={parent:h,cache:h},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),Os(a,jn,h)):(h=w.cache,Os(a,jn,h),h!==v.cache&&av(a,[jn],u,!0))),pr(o,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Xi(o){o.flags|=4}function Kv(o,a,u,h,v){if((a=(o.mode&32)!==0)&&(a=!1),a){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(DC())o.flags|=8192;else throw $a=Ph,fv}else o.flags&=-16777217}function sC(o,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!E_(a))if(DC())o.flags|=8192;else throw $a=Ph,fv}function Qh(o,a){a!==null&&(o.flags|=4),o.flags&16384&&(a=o.tag!==22?qe():536870912,o.lanes|=a,gu|=a)}function yf(o,a){if(!Nt)switch(o.tailMode){case"hidden":a=o.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?o.tail=null:u.sibling=null;break;case"collapsed":u=o.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function bn(o){var a=o.alternate!==null&&o.alternate.child===o.child,u=0,h=0;if(a)for(var v=o.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=h,o.childLanes=u,a}function uP(o,a,u){var h=a.pendingProps;switch(nv(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bn(a),null;case 1:return bn(a),null;case 3:return u=a.stateNode,h=null,o!==null&&(h=o.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),qi(jn),ve(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(o===null||o.child===null)&&(nu(a)?Xi(a):o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ov())),bn(a),null;case 26:var v=a.type,w=a.memoizedState;return o===null?(Xi(a),w!==null?(bn(a),sC(a,w)):(bn(a),Kv(a,v,null,h,u))):w?w!==o.memoizedState?(Xi(a),bn(a),sC(a,w)):(bn(a),a.flags&=-16777217):(o=o.memoizedProps,o!==h&&Xi(a),bn(a),Kv(a,v,o,h,u)),null;case 27:if(le(a),u=ne.current,v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==h&&Xi(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return bn(a),null}o=te.current,nu(a)?BR(a):(o=h_(v,h,u),a.stateNode=o,Xi(a))}return bn(a),null;case 5:if(le(a),v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==h&&Xi(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return bn(a),null}if(w=te.current,nu(a))BR(a);else{var I=dp(ne.current);switch(w){case 1:w=I.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:w=I.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":w=I.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":w=I.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":w=I.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof h.is=="string"?I.createElement("select",{is:h.is}):I.createElement("select"),h.multiple?w.multiple=!0:h.size&&(w.size=h.size);break;default:w=typeof h.is=="string"?I.createElement(v,{is:h.is}):I.createElement(v)}}w[Qn]=a,w[fr]=h;e:for(I=a.child;I!==null;){if(I.tag===5||I.tag===6)w.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===a)break e;for(;I.sibling===null;){if(I.return===null||I.return===a)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}a.stateNode=w;e:switch(gr(w,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&Xi(a)}}return bn(a),Kv(a,a.type,o===null?null:o.memoizedProps,a.pendingProps,u),null;case 6:if(o&&a.stateNode!=null)o.memoizedProps!==h&&Xi(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(r(166));if(o=ne.current,nu(a)){if(o=a.stateNode,u=a.memoizedProps,h=null,v=dr,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}o[Qn]=a,o=!!(o.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||n_(o.nodeValue,u)),o||As(a,!0)}else o=dp(o).createTextNode(h),o[Qn]=a,a.stateNode=o}return bn(a),null;case 31:if(u=a.memoizedState,o===null||o.memoizedState!==null){if(h=nu(a),u!==null){if(o===null){if(!h)throw Error(r(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Qn]=a}else Ba(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),o=!1}else u=ov(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=u),o=!0;if(!o)return a.flags&256?(ao(a),a):(ao(a),null);if((a.flags&128)!==0)throw Error(r(558))}return bn(a),null;case 13:if(h=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=nu(a),h!==null&&h.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Qn]=a}else Ba(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bn(a),v=!1}else v=ov(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(ao(a),a):(ao(a),null)}return ao(a),(a.flags&128)!==0?(a.lanes=u,a):(u=h!==null,o=o!==null&&o.memoizedState!==null,u&&(h=a.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),w=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),w!==v&&(h.flags|=2048)),u!==o&&u&&(a.child.flags|=8192),Qh(a,a.updateQueue),bn(a),null);case 4:return ve(),o===null&&my(a.stateNode.containerInfo),bn(a),null;case 10:return qi(a.type),bn(a),null;case 19:if($(kn),h=a.memoizedState,h===null)return bn(a),null;if(v=(a.flags&128)!==0,w=h.rendering,w===null)if(v)yf(h,!1);else{if(Mn!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(w=zh(o),w!==null){for(a.flags|=128,yf(h,!1),o=w.updateQueue,a.updateQueue=o,Qh(a,o),a.subtreeFlags=0,o=u,u=a.child;u!==null;)PR(u,o),u=u.sibling;return X(kn,kn.current&1|2),Nt&&ji(a,h.treeForkCount),a.child}o=o.sibling}h.tail!==null&&ae()>np&&(a.flags|=128,v=!0,yf(h,!1),a.lanes=4194304)}else{if(!v)if(o=zh(w),o!==null){if(a.flags|=128,v=!0,o=o.updateQueue,a.updateQueue=o,Qh(a,o),yf(h,!0),h.tail===null&&h.tailMode==="hidden"&&!w.alternate&&!Nt)return bn(a),null}else 2*ae()-h.renderingStartTime>np&&u!==536870912&&(a.flags|=128,v=!0,yf(h,!1),a.lanes=4194304);h.isBackwards?(w.sibling=a.child,a.child=w):(o=h.last,o!==null?o.sibling=w:a.child=w,h.last=w)}return h.tail!==null?(o=h.tail,h.rendering=o,h.tail=o.sibling,h.renderingStartTime=ae(),o.sibling=null,u=kn.current,X(kn,v?u&1|2:u&1),Nt&&ji(a,h.treeForkCount),o):(bn(a),null);case 22:case 23:return ao(a),vv(),h=a.memoizedState!==null,o!==null?o.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(u&536870912)!==0&&(a.flags&128)===0&&(bn(a),a.subtreeFlags&6&&(a.flags|=8192)):bn(a),u=a.updateQueue,u!==null&&Qh(a,u.retryQueue),u=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==u&&(a.flags|=2048),o!==null&&$(Va),null;case 24:return u=null,o!==null&&(u=o.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),qi(jn),bn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function cP(o,a){switch(nv(a),a.tag){case 1:return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return qi(jn),ve(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 26:case 27:case 5:return le(a),null;case 31:if(a.memoizedState!==null){if(ao(a),a.alternate===null)throw Error(r(340));Ba()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 13:if(ao(a),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ba()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return $(kn),null;case 4:return ve(),null;case 10:return qi(a.type),null;case 22:case 23:return ao(a),vv(),o!==null&&$(Va),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 24:return qi(jn),null;case 25:return null;default:return null}}function aC(o,a){switch(nv(a),a.tag){case 3:qi(jn),ve();break;case 26:case 27:case 5:le(a);break;case 4:ve();break;case 31:a.memoizedState!==null&&ao(a);break;case 13:ao(a);break;case 19:$(kn);break;case 10:qi(a.type);break;case 22:case 23:ao(a),vv(),o!==null&&$(Va);break;case 24:qi(jn)}}function bf(o,a){try{var u=a.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var v=h.next;u=v;do{if((u.tag&o)===o){h=void 0;var w=u.create,I=u.inst;h=w(),I.destroy=h}u=u.next}while(u!==v)}}catch(N){nn(a,a.return,N)}}function ks(o,a,u){try{var h=a.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var w=v.next;h=w;do{if((h.tag&o)===o){var I=h.inst,N=I.destroy;if(N!==void 0){I.destroy=void 0,v=a;var W=u,pe=N;try{pe()}catch(_e){nn(v,W,_e)}}}h=h.next}while(h!==w)}}catch(_e){nn(a,a.return,_e)}}function lC(o){var a=o.updateQueue;if(a!==null){var u=o.stateNode;try{JR(a,u)}catch(h){nn(o,o.return,h)}}}function uC(o,a,u){u.props=Ya(o.type,o.memoizedProps),u.state=o.memoizedState;try{u.componentWillUnmount()}catch(h){nn(o,a,h)}}function Sf(o,a){try{var u=o.ref;if(u!==null){switch(o.tag){case 26:case 27:case 5:var h=o.stateNode;break;case 30:h=o.stateNode;break;default:h=o.stateNode}typeof u=="function"?o.refCleanup=u(h):u.current=h}}catch(v){nn(o,a,v)}}function fi(o,a){var u=o.ref,h=o.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(v){nn(o,a,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){nn(o,a,v)}else u.current=null}function cC(o){var a=o.type,u=o.memoizedProps,h=o.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(v){nn(o,o.return,v)}}function Xv(o,a,u){try{var h=o.stateNode;DP(h,o.type,u,a),h[fr]=a}catch(v){nn(o,o.return,v)}}function fC(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Vs(o.type)||o.tag===4}function Wv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||fC(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Vs(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Qv(o,a,u){var h=o.tag;if(h===5||h===6)o=o.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(o,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(o),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Hi));else if(h!==4&&(h===27&&Vs(o.type)&&(u=o.stateNode,a=null),o=o.child,o!==null))for(Qv(o,a,u),o=o.sibling;o!==null;)Qv(o,a,u),o=o.sibling}function Jh(o,a,u){var h=o.tag;if(h===5||h===6)o=o.stateNode,a?u.insertBefore(o,a):u.appendChild(o);else if(h!==4&&(h===27&&Vs(o.type)&&(u=o.stateNode),o=o.child,o!==null))for(Jh(o,a,u),o=o.sibling;o!==null;)Jh(o,a,u),o=o.sibling}function dC(o){var a=o.stateNode,u=o.memoizedProps;try{for(var h=o.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);gr(a,h,u),a[Qn]=o,a[fr]=u}catch(w){nn(o,o.return,w)}}var Wi=!1,Gn=!1,Jv=!1,hC=typeof WeakSet=="function"?WeakSet:Set,ir=null;function fP(o,a){if(o=o.containerInfo,by=bp,o=CR(o),q0(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var v=h.anchorOffset,w=h.focusNode;h=h.focusOffset;try{u.nodeType,w.nodeType}catch{u=null;break e}var I=0,N=-1,W=-1,pe=0,_e=0,Ae=o,ge=null;t:for(;;){for(var Se;Ae!==u||v!==0&&Ae.nodeType!==3||(N=I+v),Ae!==w||h!==0&&Ae.nodeType!==3||(W=I+h),Ae.nodeType===3&&(I+=Ae.nodeValue.length),(Se=Ae.firstChild)!==null;)ge=Ae,Ae=Se;for(;;){if(Ae===o)break t;if(ge===u&&++pe===v&&(N=I),ge===w&&++_e===h&&(W=I),(Se=Ae.nextSibling)!==null)break;Ae=ge,ge=Ae.parentNode}Ae=Se}u=N===-1||W===-1?null:{start:N,end:W}}else u=null}u=u||{start:0,end:0}}else u=null;for(Sy={focusedElem:o,selectionRange:u},bp=!1,ir=a;ir!==null;)if(a=ir,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ir=o;else for(;ir!==null;){switch(a=ir,w=a.alternate,o=a.flags,a.tag){case 0:if((o&4)!==0&&(o=a.updateQueue,o=o!==null?o.events:null,o!==null))for(u=0;u<o.length;u++)v=o[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&w!==null){o=void 0,u=a,v=w.memoizedProps,w=w.memoizedState,h=u.stateNode;try{var Xe=Ya(u.type,v);o=h.getSnapshotBeforeUpdate(Xe,w),h.__reactInternalSnapshotBeforeUpdate=o}catch(ot){nn(u,u.return,ot)}}break;case 3:if((o&1024)!==0){if(o=a.stateNode.containerInfo,u=o.nodeType,u===9)Ry(o);else if(u===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Ry(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=a.sibling,o!==null){o.return=a.return,ir=o;break}ir=a.return}}function pC(o,a,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:Ji(o,u),h&4&&bf(5,u);break;case 1:if(Ji(o,u),h&4)if(o=u.stateNode,a===null)try{o.componentDidMount()}catch(I){nn(u,u.return,I)}else{var v=Ya(u.type,a.memoizedProps);a=a.memoizedState;try{o.componentDidUpdate(v,a,o.__reactInternalSnapshotBeforeUpdate)}catch(I){nn(u,u.return,I)}}h&64&&lC(u),h&512&&Sf(u,u.return);break;case 3:if(Ji(o,u),h&64&&(o=u.updateQueue,o!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{JR(o,a)}catch(I){nn(u,u.return,I)}}break;case 27:a===null&&h&4&&dC(u);case 26:case 5:Ji(o,u),a===null&&h&4&&cC(u),h&512&&Sf(u,u.return);break;case 12:Ji(o,u);break;case 31:Ji(o,u),h&4&&vC(o,u);break;case 13:Ji(o,u),h&4&&yC(o,u),h&64&&(o=u.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(u=SP.bind(null,u),HP(o,u))));break;case 22:if(h=u.memoizedState!==null||Wi,!h){a=a!==null&&a.memoizedState!==null||Gn,v=Wi;var w=Gn;Wi=h,(Gn=a)&&!w?Zi(o,u,(u.subtreeFlags&8772)!==0):Ji(o,u),Wi=v,Gn=w}break;case 30:break;default:Ji(o,u)}}function gC(o){var a=o.alternate;a!==null&&(o.alternate=null,gC(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&A0(a)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var xn=null,zr=!1;function Qi(o,a,u){for(u=u.child;u!==null;)mC(o,a,u),u=u.sibling}function mC(o,a,u){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(ut,u)}catch{}switch(u.tag){case 26:Gn||fi(u,a),Qi(o,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Gn||fi(u,a);var h=xn,v=zr;Vs(u.type)&&(xn=u.stateNode,zr=!1),Qi(o,a,u),Of(u.stateNode),xn=h,zr=v;break;case 5:Gn||fi(u,a);case 6:if(h=xn,v=zr,xn=null,Qi(o,a,u),xn=h,zr=v,xn!==null)if(zr)try{(xn.nodeType===9?xn.body:xn.nodeName==="HTML"?xn.ownerDocument.body:xn).removeChild(u.stateNode)}catch(w){nn(u,a,w)}else try{xn.removeChild(u.stateNode)}catch(w){nn(u,a,w)}break;case 18:xn!==null&&(zr?(o=xn,l_(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,u.stateNode),Ru(o)):l_(xn,u.stateNode));break;case 4:h=xn,v=zr,xn=u.stateNode.containerInfo,zr=!0,Qi(o,a,u),xn=h,zr=v;break;case 0:case 11:case 14:case 15:ks(2,u,a),Gn||ks(4,u,a),Qi(o,a,u);break;case 1:Gn||(fi(u,a),h=u.stateNode,typeof h.componentWillUnmount=="function"&&uC(u,a,h)),Qi(o,a,u);break;case 21:Qi(o,a,u);break;case 22:Gn=(h=Gn)||u.memoizedState!==null,Qi(o,a,u),Gn=h;break;default:Qi(o,a,u)}}function vC(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Ru(o)}catch(u){nn(a,a.return,u)}}}function yC(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ru(o)}catch(u){nn(a,a.return,u)}}function dP(o){switch(o.tag){case 31:case 13:case 19:var a=o.stateNode;return a===null&&(a=o.stateNode=new hC),a;case 22:return o=o.stateNode,a=o._retryCache,a===null&&(a=o._retryCache=new hC),a;default:throw Error(r(435,o.tag))}}function Zh(o,a){var u=dP(o);a.forEach(function(h){if(!u.has(h)){u.add(h);var v=EP.bind(null,o,h);h.then(v,v)}})}function Br(o,a){var u=a.deletions;if(u!==null)for(var h=0;h<u.length;h++){var v=u[h],w=o,I=a,N=I;e:for(;N!==null;){switch(N.tag){case 27:if(Vs(N.type)){xn=N.stateNode,zr=!1;break e}break;case 5:xn=N.stateNode,zr=!1;break e;case 3:case 4:xn=N.stateNode.containerInfo,zr=!0;break e}N=N.return}if(xn===null)throw Error(r(160));mC(w,I,v),xn=null,zr=!1,w=v.alternate,w!==null&&(w.return=null),v.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)bC(a,o),a=a.sibling}var qo=null;function bC(o,a){var u=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Br(a,o),Hr(o),h&4&&(ks(3,o,o.return),bf(3,o),ks(5,o,o.return));break;case 1:Br(a,o),Hr(o),h&512&&(Gn||u===null||fi(u,u.return)),h&64&&Wi&&(o=o.updateQueue,o!==null&&(h=o.callbacks,h!==null&&(u=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var v=qo;if(Br(a,o),Hr(o),h&512&&(Gn||u===null||fi(u,u.return)),h&4){var w=u!==null?u.memoizedState:null;if(h=o.memoizedState,u===null)if(h===null)if(o.stateNode===null){e:{h=o.type,u=o.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":w=v.getElementsByTagName("title")[0],(!w||w[Gc]||w[Qn]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=v.createElement(h),v.head.insertBefore(w,v.querySelector("head > title"))),gr(w,h,u),w[Qn]=o,or(w),h=w;break e;case"link":var I=b_("link","href",v).get(h+(u.href||""));if(I){for(var N=0;N<I.length;N++)if(w=I[N],w.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&w.getAttribute("rel")===(u.rel==null?null:u.rel)&&w.getAttribute("title")===(u.title==null?null:u.title)&&w.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){I.splice(N,1);break t}}w=v.createElement(h),gr(w,h,u),v.head.appendChild(w);break;case"meta":if(I=b_("meta","content",v).get(h+(u.content||""))){for(N=0;N<I.length;N++)if(w=I[N],w.getAttribute("content")===(u.content==null?null:""+u.content)&&w.getAttribute("name")===(u.name==null?null:u.name)&&w.getAttribute("property")===(u.property==null?null:u.property)&&w.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&w.getAttribute("charset")===(u.charSet==null?null:u.charSet)){I.splice(N,1);break t}}w=v.createElement(h),gr(w,h,u),v.head.appendChild(w);break;default:throw Error(r(468,h))}w[Qn]=o,or(w),h=w}o.stateNode=h}else S_(v,o.type,o.stateNode);else o.stateNode=y_(v,h,o.memoizedProps);else w!==h?(w===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):w.count--,h===null?S_(v,o.type,o.stateNode):y_(v,h,o.memoizedProps)):h===null&&o.stateNode!==null&&Xv(o,o.memoizedProps,u.memoizedProps)}break;case 27:Br(a,o),Hr(o),h&512&&(Gn||u===null||fi(u,u.return)),u!==null&&h&4&&Xv(o,o.memoizedProps,u.memoizedProps);break;case 5:if(Br(a,o),Hr(o),h&512&&(Gn||u===null||fi(u,u.return)),o.flags&32){v=o.stateNode;try{Gl(v,"")}catch(Xe){nn(o,o.return,Xe)}}h&4&&o.stateNode!=null&&(v=o.memoizedProps,Xv(o,v,u!==null?u.memoizedProps:v)),h&1024&&(Jv=!0);break;case 6:if(Br(a,o),Hr(o),h&4){if(o.stateNode===null)throw Error(r(162));h=o.memoizedProps,u=o.stateNode;try{u.nodeValue=h}catch(Xe){nn(o,o.return,Xe)}}break;case 3:if(gp=null,v=qo,qo=hp(a.containerInfo),Br(a,o),qo=v,Hr(o),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Ru(a.containerInfo)}catch(Xe){nn(o,o.return,Xe)}Jv&&(Jv=!1,SC(o));break;case 4:h=qo,qo=hp(o.stateNode.containerInfo),Br(a,o),Hr(o),qo=h;break;case 12:Br(a,o),Hr(o);break;case 31:Br(a,o),Hr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,Zh(o,h)));break;case 13:Br(a,o),Hr(o),o.child.flags&8192&&o.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(tp=ae()),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,Zh(o,h)));break;case 22:v=o.memoizedState!==null;var W=u!==null&&u.memoizedState!==null,pe=Wi,_e=Gn;if(Wi=pe||v,Gn=_e||W,Br(a,o),Gn=_e,Wi=pe,Hr(o),h&8192)e:for(a=o.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(u===null||W||Wi||Gn||Ka(o)),u=null,a=o;;){if(a.tag===5||a.tag===26){if(u===null){W=u=a;try{if(w=W.stateNode,v)I=w.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{N=W.stateNode;var Ae=W.memoizedProps.style,ge=Ae!=null&&Ae.hasOwnProperty("display")?Ae.display:null;N.style.display=ge==null||typeof ge=="boolean"?"":(""+ge).trim()}}catch(Xe){nn(W,W.return,Xe)}}}else if(a.tag===6){if(u===null){W=a;try{W.stateNode.nodeValue=v?"":W.memoizedProps}catch(Xe){nn(W,W.return,Xe)}}}else if(a.tag===18){if(u===null){W=a;try{var Se=W.stateNode;v?u_(Se,!0):u_(W.stateNode,!1)}catch(Xe){nn(W,W.return,Xe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===o)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}h&4&&(h=o.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,Zh(o,u))));break;case 19:Br(a,o),Hr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,Zh(o,h)));break;case 30:break;case 21:break;default:Br(a,o),Hr(o)}}function Hr(o){var a=o.flags;if(a&2){try{for(var u,h=o.return;h!==null;){if(fC(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,w=Wv(o);Jh(o,w,v);break;case 5:var I=u.stateNode;u.flags&32&&(Gl(I,""),u.flags&=-33);var N=Wv(o);Jh(o,N,I);break;case 3:case 4:var W=u.stateNode.containerInfo,pe=Wv(o);Qv(o,pe,W);break;default:throw Error(r(161))}}catch(_e){nn(o,o.return,_e)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function SC(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var a=o;SC(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),o=o.sibling}}function Ji(o,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)pC(o,a.alternate,a),a=a.sibling}function Ka(o){for(o=o.child;o!==null;){var a=o;switch(a.tag){case 0:case 11:case 14:case 15:ks(4,a,a.return),Ka(a);break;case 1:fi(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&uC(a,a.return,u),Ka(a);break;case 27:Of(a.stateNode);case 26:case 5:fi(a,a.return),Ka(a);break;case 22:a.memoizedState===null&&Ka(a);break;case 30:Ka(a);break;default:Ka(a)}o=o.sibling}}function Zi(o,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var h=a.alternate,v=o,w=a,I=w.flags;switch(w.tag){case 0:case 11:case 15:Zi(v,w,u),bf(4,w);break;case 1:if(Zi(v,w,u),h=w,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(pe){nn(h,h.return,pe)}if(h=w,v=h.updateQueue,v!==null){var N=h.stateNode;try{var W=v.shared.hiddenCallbacks;if(W!==null)for(v.shared.hiddenCallbacks=null,v=0;v<W.length;v++)QR(W[v],N)}catch(pe){nn(h,h.return,pe)}}u&&I&64&&lC(w),Sf(w,w.return);break;case 27:dC(w);case 26:case 5:Zi(v,w,u),u&&h===null&&I&4&&cC(w),Sf(w,w.return);break;case 12:Zi(v,w,u);break;case 31:Zi(v,w,u),u&&I&4&&vC(v,w);break;case 13:Zi(v,w,u),u&&I&4&&yC(v,w);break;case 22:w.memoizedState===null&&Zi(v,w,u),Sf(w,w.return);break;case 30:break;default:Zi(v,w,u)}a=a.sibling}}function Zv(o,a){var u=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(o!=null&&o.refCount++,u!=null&&sf(u))}function ey(o,a){o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&sf(o))}function Go(o,a,u,h){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)EC(o,a,u,h),a=a.sibling}function EC(o,a,u,h){var v=a.flags;switch(a.tag){case 0:case 11:case 15:Go(o,a,u,h),v&2048&&bf(9,a);break;case 1:Go(o,a,u,h);break;case 3:Go(o,a,u,h),v&2048&&(o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&sf(o)));break;case 12:if(v&2048){Go(o,a,u,h),o=a.stateNode;try{var w=a.memoizedProps,I=w.id,N=w.onPostCommit;typeof N=="function"&&N(I,a.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(W){nn(a,a.return,W)}}else Go(o,a,u,h);break;case 31:Go(o,a,u,h);break;case 13:Go(o,a,u,h);break;case 23:break;case 22:w=a.stateNode,I=a.alternate,a.memoizedState!==null?w._visibility&2?Go(o,a,u,h):Ef(o,a):w._visibility&2?Go(o,a,u,h):(w._visibility|=2,du(o,a,u,h,(a.subtreeFlags&10256)!==0||!1)),v&2048&&Zv(I,a);break;case 24:Go(o,a,u,h),v&2048&&ey(a.alternate,a);break;default:Go(o,a,u,h)}}function du(o,a,u,h,v){for(v=v&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var w=o,I=a,N=u,W=h,pe=I.flags;switch(I.tag){case 0:case 11:case 15:du(w,I,N,W,v),bf(8,I);break;case 23:break;case 22:var _e=I.stateNode;I.memoizedState!==null?_e._visibility&2?du(w,I,N,W,v):Ef(w,I):(_e._visibility|=2,du(w,I,N,W,v)),v&&pe&2048&&Zv(I.alternate,I);break;case 24:du(w,I,N,W,v),v&&pe&2048&&ey(I.alternate,I);break;default:du(w,I,N,W,v)}a=a.sibling}}function Ef(o,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=o,h=a,v=h.flags;switch(h.tag){case 22:Ef(u,h),v&2048&&Zv(h.alternate,h);break;case 24:Ef(u,h),v&2048&&ey(h.alternate,h);break;default:Ef(u,h)}a=a.sibling}}var wf=8192;function hu(o,a,u){if(o.subtreeFlags&wf)for(o=o.child;o!==null;)wC(o,a,u),o=o.sibling}function wC(o,a,u){switch(o.tag){case 26:hu(o,a,u),o.flags&wf&&o.memoizedState!==null&&JP(u,qo,o.memoizedState,o.memoizedProps);break;case 5:hu(o,a,u);break;case 3:case 4:var h=qo;qo=hp(o.stateNode.containerInfo),hu(o,a,u),qo=h;break;case 22:o.memoizedState===null&&(h=o.alternate,h!==null&&h.memoizedState!==null?(h=wf,wf=16777216,hu(o,a,u),wf=h):hu(o,a,u));break;default:hu(o,a,u)}}function RC(o){var a=o.alternate;if(a!==null&&(o=a.child,o!==null)){a.child=null;do a=o.sibling,o.sibling=null,o=a;while(o!==null)}}function Rf(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var h=a[u];ir=h,CC(h,o)}RC(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)xC(o),o=o.sibling}function xC(o){switch(o.tag){case 0:case 11:case 15:Rf(o),o.flags&2048&&ks(9,o,o.return);break;case 3:Rf(o);break;case 12:Rf(o);break;case 22:var a=o.stateNode;o.memoizedState!==null&&a._visibility&2&&(o.return===null||o.return.tag!==13)?(a._visibility&=-3,ep(o)):Rf(o);break;default:Rf(o)}}function ep(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var h=a[u];ir=h,CC(h,o)}RC(o)}for(o=o.child;o!==null;){switch(a=o,a.tag){case 0:case 11:case 15:ks(8,a,a.return),ep(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,ep(a));break;default:ep(a)}o=o.sibling}}function CC(o,a){for(;ir!==null;){var u=ir;switch(u.tag){case 0:case 11:case 15:ks(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:sf(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,ir=h;else e:for(u=o;ir!==null;){h=ir;var v=h.sibling,w=h.return;if(gC(h),h===u){ir=null;break e}if(v!==null){v.return=w,ir=v;break e}ir=w}}}var hP={getCacheForType:function(o){var a=hr(jn),u=a.data.get(o);return u===void 0&&(u=o(),a.data.set(o,u)),u},cacheSignal:function(){return hr(jn).controller.signal}},pP=typeof WeakMap=="function"?WeakMap:Map,Gt=0,pn=null,It=null,Lt=0,tn=0,lo=null,Ns=!1,pu=!1,ty=!1,es=0,Mn=0,Fs=0,Xa=0,ny=0,uo=0,gu=0,xf=null,Ur=null,ry=!1,tp=0,_C=0,np=1/0,rp=null,zs=null,Jn=0,Bs=null,mu=null,ts=0,oy=0,iy=null,TC=null,Cf=0,sy=null;function co(){return(Gt&2)!==0&&Lt!==0?Lt&-Lt:P.T!==null?dy():Vn()}function AC(){if(uo===0)if((Lt&536870912)===0||Nt){var o=qt;qt<<=1,(qt&3932160)===0&&(qt=262144),uo=o}else uo=536870912;return o=so.current,o!==null&&(o.flags|=32),uo}function Vr(o,a,u){(o===pn&&(tn===2||tn===9)||o.cancelPendingCommit!==null)&&(vu(o,0),Hs(o,Lt,uo,!1)),en(o,u),((Gt&2)===0||o!==pn)&&(o===pn&&((Gt&2)===0&&(Xa|=u),Mn===4&&Hs(o,Lt,uo,!1)),di(o))}function OC(o,a,u){if((Gt&6)!==0)throw Error(r(327));var h=!u&&(a&127)===0&&(a&o.expiredLanes)===0||Bt(o,a),v=h?vP(o,a):ly(o,a,!0),w=h;do{if(v===0){pu&&!h&&Hs(o,a,0,!1);break}else{if(u=o.current.alternate,w&&!gP(u)){v=ly(o,a,!1),w=!1;continue}if(v===2){if(w=a,o.errorRecoveryDisabledLanes&w)var I=0;else I=o.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){a=I;e:{var N=o;v=xf;var W=N.current.memoizedState.isDehydrated;if(W&&(vu(N,I).flags|=256),I=ly(N,I,!1),I!==2){if(ty&&!W){N.errorRecoveryDisabledLanes|=w,Xa|=w,v=4;break e}w=Ur,Ur=v,w!==null&&(Ur===null?Ur=w:Ur.push.apply(Ur,w))}v=I}if(w=!1,v!==2)continue}}if(v===1){vu(o,0),Hs(o,a,0,!0);break}e:{switch(h=o,w=v,w){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Hs(h,a,uo,!Ns);break e;case 2:Ur=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(v=tp+300-ae(),10<v)){if(Hs(h,a,uo,!Ns),ct(h,0,!0)!==0)break e;ts=a,h.timeoutHandle=s_(MC.bind(null,h,u,Ur,rp,ry,a,uo,Xa,gu,Ns,w,"Throttled",-0,0),v);break e}MC(h,u,Ur,rp,ry,a,uo,Xa,gu,Ns,w,null,-0,0)}}break}while(!0);di(o)}function MC(o,a,u,h,v,w,I,N,W,pe,_e,Ae,ge,Se){if(o.timeoutHandle=-1,Ae=a.subtreeFlags,Ae&8192||(Ae&16785408)===16785408){Ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hi},wC(a,w,Ae);var Xe=(w&62914560)===w?tp-ae():(w&4194048)===w?_C-ae():0;if(Xe=ZP(Ae,Xe),Xe!==null){ts=w,o.cancelPendingCommit=Xe(zC.bind(null,o,a,w,u,h,v,I,N,W,_e,Ae,null,ge,Se)),Hs(o,w,I,!pe);return}}zC(o,a,w,u,h,v,I,N,W)}function gP(o){for(var a=o;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var v=u[h],w=v.getSnapshot;v=v.value;try{if(!oo(w(),v))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Hs(o,a,u,h){a&=~ny,a&=~Xa,o.suspendedLanes|=a,o.pingedLanes&=~a,h&&(o.warmLanes|=a),h=o.expirationTimes;for(var v=a;0<v;){var w=31-He(v),I=1<<w;h[w]=-1,v&=~I}u!==0&&an(o,u,a)}function op(){return(Gt&6)===0?(_f(0),!1):!0}function ay(){if(It!==null){if(tn===0)var o=It.return;else o=It,$i=Ha=null,Rv(o),au=null,lf=0,o=It;for(;o!==null;)aC(o.alternate,o),o=o.return;It=null}}function vu(o,a){var u=o.timeoutHandle;u!==-1&&(o.timeoutHandle=-1,kP(u)),u=o.cancelPendingCommit,u!==null&&(o.cancelPendingCommit=null,u()),ts=0,ay(),pn=o,It=u=Vi(o.current,null),Lt=a,tn=0,lo=null,Ns=!1,pu=Bt(o,a),ty=!1,gu=uo=ny=Xa=Fs=Mn=0,Ur=xf=null,ry=!1,(a&8)!==0&&(a|=a&32);var h=o.entangledLanes;if(h!==0)for(o=o.entanglements,h&=a;0<h;){var v=31-He(h),w=1<<v;a|=o[v],h&=~w}return es=a,Ch(),u}function IC(o,a){St=null,P.H=mf,a===su||a===Lh?(a=YR(),tn=3):a===fv?(a=YR(),tn=4):tn=a===Bv?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,lo=a,It===null&&(Mn=1,Yh(o,_o(a,o.current)))}function DC(){var o=so.current;return o===null?!0:(Lt&4194048)===Lt?Mo===null:(Lt&62914560)===Lt||(Lt&536870912)!==0?o===Mo:!1}function LC(){var o=P.H;return P.H=mf,o===null?mf:o}function PC(){var o=P.A;return P.A=hP,o}function ip(){Mn=4,Ns||(Lt&4194048)!==Lt&&so.current!==null||(pu=!0),(Fs&134217727)===0&&(Xa&134217727)===0||pn===null||Hs(pn,Lt,uo,!1)}function ly(o,a,u){var h=Gt;Gt|=2;var v=LC(),w=PC();(pn!==o||Lt!==a)&&(rp=null,vu(o,a)),a=!1;var I=Mn;e:do try{if(tn!==0&&It!==null){var N=It,W=lo;switch(tn){case 8:ay(),I=6;break e;case 3:case 2:case 9:case 6:so.current===null&&(a=!0);var pe=tn;if(tn=0,lo=null,yu(o,N,W,pe),u&&pu){I=0;break e}break;default:pe=tn,tn=0,lo=null,yu(o,N,W,pe)}}mP(),I=Mn;break}catch(_e){IC(o,_e)}while(!0);return a&&o.shellSuspendCounter++,$i=Ha=null,Gt=h,P.H=v,P.A=w,It===null&&(pn=null,Lt=0,Ch()),I}function mP(){for(;It!==null;)kC(It)}function vP(o,a){var u=Gt;Gt|=2;var h=LC(),v=PC();pn!==o||Lt!==a?(rp=null,np=ae()+500,vu(o,a)):pu=Bt(o,a);e:do try{if(tn!==0&&It!==null){a=It;var w=lo;t:switch(tn){case 1:tn=0,lo=null,yu(o,a,w,1);break;case 2:case 9:if(qR(w)){tn=0,lo=null,NC(a);break}a=function(){tn!==2&&tn!==9||pn!==o||(tn=7),di(o)},w.then(a,a);break e;case 3:tn=7;break e;case 4:tn=5;break e;case 7:qR(w)?(tn=0,lo=null,NC(a)):(tn=0,lo=null,yu(o,a,w,7));break;case 5:var I=null;switch(It.tag){case 26:I=It.memoizedState;case 5:case 27:var N=It;if(I?E_(I):N.stateNode.complete){tn=0,lo=null;var W=N.sibling;if(W!==null)It=W;else{var pe=N.return;pe!==null?(It=pe,sp(pe)):It=null}break t}}tn=0,lo=null,yu(o,a,w,5);break;case 6:tn=0,lo=null,yu(o,a,w,6);break;case 8:ay(),Mn=6;break e;default:throw Error(r(462))}}yP();break}catch(_e){IC(o,_e)}while(!0);return $i=Ha=null,P.H=h,P.A=v,Gt=u,It!==null?0:(pn=null,Lt=0,Ch(),Mn)}function yP(){for(;It!==null&&!ee();)kC(It)}function kC(o){var a=iC(o.alternate,o,es);o.memoizedProps=o.pendingProps,a===null?sp(o):It=a}function NC(o){var a=o,u=a.alternate;switch(a.tag){case 15:case 0:a=Zx(u,a,a.pendingProps,a.type,void 0,Lt);break;case 11:a=Zx(u,a,a.pendingProps,a.type.render,a.ref,Lt);break;case 5:Rv(a);default:aC(u,a),a=It=PR(a,es),a=iC(u,a,es)}o.memoizedProps=o.pendingProps,a===null?sp(o):It=a}function yu(o,a,u,h){$i=Ha=null,Rv(a),au=null,lf=0;var v=a.return;try{if(sP(o,v,a,u,Lt)){Mn=1,Yh(o,_o(u,o.current)),It=null;return}}catch(w){if(v!==null)throw It=v,w;Mn=1,Yh(o,_o(u,o.current)),It=null;return}a.flags&32768?(Nt||h===1?o=!0:pu||(Lt&536870912)!==0?o=!1:(Ns=o=!0,(h===2||h===9||h===3||h===6)&&(h=so.current,h!==null&&h.tag===13&&(h.flags|=16384))),FC(a,o)):sp(a)}function sp(o){var a=o;do{if((a.flags&32768)!==0){FC(a,Ns);return}o=a.return;var u=uP(a.alternate,a,es);if(u!==null){It=u;return}if(a=a.sibling,a!==null){It=a;return}It=a=o}while(a!==null);Mn===0&&(Mn=5)}function FC(o,a){do{var u=cP(o.alternate,o);if(u!==null){u.flags&=32767,It=u;return}if(u=o.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(o=o.sibling,o!==null)){It=o;return}It=o=u}while(o!==null);Mn=6,It=null}function zC(o,a,u,h,v,w,I,N,W){o.cancelPendingCommit=null;do ap();while(Jn!==0);if((Gt&6)!==0)throw Error(r(327));if(a!==null){if(a===o.current)throw Error(r(177));if(w=a.lanes|a.childLanes,w|=W0,Ht(o,u,w,I,N,W),o===pn&&(It=pn=null,Lt=0),mu=a,Bs=o,ts=u,oy=w,iy=v,TC=h,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,wP(Fe,function(){return jC(),null})):(o.callbackNode=null,o.callbackPriority=0),h=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||h){h=P.T,P.T=null,v=q.p,q.p=2,I=Gt,Gt|=4;try{fP(o,a,u)}finally{Gt=I,q.p=v,P.T=h}}Jn=1,BC(),HC(),UC()}}function BC(){if(Jn===1){Jn=0;var o=Bs,a=mu,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=P.T,P.T=null;var h=q.p;q.p=2;var v=Gt;Gt|=4;try{bC(a,o);var w=Sy,I=CR(o.containerInfo),N=w.focusedElem,W=w.selectionRange;if(I!==N&&N&&N.ownerDocument&&xR(N.ownerDocument.documentElement,N)){if(W!==null&&q0(N)){var pe=W.start,_e=W.end;if(_e===void 0&&(_e=pe),"selectionStart"in N)N.selectionStart=pe,N.selectionEnd=Math.min(_e,N.value.length);else{var Ae=N.ownerDocument||document,ge=Ae&&Ae.defaultView||window;if(ge.getSelection){var Se=ge.getSelection(),Xe=N.textContent.length,ot=Math.min(W.start,Xe),cn=W.end===void 0?ot:Math.min(W.end,Xe);!Se.extend&&ot>cn&&(I=cn,cn=ot,ot=I);var se=RR(N,ot),re=RR(N,cn);if(se&&re&&(Se.rangeCount!==1||Se.anchorNode!==se.node||Se.anchorOffset!==se.offset||Se.focusNode!==re.node||Se.focusOffset!==re.offset)){var de=Ae.createRange();de.setStart(se.node,se.offset),Se.removeAllRanges(),ot>cn?(Se.addRange(de),Se.extend(re.node,re.offset)):(de.setEnd(re.node,re.offset),Se.addRange(de))}}}}for(Ae=[],Se=N;Se=Se.parentNode;)Se.nodeType===1&&Ae.push({element:Se,left:Se.scrollLeft,top:Se.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<Ae.length;N++){var Te=Ae[N];Te.element.scrollLeft=Te.left,Te.element.scrollTop=Te.top}}bp=!!by,Sy=by=null}finally{Gt=v,q.p=h,P.T=u}}o.current=a,Jn=2}}function HC(){if(Jn===2){Jn=0;var o=Bs,a=mu,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=P.T,P.T=null;var h=q.p;q.p=2;var v=Gt;Gt|=4;try{pC(o,a.alternate,a)}finally{Gt=v,q.p=h,P.T=u}}Jn=3}}function UC(){if(Jn===4||Jn===3){Jn=0,ie();var o=Bs,a=mu,u=ts,h=TC;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Jn=5:(Jn=0,mu=Bs=null,VC(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(zs=null),kr(u),a=a.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(ut,a,void 0,(a.current.flags&128)===128)}catch{}if(h!==null){a=P.T,v=q.p,q.p=2,P.T=null;try{for(var w=o.onRecoverableError,I=0;I<h.length;I++){var N=h[I];w(N.value,{componentStack:N.stack})}}finally{P.T=a,q.p=v}}(ts&3)!==0&&ap(),di(o),v=o.pendingLanes,(u&261930)!==0&&(v&42)!==0?o===sy?Cf++:(Cf=0,sy=o):Cf=0,_f(0)}}function VC(o,a){(o.pooledCacheLanes&=a)===0&&(a=o.pooledCache,a!=null&&(o.pooledCache=null,sf(a)))}function ap(){return BC(),HC(),UC(),jC()}function jC(){if(Jn!==5)return!1;var o=Bs,a=oy;oy=0;var u=kr(ts),h=P.T,v=q.p;try{q.p=32>u?32:u,P.T=null,u=iy,iy=null;var w=Bs,I=ts;if(Jn=0,mu=Bs=null,ts=0,(Gt&6)!==0)throw Error(r(331));var N=Gt;if(Gt|=4,xC(w.current),EC(w,w.current,I,u),Gt=N,_f(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(ut,w)}catch{}return!0}finally{q.p=v,P.T=h,VC(o,a)}}function $C(o,a,u){a=_o(u,a),a=zv(o.stateNode,a,2),o=Ds(o,a,2),o!==null&&(en(o,2),di(o))}function nn(o,a,u){if(o.tag===3)$C(o,o,u);else for(;a!==null;){if(a.tag===3){$C(a,o,u);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(zs===null||!zs.has(h))){o=_o(u,o),u=qx(2),h=Ds(a,u,2),h!==null&&(Gx(u,h,a,o),en(h,2),di(h));break}}a=a.return}}function uy(o,a,u){var h=o.pingCache;if(h===null){h=o.pingCache=new pP;var v=new Set;h.set(a,v)}else v=h.get(a),v===void 0&&(v=new Set,h.set(a,v));v.has(u)||(ty=!0,v.add(u),o=bP.bind(null,o,a,u),a.then(o,o))}function bP(o,a,u){var h=o.pingCache;h!==null&&h.delete(a),o.pingedLanes|=o.suspendedLanes&u,o.warmLanes&=~u,pn===o&&(Lt&u)===u&&(Mn===4||Mn===3&&(Lt&62914560)===Lt&&300>ae()-tp?(Gt&2)===0&&vu(o,0):ny|=u,gu===Lt&&(gu=0)),di(o)}function qC(o,a){a===0&&(a=qe()),o=Fa(o,a),o!==null&&(en(o,a),di(o))}function SP(o){var a=o.memoizedState,u=0;a!==null&&(u=a.retryLane),qC(o,u)}function EP(o,a){var u=0;switch(o.tag){case 31:case 13:var h=o.stateNode,v=o.memoizedState;v!==null&&(u=v.retryLane);break;case 19:h=o.stateNode;break;case 22:h=o.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(a),qC(o,u)}function wP(o,a){return H(o,a)}var lp=null,bu=null,cy=!1,up=!1,fy=!1,Us=0;function di(o){o!==bu&&o.next===null&&(bu===null?lp=bu=o:bu=bu.next=o),up=!0,cy||(cy=!0,xP())}function _f(o,a){if(!fy&&up){fy=!0;do for(var u=!1,h=lp;h!==null;){if(o!==0){var v=h.pendingLanes;if(v===0)var w=0;else{var I=h.suspendedLanes,N=h.pingedLanes;w=(1<<31-He(42|o)+1)-1,w&=v&~(I&~N),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(u=!0,XC(h,w))}else w=Lt,w=ct(h,h===pn?w:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(w&3)===0||Bt(h,w)||(u=!0,XC(h,w));h=h.next}while(u);fy=!1}}function RP(){GC()}function GC(){up=cy=!1;var o=0;Us!==0&&PP()&&(o=Us);for(var a=ae(),u=null,h=lp;h!==null;){var v=h.next,w=YC(h,a);w===0?(h.next=null,u===null?lp=v:u.next=v,v===null&&(bu=u)):(u=h,(o!==0||(w&3)!==0)&&(up=!0)),h=v}Jn!==0&&Jn!==5||_f(o),Us!==0&&(Us=0)}function YC(o,a){for(var u=o.suspendedLanes,h=o.pingedLanes,v=o.expirationTimes,w=o.pendingLanes&-62914561;0<w;){var I=31-He(w),N=1<<I,W=v[I];W===-1?((N&u)===0||(N&h)!==0)&&(v[I]=sn(N,a)):W<=a&&(o.expiredLanes|=N),w&=~N}if(a=pn,u=Lt,u=ct(o,o===a?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h=o.callbackNode,u===0||o===a&&(tn===2||tn===9)||o.cancelPendingCommit!==null)return h!==null&&h!==null&&Y(h),o.callbackNode=null,o.callbackPriority=0;if((u&3)===0||Bt(o,u)){if(a=u&-u,a===o.callbackPriority)return a;switch(h!==null&&Y(h),kr(u)){case 2:case 8:u=Be;break;case 32:u=Fe;break;case 268435456:u=it;break;default:u=Fe}return h=KC.bind(null,o),u=H(u,h),o.callbackPriority=a,o.callbackNode=u,a}return h!==null&&h!==null&&Y(h),o.callbackPriority=2,o.callbackNode=null,2}function KC(o,a){if(Jn!==0&&Jn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var u=o.callbackNode;if(ap()&&o.callbackNode!==u)return null;var h=Lt;return h=ct(o,o===pn?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h===0?null:(OC(o,h,a),YC(o,ae()),o.callbackNode!=null&&o.callbackNode===u?KC.bind(null,o):null)}function XC(o,a){if(ap())return null;OC(o,a,!0)}function xP(){NP(function(){(Gt&6)!==0?H(Oe,RP):GC()})}function dy(){if(Us===0){var o=ou;o===0&&(o=yt,yt<<=1,(yt&261888)===0&&(yt=256)),Us=o}return Us}function WC(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:vh(""+o)}function QC(o,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,o.id&&u.setAttribute("form",o.id),a.parentNode.insertBefore(u,a),o=new FormData(o),u.parentNode.removeChild(u),o}function CP(o,a,u,h,v){if(a==="submit"&&u&&u.stateNode===v){var w=WC((v[fr]||null).action),I=h.submitter;I&&(a=(a=I[fr]||null)?WC(a.formAction):I.getAttribute("formAction"),a!==null&&(w=a,I=null));var N=new Eh("action","action",null,h,v);o.push({event:N,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Us!==0){var W=I?QC(v,I):new FormData(v);Dv(u,{pending:!0,data:W,method:v.method,action:w},null,W)}}else typeof w=="function"&&(N.preventDefault(),W=I?QC(v,I):new FormData(v),Dv(u,{pending:!0,data:W,method:v.method,action:w},w,W))},currentTarget:v}]})}}for(var hy=0;hy<X0.length;hy++){var py=X0[hy],_P=py.toLowerCase(),TP=py[0].toUpperCase()+py.slice(1);$o(_P,"on"+TP)}$o(AR,"onAnimationEnd"),$o(OR,"onAnimationIteration"),$o(MR,"onAnimationStart"),$o("dblclick","onDoubleClick"),$o("focusin","onFocus"),$o("focusout","onBlur"),$o(jL,"onTransitionRun"),$o($L,"onTransitionStart"),$o(qL,"onTransitionCancel"),$o(IR,"onTransitionEnd"),$l("onMouseEnter",["mouseout","mouseover"]),$l("onMouseLeave",["mouseout","mouseover"]),$l("onPointerEnter",["pointerout","pointerover"]),$l("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),AP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tf));function JC(o,a){a=(a&4)!==0;for(var u=0;u<o.length;u++){var h=o[u],v=h.event;h=h.listeners;e:{var w=void 0;if(a)for(var I=h.length-1;0<=I;I--){var N=h[I],W=N.instance,pe=N.currentTarget;if(N=N.listener,W!==w&&v.isPropagationStopped())break e;w=N,v.currentTarget=pe;try{w(v)}catch(_e){xh(_e)}v.currentTarget=null,w=W}else for(I=0;I<h.length;I++){if(N=h[I],W=N.instance,pe=N.currentTarget,N=N.listener,W!==w&&v.isPropagationStopped())break e;w=N,v.currentTarget=pe;try{w(v)}catch(_e){xh(_e)}v.currentTarget=null,w=W}}}}function Dt(o,a){var u=a[Hl];u===void 0&&(u=a[Hl]=new Set);var h=o+"__bubble";u.has(h)||(ZC(a,o,2,!1),u.add(h))}function gy(o,a,u){var h=0;a&&(h|=4),ZC(u,o,h,a)}var cp="_reactListening"+Math.random().toString(36).slice(2);function my(o){if(!o[cp]){o[cp]=!0,Gw.forEach(function(u){u!=="selectionchange"&&(AP.has(u)||gy(u,!1,o),gy(u,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[cp]||(a[cp]=!0,gy("selectionchange",!1,a))}}function ZC(o,a,u,h){switch(A_(a)){case 2:var v=nk;break;case 8:v=rk;break;default:v=Iy}u=v.bind(null,a,u,o),v=void 0,!N0||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),h?v!==void 0?o.addEventListener(a,u,{capture:!0,passive:v}):o.addEventListener(a,u,!0):v!==void 0?o.addEventListener(a,u,{passive:v}):o.addEventListener(a,u,!1)}function vy(o,a,u,h,v){var w=h;if((a&1)===0&&(a&2)===0&&h!==null)e:for(;;){if(h===null)return;var I=h.tag;if(I===3||I===4){var N=h.stateNode.containerInfo;if(N===v)break;if(I===4)for(I=h.return;I!==null;){var W=I.tag;if((W===3||W===4)&&I.stateNode.containerInfo===v)return;I=I.return}for(;N!==null;){if(I=Ul(N),I===null)return;if(W=I.tag,W===5||W===6||W===26||W===27){h=w=I;continue e}N=N.parentNode}}h=h.return}oR(function(){var pe=w,_e=P0(u),Ae=[];e:{var ge=DR.get(o);if(ge!==void 0){var Se=Eh,Xe=o;switch(o){case"keypress":if(bh(u)===0)break e;case"keydown":case"keyup":Se=EL;break;case"focusin":Xe="focus",Se=H0;break;case"focusout":Xe="blur",Se=H0;break;case"beforeblur":case"afterblur":Se=H0;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Se=aR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Se=uL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Se=xL;break;case AR:case OR:case MR:Se=dL;break;case IR:Se=_L;break;case"scroll":case"scrollend":Se=aL;break;case"wheel":Se=AL;break;case"copy":case"cut":case"paste":Se=pL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Se=uR;break;case"toggle":case"beforetoggle":Se=ML}var ot=(a&4)!==0,cn=!ot&&(o==="scroll"||o==="scrollend"),se=ot?ge!==null?ge+"Capture":null:ge;ot=[];for(var re=pe,de;re!==null;){var Te=re;if(de=Te.stateNode,Te=Te.tag,Te!==5&&Te!==26&&Te!==27||de===null||se===null||(Te=Kc(re,se),Te!=null&&ot.push(Af(re,Te,de))),cn)break;re=re.return}0<ot.length&&(ge=new Se(ge,Xe,null,u,_e),Ae.push({event:ge,listeners:ot}))}}if((a&7)===0){e:{if(ge=o==="mouseover"||o==="pointerover",Se=o==="mouseout"||o==="pointerout",ge&&u!==L0&&(Xe=u.relatedTarget||u.fromElement)&&(Ul(Xe)||Xe[zi]))break e;if((Se||ge)&&(ge=_e.window===_e?_e:(ge=_e.ownerDocument)?ge.defaultView||ge.parentWindow:window,Se?(Xe=u.relatedTarget||u.toElement,Se=pe,Xe=Xe?Ul(Xe):null,Xe!==null&&(cn=s(Xe),ot=Xe.tag,Xe!==cn||ot!==5&&ot!==27&&ot!==6)&&(Xe=null)):(Se=null,Xe=pe),Se!==Xe)){if(ot=aR,Te="onMouseLeave",se="onMouseEnter",re="mouse",(o==="pointerout"||o==="pointerover")&&(ot=uR,Te="onPointerLeave",se="onPointerEnter",re="pointer"),cn=Se==null?ge:Yc(Se),de=Xe==null?ge:Yc(Xe),ge=new ot(Te,re+"leave",Se,u,_e),ge.target=cn,ge.relatedTarget=de,Te=null,Ul(_e)===pe&&(ot=new ot(se,re+"enter",Xe,u,_e),ot.target=de,ot.relatedTarget=cn,Te=ot),cn=Te,Se&&Xe)t:{for(ot=OP,se=Se,re=Xe,de=0,Te=se;Te;Te=ot(Te))de++;Te=0;for(var Je=re;Je;Je=ot(Je))Te++;for(;0<de-Te;)se=ot(se),de--;for(;0<Te-de;)re=ot(re),Te--;for(;de--;){if(se===re||re!==null&&se===re.alternate){ot=se;break t}se=ot(se),re=ot(re)}ot=null}else ot=null;Se!==null&&e_(Ae,ge,Se,ot,!1),Xe!==null&&cn!==null&&e_(Ae,cn,Xe,ot,!0)}}e:{if(ge=pe?Yc(pe):window,Se=ge.nodeName&&ge.nodeName.toLowerCase(),Se==="select"||Se==="input"&&ge.type==="file")var Ut=vR;else if(gR(ge))if(yR)Ut=HL;else{Ut=zL;var We=FL}else Se=ge.nodeName,!Se||Se.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?pe&&D0(pe.elementType)&&(Ut=vR):Ut=BL;if(Ut&&(Ut=Ut(o,pe))){mR(Ae,Ut,u,_e);break e}We&&We(o,ge,pe),o==="focusout"&&pe&&ge.type==="number"&&pe.memoizedProps.value!=null&&I0(ge,"number",ge.value)}switch(We=pe?Yc(pe):window,o){case"focusin":(gR(We)||We.contentEditable==="true")&&(Wl=We,G0=pe,nf=null);break;case"focusout":nf=G0=Wl=null;break;case"mousedown":Y0=!0;break;case"contextmenu":case"mouseup":case"dragend":Y0=!1,_R(Ae,u,_e);break;case"selectionchange":if(VL)break;case"keydown":case"keyup":_R(Ae,u,_e)}var wt;if(V0)e:{switch(o){case"compositionstart":var Pt="onCompositionStart";break e;case"compositionend":Pt="onCompositionEnd";break e;case"compositionupdate":Pt="onCompositionUpdate";break e}Pt=void 0}else Xl?hR(o,u)&&(Pt="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(Pt="onCompositionStart");Pt&&(cR&&u.locale!=="ko"&&(Xl||Pt!=="onCompositionStart"?Pt==="onCompositionEnd"&&Xl&&(wt=iR()):(Cs=_e,F0="value"in Cs?Cs.value:Cs.textContent,Xl=!0)),We=fp(pe,Pt),0<We.length&&(Pt=new lR(Pt,o,null,u,_e),Ae.push({event:Pt,listeners:We}),wt?Pt.data=wt:(wt=pR(u),wt!==null&&(Pt.data=wt)))),(wt=DL?LL(o,u):PL(o,u))&&(Pt=fp(pe,"onBeforeInput"),0<Pt.length&&(We=new lR("onBeforeInput","beforeinput",null,u,_e),Ae.push({event:We,listeners:Pt}),We.data=wt)),CP(Ae,o,pe,u,_e)}JC(Ae,a)})}function Af(o,a,u){return{instance:o,listener:a,currentTarget:u}}function fp(o,a){for(var u=a+"Capture",h=[];o!==null;){var v=o,w=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||w===null||(v=Kc(o,u),v!=null&&h.unshift(Af(o,v,w)),v=Kc(o,a),v!=null&&h.push(Af(o,v,w))),o.tag===3)return h;o=o.return}return[]}function OP(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function e_(o,a,u,h,v){for(var w=a._reactName,I=[];u!==null&&u!==h;){var N=u,W=N.alternate,pe=N.stateNode;if(N=N.tag,W!==null&&W===h)break;N!==5&&N!==26&&N!==27||pe===null||(W=pe,v?(pe=Kc(u,w),pe!=null&&I.unshift(Af(u,pe,W))):v||(pe=Kc(u,w),pe!=null&&I.push(Af(u,pe,W)))),u=u.return}I.length!==0&&o.push({event:a,listeners:I})}var MP=/\r\n?/g,IP=/\u0000|\uFFFD/g;function t_(o){return(typeof o=="string"?o:""+o).replace(MP,`
9
+ `).replace(IP,"")}function n_(o,a){return a=t_(a),t_(o)===a}function un(o,a,u,h,v,w){switch(u){case"children":typeof h=="string"?a==="body"||a==="textarea"&&h===""||Gl(o,h):(typeof h=="number"||typeof h=="bigint")&&a!=="body"&&Gl(o,""+h);break;case"className":gh(o,"class",h);break;case"tabIndex":gh(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":gh(o,u,h);break;case"style":nR(o,h,w);break;case"data":if(a!=="object"){gh(o,"data",h);break}case"src":case"href":if(h===""&&(a!=="a"||u!=="href")){o.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(u);break}h=vh(""+h),o.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){o.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(u==="formAction"?(a!=="input"&&un(o,a,"name",v.name,v,null),un(o,a,"formEncType",v.formEncType,v,null),un(o,a,"formMethod",v.formMethod,v,null),un(o,a,"formTarget",v.formTarget,v,null)):(un(o,a,"encType",v.encType,v,null),un(o,a,"method",v.method,v,null),un(o,a,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(u);break}h=vh(""+h),o.setAttribute(u,h);break;case"onClick":h!=null&&(o.onclick=Hi);break;case"onScroll":h!=null&&Dt("scroll",o);break;case"onScrollEnd":h!=null&&Dt("scrollend",o);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"multiple":o.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":o.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){o.removeAttribute("xlink:href");break}u=vh(""+h),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(u,""+h):o.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(u,""):o.removeAttribute(u);break;case"capture":case"download":h===!0?o.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(u,h):o.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?o.setAttribute(u,h):o.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?o.removeAttribute(u):o.setAttribute(u,h);break;case"popover":Dt("beforetoggle",o),Dt("toggle",o),ph(o,"popover",h);break;case"xlinkActuate":Bi(o,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Bi(o,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Bi(o,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Bi(o,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Bi(o,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Bi(o,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Bi(o,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Bi(o,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Bi(o,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":ph(o,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=iL.get(u)||u,ph(o,u,h))}}function yy(o,a,u,h,v,w){switch(u){case"style":nR(o,h,w);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"children":typeof h=="string"?Gl(o,h):(typeof h=="number"||typeof h=="bigint")&&Gl(o,""+h);break;case"onScroll":h!=null&&Dt("scroll",o);break;case"onScrollEnd":h!=null&&Dt("scrollend",o);break;case"onClick":h!=null&&(o.onclick=Hi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yw.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),a=u.slice(2,v?u.length-7:void 0),w=o[fr]||null,w=w!=null?w[u]:null,typeof w=="function"&&o.removeEventListener(a,w,v),typeof h=="function")){typeof w!="function"&&w!==null&&(u in o?o[u]=null:o.hasAttribute(u)&&o.removeAttribute(u)),o.addEventListener(a,h,v);break e}u in o?o[u]=h:h===!0?o.setAttribute(u,""):ph(o,u,h)}}}function gr(o,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Dt("error",o),Dt("load",o);var h=!1,v=!1,w;for(w in u)if(u.hasOwnProperty(w)){var I=u[w];if(I!=null)switch(w){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:un(o,a,w,I,u,null)}}v&&un(o,a,"srcSet",u.srcSet,u,null),h&&un(o,a,"src",u.src,u,null);return;case"input":Dt("invalid",o);var N=w=I=v=null,W=null,pe=null;for(h in u)if(u.hasOwnProperty(h)){var _e=u[h];if(_e!=null)switch(h){case"name":v=_e;break;case"type":I=_e;break;case"checked":W=_e;break;case"defaultChecked":pe=_e;break;case"value":w=_e;break;case"defaultValue":N=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,a));break;default:un(o,a,h,_e,u,null)}}Jw(o,w,N,W,pe,I,v,!1);return;case"select":Dt("invalid",o),h=I=w=null;for(v in u)if(u.hasOwnProperty(v)&&(N=u[v],N!=null))switch(v){case"value":w=N;break;case"defaultValue":I=N;break;case"multiple":h=N;default:un(o,a,v,N,u,null)}a=w,u=I,o.multiple=!!h,a!=null?ql(o,!!h,a,!1):u!=null&&ql(o,!!h,u,!0);return;case"textarea":Dt("invalid",o),w=v=h=null;for(I in u)if(u.hasOwnProperty(I)&&(N=u[I],N!=null))switch(I){case"value":h=N;break;case"defaultValue":v=N;break;case"children":w=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:un(o,a,I,N,u,null)}eR(o,h,v,w);return;case"option":for(W in u)if(u.hasOwnProperty(W)&&(h=u[W],h!=null))switch(W){case"selected":o.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:un(o,a,W,h,u,null)}return;case"dialog":Dt("beforetoggle",o),Dt("toggle",o),Dt("cancel",o),Dt("close",o);break;case"iframe":case"object":Dt("load",o);break;case"video":case"audio":for(h=0;h<Tf.length;h++)Dt(Tf[h],o);break;case"image":Dt("error",o),Dt("load",o);break;case"details":Dt("toggle",o);break;case"embed":case"source":case"link":Dt("error",o),Dt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in u)if(u.hasOwnProperty(pe)&&(h=u[pe],h!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:un(o,a,pe,h,u,null)}return;default:if(D0(a)){for(_e in u)u.hasOwnProperty(_e)&&(h=u[_e],h!==void 0&&yy(o,a,_e,h,u,void 0));return}}for(N in u)u.hasOwnProperty(N)&&(h=u[N],h!=null&&un(o,a,N,h,u,null))}function DP(o,a,u,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,w=null,I=null,N=null,W=null,pe=null,_e=null;for(Se in u){var Ae=u[Se];if(u.hasOwnProperty(Se)&&Ae!=null)switch(Se){case"checked":break;case"value":break;case"defaultValue":W=Ae;default:h.hasOwnProperty(Se)||un(o,a,Se,null,h,Ae)}}for(var ge in h){var Se=h[ge];if(Ae=u[ge],h.hasOwnProperty(ge)&&(Se!=null||Ae!=null))switch(ge){case"type":w=Se;break;case"name":v=Se;break;case"checked":pe=Se;break;case"defaultChecked":_e=Se;break;case"value":I=Se;break;case"defaultValue":N=Se;break;case"children":case"dangerouslySetInnerHTML":if(Se!=null)throw Error(r(137,a));break;default:Se!==Ae&&un(o,a,ge,Se,h,Ae)}}M0(o,I,N,W,pe,_e,w,v);return;case"select":Se=I=N=ge=null;for(w in u)if(W=u[w],u.hasOwnProperty(w)&&W!=null)switch(w){case"value":break;case"multiple":Se=W;default:h.hasOwnProperty(w)||un(o,a,w,null,h,W)}for(v in h)if(w=h[v],W=u[v],h.hasOwnProperty(v)&&(w!=null||W!=null))switch(v){case"value":ge=w;break;case"defaultValue":N=w;break;case"multiple":I=w;default:w!==W&&un(o,a,v,w,h,W)}a=N,u=I,h=Se,ge!=null?ql(o,!!u,ge,!1):!!h!=!!u&&(a!=null?ql(o,!!u,a,!0):ql(o,!!u,u?[]:"",!1));return;case"textarea":Se=ge=null;for(N in u)if(v=u[N],u.hasOwnProperty(N)&&v!=null&&!h.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:un(o,a,N,null,h,v)}for(I in h)if(v=h[I],w=u[I],h.hasOwnProperty(I)&&(v!=null||w!=null))switch(I){case"value":ge=v;break;case"defaultValue":Se=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==w&&un(o,a,I,v,h,w)}Zw(o,ge,Se);return;case"option":for(var Xe in u)if(ge=u[Xe],u.hasOwnProperty(Xe)&&ge!=null&&!h.hasOwnProperty(Xe))switch(Xe){case"selected":o.selected=!1;break;default:un(o,a,Xe,null,h,ge)}for(W in h)if(ge=h[W],Se=u[W],h.hasOwnProperty(W)&&ge!==Se&&(ge!=null||Se!=null))switch(W){case"selected":o.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:un(o,a,W,ge,h,Se)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ot in u)ge=u[ot],u.hasOwnProperty(ot)&&ge!=null&&!h.hasOwnProperty(ot)&&un(o,a,ot,null,h,ge);for(pe in h)if(ge=h[pe],Se=u[pe],h.hasOwnProperty(pe)&&ge!==Se&&(ge!=null||Se!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,a));break;default:un(o,a,pe,ge,h,Se)}return;default:if(D0(a)){for(var cn in u)ge=u[cn],u.hasOwnProperty(cn)&&ge!==void 0&&!h.hasOwnProperty(cn)&&yy(o,a,cn,void 0,h,ge);for(_e in h)ge=h[_e],Se=u[_e],!h.hasOwnProperty(_e)||ge===Se||ge===void 0&&Se===void 0||yy(o,a,_e,ge,h,Se);return}}for(var se in u)ge=u[se],u.hasOwnProperty(se)&&ge!=null&&!h.hasOwnProperty(se)&&un(o,a,se,null,h,ge);for(Ae in h)ge=h[Ae],Se=u[Ae],!h.hasOwnProperty(Ae)||ge===Se||ge==null&&Se==null||un(o,a,Ae,ge,h,Se)}function r_(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function LP(){if(typeof performance.getEntriesByType=="function"){for(var o=0,a=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var v=u[h],w=v.transferSize,I=v.initiatorType,N=v.duration;if(w&&N&&r_(I)){for(I=0,N=v.responseEnd,h+=1;h<u.length;h++){var W=u[h],pe=W.startTime;if(pe>N)break;var _e=W.transferSize,Ae=W.initiatorType;_e&&r_(Ae)&&(W=W.responseEnd,I+=_e*(W<N?1:(N-pe)/(W-pe)))}if(--h,a+=8*(w+I)/(v.duration/1e3),o++,10<o)break}}if(0<o)return a/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var by=null,Sy=null;function dp(o){return o.nodeType===9?o:o.ownerDocument}function o_(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function i_(o,a){if(o===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&a==="foreignObject"?0:o}function Ey(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var wy=null;function PP(){var o=window.event;return o&&o.type==="popstate"?o===wy?!1:(wy=o,!0):(wy=null,!1)}var s_=typeof setTimeout=="function"?setTimeout:void 0,kP=typeof clearTimeout=="function"?clearTimeout:void 0,a_=typeof Promise=="function"?Promise:void 0,NP=typeof queueMicrotask=="function"?queueMicrotask:typeof a_<"u"?function(o){return a_.resolve(null).then(o).catch(FP)}:s_;function FP(o){setTimeout(function(){throw o})}function Vs(o){return o==="head"}function l_(o,a){var u=a,h=0;do{var v=u.nextSibling;if(o.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(h===0){o.removeChild(v),Ru(a);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")Of(o.ownerDocument.documentElement);else if(u==="head"){u=o.ownerDocument.head,Of(u);for(var w=u.firstChild;w;){var I=w.nextSibling,N=w.nodeName;w[Gc]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&w.rel.toLowerCase()==="stylesheet"||u.removeChild(w),w=I}}else u==="body"&&Of(o.ownerDocument.body);u=v}while(u);Ru(a)}function u_(o,a){var u=o;o=0;do{var h=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(o===0)break;o--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||o++;u=h}while(u)}function Ry(o){var a=o.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Ry(u),A0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}o.removeChild(u)}}function zP(o,a,u,h){for(;o.nodeType===1;){var v=u;if(o.nodeName.toLowerCase()!==a.toLowerCase()){if(!h&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(h){if(!o[Gc])switch(a){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(w=o.getAttribute("rel"),w==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(w!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(w=o.getAttribute("src"),(w!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&w&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(a==="input"&&o.type==="hidden"){var w=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===w)return o}else return o;if(o=Io(o.nextSibling),o===null)break}return null}function BP(o,a,u){if(a==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=Io(o.nextSibling),o===null))return null;return o}function c_(o,a){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=Io(o.nextSibling),o===null))return null;return o}function xy(o){return o.data==="$?"||o.data==="$~"}function Cy(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function HP(o,a){var u=o.ownerDocument;if(o.data==="$~")o._reactRetry=a;else if(o.data!=="$?"||u.readyState!=="loading")a();else{var h=function(){a(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),o._reactRetry=h}}function Io(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return o}var _y=null;function f_(o){o=o.nextSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"||u==="/&"){if(a===0)return Io(o.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}o=o.nextSibling}return null}function d_(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return o;a--}else u!=="/$"&&u!=="/&"||a++}o=o.previousSibling}return null}function h_(o,a,u){switch(a=dp(u),o){case"html":if(o=a.documentElement,!o)throw Error(r(452));return o;case"head":if(o=a.head,!o)throw Error(r(453));return o;case"body":if(o=a.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Of(o){for(var a=o.attributes;a.length;)o.removeAttributeNode(a[0]);A0(o)}var Do=new Map,p_=new Set;function hp(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ns=q.d;q.d={f:UP,r:VP,D:jP,C:$P,L:qP,m:GP,X:KP,S:YP,M:XP};function UP(){var o=ns.f(),a=op();return o||a}function VP(o){var a=Vl(o);a!==null&&a.tag===5&&a.type==="form"?Ix(a):ns.r(o)}var Su=typeof document>"u"?null:document;function g_(o,a,u){var h=Su;if(h&&typeof a=="string"&&a){var v=xo(a);v='link[rel="'+o+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),p_.has(v)||(p_.add(v),o={rel:o,crossOrigin:u,href:a},h.querySelector(v)===null&&(a=h.createElement("link"),gr(a,"link",o),or(a),h.head.appendChild(a)))}}function jP(o){ns.D(o),g_("dns-prefetch",o,null)}function $P(o,a){ns.C(o,a),g_("preconnect",o,a)}function qP(o,a,u){ns.L(o,a,u);var h=Su;if(h&&o&&a){var v='link[rel="preload"][as="'+xo(a)+'"]';a==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+xo(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+xo(u.imageSizes)+'"]')):v+='[href="'+xo(o)+'"]';var w=v;switch(a){case"style":w=Eu(o);break;case"script":w=wu(o)}Do.has(w)||(o=g({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:o,as:a},u),Do.set(w,o),h.querySelector(v)!==null||a==="style"&&h.querySelector(Mf(w))||a==="script"&&h.querySelector(If(w))||(a=h.createElement("link"),gr(a,"link",o),or(a),h.head.appendChild(a)))}}function GP(o,a){ns.m(o,a);var u=Su;if(u&&o){var h=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+xo(h)+'"][href="'+xo(o)+'"]',w=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=wu(o)}if(!Do.has(w)&&(o=g({rel:"modulepreload",href:o},a),Do.set(w,o),u.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(If(w)))return}h=u.createElement("link"),gr(h,"link",o),or(h),u.head.appendChild(h)}}}function YP(o,a,u){ns.S(o,a,u);var h=Su;if(h&&o){var v=jl(h).hoistableStyles,w=Eu(o);a=a||"default";var I=v.get(w);if(!I){var N={loading:0,preload:null};if(I=h.querySelector(Mf(w)))N.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":a},u),(u=Do.get(w))&&Ty(o,u);var W=I=h.createElement("link");or(W),gr(W,"link",o),W._p=new Promise(function(pe,_e){W.onload=pe,W.onerror=_e}),W.addEventListener("load",function(){N.loading|=1}),W.addEventListener("error",function(){N.loading|=2}),N.loading|=4,pp(I,a,h)}I={type:"stylesheet",instance:I,count:1,state:N},v.set(w,I)}}}function KP(o,a){ns.X(o,a);var u=Su;if(u&&o){var h=jl(u).hoistableScripts,v=wu(o),w=h.get(v);w||(w=u.querySelector(If(v)),w||(o=g({src:o,async:!0},a),(a=Do.get(v))&&Ay(o,a),w=u.createElement("script"),or(w),gr(w,"link",o),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(v,w))}}function XP(o,a){ns.M(o,a);var u=Su;if(u&&o){var h=jl(u).hoistableScripts,v=wu(o),w=h.get(v);w||(w=u.querySelector(If(v)),w||(o=g({src:o,async:!0,type:"module"},a),(a=Do.get(v))&&Ay(o,a),w=u.createElement("script"),or(w),gr(w,"link",o),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(v,w))}}function m_(o,a,u,h){var v=(v=ne.current)?hp(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=Eu(u.href),u=jl(v).hoistableStyles,h=u.get(a),h||(h={type:"style",instance:null,count:0,state:null},u.set(a,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){o=Eu(u.href);var w=jl(v).hoistableStyles,I=w.get(o);if(I||(v=v.ownerDocument||v,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(o,I),(w=v.querySelector(Mf(o)))&&!w._p&&(I.instance=w,I.state.loading=5),Do.has(o)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Do.set(o,u),w||WP(v,o,u,I.state))),a&&h===null)throw Error(r(528,""));return I}if(a&&h!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=wu(u),u=jl(v).hoistableScripts,h=u.get(a),h||(h={type:"script",instance:null,count:0,state:null},u.set(a,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Eu(o){return'href="'+xo(o)+'"'}function Mf(o){return'link[rel="stylesheet"]['+o+"]"}function v_(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function WP(o,a,u,h){o.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=o.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),gr(a,"link",u),or(a),o.head.appendChild(a))}function wu(o){return'[src="'+xo(o)+'"]'}function If(o){return"script[async]"+o}function y_(o,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var h=o.querySelector('style[data-href~="'+xo(u.href)+'"]');if(h)return a.instance=h,or(h),h;var v=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(o.ownerDocument||o).createElement("style"),or(h),gr(h,"style",v),pp(h,u.precedence,o),a.instance=h;case"stylesheet":v=Eu(u.href);var w=o.querySelector(Mf(v));if(w)return a.state.loading|=4,a.instance=w,or(w),w;h=v_(u),(v=Do.get(v))&&Ty(h,v),w=(o.ownerDocument||o).createElement("link"),or(w);var I=w;return I._p=new Promise(function(N,W){I.onload=N,I.onerror=W}),gr(w,"link",h),a.state.loading|=4,pp(w,u.precedence,o),a.instance=w;case"script":return w=wu(u.src),(v=o.querySelector(If(w)))?(a.instance=v,or(v),v):(h=u,(v=Do.get(w))&&(h=g({},u),Ay(h,v)),o=o.ownerDocument||o,v=o.createElement("script"),or(v),gr(v,"link",h),o.head.appendChild(v),a.instance=v);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(h=a.instance,a.state.loading|=4,pp(h,u.precedence,o));return a.instance}function pp(o,a,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,w=v,I=0;I<h.length;I++){var N=h[I];if(N.dataset.precedence===a)w=N;else if(w!==v)break}w?w.parentNode.insertBefore(o,w.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(o,a.firstChild))}function Ty(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.title==null&&(o.title=a.title)}function Ay(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.integrity==null&&(o.integrity=a.integrity)}var gp=null;function b_(o,a,u){if(gp===null){var h=new Map,v=gp=new Map;v.set(u,h)}else v=gp,h=v.get(u),h||(h=new Map,v.set(u,h));if(h.has(o))return h;for(h.set(o,null),u=u.getElementsByTagName(o),v=0;v<u.length;v++){var w=u[v];if(!(w[Gc]||w[Qn]||o==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var I=w.getAttribute(a)||"";I=o+I;var N=h.get(I);N?N.push(w):h.set(I,[w])}}return h}function S_(o,a,u){o=o.ownerDocument||o,o.head.insertBefore(u,a==="title"?o.querySelector("head > title"):null)}function QP(o,a,u){if(u===1||a.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return o=a.disabled,typeof a.precedence=="string"&&o==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function E_(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function JP(o,a,u,h){if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=Eu(h.href),w=a.querySelector(Mf(v));if(w){a=w._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o.count++,o=mp.bind(o),a.then(o,o)),u.state.loading|=4,u.instance=w,or(w);return}w=a.ownerDocument||a,h=v_(h),(v=Do.get(v))&&Ty(h,v),w=w.createElement("link"),or(w);var I=w;I._p=new Promise(function(N,W){I.onload=N,I.onerror=W}),gr(w,"link",h),u.instance=w}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(o.count++,u=mp.bind(o),a.addEventListener("load",u),a.addEventListener("error",u))}}var Oy=0;function ZP(o,a){return o.stylesheets&&o.count===0&&yp(o,o.stylesheets),0<o.count||0<o.imgCount?function(u){var h=setTimeout(function(){if(o.stylesheets&&yp(o,o.stylesheets),o.unsuspend){var w=o.unsuspend;o.unsuspend=null,w()}},6e4+a);0<o.imgBytes&&Oy===0&&(Oy=62500*LP());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&yp(o,o.stylesheets),o.unsuspend)){var w=o.unsuspend;o.unsuspend=null,w()}},(o.imgBytes>Oy?50:800)+a);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function mp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yp(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var vp=null;function yp(o,a){o.stylesheets=null,o.unsuspend!==null&&(o.count++,vp=new Map,a.forEach(ek,o),vp=null,mp.call(o))}function ek(o,a){if(!(a.state.loading&4)){var u=vp.get(o);if(u)var h=u.get(null);else{u=new Map,vp.set(o,u);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<v.length;w++){var I=v[w];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(u.set(I.dataset.precedence,I),h=I)}h&&u.set(null,h)}v=a.instance,I=v.getAttribute("data-precedence"),w=u.get(I)||h,w===h&&u.set(null,v),u.set(I,v),this.count++,h=mp.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),w?w.parentNode.insertBefore(v,w.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),a.state.loading|=4}}var Df={$$typeof:_,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function tk(o,a,u,h,v,w,I,N,W){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ct(0),this.hiddenUpdates=Ct(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=w,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function w_(o,a,u,h,v,w,I,N,W,pe,_e,Ae){return o=new tk(o,a,u,I,W,pe,_e,Ae,N),a=1,w===!0&&(a|=24),w=io(3,null,null,a),o.current=w,w.stateNode=o,a=lv(),a.refCount++,o.pooledCache=a,a.refCount++,w.memoizedState={element:h,isDehydrated:u,cache:a},dv(w),o}function R_(o){return o?(o=Zl,o):Zl}function x_(o,a,u,h,v,w){v=R_(v),h.context===null?h.context=v:h.pendingContext=v,h=Is(a),h.payload={element:u},w=w===void 0?null:w,w!==null&&(h.callback=w),u=Ds(o,h,a),u!==null&&(Vr(u,o,a),cf(u,o,a))}function C_(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<a?u:a}}function My(o,a){C_(o,a),(o=o.alternate)&&C_(o,a)}function __(o){if(o.tag===13||o.tag===31){var a=Fa(o,67108864);a!==null&&Vr(a,o,67108864),My(o,67108864)}}function T_(o){if(o.tag===13||o.tag===31){var a=co();a=cr(a);var u=Fa(o,a);u!==null&&Vr(u,o,a),My(o,a)}}var bp=!0;function nk(o,a,u,h){var v=P.T;P.T=null;var w=q.p;try{q.p=2,Iy(o,a,u,h)}finally{q.p=w,P.T=v}}function rk(o,a,u,h){var v=P.T;P.T=null;var w=q.p;try{q.p=8,Iy(o,a,u,h)}finally{q.p=w,P.T=v}}function Iy(o,a,u,h){if(bp){var v=Dy(h);if(v===null)vy(o,a,h,Sp,u),O_(o,h);else if(ik(v,o,a,u,h))h.stopPropagation();else if(O_(o,h),a&4&&-1<ok.indexOf(o)){for(;v!==null;){var w=Vl(v);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var I=bt(w.pendingLanes);if(I!==0){var N=w;for(N.pendingLanes|=2,N.entangledLanes|=2;I;){var W=1<<31-He(I);N.entanglements[1]|=W,I&=~W}di(w),(Gt&6)===0&&(np=ae()+500,_f(0))}}break;case 31:case 13:N=Fa(w,2),N!==null&&Vr(N,w,2),op(),My(w,2)}if(w=Dy(h),w===null&&vy(o,a,h,Sp,u),w===v)break;v=w}v!==null&&h.stopPropagation()}else vy(o,a,h,null,u)}}function Dy(o){return o=P0(o),Ly(o)}var Sp=null;function Ly(o){if(Sp=null,o=Ul(o),o!==null){var a=s(o);if(a===null)o=null;else{var u=a.tag;if(u===13){if(o=l(a),o!==null)return o;o=null}else if(u===31){if(o=c(a),o!==null)return o;o=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Sp=o,null}function A_(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case Oe:return 2;case Be:return 8;case Fe:case Ke:return 32;case it:return 268435456;default:return 32}default:return 32}}var Py=!1,js=null,$s=null,qs=null,Lf=new Map,Pf=new Map,Gs=[],ok="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function O_(o,a){switch(o){case"focusin":case"focusout":js=null;break;case"dragenter":case"dragleave":$s=null;break;case"mouseover":case"mouseout":qs=null;break;case"pointerover":case"pointerout":Lf.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pf.delete(a.pointerId)}}function kf(o,a,u,h,v,w){return o===null||o.nativeEvent!==w?(o={blockedOn:a,domEventName:u,eventSystemFlags:h,nativeEvent:w,targetContainers:[v]},a!==null&&(a=Vl(a),a!==null&&__(a)),o):(o.eventSystemFlags|=h,a=o.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),o)}function ik(o,a,u,h,v){switch(a){case"focusin":return js=kf(js,o,a,u,h,v),!0;case"dragenter":return $s=kf($s,o,a,u,h,v),!0;case"mouseover":return qs=kf(qs,o,a,u,h,v),!0;case"pointerover":var w=v.pointerId;return Lf.set(w,kf(Lf.get(w)||null,o,a,u,h,v)),!0;case"gotpointercapture":return w=v.pointerId,Pf.set(w,kf(Pf.get(w)||null,o,a,u,h,v)),!0}return!1}function M_(o){var a=Ul(o.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=l(u),a!==null){o.blockedOn=a,ro(o.priority,function(){T_(u)});return}}else if(a===31){if(a=c(u),a!==null){o.blockedOn=a,ro(o.priority,function(){T_(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){o.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Ep(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var u=Dy(o.nativeEvent);if(u===null){u=o.nativeEvent;var h=new u.constructor(u.type,u);L0=h,u.target.dispatchEvent(h),L0=null}else return a=Vl(u),a!==null&&__(a),o.blockedOn=u,!1;a.shift()}return!0}function I_(o,a,u){Ep(o)&&u.delete(a)}function sk(){Py=!1,js!==null&&Ep(js)&&(js=null),$s!==null&&Ep($s)&&($s=null),qs!==null&&Ep(qs)&&(qs=null),Lf.forEach(I_),Pf.forEach(I_)}function wp(o,a){o.blockedOn===a&&(o.blockedOn=null,Py||(Py=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sk)))}var Rp=null;function D_(o){Rp!==o&&(Rp=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Rp===o&&(Rp=null);for(var a=0;a<o.length;a+=3){var u=o[a],h=o[a+1],v=o[a+2];if(typeof h!="function"){if(Ly(h||u)===null)continue;break}var w=Vl(u);w!==null&&(o.splice(a,3),a-=3,Dv(w,{pending:!0,data:v,method:u.method,action:h},h,v))}}))}function Ru(o){function a(W){return wp(W,o)}js!==null&&wp(js,o),$s!==null&&wp($s,o),qs!==null&&wp(qs,o),Lf.forEach(a),Pf.forEach(a);for(var u=0;u<Gs.length;u++){var h=Gs[u];h.blockedOn===o&&(h.blockedOn=null)}for(;0<Gs.length&&(u=Gs[0],u.blockedOn===null);)M_(u),u.blockedOn===null&&Gs.shift();if(u=(o.ownerDocument||o).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var v=u[h],w=u[h+1],I=v[fr]||null;if(typeof w=="function")I||D_(u);else if(I){var N=null;if(w&&w.hasAttribute("formAction")){if(v=w,I=w[fr]||null)N=I.formAction;else if(Ly(v)!==null)continue}else N=I.action;typeof N=="function"?u[h+1]=N:(u.splice(h,3),h-=3),D_(u)}}}function L_(){function o(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(I){return v=I})},focusReset:"manual",scroll:"manual"})}function a(){v!==null&&(v(),v=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),v!==null&&(v(),v=null)}}}function ky(o){this._internalRoot=o}xp.prototype.render=ky.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,h=co();x_(u,h,o,a,null,null)},xp.prototype.unmount=ky.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;x_(o.current,2,null,o,null,null),op(),a[zi]=null}};function xp(o){this._internalRoot=o}xp.prototype.unstable_scheduleHydration=function(o){if(o){var a=Vn();o={blockedOn:null,target:o,priority:a};for(var u=0;u<Gs.length&&a!==0&&a<Gs[u].priority;u++);Gs.splice(u,0,o),u===0&&M_(o)}};var P_=t.version;if(P_!=="19.2.3")throw Error(r(527,P_,"19.2.3"));q.findDOMNode=function(o){var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(a),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var ak={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cp.isDisabled&&Cp.supportsFiber)try{ut=Cp.inject(ak),he=Cp}catch{}}return Ff.createRoot=function(o,a){if(!i(o))throw Error(r(299));var u=!1,h="",v=Ux,w=Vx,I=jx;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(I=a.onRecoverableError)),a=w_(o,1,!1,null,null,u,h,null,v,w,I,L_),o[zi]=a.current,my(o),new ky(a)},Ff.hydrateRoot=function(o,a,u){if(!i(o))throw Error(r(299));var h=!1,v="",w=Ux,I=Vx,N=jx,W=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(I=u.onCaughtError),u.onRecoverableError!==void 0&&(N=u.onRecoverableError),u.formState!==void 0&&(W=u.formState)),a=w_(o,1,!0,a,u??null,h,v,W,w,I,N,L_),a.context=R_(null),u=a.current,h=co(),h=cr(h),v=Is(h),v.callback=null,Ds(u,v,h),u=h,a.current.lanes=u,en(a,u),di(a),o[zi]=a.current,my(o),new xp(a)},Ff.version="19.2.3",Ff}var G_;function bk(){if(G_)return By.exports;G_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),By.exports=yk(),By.exports}var wee=bk();var Y_="popstate";function Sk(e={}){function t(r,i){let{pathname:s,search:l,hash:c}=r.location;return gb("",{pathname:s,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:sd(i)}return wk(t,n,null,e)}function An(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ek(){return Math.random().toString(36).substring(2,10)}function K_(e,t){return{usr:e.state,key:e.key,idx:t}}function gb(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?vc(t):t,state:n,key:t&&t.key||r||Ek()}}function sd({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function vc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function wk(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,c="POP",f=null,d=p();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function p(){return(l.state||{idx:null}).idx}function g(){c="POP";let x=p(),C=x==null?null:x-d;d=x,f&&f({action:c,location:b.location,delta:C})}function m(x,C){c="PUSH";let R=gb(b.location,x,C);d=p()+1;let _=K_(R,d),O=b.createHref(R);try{l.pushState(_,"",O)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(O)}s&&f&&f({action:c,location:b.location,delta:1})}function y(x,C){c="REPLACE";let R=gb(b.location,x,C);d=p();let _=K_(R,d),O=b.createHref(R);l.replaceState(_,"",O),s&&f&&f({action:c,location:b.location,delta:0})}function E(x){return Rk(x)}let b={get action(){return c},get location(){return e(i,l)},listen(x){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(Y_,g),f=x,()=>{i.removeEventListener(Y_,g),f=null}},createHref(x){return t(i,x)},createURL:E,encodeLocation(x){let C=E(x);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:y,go(x){return l.go(x)}};return b}function Rk(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),An(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:sd(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function hM(e,t,n="/"){return xk(e,t,n,!1)}function xk(e,t,n,r){let i=typeof t=="string"?vc(t):t,s=ms(i.pathname||"/",n);if(s==null)return null;let l=pM(e);Ck(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let d=Nk(s);c=Pk(l[f],d,r)}return c}function pM(e,t=[],n=[],r="",i=!1){let s=(l,c,f=i,d)=>{let p={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&f)return;An(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let g=hs([r,p.relativePath]),m=n.concat(p);l.children&&l.children.length>0&&(An(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),pM(l.children,t,m,g,f)),!(l.path==null&&!l.index)&&t.push({path:g,score:Dk(g,l.index),routesMeta:m})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,c);else for(let d of gM(l.path))s(l,c,!0,d)}),t}function gM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=gM(r.join("/")),c=[];return c.push(...l.map(f=>f===""?s:[s,f].join("/"))),i&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function Ck(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lk(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var _k=/^:[\w-]+$/,Tk=3,Ak=2,Ok=1,Mk=10,Ik=-2,X_=e=>e==="*";function Dk(e,t){let n=e.split("/"),r=n.length;return n.some(X_)&&(r+=Ik),t&&(r+=Ak),n.filter(i=>!X_(i)).reduce((i,s)=>i+(_k.test(s)?Tk:s===""?Ok:Mk),r)}function Lk(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Pk(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=Dg({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},p),m=f.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=Dg({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(i,g.params),l.push({params:i,pathname:hs([s,g.pathname]),pathnameBase:Hk(hs([s,g.pathnameBase])),route:m}),g.pathnameBase!=="/"&&(s=hs([s,g.pathnameBase]))}return l}function Dg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kk(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],l=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:g},m)=>{if(p==="*"){let E=c[m]||"";l=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const y=c[m];return g&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function kk(e,t=!1,n=!0){yo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Nk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ms(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)||"/"}var mM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fk=e=>mM.test(e);function zk(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?vc(e):e,s;if(n)if(Fk(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),yo(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${n}`)}n.startsWith("/")?s=W_(n.substring(1),"/"):s=W_(n,t)}else s=t;return{pathname:s,search:Uk(r),hash:Vk(i)}}function W_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function jy(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 Bk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function WS(e){let t=Bk(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function QS(e,t,n,r=!1){let i;typeof e=="string"?i=vc(e):(i={...e},An(!i.pathname||!i.pathname.includes("?"),jy("?","pathname","search",i)),An(!i.pathname||!i.pathname.includes("#"),jy("#","pathname","hash",i)),An(!i.search||!i.search.includes("#"),jy("#","search","hash",i)));let s=e===""||i.pathname==="",l=s?"/":i.pathname,c;if(l==null)c=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),g-=1;i.pathname=m.join("/")}c=g>=0?t[g]:"/"}let f=zk(i,c),d=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||p)&&(f.pathname+="/"),f}var hs=e=>e.join("/").replace(/\/\/+/g,"/"),Hk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Uk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,jk=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function $k(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function qk(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yM(e,t){let n=e;if(typeof n!="string"||!mM.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(vM)try{let s=new URL(window.location.href),l=n.startsWith("//")?new URL(s.protocol+n):new URL(n),c=ms(l.pathname,t);l.origin===s.origin&&c!=null?n=c+l.search+l.hash:i=!0}catch{yo(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bM=["POST","PUT","PATCH","DELETE"];new Set(bM);var Gk=["GET",...bM];new Set(Gk);var yc=S.createContext(null);yc.displayName="DataRouter";var Sm=S.createContext(null);Sm.displayName="DataRouterState";var Yk=S.createContext(!1),SM=S.createContext({isTransitioning:!1});SM.displayName="ViewTransition";var Kk=S.createContext(new Map);Kk.displayName="Fetchers";var Xk=S.createContext(null);Xk.displayName="Await";var Eo=S.createContext(null);Eo.displayName="Navigation";var bc=S.createContext(null);bc.displayName="Location";var ii=S.createContext({outlet:null,matches:[],isDataRoute:!1});ii.displayName="Route";var JS=S.createContext(null);JS.displayName="RouteError";var EM="REACT_ROUTER_ERROR",Wk="REDIRECT",Qk="ROUTE_ERROR_RESPONSE";function Jk(e){if(e.startsWith(`${EM}:${Wk}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Zk(e){if(e.startsWith(`${EM}:${Qk}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new jk(t.status,t.statusText,t.data)}catch{}}function e8(e,{relative:t}={}){An(Sc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Eo),{hash:i,pathname:s,search:l}=Ld(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:hs([n,s])),r.createHref({pathname:c,search:l,hash:i})}function Sc(){return S.useContext(bc)!=null}function ws(){return An(Sc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(bc).location}function Ree(){return S.useContext(bc).navigationType}var wM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function RM(e){S.useContext(Eo).static||S.useLayoutEffect(e)}function ZS(){let{isDataRoute:e}=S.useContext(ii);return e?h8():t8()}function t8(){An(Sc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(yc),{basename:t,navigator:n}=S.useContext(Eo),{matches:r}=S.useContext(ii),{pathname:i}=ws(),s=JSON.stringify(WS(r)),l=S.useRef(!1);return RM(()=>{l.current=!0}),S.useCallback((f,d={})=>{if(yo(l.current,wM),!l.current)return;if(typeof f=="number"){n.go(f);return}let p=QS(f,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:hs([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,s,i,e])}S.createContext(null);function xee(){let{matches:e}=S.useContext(ii),t=e[e.length-1];return t?t.params:{}}function Ld(e,{relative:t}={}){let{matches:n}=S.useContext(ii),{pathname:r}=ws(),i=JSON.stringify(WS(n));return S.useMemo(()=>QS(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function n8(e,t){return xM(e,t)}function xM(e,t,n,r,i){var R;An(Sc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Eo),{matches:l}=S.useContext(ii),c=l[l.length-1],f=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",g=c&&c.route;{let _=g&&g.path||"";_M(d,!g||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+
11
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let m=ws(),y;if(t){let _=typeof t=="string"?vc(t):t;An(p==="/"||((R=_.pathname)==null?void 0:R.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${_.pathname}" was given in the \`location\` prop.`),y=_}else y=m;let E=y.pathname||"/",b=E;if(p!=="/"){let _=p.replace(/^\//,"").split("/");b="/"+E.replace(/^\//,"").split("/").slice(_.length).join("/")}let x=hM(e,{pathname:b});yo(g||x!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),yo(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=a8(x&&x.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:hs([p,s.encodeLocation?s.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?p:hs([p,s.encodeLocation?s.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),l,n,r,i);return t&&C?S.createElement(bc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},C):C}function r8(){let e=d8(),t=$k(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,l)}var o8=S.createElement(r8,null),CM=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Zk(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(ii.Provider,{value:this.props.routeContext},S.createElement(JS.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(i8,{error:e},t):t}};CM.contextType=Yk;var $y=new WeakMap;function i8({children:e,error:t}){let{basename:n}=S.useContext(Eo);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Jk(t.digest);if(r){let i=$y.get(t);if(i)throw i;let s=yM(r.location,n);if(vM&&!$y.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw $y.set(t,l),l}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function s8({routeContext:e,match:t,children:n}){let r=S.useContext(yc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ii.Provider,{value:e},n)}function a8(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=n==null?void 0:n.errors;if(l!=null){let p=s.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);An(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let c=!1,f=-1;if(n)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=p),g.route.id){let{loaderData:m,errors:y}=n,E=g.route.loader&&!m.hasOwnProperty(g.route.id)&&(!y||y[g.route.id]===void 0);if(g.route.lazy||E){c=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}let d=n&&r?(p,g)=>{var m,y;r(p,{location:n.location,params:((y=(m=n.matches)==null?void 0:m[0])==null?void 0:y.params)??{},unstable_pattern:qk(n.matches),errorInfo:g})}:void 0;return s.reduceRight((p,g,m)=>{let y,E=!1,b=null,x=null;n&&(y=l&&g.route.id?l[g.route.id]:void 0,b=g.route.errorElement||o8,c&&(f<0&&m===0?(_M("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,x=null):f===m&&(E=!0,x=g.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,m+1)),R=()=>{let _;return y?_=b:E?_=x:g.route.Component?_=S.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,S.createElement(s8,{match:g,routeContext:{outlet:p,matches:C,isDataRoute:n!=null},children:_})};return n&&(g.route.ErrorBoundary||g.route.errorElement||m===0)?S.createElement(CM,{location:n.location,revalidation:n.revalidation,component:b,error:y,children:R(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:d}):R()},null)}function eE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l8(e){let t=S.useContext(yc);return An(t,eE(e)),t}function u8(e){let t=S.useContext(Sm);return An(t,eE(e)),t}function c8(e){let t=S.useContext(ii);return An(t,eE(e)),t}function tE(e){let t=c8(e),n=t.matches[t.matches.length-1];return An(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function f8(){return tE("useRouteId")}function d8(){var r;let e=S.useContext(JS),t=u8("useRouteError"),n=tE("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function h8(){let{router:e}=l8("useNavigate"),t=tE("useNavigate"),n=S.useRef(!1);return RM(()=>{n.current=!0}),S.useCallback(async(i,s={})=>{yo(n.current,wM),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var Q_={};function _M(e,t,n){!t&&!Q_[e]&&(Q_[e]=!0,yo(!1,n))}S.memo(p8);function p8({routes:e,future:t,state:n,onError:r}){return xM(e,void 0,n,r,t)}function Cee({to:e,replace:t,state:n,relative:r}){An(Sc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=S.useContext(Eo);yo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=S.useContext(ii),{pathname:l}=ws(),c=ZS(),f=QS(e,WS(s),l,r==="path"),d=JSON.stringify(f);return S.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function g8(e){An(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function m8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:l}){An(!Sc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:c,navigator:i,static:s,unstable_useTransitions:l,future:{}}),[c,i,s,l]);typeof n=="string"&&(n=vc(n));let{pathname:d="/",search:p="",hash:g="",state:m=null,key:y="default"}=n,E=S.useMemo(()=>{let b=ms(d,c);return b==null?null:{location:{pathname:b,search:p,hash:g,state:m,key:y},navigationType:r}},[c,d,p,g,m,y,r]);return yo(E!=null,`<Router basename="${c}"> is not able to match the URL "${d}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:S.createElement(Eo.Provider,{value:f},S.createElement(bc.Provider,{children:t,value:E}))}function _ee({children:e,location:t}){return n8(mb(e),t)}function mb(e,t=[]){let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,mb(r.props.children,s));return}An(r.type===g8,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),An(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=mb(r.props.children,s)),n.push(l)}),n}var ag="get",lg="application/x-www-form-urlencoded";function Em(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function v8(e){return Em(e)&&e.tagName.toLowerCase()==="button"}function y8(e){return Em(e)&&e.tagName.toLowerCase()==="form"}function b8(e){return Em(e)&&e.tagName.toLowerCase()==="input"}function S8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function E8(e,t){return e.button===0&&(!t||t==="_self")&&!S8(e)}function vb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function w8(e,t){let n=vb(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}var Tp=null;function R8(){if(Tp===null)try{new FormData(document.createElement("form"),0),Tp=!1}catch{Tp=!0}return Tp}var x8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qy(e){return e!=null&&!x8.has(e)?(yo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lg}"`),null):e}function C8(e,t){let n,r,i,s,l;if(y8(e)){let c=e.getAttribute("action");r=c?ms(c,t):null,n=e.getAttribute("method")||ag,i=qy(e.getAttribute("enctype"))||lg,s=new FormData(e)}else if(v8(e)||b8(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?ms(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||ag,i=qy(e.getAttribute("formenctype"))||qy(c.getAttribute("enctype"))||lg,s=new FormData(c,e),!R8()){let{name:d,type:p,value:g}=e;if(p==="image"){let m=d?`${d}.`:"";s.append(`${m}x`,"0"),s.append(`${m}y`,"0")}else d&&s.append(d,g)}}else{if(Em(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ag,r=null,i=lg,l=e}return s&&i==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _8(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ms(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function T8(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function A8(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function O8(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let l=await T8(s,n);return l.links?l.links():[]}return[]}));return L8(r.flat(1).filter(A8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function J_(e,t,n,r,i,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var p;return n[d].pathname!==f.pathname||((p=n[d].route.path)==null?void 0:p.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||c(f,d)):s==="data"?t.filter((f,d)=>{var g;let p=r.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(l(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let m=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function M8(e,t,{includeHydrateFallback:n}={}){return I8(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function I8(e){return[...new Set(e)]}function D8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function L8(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(D8(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function TM(){let e=S.useContext(yc);return nE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function P8(){let e=S.useContext(Sm);return nE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rE=S.createContext(void 0);rE.displayName="FrameworkContext";function AM(){let e=S.useContext(rE);return nE(e,"You must render this element inside a <HydratedRouter> element"),e}function k8(e,t){let n=S.useContext(rE),[r,i]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:p,onTouchStart:g}=t,m=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let b=C=>{C.forEach(R=>{l(R.isIntersecting)})},x=new IntersectionObserver(b,{threshold:.5});return m.current&&x.observe(m.current),()=>{x.disconnect()}}},[e]),S.useEffect(()=>{if(r){let b=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(b)}}},[r]);let y=()=>{i(!0)},E=()=>{i(!1),l(!1)};return n?e!=="intent"?[s,m,{}]:[s,m,{onFocus:zf(c,y),onBlur:zf(f,E),onMouseEnter:zf(d,y),onMouseLeave:zf(p,E),onTouchStart:zf(g,y)}]:[!1,m,{}]}function zf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function N8({page:e,...t}){let{router:n}=TM(),r=S.useMemo(()=>hM(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(z8,{page:e,matches:r,...t}):null}function F8(e){let{manifest:t,routeModules:n}=AM(),[r,i]=S.useState([]);return S.useEffect(()=>{let s=!1;return O8(e,t,n).then(l=>{s||i(l)}),()=>{s=!0}},[e,t,n]),r}function z8({page:e,matches:t,...n}){let r=ws(),{manifest:i,routeModules:s}=AM(),{basename:l}=TM(),{loaderData:c,matches:f}=P8(),d=S.useMemo(()=>J_(e,t,f,i,r,"data"),[e,t,f,i,r]),p=S.useMemo(()=>J_(e,t,f,i,r,"assets"),[e,t,f,i,r]),g=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let E=new Set,b=!1;if(t.forEach(C=>{var _;let R=i.routes[C.route.id];!R||!R.hasLoader||(!d.some(O=>O.route.id===C.route.id)&&C.route.id in c&&((_=s[C.route.id])!=null&&_.shouldRevalidate)||R.hasClientLoader?b=!0:E.add(C.route.id))}),E.size===0)return[];let x=_8(e,l,"data");return b&&E.size>0&&x.searchParams.set("_routes",t.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[x.pathname+x.search]},[l,c,r,i,d,t,e,s]),m=S.useMemo(()=>M8(p,i),[p,i]),y=F8(p);return S.createElement(S.Fragment,null,g.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...n})),m.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...n})),y.map(({key:E,link:b})=>S.createElement("link",{key:E,nonce:n.nonce,...b})))}function B8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var H8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{H8&&(window.__reactRouterVersion="7.11.0")}catch{}function Tee({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=S.useRef();i.current==null&&(i.current=Sk({window:r,v5Compat:!0}));let s=i.current,[l,c]=S.useState({action:s.action,location:s.location}),f=S.useCallback(d=>{n===!1?c(d):S.startTransition(()=>c(d))},[n]);return S.useLayoutEffect(()=>s.listen(f),[s,f]),S.createElement(m8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,unstable_useTransitions:n})}var OM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,MM=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:l,state:c,target:f,to:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m,...y},E){let{basename:b,unstable_useTransitions:x}=S.useContext(Eo),C=typeof d=="string"&&OM.test(d),R=yM(d,b);d=R.to;let _=e8(d,{relative:i}),[O,T,M]=k8(r,y),A=$8(d,{replace:l,state:c,target:f,preventScrollReset:p,relative:i,viewTransition:g,unstable_defaultShouldRevalidate:m,unstable_useTransitions:x});function D(F){t&&t(F),F.defaultPrevented||A(F)}let L=S.createElement("a",{...y,...M,href:R.absoluteURL||_,onClick:R.isExternal||s?t:D,ref:B8(E,T),target:f,"data-discover":!C&&n==="render"?"true":void 0});return O&&!C?S.createElement(S.Fragment,null,L,S.createElement(N8,{page:_})):L});MM.displayName="Link";var U8=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:l,viewTransition:c,children:f,...d},p){let g=Ld(l,{relative:d.relative}),m=ws(),y=S.useContext(Sm),{navigator:E,basename:b}=S.useContext(Eo),x=y!=null&&X8(g)&&c===!0,C=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,R=m.pathname,_=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(R=R.toLowerCase(),_=_?_.toLowerCase():null,C=C.toLowerCase()),_&&b&&(_=ms(_,b)||_);const O=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let T=R===C||!i&&R.startsWith(C)&&R.charAt(O)==="/",M=_!=null&&(_===C||!i&&_.startsWith(C)&&_.charAt(C.length)==="/"),A={isActive:T,isPending:M,isTransitioning:x},D=T?t:void 0,L;typeof r=="function"?L=r(A):L=[r,T?"active":null,M?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(A):s;return S.createElement(MM,{...d,"aria-current":D,className:L,ref:p,style:F,to:l,viewTransition:c},typeof f=="function"?f(A):f)});U8.displayName="NavLink";var V8=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:l=ag,action:c,onSubmit:f,relative:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m,...y},E)=>{let{unstable_useTransitions:b}=S.useContext(Eo),x=Y8(),C=K8(c,{relative:d}),R=l.toLowerCase()==="get"?"get":"post",_=typeof c=="string"&&OM.test(c),O=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let M=T.nativeEvent.submitter,A=(M==null?void 0:M.getAttribute("formmethod"))||l,D=()=>x(M||T.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m});b&&n!==!1?S.startTransition(()=>D()):D()};return S.createElement("form",{ref:E,method:R,action:C,onSubmit:r?f:O,...y,"data-discover":!_&&e==="render"?"true":void 0})});V8.displayName="Form";function j8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function IM(e){let t=S.useContext(yc);return An(t,j8(e)),t}function $8(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let d=ZS(),p=ws(),g=Ld(e,{relative:s});return S.useCallback(m=>{if(E8(m,t)){m.preventDefault();let y=n!==void 0?n:sd(p)===sd(g),E=()=>d(e,{replace:y,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:c});f?S.startTransition(()=>E()):E()}},[p,d,g,n,r,t,e,i,s,l,c,f])}function Aee(e){yo(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(vb(e)),n=S.useRef(!1),r=ws(),i=S.useMemo(()=>w8(r.search,n.current?null:t.current),[r.search]),s=ZS(),l=S.useCallback((c,f)=>{const d=vb(typeof c=="function"?c(new URLSearchParams(i)):c);n.current=!0,s("?"+d,f)},[s,i]);return[i,l]}var q8=0,G8=()=>`__${String(++q8)}__`;function Y8(){let{router:e}=IM("useSubmit"),{basename:t}=S.useContext(Eo),n=f8(),r=e.fetch,i=e.navigate;return S.useCallback(async(s,l={})=>{let{action:c,method:f,encType:d,formData:p,body:g}=C8(s,t);if(l.navigate===!1){let m=l.fetcherKey||G8();await r(m,n,l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:g,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await i(l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:g,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,t,n])}function K8(e,{relative:t}={}){let{basename:n}=S.useContext(Eo),r=S.useContext(ii);An(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...Ld(e||".",{relative:t})},l=ws();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(p=>p==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let p=c.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:hs([n,s.pathname])),sd(s)}function X8(e,{relative:t}={}){let n=S.useContext(SM);An(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=IM("useViewTransitionState"),i=Ld(e,{relative:t});if(!n.isTransitioning)return!1;let s=ms(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ms(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Dg(i.pathname,l)!=null||Dg(i.pathname,s)!=null}const W8=()=>{},je=typeof document<"u"?S.useLayoutEffect:W8;function Zt(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const DM=S.createContext(void 0);function Pd(e){const t=S.useContext(DM);if(t===void 0&&!e)throw new Error(Zt(72));return t}const Z_={};function Cr(e,t){const n=S.useRef(Z_);return n.current===Z_&&(n.current=e(t)),n}const Q8=[];function oE(e){S.useEffect(e,Q8)}const Bf=0;class vs{constructor(){jt(this,"currentId",Bf);jt(this,"clear",()=>{this.currentId!==Bf&&(clearTimeout(this.currentId),this.currentId=Bf)});jt(this,"disposeEffect",()=>this.clear)}static create(){return new vs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Bf,n()},t)}isStarted(){return this.currentId!==Bf}}function Bn(){const e=Cr(vs.create).current;return oE(e.disposeEffect),e}function wm(){return typeof window<"u"}function xa(e){return iE(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Li(e){var t;return(t=(iE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iE(e){return wm()?e instanceof Node||e instanceof Ln(e).Node:!1}function Wt(e){return wm()?e instanceof Element||e instanceof Ln(e).Element:!1}function mn(e){return wm()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function yb(e){return!wm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}const J8=new Set(["inline","contents"]);function Ml(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!J8.has(i)}const Z8=new Set(["table","td","th"]);function eN(e){return Z8.has(xa(e))}const tN=[":popover-open",":modal"];function Rm(e){return tN.some(t=>{try{return e.matches(t)}catch{return!1}})}const nN=["transform","translate","scale","rotate","perspective"],rN=["transform","translate","scale","rotate","perspective","filter"],oN=["paint","layout","strict","content"];function sE(e){const t=xm(),n=Wt(e)?Zr(e):e;return nN.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rN.some(r=>(n.willChange||"").includes(r))||oN.some(r=>(n.contain||"").includes(r))}function iN(e){let t=_i(e);for(;mn(t)&&!xi(t);){if(sE(t))return t;if(Rm(t))return null;t=_i(t)}return null}function xm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sN=new Set(["html","body","#document"]);function xi(e){return sN.has(xa(e))}function Zr(e){return Ln(e).getComputedStyle(e)}function Cm(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _i(e){if(xa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yb(e)&&e.host||Li(e);return yb(t)?t.host:t}function LM(e){const t=_i(e);return xi(t)?e.ownerDocument?e.ownerDocument.body:e.body:mn(t)&&Ml(t)?t:LM(t)}function la(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=LM(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),l=Ln(i);if(s){const c=bb(l);return t.concat(l,l.visualViewport||[],Ml(i)?i:[],c&&n?la(c):[])}return t.concat(i,la(i,[],n))}function bb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yn(e){const t=Cr(aN,e).current;return t.next=e,je(t.effect),t}function aN(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Gy=fM[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],lN=Gy&&Gy!==S.useLayoutEffect?Gy:e=>e();function Ue(e){const t=Cr(uN).current;return t.next=e,lN(t.effect),t.trampoline}function uN(){const e={next:void 0,callback:cN,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function cN(){}const Ec=typeof navigator<"u",Yy=hN(),PM=gN(),kM=pN(),NM=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),fN=Yy.platform==="MacIntel"&&Yy.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Yy.platform),FM=Ec&&/apple/i.test(navigator.vendor),Sb=Ec&&/android/i.test(PM)||/android/i.test(kM),dN=Ec&&PM.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,zM=kM.includes("jsdom/");function hN(){if(!Ec)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e!=null&&e.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function pN(){if(!Ec)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function gN(){if(!Ec)return"";const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform??""}const Eb="data-base-ui-focusable",BM="active",HM="selected",UM="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ua="ArrowLeft",ca="ArrowRight",aE="ArrowUp",kd="ArrowDown";function Si(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Tt(e,t){var r;if(!e||!t)return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e.contains(t))return!0;if(n&&yb(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function wr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Yo(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function mN(e){return e.matches("html,body")}function zn(e){return(e==null?void 0:e.ownerDocument)||document}function lE(e){return mn(e)&&e.matches(UM)}function wb(e){return e?e.getAttribute("role")==="combobox"&&lE(e):!1}function vN(e){if(!e||zM)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function ad(e){return e?e.hasAttribute(Eb)?e:e.querySelector(`[${Eb}]`)||e:null}function fl(e,t,n=!0){return e.filter(i=>{var s;return i.parentId===t&&(!n||((s=i.context)==null?void 0:s.open))}).flatMap(i=>[i,...fl(e,i.id,n)])}function eT(e,t){var i;let n=[],r=(i=e.find(s=>s.id===t))==null?void 0:i.parentId;for(;r;){const s=e.find(l=>l.id===r);r=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function Er(e){e.preventDefault(),e.stopPropagation()}function yN(e){return"nativeEvent"in e}function VM(e){return e.mozInputSource===0&&e.isTrusted?!0:Sb&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function jM(e){return zM?!1:!Sb&&e.width===0&&e.height===0||Sb&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function yl(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function $M(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const bN=["top","right","bottom","left"],oc=Math.min,ho=Math.max,ic=Math.round,Tu=Math.floor,Ci=e=>({x:e,y:e}),SN={left:"right",right:"left",bottom:"top",top:"bottom"},EN={start:"end",end:"start"};function Rb(e,t,n){return ho(e,oc(t,n))}function ys(e,t){return typeof e=="function"?e(t):e}function Xr(e){return e.split("-")[0]}function Ca(e){return e.split("-")[1]}function uE(e){return e==="x"?"y":"x"}function cE(e){return e==="y"?"height":"width"}const wN=new Set(["top","bottom"]);function zo(e){return wN.has(Xr(e))?"y":"x"}function fE(e){return uE(zo(e))}function RN(e,t,n){n===void 0&&(n=!1);const r=Ca(e),i=fE(e),s=cE(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Lg(l)),[l,Lg(l)]}function xN(e){const t=Lg(e);return[xb(e),t,xb(t)]}function xb(e){return e.replace(/start|end/g,t=>EN[t])}const tT=["left","right"],nT=["right","left"],CN=["top","bottom"],_N=["bottom","top"];function TN(e,t,n){switch(e){case"top":case"bottom":return n?t?nT:tT:t?tT:nT;case"left":case"right":return t?CN:_N;default:return[]}}function AN(e,t,n,r){const i=Ca(e);let s=TN(Xr(e),n==="start",r);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(xb)))),s}function Lg(e){return e.replace(/left|right|bottom|top/g,t=>SN[t])}function ON(e){return{top:0,right:0,bottom:0,left:0,...e}}function qM(e){return typeof e!="number"?ON(e):{top:e,right:e,bottom:e,left:e}}function Pg(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ap(e,t,n){return Math.floor(e/t)!==n}function Pu(e,t){return t<0||t>=e.current.length}function ug(e,t){return mr(e,{disabledIndices:t})}function Cb(e,t){return mr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function mr(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let s=t;do s+=n?-i:i;while(s>=0&&s<=e.current.length-1&&fa(e,s,r));return s}function GM(e,{event:t,orientation:n,loopFocus:r,rtl:i,cols:s,disabledIndices:l,minIndex:c,maxIndex:f,prevIndex:d,stopEvent:p=!1}){let g=d;const m=[],y={};let E=!1;{let C=null,R=-1;e.current.forEach((_,O)=>{if(_==null)return;const T=_.closest('[role="row"]');T&&(E=!0),(T!==C||R===-1)&&(C=T,R+=1,m[R]=[]),m[R].push(O),y[O]=R})}const b=E&&m.length>0&&m.some(C=>C.length!==s);function x(C){if(!b||d===-1)return;const R=y[d];if(R==null)return;const _=m[R].indexOf(d);let O=C==="up"?R-1:R+1;r&&(O<0?O=m.length-1:O>=m.length&&(O=0));const T=new Set;for(;O>=0&&O<m.length&&!T.has(O);){T.add(O);const M=m[O];if(M.length===0){O=C==="up"?O-1:O+1;continue}const A=Math.min(_,M.length-1);for(let D=A;D>=0;D-=1){const L=M[D];if(!fa(e,L,l))return L}O=C==="up"?O-1:O+1,r&&(O<0?O=m.length-1:O>=m.length&&(O=0))}}if(t.key===aE){const C=x("up");if(C!==void 0)p&&Er(t),g=C;else{if(p&&Er(t),d===-1)g=f;else if(g=mr(e,{startingIndex:g,amount:s,decrement:!0,disabledIndices:l}),r&&(d-s<c||g<0)){const R=d%s,_=f%s,O=f-(_-R);_===R?g=f:g=_>R?O:O-s}Pu(e,g)&&(g=d)}}if(t.key===kd){const C=x("down");C!==void 0?(p&&Er(t),g=C):(p&&Er(t),d===-1?g=c:(g=mr(e,{startingIndex:d,amount:s,disabledIndices:l}),r&&d+s>f&&(g=mr(e,{startingIndex:d%s-s,amount:s,disabledIndices:l}))),Pu(e,g)&&(g=d))}if(n==="both"){const C=Tu(d/s);t.key===(i?ua:ca)&&(p&&Er(t),d%s!==s-1?(g=mr(e,{startingIndex:d,disabledIndices:l}),r&&Ap(g,s,C)&&(g=mr(e,{startingIndex:d-d%s-1,disabledIndices:l}))):r&&(g=mr(e,{startingIndex:d-d%s-1,disabledIndices:l})),Ap(g,s,C)&&(g=d)),t.key===(i?ca:ua)&&(p&&Er(t),d%s!==0?(g=mr(e,{startingIndex:d,decrement:!0,disabledIndices:l}),r&&Ap(g,s,C)&&(g=mr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l}))):r&&(g=mr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l})),Ap(g,s,C)&&(g=d));const R=Tu(f/s)===C;Pu(e,g)&&(r&&R?g=t.key===(i?ca:ua)?f:mr(e,{startingIndex:d-d%s-1,disabledIndices:l}):g=d)}return g}function YM(e,t,n){const r=[];let i=0;return e.forEach(({width:s,height:l},c)=>{let f=!1;for(n&&(i=0);!f;){const d=[];for(let p=0;p<s;p+=1)for(let g=0;g<l;g+=1)d.push(i+p+g*t);i%t+s<=t&&d.every(p=>r[p]==null)?(d.forEach(p=>{r[p]=c}),f=!0):i+=1}}),[...r]}function KM(e,t,n,r,i){if(e===-1)return-1;const s=n.indexOf(e),l=t[e];switch(i){case"tl":return s;case"tr":return l?s+l.width-1:s;case"bl":return l?s+(l.height-1)*r:s;case"br":return n.lastIndexOf(e);default:return-1}}function XM(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function fa(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}var MN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],kg=MN.join(","),WM=typeof Element>"u",sc=WM?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ng=!WM&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},ld=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=i===""||i==="true",l=s||n&&t&&ld(t.parentNode);return l},IN=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},QM=function(t,n,r){if(ld(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(kg));return n&&sc.call(t,kg)&&i.unshift(t),i=i.filter(r),i},Fg=function(t,n,r){for(var i=[],s=Array.from(t);s.length;){var l=s.shift();if(!ld(l,!1))if(l.tagName==="SLOT"){var c=l.assignedElements(),f=c.length?c:l.children,d=Fg(f,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:l,candidates:d})}else{var p=sc.call(l,kg);p&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),m=!ld(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&m){var y=Fg(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,y):i.push({scopeParent:l,candidates:y})}else s.unshift.apply(s,l.children)}}return i},JM=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ZM=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||IN(t))&&!JM(t)?0:t.tabIndex},DN=function(t,n){var r=ZM(t);return r<0&&n&&!JM(t)?0:r},LN=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},e4=function(t){return t.tagName==="INPUT"},PN=function(t){return e4(t)&&t.type==="hidden"},kN=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},NN=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},FN=function(t){if(!t.name)return!0;var n=t.form||Ng(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=NN(i,t.form);return!s||s===t},zN=function(t){return e4(t)&&t.type==="radio"},BN=function(t){return zN(t)&&!FN(t)},HN=function(t){var n,r=t&&Ng(t),i=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var l,c,f;for(s=!!((l=i)!==null&&l!==void 0&&(c=l.ownerDocument)!==null&&c!==void 0&&c.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!s&&i;){var d,p,g;r=Ng(i),i=(d=r)===null||d===void 0?void 0:d.host,s=!!((p=i)!==null&&p!==void 0&&(g=p.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return s},rT=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},UN=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var l=sc.call(t,"details>summary:first-of-type"),c=l?t.parentElement:t;if(sc.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var d=t.parentElement,p=Ng(t);if(d&&!d.shadowRoot&&i(d)===!0)return rT(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=f}if(HN(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return rT(t);return!1},VN=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return sc.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},_b=function(t,n){return!(n.disabled||ld(n)||PN(n)||UN(n,t)||kN(n)||VN(n))},Tb=function(t,n){return!(BN(n)||ZM(n)<0||!_b(t,n))},jN=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},t4=function(t){var n=[],r=[];return t.forEach(function(i,s){var l=!!i.scopeParent,c=l?i.scopeParent:i,f=DN(c,l),d=l?t4(i.candidates):c;f===0?l?n.push.apply(n,d):n.push(c):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:d})}),r.sort(LN).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},Nd=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Fg([t],n.includeContainer,{filter:Tb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:jN}):r=QM(t,n.includeContainer,Tb.bind(null,n)),t4(r)},$N=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Fg([t],n.includeContainer,{filter:_b.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=QM(t,n.includeContainer,_b.bind(null,n)),r},n4=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return sc.call(t,kg)===!1?!1:Tb(n,t)};const wc=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function r4(e,t){const n=Nd(e,wc()),r=n.length;if(r===0)return;const i=Si(zn(e)),s=n.indexOf(i),l=s===-1?t===1?0:r-1:s+t;return n[l]}function _m(e){return r4(zn(e).body,1)||e}function o4(e){return r4(zn(e).body,-1)||e}function i4(e,t){if(!e)return null;const n=Nd(zn(e).body,wc()),r=n.length;if(r===0)return null;const i=n.indexOf(e);if(i===-1)return null;const s=(i+t+r)%r;return n[s]}function s4(e){return i4(e,1)}function a4(e){return i4(e,-1)}function dl(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Tt(n,r)}function qN(e){Nd(e,wc()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function oT(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const GN={...fM};let iT=0;function YN(e,t="mui"){const[n,r]=S.useState(e),i=e||n;return S.useEffect(()=>{n==null&&(iT+=1,r(`${t}-${iT}`))},[n,t]),i}const sT=GN.useId;function Il(e,t){if(sT!==void 0){const n=sT();return e??(t?`${t}-${n}`:n)}return YN(e,t)}function l4(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}class dE{constructor(){jt(this,"nodesRef",{current:[]});jt(this,"events",l4())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const u4=S.createContext(null),c4=S.createContext(null),Pi=()=>{var e;return((e=S.useContext(u4))==null?void 0:e.id)||null},_a=e=>{const t=S.useContext(c4);return e??t};function hE(e){const t=Il(),n=_a(e),r=Pi();return je(()=>{if(!t)return;const i={id:t,parentId:r};return n==null||n.addNode(i),()=>{n==null||n.removeNode(i)}},[n,t,r]),t}function f4(e){const{children:t,id:n}=e,r=Pi();return Re.jsx(u4.Provider,{value:S.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function d4(e){const{children:t,externalTree:n}=e,r=Cr(()=>n??new dE).current;return Re.jsx(c4.Provider,{value:r,children:t})}function Kn(){}const pa=Object.freeze([]),Tn=Object.freeze({}),KN=500,h4=500,XN={style:{transition:"none"}},p4="data-base-ui-click-trigger",g4={fallbackAxisSide:"none"},pE={fallbackAxisSide:"end"},WN={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Rs="none",Jo="trigger-press",rr="trigger-hover",ud="trigger-focus",gE="outside-press",Xf="item-press",Ti="focus-out",Fd="escape-key",cg="list-navigation",m4="cancel-open",qf="sibling-open",QN="disabled",Tm="imperative-action",JN="window-resize";function st(e,t,n,r){let i=!1,s=!1;const l=Tn;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...l}}function ac(e){return`data-base-ui-${e}`}function fg(e,t,n){if(n&&!yl(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}const v4=S.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new vs,currentIdRef:{current:null},currentContextRef:{current:null}});function ZN(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=S.useRef(n),s=S.useRef(n),l=S.useRef(null),c=S.useRef(null),f=Bn();return Re.jsx(v4.Provider,{value:S.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:s,currentIdRef:l,timeoutMs:r,currentContextRef:c,timeout:f}),[r,f]),children:t})}function eF(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{enabled:i=!0,open:s}=t,l=S.useContext(v4),{currentIdRef:c,delayRef:f,timeoutMs:d,initialDelayRef:p,currentContextRef:g,hasProvider:m,timeout:y}=l,[E,b]=S.useState(!1);return je(()=>{function x(){var C;b(!1),(C=g.current)==null||C.setIsInstantPhase(!1),c.current=null,g.current=null,f.current=p.current}if(i&&c.current&&!s&&c.current===r){if(b(!1),d){const C=r;return y.start(d,()=>{n.select("open")||c.current&&c.current!==C||x()}),()=>{y.clear()}}x()}},[i,s,r,c,f,d,p,g,y,n]),je(()=>{if(!i||!s)return;const x=g.current,C=c.current;y.clear(),g.current={onOpenChange:n.setOpen,setIsInstantPhase:b},c.current=r,f.current={open:0,close:fg(p.current,"close")},C!==null&&C!==r?(b(!0),x==null||x.setIsInstantPhase(!0),x==null||x.onOpenChange(!1,st(Rs))):(b(!1),x==null||x.setIsInstantPhase(!1))},[i,s,r,n,c,f,d,p,g,y]),je(()=>()=>{g.current=null},[g]),S.useMemo(()=>({hasProvider:m,delayRef:f,isInstantPhase:E}),[m,f,E])}function bo(e,t,n,r){const i=Cr(y4).current;return nF(i,e,t,n,r)&&b4(i,[e,t,n,r]),i.callback}function tF(e){const t=Cr(y4).current;return rF(t,e)&&b4(t,e),t.callback}function y4(){return{callback:null,cleanup:null,refs:[]}}function nF(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function rF(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function b4(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(r[i]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=r[i];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const Dl={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1},Op=null;class oF{constructor(){jt(this,"callbacks",[]);jt(this,"callbacksCount",0);jt(this,"nextId",1);jt(this,"startId",1);jt(this,"isScheduled",!1);jt(this,"tick",t=>{var i;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s<n.length;s+=1)(i=n[s])==null||i.call(n,t)})}request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Mp=new oF;class yi{constructor(){jt(this,"currentId",Op);jt(this,"cancel",()=>{this.currentId!==Op&&(Mp.cancel(this.currentId),this.currentId=Op)});jt(this,"disposeEffect",()=>this.cancel)}static create(){return new yi}static request(t){return Mp.request(t)}static cancel(t){return Mp.cancel(t)}request(t){this.cancel(),this.currentId=Mp.request(()=>{this.currentId=Op,t()})}}function Rc(){const e=Cr(yi.create).current;return oE(e.disposeEffect),e}function Vo(e){return(e==null?void 0:e.ownerDocument)||document}const ga=S.forwardRef(function(t,n){const[r,i]=S.useState();je(()=>{FM&&i("button")},[]);const s={tabIndex:0,role:r};return Re.jsx("span",{...t,ref:n,style:Dl,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})});let aT=0;function dg(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(aT);const s=()=>e==null?void 0:e.focus({preventScroll:n});i?s():aT=requestAnimationFrame(s)}const ku={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function lT(e){return e==="inert"?ku.inert:e==="aria-hidden"?ku["aria-hidden"]:ku.none}let Ip=new WeakSet,Dp={},Ky=0;const S4=e=>e&&(e.host||S4(e.parentNode)),iF=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=S4(n);return e.contains(r)?r:null}).filter(n=>n!=null);function sF(e,t,n,r){const i="data-base-ui-inert",s=r?"inert":n?"aria-hidden":null,l=iF(t,e),c=new Set,f=new Set(l),d=[];Dp[i]||(Dp[i]=new WeakMap);const p=Dp[i];l.forEach(g),m(t),c.clear();function g(y){!y||c.has(y)||(c.add(y),y.parentNode&&g(y.parentNode))}function m(y){!y||f.has(y)||[].forEach.call(y.children,E=>{if(xa(E)!=="script")if(c.has(E))m(E);else{const b=s?E.getAttribute(s):null,x=b!==null&&b!=="false",C=lT(s),R=(C.get(E)||0)+1,_=(p.get(E)||0)+1;C.set(E,R),p.set(E,_),d.push(E),R===1&&x&&Ip.add(E),_===1&&E.setAttribute(i,""),!x&&s&&E.setAttribute(s,s==="inert"?"":"true")}})}return Ky+=1,()=>{d.forEach(y=>{const E=lT(s),x=(E.get(y)||0)-1,C=(p.get(y)||0)-1;E.set(y,x),p.set(y,C),x||(!Ip.has(y)&&s&&y.removeAttribute(s),Ip.delete(y)),C||y.removeAttribute(i)}),Ky-=1,Ky||(ku.inert=new WeakMap,ku["aria-hidden"]=new WeakMap,ku.none=new WeakMap,Ip=new WeakSet,Dp={})}}function aF(e,t=!1,n=!1){const r=zn(e[0]).body;return sF(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}var Dn=dM();const lF=Ss(Dn),uF=parseInt(S.version,10);function mE(e){return uF>=e}function uT(e){if(!S.isValidElement(e))return null;const t=e,n=t.props;return(mE(19)?n==null?void 0:n.ref:t.ref)??null}function Ab(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function cF(e,t){const n={};for(const r in e){const i=e[r];if(t!=null&&t.hasOwnProperty(r)){const s=t[r](i);s!=null&&Object.assign(n,s);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function fF(e,t){return typeof e=="function"?e(t):e}function dF(e,t){return typeof e=="function"?e(t):e}const Wf={};function Ai(e,t,n,r,i){let s={...Ob(e,Wf)};return t&&(s=Gf(s,t)),n&&(s=Gf(s,n)),r&&(s=Gf(s,r)),i&&(s=Gf(s,i)),s}function hF(e){if(e.length===0)return Wf;if(e.length===1)return Ob(e[0],Wf);let t={...Ob(e[0],Wf)};for(let n=1;n<e.length;n+=1)t=Gf(t,e[n]);return t}function Gf(e,t){return E4(t)?t(e):pF(e,t)}function pF(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Ab(e.style,r);break}case"className":{e[n]=w4(e.className,r);break}default:gF(n,r)?e[n]=mF(e[n],r):e[n]=r}}return e}function gF(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function E4(e){return typeof e=="function"}function Ob(e,t){return E4(e)?e(t):e??Wf}function mF(e,t){return t?e?n=>{if(vF(n)){const i=n;Mb(i);const s=t(i);return i.baseUIHandlerPrevented||e==null||e(i),s}const r=t(n);return e==null||e(n),r}:t:e}function Mb(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function w4(e,t){return t?e?t+" "+e:t:e}function vF(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Ot(e,t,n={}){const r=t.render,i=yF(t,n);if(n.enabled===!1)return null;const s=n.state??Tn;return bF(e,r,i,s)}function yF(e,t={}){const{className:n,style:r,render:i}=e,{state:s=Tn,ref:l,props:c,stateAttributesMapping:f,enabled:d=!0}=t,p=d?fF(n,s):void 0,g=d?dF(r,s):void 0,m=d?cF(s,f):Tn,y=d?Ab(m,Array.isArray(c)?hF(c):c)??Tn:Tn;return typeof document<"u"&&(d?Array.isArray(l)?y.ref=tF([y.ref,uT(i),...l]):y.ref=bo(y.ref,uT(i),l):bo(null,null)),d?(p!==void 0&&(y.className=w4(y.className,p)),g!==void 0&&(y.style=Ab(y.style,g)),y):Tn}function bF(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=Ai(n,t.props);return i.ref=n.ref,S.cloneElement(t,i)}if(e&&typeof e=="string")return SF(e,n);throw new Error(Zt(8))}function SF(e,t){return e==="button"?S.createElement("button",{type:"button",...t,key:t.key}):e==="img"?S.createElement("img",{alt:"",...t,key:t.key}):S.createElement(e,t)}const R4=S.createContext(null),x4=()=>S.useContext(R4),EF=ac("portal");function C4(e={}){const{ref:t,container:n,componentProps:r=Tn,elementProps:i,elementState:s}=e,l=Il(),c=x4(),f=c==null?void 0:c.portalNode,[d,p]=S.useState(null),[g,m]=S.useState(null),y=S.useRef(null);je(()=>{if(n===null){y.current&&(y.current=null,m(null),p(null));return}if(l==null)return;const x=(n&&(iE(n)?n:n.current))??f??document.body;if(x==null){y.current&&(y.current=null,m(null),p(null));return}y.current!==x&&(y.current=x,m(null),p(x))},[n,f,l]);const E=Ot("div",r,{ref:[t,m],state:s,props:[{id:l,[EF]:""},i]});return{portalNode:g,portalSubtree:d&&E?Dn.createPortal(E,d):null}}const Am=S.forwardRef(function(t,n){const{children:r,container:i,className:s,render:l,renderGuards:c,...f}=t,{portalNode:d,portalSubtree:p}=C4({container:i,ref:n,componentProps:t,elementProps:f}),g=S.useRef(null),m=S.useRef(null),y=S.useRef(null),E=S.useRef(null),[b,x]=S.useState(null),C=b==null?void 0:b.modal,R=b==null?void 0:b.open,_=typeof c=="boolean"?c:!!b&&!b.modal&&b.open&&!!d;S.useEffect(()=>{if(!d||C)return;function T(M){d&&dl(M)&&(M.type==="focusin"?oT:qN)(d)}return d.addEventListener("focusin",T,!0),d.addEventListener("focusout",T,!0),()=>{d.removeEventListener("focusin",T,!0),d.removeEventListener("focusout",T,!0)}},[d,C]),S.useEffect(()=>{!d||R||oT(d)},[R,d]);const O=S.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:m,beforeInsideRef:y,afterInsideRef:E,portalNode:d,setFocusManagerState:x}),[d]);return Re.jsxs(S.Fragment,{children:[p,Re.jsxs(R4.Provider,{value:O,children:[_&&d&&Re.jsx(ga,{"data-type":"outside",ref:g,onFocus:T=>{var M;if(dl(T,d))(M=y.current)==null||M.focus();else{const A=b?b.domReference:null,D=o4(A);D==null||D.focus()}}}),_&&d&&Re.jsx("span",{"aria-owns":d.id,style:WN}),d&&Dn.createPortal(r,d),_&&d&&Re.jsx(ga,{"data-type":"outside",ref:m,onFocus:T=>{var M;if(dl(T,d))(M=E.current)==null||M.focus();else{const A=b?b.domReference:null,D=_m(A);D==null||D.focus(),b!=null&&b.closeOnFocusOut&&(b==null||b.onOpenChange(!1,st(Ti,T.nativeEvent)))}}})]})]})});function Wa(e){return e==null?e:"current"in e?e.current:e}function wF(e,t){const n=Ln(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const RF=20;let sa=[];function vE(){sa=sa.filter(e=>e.isConnected)}function xF(e){vE(),e&&xa(e)!=="body"&&(sa.push(e),sa.length>RF&&(sa=sa.slice(-20)))}function Xy(){return vE(),sa[sa.length-1]}function CF(e){if(!e)return null;const t=wc();return n4(e,t)?e:Nd(e,t)[0]||e}function _F(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():Zr(e).display!=="none"}function cT(e,t){var l;if(!t.current.includes("floating")&&!((l=e.getAttribute("role"))!=null&&l.includes("dialog")))return;const n=wc(),i=$N(e,n).filter(c=>{const f=c.getAttribute("data-tabindex")||"";return n4(c,n)||c.hasAttribute("data-tabindex")&&!f.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Om(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],initialFocus:s=!0,returnFocus:l=!0,restoreFocus:c=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:p="",getInsideElements:g=()=>[],nextFocusableElement:m,previousFocusableElement:y,beforeContentFocusGuardRef:E,externalTree:b}=e,x="rootStore"in t?t.rootStore:t,C=x.useState("open"),R=x.useState("domReferenceElement"),_=x.useState("floatingElement"),{events:O,dataRef:T}=x.context,M=Ue(()=>{var be;return(be=T.current.floatingContext)==null?void 0:be.nodeId}),A=Ue(g),D=s===!1,L=wb(R)&&D,F=Yn(i),B=Yn(s),j=Yn(l),z=Yn(p),G=_a(b),V=x4(),P=S.useRef(null),q=S.useRef(null),U=S.useRef(!1),K=S.useRef(!1),Z=S.useRef(!1),k=S.useRef(-1),$=S.useRef(""),X=S.useRef(""),te=Bn(),ue=Bn(),ne=Rc(),ce=V!=null,Q=ad(_),ve=Ue((be=Q)=>be?Nd(be,wc()):[]),Ee=Ue(be=>{const xe=ve(be);return F.current.map(()=>xe).filter(Boolean).flat()});S.useEffect(()=>{if(r||!f)return;function be(we){we.key==="Tab"&&Tt(Q,Si(zn(Q)))&&ve().length===0&&!L&&Er(we)}const xe=zn(Q);return xe.addEventListener("keydown",be),()=>{xe.removeEventListener("keydown",be)}},[r,R,Q,f,F,L,ve,Ee]),S.useEffect(()=>{if(r||!_)return;function be(xe){const we=wr(xe),H=ve().indexOf(we);H!==-1&&(k.current=H)}return _.addEventListener("focusin",be),()=>{_.removeEventListener("focusin",be)}},[r,_,ve]),S.useEffect(()=>{if(r||!C)return;const be=zn(Q);function xe(){Z.current=!1}function we(H){const Y=wr(H),ee=Tt(_,Y)||Tt(R,Y)||Tt(V==null?void 0:V.portalNode,Y);Z.current=!ee,X.current=H.pointerType||"keyboard"}function De(){X.current="keyboard"}return be.addEventListener("pointerdown",we,!0),be.addEventListener("pointerup",xe,!0),be.addEventListener("pointercancel",xe,!0),be.addEventListener("keydown",De,!0),()=>{be.removeEventListener("pointerdown",we,!0),be.removeEventListener("pointerup",xe,!0),be.removeEventListener("pointercancel",xe,!0),be.removeEventListener("keydown",De,!0)}},[r,_,R,Q,C,V]),S.useEffect(()=>{if(r||!d)return;function be(){K.current=!0,ue.start(0,()=>{K.current=!1})}function xe(Y){const ee=Y.relatedTarget,ie=Y.currentTarget,ae=wr(Y);queueMicrotask(()=>{const oe=M(),Oe=x.context.triggerElements,Be=!(Tt(R,ee)||Tt(_,ee)||Tt(ee,_)||Tt(V==null?void 0:V.portalNode,ee)||ee!=null&&Oe.hasElement(ee)||Oe.hasMatchingElement(Fe=>Tt(Fe,ee))||ee!=null&&ee.hasAttribute(ac("focus-guard"))||G&&(fl(G.nodesRef.current,oe).find(Fe=>{var Ke,it;return Tt((Ke=Fe.context)==null?void 0:Ke.elements.floating,ee)||Tt((it=Fe.context)==null?void 0:it.elements.domReference,ee)})||eT(G.nodesRef.current,oe).find(Fe=>{var Ke,it,rt;return[(Ke=Fe.context)==null?void 0:Ke.elements.floating,ad((it=Fe.context)==null?void 0:it.elements.floating)].includes(ee)||((rt=Fe.context)==null?void 0:rt.elements.domReference)===ee})));if(ie===R&&Q&&cT(Q,F),c&&ie!==R&&!_F(ae)&&Si(zn(Q))===zn(Q).body){if(mn(Q)&&(Q.focus(),c==="popup")){ne.request(()=>{Q.focus()});return}const Fe=k.current,Ke=ve(),it=Ke[Fe]||Ke[Ke.length-1]||Q;mn(it)&&it.focus()}if(T.current.insideReactTree){T.current.insideReactTree=!1;return}(L||!f)&&ee&&Be&&!K.current&&(L||ee!==Xy())&&(U.current=!0,x.setOpen(!1,st(Ti,Y)))})}function we(){Z.current||(T.current.insideReactTree=!0,te.start(0,()=>{T.current.insideReactTree=!1}))}const De=mn(R)?R:null,H=[];if(!(!_&&!De))return De&&(De.addEventListener("focusout",xe),De.addEventListener("pointerdown",be),H.push(()=>{De.removeEventListener("focusout",xe),De.removeEventListener("pointerdown",be)})),_&&(_.addEventListener("focusout",xe),V&&(_.addEventListener("focusout",we,!0),H.push(()=>{_.removeEventListener("focusout",we,!0)})),H.push(()=>{_.removeEventListener("focusout",xe)})),()=>{H.forEach(Y=>{Y()})}},[r,R,_,Q,f,G,V,x,d,c,ve,L,M,F,T,te,ue,ne]);const le=S.useRef(null),me=S.useRef(null),Ce=bo(le,E,V==null?void 0:V.beforeInsideRef),Ie=bo(me,V==null?void 0:V.afterInsideRef);S.useEffect(()=>{var Y,ee,ie;if(r||!_||!C)return;const be=Array.from(((Y=V==null?void 0:V.portalNode)==null?void 0:Y.querySelectorAll(`[${ac("portal")}]`))||[]),we=(ie=(ee=(G?eT(G.nodesRef.current,M()):[]).find(ae=>{var oe;return wb(((oe=ae.context)==null?void 0:oe.elements.domReference)||null)}))==null?void 0:ee.context)==null?void 0:ie.elements.domReference,De=[_,we,...be,...A(),P.current,q.current,le.current,me.current,V==null?void 0:V.beforeOutsideRef.current,V==null?void 0:V.afterOutsideRef.current,Wa(y),Wa(m),L?R:null].filter(ae=>ae!=null),H=aF(De,f||L);return()=>{H()}},[C,r,R,_,f,F,V,L,G,M,A,m,y]),je(()=>{if(!C||r||!mn(Q))return;const be=zn(Q),xe=Si(be);queueMicrotask(()=>{const we=Ee(Q),De=B.current,H=typeof De=="function"?De(z.current||""):De;if(H===void 0||H===!1)return;let Y;H===!0||H===null?Y=we[0]||Q:Y=Wa(H),Y=Y||we[0]||Q,!Tt(Q,xe)&&dg(Y,{preventScroll:Y===Q})})},[r,C,Q,D,Ee,B,z]),je(()=>{if(r||!Q)return;const be=zn(Q),xe=Si(be);xF(xe);function we(Y){if(Y.open||($.current=wF(Y.nativeEvent,X.current)),Y.reason===rr&&Y.nativeEvent.type==="mouseleave"&&(U.current=!0),Y.reason===gE)if(Y.nested)U.current=!1;else if(VM(Y.nativeEvent)||jM(Y.nativeEvent))U.current=!1;else{let ee=!1;document.createElement("div").focus({get preventScroll(){return ee=!0,!1}}),ee?U.current=!1:U.current=!0}}O.on("openchange",we);const De=be.createElement("span");De.setAttribute("tabindex","-1"),De.setAttribute("aria-hidden","true"),Object.assign(De.style,Dl),ce&&R&&R.insertAdjacentElement("afterend",De);function H(){const Y=j.current;let ee=typeof Y=="function"?Y($.current):Y;if(ee===void 0||ee===!1)return null;if(ee===null&&(ee=!0),typeof ee=="boolean"){const ae=R||Xy();return ae&&ae.isConnected?ae:De}const ie=R||Xy()||De;return Wa(ee)||ie}return()=>{O.off("openchange",we);const Y=Si(be),ee=Tt(_,Y)||G&&fl(G.nodesRef.current,M(),!1).some(ae=>{var oe;return Tt((oe=ae.context)==null?void 0:oe.elements.floating,Y)}),ie=H();queueMicrotask(()=>{const ae=CF(ie),oe=typeof j.current!="boolean";j.current&&!U.current&&mn(ae)&&(!(!oe&&ae!==Y&&Y!==be.body)||ee)&&ae.focus({preventScroll:!0}),De.remove()})}},[r,_,Q,j,T,O,G,ce,R,M]),S.useEffect(()=>{queueMicrotask(()=>{U.current=!1})},[r]),S.useEffect(()=>{if(r||!C)return;function be(we){const De=wr(we);De!=null&&De.closest(`[${p4}]`)&&(K.current=!0)}const xe=zn(Q);return xe.addEventListener("pointerdown",be,!0),()=>{xe.removeEventListener("pointerdown",be,!0)}},[r,C,Q]),je(()=>{if(!r&&V)return V.setFocusManagerState({modal:f,closeOnFocusOut:d,open:C,onOpenChange:x.setOpen,domReference:R}),()=>{V.setFocusManagerState(null)}},[r,V,f,C,x,d,R]),je(()=>{if(!(r||!Q))return cT(Q,F),()=>{queueMicrotask(vE)}},[r,Q,F]);const Me=!r&&(f?!L:!0)&&(ce||f);return Re.jsxs(S.Fragment,{children:[Me&&Re.jsx(ga,{"data-type":"inside",ref:Ce,onFocus:be=>{var xe;if(f){const we=Ee();dg(we[we.length-1])}else if(V!=null&&V.portalNode)if(U.current=!1,dl(be,V.portalNode)){const we=_m(R);we==null||we.focus()}else(xe=Wa(y??V.beforeOutsideRef))==null||xe.focus()}}),n,Me&&Re.jsx(ga,{"data-type":"inside",ref:Ie,onFocus:be=>{var xe;if(f)dg(Ee()[0]);else if(V!=null&&V.portalNode)if(d&&(U.current=!0),dl(be,V.portalNode)){const we=o4(R);we==null||we.focus()}else(xe=Wa(m??V.afterOutsideRef))==null||xe.focus()}})]})}function yE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,stickIfOpen:f=!0,touchOpenDelay:d=0}=t,p=S.useRef(void 0),g=Rc(),m=Bn(),y=S.useMemo(()=>({onPointerDown(E){p.current=E.pointerType},onMouseDown(E){const b=p.current,x=E.nativeEvent,C=n.select("open");if(E.button!==0||s==="click"||yl(b,!0)&&c)return;const R=r.current.openEvent,_=R==null?void 0:R.type,O=n.select("domReferenceElement")!==E.currentTarget,T=C&&O||!(C&&l&&(!(R&&f)||_==="click"||_==="mousedown"));if(lE(x.target)){const A=st(Jo,x,x.target);T&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,A)}):n.setOpen(T,A);return}const M=E.currentTarget;g.request(()=>{const A=st(Jo,x,M);T&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,A)}):n.setOpen(T,A)})},onClick(E){if(s==="mousedown-only")return;const b=p.current;if(s==="mousedown"&&b){p.current=void 0;return}if(yl(b,!0)&&c)return;const x=n.select("open"),C=r.current.openEvent,R=n.select("domReferenceElement")!==E.currentTarget,_=x&&R||!(x&&l&&(!(C&&f)||$M(C))),O=st(Jo,E.nativeEvent,E.currentTarget);_&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,O)}):n.setOpen(_,O)},onKeyDown(){p.current=void 0}}),[r,s,c,n,f,l,g,m,d]);return S.useMemo(()=>i?{reference:y}:Tn,[i,y])}function TF(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){var y;const s=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",c=t.axis==="y"||t.axis==="both",f=["mouseenter","mousemove"].includes(((y=t.dataRef.current.openEvent)==null?void 0:y.type)||"")&&t.pointerType!=="touch";let d=s.width,p=s.height,g=s.x,m=s.y;return n==null&&t.x&&l&&(n=s.x-t.x),r==null&&t.y&&c&&(r=s.y-t.y),g-=n||0,m-=r||0,d=0,p=0,!i||f?(d=t.axis==="y"?s.width:0,p=t.axis==="x"?s.height:0,g=l&&t.x!=null?t.x:g,m=c&&t.y!=null?t.y:m):i&&!f&&(p=t.axis==="x"?s.height:p,d=t.axis==="y"?s.width:d),i=!0,{width:d,height:p,x:g,y:m,top:m,right:g+d,bottom:m+p,left:g}}}}function fT(e){return e!=null&&e.clientX!=null}function AF(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:c=!0,axis:f="both",x:d=null,y:p=null}=t,g=S.useRef(!1),m=S.useRef(null),[y,E]=S.useState(),[b,x]=S.useState([]),C=Ue((M,A)=>{g.current||l.current.openEvent&&!fT(l.current.openEvent)||n.set("positionReference",TF(s,{x:M,y:A,axis:f,dataRef:l,pointerType:y}))}),R=Ue(M=>{d!=null||p!=null||(r?m.current||x([]):C(M.clientX,M.clientY))}),_=yl(y)?i:r,O=S.useCallback(()=>{if(!_||!c||d!=null||p!=null)return;const M=Ln(i);function A(D){const L=wr(D);Tt(i,L)?(M.removeEventListener("mousemove",A),m.current=null):C(D.clientX,D.clientY)}if(!l.current.openEvent||fT(l.current.openEvent)){M.addEventListener("mousemove",A);const D=()=>{M.removeEventListener("mousemove",A),m.current=null};return m.current=D,D}n.set("positionReference",s)},[_,c,d,p,i,l,s,n,C]);S.useEffect(()=>O(),[O,b]),S.useEffect(()=>{c&&!i&&(g.current=!1)},[c,i]),S.useEffect(()=>{!c&&r&&(g.current=!0)},[c,r]),je(()=>{c&&(d!=null||p!=null)&&(g.current=!1,C(d,p))},[c,d,p,C]);const T=S.useMemo(()=>{function M(A){E(A.pointerType)}return{onPointerDown:M,onPointerEnter:M,onMouseMove:R,onMouseEnter:R}},[R]);return S.useMemo(()=>c?{reference:T}:{},[c,T])}function dT(e,t,n){let{reference:r,floating:i}=e;const s=zo(t),l=fE(t),c=cE(l),f=Xr(t),d=s==="y",p=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,m=r[c]/2-i[c]/2;let y;switch(f){case"top":y={x:p,y:r.y-i.height};break;case"bottom":y={x:p,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-i.width,y:g};break;default:y={x:r.x,y:r.y}}switch(Ca(t)){case"start":y[l]-=m*(n&&d?-1:1);break;case"end":y[l]+=m*(n&&d?-1:1);break}return y}const OF=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:g}=dT(d,r,f),m=r,y={},E=0;for(let b=0;b<c.length;b++){const{name:x,fn:C}=c[b],{x:R,y:_,data:O,reset:T}=await C({x:p,y:g,initialPlacement:r,placement:m,strategy:i,middlewareData:y,rects:d,platform:l,elements:{reference:e,floating:t}});p=R??p,g=_??g,y={...y,[x]:{...y[x],...O}},T&&E<=50&&(E++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(d=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:p,y:g}=dT(d,m,f)),b=-1)}return{x:p,y:g,placement:m,strategy:i,middlewareData:y}};async function cd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:m=!1,padding:y=0}=ys(t,e),E=qM(y),x=c[m?g==="floating"?"reference":"floating":g],C=Pg(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:p,strategy:f})),R=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),O=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},T=Pg(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:R,offsetParent:_,strategy:f}):R);return{top:(C.top-T.top+E.top)/O.y,bottom:(T.bottom-C.bottom+E.bottom)/O.y,left:(C.left-T.left+E.left)/O.x,right:(T.right-C.right+E.right)/O.x}}const MF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:b=!0,...x}=ys(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Xr(i),R=zo(c),_=Xr(c)===c,O=await(f.isRTL==null?void 0:f.isRTL(d.floating)),T=m||(_||!b?[Lg(c)]:xN(c)),M=E!=="none";!m&&M&&T.push(...AN(c,b,E,O));const A=[c,...T],D=await cd(t,x),L=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&L.push(D[C]),g){const G=RN(i,l,O);L.push(D[G[0]],D[G[1]])}if(F=[...F,{placement:i,overflows:L}],!L.every(G=>G<=0)){var B,j;const G=(((B=s.flip)==null?void 0:B.index)||0)+1,V=A[G];if(V&&(!(g==="alignment"?R!==zo(V):!1)||F.every(U=>zo(U.placement)===R?U.overflows[0]>0:!0)))return{data:{index:G,overflows:F},reset:{placement:V}};let P=(j=F.filter(q=>q.overflows[0]<=0).sort((q,U)=>q.overflows[1]-U.overflows[1])[0])==null?void 0:j.placement;if(!P)switch(y){case"bestFit":{var z;const q=(z=F.filter(U=>{if(M){const K=zo(U.placement);return K===R||K==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(K=>K>0).reduce((K,Z)=>K+Z,0)]).sort((U,K)=>U[1]-K[1])[0])==null?void 0:z[0];q&&(P=q);break}case"initialPlacement":P=c;break}if(i!==P)return{reset:{placement:P}}}return{}}}};function hT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pT(e){return bN.some(t=>e[t]>=0)}const IF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=ys(e,t);switch(r){case"referenceHidden":{const s=await cd(t,{...i,elementContext:"reference"}),l=hT(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:pT(l)}}}case"escaped":{const s=await cd(t,{...i,altBoundary:!0}),l=hT(s,n.floating);return{data:{escapedOffsets:l,escaped:pT(l)}}}default:return{}}}}},_4=new Set(["left","top"]);async function DF(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Xr(n),c=Ca(n),f=zo(n)==="y",d=_4.has(l)?-1:1,p=s&&f?-1:1,g=ys(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof E=="number"&&(y=c==="end"?E*-1:E),f?{x:y*p,y:m*d}:{x:m*d,y:y*p}}const LF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:l,middlewareData:c}=t,f=await DF(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:l}}}}},PF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:x=>{let{x:C,y:R}=x;return{x:C,y:R}}},...f}=ys(e,t),d={x:n,y:r},p=await cd(t,f),g=zo(Xr(i)),m=uE(g);let y=d[m],E=d[g];if(s){const x=m==="y"?"top":"left",C=m==="y"?"bottom":"right",R=y+p[x],_=y-p[C];y=Rb(R,y,_)}if(l){const x=g==="y"?"top":"left",C=g==="y"?"bottom":"right",R=E+p[x],_=E-p[C];E=Rb(R,E,_)}const b=c.fn({...t,[m]:y,[g]:E});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:s,[g]:l}}}}}},kF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=ys(e,t),p={x:n,y:r},g=zo(i),m=uE(g);let y=p[m],E=p[g];const b=ys(c,t),x=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(f){const _=m==="y"?"height":"width",O=s.reference[m]-s.floating[_]+x.mainAxis,T=s.reference[m]+s.reference[_]-x.mainAxis;y<O?y=O:y>T&&(y=T)}if(d){var C,R;const _=m==="y"?"width":"height",O=_4.has(Xr(i)),T=s.reference[g]-s.floating[_]+(O&&((C=l.offset)==null?void 0:C[g])||0)+(O?0:x.crossAxis),M=s.reference[g]+s.reference[_]+(O?0:((R=l.offset)==null?void 0:R[g])||0)-(O?x.crossAxis:0);E<T?E=T:E>M&&(E=M)}return{[m]:y,[g]:E}}}},NF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:l,elements:c}=t,{apply:f=()=>{},...d}=ys(e,t),p=await cd(t,d),g=Xr(i),m=Ca(i),y=zo(i)==="y",{width:E,height:b}=s.floating;let x,C;g==="top"||g==="bottom"?(x=g,C=m===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(C=g,x=m==="end"?"top":"bottom");const R=b-p.top-p.bottom,_=E-p.left-p.right,O=oc(b-p[x],R),T=oc(E-p[C],_),M=!t.middlewareData.shift;let A=O,D=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=R),M&&!m){const F=ho(p.left,0),B=ho(p.right,0),j=ho(p.top,0),z=ho(p.bottom,0);y?D=E-2*(F!==0||B!==0?F+B:ho(p.left,p.right)):A=b-2*(j!==0||z!==0?j+z:ho(p.top,p.bottom))}await f({...t,availableWidth:D,availableHeight:A});const L=await l.getDimensions(c.floating);return E!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}};function T4(e){const t=Zr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=mn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=ic(n)!==s||ic(r)!==l;return c&&(n=s,r=l),{width:n,height:r,$:c}}function bE(e){return Wt(e)?e:e.contextElement}function Nu(e){const t=bE(e);if(!mn(t))return Ci(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=T4(t);let l=(s?ic(n.width):n.width)/r,c=(s?ic(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const FF=Ci(0);function A4(e){const t=Ln(e);return!xm()||!t.visualViewport?FF:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zF(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ln(e)?!1:t}function bl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=bE(e);let l=Ci(1);t&&(r?Wt(r)&&(l=Nu(r)):l=Nu(e));const c=zF(s,n,r)?A4(s):Ci(0);let f=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,p=i.width/l.x,g=i.height/l.y;if(s){const m=Ln(s),y=r&&Wt(r)?Ln(r):r;let E=m,b=bb(E);for(;b&&r&&y!==E;){const x=Nu(b),C=b.getBoundingClientRect(),R=Zr(b),_=C.left+(b.clientLeft+parseFloat(R.paddingLeft))*x.x,O=C.top+(b.clientTop+parseFloat(R.paddingTop))*x.y;f*=x.x,d*=x.y,p*=x.x,g*=x.y,f+=_,d+=O,E=Ln(b),b=bb(E)}}return Pg({width:p,height:g,x:f,y:d})}function Mm(e,t){const n=Cm(e).scrollLeft;return t?t.left+n:bl(Li(e)).left+n}function O4(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function BF(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",l=Li(r),c=t?Rm(t.floating):!1;if(r===l||c&&s)return n;let f={scrollLeft:0,scrollTop:0},d=Ci(1);const p=Ci(0),g=mn(r);if((g||!g&&!s)&&((xa(r)!=="body"||Ml(l))&&(f=Cm(r)),mn(r))){const y=bl(r);d=Nu(r),p.x=y.x+r.clientLeft,p.y=y.y+r.clientTop}const m=l&&!g&&!s?O4(l,f):Ci(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-f.scrollTop*d.y+p.y+m.y}}function HF(e){return Array.from(e.getClientRects())}function UF(e){const t=Li(e),n=Cm(e),r=e.ownerDocument.body,i=ho(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ho(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Mm(e);const c=-n.scrollTop;return Zr(r).direction==="rtl"&&(l+=ho(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:l,y:c}}const gT=25;function VF(e,t){const n=Ln(e),r=Li(e),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,c=0,f=0;if(i){s=i.width,l=i.height;const p=xm();(!p||p&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Mm(r);if(d<=0){const p=r.ownerDocument,g=p.body,m=getComputedStyle(g),y=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-y);E<=gT&&(s-=E)}else d<=gT&&(s+=d);return{width:s,height:l,x:c,y:f}}const jF=new Set(["absolute","fixed"]);function $F(e,t){const n=bl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=mn(e)?Nu(e):Ci(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,f=i*s.x,d=r*s.y;return{width:l,height:c,x:f,y:d}}function mT(e,t,n){let r;if(t==="viewport")r=VF(e,n);else if(t==="document")r=UF(Li(e));else if(Wt(t))r=$F(t,n);else{const i=A4(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pg(r)}function M4(e,t){const n=_i(e);return n===t||!Wt(n)||xi(n)?!1:Zr(n).position==="fixed"||M4(n,t)}function qF(e,t){const n=t.get(e);if(n)return n;let r=la(e,[],!1).filter(c=>Wt(c)&&xa(c)!=="body"),i=null;const s=Zr(e).position==="fixed";let l=s?_i(e):e;for(;Wt(l)&&!xi(l);){const c=Zr(l),f=sE(l);!f&&c.position==="fixed"&&(i=null),(s?!f&&!i:!f&&c.position==="static"&&!!i&&jF.has(i.position)||Ml(l)&&!f&&M4(e,l))?r=r.filter(p=>p!==l):i=c,l=_i(l)}return t.set(e,r),r}function GF(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Rm(t)?[]:qF(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((d,p)=>{const g=mT(t,p,i);return d.top=ho(g.top,d.top),d.right=oc(g.right,d.right),d.bottom=oc(g.bottom,d.bottom),d.left=ho(g.left,d.left),d},mT(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function YF(e){const{width:t,height:n}=T4(e);return{width:t,height:n}}function KF(e,t,n){const r=mn(t),i=Li(t),s=n==="fixed",l=bl(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=Ci(0);function d(){f.x=Mm(i)}if(r||!r&&!s)if((xa(t)!=="body"||Ml(i))&&(c=Cm(t)),r){const y=bl(t,!0,s,t);f.x=y.x+t.clientLeft,f.y=y.y+t.clientTop}else i&&d();s&&!r&&i&&d();const p=i&&!r&&!s?O4(i,c):Ci(0),g=l.left+c.scrollLeft-f.x-p.x,m=l.top+c.scrollTop-f.y-p.y;return{x:g,y:m,width:l.width,height:l.height}}function Wy(e){return Zr(e).position==="static"}function vT(e,t){if(!mn(e)||Zr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Li(e)===n&&(n=n.ownerDocument.body),n}function I4(e,t){const n=Ln(e);if(Rm(e))return n;if(!mn(e)){let i=_i(e);for(;i&&!xi(i);){if(Wt(i)&&!Wy(i))return i;i=_i(i)}return n}let r=vT(e,t);for(;r&&eN(r)&&Wy(r);)r=vT(r,t);return r&&xi(r)&&Wy(r)&&!sE(r)?n:r||iN(e)||n}const XF=async function(e){const t=this.getOffsetParent||I4,n=this.getDimensions,r=await n(e.floating);return{reference:KF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WF(e){return Zr(e).direction==="rtl"}const QF={convertOffsetParentRelativeRectToViewportRelativeRect:BF,getDocumentElement:Li,getClippingRect:GF,getOffsetParent:I4,getElementRects:XF,getClientRects:HF,getDimensions:YF,getScale:Nu,isElement:Wt,isRTL:WF};function D4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function JF(e,t){let n=null,r;const i=Li(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:p,top:g,width:m,height:y}=d;if(c||t(),!m||!y)return;const E=Tu(g),b=Tu(i.clientWidth-(p+m)),x=Tu(i.clientHeight-(g+y)),C=Tu(p),_={rootMargin:-E+"px "+-b+"px "+-x+"px "+-C+"px",threshold:ho(0,oc(1,f))||1};let O=!0;function T(M){const A=M[0].intersectionRatio;if(A!==f){if(!O)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!D4(d,e.getBoundingClientRect())&&l(),O=!1}try{n=new IntersectionObserver(T,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,_)}n.observe(e)}return l(!0),s}function yT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=bE(e),p=i||s?[...d?la(d):[],...la(t)]:[];p.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const g=d&&c?JF(d,n):null;let m=-1,y=null;l&&(y=new ResizeObserver(C=>{let[R]=C;R&&R.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var _;(_=y)==null||_.observe(t)})),n()}),d&&!f&&y.observe(d),y.observe(t));let E,b=f?bl(e):null;f&&x();function x(){const C=bl(e);b&&!D4(b,C)&&n(),b=C,E=requestAnimationFrame(x)}return n(),()=>{var C;p.forEach(R=>{i&&R.removeEventListener("scroll",n),s&&R.removeEventListener("resize",n)}),g==null||g(),(C=y)==null||C.disconnect(),y=null,f&&cancelAnimationFrame(E)}}const ZF=LF,ez=PF,tz=MF,nz=NF,rz=IF,oz=kF,iz=(e,t,n)=>{const r=new Map,i={platform:QF,...n},s={...i.platform,_c:r};return OF(e,t,{...i,platform:s})};var sz=typeof document<"u",az=function(){},hg=sz?S.useLayoutEffect:az;function zg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zg(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!zg(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function L4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bT(e,t){const n=L4(e);return Math.round(t*n)/n}function Qy(e){const t=S.useRef(e);return hg(()=>{t.current=e}),t}function lz(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[p,g]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=S.useState(r);zg(m,r)||y(r);const[E,b]=S.useState(null),[x,C]=S.useState(null),R=S.useCallback(U=>{U!==M.current&&(M.current=U,b(U))},[]),_=S.useCallback(U=>{U!==A.current&&(A.current=U,C(U))},[]),O=s||E,T=l||x,M=S.useRef(null),A=S.useRef(null),D=S.useRef(p),L=f!=null,F=Qy(f),B=Qy(i),j=Qy(d),z=S.useCallback(()=>{if(!M.current||!A.current)return;const U={placement:t,strategy:n,middleware:m};B.current&&(U.platform=B.current),iz(M.current,A.current,U).then(K=>{const Z={...K,isPositioned:j.current!==!1};G.current&&!zg(D.current,Z)&&(D.current=Z,Dn.flushSync(()=>{g(Z)}))})},[m,t,n,B,j]);hg(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(U=>({...U,isPositioned:!1})))},[d]);const G=S.useRef(!1);hg(()=>(G.current=!0,()=>{G.current=!1}),[]),hg(()=>{if(O&&(M.current=O),T&&(A.current=T),O&&T){if(F.current)return F.current(O,T,z);z()}},[O,T,z,F,L]);const V=S.useMemo(()=>({reference:M,floating:A,setReference:R,setFloating:_}),[R,_]),P=S.useMemo(()=>({reference:O,floating:T}),[O,T]),q=S.useMemo(()=>{const U={position:n,left:0,top:0};if(!P.floating)return U;const K=bT(P.floating,p.x),Z=bT(P.floating,p.y);return c?{...U,transform:"translate("+K+"px, "+Z+"px)",...L4(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:Z}},[n,c,P.floating,p.x,p.y]);return S.useMemo(()=>({...p,update:z,refs:V,elements:P,floatingStyles:q}),[p,z,V,P,q])}const uz=(e,t)=>({...ZF(e),options:[e,t]}),cz=(e,t)=>({...ez(e),options:[e,t]}),fz=(e,t)=>({...oz(e),options:[e,t]}),dz=(e,t)=>({...tz(e),options:[e,t]}),hz=(e,t)=>({...nz(e),options:[e,t]}),pz=(e,t)=>({...rz(e),options:[e,t]}),gz={intentional:"onClick",sloppy:"onPointerDown"};function mz(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function zd(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:c,dataRef:f}=n.context,{enabled:d=!0,escapeKey:p=!0,outsidePress:g=!0,outsidePressEvent:m="sloppy",referencePress:y=!1,referencePressEvent:E="sloppy",ancestorScroll:b=!1,bubbles:x,externalTree:C}=t,R=_a(C),_=Ue(typeof g=="function"?g:()=>!1),O=typeof g=="function"?_:g,T=S.useRef(!1),{escapeKey:M,outsidePress:A}=mz(x),D=S.useRef(null),L=Bn(),F=Bn(),B=Ue(()=>{F.clear(),f.current.insideReactTree=!1}),j=S.useRef(!1),z=S.useRef(""),G=Ue(le=>{z.current=le.pointerType}),V=Ue(()=>{const le=z.current,me=le==="pen"||!le?"mouse":le,Ce=typeof m=="function"?m():m;return typeof Ce=="string"?Ce:Ce[me]}),P=Ue(le=>{var be;if(!r||!d||!p||le.key!=="Escape"||j.current)return;const me=(be=f.current.floatingContext)==null?void 0:be.nodeId,Ce=R?fl(R.nodesRef.current,me):[];if(!M&&Ce.length>0){let xe=!0;if(Ce.forEach(we=>{var De;(De=we.context)!=null&&De.open&&!we.context.dataRef.current.__escapeKeyBubbles&&(xe=!1)}),!xe)return}const Ie=yN(le)?le.nativeEvent:le,Me=st(Fd,Ie);n.setOpen(!1,Me),!M&&!Me.isPropagationAllowed&&le.stopPropagation()}),q=Ue(le=>{const me=V();return me==="intentional"&&le.type!=="click"||me==="sloppy"&&le.type==="click"}),U=Ue(()=>{f.current.insideReactTree=!0,F.start(0,B)}),K=Ue((le,me=!1)=>{var Y;if(q(le)){B();return}if(f.current.insideReactTree){B();return}if(V()==="intentional"&&me||typeof O=="function"&&!O(le))return;const Ce=wr(le),Ie=`[${ac("inert")}]`,Me=zn(n.select("floatingElement")).querySelectorAll(Ie),be=n.context.triggerElements;if(Ce&&(be.hasElement(Ce)||be.hasMatchingElement(ee=>Tt(ee,Ce))))return;let xe=Wt(Ce)?Ce:null;for(;xe&&!xi(xe);){const ee=_i(xe);if(xi(ee)||!Wt(ee))break;xe=ee}if(Me.length&&Wt(Ce)&&!mN(Ce)&&!Tt(Ce,n.select("floatingElement"))&&Array.from(Me).every(ee=>!Tt(xe,ee)))return;if(mn(Ce)&&!("touches"in le)){const ee=xi(Ce),ie=Zr(Ce),ae=/auto|scroll/,oe=ee||ae.test(ie.overflowX),Oe=ee||ae.test(ie.overflowY),Be=oe&&Ce.clientWidth>0&&Ce.scrollWidth>Ce.clientWidth,Fe=Oe&&Ce.clientHeight>0&&Ce.scrollHeight>Ce.clientHeight,Ke=ie.direction==="rtl",it=Fe&&(Ke?le.offsetX<=Ce.offsetWidth-Ce.clientWidth:le.offsetX>Ce.clientWidth),rt=Be&&le.offsetY>Ce.clientHeight;if(it||rt)return}const we=(Y=f.current.floatingContext)==null?void 0:Y.nodeId,De=R&&fl(R.nodesRef.current,we).some(ee=>{var ie;return Yo(le,(ie=ee.context)==null?void 0:ie.elements.floating)});if(Yo(le,n.select("floatingElement"))||Yo(le,n.select("domReferenceElement"))||De)return;const H=R?fl(R.nodesRef.current,we):[];if(H.length>0){let ee=!0;if(H.forEach(ie=>{var ae;(ae=ie.context)!=null&&ae.open&&!ie.context.dataRef.current.__outsidePressBubbles&&(ee=!1)}),!ee)return}n.setOpen(!1,st(gE,le)),B()}),Z=Ue(le=>{V()!=="sloppy"||le.pointerType==="touch"||!n.select("open")||!d||Yo(le,n.select("floatingElement"))||Yo(le,n.select("domReferenceElement"))||K(le)}),k=Ue(le=>{if(V()!=="sloppy"||!n.select("open")||!d||Yo(le,n.select("floatingElement"))||Yo(le,n.select("domReferenceElement")))return;const me=le.touches[0];me&&(D.current={startTime:Date.now(),startX:me.clientX,startY:me.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},L.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}),$=Ue(le=>{const me=wr(le);function Ce(){k(le),me==null||me.removeEventListener(le.type,Ce)}me==null||me.addEventListener(le.type,Ce)}),X=Ue(le=>{const me=T.current;if(T.current=!1,L.clear(),le.type==="mousedown"&&D.current&&!D.current.dismissOnMouseDown)return;const Ce=wr(le);function Ie(){le.type==="pointerdown"?Z(le):K(le,me),Ce==null||Ce.removeEventListener(le.type,Ie)}Ce==null||Ce.addEventListener(le.type,Ie)}),te=Ue(le=>{if(V()!=="sloppy"||!D.current||Yo(le,n.select("floatingElement"))||Yo(le,n.select("domReferenceElement")))return;const me=le.touches[0];if(!me)return;const Ce=Math.abs(me.clientX-D.current.startX),Ie=Math.abs(me.clientY-D.current.startY),Me=Math.sqrt(Ce*Ce+Ie*Ie);Me>5&&(D.current.dismissOnTouchEnd=!0),Me>10&&(K(le),L.clear(),D.current=null)}),ue=Ue(le=>{const me=wr(le);function Ce(){te(le),me==null||me.removeEventListener(le.type,Ce)}me==null||me.addEventListener(le.type,Ce)}),ne=Ue(le=>{V()!=="sloppy"||!D.current||Yo(le,n.select("floatingElement"))||Yo(le,n.select("domReferenceElement"))||(D.current.dismissOnTouchEnd&&K(le),L.clear(),D.current=null)}),ce=Ue(le=>{const me=wr(le);function Ce(){ne(le),me==null||me.removeEventListener(le.type,Ce)}me==null||me.addEventListener(le.type,Ce)});S.useEffect(()=>{if(!r||!d)return;f.current.__escapeKeyBubbles=M,f.current.__outsidePressBubbles=A;const le=new vs;function me(xe){n.setOpen(!1,st(Rs,xe))}function Ce(){le.clear(),j.current=!0}function Ie(){le.start(xm()?5:0,()=>{j.current=!1})}const Me=zn(i);Me.addEventListener("pointerdown",G,!0),p&&(Me.addEventListener("keydown",P),Me.addEventListener("compositionstart",Ce),Me.addEventListener("compositionend",Ie)),O&&(Me.addEventListener("click",X,!0),Me.addEventListener("pointerdown",X,!0),Me.addEventListener("touchstart",$,!0),Me.addEventListener("touchmove",ue,!0),Me.addEventListener("touchend",ce,!0),Me.addEventListener("mousedown",X,!0));let be=[];return b&&(Wt(l)&&(be=la(l)),Wt(i)&&(be=be.concat(la(i))),!Wt(s)&&s&&s.contextElement&&(be=be.concat(la(s.contextElement)))),be=be.filter(xe=>{var we;return xe!==((we=Me.defaultView)==null?void 0:we.visualViewport)}),be.forEach(xe=>{xe.addEventListener("scroll",me,{passive:!0})}),()=>{Me.removeEventListener("pointerdown",G,!0),p&&(Me.removeEventListener("keydown",P),Me.removeEventListener("compositionstart",Ce),Me.removeEventListener("compositionend",Ie)),O&&(Me.removeEventListener("click",X,!0),Me.removeEventListener("pointerdown",X,!0),Me.removeEventListener("touchstart",$,!0),Me.removeEventListener("touchmove",ue,!0),Me.removeEventListener("touchend",ce,!0),Me.removeEventListener("mousedown",X,!0)),be.forEach(xe=>{xe.removeEventListener("scroll",me)}),le.clear()}},[f,i,s,l,p,O,r,c,b,d,M,A,P,K,X,Z,$,ue,ce,G,n]),S.useEffect(B,[O,B]);const Q=S.useMemo(()=>({onKeyDown:P,...y&&{[gz[E]]:le=>{n.setOpen(!1,st(Jo,le.nativeEvent))},...E!=="intentional"&&{onClick(le){n.setOpen(!1,st(Jo,le.nativeEvent))}}}}),[P,n,y,E]),ve=Ue(le=>{const me=wr(le.nativeEvent);!Tt(n.select("floatingElement"),me)||le.button!==0||(T.current=!0)}),Ee=S.useMemo(()=>({onKeyDown:P,onPointerDown:ve,onMouseDown:ve,onMouseUp:ve,onClickCapture:U,onMouseDownCapture:U,onPointerDownCapture:U,onMouseUpCapture:U,onTouchEndCapture:U,onTouchMoveCapture:U}),[P,ve,U]);return S.useMemo(()=>d?{reference:Q,floating:Ee,trigger:Q}:{},[d,Q,Ee])}var Bg=Symbol("NOT_FOUND");function vz(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function yz(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function bz(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var ST=e=>Array.isArray(e)?e:[e];function Sz(e){const t=Array.isArray(e[0])?e[0]:e;return bz(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ez(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function wz(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Bg},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Rz(e,t){let n=[];function r(c){const f=n.findIndex(d=>t(c,d.key));if(f>-1){const d=n[f];return f>0&&(n.splice(f,1),n.unshift(d)),d.value}return Bg}function i(c,f){r(c)===Bg&&(n.unshift({key:c,value:f}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:i,getEntries:s,clear:l}}var xz=(e,t)=>e===t;function Cz(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let s=0;s<i;s++)if(!e(n[s],r[s]))return!1;return!0}}function _z(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=xz,maxSize:i=1,resultEqualityCheck:s}=n,l=Cz(r);let c=0;const f=i<=1?wz(l):Rz(i,l);function d(){let p=f.get(arguments);if(p===Bg){if(p=e.apply(null,arguments),c++,s){const m=f.getEntries().find(y=>s(y.value,p));m&&(p=m.value,c!==0&&c--)}f.put(arguments,p)}return p}return d.clearCache=()=>{f.clear(),d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d}var Tz=class{constructor(e){this.value=e}deref(){return this.value}},Az=typeof WeakRef<"u"?WeakRef:Tz,Oz=0,ET=1;function Lp(){return{s:Oz,v:void 0,o:null,p:null}}function P4(e,t={}){let n=Lp();const{resultEqualityCheck:r}=t;let i,s=0;function l(){var g;let c=n;const{length:f}=arguments;for(let m=0,y=f;m<y;m++){const E=arguments[m];if(typeof E=="function"||typeof E=="object"&&E!==null){let b=c.o;b===null&&(c.o=b=new WeakMap);const x=b.get(E);x===void 0?(c=Lp(),b.set(E,c)):c=x}else{let b=c.p;b===null&&(c.p=b=new Map);const x=b.get(E);x===void 0?(c=Lp(),b.set(E,c)):c=x}}const d=c;let p;if(c.s===ET)p=c.v;else if(p=e.apply(null,arguments),s++,r){const m=((g=i==null?void 0:i.deref)==null?void 0:g.call(i))??i;m!=null&&r(m,p)&&(p=m,s!==0&&s--),i=typeof p=="object"&&p!==null||typeof p=="function"?new Az(p):p}return d.s=ET,d.v=p,p}return l.clearCache=()=>{n=Lp(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function k4(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,l=0,c,f={},d=i.pop();typeof d=="object"&&(f=d,d=i.pop()),vz(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const p={...n,...f},{memoize:g,memoizeOptions:m=[],argsMemoize:y=P4,argsMemoizeOptions:E=[]}=p,b=ST(m),x=ST(E),C=Sz(i),R=g(function(){return s++,d.apply(null,arguments)},...b),_=y(function(){l++;const T=Ez(C,arguments);return c=R.apply(null,T),c},...x);return Object.assign(_,{resultFunc:d,memoizedResultFunc:R,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:g,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var Mz=k4(P4),Iz=Object.assign((e,t=Mz)=>{yz(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((l,c,f)=>(l[n[f]]=c,l),{}))},{withTypes:()=>Iz});k4({memoize:_z,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const ke=(e,t,n,r,i,s,...l)=>{if(l.length>0)throw new Error(Zt(1));let c;if(e)c=e;else throw new Error("Missing arguments");return c};var Jy={exports:{}},Zy={};var wT;function Dz(){if(wT)return Zy;wT=1;var e=Es();function t(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(g,m){var y=m(),E=r({inst:{value:y,getSnapshot:m}}),b=E[0].inst,x=E[1];return s(function(){b.value=y,b.getSnapshot=m,f(b)&&x({inst:b})},[g,y,m]),i(function(){return f(b)&&x({inst:b}),g(function(){f(b)&&x({inst:b})})},[g]),l(y),y}function f(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!n(g,y)}catch{return!0}}function d(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Zy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Zy}var RT;function N4(){return RT||(RT=1,Jy.exports=Dz()),Jy.exports}var Lz=N4(),e1={exports:{}},t1={};var xT;function Pz(){if(xT)return t1;xT=1;var e=Es(),t=N4();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return t1.useSyncExternalStoreWithSelector=function(d,p,g,m,y){var E=s(null);if(E.current===null){var b={hasValue:!1,value:null};E.current=b}else b=E.current;E=c(function(){function C(M){if(!R){if(R=!0,_=M,M=m(M),y!==void 0&&b.hasValue){var A=b.value;if(y(A,M))return O=A}return O=M}if(A=O,r(_,M))return A;var D=m(M);return y!==void 0&&y(A,D)?(_=M,A):(_=M,O=D)}var R=!1,_,O,T=g===void 0?null:g;return[function(){return C(p())},T===null?void 0:function(){return C(T())}]},[p,g,m,y]);var x=i(d,E[0],E[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),f(x),x},t1}var CT;function kz(){return CT||(CT=1,e1.exports=Pz()),e1.exports}var F4=kz();const Nz=Ss(F4),Fz=mE(19),zz=Fz?Bz:Hz;function gt(e,t,n,r,i){return zz(e,t,n,r,i)}function Bz(e,t,n,r,i){const s=S.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return Lz.useSyncExternalStore(e.subscribe,s,s)}function Hz(e,t,n,r,i){return F4.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,i))}class Fu{constructor(t){jt(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));jt(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){Fu.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||Fu.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};Fu.prototype.setState.call(this,t)}}class Bd extends Fu{constructor(n,r={},i){super(n);jt(this,"controlledValues",new Map);jt(this,"select",(n,r,i,s)=>{const l=this.selectors[n];return l(this.state,r,i,s)});jt(this,"useState",(n,r,i,s)=>{S.useDebugValue(n);const l=this.selectors[n];return gt(this,l,r,i,s)});this.context=r,this.selectors=i}useSyncedValue(n,r){S.useDebugValue(n),je(()=>{this.state[n]!==r&&this.set(n,r)},[n,r])}useSyncedValueWithCleanup(n,r){je(()=>(this.state[n]!==r&&this.set(n,r),()=>{this.set(n,void 0)}),[n,r])}useSyncedValues(n){const r=Object.values(n);je(()=>{this.update(n)},r)}useControlledProp(n,r,i){S.useDebugValue(n);const s=r!==void 0;this.controlledValues.has(n)||(this.controlledValues.set(n,s),!s&&!Object.is(this.state[n],i)&&super.setState({...this.state,[n]:i})),je(()=>{s&&!Object.is(this.state[n],r)&&super.setState({...this.state,[n]:r})},[n,r,i,s])}set(n,r){this.controlledValues.get(n)!==!0&&super.set(n,r)}update(n){const r={...n};for(const i in r)if(Object.hasOwn(r,i)&&this.controlledValues.get(i)===!0){delete r[i];continue}super.update(r)}setState(n){const r={...n};for(const i in r)if(Object.hasOwn(r,i)&&this.controlledValues.get(i)===!0){delete r[i];continue}super.setState({...this.state,...r})}useContextCallback(n,r){S.useDebugValue(n);const i=Ue(r??Kn);this.context[n]=i}useStateSetter(n){const r=S.useRef(void 0);return r.current===void 0&&(r.current=i=>{this.set(n,i)}),r.current}observe(n,r){let i;typeof n=="function"?i=n:i=this.selectors[n];let s=i(this.state);return r(s,s,this),this.subscribe(l=>{const c=i(l);if(!Object.is(s,c)){const f=s;s=c,r(c,f,this)}})}}const Uz={open:ke(e=>e.open),domReferenceElement:ke(e=>e.domReferenceElement),referenceElement:ke(e=>e.positionReference??e.referenceElement),floatingElement:ke(e=>e.floatingElement),floatingId:ke(e=>e.floatingId)};class SE extends Bd{constructor(n){const{nested:r,noEmit:i,onOpenChange:s,triggerElements:l,...c}=n;super({...c,positionReference:c.referenceElement,domReferenceElement:c.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:l4(),nested:r,noEmit:i,triggerElements:l},Uz);jt(this,"setOpen",(n,r)=>{var i,s;if((!n||!this.state.open||$M(r.event))&&(this.context.dataRef.current.openEvent=n?r.event:void 0),!this.context.noEmit){const l={open:n,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",l)}(s=(i=this.context).onOpenChange)==null||s.call(i,n,r)})}}function xc(e,t=!1,n=!1){const[r,i]=S.useState(e&&t?"idle":void 0),[s,l]=S.useState(e);return e&&!s&&(l(!0),i("starting")),!e&&s&&r!=="ending"&&!n&&i("ending"),!e&&!s&&r==="ending"&&i(void 0),je(()=>{if(!e&&s&&r!=="ending"&&n){const c=yi.request(()=>{i("ending")});return()=>{yi.cancel(c)}}},[e,s,r,n]),je(()=>{if(!e||t)return;const c=yi.request(()=>{i(void 0)});return()=>{yi.cancel(c)}},[t,e]),je(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&i("starting");const c=yi.request(()=>{i("idle")});return()=>{yi.cancel(c)}},[t,e,s,i,r]),S.useMemo(()=>({mounted:s,setMounted:l,transitionStatus:r}),[s,r])}function EE(e,t=!1,n=!0){const r=Rc();return Ue((i,s=null)=>{r.cancel();const l=Wa(e);l!=null&&(typeof l.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?i():r.request(()=>{function c(){l&&Promise.all(l.getAnimations().map(f=>f.finished)).then(()=>{s!=null&&s.aborted||Dn.flushSync(i)}).catch(()=>{if(n){if(s!=null&&s.aborted)return;Dn.flushSync(i)}else l.getAnimations().length>0&&l.getAnimations().some(f=>f.pending||f.playState!=="finished")&&c()})}t?r.request(c):c()}))})}function si(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,s=Yn(n),l=Ue(i),c=EE(r,n);S.useEffect(()=>{t&&c(()=>{n===s.current&&l()})},[t,n,l,c,s])}function Vz(e,t){const n=S.useRef(null);return S.useCallback(r=>{e!==void 0&&(n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null),r!==null&&(n.current=e,t.context.triggerElements.add(e,r)))},[t,e])}function wE(e,t,n,r){const i=n.useState("isMountedByTrigger",e),s=Vz(e,n),l=Ue(c=>{s(c),c!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:c,...r})});return je(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function Im(e){const t=e.useState("open");je(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function Dm(e,t,n){const{mounted:r,setMounted:i,transitionStatus:s}=xc(e);t.useSyncedValues({mounted:r,transitionStatus:s});const l=Ue(()=>{var f,d;i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n==null||n(),(d=(f=t.context).onOpenChangeComplete)==null||d.call(f,!1)}),c=t.useState("preventUnmountingOnClose");return si({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}class Cc{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function jz(){return new SE({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Cc,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function Lm(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:jz(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Tn,inactiveTriggerProps:Tn,popupProps:Tn}}const Pm={open:ke(e=>e.open),mounted:ke(e=>e.mounted),transitionStatus:ke(e=>e.transitionStatus),floatingRootContext:ke(e=>e.floatingRootContext),preventUnmountingOnClose:ke(e=>e.preventUnmountingOnClose),payload:ke(e=>e.payload),activeTriggerId:ke(e=>e.activeTriggerId),activeTriggerElement:ke(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ke((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:ke((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:ke((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:ke((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ke(e=>e.popupProps),popupElement:ke(e=>e.popupElement),positionerElement:ke(e=>e.positionerElement)};function z4(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Il(),s=Pi()!=null,l=Cr(()=>new SE({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new Cc,floatingId:i,nested:s,noEmit:e.noEmit||!1})).current;return je(()=>{const c={open:t,floatingId:i};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=Wt(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),l.update(c)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=s,l.context.noEmit=e.noEmit||!1,l}function $z(e={}){const{nodeId:t,externalTree:n}=e,r=z4(e),i=e.rootContext||r,s={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,c]=S.useState(null),f=S.useRef(null),d=_a(n);je(()=>{s.domReference&&(f.current=s.domReference)},[s.domReference]);const p=lz({...e,elements:{...s,...l&&{reference:l}}}),g=S.useCallback(A=>{const D=Wt(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;c(D),p.refs.setReference(D)},[p.refs]),[m,y]=S.useState(null),[E,b]=S.useState(null);i.useSyncedValue("referenceElement",m),i.useSyncedValue("domReferenceElement",Wt(m)?m:null),i.useSyncedValue("floatingElement",E);const x=S.useCallback(A=>{(Wt(A)||A===null)&&(f.current=A,y(A)),(Wt(p.refs.reference.current)||p.refs.reference.current===null||A!==null&&!Wt(A))&&p.refs.setReference(A)},[p.refs,y]),C=S.useCallback(A=>{b(A),p.refs.setFloating(A)},[p.refs]),R=S.useMemo(()=>({...p.refs,setReference:x,setFloating:C,setPositionReference:g,domReference:f}),[p.refs,x,C,g]),_=S.useMemo(()=>({...p.elements,domReference:s.domReference}),[p.elements,s.domReference]),O=i.useState("open"),T=i.useState("floatingId"),M=S.useMemo(()=>({...p,dataRef:i.context.dataRef,open:O,onOpenChange:i.setOpen,events:i.context.events,floatingId:T,refs:R,elements:_,nodeId:t,rootStore:i}),[p,R,_,t,i,O,T]);return je(()=>{i.context.dataRef.current.floatingContext=M;const A=d==null?void 0:d.nodesRef.current.find(D=>D.id===t);A&&(A.context=M)}),S.useMemo(()=>({...p,context:M,refs:R,elements:_,rootStore:i}),[p,R,_,M,i])}function km(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,s=Il(),l=Pi()!=null,c=t.useState("open"),f=t.useState("activeTriggerElement"),d=t.useState(r?"popupElement":"positionerElement"),p=t.context.triggerElements,g=Cr(()=>new SE({open:c,referenceElement:f,floatingElement:d,triggerElements:p,onOpenChange:i,floatingId:s,nested:l,noEmit:n})).current;return je(()=>{const m={open:c,floatingId:s,referenceElement:f,floatingElement:d};Wt(f)&&(m.domReferenceElement=f),g.update(m)},[c,s,f,d,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const n1=dN&&FM;function B4(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:s=!0,visibleOnly:l=!0}=t,c=S.useRef(!1),f=Bn(),d=S.useRef(!0);S.useEffect(()=>{const g=n.select("domReferenceElement");if(!s)return;const m=Ln(g);function y(){!n.select("open")&&mn(g)&&g===Si(zn(g))&&(c.current=!0)}function E(){d.current=!0}function b(){d.current=!1}return m.addEventListener("blur",y),n1&&(m.addEventListener("keydown",E,!0),m.addEventListener("pointerdown",b,!0)),()=>{m.removeEventListener("blur",y),n1&&(m.removeEventListener("keydown",E,!0),m.removeEventListener("pointerdown",b,!0))}},[n,s]),S.useEffect(()=>{if(!s)return;function g(m){(m.reason===Jo||m.reason===Fd)&&(c.current=!0)}return r.on("openchange",g),()=>{r.off("openchange",g)}},[r,s]);const p=S.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(g){if(c.current)return;const m=wr(g.nativeEvent);if(l&&Wt(m)){if(n1&&!g.relatedTarget){if(!d.current&&!lE(m))return}else if(!vN(m))return}n.setOpen(!0,st(ud,g.nativeEvent,g.currentTarget))},onBlur(g){c.current=!1;const m=g.relatedTarget,y=g.nativeEvent,E=Wt(m)&&m.hasAttribute(ac("focus-guard"))&&m.getAttribute("data-type")==="outside";f.start(0,()=>{var C;const b=n.select("domReferenceElement"),x=Si(b?b.ownerDocument:document);!m&&x===b||Tt((C=i.current.floatingContext)==null?void 0:C.refs.floating.current,x)||Tt(b,x)||E||n.context.triggerElements.hasElement(g.relatedTarget)||n.setOpen(!1,st(ud,y))})}}),[i,n,l,f]);return S.useMemo(()=>s?{reference:p,trigger:p}:{},[s,p])}const Ib=ac("safe-polygon"),qz=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${UM}`;function Gz(e){return e?!!e.closest(qz):!1}function H4(e){const t=S.useRef(void 0),n=S.useRef(!1),r=S.useRef(void 0),i=S.useRef(!0),s=S.useRef(!1),l=S.useRef(()=>{}),c=S.useRef(!1),f=Bn(),d=Bn(),p=S.useRef(void 0);return S.useMemo(()=>{const g=e.context.dataRef.current;return g.hoverInteractionState||(g.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:i,performedPointerEventsMutationRef:s,unbindMouseMoveRef:l,restTimeoutPendingRef:c,openChangeTimeout:f,restTimeout:d,handleCloseOptionsRef:p}),g.hoverInteractionState},[e,t,n,r,i,s,l,c,f,d,p])}const Yz=new Set(["click","mousedown"]);function RE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:c=!0,closeDelay:f=0,externalTree:d}=t,{pointerTypeRef:p,interactedInsideRef:g,handlerRef:m,performedPointerEventsMutationRef:y,unbindMouseMoveRef:E,restTimeoutPendingRef:b,openChangeTimeout:x,handleCloseOptionsRef:C}=H4(n),R=_a(d),_=Pi(),O=Ue(()=>g.current?!0:l.current.openEvent?Yz.has(l.current.openEvent.type):!1),T=Ue(()=>{var B;const F=(B=l.current.openEvent)==null?void 0:B.type;return(F==null?void 0:F.includes("mouse"))&&F!=="mousedown"}),M=S.useCallback((F,B=!0)=>{const j=Kz(f,p.current);j&&!m.current?x.start(j,()=>n.setOpen(!1,st(rr,F))):B&&(x.clear(),n.setOpen(!1,st(rr,F)))},[f,m,n,p,x]),A=Ue(()=>{E.current(),m.current=void 0}),D=Ue(()=>{if(y.current){const F=zn(i).body;F.style.pointerEvents="",F.removeAttribute(Ib),y.current=!1}}),L=Ue(F=>{const B=wr(F);if(!Gz(B)){g.current=!1;return}g.current=!0});je(()=>{r||(p.current=void 0,b.current=!1,g.current=!1,A(),D())},[r,p,b,g,A,D]),S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>D,[D]),je(()=>{var F,B,j;if(c&&r&&(F=C.current)!=null&&F.blockPointerEvents&&T()&&Wt(s)&&i){y.current=!0;const z=zn(i).body;z.setAttribute(Ib,"");const G=s,V=i,P=(j=(B=R==null?void 0:R.nodesRef.current.find(q=>q.id===_))==null?void 0:B.context)==null?void 0:j.elements.floating;return P&&(P.style.pointerEvents=""),z.style.pointerEvents="none",G.style.pointerEvents="auto",V.style.pointerEvents="auto",()=>{z.style.pointerEvents="",G.style.pointerEvents="",V.style.pointerEvents=""}}},[c,r,s,i,C,T,R,_,y]),S.useEffect(()=>{if(!c)return;function F(G){if(O()||!l.current.floatingContext||!n.select("open"))return;const V=n.context.triggerElements;G.relatedTarget&&V.hasElement(G.relatedTarget)||(D(),A(),O()||M(G))}function B(G){var V;x.clear(),D(),(V=m.current)==null||V.call(m,G),A()}function j(G){O()||M(G,!1)}const z=i;return z&&(z.addEventListener("mouseleave",F),z.addEventListener("mouseenter",B),z.addEventListener("mouseleave",j),z.addEventListener("pointerdown",L,!0)),()=>{z&&(z.removeEventListener("mouseleave",F),z.removeEventListener("mouseenter",B),z.removeEventListener("mouseleave",j),z.removeEventListener("pointerdown",L,!0))}})}function Kz(e,t){return t&&!yl(t)?0:typeof e=="function"?e():e}function r1(e){return typeof e=="function"?e():e}const Xz={current:null};function xE(e,t={}){var q;const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:f=!1,restMs:d=0,move:p=!0,triggerElementRef:g=Xz,externalTree:m,isActiveTrigger:y=!0}=t,E=_a(m),{pointerTypeRef:b,interactedInsideRef:x,handlerRef:C,blockMouseMoveRef:R,performedPointerEventsMutationRef:_,unbindMouseMoveRef:O,restTimeoutPendingRef:T,openChangeTimeout:M,restTimeout:A,handleCloseOptionsRef:D}=H4(n),L=Yn(c),F=Yn(l),B=Yn(d);y&&(D.current=(q=L.current)==null?void 0:q.__options);const j=Ue(()=>x.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),z=S.useCallback((U,K=!0)=>{const Z=fg(F.current,"close",b.current);Z&&!C.current?M.start(Z,()=>n.setOpen(!1,st(rr,U))):K&&(M.clear(),n.setOpen(!1,st(rr,U)))},[F,C,n,b,M]),G=Ue(()=>{O.current(),C.current=void 0}),V=Ue(()=>{if(_.current){const U=zn(n.select("domReferenceElement")).body;U.style.pointerEvents="",U.removeAttribute(Ib),_.current=!1}});S.useEffect(()=>{if(!s)return;function U(K){K.open||(M.clear(),A.clear(),R.current=!0,T.current=!1)}return i.on("openchange",U),()=>{i.off("openchange",U)}},[s,i,M,A,R,T]);const P=Ue(U=>{var k;if(j()||!r.current.floatingContext)return;const K=n.context.triggerElements;if(U.relatedTarget&&K.hasElement(U.relatedTarget))return;const Z=g.current;(k=L.current)==null||k.call(L,{...r.current.floatingContext,tree:E,x:U.clientX,y:U.clientY,onClose(){V(),G(),!j()&&Z===n.select("domReferenceElement")&&z(U)}})(U)});return S.useEffect(()=>{if(!s)return;const U=g.current??(y?n.select("domReferenceElement"):null);if(!Wt(U))return;function K($){if(M.clear(),R.current=!1,f&&!yl(b.current)||r1(B.current)>0&&!fg(F.current,"open"))return;const X=fg(F.current,"open",b.current),te=n.select("domReferenceElement"),ue=n.context.triggerElements,ne=(ue.hasElement($.target)||ue.hasMatchingElement(ve=>Tt(ve,$.target)))&&(!te||!Tt(te,$.target)),ce=$.currentTarget??null,Q=!n.select("open")||ne;X?M.start(X,()=>{Q&&n.setOpen(!0,st(rr,$,ce))}):Q&&n.setOpen(!0,st(rr,$,ce))}function Z($){if(j()){V();return}O.current();const X=n.select("domReferenceElement"),te=zn(X);A.clear(),T.current=!1;const ue=n.context.triggerElements;if($.relatedTarget&&ue.hasElement($.relatedTarget))return;if(L.current&&r.current.floatingContext){n.select("open")||M.clear();const ce=g.current;C.current=L.current({...r.current.floatingContext,tree:E,x:$.clientX,y:$.clientY,onClose(){V(),G(),!j()&&ce===n.select("domReferenceElement")&&z($,!0)}});const Q=C.current;Q($),te.addEventListener("mousemove",Q),O.current=()=>{te.removeEventListener("mousemove",Q)};return}(b.current==="touch"?!Tt(n.select("floatingElement"),$.relatedTarget):!0)&&z($)}function k($){P($)}return n.select("open")&&U.addEventListener("mouseleave",k),p&&U.addEventListener("mousemove",K,{once:!0}),U.addEventListener("mouseenter",K),U.addEventListener("mouseleave",Z),()=>{U.removeEventListener("mouseleave",k),p&&U.removeEventListener("mousemove",K),U.removeEventListener("mouseenter",K),U.removeEventListener("mouseleave",Z)}},[G,V,R,r,F,z,n,s,L,P,y,j,f,p,b,B,A,T,M,g,E,O,C]),S.useMemo(()=>{function U(K){b.current=K.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(K){const{nativeEvent:Z}=K,k=K.currentTarget,$=n.select("domReferenceElement"),X=n.context.triggerElements,te=n.select("open"),ue=(X.hasElement(K.target)||X.hasMatchingElement(ce=>Tt(ce,K.target)))&&(!$||!Tt($,K.target));if(f&&!yl(b.current)||te&&!ue||r1(B.current)===0||!ue&&T.current&&K.movementX**2+K.movementY**2<2)return;A.clear();function ne(){!R.current&&(!te||ue)&&n.setOpen(!0,st(rr,Z,k))}b.current==="touch"?Dn.flushSync(()=>{ne()}):ue&&te?ne():(T.current=!0,A.start(r1(B.current),ne))}}},[R,f,n,b,B,A,T])}function Ll(e=[]){const t=e.map(d=>d==null?void 0:d.reference),n=e.map(d=>d==null?void 0:d.floating),r=e.map(d=>d==null?void 0:d.item),i=e.map(d=>d==null?void 0:d.trigger),s=S.useCallback(d=>Pp(d,e,"reference"),t),l=S.useCallback(d=>Pp(d,e,"floating"),n),c=S.useCallback(d=>Pp(d,e,"item"),r),f=S.useCallback(d=>Pp(d,e,"trigger"),i);return S.useMemo(()=>({getReferenceProps:s,getFloatingProps:l,getItemProps:c,getTriggerProps:f}),[s,l,c,f])}function Pp(e,t,n){var l;const r=new Map,i=n==="item",s={};n==="floating"&&(s.tabIndex=-1,s[Eb]="");for(const c in e)i&&e&&(c===BM||c===HM)||(s[c]=e[c]);for(let c=0;c<t.length;c+=1){let f;const d=(l=t[c])==null?void 0:l[n];typeof d=="function"?f=e?d(e):null:f=d,f&&_T(s,f,i,r)}return _T(s,e,i,r),s}function _T(e,t,n,r){var i;for(const s in t){const l=t[s];n&&(s===BM||s===HM)||(s.startsWith("on")?(r.has(s)||r.set(s,[]),typeof l=="function"&&((i=r.get(s))==null||i.push(l),e[s]=(...c)=>{var f;return(f=r.get(s))==null?void 0:f.map(d=>d(...c)).find(d=>d!==void 0)})):e[s]=l)}}const Wz="Escape";function Nm(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function kp(e,t){return Nm(t,e===aE||e===kd,e===ua||e===ca)}function o1(e,t,n){return Nm(t,e===kd,n?e===ua:e===ca)||e==="Enter"||e===" "||e===""}function Qz(e,t,n){return Nm(t,n?e===ua:e===ca,e===kd)}function Jz(e,t,n,r){const i=n?e===ca:e===ua,s=e===aE;return t==="both"||t==="horizontal"&&r&&r>1?e===Wz:Nm(t,i,s)}function U4(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),l=n.context.dataRef,{listRef:c,activeIndex:f,onNavigate:d=()=>{},enabled:p=!0,selectedIndex:g=null,allowEscape:m=!1,loopFocus:y=!1,nested:E=!1,rtl:b=!1,virtual:x=!1,focusItemOnOpen:C="auto",focusItemOnHover:R=!0,openOnArrowKeyDown:_=!0,disabledIndices:O=void 0,orientation:T="vertical",parentOrientation:M,cols:A=1,scrollItemIntoView:D=!0,itemSizes:L,dense:F=!1,id:B,resetOnPointerLeave:j=!0,externalTree:z}=t,G=ad(i),V=Yn(G),P=Pi(),q=_a(z);je(()=>{l.current.orientation=T},[l,T]);const U=wb(s),K=S.useRef(C),Z=S.useRef(g??-1),k=S.useRef(null),$=S.useRef(!0),X=Ue(ie=>{d(Z.current===-1?null:Z.current,ie)}),te=S.useRef(X),ue=S.useRef(!!i),ne=S.useRef(r),ce=S.useRef(!1),Q=S.useRef(!1),ve=Yn(O),Ee=Yn(r),le=Yn(D),me=Yn(g),Ce=Yn(j),Ie=Ue(()=>{function ie(Be){x?q==null||q.events.emit("virtualfocus",Be):dg(Be,{sync:ce.current,preventScroll:!0})}const ae=c.current[Z.current],oe=Q.current;ae&&ie(ae),(ce.current?Be=>Be():requestAnimationFrame)(()=>{var it;const Be=c.current[Z.current]||ae;if(!Be)return;ae||ie(Be);const Fe=le.current;Fe&&be&&(oe||!$.current)&&((it=Be.scrollIntoView)==null||it.call(Be,typeof Fe=="boolean"?{block:"nearest",inline:"nearest"}:Fe))})});je(()=>{p&&(r&&i?(Z.current=g??-1,K.current&&g!=null&&(Q.current=!0,X())):ue.current&&(Z.current=-1,te.current()))},[p,r,i,g,X]),je(()=>{if(p){if(!r){ce.current=!1;return}if(i)if(f==null){if(ce.current=!1,me.current!=null)return;if(ue.current&&(Z.current=-1,Ie()),(!ne.current||!ue.current)&&K.current&&(k.current!=null||K.current===!0&&k.current==null)){let ie=0;const ae=()=>{c.current[0]==null?(ie<2&&(ie?requestAnimationFrame:queueMicrotask)(ae),ie+=1):(Z.current=k.current==null||o1(k.current,T,b)||E?ug(c):Cb(c),k.current=null,X())};ae()}}else Pu(c,f)||(Z.current=f,Ie(),Q.current=!1)}},[p,r,i,f,me,E,c,T,b,X,Ie,ve]),je(()=>{var Be,Fe;if(!p||i||!q||x||!ue.current)return;const ie=q.nodesRef.current,ae=(Fe=(Be=ie.find(Ke=>Ke.id===P))==null?void 0:Be.context)==null?void 0:Fe.elements.floating,oe=Si(zn(i)),Oe=ie.some(Ke=>Ke.context&&Tt(Ke.context.elements.floating,oe));ae&&!Oe&&$.current&&ae.focus({preventScroll:!0})},[p,i,q,P,x]),je(()=>{te.current=X,ne.current=r,ue.current=!!i}),je(()=>{r||(k.current=null,K.current=C)},[r,C]);const Me=f!=null,be=S.useMemo(()=>{function ie(oe){if(!Ee.current)return;const Oe=c.current.indexOf(oe.currentTarget);Oe!==-1&&Z.current!==Oe&&(Z.current=Oe,X(oe))}return{onFocus(oe){ce.current=!0,ie(oe)},onClick:({currentTarget:oe})=>oe.focus({preventScroll:!0}),onMouseMove(oe){ce.current=!0,Q.current=!1,R&&ie(oe)},onPointerLeave(oe){var Be;if(!Ee.current||!$.current||oe.pointerType==="touch")return;ce.current=!0;const Oe=oe.relatedTarget;!R||c.current.includes(Oe)||Ce.current&&(Z.current=-1,X(oe),x||(Be=V.current)==null||Be.focus({preventScroll:!0}))}}},[Ee,V,R,c,X,Ce,x]),xe=S.useCallback(()=>{var ie,ae,oe;return M??((oe=(ae=(ie=q==null?void 0:q.nodesRef.current.find(Oe=>Oe.id===P))==null?void 0:ie.context)==null?void 0:ae.dataRef)==null?void 0:oe.current.orientation)},[P,q,M]),we=Ue(ie=>{if($.current=!1,ce.current=!0,ie.which===229||!Ee.current&&ie.currentTarget===V.current)return;if(E&&Jz(ie.key,T,b,A)){kp(ie.key,xe())||Er(ie),n.setOpen(!1,st(cg,ie.nativeEvent)),mn(s)&&(x?q==null||q.events.emit("virtualfocus",s):s.focus());return}const ae=Z.current,oe=ug(c,O),Oe=Cb(c,O);if(U||(ie.key==="Home"&&(Er(ie),Z.current=oe,X(ie)),ie.key==="End"&&(Er(ie),Z.current=Oe,X(ie))),A>1){const Be=L||Array.from({length:c.current.length},()=>({width:1,height:1})),Fe=YM(Be,A,F),Ke=Fe.findIndex(kt=>kt!=null&&!fa(c,kt,O)),it=Fe.reduce((kt,ut,he)=>ut!=null&&!fa(c,ut,O)?he:kt,-1),rt=Fe[GM({current:Fe.map(kt=>kt!=null?c.current[kt]:null)},{event:ie,orientation:T,loopFocus:y,rtl:b,cols:A,disabledIndices:XM([...(typeof O!="function"?O:null)||c.current.map((kt,ut)=>fa(c,ut,O)?ut:void 0),void 0],Fe),minIndex:Ke,maxIndex:it,prevIndex:KM(Z.current>Oe?oe:Z.current,Be,Fe,A,ie.key===kd?"bl":ie.key===(b?ua:ca)?"tr":"tl"),stopEvent:!0})];if(rt!=null&&(Z.current=rt,X(ie)),T==="both")return}if(kp(ie.key,T)){if(Er(ie),r&&!x&&Si(ie.currentTarget.ownerDocument)===ie.currentTarget){Z.current=o1(ie.key,T,b)?oe:Oe,X(ie);return}o1(ie.key,T,b)?y?ae>=Oe?m&&ae!==c.current.length?Z.current=-1:(ce.current=!1,Z.current=oe):Z.current=mr(c,{startingIndex:ae,disabledIndices:O}):Z.current=Math.min(Oe,mr(c,{startingIndex:ae,disabledIndices:O})):y?ae<=oe?m&&ae!==-1?Z.current=c.current.length:(ce.current=!1,Z.current=Oe):Z.current=mr(c,{startingIndex:ae,decrement:!0,disabledIndices:O}):Z.current=Math.max(oe,mr(c,{startingIndex:ae,decrement:!0,disabledIndices:O})),Pu(c,Z.current)&&(Z.current=-1),X(ie)}}),De=S.useMemo(()=>x&&r&&Me&&{"aria-activedescendant":`${B}-${f}`},[x,r,Me,B,f]),H=S.useMemo(()=>({"aria-orientation":T==="both"?void 0:T,...U?{}:De,onKeyDown(ie){if(ie.key==="Tab"&&ie.shiftKey&&r&&!x){const ae=wr(ie.nativeEvent);if(ae&&!Tt(V.current,ae))return;Er(ie),n.setOpen(!1,st(Ti,ie.nativeEvent)),mn(s)&&s.focus();return}we(ie)},onPointerMove(){$.current=!0}}),[De,we,V,T,U,n,r,x,s]),Y=S.useMemo(()=>{function ie(oe){C==="auto"&&VM(oe.nativeEvent)&&(K.current=!x)}function ae(oe){K.current=C,C==="auto"&&jM(oe.nativeEvent)&&(K.current=!0)}return{onKeyDown(oe){const Oe=n.select("open");$.current=!1;const Be=oe.key.startsWith("Arrow"),Fe=Qz(oe.key,xe(),b),Ke=kp(oe.key,T),it=(E?Fe:Ke)||oe.key==="Enter"||oe.key.trim()==="";if(x&&Oe)return we(oe);if(!(!Oe&&!_&&Be)){if(it){const rt=kp(oe.key,xe());k.current=E&&rt?null:oe.key}if(E){Fe&&(Er(oe),Oe?(Z.current=ug(c,ve.current),X(oe)):n.setOpen(!0,st(cg,oe.nativeEvent,oe.currentTarget)));return}Ke&&(me.current!=null&&(Z.current=me.current),Er(oe),!Oe&&_?n.setOpen(!0,st(cg,oe.nativeEvent,oe.currentTarget)):we(oe),Oe&&X(oe))}},onFocus(oe){n.select("open")&&!x&&(Z.current=-1,X(oe))},onPointerDown:ae,onPointerEnter:ae,onMouseDown:ie,onClick:ie}},[we,ve,C,c,E,X,n,_,T,xe,b,me,x]),ee=S.useMemo(()=>({...De,...Y}),[De,Y]);return S.useMemo(()=>p?{reference:ee,floating:H,item:be,trigger:Y}:{},[p,ee,H,Y,be])}const Zz=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function CE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),s=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{enabled:c=!0,role:f="dialog"}=t,d=Il(),p=(s==null?void 0:s.id)||d,g=S.useMemo(()=>{var _;return((_=ad(l))==null?void 0:_.id)||i},[l,i]),m=Zz.get(f)??f,E=Pi()!=null,b=S.useMemo(()=>m==="tooltip"||f==="label"?Tn:{"aria-haspopup":m==="alertdialog"?"dialog":m,"aria-expanded":"false",...m==="listbox"&&{role:"combobox"},...m==="menu"&&E&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[m,E,f]),x=S.useMemo(()=>m==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?g:void 0}:{...b,"aria-expanded":r?"true":"false","aria-controls":r?g:void 0,...m==="menu"&&{id:p}},[m,g,r,p,f,b]),C=S.useMemo(()=>{const _={id:g,...m&&{role:m}};return m==="tooltip"||f==="label"?_:{..._,...m==="menu"&&{"aria-labelledby":p}}},[m,g,p,f]),R=S.useCallback(({active:_,selected:O})=>{const T={role:"option",..._&&{id:`${g}-fui-option`}};switch(f){case"select":case"combobox":return{...T,"aria-selected":O}}return{}},[g,f]);return S.useMemo(()=>c?{reference:x,floating:C,item:R,trigger:b}:{},[c,x,C,b,R])}function V4(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.context.dataRef,{listRef:s,activeIndex:l,onMatch:c,onTypingChange:f,enabled:d=!0,findMatch:p=null,resetMs:g=750,ignoreKeys:m=pa,selectedIndex:y=null}=t,E=Bn(),b=S.useRef(""),x=S.useRef(y??l??-1),C=S.useRef(null);je(()=>{r&&(E.clear(),C.current=null,b.current="")},[r,E]),je(()=>{r&&b.current===""&&(x.current=y??l??-1)},[r,y,l]);const R=Ue(M=>{M?i.current.typing||(i.current.typing=M,f==null||f(M)):i.current.typing&&(i.current.typing=M,f==null||f(M))}),_=Ue(M=>{function A(j,z,G){const V=p?p(z,G):z.find(P=>(P==null?void 0:P.toLocaleLowerCase().indexOf(G.toLocaleLowerCase()))===0);return V?j.indexOf(V):-1}const D=s.current;if(b.current.length>0&&b.current[0]!==" "&&(A(D,D,b.current)===-1?R(!1):M.key===" "&&Er(M)),D==null||m.includes(M.key)||M.key.length!==1||M.ctrlKey||M.metaKey||M.altKey)return;r&&M.key!==" "&&(Er(M),R(!0)),D.every(j=>{var z,G;return j?((z=j[0])==null?void 0:z.toLocaleLowerCase())!==((G=j[1])==null?void 0:G.toLocaleLowerCase()):!0})&&b.current===M.key&&(b.current="",x.current=C.current),b.current+=M.key,E.start(g,()=>{b.current="",x.current=C.current,R(!1)});const F=x.current,B=A(D,[...D.slice((F||0)+1),...D.slice(0,(F||0)+1)],b.current);B!==-1?(c==null||c(B),C.current=B):M.key!==" "&&(b.current="",R(!1))}),O=S.useMemo(()=>({onKeyDown:_}),[_]),T=S.useMemo(()=>({onKeyDown:_,onKeyUp(M){M.key===" "&&R(!1)}}),[_,R]);return S.useMemo(()=>d?{reference:O,floating:T}:{},[d,O,T])}function TT(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let l=0,c=s-1;l<s;c=l++){const[f,d]=t[l]||[0,0],[p,g]=t[c]||[0,0];d>=r!=g>=r&&n<=(p-f)*(r-d)/(g-d)+f&&(i=!i)}return i}function eB(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function _E(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new vs;let s=!1,l=null,c=null,f=typeof performance<"u"?performance.now():0;function d(g,m){const y=performance.now(),E=y-f;if(l===null||c===null||E===0)return l=g,c=m,f=y,null;const b=g-l,x=m-c,R=Math.sqrt(b*b+x*x)/E;return l=g,c=m,f=y,R}const p=({x:g,y:m,placement:y,elements:E,onClose:b,nodeId:x,tree:C})=>function(_){function O(){i.clear(),b()}if(i.clear(),!E.domReference||!E.floating||y==null||g==null||m==null)return;const{clientX:T,clientY:M}=_,A=[T,M],D=wr(_),L=_.type==="mouseleave",F=Tt(E.floating,D),B=Tt(E.domReference,D),j=E.domReference.getBoundingClientRect(),z=E.floating.getBoundingClientRect(),G=y.split("-")[0],V=g>z.right-z.width/2,P=m>z.bottom-z.height/2,q=eB(A,j),U=z.width>j.width,K=z.height>j.height,Z=(U?j:z).left,k=(U?j:z).right,$=(K?j:z).top,X=(K?j:z).bottom;if(F&&(s=!0,!L))return;if(B&&(s=!1),B&&!L){s=!0;return}if(L&&Wt(_.relatedTarget)&&Tt(E.floating,_.relatedTarget)||C&&fl(C.nodesRef.current,x).some(({context:ne})=>ne==null?void 0:ne.open))return;if(G==="top"&&m>=j.bottom-1||G==="bottom"&&m<=j.top+1||G==="left"&&g>=j.right-1||G==="right"&&g<=j.left+1)return O();let te=[];switch(G){case"top":te=[[Z,j.top+1],[Z,z.bottom-1],[k,z.bottom-1],[k,j.top+1]];break;case"bottom":te=[[Z,z.top+1],[Z,j.bottom-1],[k,j.bottom-1],[k,z.top+1]];break;case"left":te=[[z.right-1,X],[z.right-1,$],[j.left+1,$],[j.left+1,X]];break;case"right":te=[[j.right-1,X],[j.right-1,$],[z.left+1,$],[z.left+1,X]];break}function ue([ne,ce]){switch(G){case"top":{const Q=[U?ne+t/2:V?ne+t*4:ne-t*4,ce+t+1],ve=[U?ne-t/2:V?ne+t*4:ne-t*4,ce+t+1],Ee=[[z.left,V||U?z.bottom-t:z.top],[z.right,V?U?z.bottom-t:z.top:z.bottom-t]];return[Q,ve,...Ee]}case"bottom":{const Q=[U?ne+t/2:V?ne+t*4:ne-t*4,ce-t],ve=[U?ne-t/2:V?ne+t*4:ne-t*4,ce-t],Ee=[[z.left,V||U?z.top+t:z.bottom],[z.right,V?U?z.top+t:z.bottom:z.top+t]];return[Q,ve,...Ee]}case"left":{const Q=[ne+t+1,K?ce+t/2:P?ce+t*4:ce-t*4],ve=[ne+t+1,K?ce-t/2:P?ce+t*4:ce-t*4];return[...[[P||K?z.right-t:z.left,z.top],[P?K?z.right-t:z.left:z.right-t,z.bottom]],Q,ve]}case"right":{const Q=[ne-t,K?ce+t/2:P?ce+t*4:ce-t*4],ve=[ne-t,K?ce-t/2:P?ce+t*4:ce-t*4],Ee=[[P||K?z.left+t:z.right,z.top],[P?K?z.left+t:z.right:z.left+t,z.bottom]];return[Q,ve,...Ee]}default:return[]}}if(!TT([T,M],te)){if(s&&!q)return O();if(!L&&r){const ne=d(_.clientX,_.clientY);if(ne!==null&&ne<.1)return O()}TT([T,M],ue([g,m]))?!s&&r&&i.start(40,O):O()}};return p.__options={blockPointerEvents:n},p}const tB={...Pm,disabled:ke(e=>e.disabled),instantType:ke(e=>e.instantType),isInstantPhase:ke(e=>e.isInstantPhase),trackCursorAxis:ke(e=>e.trackCursorAxis),disableHoverablePopup:ke(e=>e.disableHoverablePopup),lastOpenChangeReason:ke(e=>e.openChangeReason),closeDelay:ke(e=>e.closeDelay)};class TE extends Bd{constructor(n){super({...nB(),...n},{popupRef:S.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Cc},tB);jt(this,"setOpen",(n,r)=>{var d,p;const i=r.reason,s=i===rr,l=n&&i===ud,c=!n&&(i===Jo||i===Fd);if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(p=(d=this.context).onOpenChange)==null||p.call(d,n,r),r.isCanceled)return;const f=()=>{var y;const g={open:n,openChangeReason:i};l?g.instantType="focus":c?g.instantType="dismiss":i===rr&&(g.instantType=void 0);const m=((y=r.trigger)==null?void 0:y.id)??null;(m||n)&&(g.activeTriggerId=m,g.activeTriggerElement=r.trigger??null),this.update(g)};s?Dn.flushSync(f):f()})}static useStore(n,r){const i=Cr(()=>n??new TE(r)).current,s=km({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=s,i}}function nB(){return{...Lm(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}function Oee(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:l,onOpenChange:c,onOpenChangeComplete:f,handle:d,triggerId:p,defaultTriggerId:g=null,children:m}=e,y=TE.useStore(d==null?void 0:d.store,{open:r??n,activeTriggerId:p!==void 0?p:g});y.useControlledProp("open",r,n),y.useControlledProp("activeTriggerId",p,g),y.useContextCallback("onOpenChange",c),y.useContextCallback("onOpenChangeComplete",f);const E=y.useState("open"),b=y.useState("activeTriggerId"),x=y.useState("payload");y.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i});const C=!t&&E;je(()=>{E&&t&&y.setOpen(!1,st(QN))},[E,t,y]),y.useSyncedValue("disabled",t),Im(y);const{forceUnmount:R,transitionStatus:_}=Dm(C,y),O=y.useState("isInstantPhase"),T=y.useState("instantType"),M=y.useState("lastOpenChangeReason"),A=S.useRef(null);je(()=>{_==="ending"&&M===Rs||_!=="ending"&&O?(T!=="delay"&&(A.current=T),y.set("instantType","delay")):A.current!==null&&(y.set("instantType",A.current),A.current=null)},[_,O,M,T,y]),je(()=>{C&&b==null&&y.set("payload",void 0)},[y,b,C]);const D=S.useCallback(()=>{y.setOpen(!1,rB(y,Tm))},[y]);S.useImperativeHandle(l,()=>({unmount:R,close:D}),[R,D]);const L=y.useState("floatingRootContext"),F=B4(L,{enabled:!t}),B=zd(L,{enabled:!t,referencePress:!0}),j=AF(L,{enabled:!t&&s!=="none",axis:s==="none"?void 0:s}),{getReferenceProps:z,getFloatingProps:G,getTriggerProps:V}=Ll([F,B,j]),P=S.useMemo(()=>z(),[z]),q=S.useMemo(()=>V(),[V]),U=S.useMemo(()=>G(),[G]);return y.useSyncedValues({floatingRootContext:L,activeTriggerProps:P,inactiveTriggerProps:q,popupProps:U}),Re.jsx(DM.Provider,{value:y,children:typeof m=="function"?m({payload:x}):m})}function rB(e,t){const n=st(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}let Hg=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const oB={[Hg.startingStyle]:""},iB={[Hg.endingStyle]:""},ki={transitionStatus(e){return e==="starting"?oB:e==="ending"?iB:null}};let Qa=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Hg.startingStyle]="startingStyle",e[e.endingStyle=Hg.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e}({}),Db=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({});const sB={[Db.popupOpen]:""},aB={[Db.popupOpen]:"",[Db.pressed]:""},lB={[Qa.open]:""},uB={[Qa.closed]:""},cB={[Qa.anchorHidden]:""},AE={open(e){return e?sB:null}},Ug={open(e){return e?aB:null}},jo={open(e){return e?lB:uB},anchorHidden(e){return e?cB:null}};function eo(e){return Il(e,"base-ui")}const j4=S.createContext(void 0);function fB(){return S.useContext(j4)}const dB=600,Mee=S.forwardRef(function(t,n){const{className:r,render:i,handle:s,payload:l,disabled:c,delay:f,closeDelay:d,id:p,...g}=t,m=Pd(!0),y=(s==null?void 0:s.store)??m;if(!y)throw new Error(Zt(82));const E=eo(p),b=y.useState("isTriggerActive",E),x=y.useState("floatingRootContext"),C=y.useState("isOpenedByTrigger",E),R=S.useRef(null),_=f??dB,O=d??0,{registerTrigger:T,isMountedByThisTrigger:M}=wE(E,R,y,{payload:l,closeDelay:O}),A=fB(),{delayRef:D,isInstantPhase:L,hasProvider:F}=eF(x,{open:C});y.useSyncedValue("isInstantPhase",L);const B=y.useState("disabled"),j=c??B,z=y.useState("trackCursorAxis"),G=y.useState("disableHoverablePopup"),V=xE(x,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!G&&z!=="both"?_E():null,restMs(){const K=A==null?void 0:A.delay,Z=typeof D.current=="object"?D.current.open:void 0;let k=_;return F&&(Z!==0?k=f??K??_:k=0),k},delay(){const K=typeof D.current=="object"?D.current.close:void 0;let Z=O;return d==null&&F&&(Z=K),{close:Z}},triggerElementRef:R,isActiveTrigger:b}),P=S.useMemo(()=>({open:C}),[C]),q=y.useState("triggerProps",M);return Ot("button",t,{state:P,ref:[n,T,R],props:[V,q,{id:E},g],stateAttributesMapping:AE})}),$4=S.createContext(void 0);function hB(){const e=S.useContext($4);if(e===void 0)throw new Error(Zt(70));return e}const pB=S.forwardRef(function(t,n){const{children:r,container:i,className:s,render:l,...c}=t,{portalNode:f,portalSubtree:d}=C4({container:i,ref:n,componentProps:t,elementProps:c});return!d&&!f?null:Re.jsxs(S.Fragment,{children:[d,f&&Dn.createPortal(r,f)]})}),Iee=S.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Pd().useState("mounted")||r?Re.jsx($4.Provider,{value:r,children:Re.jsx(pB,{ref:n,...i})}):null}),q4=S.createContext(void 0);function G4(){const e=S.useContext(q4);if(e===void 0)throw new Error(Zt(71));return e}const gB=S.createContext(void 0);function Hd(){const e=S.useContext(gB);return(e==null?void 0:e.direction)??"ltr"}const mB=e=>({name:"arrow",options:e,async fn(t){var K,Z;const{x:n,y:r,placement:i,rects:s,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:p=0,offsetParent:g="real"}=ys(e,t)||{};if(d==null)return{};const m=qM(p),y={x:n,y:r},E=fE(i),b=cE(E),x=await l.getDimensions(d),C=E==="y",R=C?"top":"left",_=C?"bottom":"right",O=C?"clientHeight":"clientWidth",T=s.reference[b]+s.reference[E]-y[E]-s.floating[b],M=y[E]-s.reference[E],A=g==="real"?await((K=l.getOffsetParent)==null?void 0:K.call(l,d)):c.floating;let D=c.floating[O]||s.floating[b];(!D||!await((Z=l.isElement)==null?void 0:Z.call(l,A)))&&(D=c.floating[O]||s.floating[b]);const L=T/2-M/2,F=D/2-x[b]/2-1,B=Math.min(m[R],F),j=Math.min(m[_],F),z=B,G=D-x[b]-j,V=D/2-x[b]/2+L,P=Rb(z,V,G),q=!f.arrow&&Ca(i)!=null&&V!==P&&s.reference[b]/2-(V<z?B:j)-x[b]/2<0,U=q?V<z?V-z:V-G:0;return{[E]:y[E]+U,data:{[E]:P,centerOffset:V-P-U,...q&&{alignmentOffset:U}},reset:q}}}),vB=(e,t)=>({...mB(e),options:[e,t]}),yB={name:"hide",async fn(e){var c;const{width:t,height:n,x:r,y:i}=e.rects.reference,s=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:((c=(await pz().fn(e)).data)==null?void 0:c.referenceHidden)||s}}}},pg={sideX:"left",sideY:"top"},Y4={name:"adaptiveOrigin",async fn(e){var R,_;const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:s,strategy:l,placement:c}=e,f=Ln(i),d=f.getComputedStyle(i);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:n,data:pg};const g=await((R=s.getOffsetParent)==null?void 0:R.call(s,i));let m={width:0,height:0};if(l==="fixed"&&(f!=null&&f.visualViewport))m={width:f.visualViewport.width,height:f.visualViewport.height};else if(g===f){const O=Vo(i);m={width:O.documentElement.clientWidth,height:O.documentElement.clientHeight}}else await((_=s.isElement)==null?void 0:_.call(s,g))&&(m=await s.getDimensions(g));const y=Xr(c);let E=t,b=n;y==="left"&&(E=m.width-(t+r.width)),y==="top"&&(b=m.height-(n+r.height));const x=y==="left"?"right":pg.sideX,C=y==="top"?"bottom":pg.sideY;return{x:E,y:b,data:{sideX:x,sideY:C}}}};function K4(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function AT(e,t,n){const{rects:r,placement:i}=e;return{side:K4(t,Xr(i),n),align:Ca(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Fm(e){var tt,mt;const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,collisionBoundary:c,collisionPadding:f=5,sticky:d=!1,arrowPadding:p=5,disableAnchorTracking:g=!1,keepMounted:m=!1,floatingRootContext:y,mounted:E,collisionAvoidance:b,shiftCrossAxis:x=!1,nodeId:C,adaptiveOrigin:R,lazyFlip:_=!1,externalTree:O}=e,[T,M]=S.useState(null);!E&&T!==null&&M(null);const A=b.side||"flip",D=b.align||"flip",L=b.fallbackAxisSide||"end",F=typeof t=="function"?t:void 0,B=Ue(F),j=F?B:t,z=Yn(t),V=Hd()==="rtl",P=T||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":V?"left":"right","inline-start":V?"right":"left"}[r],q=s==="center"?P:`${P}-${s}`;let U=f;const K=1,Z=r==="bottom"?K:0,k=r==="top"?K:0,$=r==="right"?K:0,X=r==="left"?K:0;typeof U=="number"?U={top:U+Z,right:U+X,bottom:U+k,left:U+$}:U&&(U={top:(U.top||0)+Z,right:(U.right||0)+X,bottom:(U.bottom||0)+k,left:(U.left||0)+$});const te={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:U},ue=S.useRef(null),ne=Yn(i),ce=Yn(l),Ee=[uz(nt=>{const yt=AT(nt,r,V),qt=typeof ne.current=="function"?ne.current(yt):ne.current,Ze=typeof ce.current=="function"?ce.current(yt):ce.current;return{mainAxis:qt,crossAxis:Ze,alignmentAxis:Ze}},[typeof i!="function"?i:0,typeof l!="function"?l:0,V,r])],le=D==="none"&&A!=="shift",me=!le&&(d||x||A==="shift"),Ce=A==="none"?null:dz({...te,padding:{top:U.top+K,right:U.right+K,bottom:U.bottom+K,left:U.left+K},mainAxis:!x&&A==="flip",crossAxis:D==="flip"?"alignment":!1,fallbackAxisSideDirection:L}),Ie=le?null:cz(nt=>{const yt=Vo(nt.elements.floating).documentElement;return{...te,rootBoundary:x?{x:0,y:0,width:yt.clientWidth,height:yt.clientHeight}:void 0,mainAxis:D!=="none",crossAxis:me,limiter:d||x?void 0:fz(qt=>{if(!ue.current)return{};const{width:Ze,height:bt}=ue.current.getBoundingClientRect(),ct=zo(Xr(qt.placement)),Bt=ct==="y"?Ze:bt,sn=ct==="y"?U.left+U.right:U.top+U.bottom;return{offset:Bt/2+sn/2}})}},[te,d,x,U,D]);A==="shift"||D==="shift"||s==="center"?Ee.push(Ie,Ce):Ee.push(Ce,Ie),Ee.push(hz({...te,apply({elements:{floating:nt},rects:{reference:yt},availableWidth:qt,availableHeight:Ze}){Object.entries({"--available-width":`${qt}px`,"--available-height":`${Ze}px`,"--anchor-width":`${yt.width}px`,"--anchor-height":`${yt.height}px`}).forEach(([bt,ct])=>{nt.style.setProperty(bt,ct)})}}),vB(()=>({element:ue.current||document.createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(nt){var fr,zi,Hl;const{elements:yt,middlewareData:qt,placement:Ze,rects:bt,y:ct}=nt,Bt=Xr(Ze),sn=zo(Bt),qe=ue.current,Ct=((fr=qt.arrow)==null?void 0:fr.x)||0,en=((zi=qt.arrow)==null?void 0:zi.y)||0,Ht=(qe==null?void 0:qe.clientWidth)||0,an=(qe==null?void 0:qe.clientHeight)||0,vn=Ct+Ht/2,gn=en+an/2,cr=Math.abs(((Hl=qt.shift)==null?void 0:Hl.y)||0),kr=bt.reference.height/2,Vn=typeof i=="function"?i(AT(nt,r,V)):i,ro=cr>Vn,Nr={top:`${vn}px calc(100% + ${Vn}px)`,bottom:`${vn}px ${-Vn}px`,left:`calc(100% + ${Vn}px) ${gn}px`,right:`${-Vn}px ${gn}px`}[Bt],Qn=`${vn}px ${bt.reference.y+kr-ct}px`;return yt.floating.style.setProperty("--transform-origin",me&&sn==="y"&&ro?Qn:Nr),{}}},yB,R),je(()=>{!E&&y&&y.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,y]);const Me=S.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:be,elements:xe,x:we,y:De,middlewareData:H,update:Y,placement:ee,context:ie,isPositioned:ae,floatingStyles:oe}=$z({rootContext:y,placement:q,middleware:Ee,strategy:n,whileElementsMounted:m?void 0:(...nt)=>yT(...nt,Me),nodeId:C,externalTree:O}),{sideX:Oe,sideY:Be}=H.adaptiveOrigin||pg,Fe=ae?n:"fixed",Ke=S.useMemo(()=>R?{position:Fe,[Oe]:we,[Be]:De}:{position:Fe,...oe},[R,Fe,Oe,we,Be,De,oe]),it=S.useRef(null);je(()=>{if(!E)return;const nt=z.current,yt=typeof nt=="function"?nt():nt,Ze=(OT(yt)?yt.current:yt)||null||null;Ze!==it.current&&(be.setPositionReference(Ze),it.current=Ze)},[E,be,j,z]),S.useEffect(()=>{if(!E)return;const nt=z.current;typeof nt!="function"&&OT(nt)&&nt.current!==it.current&&(be.setPositionReference(nt.current),it.current=nt.current)},[E,be,j,z]),S.useEffect(()=>{if(m&&E&&xe.domReference&&xe.floating)return yT(xe.domReference,xe.floating,Y,Me)},[m,E,xe,Y,Me]);const rt=Xr(ee),kt=K4(r,rt,V),ut=Ca(ee)||"center",he=!!((tt=H.hide)!=null&&tt.referenceHidden);je(()=>{_&&E&&ae&&M(rt)},[_,E,ae,rt]);const ze=S.useMemo(()=>{var nt,yt;return{position:"absolute",top:(nt=H.arrow)==null?void 0:nt.y,left:(yt=H.arrow)==null?void 0:yt.x}},[H.arrow]),He=((mt=H.arrow)==null?void 0:mt.centerOffset)!==0;return S.useMemo(()=>({positionerStyles:Ke,arrowStyles:ze,arrowRef:ue,arrowUncentered:He,side:kt,align:ut,physicalSide:rt,anchorHidden:he,refs:be,context:ie,isPositioned:ae,update:Y}),[Ke,ze,ue,He,kt,ut,rt,he,be,ie,ae,Y])}function OT(e){return e!=null&&"current"in e}function _c(e){return e==="starting"?XN:Tn}const Dee=S.forwardRef(function(t,n){const{render:r,className:i,anchor:s,positionMethod:l="absolute",side:c="top",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:y=5,sticky:E=!1,disableAnchorTracking:b=!1,collisionAvoidance:x=pE,...C}=t,R=Pd(),_=hB(),O=R.useState("open"),T=R.useState("mounted"),M=R.useState("trackCursorAxis"),A=R.useState("disableHoverablePopup"),D=R.useState("floatingRootContext"),L=R.useState("instantType"),F=R.useState("transitionStatus"),B=Fm({anchor:s,positionMethod:l,floatingRootContext:D,mounted:T,side:c,sideOffset:d,align:f,alignOffset:p,collisionBoundary:g,collisionPadding:m,sticky:E,arrowPadding:y,disableAnchorTracking:b,keepMounted:_,collisionAvoidance:x,adaptiveOrigin:Y4}),j=S.useMemo(()=>{const P={};return(!O||M==="both"||A)&&(P.pointerEvents="none"),{role:"presentation",hidden:!T,style:{...B.positionerStyles,...P}}},[O,M,A,T,B.positionerStyles]),z=S.useMemo(()=>({open:O,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:M!=="none"?"tracking-cursor":L}),[O,B.side,B.align,B.anchorHidden,M,L]),G=S.useMemo(()=>({...z,arrowRef:B.arrowRef,arrowStyles:B.arrowStyles,arrowUncentered:B.arrowUncentered}),[z,B.arrowRef,B.arrowStyles,B.arrowUncentered]),V=Ot("div",t,{state:z,props:[j,_c(F),C],ref:[n,R.useStateSetter("positionerElement")],stateAttributesMapping:jo});return Re.jsx(q4.Provider,{value:G,children:V})});function MT(e){const t=Zr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=mn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r;return(ic(n)!==s||ic(r)!==l)&&(n=s,r=l),{width:n,height:r}}const bB=typeof ResizeObserver<"u",SB=()=>!0;function X4(e){const{popupElement:t,positionerElement:n,content:r,mounted:i,enabled:s=SB,onMeasureLayout:l,onMeasureLayoutComplete:c,side:f,direction:d}=e,p=S.useRef(!0),g=EE(t,!0,!1),m=Rc(),y=S.useRef(null),E=Ue(l),b=Ue(c),x=S.useMemo(()=>{let C=f==="top",R=f==="left";return d==="rtl"?(C=C||f==="inline-end",R=R||f==="inline-end"):(C=C||f==="inline-start",R=R||f==="inline-start"),C?{position:"absolute",[f==="top"?"bottom":"top"]:"0",[R?"right":"left"]:"0"}:Tn},[f,d]);je(()=>{if(!i||!s()||!bB){p.current=!0,y.current=null;return}if(!t||!n)return;Object.entries(x).forEach(([L,F])=>{t.style.setProperty(L,F)});const C=new ResizeObserver(L=>{const F=L[0];F&&(y.current===null?y.current={width:Math.ceil(F.borderBoxSize[0].inlineSize),height:Math.ceil(F.borderBoxSize[0].blockSize)}:(y.current.width=Math.ceil(F.borderBoxSize[0].inlineSize),y.current.height=Math.ceil(F.borderBoxSize[0].blockSize)))});C.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const R=Hf(t,"position","static"),_=Hf(t,"transform","none"),O=Hf(t,"scale","1"),T=Hf(n,"--available-width","max-content"),M=Hf(n,"--available-height","max-content");if(E==null||E(),p.current||y.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const L=MT(t);return n.style.setProperty("--positioner-width",`${L.width}px`),n.style.setProperty("--positioner-height",`${L.height}px`),R(),_(),O(),T(),M(),b==null||b(null,L),p.current=!1,()=>{C.disconnect()}}t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto"),n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const A=MT(t);t.style.setProperty("--popup-width",`${y.current.width}px`),t.style.setProperty("--popup-height",`${y.current.height}px`),R(),_(),T(),M(),b==null||b(y.current,A),n.style.setProperty("--positioner-width",`${A.width}px`),n.style.setProperty("--positioner-height",`${A.height}px`);const D=new AbortController;return m.request(()=>{t.style.setProperty("--popup-width",`${A.width}px`),t.style.setProperty("--popup-height",`${A.height}px`),g(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},D.signal)}),()=>{C.disconnect(),D.abort(),m.cancel()}},[r,t,n,g,m,s,i,E,b,x])}function Hf(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const EB={...jo,...ki},Lee=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,l=Pd(),{side:c,align:f}=G4(),d=l.useState("open"),p=l.useState("mounted"),g=l.useState("instantType"),m=l.useState("transitionStatus"),y=l.useState("popupProps"),E=l.useState("payload"),b=l.useState("popupElement"),x=l.useState("positionerElement"),C=l.useState("floatingRootContext"),R=Hd();si({open:d,ref:l.context.popupRef,onComplete(){var F,B;d&&((B=(F=l.context).onOpenChangeComplete)==null||B.call(F,!0))}});function _(){C.context.events.emit("measure-layout")}function O(F,B){C.context.events.emit("measure-layout-complete",{previousDimensions:F,nextDimensions:B})}const T=S.useCallback(()=>l.context.triggerElements.size>1,[l]);X4({popupElement:b,positionerElement:x,mounted:p,content:E,enabled:T,onMeasureLayout:_,onMeasureLayoutComplete:O,side:c,direction:R});const M=l.useState("disabled"),A=l.useState("closeDelay");RE(C,{enabled:!M,closeDelay:A});const D=S.useMemo(()=>({open:d,side:c,align:f,instant:g,transitionStatus:m}),[d,c,f,g,m]);return Ot("div",t,{state:D,ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[y,_c(m),s],stateAttributesMapping:EB})}),Pee=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,c=Pd().useState("instantType"),{open:f,arrowRef:d,side:p,align:g,arrowUncentered:m,arrowStyles:y}=G4(),E=S.useMemo(()=>({open:f,side:p,align:g,uncentered:m,instant:c}),[f,p,g,m,c]);return Ot("div",t,{state:E,ref:[n,d],props:[{style:y,"aria-hidden":!0},s],stateAttributesMapping:jo})}),kee=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,s=S.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=S.useMemo(()=>({open:n,close:r}),[n,r]);return Re.jsx(j4.Provider,{value:s,children:Re.jsx(ZN,{delay:l,timeoutMs:i,children:t.children})})};function zm(e){return mE(19)?e:e?"true":void 0}var Tc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sl=typeof window>"u"||"Deno"in globalThis;function Mr(){}function wB(e,t){return typeof e=="function"?e(t):e}function Lb(e){return typeof e=="number"&&e>=0&&e!==1/0}function W4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function da(e,t){return typeof e=="function"?e(t):e}function ko(e,t){return typeof e=="function"?e(t):e}function IT(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==OE(l,t.options))return!1}else if(!fd(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||i&&i!==t.state.fetchStatus||s&&!s(t))}function DT(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(El(t.options.mutationKey)!==El(s))return!1}else if(!fd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function OE(e,t){return((t==null?void 0:t.queryKeyHashFn)||El)(e)}function El(e){return JSON.stringify(e,(t,n)=>Pb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function fd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fd(e[n],t[n])):!1}var RB=Object.prototype.hasOwnProperty;function Q4(e,t){if(e===t)return e;const n=LT(e)&&LT(t);if(!n&&!(Pb(e)&&Pb(t)))return t;const i=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),l=s.length,c=n?new Array(l):{};let f=0;for(let d=0;d<l;d++){const p=n?d:s[d],g=e[p],m=t[p];if(g===m){c[p]=g,(n?d<i:RB.call(e,p))&&f++;continue}if(g===null||m===null||typeof g!="object"||typeof m!="object"){c[p]=m;continue}const y=Q4(g,m);c[p]=y,y===g&&f++}return i===l&&f===i?e:c}function Vg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function LT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pb(e){if(!PT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!PT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function PT(e){return Object.prototype.toString.call(e)==="[object Object]"}function xB(e){return new Promise(t=>{setTimeout(t,e)})}function kb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Q4(e,t):t}function CB(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _B(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ME=Symbol();function J4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ME?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Z4(e,t){return typeof e=="function"?e(...t):!!e}var rl,Qs,qu,eM,TB=(eM=class extends Tc{constructor(){super();et(this,rl);et(this,Qs);et(this,qu);Ge(this,qu,t=>{if(!Sl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){J(this,Qs)||this.setEventListener(J(this,qu))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,Qs))==null||t.call(this),Ge(this,Qs,void 0))}setEventListener(t){var n;Ge(this,qu,t),(n=J(this,Qs))==null||n.call(this),Ge(this,Qs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){J(this,rl)!==t&&(Ge(this,rl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof J(this,rl)=="boolean"?J(this,rl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rl=new WeakMap,Qs=new WeakMap,qu=new WeakMap,eM),IE=new TB,Gu,Js,Yu,tM,AB=(tM=class extends Tc{constructor(){super();et(this,Gu,!0);et(this,Js);et(this,Yu);Ge(this,Yu,t=>{if(!Sl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){J(this,Js)||this.setEventListener(J(this,Yu))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,Js))==null||t.call(this),Ge(this,Js,void 0))}setEventListener(t){var n;Ge(this,Yu,t),(n=J(this,Js))==null||n.call(this),Ge(this,Js,t(this.setOnline.bind(this)))}setOnline(t){J(this,Gu)!==t&&(Ge(this,Gu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return J(this,Gu)}},Gu=new WeakMap,Js=new WeakMap,Yu=new WeakMap,tM),jg=new AB;function Nb(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function OB(e){return Math.min(1e3*2**e,3e4)}function eI(e){return(e??"online")==="online"?jg.isOnline():!0}var Fb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function tI(e){let t=!1,n=0,r;const i=Nb(),s=()=>i.status!=="pending",l=b=>{var x;if(!s()){const C=new Fb(b);m(C),(x=e.onCancel)==null||x.call(e,C)}},c=()=>{t=!0},f=()=>{t=!1},d=()=>IE.isFocused()&&(e.networkMode==="always"||jg.isOnline())&&e.canRun(),p=()=>eI(e.networkMode)&&e.canRun(),g=b=>{s()||(r==null||r(),i.resolve(b))},m=b=>{s()||(r==null||r(),i.reject(b))},y=()=>new Promise(b=>{var x;r=C=>{(s()||d())&&b(C)},(x=e.onPause)==null||x.call(e)}).then(()=>{var b;r=void 0,s()||(b=e.onContinue)==null||b.call(e)}),E=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(C){b=Promise.reject(C)}Promise.resolve(b).then(g).catch(C=>{var M;if(s())return;const R=e.retry??(Sl?0:3),_=e.retryDelay??OB,O=typeof _=="function"?_(n,C):_,T=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,C);if(t||!T){m(C);return}n++,(M=e.onFail)==null||M.call(e,n,C),xB(O).then(()=>d()?void 0:y()).then(()=>{t?m(C):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?E():y().then(E),i)}}var MB=e=>setTimeout(e,0);function IB(){let e=[],t=0,n=c=>{c()},r=c=>{c()},i=MB;const s=c=>{t?e.push(c):i(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&i(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},batchCalls:c=>(...f)=>{s(()=>{c(...f)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{i=c}}}var nr=IB(),ol,nM,nI=(nM=class{constructor(){et(this,ol)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Lb(this.gcTime)&&Ge(this,ol,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sl?1/0:5*60*1e3))}clearGcTimeout(){J(this,ol)&&(clearTimeout(J(this,ol)),Ge(this,ol,void 0))}},ol=new WeakMap,nM),Ku,Xu,Po,il,sr,Od,sl,Ko,os,rM,DB=(rM=class extends nI{constructor(t){super();et(this,Ko);et(this,Ku);et(this,Xu);et(this,Po);et(this,il);et(this,sr);et(this,Od);et(this,sl);Ge(this,sl,!1),Ge(this,Od,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ge(this,il,t.client),Ge(this,Po,J(this,il).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ge(this,Ku,LB(this.options)),this.state=t.state??J(this,Ku),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,sr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Od),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Po).remove(this)}setData(t,n){const r=kb(this.state.data,t,this.options);return _t(this,Ko,os).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){_t(this,Ko,os).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=J(this,sr))==null?void 0:r.promise;return(i=J(this,sr))==null||i.cancel(t),n?n.then(Mr).catch(Mr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Ku))}isActive(){return this.observers.some(t=>ko(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ME||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>da(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!W4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,sr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,sr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Po).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(J(this,sr)&&(J(this,sl)?J(this,sr).cancel({revert:!0}):J(this,sr).cancelRetry()),this.scheduleGc()),J(this,Po).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_t(this,Ko,os).call(this,{type:"invalidate"})}async fetch(t,n){var f,d,p,g,m,y,E,b,x,C,R,_;if(this.state.fetchStatus!=="idle"&&((f=J(this,sr))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(J(this,sr))return J(this,sr).continueRetry(),J(this,sr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(T=>T.options.queryFn);O&&this.setOptions(O.options)}const r=new AbortController,i=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(Ge(this,sl,!0),r.signal)})},s=()=>{const O=J4(this.options,n),M=(()=>{const A={client:J(this,il),queryKey:this.queryKey,meta:this.meta};return i(A),A})();return Ge(this,sl,!1),this.options.persister?this.options.persister(O,M,this):O(M)},c=(()=>{const O={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:J(this,il),state:this.state,fetchFn:s};return i(O),O})();(d=this.options.behavior)==null||d.onFetch(c,this),Ge(this,Xu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&_t(this,Ko,os).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),Ge(this,sr,tI({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:O=>{O instanceof Fb&&O.revert&&this.setState({...J(this,Xu),fetchStatus:"idle"}),r.abort()},onFail:(O,T)=>{_t(this,Ko,os).call(this,{type:"failed",failureCount:O,error:T})},onPause:()=>{_t(this,Ko,os).call(this,{type:"pause"})},onContinue:()=>{_t(this,Ko,os).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const O=await J(this,sr).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(y=(m=J(this,Po).config).onSuccess)==null||y.call(m,O,this),(b=(E=J(this,Po).config).onSettled)==null||b.call(E,O,this.state.error,this),O}catch(O){if(O instanceof Fb){if(O.silent)return J(this,sr).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw _t(this,Ko,os).call(this,{type:"error",error:O}),(C=(x=J(this,Po).config).onError)==null||C.call(x,O,this),(_=(R=J(this,Po).config).onSettled)==null||_.call(R,this.state.data,O,this),O}finally{this.scheduleGc()}}},Ku=new WeakMap,Xu=new WeakMap,Po=new WeakMap,il=new WeakMap,sr=new WeakMap,Od=new WeakMap,sl=new WeakMap,Ko=new WeakSet,os=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...rI(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ge(this,Xu,t.manual?i:void 0),i;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),nr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),J(this,Po).notify({query:this,type:"updated",action:t})})},rM);function rI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function LB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var gi,oM,PB=(oM=class extends Tc{constructor(t={}){super();et(this,gi);this.config=t,Ge(this,gi,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??OE(i,n);let l=this.get(s);return l||(l=new DB({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){J(this,gi).has(t.queryHash)||(J(this,gi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=J(this,gi).get(t.queryHash);n&&(t.destroy(),n===t&&J(this,gi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){nr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,gi).get(t)}getAll(){return[...J(this,gi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>IT(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>IT(t,r)):n}notify(t){nr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){nr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){nr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gi=new WeakMap,oM),mi,Tr,al,vi,Xs,iM,kB=(iM=class extends nI{constructor(t){super();et(this,vi);et(this,mi);et(this,Tr);et(this,al);this.mutationId=t.mutationId,Ge(this,Tr,t.mutationCache),Ge(this,mi,[]),this.state=t.state||oI(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,mi).includes(t)||(J(this,mi).push(t),this.clearGcTimeout(),J(this,Tr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ge(this,mi,J(this,mi).filter(n=>n!==t)),this.scheduleGc(),J(this,Tr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,mi).length||(this.state.status==="pending"?this.scheduleGc():J(this,Tr).remove(this))}continue(){var t;return((t=J(this,al))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,c,f,d,p,g,m,y,E,b,x,C,R,_,O,T,M,A,D;const n=()=>{_t(this,vi,Xs).call(this,{type:"continue"})};Ge(this,al,tI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,F)=>{_t(this,vi,Xs).call(this,{type:"failed",failureCount:L,error:F})},onPause:()=>{_t(this,vi,Xs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,Tr).canRun(this)}));const r=this.state.status==="pending",i=!J(this,al).canStart();try{if(r)n();else{_t(this,vi,Xs).call(this,{type:"pending",variables:t,isPaused:i}),await((l=(s=J(this,Tr).config).onMutate)==null?void 0:l.call(s,t,this));const F=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t));F!==this.state.context&&_t(this,vi,Xs).call(this,{type:"pending",context:F,variables:t,isPaused:i})}const L=await J(this,al).start();return await((p=(d=J(this,Tr).config).onSuccess)==null?void 0:p.call(d,L,t,this.state.context,this)),await((m=(g=this.options).onSuccess)==null?void 0:m.call(g,L,t,this.state.context)),await((E=(y=J(this,Tr).config).onSettled)==null?void 0:E.call(y,L,null,this.state.variables,this.state.context,this)),await((x=(b=this.options).onSettled)==null?void 0:x.call(b,L,null,t,this.state.context)),_t(this,vi,Xs).call(this,{type:"success",data:L}),L}catch(L){try{throw await((R=(C=J(this,Tr).config).onError)==null?void 0:R.call(C,L,t,this.state.context,this)),await((O=(_=this.options).onError)==null?void 0:O.call(_,L,t,this.state.context)),await((M=(T=J(this,Tr).config).onSettled)==null?void 0:M.call(T,void 0,L,this.state.variables,this.state.context,this)),await((D=(A=this.options).onSettled)==null?void 0:D.call(A,void 0,L,t,this.state.context)),L}finally{_t(this,vi,Xs).call(this,{type:"error",error:L})}}finally{J(this,Tr).runNext(this)}}},mi=new WeakMap,Tr=new WeakMap,al=new WeakMap,vi=new WeakSet,Xs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),nr.batch(()=>{J(this,mi).forEach(r=>{r.onMutationUpdate(t)}),J(this,Tr).notify({mutation:this,type:"updated",action:t})})},iM);function oI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var as,Xo,Md,sM,NB=(sM=class extends Tc{constructor(t={}){super();et(this,as);et(this,Xo);et(this,Md);this.config=t,Ge(this,as,new Set),Ge(this,Xo,new Map),Ge(this,Md,0)}build(t,n,r){const i=new kB({mutationCache:this,mutationId:++_p(this,Md)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){J(this,as).add(t);const n=Np(t);if(typeof n=="string"){const r=J(this,Xo).get(n);r?r.push(t):J(this,Xo).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(J(this,as).delete(t)){const n=Np(t);if(typeof n=="string"){const r=J(this,Xo).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&J(this,Xo).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Np(t);if(typeof n=="string"){const r=J(this,Xo).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Np(t);if(typeof n=="string"){const i=(r=J(this,Xo).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nr.batch(()=>{J(this,as).forEach(t=>{this.notify({type:"removed",mutation:t})}),J(this,as).clear(),J(this,Xo).clear()})}getAll(){return Array.from(J(this,as))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>DT(n,r))}findAll(t={}){return this.getAll().filter(n=>DT(t,n))}notify(t){nr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return nr.batch(()=>Promise.all(t.map(n=>n.continue().catch(Mr))))}},as=new WeakMap,Xo=new WeakMap,Md=new WeakMap,sM);function Np(e){var t;return(t=e.options.scope)==null?void 0:t.id}function kT(e){return{onFetch:(t,n)=>{var p,g,m,y,E;const r=t.options,i=(m=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:m.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let b=!1;const x=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},C=J4(t.options,t.fetchOptions),R=async(_,O,T)=>{if(b)return Promise.reject();if(O==null&&_.pages.length)return Promise.resolve(_);const A=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:O,direction:T?"backward":"forward",meta:t.options.meta};return x(B),B})(),D=await C(A),{maxPages:L}=t.options,F=T?_B:CB;return{pages:F(_.pages,D,L),pageParams:F(_.pageParams,O,L)}};if(i&&s.length){const _=i==="backward",O=_?FB:NT,T={pages:s,pageParams:l},M=O(r,T);c=await R(T,M,_)}else{const _=e??s.length;do{const O=f===0?l[0]??r.initialPageParam:NT(r,c);if(f>0&&O==null)break;c=await R(c,O),f++}while(f<_)}return c};t.options.persister?t.fetchFn=()=>{var b,x;return(x=(b=t.options).persister)==null?void 0:x.call(b,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function NT(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function FB(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var In,Zs,ea,Wu,Qu,ta,Ju,Zu,aM,Nee=(aM=class{constructor(e={}){et(this,In);et(this,Zs);et(this,ea);et(this,Wu);et(this,Qu);et(this,ta);et(this,Ju);et(this,Zu);Ge(this,In,e.queryCache||new PB),Ge(this,Zs,e.mutationCache||new NB),Ge(this,ea,e.defaultOptions||{}),Ge(this,Wu,new Map),Ge(this,Qu,new Map),Ge(this,ta,0)}mount(){_p(this,ta)._++,J(this,ta)===1&&(Ge(this,Ju,IE.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,In).onFocus())})),Ge(this,Zu,jg.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,In).onOnline())})))}unmount(){var e,t;_p(this,ta)._--,J(this,ta)===0&&((e=J(this,Ju))==null||e.call(this),Ge(this,Ju,void 0),(t=J(this,Zu))==null||t.call(this),Ge(this,Zu,void 0))}isFetching(e){return J(this,In).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,Zs).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,In).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=J(this,In).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(da(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return J(this,In).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=J(this,In).get(r.queryHash),s=i==null?void 0:i.state.data,l=wB(t,s);if(l!==void 0)return J(this,In).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return nr.batch(()=>J(this,In).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,In).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=J(this,In);nr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=J(this,In);return nr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=nr.batch(()=>J(this,In).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Mr).catch(Mr)}invalidateQueries(e,t={}){return nr.batch(()=>(J(this,In).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=nr.batch(()=>J(this,In).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Mr)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Mr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=J(this,In).build(this,t);return n.isStaleByTime(da(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Mr).catch(Mr)}fetchInfiniteQuery(e){return e.behavior=kT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Mr).catch(Mr)}ensureInfiniteQueryData(e){return e.behavior=kT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jg.isOnline()?J(this,Zs).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,In)}getMutationCache(){return J(this,Zs)}getDefaultOptions(){return J(this,ea)}setDefaultOptions(e){Ge(this,ea,e)}setQueryDefaults(e,t){J(this,Wu).set(El(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,Wu).values()],n={};return t.forEach(r=>{fd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){J(this,Qu).set(El(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,Qu).values()],n={};return t.forEach(r=>{fd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,ea).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=OE(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ME&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,ea).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,In).clear(),J(this,Zs).clear()}},In=new WeakMap,Zs=new WeakMap,ea=new WeakMap,Wu=new WeakMap,Qu=new WeakMap,ta=new WeakMap,Ju=new WeakMap,Zu=new WeakMap,aM),qr,Ft,Id,Ar,ll,ec,ls,na,Dd,tc,nc,ul,cl,ra,rc,Jt,Yf,zb,Bb,Hb,Ub,Vb,jb,$b,iI,lM,zB=(lM=class extends Tc{constructor(t,n){super();et(this,Jt);et(this,qr);et(this,Ft);et(this,Id);et(this,Ar);et(this,ll);et(this,ec);et(this,ls);et(this,na);et(this,Dd);et(this,tc);et(this,nc);et(this,ul);et(this,cl);et(this,ra);et(this,rc,new Set);this.options=n,Ge(this,qr,t),Ge(this,na,null),Ge(this,ls,Nb()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,Ft).addObserver(this),FT(J(this,Ft),this.options)?_t(this,Jt,Yf).call(this):this.updateResult(),_t(this,Jt,Ub).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qb(J(this,Ft),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qb(J(this,Ft),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_t(this,Jt,Vb).call(this),_t(this,Jt,jb).call(this),J(this,Ft).removeObserver(this)}setOptions(t){const n=this.options,r=J(this,Ft);if(this.options=J(this,qr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ko(this.options.enabled,J(this,Ft))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_t(this,Jt,$b).call(this),J(this,Ft).setOptions(this.options),n._defaulted&&!Vg(this.options,n)&&J(this,qr).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,Ft),observer:this});const i=this.hasListeners();i&&zT(J(this,Ft),r,this.options,n)&&_t(this,Jt,Yf).call(this),this.updateResult(),i&&(J(this,Ft)!==r||ko(this.options.enabled,J(this,Ft))!==ko(n.enabled,J(this,Ft))||da(this.options.staleTime,J(this,Ft))!==da(n.staleTime,J(this,Ft)))&&_t(this,Jt,zb).call(this);const s=_t(this,Jt,Bb).call(this);i&&(J(this,Ft)!==r||ko(this.options.enabled,J(this,Ft))!==ko(n.enabled,J(this,Ft))||s!==J(this,ra))&&_t(this,Jt,Hb).call(this,s)}getOptimisticResult(t){const n=J(this,qr).getQueryCache().build(J(this,qr),t),r=this.createResult(n,t);return HB(this,r)&&(Ge(this,Ar,r),Ge(this,ec,this.options),Ge(this,ll,J(this,Ft).state)),r}getCurrentResult(){return J(this,Ar)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&J(this,ls).status==="pending"&&J(this,ls).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){J(this,rc).add(t)}getCurrentQuery(){return J(this,Ft)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=J(this,qr).defaultQueryOptions(t),r=J(this,qr).getQueryCache().build(J(this,qr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return _t(this,Jt,Yf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,Ar)))}createResult(t,n){var L;const r=J(this,Ft),i=this.options,s=J(this,Ar),l=J(this,ll),c=J(this,ec),d=t!==r?t.state:J(this,Id),{state:p}=t;let g={...p},m=!1,y;if(n._optimisticResults){const F=this.hasListeners(),B=!F&&FT(t,n),j=F&&zT(t,r,n,i);(B||j)&&(g={...g,...rI(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:b,status:x}=g;y=g.data;let C=!1;if(n.placeholderData!==void 0&&y===void 0&&x==="pending"){let F;s!=null&&s.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(F=s.data,C=!0):F=typeof n.placeholderData=="function"?n.placeholderData((L=J(this,nc))==null?void 0:L.state.data,J(this,nc)):n.placeholderData,F!==void 0&&(x="success",y=kb(s==null?void 0:s.data,F,n),m=!0)}if(n.select&&y!==void 0&&!C)if(s&&y===(l==null?void 0:l.data)&&n.select===J(this,Dd))y=J(this,tc);else try{Ge(this,Dd,n.select),y=n.select(y),y=kb(s==null?void 0:s.data,y,n),Ge(this,tc,y),Ge(this,na,null)}catch(F){Ge(this,na,F)}J(this,na)&&(E=J(this,na),y=J(this,tc),b=Date.now(),x="error");const R=g.fetchStatus==="fetching",_=x==="pending",O=x==="error",T=_&&R,M=y!==void 0,D={status:x,fetchStatus:g.fetchStatus,isPending:_,isSuccess:x==="success",isError:O,isInitialLoading:T,isLoading:T,data:y,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:R,isRefetching:R&&!_,isLoadingError:O&&!M,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:O&&M,isStale:DE(t,n),refetch:this.refetch,promise:J(this,ls),isEnabled:ko(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const F=z=>{D.status==="error"?z.reject(D.error):D.data!==void 0&&z.resolve(D.data)},B=()=>{const z=Ge(this,ls,D.promise=Nb());F(z)},j=J(this,ls);switch(j.status){case"pending":t.queryHash===r.queryHash&&F(j);break;case"fulfilled":(D.status==="error"||D.data!==j.value)&&B();break;case"rejected":(D.status!=="error"||D.error!==j.reason)&&B();break}}return D}updateResult(){const t=J(this,Ar),n=this.createResult(J(this,Ft),this.options);if(Ge(this,ll,J(this,Ft).state),Ge(this,ec,this.options),J(this,ll).data!==void 0&&Ge(this,nc,J(this,Ft)),Vg(n,t))return;Ge(this,Ar,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,rc).size)return!0;const l=new Set(s??J(this,rc));return this.options.throwOnError&&l.add("error"),Object.keys(J(this,Ar)).some(c=>{const f=c;return J(this,Ar)[f]!==t[f]&&l.has(f)})};_t(this,Jt,iI).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_t(this,Jt,Ub).call(this)}},qr=new WeakMap,Ft=new WeakMap,Id=new WeakMap,Ar=new WeakMap,ll=new WeakMap,ec=new WeakMap,ls=new WeakMap,na=new WeakMap,Dd=new WeakMap,tc=new WeakMap,nc=new WeakMap,ul=new WeakMap,cl=new WeakMap,ra=new WeakMap,rc=new WeakMap,Jt=new WeakSet,Yf=function(t){_t(this,Jt,$b).call(this);let n=J(this,Ft).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Mr)),n},zb=function(){_t(this,Jt,Vb).call(this);const t=da(this.options.staleTime,J(this,Ft));if(Sl||J(this,Ar).isStale||!Lb(t))return;const r=W4(J(this,Ar).dataUpdatedAt,t)+1;Ge(this,ul,setTimeout(()=>{J(this,Ar).isStale||this.updateResult()},r))},Bb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,Ft)):this.options.refetchInterval)??!1},Hb=function(t){_t(this,Jt,jb).call(this),Ge(this,ra,t),!(Sl||ko(this.options.enabled,J(this,Ft))===!1||!Lb(J(this,ra))||J(this,ra)===0)&&Ge(this,cl,setInterval(()=>{(this.options.refetchIntervalInBackground||IE.isFocused())&&_t(this,Jt,Yf).call(this)},J(this,ra)))},Ub=function(){_t(this,Jt,zb).call(this),_t(this,Jt,Hb).call(this,_t(this,Jt,Bb).call(this))},Vb=function(){J(this,ul)&&(clearTimeout(J(this,ul)),Ge(this,ul,void 0))},jb=function(){J(this,cl)&&(clearInterval(J(this,cl)),Ge(this,cl,void 0))},$b=function(){const t=J(this,qr).getQueryCache().build(J(this,qr),this.options);if(t===J(this,Ft))return;const n=J(this,Ft);Ge(this,Ft,t),Ge(this,Id,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},iI=function(t){nr.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(J(this,Ar))}),J(this,qr).getQueryCache().notify({query:J(this,Ft),type:"observerResultsUpdated"})})},lM);function BB(e,t){return ko(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function FT(e,t){return BB(e,t)||e.state.data!==void 0&&qb(e,t,t.refetchOnMount)}function qb(e,t,n){if(ko(t.enabled,e)!==!1&&da(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&DE(e,t)}return!1}function zT(e,t,n,r){return(e!==t||ko(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&DE(e,n)}function DE(e,t){return ko(t.enabled,e)!==!1&&e.isStaleByTime(da(t.staleTime,e))}function HB(e,t){return!Vg(e.getCurrentResult(),t)}var oa,ia,Gr,us,gs,gg,Gb,uM,UB=(uM=class extends Tc{constructor(n,r){super();et(this,gs);et(this,oa);et(this,ia);et(this,Gr);et(this,us);Ge(this,oa,n),this.setOptions(r),this.bindMethods(),_t(this,gs,gg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=J(this,oa).defaultMutationOptions(n),Vg(this.options,r)||J(this,oa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Gr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&El(r.mutationKey)!==El(this.options.mutationKey)?this.reset():((i=J(this,Gr))==null?void 0:i.state.status)==="pending"&&J(this,Gr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=J(this,Gr))==null||n.removeObserver(this)}onMutationUpdate(n){_t(this,gs,gg).call(this),_t(this,gs,Gb).call(this,n)}getCurrentResult(){return J(this,ia)}reset(){var n;(n=J(this,Gr))==null||n.removeObserver(this),Ge(this,Gr,void 0),_t(this,gs,gg).call(this),_t(this,gs,Gb).call(this)}mutate(n,r){var i;return Ge(this,us,r),(i=J(this,Gr))==null||i.removeObserver(this),Ge(this,Gr,J(this,oa).getMutationCache().build(J(this,oa),this.options)),J(this,Gr).addObserver(this),J(this,Gr).execute(n)}},oa=new WeakMap,ia=new WeakMap,Gr=new WeakMap,us=new WeakMap,gs=new WeakSet,gg=function(){var r;const n=((r=J(this,Gr))==null?void 0:r.state)??oI();Ge(this,ia,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Gb=function(n){nr.batch(()=>{var r,i,s,l,c,f,d,p;if(J(this,us)&&this.hasListeners()){const g=J(this,ia).variables,m=J(this,ia).context;(n==null?void 0:n.type)==="success"?((i=(r=J(this,us)).onSuccess)==null||i.call(r,n.data,g,m),(l=(s=J(this,us)).onSettled)==null||l.call(s,n.data,null,g,m)):(n==null?void 0:n.type)==="error"&&((f=(c=J(this,us)).onError)==null||f.call(c,n.error,g,m),(p=(d=J(this,us)).onSettled)==null||p.call(d,void 0,n.error,g,m))}this.listeners.forEach(g=>{g(J(this,ia))})})},uM),sI=S.createContext(void 0),aI=e=>{const t=S.useContext(sI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},zee=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Re.jsx(sI.Provider,{value:e,children:t})),lI=S.createContext(!1),VB=()=>S.useContext(lI);lI.Provider;function jB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=S.createContext(jB()),qB=()=>S.useContext($B),GB=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},YB=e=>{S.useEffect(()=>{e.clearReset()},[e])},KB=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Z4(n,[e.error,r])),XB=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},WB=(e,t)=>e.isLoading&&e.isFetching&&!t,QB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,BT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function JB(e,t,n){var g,m,y,E,b;const r=VB(),i=qB(),s=aI(),l=s.defaultQueryOptions(e);(m=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||m.call(g,l),l._optimisticResults=r?"isRestoring":"optimistic",XB(l),GB(l,i),YB(i);const c=!s.getQueryCache().get(l.queryHash),[f]=S.useState(()=>new t(s,l)),d=f.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(x=>{const C=p?f.subscribe(nr.batchCalls(x)):Mr;return f.updateResult(),C},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),S.useEffect(()=>{f.setOptions(l)},[l,f]),QB(l,d))throw BT(l,f,i);if(KB({result:d,errorResetBoundary:i,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if((E=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||E.call(y,l,d),l.experimental_prefetchInRender&&!Sl&&WB(d,r)){const x=c?BT(l,f,i):(b=s.getQueryCache().get(l.queryHash))==null?void 0:b.promise;x==null||x.catch(Mr).finally(()=>{f.updateResult()})}return l.notifyOnChangeProps?d:f.trackResult(d)}function Bee(e,t){return JB(e,zB)}function Hee(e,t){const n=aI(),[r]=S.useState(()=>new UB(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const i=S.useSyncExternalStore(S.useCallback(l=>r.subscribe(nr.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((l,c)=>{r.mutate(l,c).catch(Mr)},[r]);if(i.error&&Z4(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const ZB="modulepreload",eH=function(e,t){return new URL(e,t).href},HT={},Uee=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const c=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));i=l(n.map(p=>{if(p=eH(p,r),p in HT)return;HT[p]=!0;const g=p.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(!!r)for(let b=c.length-1;b>=0;b--){const x=c[b];if(x.href===p&&(!g||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${p}"]${m}`))return;const E=document.createElement("link");if(E.rel=g?"stylesheet":ZB,g||(E.as="script"),E.crossOrigin="",E.href=p,d&&E.setAttribute("nonce",d),document.head.appendChild(E),g)return new Promise((b,x)=>{E.addEventListener("load",b),E.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var Vee=function(){return null};const tH=!1,dn=globalThis,hl="10.9.0";function Pl(){return Bm(dn),dn}function Bm(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||hl,t[hl]=t[hl]||{}}function Hm(e,t,n=dn){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[hl]=r[hl]||{};return i[e]||(i[e]=t())}const nH=["debug","info","warn","error","log","assert","trace"],$g={};function Um(e){if(!("console"in dn))return e();const t=dn.console,n={},r=Object.keys($g);r.forEach(i=>{const s=$g[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function rH(){PE().enabled=!0}function oH(){PE().enabled=!1}function iH(){return PE().enabled}function sH(...e){LE("log",...e)}function aH(...e){LE("warn",...e)}function lH(...e){LE("error",...e)}function LE(e,...t){}function PE(){return{enabled:!1}}const kE={enable:rH,disable:oH,isEnabled:iH,log:sH,warn:aH,error:lH},uI=50,wl="?",UT=/\(error: (.*)\)/,VT=/captureMessage|captureException/;function cI(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],l=n.split(`
12
+ `);for(let c=r;c<l.length;c++){let f=l[c];f.length>1024&&(f=f.slice(0,1024));const d=UT.test(f)?f.replace(UT,"$1"):f;if(!d.match(/\S*Error: /)){for(const p of t){const g=p(d);if(g){s.push(g);break}}if(s.length>=uI+i)break}}return cH(s.slice(i))}}function uH(e){return Array.isArray(e)?cI(...e):e}function cH(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Fp(t).function||"")&&t.pop(),t.reverse(),VT.test(Fp(t).function||"")&&(t.pop(),VT.test(Fp(t).function||"")&&t.pop()),t.slice(0,uI).map(n=>({...n,filename:n.filename||Fp(t).filename,function:n.function||wl}))}function Fp(e){return e[e.length-1]||{}}const i1="<anonymous>";function Rl(e){try{return!e||typeof e!="function"?i1:e.name||i1}catch{return i1}}function jT(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const mg={},$T={};function Ta(e,t){mg[e]=mg[e]||[],mg[e].push(t)}function Aa(e,t){if(!$T[e]){$T[e]=!0;try{t()}catch{}}}function Ho(e,t){const n=e&&mg[e];if(n)for(const r of n)try{r(t)}catch{}}let s1=null;function fI(e){const t="error";Ta(t,e),Aa(t,fH)}function fH(){s1=dn.onerror,dn.onerror=function(e,t,n,r,i){return Ho("error",{column:r,error:i,line:n,msg:e,url:t}),s1?s1.apply(this,arguments):!1},dn.onerror.__SENTRY_INSTRUMENTED__=!0}let a1=null;function dI(e){const t="unhandledrejection";Ta(t,e),Aa(t,dH)}function dH(){a1=dn.onunhandledrejection,dn.onunhandledrejection=function(e){return Ho("unhandledrejection",e),a1?a1.apply(this,arguments):!0},dn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const hI=Object.prototype.toString;function Vm(e){switch(hI.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return bs(e,Error)}}function Ac(e,t){return hI.call(e)===`[object ${t}]`}function pI(e){return Ac(e,"ErrorEvent")}function qT(e){return Ac(e,"DOMError")}function hH(e){return Ac(e,"DOMException")}function ps(e){return Ac(e,"String")}function NE(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function dd(e){return e===null||NE(e)||typeof e!="object"&&typeof e!="function"}function hd(e){return Ac(e,"Object")}function jm(e){return typeof Event<"u"&&bs(e,Event)}function pH(e){return typeof Element<"u"&&bs(e,Element)}function gH(e){return Ac(e,"RegExp")}function Ud(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function mH(e){return hd(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function bs(e,t){try{return e instanceof t}catch{return!1}}function gI(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function mI(e){return typeof Request<"u"&&bs(e,Request)}const FE=dn,vH=80;function Oi(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,l=0;const c=" > ",f=c.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||vH;for(;n&&s++<r&&(d=yH(n,p),!(d==="html"||s>1&&l+i.length*f+d.length>=g));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(c)}catch{return"<unknown>"}}function yH(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(FE.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t!=null&&t.length?t.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(i!=null&&i.length)i.forEach(l=>{r.push(`[${l[0]}="${l[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const l=n.className;if(l&&ps(l)){const c=l.split(/\s+/);for(const f of c)r.push(`.${f}`)}}const s=["aria-label","type","name","title","alt"];for(const l of s){const c=n.getAttribute(l);c&&r.push(`[${l}="${c}"]`)}return r.join("")}function Vd(){try{return FE.document.location.href}catch{return""}}function vI(e){if(!FE.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function qg(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function GT(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{gI(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function vg(e,t,n=!1){return ps(e)?gH(t)?t.test(e):ps(t)?n?e===t:e.includes(t):!1:!1}function ha(e,t=[],n=!1){return t.some(r=>vg(e,r,n))}function go(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&yI(i,r);try{e[t]=i}catch{}}function Dr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function yI(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Dr(e,"__sentry_original__",t)}catch{}}function zE(e){return e.__sentry_original__}function bI(e){if(Vm(e))return{message:e.message,name:e.name,stack:e.stack,...KT(e)};if(jm(e)){const t={type:e.type,target:YT(e.target),currentTarget:YT(e.currentTarget),...KT(e)};return typeof CustomEvent<"u"&&bs(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function YT(e){try{return pH(e)?Oi(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function KT(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function bH(e,t=40){const n=Object.keys(bI(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return qg(r,t);for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");if(!(s.length>t))return i===n.length?s:qg(s,t)}return""}function SH(){const e=dn;return e.crypto||e.msCrypto}function Uo(e=SH()){let t=()=>Math.random()*16;try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e!=null&&e.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function SI(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function EH(e){const{message:t,event_id:n}=e;if(t)return t;const r=SI(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Yb(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function lc(e,t){const n=SI(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i==null?void 0:i.data,...t.data};n.mechanism.data=s}}function XT(e){if(wH(e))return!0;try{Dr(e,"__sentry_captured__",!0)}catch{}return!1}function wH(e){try{return e.__sentry_captured__}catch{}}const EI=1e3;function kl(){return Date.now()/EI}function RH(){const{performance:e}=dn;if(!(e!=null&&e.now)||!e.timeOrigin)return kl;const t=e.timeOrigin;return()=>(t+e.now())/EI}let WT;function yr(){return(WT??(WT=RH()))()}let l1;function xH(){var p;const{performance:e}=dn;if(!(e!=null&&e.now))return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,l=(p=e.timing)==null?void 0:p.navigationStart,f=typeof l=="number"?Math.abs(l+n-r):t,d=f<t;return s||d?i<=f?[e.timeOrigin,"timeOrigin"]:[l,"navigationStart"]:[r,"dateNow"]}function wo(){return l1||(l1=xH()),l1[0]}function CH(e){const t=yr(),n={sid:Uo(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>TH(n)};return e&&uc(n,e),n}function uc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||yr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Uo()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function _H(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),uc(e,n)}function TH(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function jd(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=jd(r[i],t[i],n-1));return r}function ma(){return Uo()}function $d(){return Uo().substring(16)}const Kb="_sentrySpan";function cc(e,t){t?Dr(e,Kb,t):delete e[Kb]}function Gg(e){return e[Kb]}const AH=100;class Mi{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ma(),sampleRand:Math.random()}}clone(){const t=new Mi;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,cc(t,Gg(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&uc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Mi?n.getScopeData():hd(n)?t:void 0,{tags:i,extra:s,user:l,contexts:c,level:f,fingerprint:d=[],propagationContext:p}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,cc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ma(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var s;const r=typeof n=="number"?n:AH;if(r<=0)return this;const i={timestamp:kl(),...t,message:t.message?qg(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Gg(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=jd(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||Uo();if(!this._client)return r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=(r==null?void 0:r.event_id)||Uo();if(!this._client)return i;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||Uo();return this._client&&this._client.captureEvent(t,{...n,event_id:r},this),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function OH(){return Hm("defaultCurrentScope",()=>new Mi)}function MH(){return Hm("defaultIsolationScope",()=>new Mi)}class IH{constructor(t,n){let r;t?r=t:r=new Mi;let i;n?i=n:i=new Mi,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return Ud(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function fc(){const e=Pl(),t=Bm(e);return t.stack=t.stack||new IH(OH(),MH())}function DH(e){return fc().withScope(e)}function LH(e,t){const n=fc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function QT(e){return fc().withScope(()=>e(fc().getIsolationScope()))}function PH(){return{withIsolationScope:QT,withScope:DH,withSetScope:LH,withSetIsolationScope:(e,t)=>QT(t),getCurrentScope:()=>fc().getScope(),getIsolationScope:()=>fc().getIsolationScope()}}function Oc(e){const t=Bm(e);return t.acs?t.acs:PH()}function on(){const e=Pl();return Oc(e).getCurrentScope()}function xs(){const e=Pl();return Oc(e).getIsolationScope()}function kH(){return Hm("globalScope",()=>new Mi)}function Mc(...e){const t=Pl(),n=Oc(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Kt(){return on().getClient()}function NH(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,s={trace_id:n,span_id:i||$d()};return r&&(s.parent_span_id=r),s}const Yr="sentry.source",BE="sentry.sample_rate",wI="sentry.previous_trace_sample_rate",ni="sentry.op",Un="sentry.origin",Yg="sentry.idle_span_finish_reason",qd="sentry.measurement_unit",Gd="sentry.measurement_value",JT="sentry.custom_span_name",HE="sentry.profile_id",Ic="sentry.exclusive_time",FH="sentry.link.type",zH=0,RI=1,Zn=2;function BH(e){if(e<400&&e>=100)return{code:RI};if(e>=400&&e<500)switch(e){case 401:return{code:Zn,message:"unauthenticated"};case 403:return{code:Zn,message:"permission_denied"};case 404:return{code:Zn,message:"not_found"};case 409:return{code:Zn,message:"already_exists"};case 413:return{code:Zn,message:"failed_precondition"};case 429:return{code:Zn,message:"resource_exhausted"};case 499:return{code:Zn,message:"cancelled"};default:return{code:Zn,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Zn,message:"unimplemented"};case 503:return{code:Zn,message:"unavailable"};case 504:return{code:Zn,message:"deadline_exceeded"};default:return{code:Zn,message:"internal_error"}}return{code:Zn,message:"unknown_error"}}function xI(e,t){e.setAttribute("http.response.status_code",t);const n=BH(t);n.message!=="unknown_error"&&e.setStatus(n)}const CI="_sentryScope",_I="_sentryIsolationScope";function HH(e,t,n){e&&(Dr(e,_I,n),Dr(e,CI,t))}function Kg(e){return{scope:e[CI],isolationScope:e[_I]}}const UE="sentry-",UH=/^sentry-/,VH=8192;function TI(e){const t=$H(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(UH)){const l=i.slice(UE.length);r[l]=s}return r},{});if(Object.keys(n).length>0)return n}function jH(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${UE}${r}`]=i),n),{});return qH(t)}function $H(e){if(!(!e||!ps(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=ZT(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):ZT(e)}function ZT(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function qH(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,l=i===0?s:`${t},${s}`;return l.length>VH?t:l},"")}const GH=/^o(\d+)\./,YH=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Dc(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:l,protocol:c,publicKey:f}=e;return`${c}://${f}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${l}`}function KH(e){const t=YH.exec(e);if(!t){Um(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",l="",c=""]=t.slice(1);let f="",d=c;const p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){const g=d.match(/^\d+/);g&&(d=g[0])}return AI({host:s,pass:i,path:f,projectId:d,port:l,protocol:n,publicKey:r})}function AI(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function XH(e){return!0}function WH(e){const t=e.match(GH);return t==null?void 0:t[1]}function QH(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=WH(n)),r}function OI(e){const t=typeof e=="string"?KH(e):AI(e);if(!(!t||!XH()))return t}function pd(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const MI=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function JH(e){if(!e)return;const t=e.match(MI);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function ZH(e,t){const n=JH(e),r=TI(t);if(!(n!=null&&n.traceId))return{traceId:ma(),sampleRand:Math.random()};const i=e7(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:l,parentSampled:c}=n;return{traceId:s,parentSpanId:l,sampled:c,dsc:r||{},sampleRand:i}}function II(e=ma(),t=$d(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function e7(e,t){const n=pd(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=pd(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const DI=0,VE=1;let e2=!1;function t7(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:l,origin:c,links:f}=rn(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:l,origin:c,links:f}}function n7(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:rn(e).parent_span_id,s=Kg(e).scope,l=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||$d():t;return{parent_span_id:i,span_id:l,trace_id:n}}function r7(e){const{traceId:t,spanId:n}=e.spanContext(),r=Lc(e);return II(t,n,r)}function LI(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===VE,attributes:s,...i}))}function pl(e){return typeof e=="number"?t2(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?t2(e.getTime()):yr()}function t2(e){return e>9999999999?e/1e3:e}function rn(e){var r;if(i7(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(o7(e)){const{attributes:i,startTime:s,name:l,endTime:c,status:f,links:d}=e,p="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:i,description:l,parent_span_id:p,start_timestamp:pl(s),timestamp:pl(c)||void 0,status:PI(f),op:i[ni],origin:i[Un],links:LI(d)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function o7(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function i7(e){return typeof e.getSpanJSON=="function"}function Lc(e){const{traceFlags:t}=e.spanContext();return t===VE}function PI(e){if(!(!e||e.code===zH))return e.code===RI?"ok":e.message||"unknown_error"}const gl="_sentryChildSpans",Xb="_sentryRootSpan";function kI(e,t){const n=e[Xb]||e;Dr(t,Xb,n),e[gl]?e[gl].add(t):Dr(e,gl,new Set([t]))}function s7(e,t){e[gl]&&e[gl].delete(t)}function yg(e){const t=new Set;function n(r){if(!t.has(r)&&Lc(r)){t.add(r);const i=r[gl]?Array.from(r[gl]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function Wr(e){return e[Xb]||e}function Lr(){const e=Pl(),t=Oc(e);return t.getActiveSpan?t.getActiveSpan():Gg(on())}function Wb(){e2||(Um(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),e2=!0)}let n2=!1;function a7(){if(n2)return;function e(){const t=Lr(),n=t&&Wr(t);n&&n.setStatus({code:Zn,message:"internal_error"})}e.tag="sentry_tracingErrorCallback",n2=!0,fI(e),dI(e)}function va(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=Kt())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const jE="production",NI="_frozenDsc";function bg(e,t){Dr(e,NI,t)}function FI(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||jE,release:n.release,public_key:r,trace_id:e,org_id:QH(t)};return t.emit("createDsc",i),i}function zI(e,t){const n=t.getPropagationContext();return n.dsc||FI(n.traceId,e)}function ya(e){var E;const t=Kt();if(!t)return{};const n=Wr(e),r=rn(n),i=r.data,s=n.spanContext().traceState,l=(s==null?void 0:s.get("sentry.sample_rate"))??i[BE]??i[wI];function c(b){return(typeof l=="number"||typeof l=="string")&&(b.sample_rate=`${l}`),b}const f=n[NI];if(f)return c(f);const d=s==null?void 0:s.get("sentry.dsc"),p=d&&TI(d);if(p)return c(p);const g=FI(e.spanContext().traceId,t),m=i[Yr],y=r.description;return m!=="url"&&y&&(g.transaction=y),va()&&(g.sampled=String(Lc(n)),g.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((E=Kg(n).scope)==null?void 0:E.getPropagationContext().sampleRand.toString())),c(g),t.emit("createDsc",g,n),g}class ba{constructor(t={}){this._traceId=t.traceId||ma(),this._spanId=t.spanId||$d()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:DI}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function is(e,t=100,n=1/0){try{return Qb("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function BI(e,t=3,n=100*1024){const r=is(e,t);return f7(r)>n?BI(e,t-1,n):r}function Qb(e,t,n=1/0,r=1/0,i=d7()){const[s,l]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=l7(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return c.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const y=d.toJSON();return Qb("",y,f-1,r,i)}catch{}const p=Array.isArray(t)?[]:{};let g=0;const m=bI(t);for(const y in m){if(!Object.prototype.hasOwnProperty.call(m,y))continue;if(g>=r){p[y]="[MaxProperties ~]";break}const E=m[y];p[y]=Qb(y,E,f-1,r,i),g++}return l(t),p}function l7(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(gI(t))return"[VueViewModel]";if(mH(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Rl(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=u7(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function u7(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function c7(e){return~-encodeURI(e).split(/%..|./).length}function f7(e){return c7(JSON.stringify(e))}function d7(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Pc(e,t=[]){return[e,t]}function h7(e,t){const[n,r]=e;return[n,[...r,t]]}function r2(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Jb(e){const t=Bm(dn);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function p7(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[Jb(r),s]:r.push(typeof s=="string"?Jb(s):s)}for(const s of n){const[l,c]=s;if(i(`
13
+ ${JSON.stringify(l)}
14
+ `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let f;try{f=JSON.stringify(c)}catch{f=JSON.stringify(is(c))}i(f)}}return typeof r=="string"?r:g7(r)}function g7(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function m7(e){return[{type:"span"},e]}function v7(e){const t=typeof e.data=="string"?Jb(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const y7={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function o2(e){return y7[e]}function HI(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function b7(e,t,n,r){var s;const i=(s=e.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Dc(r)},...i&&{trace:i}}}function Zb(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(E7(n)){if(vg(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;const r=n.name?vg(e.description,n.name):!0,i=n.op?e.op&&vg(e.op,n.op):!0;if(r&&i)return!0}return!1}function S7(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function E7(e){return typeof e=="string"||e instanceof RegExp}function w7(e,t){var r,i,s,l;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((i=e.sdk)==null?void 0:i.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(l=e.sdk)==null?void 0:l.settings,...t.settings}:void 0},e}function R7(e,t,n,r){const i=HI(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Dc(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Pc(s,[l])}function x7(e,t,n,r){const i=HI(n),s=e.type&&e.type!=="replay_event"?e.type:"event";w7(e,n==null?void 0:n.sdk);const l=b7(e,i,r,t);return delete e.sdkProcessingMetadata,Pc(l,[[{type:s},e]])}function C7(e,t){function n(y){return!!y.trace_id&&!!y.public_key}const r=ya(e[0]),i=t==null?void 0:t.getDsn(),s=t==null?void 0:t.getOptions().tunnel,l={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:Dc(i)}},{beforeSendSpan:c,ignoreSpans:f}=(t==null?void 0:t.getOptions())||{},d=f!=null&&f.length?e.filter(y=>!Zb(rn(y),f)):e,p=e.length-d.length;p&&(t==null||t.recordDroppedEvent("before_send","span",p));const g=c?y=>{const E=rn(y),b=c(E);return b||(Wb(),E)}:rn,m=[];for(const y of d){const E=g(y);E&&m.push(m7(E))}return Pc(l,m)}function _7(e,t,n,r=Lr()){const i=r&&Wr(r);i&&i.addEvent(e,{[Gd]:t,[qd]:n})}function i2(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[qd],s=r[Gd];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const s2=1e3;class $m{constructor(t={}){this._traceId=t.traceId||ma(),this._spanId=t.spanId||$d(),this._startTime=t.startTimestamp||yr(),this._links=t.links,this._attributes={},this.setAttributes({[Un]:"manual",[ni]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?VE:DI}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=pl(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Yr,"custom"),this}end(t){this._endTime||(this._endTime=pl(t),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ni],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:PI(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Un],profile_id:this._attributes[HE],exclusive_time:this._attributes[Ic],measurements:i2(this._events),is_segment:this._isStandaloneSpan&&Wr(this)===this||void 0,segment_id:this._isStandaloneSpan?Wr(this).spanContext().spanId:void 0,links:LI(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){const i=a2(n)?n:r||yr(),s=a2(n)?{}:n||{},l={name:t,time:pl(i),attributes:s};return this._events.push(l),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Kt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Wr(this)))return;if(this._isStandaloneSpan){this._sampled?A7(C7([this],t)):t&&t.recordDroppedEvent("sample_rate","span");return}const r=this._convertSpanToTransaction();r&&(Kg(this).scope||on()).captureEvent(r)}_convertSpanToTransaction(){var p;if(!l2(rn(this)))return;this._name||(this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Kg(this),r=(p=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:p.normalizedRequest;if(this._sampled!==!0)return;const s=yg(this).filter(g=>g!==this&&!T7(g)).map(g=>rn(g)).filter(l2),l=this._attributes[Yr];delete this._attributes[JT],s.forEach(g=>{delete g.data[JT]});const c={contexts:{trace:t7(this)},spans:s.length>s2?s.sort((g,m)=>g.start_timestamp-m.start_timestamp).slice(0,s2):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:ya(this)},request:r,...l&&{transaction_info:{source:l}}},f=i2(this._events);return f&&Object.keys(f).length&&(c.measurements=f),c}}function a2(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function l2(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function T7(e){return e instanceof $m&&e.isStandaloneSpan()}function A7(e){const t=Kt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function O7(e,t,n=()=>{}){let r;try{r=e()}catch(i){throw t(i),n(),i}return M7(r,t,n)}function M7(e,t,n){return Ud(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function I7(e,t,n){if(!va(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:c=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):c}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const s=pd(i);return s===void 0?[!1]:s?[n<s,s,r]:[!1,s,r]}const UI="__SENTRY_SUPPRESS_TRACING__";function D7(e,t){const n=qE();if(n.startSpan)return n.startSpan(e,t);const r=jI(e),{forceTransaction:i,parentSpan:s,scope:l}=e,c=l==null?void 0:l.clone();return Mc(c,()=>P7(s)(()=>{const d=on(),p=$I(d,s),m=e.onlyIfParent&&!p?new ba:VI({parentSpan:p,spanArguments:r,forceTransaction:i,scope:d});return cc(d,m),O7(()=>t(m),()=>{const{status:y}=rn(m);m.isRecording()&&(!y||y==="ok")&&m.setStatus({code:Zn,message:"internal_error"})},()=>{m.end()})}))}function kc(e){const t=qE();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=jI(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?l=>Mc(e.scope,l):i!==void 0?l=>$E(i,l):l=>l())(()=>{const l=on(),c=$I(l,i);return e.onlyIfParent&&!c?new ba:VI({parentSpan:c,spanArguments:n,forceTransaction:r,scope:l})})}function $E(e,t){const n=qE();return n.withActiveSpan?n.withActiveSpan(e,t):Mc(r=>(cc(r,e||void 0),t(r)))}function VI({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!va()){const l=new ba;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...ya(l)};bg(l,c)}return l}const i=xs();let s;if(e&&!n)s=L7(e,r,t),kI(e,s);else if(e){const l=ya(e),{traceId:c,spanId:f}=e.spanContext(),d=Lc(e);s=u2({traceId:c,parentSpanId:f,...t},r,d),bg(s,l)}else{const{traceId:l,dsc:c,parentSpanId:f,sampled:d}={...i.getPropagationContext(),...r.getPropagationContext()};s=u2({traceId:l,parentSpanId:f,...t},r,d),c&&bg(s,c)}return HH(s,r,i),s}function jI(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=pl(e.startTime),delete r.startTime,r}return n}function qE(){const e=Pl();return Oc(e)}function u2(e,t,n){var E;const r=Kt(),i=(r==null?void 0:r.getOptions())||{},{name:s=""}=e,l={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r==null||r.emit("beforeSampling",l,{decision:!1});const c=l.parentSampled??n,f=l.spanAttributes,d=t.getPropagationContext(),[p,g,m]=t.getScopeData().sdkProcessingMetadata[UI]?[!1]:I7(i,{name:s,parentSampled:c,attributes:f,parentSampleRate:pd((E=d.dsc)==null?void 0:E.sample_rate)},d.sampleRand),y=new $m({...e,attributes:{[Yr]:"custom",[BE]:g!==void 0&&m?g:void 0,...f},sampled:p});return!p&&r&&r.recordDroppedEvent("sample_rate","transaction"),r&&r.emit("spanStart",y),y}function L7(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[UI]?!1:Lc(e),l=s?new $m({...n,parentSpanId:r,traceId:i,sampled:s}):new ba({traceId:i});kI(e,l);const c=Kt();return c&&(c.emit("spanStart",l),n.endTimestamp&&c.emit("spanEnd",l)),l}function $I(e,t){if(t)return t;if(t===null)return;const n=Gg(e);if(!n)return;const r=Kt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Wr(n):n}function P7(e){return e!==void 0?t=>$E(e,t):t=>t()}const Sg={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},k7="heartbeatFailed",N7="idleTimeout",F7="finalTimeout",z7="externalFinish";function qI(e,t={}){const n=new Map;let r=!1,i,s=z7,l=!t.disableAutoFinish;const c=[],{idleTimeout:f=Sg.idleTimeout,finalTimeout:d=Sg.finalTimeout,childSpanTimeout:p=Sg.childSpanTimeout,beforeSpanEnd:g}=t,m=Kt();if(!m||!va()){const M=new ba,A={sample_rate:"0",sampled:"false",...ya(M)};return bg(M,A),M}const y=on(),E=Lr(),b=B7(e);b.end=new Proxy(b.end,{apply(M,A,D){if(g&&g(b),A instanceof ba)return;const[L,...F]=D,B=L||yr(),j=pl(B),z=yg(b).filter(U=>U!==b);if(!z.length)return T(j),Reflect.apply(M,A,[j,...F]);const G=z.map(U=>rn(U).timestamp).filter(U=>!!U),V=G.length?Math.max(...G):void 0,P=rn(b).start_timestamp,q=Math.min(P?P+d/1e3:1/0,Math.max(P||-1/0,Math.min(j,V||1/0)));return T(q),Reflect.apply(M,A,[q,...F])}});function x(){i&&(clearTimeout(i),i=void 0)}function C(M){x(),i=setTimeout(()=>{!r&&n.size===0&&l&&(s=N7,b.end(M))},f)}function R(M){i=setTimeout(()=>{!r&&l&&(s=k7,b.end(M))},p)}function _(M){x(),n.set(M,!0);const A=yr();R(A+p/1e3)}function O(M){if(n.has(M)&&n.delete(M),n.size===0){const A=yr();C(A+f/1e3)}}function T(M){r=!0,n.clear(),c.forEach(j=>j()),cc(y,E);const A=rn(b),{start_timestamp:D}=A;if(!D)return;A.data[Yg]||b.setAttribute(Yg,s),kE.log(`[Tracing] Idle span "${A.op}" finished`);const F=yg(b).filter(j=>j!==b);let B=0;F.forEach(j=>{j.isRecording()&&(j.setStatus({code:Zn,message:"cancelled"}),j.end(M));const z=rn(j),{timestamp:G=0,start_timestamp:V=0}=z,P=V<=M,q=(d+f)/1e3;(!(G-V<=q)||!P)&&(s7(b,j),B++)}),B>0&&b.setAttribute("sentry.idle_span_discarded_spans",B)}return c.push(m.on("spanStart",M=>{if(r||M===b||rn(M).timestamp||M instanceof $m&&M.isStandaloneSpan())return;yg(b).includes(M)&&_(M.spanContext().spanId)})),c.push(m.on("spanEnd",M=>{r||O(M.spanContext().spanId)})),c.push(m.on("idleSpanEnableAutoFinish",M=>{M===b&&(l=!0,C(),n.size&&R())})),t.disableAutoFinish||C(),setTimeout(()=>{r||(b.setStatus({code:Zn,message:"deadline_exceeded"}),s=F7,b.end())},d),b}function B7(e){const t=kc(e);return cc(on(),t),t}const u1=0,c2=1,f2=2;function xl(e){return new Sa(t=>{t(e)})}function Xg(e){return new Sa((t,n)=>{n(e)})}class Sa{constructor(t){this._state=u1,this._handlers=[],this._runExecutor(t)}then(t,n){return new Sa((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(l){i(l)}},s=>{if(!n)i(s);else try{r(n(s))}catch(l){i(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Sa((n,r)=>{let i,s;return this.then(l=>{s=!1,i=l,t&&t()},l=>{s=!0,i=l,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===u1)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===c2&&n[1](this._value),this._state===f2&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,l)=>{if(this._state===u1){if(Ud(l)){l.then(r,i);return}this._state=s,this._value=l,this._executeHandlers()}},r=s=>{n(c2,s)},i=s=>{n(f2,s)};try{t(r,i)}catch(s){i(s)}}}function eS(e,t,n,r=0){return new Sa((i,s)=>{const l=e[r];if(t===null||typeof l!="function")i(t);else{const c=l({...t},n);Ud(c)?c.then(f=>eS(e,f,n,r+1).then(i)).then(null,s):eS(e,c,n,r+1).then(i).then(null,s)}})}function H7(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;U7(e,t),r&&$7(e,r),q7(e,n),V7(e,i),j7(e,s)}function d2(e,t){const{extra:n,tags:r,user:i,contexts:s,level:l,sdkProcessingMetadata:c,breadcrumbs:f,fingerprint:d,eventProcessors:p,attachments:g,propagationContext:m,transactionName:y,span:E}=t;zp(e,"extra",n),zp(e,"tags",r),zp(e,"user",i),zp(e,"contexts",s),e.sdkProcessingMetadata=jd(e.sdkProcessingMetadata,c,2),l&&(e.level=l),y&&(e.transactionName=y),E&&(e.span=E),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...m}}function zp(e,t,n){e[t]=jd(e[t],n,1)}function U7(e,t){const{extra:n,tags:r,user:i,contexts:s,level:l,transactionName:c}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),l&&(e.level=l),c&&e.type!=="transaction"&&(e.transaction=c)}function V7(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function j7(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function $7(e,t){e.contexts={trace:n7(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ya(t),...e.sdkProcessingMetadata};const n=Wr(t),r=rn(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function q7(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let Bp,h2,Hp;function G7(e){const t=dn._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Hp&&n.length===h2||(h2=n.length,Hp=n.reduce((r,i)=>{Bp||(Bp={});const s=Bp[i];if(s)r[s[0]]=s[1];else{const l=e(i);for(let c=l.length-1;c>=0;c--){const f=l[c],d=f==null?void 0:f.filename,p=t[i];if(d&&p){r[d]=p,Bp[i]=[d,p];break}}}return r},{})),Hp}function Y7(e,t,n,r,i,s){const{normalizeDepth:l=3,normalizeMaxBreadth:c=1e3}=e,f={...t,event_id:t.event_id||n.event_id||Uo(),timestamp:t.timestamp||kl()},d=n.integrations||e.integrations.map(x=>x.name);K7(f,e),Q7(f,d),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&X7(f,e.stackParser);const p=Z7(r,n.captureContext);n.mechanism&&lc(f,n.mechanism);const g=i?i.getEventProcessors():[],m=kH().getScopeData();if(s){const x=s.getScopeData();d2(m,x)}if(p){const x=p.getScopeData();d2(m,x)}const y=[...n.attachments||[],...m.attachments];y.length&&(n.attachments=y),H7(f,m);const E=[...g,...m.eventProcessors];return eS(E,f,n).then(x=>(x&&W7(x),typeof l=="number"&&l>0?J7(x,l,c):x))}function K7(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||n||jE,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const l=e.request;l!=null&&l.url&&(l.url=qg(l.url,s))}function X7(e,t){var r,i;const n=G7(t);(i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,c;(c=(l=s.stacktrace)==null?void 0:l.frames)==null||c.forEach(f=>{f.filename&&(f.debug_id=n[f.filename])})})}function W7(e){var r,i;const t={};if((i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,c;(c=(l=s.stacktrace)==null?void 0:l.frames)==null||c.forEach(f=>{f.debug_id&&(f.abs_path?t[f.abs_path]=f.debug_id:f.filename&&(t[f.filename]=f.debug_id),delete f.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,l])=>{n.push({type:"sourcemap",code_file:s,debug_id:l})})}function Q7(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function J7(e,t,n){var i,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(l=>({...l,...l.data&&{data:is(l.data,t,n)}}))},...e.user&&{user:is(e.user,t,n)},...e.contexts&&{contexts:is(e.contexts,t,n)},...e.extra&&{extra:is(e.extra,t,n)}};return(i=e.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=is(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(l=>({...l,...l.data&&{data:is(l.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=is(e.contexts.flags,3,n)),r}function Z7(e,t){if(!t)return e;const n=e?e.clone():new Mi;return n.update(t),n}function eU(e){if(e)return tU(e)?{captureContext:e}:rU(e)?{captureContext:e}:e}function tU(e){return e instanceof Mi||typeof e=="function"}const nU=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function rU(e){return Object.keys(e).some(t=>nU.includes(t))}function GI(e,t){return on().captureException(e,eU(t))}function YI(e,t){return on().captureEvent(e,t)}function oU(e,t){xs().setContext(e,t)}function iU(){return xs().lastEventId()}function sU(){const e=Kt();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function p2(e){const t=xs(),n=on(),{userAgent:r}=dn.navigator||{},i=CH({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&uc(s,{status:"exited"}),KI(),t.setSession(i),i}function KI(){const e=xs(),n=on().getSession()||e.getSession();n&&_H(n),XI(),e.setSession()}function XI(){const e=xs(),t=Kt(),n=e.getSession();n&&t&&t.captureSession(n)}function g2(e=!1){if(e){KI();return}XI()}const aU="7";function WI(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function lU(e){return`${WI(e)}${e.projectId}/envelope/`}function uU(e,t){const n={sentry_version:aU};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function cU(e,t,n){return t||`${lU(e)}?${uU(e,n)}`}function fU(e,t){const n=OI(e);if(!n)return"";const r=`${WI(n)}embed/error-page/`;let i=`dsn=${Dc(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const l=t.user;if(!l)continue;l.name&&(i+=`&name=${encodeURIComponent(l.name)}`),l.email&&(i+=`&email=${encodeURIComponent(l.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const m2=[];function dU(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function hU(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return dU(r)}function pU(e,t){const n={};return t.forEach(r=>{r&&QI(e,r,n)}),n}function v2(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function QI(e,t,n){if(!n[t.name]){if(n[t.name]=t,m2.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),m2.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,l)=>r(s,l,e),{id:t.name});e.addEventProcessor(i)}}}function gU(e,t,n){const r=[{type:"client_report"},{timestamp:kl(),discarded_events:e}];return Pc(t?{dsn:t}:{},[r])}function mU(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function vU(e){var f;const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:l,op:c}=((f=e.contexts)==null?void 0:f.trace)??{};return{data:l??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:l==null?void 0:l[HE],exclusive_time:l==null?void 0:l[Ic],measurements:e.measurements,is_segment:!0}}function yU(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[HE]:e.profile_id},...e.exclusive_time&&{[Ic]:e.exclusive_time}}}},measurements:e.measurements}}const JI=Symbol.for("SentryInternalError"),ZI=Symbol.for("SentryDoNotSendEventError");function Eg(e){return{message:e,[JI]:!0}}function c1(e){return{message:e,[ZI]:!0}}function bU(e){return!!e&&typeof e=="object"&&JI in e}function SU(e){return!!e&&typeof e=="object"&&ZI in e}class EU{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn&&(this._dsn=OI(t.dsn)),this._dsn){const n=cU(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const i=Uo();if(XT(t))return i;const s={event_id:i,...n};return this._process(this.eventFromException(t,s).then(l=>this._captureEvent(l,s,r))),s.event_id}captureMessage(t,n,r,i){const s={event_id:Uo(),...r},l=NE(t)?t:String(t),c=dd(t)?this.eventFromMessage(l,n,s):this.eventFromException(t,s);return this._process(c.then(f=>this._captureEvent(f,s,i))),s.event_id}captureEvent(t,n,r){const i=Uo();if(n!=null&&n.originalException&&XT(n.originalException))return i;const s={event_id:i,...n},l=t.sdkProcessingMetadata||{},c=l.capturedSpanScope,f=l.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,c||r,f)),s.event_id}captureSession(t){this.sendSession(t),uc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):xl(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];QI(this,t,this._integrations),n||v2(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=x7(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=h7(r,v7(s));const i=this.sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const{release:n,environment:r=jE}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n)return;s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n)return;t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=R7(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>n):xl({})}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=pU(this,t),v2(this,t)}_updateSessionFromEvent(t,n){var f;let r=n.level==="fatal",i=!1;const s=(f=n.exception)==null?void 0:f.values;if(s){i=!0;for(const d of s){const p=d.mechanism;if((p==null?void 0:p.handled)===!1){r=!0;break}}}const l=t.status==="ok";(l&&t.errors===0||l&&r)&&(uc(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Sa(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,t&&r>=t&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const s=this.getOptions(),l=Object.keys(this._integrations);return!n.integrations&&(l!=null&&l.length)&&(n.integrations=l),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),Y7(s,t,n,r,this,i).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:NH(r),...c.contexts};const f=zI(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:f,...c.sdkProcessingMetadata},c})}_captureEvent(t,n={},r=on(),i=xs()){return this._processEvent(t,n,r,i).then(s=>s.event_id,s=>{})}_processEvent(t,n,r,i){const s=this.getOptions(),{sampleRate:l}=s,c=t6(t),f=e6(t),d=t.type||"error",p=`before send for type \`${d}\``,g=typeof l>"u"?void 0:pd(l);if(f&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error"),Xg(c1(`Discarding event because it's not included in the random sample (sampling rate = ${l})`));const m=d==="replay_event"?"replay":d;return this._prepareEvent(t,n,r,i).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",m),c1("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return y;const b=RU(this,s,y,n);return wU(b,p)}).then(y=>{var x;if(y===null){if(this.recordDroppedEvent("before_send",m),c){const R=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw c1(`${p} returned \`null\`, will not send event.`)}const E=r.getSession()||i.getSession();if(f&&E&&this._updateSessionFromEvent(E,y),c){const C=((x=y.sdkProcessingMetadata)==null?void 0:x.spanCountBeforeProcessing)||0,R=y.spans?y.spans.length:0,_=C-R;_>0&&this.recordDroppedEvent("before_send","span",_)}const b=y.transaction_info;if(c&&b&&y.transaction!==t.transaction){const C="custom";y.transaction_info={...b,source:C}}return this.sendEvent(y,n),y}).then(null,y=>{throw SU(y)||bU(y)?y:(this.captureException(y,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:y}),Eg(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
15
+ Reason: ${y}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0||!this._dsn)return;const n=gU(t,this._options.tunnel&&Dc(this._dsn));this.sendEnvelope(n)}}function wU(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ud(e))return e.then(r=>{if(!hd(r)&&r!==null)throw Eg(n);return r},r=>{throw Eg(`${t} rejected with ${r}`)});if(!hd(e)&&e!==null)throw Eg(n);return e}function RU(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:l,ignoreSpans:c}=t;let f=n;if(e6(f)&&i)return i(f,r);if(t6(f)){if(l||c){const d=vU(f);if(c!=null&&c.length&&Zb(d,c))return null;if(l){const p=l(d);p?f=jd(n,yU(p)):Wb()}if(f.spans){const p=[],g=f.spans;for(const y of g){if(c!=null&&c.length&&Zb(y,c)){S7(g,y);continue}if(l){const E=l(y);E?p.push(E):(Wb(),p.push(y))}else p.push(y)}const m=f.spans.length-p.length;m&&e.recordDroppedEvent("before_send","span",m),f.spans=p}}if(s){if(f.spans){const d=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return s(f,r)}}return f}function e6(e){return e.type===void 0}function t6(e){return e.type==="transaction"}function xU(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function CU(e,t,n,r){const i={};return t!=null&&t.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Dc(r)),Pc(i,[xU(e)])}function f1(e,t){const n=_U(e)??[];if(n.length===0)return;const r=e.getOptions(),i=CU(n,r._metadata,r.tunnel,e.getDsn());n6().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function _U(e){return n6().get(e)}function n6(){return Hm("clientToLogBufferMap",()=>new WeakMap)}function TU(e,t){t.debug===!0&&Um(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),on().update(t.initialScope);const r=new e(t);return AU(r),r.init(),r}function AU(e){on().setClient(e)}const r6=Symbol.for("SentryBufferFullError");function OU(e){const t=[];function n(){return e===void 0||t.length<e}function r(l){return t.splice(t.indexOf(l),1)[0]||Promise.resolve(void 0)}function i(l){if(!n())return Xg(r6);const c=l();return t.indexOf(c)===-1&&t.push(c),c.then(()=>r(c)).then(null,()=>r(c).then(null,()=>{})),c}function s(l){return new Sa((c,f)=>{let d=t.length;if(!d)return c(!0);const p=setTimeout(()=>{l&&l>0&&c(!1)},l);t.forEach(g=>{xl(g).then(()=>{--d||(clearTimeout(p),c(!0))},f)})})}return{$:t,add:i,drain:s}}const MU=60*1e3;function IU(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?MU:r-t}function DU(e,t){return e[t]||e.all||0}function LU(e,t,n=Date.now()){return DU(e,t)>n}function PU(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n==null?void 0:n["x-sentry-rate-limits"],l=n==null?void 0:n["retry-after"];if(s)for(const c of s.trim().split(",")){const[f,d,,,p]=c.split(":",5),g=parseInt(f,10),m=(isNaN(g)?60:g)*1e3;if(!d)i.all=r+m;else for(const y of d.split(";"))y==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(i[y]=r+m):i[y]=r+m}else l?i.all=r+IU(l,r):t===429&&(i.all=r+60*1e3);return i}const kU=64;function NU(e,t,n=OU(e.bufferSize||kU)){let r={};const i=l=>n.drain(l);function s(l){const c=[];if(r2(l,(g,m)=>{const y=o2(m);LU(r,y)?e.recordDroppedEvent("ratelimit_backoff",y):c.push(g)}),c.length===0)return xl({});const f=Pc(l[0],c),d=g=>{r2(f,(m,y)=>{e.recordDroppedEvent(g,o2(y))})},p=()=>t({body:p7(f)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300),r=PU(r,g),g),g=>{throw d("network_error"),g});return n.add(p).then(g=>g,g=>{if(g===r6)return d("queue_overflow"),xl({});throw g})}return{send:s,flush:i}}const FU="thismessage:/";function o6(e){return"isRelative"in e}function i6(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?FU:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function zU(e){if(o6(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function ml(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function BU(e){return e.split(/[?#]/,1)[0]}function HU(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function s6(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:hl})),version:hl}),e._metadata=i}function a6(e={}){const t=e.client||Kt();if(!sU()||!t)return{};const n=Pl(),r=Oc(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||on(),s=e.span||Lr(),l=s?r7(s):UU(i),c=s?ya(s):zI(t,i),f=jH(c);return MI.test(l)?{"sentry-trace":l,baggage:f}:(kE.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function UU(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return II(t,r,n)}const VU=100;function Cl(e,t){const n=Kt(),r=xs();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=VU}=n.getOptions();if(s<=0)return;const c={timestamp:kl(),...e},f=i?Um(()=>i(c,t)):c;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),r.addBreadcrumb(f,s))}let y2;const jU="FunctionToString",b2=new WeakMap,$U=()=>({name:jU,setupOnce(){y2=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=zE(this),n=b2.has(Kt())&&t!==void 0?t:this;return y2.apply(n,e)}}catch{}},setup(e){b2.set(e,!0)}}),qU=$U,GU=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],YU="EventFilters",KU=(e={})=>{let t;return{name:YU,setup(n){const r=n.getOptions();t=S2(e,r)},processEvent(n,r,i){if(!t){const s=i.getOptions();t=S2(e,s)}return WU(n,t)?null:n}}},XU=(e={})=>({...KU(e),name:"InboundFilters"});function S2(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:GU],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function WU(e,t){if(e.type){if(e.type==="transaction"&&JU(e,t.ignoreTransactions))return!0}else if(QU(e,t.ignoreErrors)||nV(e)||ZU(e,t.denyUrls)||!eV(e,t.allowUrls))return!0;return!1}function QU(e,t){return t!=null&&t.length?mU(e).some(n=>ha(n,t)):!1}function JU(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?ha(n,t):!1}function ZU(e,t){if(!(t!=null&&t.length))return!1;const n=l6(e);return n?ha(n,t):!1}function eV(e,t){if(!(t!=null&&t.length))return!0;const n=l6(e);return n?ha(n,t):!0}function tV(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function l6(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var l,c,f;return((l=s.mechanism)==null?void 0:l.parent_id)===void 0&&((f=(c=s.stacktrace)==null?void 0:c.frames)==null?void 0:f.length)}),i=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return i?tV(i):null}catch{return null}}function nV(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function rV(e,t,n,r,i,s){var c;if(!((c=i.exception)!=null&&c.values)||!s||!bs(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=tS(e,t,r,s.originalException,n,i.exception.values,l,0))}function tS(e,t,n,r,i,s,l,c){if(s.length>=n+1)return s;let f=[...s];if(bs(r[i],Error)){E2(l,c);const d=e(t,r[i]),p=f.length;w2(d,i,p,c),f=tS(e,t,n,r[i],i,[d,...f],d,p)}return Array.isArray(r.errors)&&r.errors.forEach((d,p)=>{if(bs(d,Error)){E2(l,c);const g=e(t,d),m=f.length;w2(g,`errors[${p}]`,m,c),f=tS(e,t,n,d,i,[g,...f],g,m)}}),f}function E2(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function w2(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function oV(e){const t="console";Ta(t,e),Aa(t,iV)}function iV(){"console"in dn&&nH.forEach(function(e){e in dn.console&&go(dn.console,e,function(t){return $g[e]=t,function(...n){Ho("console",{args:n,level:e});const i=$g[e];i==null||i.apply(dn.console,n)}})})}function sV(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const aV="Dedupe",lV=()=>{let e;return{name:aV,processEvent(t){if(t.type)return t;try{if(cV(t,e))return tH&&kE.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},uV=lV;function cV(e,t){return t?!!(fV(e,t)||dV(e,t)):!1}function fV(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!c6(e,t)||!u6(e,t))}function dV(e,t){const n=R2(t),r=R2(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!c6(e,t)||!u6(e,t))}function u6(e,t){let n=jT(e),r=jT(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],l=n[i];if(s.filename!==l.filename||s.lineno!==l.lineno||s.colno!==l.colno||s.function!==l.function)return!1}return!0}function c6(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function R2(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function hV(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const{method:s,url:l}=e.fetchData,c=va()&&t(l);if(e.endTimestamp&&c){const g=e.fetchData.__span;if(!g)return;const m=r[g];m&&(gV(m,e),delete r[g]);return}const f=!!Lr(),d=c&&f?kc(vV(l,s,i)):new ba;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const g=e.args[0],m=e.args[1]||{},y=pV(g,m,va()&&f?d:void 0);y&&(e.args[1]=m,m.headers=y)}const p=Kt();if(p){const g={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,g)}return d}function pV(e,t,n){const r=a6({span:n}),i=r["sentry-trace"],s=r.baggage;if(!i)return;const l=t.headers||(mI(e)?e.headers:void 0);if(l)if(mV(l)){const c=new Headers(l);if(c.get("sentry-trace")||c.set("sentry-trace",i),s){const f=c.get("baggage");f?Up(f)||c.set("baggage",`${f},${s}`):c.set("baggage",s)}return c}else if(Array.isArray(l)){const c=[...l];l.find(d=>d[0]==="sentry-trace")||c.push(["sentry-trace",i]);const f=l.find(d=>d[0]==="baggage"&&Up(d[1]));return s&&!f&&c.push(["baggage",s]),c}else{const c="sentry-trace"in l?l["sentry-trace"]:void 0,f="baggage"in l?l.baggage:void 0,d=f?Array.isArray(f)?[...f]:[f]:[],p=f&&(Array.isArray(f)?f.find(g=>Up(g)):Up(f));return s&&!p&&d.push(s),{...l,"sentry-trace":c??i,baggage:d.length>0?d.join(","):void 0}}else return{...r}}function gV(e,t){var n,r;if(t.response){xI(e,t.response.status);const i=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(i){const s=parseInt(i);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:Zn,message:"internal_error"});e.end()}function Up(e){return e.split(",").some(t=>t.trim().startsWith(UE))}function mV(e){return typeof Headers<"u"&&bs(e,Headers)}function vV(e,t,n){const r=i6(e);return{name:r?`${t} ${zU(r)}`:t,attributes:yV(e,r,t,n)}}function yV(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[Un]:r,[ni]:"http.client"};return t&&(o6(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function f6(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const gd=dn;function bV(){return"history"in gd&&!!gd.history}function SV(){if(!("fetch"in gd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function nS(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function EV(){var n;if(typeof EdgeRuntime=="string")return!0;if(!SV())return!1;if(nS(gd.fetch))return!0;let e=!1;const t=gd.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=nS(r.contentWindow.fetch)),t.head.removeChild(r)}catch{}return e}function d6(e,t){const n="fetch";Ta(n,e),Aa(n,()=>h6(void 0,t))}function wV(e){const t="fetch-body-resolved";Ta(t,e),Aa(t,()=>h6(xV))}function h6(e,t=!1){t&&!EV()||go(dn,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:l}=CV(r),c={args:r,fetchData:{method:s,url:l},startTimestamp:yr()*1e3,virtualError:i,headers:_V(r)};return e||Ho("fetch",{...c}),n.apply(dn,r).then(async f=>(e?e(f):Ho("fetch",{...c,endTimestamp:yr()*1e3,response:f}),f),f=>{if(Ho("fetch",{...c,endTimestamp:yr()*1e3,error:f}),Vm(f)&&f.stack===void 0&&(f.stack=i.stack,Dr(f,"framesToPop",1)),f instanceof TypeError&&(f.message==="Failed to fetch"||f.message==="Load failed"||f.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(c.fetchData.url);f.message=`${f.message} (${d.host})`}catch{}throw f})}})}async function RV(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let l;try{l=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(l),c&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(l)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function xV(e){let t;try{t=e.clone()}catch{return}RV(t,()=>{Ho("fetch-body-resolved",{endTimestamp:yr()*1e3,response:e})})}function rS(e,t){return!!e&&typeof e=="object"&&!!e[t]}function x2(e){return typeof e=="string"?e:e?rS(e,"url")?e.url:e.toString?e.toString():"":""}function CV(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:x2(n),method:rS(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:x2(t),method:rS(t,"method")?String(t.method).toUpperCase():"GET"}}function _V(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(mI(t))return new Headers(t.headers)}catch{}}function TV(){return"npm"}const Mt=dn;let oS=0;function p6(){return oS>0}function AV(){oS++,setTimeout(()=>{oS--})}function dc(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(zE(e))return e}catch{return e}const r=function(...i){try{const s=i.map(l=>dc(l,t));return e.apply(this,s)}catch(s){throw AV(),Mc(l=>{l.addEventProcessor(c=>(t.mechanism&&(Yb(c,void 0),lc(c,t.mechanism)),c.extra={...c.extra,arguments:i},c)),GI(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}yI(r,e),Dr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function GE(){const e=Vd(),{referrer:t}=Mt.document||{},{userAgent:n}=Mt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function YE(e,t){const n=KE(e,t),r={type:LV(t),value:PV(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function OV(e,t,n,r){const i=Kt(),s=i==null?void 0:i.getOptions().normalizeDepth,l=BV(t),c={__serialized__:BI(t,s)};if(l)return{exception:{values:[YE(e,l)]},extra:c};const f={exception:{values:[{type:jm(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:FV(t,{isUnhandledRejection:r})}]},extra:c};if(n){const d=KE(e,n);d.length&&(f.exception.values[0].stacktrace={frames:d})}return f}function d1(e,t){return{exception:{values:[YE(e,t)]}}}function KE(e,t){const n=t.stacktrace||t.stack||"",r=IV(t),i=DV(t);try{return e(n,r,i)}catch{}return[]}const MV=/Minified React error #\d+;/i;function IV(e){return e&&MV.test(e.message)?1:0}function DV(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function g6(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function LV(e){const t=e==null?void 0:e.name;return!t&&g6(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function PV(e){const t=e==null?void 0:e.message;return g6(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function kV(e,t,n,r){const i=(n==null?void 0:n.syntheticException)||void 0,s=XE(e,t,i,r);return lc(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),xl(s)}function NV(e,t,n="info",r,i){const s=(r==null?void 0:r.syntheticException)||void 0,l=iS(e,t,s,i);return l.level=n,r!=null&&r.event_id&&(l.event_id=r.event_id),xl(l)}function XE(e,t,n,r,i){let s;if(pI(t)&&t.error)return d1(e,t.error);if(qT(t)||hH(t)){const l=t;if("stack"in t)s=d1(e,t);else{const c=l.name||(qT(l)?"DOMError":"DOMException"),f=l.message?`${c}: ${l.message}`:c;s=iS(e,f,n,r),Yb(s,f)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return Vm(t)?d1(e,t):hd(t)||jm(t)?(s=OV(e,t,n,i),lc(s,{synthetic:!0}),s):(s=iS(e,t,n,r),Yb(s,`${t}`),lc(s,{synthetic:!0}),s)}function iS(e,t,n,r){const i={};if(r&&n){const s=KE(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),lc(i,{synthetic:!0})}if(NE(t)){const{__sentry_template_string__:s,__sentry_template_values__:l}=t;return i.logentry={message:s,params:l},i}return i.message=t,i}function FV(e,{isUnhandledRejection:t}){const n=bH(e),r=t?"promise rejection":"exception";return pI(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:jm(e)?`Event \`${zV(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function zV(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function BV(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const HV=5e3;class UV extends EU{constructor(t){var c;const n=VV(t),r=Mt.SENTRY_SDK_SOURCE||TV();s6(n,"browser",["browser"],r),(c=n._metadata)!=null&&c.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:l}=this._options;Mt.document&&(s||l)&&Mt.document.addEventListener("visibilitychange",()=>{Mt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),l&&f1(this))}),l&&(this.on("flush",()=>{f1(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{f1(this)},HV)})),i&&this.on("beforeSendSession",HU)}eventFromException(t,n){return kV(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return NV(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function VV(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Mt.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const pt=dn,jV=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Yd=(e,t,n,r)=>{let i,s;return l=>{t.value>=0&&(l||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=jV(t.value,n),e(t)))}},$V=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Kd=(e=!0)=>{var n,r;const t=(r=(n=pt.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Nc=()=>{const e=Kd();return(e==null?void 0:e.activationStart)??0},Xd=(e,t=-1)=>{var s,l;const n=Kd();let r="navigate";return n&&((s=pt.document)!=null&&s.prerendering||Nc()>0?r="prerender":(l=pt.document)!=null&&l.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:$V(),navigationType:r}},h1=new WeakMap;function WE(e,t){return h1.get(e)||h1.set(e,new t),h1.get(e)}class Wg{constructor(){Wg.prototype.__init.call(this),Wg.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var i;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(i=this._onAfterProcessingUnexpectedShift)==null||i.call(this,t)}}const Fc=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},QE=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Qf=-1;const qV=()=>{var e,t;return((e=pt.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=pt.document)!=null&&t.prerendering)?0:1/0},Qg=e=>{pt.document.visibilityState==="hidden"&&Qf>-1&&(Qf=e.type==="visibilitychange"?e.timeStamp:0,YV())},GV=()=>{addEventListener("visibilitychange",Qg,!0),addEventListener("prerenderingchange",Qg,!0)},YV=()=>{removeEventListener("visibilitychange",Qg,!0),removeEventListener("prerenderingchange",Qg,!0)},JE=()=>{var e;if(pt.document&&Qf<0){const t=Nc();Qf=(pt.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??qV(),GV()}return{get firstHiddenTime(){return Qf}}},qm=e=>{var t;(t=pt.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},KV=[1800,3e3],XV=(e,t={})=>{qm(()=>{const n=JE(),r=Xd("FCP");let i;const l=Fc("paint",c=>{for(const f of c)f.name==="first-contentful-paint"&&(l.disconnect(),f.startTime<n.firstHiddenTime&&(r.value=Math.max(f.startTime-Nc(),0),r.entries.push(f),i(!0)))});l&&(i=Yd(e,r,KV,t.reportAllChanges))})},WV=[.1,.25],QV=(e,t={})=>{XV(QE(()=>{var c,f;const n=Xd("CLS",0);let r;const i=WE(t,Wg),s=d=>{for(const p of d)i._processEntry(p);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},l=Fc("layout-shift",s);l&&(r=Yd(e,n,WV,t.reportAllChanges),(c=pt.document)==null||c.addEventListener("visibilitychange",()=>{var d;((d=pt.document)==null?void 0:d.visibilityState)==="hidden"&&(s(l.takeRecords()),r(!0))}),(f=pt==null?void 0:pt.setTimeout)==null||f.call(pt,r))}))};let m6=0,p1=1/0,Vp=0;const JV=e=>{e.forEach(t=>{t.interactionId&&(p1=Math.min(p1,t.interactionId),Vp=Math.max(Vp,t.interactionId),m6=Vp?(Vp-p1)/7+1:0)})};let sS;const v6=()=>sS?m6:performance.interactionCount||0,ZV=()=>{"interactionCount"in performance||sS||(sS=Fc("event",JV,{type:"event",buffered:!0,durationThreshold:0}))},g1=10;let y6=0;const e9=()=>v6()-y6;class Jg{constructor(){Jg.prototype.__init.call(this),Jg.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){y6=v6(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(e9()/50));return this._longestInteractionList[t]}_processEntry(t){var i,s;if((i=this._onBeforeProcessingEntry)==null||i.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<g1||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((l,c)=>c._latency-l._latency),this._longestInteractionList.length>g1){const l=this._longestInteractionList.splice(g1);for(const c of l)this._longestInteractionMap.delete(c.id)}(s=this._onAfterProcessingINPCandidate)==null||s.call(this,r)}}}const ZE=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=pt.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};pt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},b6=e=>{var n;const t=pt.requestIdleCallback||pt.setTimeout;((n=pt.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=QE(e),t(e),ZE(e))},t9=[200,500],n9=40,r9=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&qm(()=>{ZV();const n=Xd("INP");let r;const i=WE(t,Jg),s=c=>{b6(()=>{for(const d of c)i._processEntry(d);const f=i._estimateP98LongestInteraction();f&&f._latency!==n.value&&(n.value=f._latency,n.entries=f.entries,r())})},l=Fc("event",s,{durationThreshold:t.durationThreshold??n9});r=Yd(e,n,t9,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),ZE(()=>{s(l.takeRecords()),r(!0)}))})};class o9{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const i9=[2500,4e3],s9=(e,t={})=>{qm(()=>{const n=JE(),r=Xd("LCP");let i;const s=WE(t,o9),l=f=>{t.reportAllChanges||(f=f.slice(-1));for(const d of f)s._processEntry(d),d.startTime<n.firstHiddenTime&&(r.value=Math.max(d.startTime-Nc(),0),r.entries=[d],i())},c=Fc("largest-contentful-paint",l);if(c){i=Yd(e,r,i9,t.reportAllChanges);const f=QE(()=>{l(c.takeRecords()),c.disconnect(),i(!0)});for(const d of["keydown","click","visibilitychange"])pt.document&&addEventListener(d,()=>b6(f),{capture:!0,once:!0})}})},a9=[800,1800],aS=e=>{var t,n;(t=pt.document)!=null&&t.prerendering?qm(()=>aS(e)):((n=pt.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>aS(e),!0):setTimeout(e)},l9=(e,t={})=>{const n=Xd("TTFB"),r=Yd(e,n,a9,t.reportAllChanges);aS(()=>{const i=Kd();i&&(n.value=Math.max(i.responseStart-Nc(),0),n.entries=[i],r(!0))})},Jf={},Zg={};let S6,E6,w6,R6;function x6(e,t=!1){return Gm("cls",e,f9,S6,t)}function C6(e,t=!1){return Gm("lcp",e,d9,E6,t)}function u9(e){return Gm("ttfb",e,h9,w6)}function c9(e){return Gm("inp",e,p9,R6)}function hc(e,t){return _6(e,t),Zg[e]||(g9(e),Zg[e]=!0),T6(e,t)}function Wd(e,t){const n=Jf[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch{}}function f9(){return QV(e=>{Wd("cls",{metric:e}),S6=e},{reportAllChanges:!0})}function d9(){return s9(e=>{Wd("lcp",{metric:e}),E6=e},{reportAllChanges:!0})}function h9(){return l9(e=>{Wd("ttfb",{metric:e}),w6=e})}function p9(){return r9(e=>{Wd("inp",{metric:e}),R6=e})}function Gm(e,t,n,r,i=!1){_6(e,t);let s;return Zg[e]||(s=n(),Zg[e]=!0),r&&t({metric:r}),T6(e,t,i?s:void 0)}function g9(e){const t={};e==="event"&&(t.durationThreshold=0),Fc(e,n=>{Wd(e,{entries:n})},t)}function _6(e,t){Jf[e]=Jf[e]||[],Jf[e].push(t)}function T6(e,t,n){return()=>{n&&n();const r=Jf[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function m9(e){return"duration"in e}function m1(e){return typeof e=="number"&&isFinite(e)}function Ea(e,t,n,{...r}){const i=rn(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),$E(e,()=>{const s=kc({startTime:t,...r});return s&&s.end(n),s})}function ew(e){var x;const t=Kt();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:l,environment:c,sendDefaultPii:f}=t.getOptions(),d=t.getIntegrationByName("Replay"),p=d==null?void 0:d.getReplayId(),g=on(),m=g.getUser(),y=m!==void 0?m.email||m.id||m.ip_address:void 0;let E;try{E=g.getScopeData().contexts.profile.profile_id}catch{}const b={release:l,environment:c,user:y||void 0,profile_id:E||void 0,replay_id:p||void 0,transaction:r,"user_agent.original":(x=pt.navigator)==null?void 0:x.userAgent,"client.address":f?"{{auto}}":void 0,...i};return kc({name:n,attributes:b,startTime:s,experimental:{standalone:!0}})}function Ym(){return pt.addEventListener&&pt.performance}function Pn(e){return e/1e3}function A6(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function O6(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function M6(e,t){let n,r=!1;function i(c){!r&&n&&t(c,n),r=!0}ZE(()=>{i("pagehide")});const s=e.on("beforeStartNavigationSpan",(c,f)=>{f!=null&&f.isRedirect||(i("navigation"),C2(s,l))}),l=e.on("afterStartPageLoadSpan",c=>{n=c.spanContext().spanId,C2(l)})}function C2(...e){e.forEach(t=>t&&setTimeout(t,0))}function v9(e){let t=0,n;if(!O6("layout-shift"))return;const r=x6(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);M6(e,(i,s)=>{y9(t,n,s,i),r()})}function y9(e,t,n,r){var d;const i=Pn((wo()||0)+((t==null?void 0:t.startTime)||0)),s=on().getScopeData().transactionName,l=t?Oi((d=t.sources[0])==null?void 0:d.node):"Layout shift",c={[Un]:"auto.http.browser.cls",[ni]:"ui.webvital.cls",[Ic]:(t==null?void 0:t.duration)||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((p,g)=>{c[`cls.source.${g+1}`]=Oi(p.node)});const f=ew({name:l,transaction:s,attributes:c,startTime:i});f&&(f.addEvent("cls",{[qd]:"",[Gd]:e}),f.end(i))}function b9(e){let t=0,n;if(!O6("largest-contentful-paint"))return;const r=C6(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);M6(e,(i,s)=>{S9(t,n,s,i),r()})}function S9(e,t,n,r){const i=Pn((wo()||0)+((t==null?void 0:t.startTime)||0)),s=on().getScopeData().transactionName,l=t?Oi(t.element):"Largest contentful paint",c={[Un]:"auto.http.browser.lcp",[ni]:"ui.webvital.lcp",[Ic]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=Oi(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(c["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(c["lcp.renderTime"]=t.renderTime),t.size!=null&&(c["lcp.size"]=t.size));const f=ew({name:l,transaction:s,attributes:c,startTime:i});f&&(f.addEvent("lcp",{[qd]:"millisecond",[Gd]:e}),f.end(i))}const E9=2147483647;let _2=0,Wo={},$r,Au;function w9({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Ym();if(r&&wo()){r.mark&&pt.performance.mark("sentry-tracing-init");const i=t?b9(n):T9(),s=A9(),l=e?v9(n):_9();return()=>{i==null||i(),s(),l==null||l()}}return()=>{}}function R9(){hc("longtask",({entries:e})=>{const t=Lr();if(!t)return;const{op:n,start_timestamp:r}=rn(t);for(const i of e){const s=Pn(wo()+i.startTime),l=Pn(i.duration);n==="navigation"&&r&&s<r||Ea(t,s,s+l,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Un]:"auto.ui.browser.metrics"}})}})}function x9(){new PerformanceObserver(t=>{const n=Lr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=Pn(wo()+r.startTime),{start_timestamp:s,op:l}=rn(n);if(l==="navigation"&&s&&i<s)continue;const c=Pn(r.duration),f={[Un]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:p,invokerType:g,sourceURL:m,sourceFunctionName:y,sourceCharPosition:E}=d;f["browser.script.invoker"]=p,f["browser.script.invoker_type"]=g,m&&(f["code.filepath"]=m),y&&(f["code.function"]=y),E!==-1&&(f["browser.script.source_char_position"]=E),Ea(n,i,i+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function C9(){hc("event",({entries:e})=>{const t=Lr();if(t){for(const n of e)if(n.name==="click"){const r=Pn(wo()+n.startTime),i=Pn(n.duration),s={name:Oi(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Un]:"auto.ui.browser.metrics"}},l=vI(n.target);l&&(s.attributes["ui.component_name"]=l),Ea(t,r,r+i,s)}}})}function _9(){return x6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Wo.cls={value:e.value,unit:""},Au=t)},!0)}function T9(){return C6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Wo.lcp={value:e.value,unit:"millisecond"},$r=t)},!0)}function A9(){return u9(({metric:e})=>{e.entries[e.entries.length-1]&&(Wo.ttfb={value:e.value,unit:"millisecond"})})}function O9(e,t){const n=Ym(),r=wo();if(!(n!=null&&n.getEntries)||!r)return;const i=Pn(r),s=n.getEntries(),{op:l,start_timestamp:c}=rn(e);s.slice(_2).forEach(f=>{const d=Pn(f.startTime),p=Pn(Math.max(0,f.duration));if(!(l==="navigation"&&c&&i+d<c))switch(f.entryType){case"navigation":{D9(e,f,i);break}case"mark":case"paint":case"measure":{M9(e,f,d,p,i,t.ignorePerformanceApiSpans);const g=JE(),m=f.startTime<g.firstHiddenTime;f.name==="first-paint"&&m&&(Wo.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&m&&(Wo.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{k9(e,f,f.name,d,p,i,t.ignoreResourceSpans);break}}}),_2=Math.max(s.length-1,0),N9(e),l==="pageload"&&(z9(Wo),t.recordClsOnPageloadSpan||delete Wo.cls,t.recordLcpOnPageloadSpan||delete Wo.lcp,Object.entries(Wo).forEach(([f,d])=>{_7(f,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",Nc()),F9(e,t)),$r=void 0,Au=void 0,Wo={}}function M9(e,t,n,r,i,s){if(["mark","measure"].includes(t.entryType)&&ha(t.name,s))return;const l=Kd(!1),c=Pn(l?l.requestStart:0),f=i+Math.max(n,c),d=i+n,p=d+r,g={[Un]:"auto.resource.browser.metrics"};f!==d&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=f),I9(g,t),f<=p&&Ea(e,f,p,{name:t.name,op:t.entryType,attributes:g})}function I9(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&dd(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(dd(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function D9(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{jp(e,t,r,n)}),jp(e,t,"secureConnection",n,"TLS/SSL"),jp(e,t,"fetch",n,"cache"),jp(e,t,"domainLookup",n,"DNS"),P9(e,t,n)}function jp(e,t,n,r,i=n){const s=L9(n),l=t[s],c=t[`${n}Start`];!c||!l||Ea(e,r+Pn(c),r+Pn(l),{op:`browser.${i}`,name:t.name,attributes:{[Un]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function L9(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function P9(e,t,n){const r=n+Pn(t.requestStart),i=n+Pn(t.responseEnd),s=n+Pn(t.responseStart);t.responseEnd&&(Ea(e,r,i,{op:"browser.request",name:t.name,attributes:{[Un]:"auto.ui.browser.metrics"}}),Ea(e,s,i,{op:"browser.response",name:t.name,attributes:{[Un]:"auto.ui.browser.metrics"}}))}function k9(e,t,n,r,i,s,l){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(l!=null&&l.includes(c))return;const f=ml(n),d={[Un]:"auto.resource.browser.metrics"};v1(d,t,"transferSize","http.response_transfer_size"),v1(d,t,"encodedBodySize","http.response_content_length"),v1(d,t,"decodedBodySize","http.decoded_response_content_length");const p=t.deliveryType;p!=null&&(d["http.response_delivery_type"]=p);const g=t.renderBlockingStatus;if(g&&(d["resource.render_blocking_status"]=g),f.protocol&&(d["url.scheme"]=f.protocol.split(":").pop()),f.host&&(d["server.address"]=f.host),d["url.same_origin"]=n.includes(pt.location.origin),t.nextHopProtocol!=null){const{name:E,version:b}=A6(t.nextHopProtocol);d["network.protocol.name"]=E,d["network.protocol.version"]=b}const m=s+r,y=m+i;Ea(e,m,y,{name:n.replace(pt.location.origin,""),op:c,attributes:d})}function N9(e){const t=pt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),m1(n.rtt)&&(Wo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),m1(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),m1(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function F9(e,t){$r&&t.recordLcpOnPageloadSpan&&($r.element&&e.setAttribute("lcp.element",Oi($r.element)),$r.id&&e.setAttribute("lcp.id",$r.id),$r.url&&e.setAttribute("lcp.url",$r.url.trim().slice(0,200)),$r.loadTime!=null&&e.setAttribute("lcp.loadTime",$r.loadTime),$r.renderTime!=null&&e.setAttribute("lcp.renderTime",$r.renderTime),e.setAttribute("lcp.size",$r.size)),Au!=null&&Au.sources&&t.recordClsOnPageloadSpan&&Au.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Oi(n.node)))}function v1(e,t,n,r){const i=t[n];i!=null&&i<E9&&(e[r]=i)}function z9(e){const t=Kd(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function B9(){return Ym()&&wo()?hc("element",H9):()=>{}}const H9=({entries:e})=>{const t=Lr(),n=t?Wr(t):void 0,r=n?rn(n).description:on().getScopeData().transactionName;e.forEach(i=>{var y,E;const s=i;if(!s.identifier)return;const l=s.name,c=s.renderTime,f=s.loadTime,[d,p]=f?[Pn(f),"load-time"]:c?[Pn(c),"render-time"]:[yr(),"entry-emission"],g=l==="image-paint"?Pn(Math.max(0,(c??0)-(f??0))):0,m={[Un]:"auto.ui.browser.elementtiming",[ni]:"ui.elementtiming",[Yr]:"component","sentry.span_start_time_source":p,"sentry.transaction_name":r,"element.id":s.id,"element.type":((E=(y=s.element)==null?void 0:y.tagName)==null?void 0:E.toLowerCase())||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":f,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":l};D7({name:`element[${s.identifier}]`,attributes:m,startTime:d,onlyIfParent:!0},b=>{b.end(d+g)})})},U9=1e3;let T2,lS,uS;function V9(e){const t="dom";Ta(t,e),Aa(t,j9)}function j9(){if(!pt.document)return;const e=Ho.bind(null,"dom"),t=A2(e,!0);pt.document.addEventListener("click",t,!1),pt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var s,l;const i=(s=pt[n])==null?void 0:s.prototype;(l=i==null?void 0:i.hasOwnProperty)!=null&&l.call(i,"addEventListener")&&(go(i,"addEventListener",function(c){return function(f,d,p){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=g[f]=g[f]||{refCount:0};if(!m.handler){const y=A2(e);m.handler=y,c.call(this,f,y,p)}m.refCount++}catch{}return c.call(this,f,d,p)}}),go(i,"removeEventListener",function(c){return function(f,d,p){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},m=g[f];m&&(m.refCount--,m.refCount<=0&&(c.call(this,f,m.handler,p),m.handler=void 0,delete g[f]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,f,d,p)}}))})}function $9(e){if(e.type!==lS)return!1;try{if(!e.target||e.target._sentryId!==uS)return!1}catch{}return!0}function q9(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function A2(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=G9(n);if(q9(n.type,r))return;Dr(n,"_sentryCaptured",!0),r&&!r._sentryId&&Dr(r,"_sentryId",Uo());const i=n.type==="keypress"?"input":n.type;$9(n)||(e({event:n,name:i,global:t}),lS=n.type,uS=r?r._sentryId:void 0),clearTimeout(T2),T2=pt.setTimeout(()=>{uS=void 0,lS=void 0},U9)}}function G9(e){try{return e.target}catch{return null}}let $p;function tw(e){const t="history";Ta(t,e),Aa(t,Y9)}function Y9(){if(pt.addEventListener("popstate",()=>{const t=pt.location.href,n=$p;if($p=t,n===t)return;Ho("history",{from:n,to:t})}),!bV())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=$p,s=K9(String(r));if($p=s,i===s)return t.apply(this,n);Ho("history",{from:i,to:s})}return t.apply(this,n)}}go(pt.history,"pushState",e),go(pt.history,"replaceState",e)}function K9(e){try{return new URL(e,pt.location.origin).toString()}catch{return e}}const wg={};function X9(e){const t=wg[e];if(t)return t;let n=pt[e];if(nS(n))return wg[e]=n.bind(pt);const r=pt.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch{}return n&&(wg[e]=n.bind(pt))}function O2(e){wg[e]=void 0}const Ou="__sentry_xhr_v3__";function I6(e){const t="xhr";Ta(t,e),Aa(t,W9)}function W9(){if(!pt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,s=yr()*1e3,l=ps(r[0])?r[0].toUpperCase():void 0,c=Q9(r[1]);if(!l||!c)return t.apply(n,r);n[Ou]={method:l,url:c,request_headers:{}},l==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const d=n[Ou];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const p={endTimestamp:yr()*1e3,startTimestamp:s,xhr:n,virtualError:i};Ho("xhr",p)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,p,g){return f(),d.apply(p,g)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,p,g){const[m,y]=g,E=p[Ou];return E&&ps(m)&&ps(y)&&(E.request_headers[m.toLowerCase()]=y),d.apply(p,g)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Ou];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:yr()*1e3,xhr:n};return Ho("xhr",s),t.apply(n,r)}})}function Q9(e){if(ps(e))return e;try{return e.toString()}catch{}}const y1=[],Rg=new Map,J9=60;function Z9(){if(Ym()&&wo()){const t=ej();return()=>{t()}}return()=>{}}const M2={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ej(){return c9(tj)}const tj=({metric:e})=>{if(e.value==null)return;const t=Pn(e.value);if(t>J9)return;const n=e.entries.find(E=>E.duration===e.value&&M2[E.name]);if(!n)return;const{interactionId:r}=n,i=M2[n.name],s=Pn(wo()+n.startTime),l=Lr(),c=l?Wr(l):void 0,d=(r!=null?Rg.get(r):void 0)||c,p=d?rn(d).description:on().getScopeData().transactionName,g=Oi(n.target),m={[Un]:"auto.http.browser.inp",[ni]:`ui.interaction.${i}`,[Ic]:n.duration},y=ew({name:g,transaction:p,attributes:m,startTime:s});y&&(y.addEvent("inp",{[qd]:"millisecond",[Gd]:e.value}),y.end(s+t))};function nj(){const e=({entries:t})=>{const n=Lr(),r=n&&Wr(n);t.forEach(i=>{if(!m9(i)||!r)return;const s=i.interactionId;if(s!=null&&!Rg.has(s)){if(y1.length>10){const l=y1.shift();Rg.delete(l)}y1.push(s),Rg.set(s,r)}})};hc("event",e),hc("first-input",e)}function rj(e,t=X9("fetch")){let n=0,r=0;function i(s){const l=s.body.length;n+=l,r++;const c={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return O2("fetch"),Xg("No fetch implementation available");try{return t(e.url,c).then(f=>(n-=l,r--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return O2("fetch"),n-=l,r--,Xg(f)}}return NU(e,i)}const oj=30,ij=50;function cS(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?wl:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const sj=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,aj=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lj=/\((\S*)(?::(\d+))(?::(\d+))\)/,uj=/at (.+?) ?\(data:(.+?),/,cj=e=>{const t=e.match(uj);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=sj.exec(e);if(n){const[,i,s,l]=n;return cS(i,wl,+s,+l)}const r=aj.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const c=lj.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[s,l]=D6(r[1]||wl,r[2]);return cS(l,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},fj=[oj,cj],dj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,hj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pj=e=>{const t=dj.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=hj.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||wl;return[i,r]=D6(i,r),cS(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},gj=[ij,pj],mj=[fj,gj],vj=cI(...mj),D6=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:wl,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},I2=1024,yj="Breadcrumbs",bj=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:yj,setup(n){t.console&&oV(Rj(n)),t.dom&&V9(wj(n,t.dom)),t.xhr&&I6(xj(n)),t.fetch&&d6(Cj(n)),t.history&&tw(_j(n)),t.sentry&&n.on("beforeSendEvent",Ej(n))}}},Sj=bj;function Ej(e){return function(n){Kt()===e&&Cl({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:EH(n)},{event:n})}}function wj(e,t){return function(r){if(Kt()!==e)return;let i,s,l=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>I2&&(c=I2),typeof l=="string"&&(l=[l]);try{const d=r.event,p=Tj(d)?d.target:d;i=Oi(p,{keyAttrs:l,maxStringLength:c}),s=vI(p)}catch{i="<unknown>"}if(i.length===0)return;const f={category:`ui.${r.name}`,message:i};s&&(f.data={"ui.component_name":s}),Cl(f,{event:r.event,name:r.name,global:r.global})}}function Rj(e){return function(n){if(Kt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:sV(n.level),message:GT(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${GT(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Cl(r,{input:n.args,level:n.level})}}function xj(e){return function(n){if(Kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Ou];if(!r||!i||!s)return;const{method:l,url:c,status_code:f,body:d}=s,p={method:l,url:c,status_code:f},g={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},m={category:"xhr",data:p,type:"http",level:f6(f)};e.emit("beforeOutgoingRequestBreadcrumb",m,g),Cl(m,g)}}function Cj(e){return function(n){if(Kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,l={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,l),Cl(c,l)}else{const s=n.response,l={...n.fetchData,status_code:s==null?void 0:s.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s==null||s.status;const c={input:n.args,response:s,startTimestamp:r,endTimestamp:i},f={category:"fetch",data:l,type:"http",level:f6(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",f,c),Cl(f,c)}}}function _j(e){return function(n){if(Kt()!==e)return;let r=n.from,i=n.to;const s=ml(Mt.location.href);let l=r?ml(r):void 0;const c=ml(i);l!=null&&l.path||(l=s),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),s.protocol===l.protocol&&s.host===l.host&&(r=l.relative),Cl({category:"navigation",data:{from:r,to:i}})}}function Tj(e){return!!e&&!!e.target}const Aj=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Oj="BrowserApiErrors",Mj=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Oj,setupOnce(){t.setTimeout&&go(Mt,"setTimeout",D2),t.setInterval&&go(Mt,"setInterval",D2),t.requestAnimationFrame&&go(Mt,"requestAnimationFrame",Dj),t.XMLHttpRequest&&"XMLHttpRequest"in Mt&&go(XMLHttpRequest.prototype,"send",Lj);const n=t.eventTarget;n&&(Array.isArray(n)?n:Aj).forEach(i=>Pj(i,t))}}},Ij=Mj;function D2(e){return function(...t){const n=t[0];return t[0]=dc(n,{mechanism:{data:{function:Rl(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Dj(e){return function(t){return e.apply(this,[dc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Rl(e)},handled:!1,type:"instrument"}})])}}function Lj(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&go(n,i,function(s){const l={mechanism:{data:{function:i,handler:Rl(s)},handled:!1,type:"instrument"}},c=zE(s);return c&&(l.mechanism.data.handler=Rl(c)),dc(s,l)})}),e.apply(this,t)}}function Pj(e,t){var i,s;const r=(i=Mt[e])==null?void 0:i.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(go(r,"addEventListener",function(l){return function(c,f,d){try{kj(f)&&(f.handleEvent=dc(f.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Rl(f),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&Nj(this,c,f),l.apply(this,[c,dc(f,{mechanism:{data:{function:"addEventListener",handler:Rl(f),target:e},handled:!1,type:"instrument"}}),d])}}),go(r,"removeEventListener",function(l){return function(c,f,d){try{const p=f.__sentry_wrapped__;p&&l.call(this,c,p,d)}catch{}return l.call(this,c,f,d)}}))}function kj(e){return typeof e.handleEvent=="function"}function Nj(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Fj=()=>({name:"BrowserSession",setupOnce(){typeof Mt.document>"u"||(p2({ignoreDuration:!0}),g2(),tw(({from:e,to:t})=>{e!==void 0&&e!==t&&(p2({ignoreDuration:!0}),g2())}))}}),zj="GlobalHandlers",Bj=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:zj,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&Uj(n),t.onunhandledrejection&&Vj(n)}}},Hj=Bj;function Uj(e){fI(t=>{const{stackParser:n,attachStacktrace:r}=L6();if(Kt()!==e||p6())return;const{msg:i,url:s,line:l,column:c,error:f}=t,d=qj(XE(n,f||i,void 0,r,!1),s,l,c);d.level="error",YI(d,{originalException:f,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Vj(e){dI(t=>{const{stackParser:n,attachStacktrace:r}=L6();if(Kt()!==e||p6())return;const i=jj(t),s=dd(i)?$j(i):XE(n,i,void 0,r,!0);s.level="error",YI(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function jj(e){if(dd(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function $j(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function qj(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],l=s[0]=s[0]||{},c=l.stacktrace=l.stacktrace||{},f=c.frames=c.frames||[],d=r,p=n,g=Gj(t)??Vd();return f.length===0&&f.push({colno:d,filename:g,function:wl,in_app:!0,lineno:p}),e}function L6(){const e=Kt();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function Gj(e){if(!(!ps(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}const Yj=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Mt.navigator&&!Mt.location&&!Mt.document)return;const t=GE(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),Kj="cause",Xj=5,Wj="LinkedErrors",Qj=(e={})=>{const t=e.limit||Xj,n=e.key||Kj;return{name:Wj,preprocessEvent(r,i,s){const l=s.getOptions();rV(YE,l.stackParser,n,t,r,i)}}},Jj=Qj;function Zj(){return!!e$()}function e$(){var s;if(typeof Mt.window>"u")return!1;const e=Mt;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((s=t==null?void 0:t.runtime)!=null&&s.id))return!1;const n=Vd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Mt===Mt.top&&r.some(l=>n.startsWith(`${l}://`)))}function t$(e){return[XU(),qU(),Ij(),Sj(),Hj(),Jj(),uV(),Yj(),Fj()]}function n$(e={}){const t=!e.skipBrowserExtensionCheck&&Zj(),n={...e,enabled:t?!1:e.enabled,stackParser:uH(e.stackParser||vj),integrations:hU({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?t$():e.defaultIntegrations}),transport:e.transport||rj};return TU(UV,n)}function L2(e={}){const t=Mt.document,n=(t==null?void 0:t.head)||(t==null?void 0:t.body);if(!n)return;const r=on(),i=Kt(),s=i==null?void 0:i.getDsn();if(!s)return;const l={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||iU()},c=Mt.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=fU(s,l);const{onLoad:f,onClose:d}=l;if(f&&(c.onload=f),d){const p=g=>{if(g.data==="__sentry_reportdialog_closed__")try{d()}finally{Mt.removeEventListener("message",p)}};Mt.addEventListener("message",p)}n.appendChild(c)}function hi(e=0){return((wo()||performance.timeOrigin)+e)/1e3}function r$(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=A6(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return wo()?[...t,["http.request.redirect_start",hi(e.redirectStart)],["http.request.fetch_start",hi(e.fetchStart)],["http.request.domain_lookup_start",hi(e.domainLookupStart)],["http.request.domain_lookup_end",hi(e.domainLookupEnd)],["http.request.connect_start",hi(e.connectStart)],["http.request.secure_connection_start",hi(e.secureConnectionStart)],["http.request.connection_end",hi(e.connectEnd)],["http.request.request_start",hi(e.requestStart)],["http.request.response_start",hi(e.responseStart)],["http.request.response_end",hi(e.responseEnd)]]:t}const P2=new WeakMap,b1=new Map,P6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function o$(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:l,tracePropagationTargets:c,onRequestSpanStart:f}={...P6,...t},d=typeof s=="function"?s:m=>!0,p=m=>s$(m,c),g={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(y=>{if(y.op==="http.client"){const E=b1.get(y.span_id);E&&(y.timestamp=E/1e3,b1.delete(y.span_id))}}),m)),i&&wV(m=>{if(m.response){const y=P2.get(m.response);y&&m.endTimestamp&&b1.set(y,m.endTimestamp)}}),d6(m=>{const y=hV(m,d,p,g);if(m.response&&m.fetchData.__span&&P2.set(m.response,m.fetchData.__span),y){const E=k6(m.fetchData.url),b=E?ml(E).host:void 0;y.setAttributes({"http.url":E,"server.address":b}),l&&k2(y),f==null||f(y,{headers:m.headers})}})),r&&I6(m=>{var E;const y=a$(m,d,p,g);if(y){l&&k2(y);let b;try{b=new Headers((E=m.xhr.__sentry_xhr_v3__)==null?void 0:E.request_headers)}catch{}f==null||f(y,{headers:b})}})}function i$(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function k2(e){const{url:t}=rn(e).data;if(!t||typeof t!="string")return;const n=hc("resource",({entries:r})=>{r.forEach(i=>{i$(i)&&i.name.endsWith(t)&&(r$(i).forEach(l=>e.setAttribute(...l)),setTimeout(n))})})}function s$(e,t){const n=Vd();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?ha(r.toString(),t)||s&&ha(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?ha(e,t):r}}function a$(e,t,n,r){const i=e.xhr,s=i==null?void 0:i[Ou];if(!i||i.__sentry_own_request__||!s)return;const{url:l,method:c}=s,f=va()&&t(l);if(e.endTimestamp&&f){const b=i.__sentry_xhr_span_id__;if(!b)return;const x=r[b];x&&s.status_code!==void 0&&(xI(x,s.status_code),x.end(),delete r[b]);return}const d=k6(l),p=ml(d||l),g=BU(l),m=!!Lr(),y=f&&m?kc({name:`${c} ${g}`,attributes:{url:l,type:"xhr","http.method":c,"http.url":d,"server.address":p==null?void 0:p.host,[Un]:"auto.http.browser",[ni]:"http.client",...(p==null?void 0:p.search)&&{"http.query":p==null?void 0:p.search},...(p==null?void 0:p.hash)&&{"http.fragment":p==null?void 0:p.hash}}}):new ba;i.__sentry_xhr_span_id__=y.spanContext().spanId,r[i.__sentry_xhr_span_id__]=y,n(l)&&l$(i,va()&&m?y:void 0);const E=Kt();return E&&E.emit("beforeOutgoingRequestSpan",y,e),y}function l$(e,t){const{"sentry-trace":n,baggage:r}=a6({span:t});n&&u$(e,n,r)}function u$(e,t,n){var i;const r=(i=e.__sentry_xhr_v3__)==null?void 0:i.request_headers;if(!(r!=null&&r["sentry-trace"]))try{if(e.setRequestHeader("sentry-trace",t),n){const s=r==null?void 0:r.baggage;(!s||!c$(s))&&e.setRequestHeader("baggage",n)}}catch{}}function c$(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function k6(e){try{return new URL(e,Mt.location.origin).href}catch{return}}function f$(){Mt.document&&Mt.document.addEventListener("visibilitychange",()=>{const e=Lr();if(!e)return;const t=Wr(e);if(Mt.document.hidden&&t){const n="cancelled",{op:r,status:i}=rn(t);i||t.setStatus({code:Zn,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})}const d$=3600,N6="sentry_previous_trace",h$="sentry.previous_trace";function p$(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?v$():void 0;e.on("spanStart",l=>{if(Wr(l)!==l)return;const c=on().getPropagationContext();i=g$(i,l,c),r&&m$(i)});let s=!0;n&&e.on("beforeSampling",l=>{if(!i)return;const c=on(),f=c.getPropagationContext();if(s&&f.parentSpanId){s=!1;return}c.setPropagationContext({...f,dsc:{...f.dsc,sample_rate:String(i.sampleRate),sampled:String(fS(i.spanContext))},sampleRand:i.sampleRand}),l.parentSampled=fS(i.spanContext),l.parentSampleRate=i.sampleRate,l.spanAttributes={...l.spanAttributes,[wI]:i.sampleRate}})}function g$(e,t,n){const r=rn(t);function i(){var c,f;try{return Number((c=n.dsc)==null?void 0:c.sample_rate)??Number((f=r.data)==null?void 0:f[BE])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const l=e.spanContext;return l.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=d$&&(t.addLink({context:l,attributes:{[FH]:"previous_trace"}}),t.setAttribute(h$,`${l.traceId}-${l.spanId}-${fS(l)?1:0}`)),s)}function m$(e){try{Mt.sessionStorage.setItem(N6,JSON.stringify(e))}catch{}}function v$(){var e;try{const t=(e=Mt.sessionStorage)==null?void 0:e.getItem(N6);return JSON.parse(t)}catch{return}}function fS(e){return e.traceFlags===1}const y$="BrowserTracing",b$={...Sg,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...P6},S$=(e={})=>{const t={name:void 0,source:void 0},n=Mt.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:l,_experiments:{enableInteractions:c,enableStandaloneClsSpans:f,enableStandaloneLcpSpans:d},beforeStartSpan:p,idleTimeout:g,finalTimeout:m,childSpanTimeout:y,markBackgroundSpan:E,traceFetch:b,traceXHR:x,trackFetchStreamPerformance:C,shouldCreateSpanForRequest:R,enableHTTPTimings:_,ignoreResourceSpans:O,ignorePerformanceApiSpans:T,instrumentPageLoad:M,instrumentNavigation:A,detectRedirects:D,linkPreviousTrace:L,consistentTraceSampling:F,onRequestSpanStart:B}={...b$,...e};let j,z;function G(V,P,q=!0){const U=P.op==="pageload",K=P.name,Z=p?p(P):P,k=Z.attributes||{};if(K!==Z.name&&(k[Yr]="custom",Z.attributes=k),!q){const te=kl();kc({...Z,startTime:te}).end(te);return}t.name=Z.name,t.source=k[Yr];const $=qI(Z,{idleTimeout:g,finalTimeout:m,childSpanTimeout:y,disableAutoFinish:U,beforeSpanEnd:te=>{j==null||j(),O9(te,{recordClsOnPageloadSpan:!f,recordLcpOnPageloadSpan:!d,ignoreResourceSpans:O,ignorePerformanceApiSpans:T}),F2(V,void 0);const ue=on(),ne=ue.getPropagationContext();ue.setPropagationContext({...ne,traceId:$.spanContext().traceId,sampled:Lc($),dsc:ya(te)})}});F2(V,$);function X(){n&&["interactive","complete"].includes(n.readyState)&&V.emit("idleSpanEnableAutoFinish",$)}U&&n&&(n.addEventListener("readystatechange",()=>{X()}),X())}return{name:y$,setup(V){if(a7(),j=w9({recordClsStandaloneSpans:f||!1,recordLcpStandaloneSpans:d||!1,client:V}),r&&Z9(),i&&B9(),l&&dn.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?x9():s&&R9(),c&&C9(),D&&n){const q=()=>{z=yr()};addEventListener("click",q,{capture:!0}),addEventListener("keydown",q,{capture:!0,passive:!0})}function P(){const q=md(V);q&&!rn(q).timestamp&&(q.setAttribute(Yg,"cancelled"),q.end())}V.on("startNavigationSpan",(q,U)=>{if(Kt()!==V)return;if(U!=null&&U.isRedirect){G(V,{op:"navigation.redirect",...q},!1);return}z=void 0,P(),xs().setPropagationContext({traceId:ma(),sampleRand:Math.random()});const K=on();K.setPropagationContext({traceId:ma(),sampleRand:Math.random()}),K.setSDKProcessingMetadata({normalizedRequest:void 0}),G(V,{op:"navigation",...q})}),V.on("startPageLoadSpan",(q,U={})=>{if(Kt()!==V)return;P();const K=U.sentryTrace||N2("sentry-trace"),Z=U.baggage||N2("baggage"),k=ZH(K,Z),$=on();$.setPropagationContext(k),$.setSDKProcessingMetadata({normalizedRequest:GE()}),G(V,{op:"pageload",...q})})},afterAllSetup(V){let P=Vd();if(L!=="off"&&p$(V,{linkPreviousTrace:L,consistentTraceSampling:F}),Mt.location){if(M){const q=wo();F6(V,{name:Mt.location.pathname,startTime:q?q/1e3:void 0,attributes:{[Yr]:"url",[Un]:"auto.pageload.browser"}})}A&&tw(({to:q,from:U})=>{if(U===void 0&&(P==null?void 0:P.indexOf(q))!==-1){P=void 0;return}P=void 0;const K=i6(q),Z=md(V),k=Z&&D&&w$(Z,z);z6(V,{name:(K==null?void 0:K.pathname)||Mt.location.pathname,attributes:{[Yr]:"url",[Un]:"auto.navigation.browser"}},{url:q,isRedirect:k})})}E&&f$(),c&&E$(V,g,m,y,t),r&&nj(),o$(V,{traceFetch:b,traceXHR:x,trackFetchStreamPerformance:C,tracePropagationTargets:V.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:R,enableHTTPTimings:_,onRequestSpanStart:B})}}};function F6(e,t,n){e.emit("startPageLoadSpan",t,n),on().setTransactionName(t.name);const r=md(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function z6(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=on();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...GE(),url:r}}),md(e)}function N2(e){const t=Mt.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function E$(e,t,n,r,i){const s=Mt.document;let l;const c=()=>{const f="ui.action.click",d=md(e);if(d){const p=rn(d).op;if(["navigation","pageload"].includes(p))return}l&&(l.setAttribute(Yg,"interactionInterrupted"),l.end(),l=void 0),i.name&&(l=qI({name:i.name,op:f,attributes:{[Yr]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}))};s&&addEventListener("click",c,{capture:!0})}const B6="_sentry_idleSpan";function md(e){return e[B6]}function F2(e,t){Dr(e,B6,t)}const z2=1.5;function w$(e,t){const n=rn(e),r=kl(),i=n.start_timestamp;return!(r-i>z2||t&&r-t<=z2)}function jee(e){const t={...e};return s6(t,"react"),oU("react",{version:S.version}),n$(t)}function R$(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function x$(e,t){const n=new WeakSet;function r(i,s){if(!n.has(i)){if(i.cause)return n.add(i),r(i.cause,s);i.cause=s}}r(e,t)}function C$(e,{componentStack:t},n){if(R$(S.version)&&Vm(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,x$(e,r)}return Mc(r=>(r.setContext("react",{componentStack:t}),GI(e,n)))}var S1={exports:{}},Xt={};var B2;function _$(){if(B2)return Xt;B2=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function _(T){if(typeof T=="object"&&T!==null){var M=T.$$typeof;switch(M){case t:switch(T=T.type,T){case f:case d:case r:case s:case i:case g:return T;default:switch(T=T&&T.$$typeof,T){case c:case p:case E:case y:case l:return T;default:return M}}case n:return M}}}function O(T){return _(T)===d}return Xt.AsyncMode=f,Xt.ConcurrentMode=d,Xt.ContextConsumer=c,Xt.ContextProvider=l,Xt.Element=t,Xt.ForwardRef=p,Xt.Fragment=r,Xt.Lazy=E,Xt.Memo=y,Xt.Portal=n,Xt.Profiler=s,Xt.StrictMode=i,Xt.Suspense=g,Xt.isAsyncMode=function(T){return O(T)||_(T)===f},Xt.isConcurrentMode=O,Xt.isContextConsumer=function(T){return _(T)===c},Xt.isContextProvider=function(T){return _(T)===l},Xt.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Xt.isForwardRef=function(T){return _(T)===p},Xt.isFragment=function(T){return _(T)===r},Xt.isLazy=function(T){return _(T)===E},Xt.isMemo=function(T){return _(T)===y},Xt.isPortal=function(T){return _(T)===n},Xt.isProfiler=function(T){return _(T)===s},Xt.isStrictMode=function(T){return _(T)===i},Xt.isSuspense=function(T){return _(T)===g},Xt.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===d||T===s||T===i||T===g||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===E||T.$$typeof===y||T.$$typeof===l||T.$$typeof===c||T.$$typeof===p||T.$$typeof===x||T.$$typeof===C||T.$$typeof===R||T.$$typeof===b)},Xt.typeOf=_,Xt}var H2;function T$(){return H2||(H2=1,S1.exports=_$()),S1.exports}var E1,U2;function A$(){if(U2)return E1;U2=1;var e=T$(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function l(E){return e.isMemo(E)?i:s[E.$$typeof]||t}var c=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function y(E,b,x){if(typeof b!="string"){if(m){var C=g(b);C&&C!==m&&y(E,C,x)}var R=f(b);d&&(R=R.concat(d(b)));for(var _=l(E),O=l(b),T=0;T<R.length;++T){var M=R[T];if(!n[M]&&!(x&&x[M])&&!(O&&O[M])&&!(_&&_[M])){var A=p(b,M);try{c(E,M,A)}catch{}}}}return E}return E1=y,E1}var H6=A$();const U6=Ss(H6),O$=cM({__proto__:null,default:U6},[H6]),M$=U6||O$,w1={componentStack:null,error:null,eventId:null};class $ee extends S.Component{constructor(t){super(t),this.state=w1,this._openFallbackReportDialog=!0;const n=Kt();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&L2({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:i,onError:s,showDialog:l,dialogOptions:c}=this.props;Mc(f=>{i&&i(f,t,r);const d=this.props.handled!=null?this.props.handled:!!this.props.fallback,p=C$(t,n,{mechanism:{handled:d}});s&&s(t,r,p),l&&(this._lastEventId=p,this._openFallbackReportDialog&&L2({...c,eventId:p})),this.setState({error:t,componentStack:r,eventId:p})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&(this.state===w1?i(null,null,null):i(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(w1)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const i=typeof t=="function"?S.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return S.isValidElement(i)?i:null}}let Km,Mu=!1;function I$(e,t=!1){Km=e,Mu=t}function D$(e,t){if(e.some(i=>i.lazy||i.handle&&typeof i.handle=="object"&&Object.values(i.handle).some(s=>typeof s=="function")))return!0;const r=Km(e,t);return!r||r.length===0}function L$(e){return k$(e.route.path||"")}function P$(e){return e.params["*"]||""}function k$(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function zu(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function V6(e){return e.endsWith("*")}function V2(e,t){var n;return V6(e)&&!!((n=t.route.children)!=null&&n.length)||!1}function N$(e){var t;return!!(!e.children&&e.element&&((t=e.path)!=null&&t.endsWith("/*")))}function F$(e,t,n){const r=e||Mu?em(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function j2(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function em(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function vd(e){return e[0]==="/"?e:`/${e}`}function nw(e,t){const n=Km(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const i=L$(r),s=em(t.pathname,vd(r.pathnameBase));return t.pathname===s?zu(s):zu(zu(i||"")+vd(nw(e.filter(l=>l!==r.route),{pathname:s})))}return""}function j6(e,t){const n=Km(t,e);if(n){for(const r of n)if(N$(r.route)&&P$(r))return!0}return!1}function $6(e,t,n,r=""){if(!e||e.length===0)return[Mu?em(t.pathname,r):t.pathname,"url"];let i="";if(n)for(const l of n){const c=l.route;if(c){if(c.index)return F$(i,l.pathname,r);const f=c.path;if(f&&!V2(f,l)){const d=f[0]==="/"||i[i.length-1]==="/"?f:`/${f}`;if(i=zu(i)+vd(d),zu(t.pathname)===zu(r+l.pathname))return j2(i)!==j2(l.pathname)&&!V6(i)?[(Mu?"":r)+d,"route"]:(V2(i,l)&&(i=i.slice(0,-1)),[(Mu?"":r)+i,"route"])}}}return[Mu?em(t.pathname,r):t.pathname||"","url"]}function z$(e,t,n,r,i=""){let s,l="url";const c=j6(e,n);return c&&(s=vd(nw(n,e)),l="route"),(!c||!s)&&([s,l]=$6(t,e,r,i)),[s||e.pathname,l]}let dS,hS,pS,gS,Xm;const q6=new WeakSet,mS=new Set;function B$(e,t){const n=S$({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:i,useNavigationType:s,createRoutesFromChildren:l,matchRoutes:c,stripBasename:f,enableAsyncRouteHandlers:d=!1,instrumentPageLoad:p=!0,instrumentNavigation:g=!0}=e;return{...n,setup(m){n.setup(m),dS=r,hS=i,pS=s,Xm=c,gS=l,I$(c,f||!1)},afterAllSetup(m){var E;n.afterAllSetup(m);const y=(E=Mt.location)==null?void 0:E.pathname;p&&y&&F6(m,{name:y,attributes:{[Yr]:"url",[ni]:"pageload",[Un]:`auto.pageload.react.reactrouter_v${t}`}}),g&&q6.add(m)}}}function H$(e){const{location:t,routes:n,navigationType:r,version:i,matches:s,basename:l,allRoutes:c}=e,f=Array.isArray(s)?s:Xm(n,t,l),d=Kt();if(!(!d||!q6.has(d))&&(r==="PUSH"||r==="POP")&&f){const[p,g]=z$(t,n,c||n,f,l),m=D$(c||n,t),y=Lr(),E=y&&rn(y);(E==null?void 0:E.op)==="navigation"&&y&&E?q$(y,E,p,g,m):G$(d,p,g,i,m)}}function U$(e){e.forEach(t=>{G6(t).forEach(r=>{mS.add(r)})})}function G6(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{G6(n,t).forEach(i=>{t.add(i)})})),t}function V$({activeRootSpan:e,location:t,routes:n,matches:r,basename:i,allRoutes:s}){const l=Array.isArray(r)?r:Xm(s||n,t,i);if(l){let c,f="url";const d=j6(t,s||n);d&&(c=vd(nw(s||n,t)),f="route"),(!d||!c)&&([c,f]=$6(n,t,l,i)),on().setTransactionName(c||"/"),e&&(e.updateName(c),e.setAttribute(Yr,f))}}function j$(e,t){if(!dS||!hS||!pS||!gS||!Xm)return e;const n=r=>{const i=S.useRef(!0),s=hS(),l=pS();return dS(()=>{const c=gS(r.children);i.current?(U$(c),V$({activeRootSpan:$$(),location:s,routes:c,allRoutes:Array.from(mS)}),i.current=!1):H$({location:s,routes:c,navigationType:l,version:t,allRoutes:Array.from(mS)})},[s,l]),S.createElement(e,{...r})};return M$(n,e),n}function $$(){const e=Lr(),t=e?Wr(e):void 0;if(!t)return;const n=rn(t).op;return n==="navigation"||n==="pageload"?t:void 0}function q$(e,t,n,r,i){(e==null?void 0:e.__sentry_navigation_name_set__)||(t.timestamp||e==null||e.updateName(n),i||Dr(e,"__sentry_navigation_name_set__",!0)),e==null||e.setAttribute(Yr,r)}function G$(e,t,n,r,i){const s=z6(e,{name:t,attributes:{[Yr]:n,[ni]:"navigation",[Un]:`auto.navigation.react.reactrouter_v${r}`}});!i&&s&&Dr(s,"__sentry_navigation_name_set__",!0)}function qee(e){return j$(e,"6")}function Gee(e){return B$(e,"7")}function Y6(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y$}=Object.prototype,{getPrototypeOf:rw}=Object,{iterator:Wm,toStringTag:K6}=Symbol,Qm=(e=>t=>{const n=Y$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ai=e=>(e=e.toLowerCase(),t=>Qm(t)===e),Jm=e=>t=>typeof t===e,{isArray:zc}=Array,pc=Jm("undefined");function Qd(e){return e!==null&&!pc(e)&&e.constructor!==null&&!pc(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const X6=ai("ArrayBuffer");function K$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&X6(e.buffer),t}const X$=Jm("string"),Qr=Jm("function"),W6=Jm("number"),Jd=e=>e!==null&&typeof e=="object",W$=e=>e===!0||e===!1,xg=e=>{if(Qm(e)!=="object")return!1;const t=rw(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(K6 in e)&&!(Wm in e)},Q$=e=>{if(!Jd(e)||Qd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},J$=ai("Date"),Z$=ai("File"),eq=ai("Blob"),tq=ai("FileList"),nq=e=>Jd(e)&&Qr(e.pipe),rq=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Qr(e.append)&&((t=Qm(e))==="formdata"||t==="object"&&Qr(e.toString)&&e.toString()==="[object FormData]"))},oq=ai("URLSearchParams"),[iq,sq,aq,lq]=["ReadableStream","Request","Response","Headers"].map(ai),uq=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),zc(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Qd(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let c;for(r=0;r<l;r++)c=s[r],t.call(null,e[c],c,e)}}function Q6(e,t){if(Qd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ja=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,J6=e=>!pc(e)&&e!==Ja;function vS(){const{caseless:e,skipUndefined:t}=J6(this)&&this||{},n={},r=(i,s)=>{const l=e&&Q6(n,s)||s;xg(n[l])&&xg(i)?n[l]=vS(n[l],i):xg(i)?n[l]=vS({},i):zc(i)?n[l]=i.slice():(!t||!pc(i))&&(n[l]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Zd(arguments[i],r);return n}const cq=(e,t,n,{allOwnKeys:r}={})=>(Zd(t,(i,s)=>{n&&Qr(i)?e[s]=Y6(i,n):e[s]=i},{allOwnKeys:r}),e),fq=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dq=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},hq=(e,t,n,r)=>{let i,s,l;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)l=i[s],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&rw(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pq=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},gq=e=>{if(!e)return null;if(zc(e))return e;let t=e.length;if(!W6(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mq=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rw(Uint8Array)),vq=(e,t)=>{const r=(e&&e[Wm]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},yq=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},bq=ai("HTMLFormElement"),Sq=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),$2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Eq=ai("RegExp"),Z6=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zd(n,(i,s)=>{let l;(l=t(i,s,e))!==!1&&(r[s]=l||i)}),Object.defineProperties(e,r)},wq=e=>{Z6(e,(t,n)=>{if(Qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Qr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Rq=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return zc(e)?r(e):r(String(e).split(t)),n},xq=()=>{},Cq=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _q(e){return!!(e&&Qr(e.append)&&e[K6]==="FormData"&&e[Wm])}const Tq=e=>{const t=new Array(10),n=(r,i)=>{if(Jd(r)){if(t.indexOf(r)>=0)return;if(Qd(r))return r;if(!("toJSON"in r)){t[i]=r;const s=zc(r)?[]:{};return Zd(r,(l,c)=>{const f=n(l,i+1);!pc(f)&&(s[c]=f)}),t[i]=void 0,s}}return r};return n(e,0)},Aq=ai("AsyncFunction"),Oq=e=>e&&(Jd(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),e3=((e,t)=>e?setImmediate:t?((n,r)=>(Ja.addEventListener("message",({source:i,data:s})=>{i===Ja&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ja.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Qr(Ja.postMessage)),Mq=typeof queueMicrotask<"u"?queueMicrotask.bind(Ja):typeof process<"u"&&process.nextTick||e3,Iq=e=>e!=null&&Qr(e[Wm]),ye={isArray:zc,isArrayBuffer:X6,isBuffer:Qd,isFormData:rq,isArrayBufferView:K$,isString:X$,isNumber:W6,isBoolean:W$,isObject:Jd,isPlainObject:xg,isEmptyObject:Q$,isReadableStream:iq,isRequest:sq,isResponse:aq,isHeaders:lq,isUndefined:pc,isDate:J$,isFile:Z$,isBlob:eq,isRegExp:Eq,isFunction:Qr,isStream:nq,isURLSearchParams:oq,isTypedArray:mq,isFileList:tq,forEach:Zd,merge:vS,extend:cq,trim:uq,stripBOM:fq,inherits:dq,toFlatObject:hq,kindOf:Qm,kindOfTest:ai,endsWith:pq,toArray:gq,forEachEntry:vq,matchAll:yq,isHTMLForm:bq,hasOwnProperty:$2,hasOwnProp:$2,reduceDescriptors:Z6,freezeMethods:wq,toObjectSet:Rq,toCamelCase:Sq,noop:xq,toFiniteNumber:Cq,findKey:Q6,global:Ja,isContextDefined:J6,isSpecCompliantForm:_q,toJSONObject:Tq,isAsyncFn:Aq,isThenable:Oq,setImmediate:e3,asap:Mq,isIterable:Iq};function Et(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ye.inherits(Et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}});const t3=Et.prototype,n3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{n3[e]={value:e}});Object.defineProperties(Et,n3);Object.defineProperty(t3,"isAxiosError",{value:!0});Et.from=(e,t,n,r,i,s)=>{const l=Object.create(t3);ye.toFlatObject(e,l,function(p){return p!==Error.prototype},d=>d!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Et.call(l,c,f,n,r,i),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",s&&Object.assign(l,s),l};const Dq=null;function yS(e){return ye.isPlainObject(e)||ye.isArray(e)}function r3(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function q2(e,t,n){return e?e.concat(t).map(function(i,s){return i=r3(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Lq(e){return ye.isArray(e)&&!e.some(yS)}const Pq=ye.toFlatObject(ye,{},null,function(t){return/^is[A-Z]/.test(t)});function Zm(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,x){return!ye.isUndefined(x[b])});const r=n.metaTokens,i=n.visitor||p,s=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(i))throw new TypeError("visitor must be a function");function d(E){if(E===null)return"";if(ye.isDate(E))return E.toISOString();if(ye.isBoolean(E))return E.toString();if(!f&&ye.isBlob(E))throw new Et("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(E)||ye.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,b,x){let C=E;if(E&&!x&&typeof E=="object"){if(ye.endsWith(b,"{}"))b=r?b:b.slice(0,-2),E=JSON.stringify(E);else if(ye.isArray(E)&&Lq(E)||(ye.isFileList(E)||ye.endsWith(b,"[]"))&&(C=ye.toArray(E)))return b=r3(b),C.forEach(function(_,O){!(ye.isUndefined(_)||_===null)&&t.append(l===!0?q2([b],O,s):l===null?b:b+"[]",d(_))}),!1}return yS(E)?!0:(t.append(q2(x,b,s),d(E)),!1)}const g=[],m=Object.assign(Pq,{defaultVisitor:p,convertValue:d,isVisitable:yS});function y(E,b){if(!ye.isUndefined(E)){if(g.indexOf(E)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(E),ye.forEach(E,function(C,R){(!(ye.isUndefined(C)||C===null)&&i.call(t,C,ye.isString(R)?R.trim():R,b,m))===!0&&y(C,b?b.concat(R):[R])}),g.pop()}}if(!ye.isObject(e))throw new TypeError("data must be an object");return y(e),t}function G2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ow(e,t){this._pairs=[],e&&Zm(e,this,t)}const o3=ow.prototype;o3.append=function(t,n){this._pairs.push([t,n])};o3.toString=function(t){const n=t?function(r){return t.call(this,r,G2)}:G2;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function kq(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function i3(e,t,n){if(!t)return e;const r=n&&n.encode||kq;ye.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=ye.isURLSearchParams(t)?t.toString():new ow(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Y2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ye.forEach(this.handlers,function(r){r!==null&&t(r)})}}const s3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nq=typeof URLSearchParams<"u"?URLSearchParams:ow,Fq=typeof FormData<"u"?FormData:null,zq=typeof Blob<"u"?Blob:null,Bq={isBrowser:!0,classes:{URLSearchParams:Nq,FormData:Fq,Blob:zq},protocols:["http","https","file","blob","url","data"]},iw=typeof window<"u"&&typeof document<"u",bS=typeof navigator=="object"&&navigator||void 0,Hq=iw&&(!bS||["ReactNative","NativeScript","NS"].indexOf(bS.product)<0),Uq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vq=iw&&window.location.href||"http://localhost",jq=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:iw,hasStandardBrowserEnv:Hq,hasStandardBrowserWebWorkerEnv:Uq,navigator:bS,origin:Vq},Symbol.toStringTag,{value:"Module"})),Rr={...jq,...Bq};function $q(e,t){return Zm(e,new Rr.classes.URLSearchParams,{visitor:function(n,r,i,s){return Rr.isNode&&ye.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function qq(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gq(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function a3(e){function t(n,r,i,s){let l=n[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),f=s>=n.length;return l=!l&&ye.isArray(i)?i.length:l,f?(ye.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!c):((!i[l]||!ye.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],s)&&ye.isArray(i[l])&&(i[l]=Gq(i[l])),!c)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,(r,i)=>{t(qq(r),i,n,0)}),n}return null}function Yq(e,t,n){if(ye.isString(e))try{return(t||JSON.parse)(e),ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const eh={transitional:s3,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=ye.isObject(t);if(s&&ye.isHTMLForm(t)&&(t=new FormData(t)),ye.isFormData(t))return i?JSON.stringify(a3(t)):t;if(ye.isArrayBuffer(t)||ye.isBuffer(t)||ye.isStream(t)||ye.isFile(t)||ye.isBlob(t)||ye.isReadableStream(t))return t;if(ye.isArrayBufferView(t))return t.buffer;if(ye.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $q(t,this.formSerializer).toString();if((c=ye.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Zm(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Yq(t)):t}],transformResponse:[function(t){const n=this.transitional||eh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ye.isResponse(t)||ye.isReadableStream(t))return t;if(t&&ye.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?Et.from(c,Et.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rr.classes.FormData,Blob:Rr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{eh.headers[e]={}});const Kq=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xq=e=>{const t={};let n,r,i;return e&&e.split(`
16
+ `).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&Kq[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},K2=Symbol("internals");function Uf(e){return e&&String(e).trim().toLowerCase()}function Cg(e){return e===!1||e==null?e:ye.isArray(e)?e.map(Cg):String(e)}function Wq(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Qq=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function R1(e,t,n,r,i){if(ye.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ye.isString(t)){if(ye.isString(r))return t.indexOf(r)!==-1;if(ye.isRegExp(r))return r.test(t)}}function Jq(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Zq(e,t){const n=ye.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,l){return this[r].call(this,t,i,s,l)},configurable:!0})})}let Jr=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(c,f,d){const p=Uf(f);if(!p)throw new Error("header name must be a non-empty string");const g=ye.findKey(i,p);(!g||i[g]===void 0||d===!0||d===void 0&&i[g]!==!1)&&(i[g||f]=Cg(c))}const l=(c,f)=>ye.forEach(c,(d,p)=>s(d,p,f));if(ye.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ye.isString(t)&&(t=t.trim())&&!Qq(t))l(Xq(t),n);else if(ye.isObject(t)&&ye.isIterable(t)){let c={},f,d;for(const p of t){if(!ye.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[d=p[0]]=(f=c[d])?ye.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}l(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Uf(t),t){const r=ye.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Wq(i);if(ye.isFunction(n))return n.call(this,i,r);if(ye.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Uf(t),t){const r=ye.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||R1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(l){if(l=Uf(l),l){const c=ye.findKey(r,l);c&&(!n||R1(r,r[c],c,n))&&(delete r[c],i=!0)}}return ye.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||R1(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return ye.forEach(this,(i,s)=>{const l=ye.findKey(r,s);if(l){n[l]=Cg(i),delete n[s];return}const c=t?Jq(s):String(s).trim();c!==s&&delete n[s],n[c]=Cg(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ye.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ye.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
17
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[K2]=this[K2]={accessors:{}}).accessors,i=this.prototype;function s(l){const c=Uf(l);r[c]||(Zq(i,l),r[c]=!0)}return ye.isArray(t)?t.forEach(s):s(t),this}};Jr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ye.reduceDescriptors(Jr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ye.freezeMethods(Jr);function x1(e,t){const n=this||eh,r=t||n,i=Jr.from(r.headers);let s=r.data;return ye.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function l3(e){return!!(e&&e.__CANCEL__)}function Bc(e,t,n){Et.call(this,e??"canceled",Et.ERR_CANCELED,t,n),this.name="CanceledError"}ye.inherits(Bc,Et,{__CANCEL__:!0});function u3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Et("Request failed with status code "+n.status,[Et.ERR_BAD_REQUEST,Et.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function eG(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tG(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,l;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),p=r[s];l||(l=d),n[i]=f,r[i]=d;let g=s,m=0;for(;g!==i;)m+=n[g++],g=g%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(m*1e3/y):void 0}}function nG(e,t){let n=0,r=1e3/t,i,s;const l=(d,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const p=Date.now(),g=p-n;g>=r?l(d,p):(i=d,s||(s=setTimeout(()=>{s=null,l(i)},r-g)))},()=>i&&l(i)]}const tm=(e,t,n=3)=>{let r=0;const i=tG(50,250);return nG(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,f=l-r,d=i(f),p=l<=c;r=l;const g={loaded:l,total:c,progress:c?l/c:void 0,bytes:f,rate:d||void 0,estimated:d&&c&&p?(c-l)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},X2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},W2=e=>(...t)=>ye.asap(()=>e(...t)),rG=Rr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rr.origin),Rr.navigator&&/(msie|trident)/i.test(Rr.navigator.userAgent)):()=>!0,oG=Rr.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const l=[e+"="+encodeURIComponent(t)];ye.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ye.isString(r)&&l.push("path="+r),ye.isString(i)&&l.push("domain="+i),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function iG(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sG(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function c3(e,t,n){let r=!iG(t);return e&&(r||n==!1)?sG(e,t):t}const Q2=e=>e instanceof Jr?{...e}:e;function _l(e,t){t=t||{};const n={};function r(d,p,g,m){return ye.isPlainObject(d)&&ye.isPlainObject(p)?ye.merge.call({caseless:m},d,p):ye.isPlainObject(p)?ye.merge({},p):ye.isArray(p)?p.slice():p}function i(d,p,g,m){if(ye.isUndefined(p)){if(!ye.isUndefined(d))return r(void 0,d,g,m)}else return r(d,p,g,m)}function s(d,p){if(!ye.isUndefined(p))return r(void 0,p)}function l(d,p){if(ye.isUndefined(p)){if(!ye.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,g){if(g in t)return r(d,p);if(g in e)return r(void 0,d)}const f={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(d,p,g)=>i(Q2(d),Q2(p),g,!0)};return ye.forEach(Object.keys({...e,...t}),function(p){const g=f[p]||i,m=g(e[p],t[p],p);ye.isUndefined(m)&&g!==c||(n[p]=m)}),n}const f3=e=>{const t=_l({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:l,auth:c}=t;if(t.headers=l=Jr.from(l),t.url=i3(c3(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ye.isFormData(n)){if(Rr.hasStandardBrowserEnv||Rr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(ye.isFunction(n.getHeaders)){const f=n.getHeaders(),d=["content-type","content-length"];Object.entries(f).forEach(([p,g])=>{d.includes(p.toLowerCase())&&l.set(p,g)})}}if(Rr.hasStandardBrowserEnv&&(r&&ye.isFunction(r)&&(r=r(t)),r||r!==!1&&rG(t.url))){const f=i&&s&&oG.read(s);f&&l.set(i,f)}return t},aG=typeof XMLHttpRequest<"u",lG=aG&&function(e){return new Promise(function(n,r){const i=f3(e);let s=i.data;const l=Jr.from(i.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:d}=i,p,g,m,y,E;function b(){y&&y(),E&&E(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function C(){if(!x)return;const _=Jr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:_,config:e,request:x};u3(function(A){n(A),b()},function(A){r(A),b()},T),x=null}"onloadend"in x?x.onloadend=C:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(C)},x.onabort=function(){x&&(r(new Et("Request aborted",Et.ECONNABORTED,e,x)),x=null)},x.onerror=function(O){const T=O&&O.message?O.message:"Network Error",M=new Et(T,Et.ERR_NETWORK,e,x);M.event=O||null,r(M),x=null},x.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||s3;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),r(new Et(O,T.clarifyTimeoutError?Et.ETIMEDOUT:Et.ECONNABORTED,e,x)),x=null},s===void 0&&l.setContentType(null),"setRequestHeader"in x&&ye.forEach(l.toJSON(),function(O,T){x.setRequestHeader(T,O)}),ye.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),c&&c!=="json"&&(x.responseType=i.responseType),d&&([m,E]=tm(d,!0),x.addEventListener("progress",m)),f&&x.upload&&([g,y]=tm(f),x.upload.addEventListener("progress",g),x.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(p=_=>{x&&(r(!_||_.type?new Bc(null,e,x):_),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const R=eG(i.url);if(R&&Rr.protocols.indexOf(R)===-1){r(new Et("Unsupported protocol "+R+":",Et.ERR_BAD_REQUEST,e));return}x.send(s||null)})},uG=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(d){if(!i){i=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Et?p:new Bc(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new Et(`timeout ${t} of ms exceeded`,Et.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>ye.asap(c),f}},cG=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},fG=async function*(e,t){for await(const n of dG(e))yield*cG(n,t)},dG=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},J2=(e,t,n,r)=>{const i=fG(e,t);let s=0,l,c=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:d,value:p}=await i.next();if(d){c(),f.close();return}let g=p.byteLength;if(n){let m=s+=g;n(m)}f.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(f){return c(f),i.return()}},{highWaterMark:2})},Z2=64*1024,{isFunction:qp}=ye,hG=(({Request:e,Response:t})=>({Request:e,Response:t}))(ye.global),{ReadableStream:eA,TextEncoder:tA}=ye.global,nA=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pG=e=>{e=ye.merge.call({skipUndefined:!0},hG,e);const{fetch:t,Request:n,Response:r}=e,i=t?qp(t):typeof fetch=="function",s=qp(n),l=qp(r);if(!i)return!1;const c=i&&qp(eA),f=i&&(typeof tA=="function"?(E=>b=>E.encode(b))(new tA):async E=>new Uint8Array(await new n(E).arrayBuffer())),d=s&&c&&nA(()=>{let E=!1;const b=new n(Rr.origin,{body:new eA,method:"POST",get duplex(){return E=!0,"half"}}).headers.has("Content-Type");return E&&!b}),p=l&&c&&nA(()=>ye.isReadableStream(new r("").body)),g={stream:p&&(E=>E.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!g[E]&&(g[E]=(b,x)=>{let C=b&&b[E];if(C)return C.call(b);throw new Et(`Response type '${E}' is not supported`,Et.ERR_NOT_SUPPORT,x)})});const m=async E=>{if(E==null)return 0;if(ye.isBlob(E))return E.size;if(ye.isSpecCompliantForm(E))return(await new n(Rr.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(ye.isArrayBufferView(E)||ye.isArrayBuffer(E))return E.byteLength;if(ye.isURLSearchParams(E)&&(E=E+""),ye.isString(E))return(await f(E)).byteLength},y=async(E,b)=>{const x=ye.toFiniteNumber(E.getContentLength());return x??m(b)};return async E=>{let{url:b,method:x,data:C,signal:R,cancelToken:_,timeout:O,onDownloadProgress:T,onUploadProgress:M,responseType:A,headers:D,withCredentials:L="same-origin",fetchOptions:F}=f3(E),B=t||fetch;A=A?(A+"").toLowerCase():"text";let j=uG([R,_&&_.toAbortSignal()],O),z=null;const G=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let V;try{if(M&&d&&x!=="get"&&x!=="head"&&(V=await y(D,C))!==0){let k=new n(b,{method:"POST",body:C,duplex:"half"}),$;if(ye.isFormData(C)&&($=k.headers.get("content-type"))&&D.setContentType($),k.body){const[X,te]=X2(V,tm(W2(M)));C=J2(k.body,Z2,X,te)}}ye.isString(L)||(L=L?"include":"omit");const P=s&&"credentials"in n.prototype,q={...F,signal:j,method:x.toUpperCase(),headers:D.normalize().toJSON(),body:C,duplex:"half",credentials:P?L:void 0};z=s&&new n(b,q);let U=await(s?B(z,F):B(b,q));const K=p&&(A==="stream"||A==="response");if(p&&(T||K&&G)){const k={};["status","statusText","headers"].forEach(ue=>{k[ue]=U[ue]});const $=ye.toFiniteNumber(U.headers.get("content-length")),[X,te]=T&&X2($,tm(W2(T),!0))||[];U=new r(J2(U.body,Z2,X,()=>{te&&te(),G&&G()}),k)}A=A||"text";let Z=await g[ye.findKey(g,A)||"text"](U,E);return!K&&G&&G(),await new Promise((k,$)=>{u3(k,$,{data:Z,headers:Jr.from(U.headers),status:U.status,statusText:U.statusText,config:E,request:z})})}catch(P){throw G&&G(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new Et("Network Error",Et.ERR_NETWORK,E,z),{cause:P.cause||P}):Et.from(P,P&&P.code,E,z)}}},gG=new Map,d3=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let l=s.length,c=l,f,d,p=gG;for(;c--;)f=s[c],d=p.get(f),d===void 0&&p.set(f,d=c?new Map:pG(t)),p=d;return d};d3();const SS={http:Dq,xhr:lG,fetch:{get:d3}};ye.forEach(SS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rA=e=>`- ${e}`,mG=e=>ye.isFunction(e)||e===null||e===!1,h3={getAdapter:(e,t)=>{e=ye.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let l=0;l<n;l++){r=e[l];let c;if(i=r,!mG(r)&&(i=SS[(c=String(r)).toLowerCase()],i===void 0))throw new Et(`Unknown adapter '${c}'`);if(i&&(ye.isFunction(i)||(i=i.get(t))))break;s[c||"#"+l]=i}if(!i){const l=Object.entries(s).map(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?l.length>1?`since :
18
+ `+l.map(rA).join(`
19
+ `):" "+rA(l[0]):"as no adapter specified";throw new Et("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return i},adapters:SS};function C1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bc(null,e)}function oA(e){return C1(e),e.headers=Jr.from(e.headers),e.data=x1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),h3.getAdapter(e.adapter||eh.adapter,e)(e).then(function(r){return C1(e),r.data=x1.call(e,e.transformResponse,r),r.headers=Jr.from(r.headers),r},function(r){return l3(r)||(C1(e),r&&r.response&&(r.response.data=x1.call(e,e.transformResponse,r.response),r.response.headers=Jr.from(r.response.headers))),Promise.reject(r)})}const p3="1.12.2",e0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const iA={};e0.transitional=function(t,n,r){function i(s,l){return"[Axios v"+p3+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,c)=>{if(t===!1)throw new Et(i(l," has been removed"+(n?" in "+n:"")),Et.ERR_DEPRECATED);return n&&!iA[l]&&(iA[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,c):!0}};e0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function vG(e,t,n){if(typeof e!="object")throw new Et("options must be an object",Et.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],l=t[s];if(l){const c=e[s],f=c===void 0||l(c,s,e);if(f!==!0)throw new Et("option "+s+" must be "+f,Et.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Et("Unknown option "+s,Et.ERR_BAD_OPTION)}}const _g={assertOptions:vG,validators:e0},pi=_g.validators;let vl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Y2,response:new Y2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
20
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_l(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&_g.assertOptions(r,{silentJSONParsing:pi.transitional(pi.boolean),forcedJSONParsing:pi.transitional(pi.boolean),clarifyTimeoutError:pi.transitional(pi.boolean)},!1),i!=null&&(ye.isFunction(i)?n.paramsSerializer={serialize:i}:_g.assertOptions(i,{encode:pi.function,serialize:pi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),_g.assertOptions(n,{baseUrl:pi.spelling("baseURL"),withXsrfToken:pi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&ye.merge(s.common,s[n.method]);s&&ye.forEach(["delete","get","head","post","put","patch","common"],E=>{delete s[E]}),n.headers=Jr.concat(l,s);const c=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(f=f&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let p,g=0,m;if(!f){const E=[oA.bind(this),void 0];for(E.unshift(...c),E.push(...d),m=E.length,p=Promise.resolve(n);g<m;)p=p.then(E[g++],E[g++]);return p}m=c.length;let y=n;for(;g<m;){const E=c[g++],b=c[g++];try{y=E(y)}catch(x){b.call(this,x);break}}try{p=oA.call(this,y)}catch(E){return Promise.reject(E)}for(g=0,m=d.length;g<m;)p=p.then(d[g++],d[g++]);return p}getUri(t){t=_l(this.defaults,t);const n=c3(t.baseURL,t.url,t.allowAbsoluteUrls);return i3(n,t.params,t.paramsSerializer)}};ye.forEach(["delete","get","head","options"],function(t){vl.prototype[t]=function(n,r){return this.request(_l(r||{},{method:t,url:n,data:(r||{}).data}))}});ye.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,c){return this.request(_l(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}vl.prototype[t]=n(),vl.prototype[t+"Form"]=n(!0)});let yG=class g3{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const l=new Promise(c=>{r.subscribe(c),s=c}).then(i);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,c){r.reason||(r.reason=new Bc(s,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new g3(function(i){t=i}),cancel:t}}};function bG(e){return function(n){return e.apply(null,n)}}function SG(e){return ye.isObject(e)&&e.isAxiosError===!0}const ES={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ES).forEach(([e,t])=>{ES[t]=e});function m3(e){const t=new vl(e),n=Y6(vl.prototype.request,t);return ye.extend(n,vl.prototype,t,{allOwnKeys:!0}),ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return m3(_l(e,i))},n}const Wn=m3(eh);Wn.Axios=vl;Wn.CanceledError=Bc;Wn.CancelToken=yG;Wn.isCancel=l3;Wn.VERSION=p3;Wn.toFormData=Zm;Wn.AxiosError=Et;Wn.Cancel=Wn.CanceledError;Wn.all=function(t){return Promise.all(t)};Wn.spread=bG;Wn.isAxiosError=SG;Wn.mergeConfig=_l;Wn.AxiosHeaders=Jr;Wn.formToJSON=e=>a3(ye.isHTMLForm(e)?new FormData(e):e);Wn.getAdapter=h3.getAdapter;Wn.HttpStatusCode=ES;Wn.default=Wn;const{Axios:Xee,AxiosError:Wee,CanceledError:Qee,isCancel:Jee,CancelToken:Zee,VERSION:ete,all:tte,Cancel:nte,isAxiosError:rte,spread:ote,toFormData:ite,AxiosHeaders:ste,HttpStatusCode:ate,formToJSON:lte,getAdapter:ute,mergeConfig:cte}=Wn;let EG=e=>crypto.getRandomValues(new Uint8Array(e)),wG=(e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,i=-~(1.6*r*t/e.length);return(s=t)=>{let l="";for(;;){let c=n(i),f=i|0;for(;f--;)if(l+=e[c[f]&r]||"",l.length>=s)return l}}},fte=(e,t=21)=>wG(e,t|0,EG);const sA=e=>{let t;const n=new Set,r=(d,p)=>{const g=typeof d=="function"?d(t):d;if(!Object.is(g,t)){const m=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(y=>y(t,m))}},i=()=>t,c={setState:r,getState:i,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,i,c);return c},v3=e=>e?sA(e):sA,RG=e=>e;function xG(e,t=RG){const n=fe.useSyncExternalStore(e.subscribe,fe.useCallback(()=>t(e.getState()),[e,t]),fe.useCallback(()=>t(e.getInitialState()),[e,t]));return fe.useDebugValue(n),n}const aA=e=>{const t=v3(e),n=r=>xG(t,r);return Object.assign(n,t),n},dte=e=>e?aA(e):aA;var _1,lA;function CG(){if(lA)return _1;lA=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,f,d;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!i(s[f],l[f]))return!1;return!0}var p;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(p=s.entries();!(f=p.next()).done;)if(!l.has(f.value[0]))return!1;for(p=s.entries();!(f=p.next()).done;)if(!i(f.value[1],l.get(f.value[0])))return!1;return!0}if(n&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(p=s.entries();!(f=p.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(s[f]!==l[f])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(d=Object.keys(s),c=d.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[f]))return!1;if(e&&s instanceof Element)return!1;for(f=c;f--!==0;)if(!((d[f]==="_owner"||d[f]==="__v"||d[f]==="__o")&&s.$$typeof)&&!i(s[d[f]],l[d[f]]))return!1;return!0}return s!==s&&l!==l}return _1=function(l,c){try{return i(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},_1}var _G=CG();const hte=Ss(_G),{useSyncExternalStoreWithSelector:TG}=Nz,AG=e=>e;function OG(e,t=AG,n){const r=TG(e.subscribe,e.getState,e.getInitialState,t,n);return fe.useDebugValue(r),r}const uA=(e,t)=>{const n=v3(e),r=(i,s=t)=>OG(n,i,s);return Object.assign(r,n),r},pte=(e,t)=>e?uA(e,t):uA;function MG(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function gte(e,t){const{delay:n,flushOnUnmount:r,leading:i}={delay:t,flushOnUnmount:!1,leading:!1},s=MG(e),l=S.useRef(0),c=S.useMemo(()=>{const f=Object.assign((...d)=>{window.clearTimeout(l.current);const p=f._isFirstCall;f._isFirstCall=!1;function g(){window.clearTimeout(l.current),l.current=0,f._isFirstCall=!0}if(i&&p){s(...d);const E=()=>{g()},b=()=>{l.current!==0&&(g(),s(...d))},x=()=>{g()};f.flush=b,f.cancel=x,l.current=window.setTimeout(E,n);return}if(i&&!p){const E=()=>{l.current!==0&&(g(),s(...d))},b=()=>{g()};f.flush=E,f.cancel=b;const x=()=>{g()};l.current=window.setTimeout(x,n);return}const m=()=>{l.current!==0&&(g(),s(...d))},y=()=>{g()};f.flush=m,f.cancel=y,l.current=window.setTimeout(m,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return f},[s,n,i]);return S.useEffect(()=>()=>{r?c.flush():c.cancel()},[c,r]),c}const IG=["mousedown","touchstart"];function mte(e,t,n){const r=S.useRef(null),i=IG;return S.useEffect(()=>{const s=l=>{const{target:c}=l??{};if(Array.isArray(n)){const f=!document.body.contains(c)&&(c==null?void 0:c.tagName)!=="HTML";n.every(p=>!!p&&!l.composedPath().includes(p))&&!f&&e(l)}else r.current&&!r.current.contains(c)&&e(l)};return i.forEach(l=>document.addEventListener(l,s)),()=>{i.forEach(l=>document.removeEventListener(l,s))}},[r,e,n]),r}const DG=typeof document<"u"?S.useLayoutEffect:S.useEffect;function nm(e,t,n){S.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function LG(e,t="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function PG(e){try{return e&&JSON.parse(e)}catch{return e}}function kG(e){return{getItem:i=>{try{return window[e].getItem(i)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(i,s)=>{try{window[e].setItem(i,s)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:i=>{try{window[e].removeItem(i)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function y3(e,t){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:r,setItem:i,removeItem:s}=kG(e);return function({key:c,defaultValue:f,getInitialValueInEffect:d=!0,sync:p=!0,deserialize:g=PG,serialize:m=y=>LG(y,t)}){const y=S.useCallback(R=>{let _;try{_=typeof window>"u"||!(e in window)||window[e]===null||!!R}catch{_=!0}if(_)return f;const O=r(c);return O!==null?g(O):f},[c,f]),[E,b]=S.useState(y(d)),x=S.useCallback(R=>{R instanceof Function?b(_=>{const O=R(_);return i(c,m(O)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:c,value:R(_)}}))}),O}):(i(c,m(R)),window.dispatchEvent(new CustomEvent(n,{detail:{key:c,value:R}})),b(R))},[c]),C=S.useCallback(()=>{s(c),b(f),window.dispatchEvent(new CustomEvent(n,{detail:{key:c,value:f}}))},[c,f]);return nm("storage",R=>{p&&R.storageArea===window[e]&&R.key===c&&b(g(R.newValue??void 0))}),nm(n,R=>{p&&R.detail.key===c&&b(R.detail.value)}),S.useEffect(()=>{f!==void 0&&E===void 0&&x(f)},[f,E,x]),S.useEffect(()=>{const R=y();R!==void 0&&x(R)},[c]),[E===void 0?f:E,x,C]}}function vte(e){return y3("localStorage","use-local-storage")(e)}function yte(e){return y3("sessionStorage","use-session-storage")(e)}function cA(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function bte(...e){const t=new Map;return n=>{if(e.forEach(r=>{const i=cA(r,n);i&&t.set(r,i)}),t.size>0)return()=>{e.forEach(r=>{const i=t.get(r);i&&typeof i=="function"?i():cA(r,null)}),t.clear()}}}const fA={passive:!0};function Ste(){const[e,t]=S.useState({width:0,height:0}),n=S.useCallback(()=>{t({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return nm("resize",n,fA),nm("orientationchange",n,fA),S.useEffect(n,[]),e}const NG={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function Gp(e){const t=e.replace("Key","").toLowerCase();return NG[e]||t}function FG(e){const t=e.toLowerCase().split("+").map(s=>s.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift"),plus:t.includes("[plus]")},r=["alt","ctrl","meta","shift","mod"],i=t.find(s=>!r.includes(s));return{...n,key:i==="[plus]"?"+":i}}function zG(e,t,n){const{alt:r,ctrl:i,meta:s,mod:l,shift:c,key:f}=e,{altKey:d,ctrlKey:p,metaKey:g,shiftKey:m,key:y,code:E}=t;if(r!==d)return!1;if(l){if(!p&&!g)return!1}else if(i!==p||s!==g)return!1;return c!==m?!1:!!(f&&(n?Gp(E)===Gp(f):Gp(y??E)===Gp(f)))}function b3(e,t){return n=>zG(FG(e),n,t)}function Ete(e){return t=>{const n="nativeEvent"in t?t.nativeEvent:t;e.forEach(([r,i,s={preventDefault:!0,usePhysicalKeys:!1}])=>{b3(r,s.usePhysicalKeys)(n)&&(s.preventDefault&&t.preventDefault(),i(n))})}}function BG(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function wte(e,t=["INPUT","TEXTAREA","SELECT"],n=!1){S.useEffect(()=>{const r=i=>{e.forEach(([s,l,c={preventDefault:!0,usePhysicalKeys:!1}])=>{b3(s,c.usePhysicalKeys)(i)&&BG(i,t,n)&&(c.preventDefault&&i.preventDefault(),l(i))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[e])}function dA(){const e=window.document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement}function HG(){const e=window.document;return typeof e.exitFullscreen=="function"?e.exitFullscreen():typeof e.msExitFullscreen=="function"?e.msExitFullscreen():typeof e.webkitExitFullscreen=="function"?e.webkitExitFullscreen():typeof e.mozCancelFullScreen=="function"?e.mozCancelFullScreen():null}function UG(e){var n,r,i,s,l;const t=e;return((n=t.requestFullscreen)==null?void 0:n.call(t))||((r=t.msRequestFullscreen)==null?void 0:r.call(t))||((i=t.webkitEnterFullscreen)==null?void 0:i.call(t))||((s=t.webkitRequestFullscreen)==null?void 0:s.call(t))||((l=t.mozRequestFullscreen)==null?void 0:l.call(t))}const hA=["","webkit","moz","ms"];function pA(e,{onFullScreen:t,onError:n}){return hA.forEach(r=>{e.addEventListener(`${r}fullscreenchange`,t),e.addEventListener(`${r}fullscreenerror`,n)}),()=>{hA.forEach(r=>{e.removeEventListener(`${r}fullscreenchange`,t),e.removeEventListener(`${r}fullscreenerror`,n)})}}function Rte(){const[e,t]=S.useState(!1),n=S.useRef(null),r=S.useCallback(c=>{t(c.target===dA())},[t]),i=S.useCallback(c=>{t(!1),console.error(`[@mantine/hooks] use-fullscreen: Error attempting full-screen mode method: ${c} (${c.target})`)},[t]),s=S.useCallback(async()=>{dA()?await HG():await UG(n.current)},[]),l=S.useCallback(c=>{c===null?n.current=window.document.documentElement:n.current=c},[]);return S.useEffect(()=>{if(!n.current&&window.document)return n.current=window.document.documentElement,pA(n.current,{onFullScreen:r,onError:i});if(n.current)return pA(n.current,{onFullScreen:r,onError:i})},[n.current]),{ref:l,toggle:s,fullscreen:e}}function gA(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function VG(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function jG(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function $G(e){return/Android/i.test(e)}function qG(e){return/Linux/i.test(e)}function GG(e){return/CrOS/i.test(e)}function mA(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return VG(e)||gA(e)&&"ontouchend"in document?"ios":gA(e)?"macos":jG(e)?"windows":$G(e)?"android":qG(e)?"linux":GG(e)?"chromeos":"undetermined"}function xte(e={getValueInEffect:!0}){const[t,n]=S.useState(e.getValueInEffect?"undetermined":mA());return DG(()=>{e.getValueInEffect&&n(mA)},[]),t}function Cte(e=!1,t={}){const[n,r]=S.useState(e),i=S.useCallback(()=>{r(c=>{var f;return c||((f=t.onOpen)==null||f.call(t),!0)})},[t.onOpen]),s=S.useCallback(()=>{r(c=>{var f;return c&&((f=t.onClose)==null||f.call(t),!1)})},[t.onClose]),l=S.useCallback(()=>{n?s():i()},[s,i,n]);return[n,{open:i,close:s,toggle:l}]}var S3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vA=fe.createContext&&fe.createContext(S3),YG=["attr","size","title"];function KG(e,t){if(e==null)return{};var n=XG(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rm(){return rm=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},rm.apply(this,arguments)}function yA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function om(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yA(Object(n),!0).forEach(function(r){WG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WG(e,t,n){return t=QG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QG(e){var t=JG(e,"string");return typeof t=="symbol"?t:t+""}function JG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E3(e){return e&&e.map((t,n)=>fe.createElement(t.tag,om({key:n},t.attr),E3(t.child)))}function $e(e){return t=>fe.createElement(ZG,rm({attr:om({},e.attr)},t),E3(e.child))}function ZG(e){var t=n=>{var{attr:r,size:i,title:s}=e,l=KG(e,YG),c=i||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),fe.createElement("svg",rm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:f,style:om(om({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&fe.createElement("title",null,s),e.children)};return vA!==void 0?fe.createElement(vA.Consumer,null,n=>t(n)):t(S3)}function _te(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288m144-144H112"},child:[]}]})(e)}function Tte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M250.26 166.05 256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z"},child:[]},{tag:"path",attr:{d:"M256 367.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}function Ate(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm0 319.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.94v-.05a21.74 21.74 0 1 1 43.44 0z"},child:[]}]})(e)}function Ote(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104 160a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zM104 312a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zM104 464a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56z"},child:[]}]})(e)}function Mte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M244 400 100 256l144-144M120 256h292"},child:[]}]})(e)}function Ite(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 268 144 144 144-144M256 392V100"},child:[]}]})(e)}function Dte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m268 112 144 144-144 144m124-144H100"},child:[]}]})(e)}function Lte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 244 144-144 144 144M256 120v292"},child:[]}]})(e)}function Pte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"200",fill:"none",strokeMiterlimit:"10",strokeWidth:"48"},child:[]},{tag:"path",attr:{strokeMiterlimit:"10",strokeWidth:"48",d:"m114.58 114.58 282.84 282.84"},child:[]}]})(e)}function kte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29-134.4 160a16 16 0 0 1-12 5.71h-.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z"},child:[]}]})(e)}function Nte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 128 240 384l-96-96m0 96-96-96m320-160L232 284"},child:[]}]})(e)}function Fte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}function zte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Bte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 328 144-144 144 144"},child:[]}]})(e)}function Hte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function Ute(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M400 240c-8.89-89.54-71-144-144-144-69 0-113.44 48.2-128 96-60 6-112 43.59-112 112 0 66 54 112 120 112h260c55 0 100-27.44 100-88 0-59.82-53-85.76-96-88z"},child:[]}]})(e)}function Vte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416V304h112m-101.8 10.23L432 432M208 96v112H96m101.8-10.23L80 80m336 128H304V96m10.23 101.8L432 80M96 304h112v112m-10.23-101.8L80 432"},child:[]}]})(e)}function jte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"},child:[]}]})(e)}function $te(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M408 480H184a72 72 0 0 1-72-72V184a72 72 0 0 1 72-72h224a72 72 0 0 1 72 72v224a72 72 0 0 1-72 72z"},child:[]},{tag:"path",attr:{d:"M160 80h235.88A72.12 72.12 0 0 0 328 32H104a72 72 0 0 0-72 72v224a72.12 72.12 0 0 0 48 67.88V160a80 80 0 0 1 80-80z"},child:[]}]})(e)}function qte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120"},child:[]}]})(e)}function Gte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m176 272 80 80 80-80M256 48v288"},child:[]}]})(e)}function Yte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24m168-168v160m80-80H216"},child:[]}]})(e)}function Kte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"192",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function Xte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"416",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"96",cy:"256",r:"48"},child:[]}]})(e)}function Wte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320m101.8-10.23L304 304M80 192V80h112M90.2 90.23 208 208M320 80h112v112M421.77 90.2 304 208M192 432H80V320m10.23 101.8L208 304"},child:[]}]})(e)}function Qte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448zm-176.34-64c-41.49 0-81.5-12.28-118.92-36.5-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58 2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1 204.8 204.8 0 0 1-51.16 6.47zm235.18-145.4c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83 2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1 192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37 34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16 310.72 310.72 0 0 1-64.12 72.73 2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13 343.49 343.49 0 0 0 68.64-78.48 32.2 32.2 0 0 0-.1-34.78z"},child:[]},{tag:"path",attr:{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4 2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160zm-90.22 73.66a2 2 0 0 0-3.38 1 96 96 0 0 0 115 115 2 2 0 0 0 1-3.38z"},child:[]}]})(e)}function Jte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z"},child:[]},{tag:"circle",attr:{cx:"256",cy:"256",r:"80",fill:"none",strokeMiterlimit:"10",strokeWidth:"32"},child:[]}]})(e)}function Zte(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"},child:[]},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 0 0-.1-34.76zM256 352a96 96 0 1 1 96-96 96.11 96.11 0 0 1-96 96z"},child:[]}]})(e)}function ene(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M461.05 51a65 65 0 0 0-45.71-19h-.76a61.81 61.81 0 0 0-44.36 19.25 12.81 12.81 0 0 0-1.07 1.25l-54 69.76c-5.62 7.1-12.74 8.68-16.78 4.64l-1.9-1.9a48 48 0 0 0-67.92 67.92l9.91 9.91a2 2 0 0 1 0 2.83L58.7 385.38C54 390.05 46.9 399.85 38.85 431c-4.06 15.71-6.51 29.66-6.61 30.24A16 16 0 0 0 48 480a15.68 15.68 0 0 0 2.64-.22c.58-.1 14.44-2.43 30.13-6.44 31.07-7.94 41.05-15.24 45.85-20l179.77-179.79a2 2 0 0 1 2.82 0l9.92 9.92a48 48 0 0 0 67.92-67.93l-1.59-1.54c-5-5-2.52-12.11 4.32-17.14l69.75-53.94a17.82 17.82 0 0 0 1.47-1.32 63.2 63.2 0 0 0 19-45A63.88 63.88 0 0 0 461.05 51zM250.78 283.9c-2.92 2.92-16.18 7.92-23.39.71s-2.24-20.42.69-23.35l33-33a2 2 0 0 1 2.83 0l19.84 19.83a2 2 0 0 1 0 2.83z"},child:[]}]})(e)}function tne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M194.82 496a18.36 18.36 0 0 1-18.1-21.53v-.11L204.83 320H96a16 16 0 0 1-12.44-26.06L302.73 23a18.45 18.45 0 0 1 32.8 13.71c0 .3-.08.59-.13.89L307.19 192H416a16 16 0 0 1 12.44 26.06L209.24 489a18.45 18.45 0 0 1-14.42 7z"},child:[]}]})(e)}function nne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M64 192v-72a40 40 0 0 1 40-40h75.89a40 40 0 0 1 22.19 6.72l27.84 18.56a40 40 0 0 0 22.19 6.72H408a40 40 0 0 1 40 40v40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M479.9 226.55 463.68 392a40 40 0 0 1-39.93 40H88.25a40 40 0 0 1-39.93-40L32.1 226.55A32 32 0 0 1 64 192h384.1a32 32 0 0 1 31.8 34.55z"},child:[]}]})(e)}function rne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 152a56 56 0 0 0-56-56H220.11a23.89 23.89 0 0 1-13.31-4L179 73.41A55.77 55.77 0 0 0 147.89 64H72a56 56 0 0 0-56 56v48a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8zM16 392a56 56 0 0 0 56 56h368a56 56 0 0 0 56-56V216a8 8 0 0 0-8-8H24a8 8 0 0 0-8 8z"},child:[]}]})(e)}function one(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 1 1-26 26 26 26 0 0 1 26-26zm48 226h-88a16 16 0 0 1 0-32h28v-88h-16a16 16 0 0 1 0-32h32a16 16 0 0 1 16 16v104h28a16 16 0 0 1 0 32z"},child:[]}]})(e)}function ine(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M200.66 352H144a96 96 0 0 1 0-192h55.41m113.18 0H368a96 96 0 0 1 0 192h-56.66m-142.27-96h175.86"},child:[]}]})(e)}function sne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M256 96V56m0 400v-40m0-304a144 144 0 1 0 144 144 144 144 0 0 0-144-144zm160 144h40m-400 0h40"},child:[]}]})(e)}function ane(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 208v-95a80 80 0 0 0-160 0v95"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function lne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368 192h-16v-80a96 96 0 1 0-192 0v80h-16a64.07 64.07 0 0 0-64 64v176a64.07 64.07 0 0 0 64 64h224a64.07 64.07 0 0 0 64-64V256a64.07 64.07 0 0 0-64-64zm-48 0H192v-80a64 64 0 1 1 128 0z"},child:[]}]})(e)}function une(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 112a80 80 0 0 0-160 0v96"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function cne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48M336 64h112v112M224 288 440 72"},child:[]}]})(e)}function fne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 144h226.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32h-66.75a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32zm384 224h-66.75a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32h226.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32zm0-128H221.25a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32h66.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32z"},child:[]}]})(e)}function dne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16zm144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16z"},child:[]}]})(e)}function hne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M364.13 125.25 87 403l-23 45 44.99-23 277.76-277.13-22.62-22.62zm56.56-56.56-22.62 22.62 22.62 22.63 22.62-22.63a16 16 0 0 0 0-22.62h0a16 16 0 0 0-22.62 0z"},child:[]}]})(e)}function pne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M358.62 129.28 86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zm54.45-54.44-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 0 0 0-23.34l-.75-.75a16.51 16.51 0 0 0-23.35 0z"},child:[]}]})(e)}function gne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m481.29 229.47-188.87-113a30.54 30.54 0 0 0-31.09-.39 33.74 33.74 0 0 0-16.76 29.47v79.05L63.85 116.44a30.54 30.54 0 0 0-31.09-.39A33.74 33.74 0 0 0 16 145.52v221A33.74 33.74 0 0 0 32.76 396a30.54 30.54 0 0 0 31.09-.39L244.57 287.4v79.08A33.74 33.74 0 0 0 261.33 396a30.54 30.54 0 0 0 31.09-.39l188.87-113a31.27 31.27 0 0 0 0-53z"},child:[]}]})(e)}function mne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M112 64a16 16 0 0 1 16 16v136.43L360.77 77.11a35.13 35.13 0 0 1 35.77-.44c12 6.8 19.46 20 19.46 34.33v290c0 14.37-7.46 27.53-19.46 34.33a35.14 35.14 0 0 1-35.77-.45L128 295.57V432a16 16 0 0 1-32 0V80a16 16 0 0 1 16-16z"},child:[]}]})(e)}function vne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 64a16 16 0 0 0-16 16v136.43L151.23 77.11a35.13 35.13 0 0 0-35.77-.44C103.46 83.47 96 96.63 96 111v290c0 14.37 7.46 27.53 19.46 34.33a35.14 35.14 0 0 0 35.77-.45L384 295.57V432a16 16 0 0 0 32 0V80a16 16 0 0 0-16-16z"},child:[]}]})(e)}function yne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z"},child:[]}]})(e)}function bne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"m400 148-21.12-24.57A191.43 191.43 0 0 0 240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 0 0 181.07-128"},child:[]},{tag:"path",attr:{d:"M464 97.42V208a16 16 0 0 1-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"},child:[]}]})(e)}function Sne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 256H176"},child:[]}]})(e)}function Ene(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm80 224H176a16 16 0 0 1 0-32h160a16 16 0 0 1 0 32z"},child:[]}]})(e)}function wne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M400 256H112"},child:[]}]})(e)}function Rne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M118 304h276m-276-96h276"},child:[]}]})(e)}function xne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64 63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z"},child:[]}]})(e)}function Cne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z"},child:[]}]})(e)}function _ne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176 225.2 304 176 255.8"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z"},child:[]}]})(e)}function Tne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M392 432H120a40 40 0 0 1-40-40V120a40 40 0 0 1 40-40h272a40 40 0 0 1 40 40v272a40 40 0 0 1-40 40z"},child:[]}]})(e)}function Ane(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 208 352 96 240 208m112-94.87V416M48 304l112 112 112-112m-112 94V96"},child:[]}]})(e)}function One(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm96 240h-96a16 16 0 0 1-16-16V128a16 16 0 0 1 32 0v128h80a16 16 0 0 1 0 32z"},child:[]}]})(e)}function Mne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"448",height:"80",x:"32",y:"48",rx:"32",ry:"32"},child:[]},{tag:"path",attr:{d:"M74.45 160a8 8 0 0 0-8 8.83l26.31 252.56a1.5 1.5 0 0 0 0 .22A48 48 0 0 0 140.45 464h231.09a48 48 0 0 0 47.67-42.39v-.21l26.27-252.57a8 8 0 0 0-8-8.83zm248.86 180.69a16 16 0 1 1-22.63 22.62L256 318.63l-44.69 44.68a16 16 0 0 1-22.63-22.62L233.37 296l-44.69-44.69a16 16 0 0 1 22.63-22.62L256 273.37l44.68-44.68a16 16 0 0 1 22.63 22.62L278.62 296z"},child:[]}]})(e)}function Ine(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",d:"M296 64h-80a7.91 7.91 0 0 0-8 8v24h96V72a7.91 7.91 0 0 0-8-8z"},child:[]},{tag:"path",attr:{d:"M432 96h-96V72a40 40 0 0 0-40-40h-80a40 40 0 0 0-40 40v24H80a16 16 0 0 0 0 32h17l19 304.92c1.42 26.85 22 47.08 48 47.08h184c26.13 0 46.3-19.78 48-47l19-305h17a16 16 0 0 0 0-32zM192.57 416H192a16 16 0 0 1-16-15.43l-8-224a16 16 0 1 1 32-1.14l8 224A16 16 0 0 1 192.57 416zM272 400a16 16 0 0 1-32 0V176a16 16 0 0 1 32 0zm32-304h-96V72a7.91 7.91 0 0 1 8-8h80a7.91 7.91 0 0 1 8 8zm32 304.57A16 16 0 0 1 320 416h-.58A16 16 0 0 1 304 399.43l8-224a16 16 0 1 1 32 1.14z"},child:[]}]})(e)}function Dne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M200.66 352H144a96 96 0 0 1 0-192h55.41m113.18 0H368a96 96 0 0 1 0 192h-56.66"},child:[]}]})(e)}function Lne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}function Pne(e){return $e({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08 278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17zm-198.6-1.83a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7z"},child:[]}]})(e)}function kne(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 17V3"},child:[]},{tag:"path",attr:{d:"m6 11 6 6 6-6"},child:[]},{tag:"path",attr:{d:"M19 21H5"},child:[]}]})(e)}function Nne(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m7 15 5 5 5-5"},child:[]},{tag:"path",attr:{d:"m7 9 5-5 5 5"},child:[]}]})(e)}function Fne(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 2v2"},child:[]},{tag:"path",attr:{d:"M14 2v2"},child:[]},{tag:"path",attr:{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"},child:[]},{tag:"path",attr:{d:"M6 2v2"},child:[]}]})(e)}const w3=S.createContext(void 0);function th(e){const t=S.useContext(w3);if(e===!1&&t===void 0)throw new Error(Zt(27));return t}const eY={...jo,...ki},zne=S.forwardRef(function(t,n){const{render:r,className:i,forceRender:s=!1,...l}=t,{store:c}=th(),f=c.useState("open"),d=c.useState("nested"),p=c.useState("mounted"),g=c.useState("transitionStatus"),m=S.useMemo(()=>({open:f,transitionStatus:g}),[f,g]);return Ot("div",t,{state:m,ref:[c.context.backdropRef,n],stateAttributesMapping:eY,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:s||!d})}),R3=S.createContext(void 0);function sw(e=!1){const t=S.useContext(R3);if(t===void 0&&!e)throw new Error(Zt(16));return t}function tY(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:s}=e,l=r&&t!==!1,c=r&&t===!1;return{props:S.useMemo(()=>{const d={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return r||(d.tabIndex=i,!s&&n&&(d.tabIndex=t?i:-1)),(s&&(t||l)||!s&&n)&&(d["aria-disabled"]=n),s&&(!t||c)&&(d.disabled=n),d},[r,n,t,l,c,s,i])}}function Ni(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,s=S.useRef(null),l=sw(!0)!==void 0,c=Ue(()=>{const m=s.current;return!!((m==null?void 0:m.tagName)==="A"&&(m!=null&&m.href))}),{props:f}=tY({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=S.useCallback(()=>{const m=s.current;nY(m)&&l&&t&&f.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,f.disabled,l]);je(d,[d]);const p=S.useCallback((m={})=>{const{onClick:y,onMouseDown:E,onKeyUp:b,onKeyDown:x,onPointerDown:C,...R}=m;return Ai({type:i?"button":void 0,onClick(O){if(t){O.preventDefault();return}y==null||y(O)},onMouseDown(O){t||E==null||E(O)},onKeyDown(O){if(t||(Mb(O),x==null||x(O)),O.baseUIHandlerPrevented)return;const T=O.target===O.currentTarget&&!i&&!c()&&!t,M=O.key==="Enter",A=O.key===" ";T&&((A||M)&&O.preventDefault(),M&&(y==null||y(O)))},onKeyUp(O){t||(Mb(O),b==null||b(O)),!O.baseUIHandlerPrevented&&O.target===O.currentTarget&&!i&&!t&&O.key===" "&&(y==null||y(O))},onPointerDown(O){if(t){O.preventDefault();return}C==null||C(O)}},i?void 0:{role:"button"},f,R)},[t,f,i,c]),g=Ue(m=>{s.current=m,d()});return{getButtonProps:p,buttonRef:g}}function nY(e){return mn(e)&&e.tagName==="BUTTON"}let rY=function(e){return e.nestedDialogs="--nested-dialogs",e}({}),oY=function(e){return e[e.open=Qa.open]="open",e[e.closed=Qa.closed]="closed",e[e.startingStyle=Qa.startingStyle]="startingStyle",e[e.endingStyle=Qa.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e}({});const x3=S.createContext(void 0);function iY(){const e=S.useContext(x3);if(e===void 0)throw new Error(Zt(26));return e}const Bu="ArrowUp",Za="ArrowDown",yd="ArrowLeft",Hu="ArrowRight",nh="Home",rh="End",C3=new Set([yd,Hu]),sY=new Set([yd,Hu,nh,rh]),_3=new Set([Bu,Za]),aY=new Set([Bu,Za,nh,rh]),T3=new Set([...C3,..._3]),lY=new Set([...T3,nh,rh]),t0=new Set([Bu,Za,yd,Hu,nh,rh]),A3="Shift",uY="Control",cY="Alt",fY="Meta",dY=new Set([A3,uY,cY,fY]);function hY(e){return mn(e)&&e.tagName==="INPUT"}function bA(e){return!!(hY(e)&&e.selectionStart!=null||mn(e)&&e.tagName==="TEXTAREA")}function SA(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,s=e.scrollTop;const l=e.clientWidth<e.scrollWidth,c=e.clientHeight<e.scrollHeight;if(l&&r!=="vertical"){const f=EA(e,t,"left"),d=Yp(e),p=Yp(t);n==="ltr"&&(f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?i=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:f-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(i=f-p.scrollMarginLeft-d.scrollPaddingLeft)),n==="rtl"&&(f-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?i=f-p.scrollMarginLeft-d.scrollPaddingLeft:f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(i=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(c&&r!=="horizontal"){const f=EA(e,t,"top"),d=Yp(e),p=Yp(t);f-p.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?s=f-p.scrollMarginTop-d.scrollPaddingTop:f+t.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(s=f+t.offsetHeight+p.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:i,top:s,behavior:"auto"})}function EA(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Yp(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}const pY={...jo,...ki,nestedDialogOpen(e){return e?{[oY.nestedDialogOpen]:""}:null}},Bne=S.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:s,render:l,...c}=t,{store:f}=th(),d=f.useState("descriptionElementId"),p=f.useState("disablePointerDismissal"),g=f.useState("floatingRootContext"),m=f.useState("popupProps"),y=f.useState("modal"),E=f.useState("mounted"),b=f.useState("nested"),x=f.useState("nestedOpenDialogCount"),C=f.useState("open"),R=f.useState("openMethod"),_=f.useState("titleElementId"),O=f.useState("transitionStatus"),T=f.useState("role");iY(),si({open:C,ref:f.context.popupRef,onComplete(){var B,j;C&&((j=(B=f.context).onOpenChangeComplete)==null||j.call(B,!0))}});function M(B){return B==="touch"?f.context.popupRef.current:!0}const A=s===void 0?M:s,D=x>0,L=S.useMemo(()=>({open:C,nested:b,transitionStatus:O,nestedDialogOpen:D}),[C,b,O,D]),F=Ot("div",t,{state:L,props:[m,{"aria-labelledby":_??void 0,"aria-describedby":d??void 0,role:T,tabIndex:-1,hidden:!E,onKeyDown(B){t0.has(B.key)&&B.stopPropagation()},style:{[rY.nestedDialogs]:x}},c],ref:[n,f.context.popupRef,f.useStateSetter("popupElement")],stateAttributesMapping:pY});return Re.jsx(Om,{context:g,openInteractionType:R,disabled:!E,closeOnFocusOut:!p,initialFocus:A,returnFocus:i,modal:y!==!1,restoreFocus:"popup",children:F})}),n0=S.forwardRef(function(t,n){const{cutout:r,...i}=t;let s;if(r){const l=r==null?void 0:r.getBoundingClientRect();s=`polygon(
21
+ 0% 0%,
22
+ 100% 0%,
23
+ 100% 100%,
24
+ 0% 100%,
25
+ 0% 0%,
26
+ ${l.left}px ${l.top}px,
27
+ ${l.left}px ${l.bottom}px,
28
+ ${l.right}px ${l.bottom}px,
29
+ ${l.right}px ${l.top}px,
30
+ ${l.left}px ${l.top}px
31
+ )`}return Re.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})}),Hne=S.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:s}=th(),l=s.useState("mounted"),c=s.useState("modal");return l||r?Re.jsx(x3.Provider,{value:r,children:Re.jsxs(Am,{ref:n,...i,children:[l&&c===!0&&Re.jsx(n0,{ref:s.context.internalBackdropRef,inert:zm(!open)}),t.children]})}):null});let wA={},RA={},xA="";function gY(e){if(typeof document>"u")return!1;const t=Vo(e);return Ln(t).innerWidth-t.documentElement.clientWidth>0}function mY(e){const t=Vo(e),n=t.documentElement,r=t.body,i=Ml(n)?n:r,s=i.style.overflow;return i.style.overflow="hidden",()=>{i.style.overflow=s}}function vY(e){var m,y;const t=Vo(e),n=t.documentElement,r=t.body,i=Ln(n);let s=0,l=0;const c=yi.create(),f=typeof CSS<"u"&&((m=CSS.supports)==null?void 0:m.call(CSS,"scrollbar-gutter","stable"));if(NM&&(((y=i.visualViewport)==null?void 0:y.scale)??1)!==1)return()=>{};function d(){const E=i.getComputedStyle(n),b=i.getComputedStyle(r),R=(E.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,l=n.scrollLeft,wA={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},xA=n.style.scrollBehavior,RA={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const _=n.scrollHeight>n.clientHeight,O=n.scrollWidth>n.clientWidth,T=E.overflowY==="scroll"||b.overflowY==="scroll",M=E.overflowX==="scroll"||b.overflowX==="scroll",A=Math.max(0,i.innerWidth-n.clientWidth),D=Math.max(0,i.innerHeight-n.clientHeight),L=parseFloat(b.marginTop)+parseFloat(b.marginBottom),F=parseFloat(b.marginLeft)+parseFloat(b.marginRight),B=Ml(n)?n:r;if(f){n.style.scrollbarGutter=R,B.style.overflowY="hidden",B.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:R,overflowY:"hidden",overflowX:"hidden"}),(_||T)&&(n.style.overflowY="scroll"),(O||M)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:L||D?`calc(100dvh - ${L+D}px)`:"100dvh",width:F||A?`calc(100vw - ${F+A}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=s,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function p(){Object.assign(n.style,wA),Object.assign(r.style,RA),f||(n.scrollTop=s,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=xA)}function g(){p(),c.request(d)}return d(),i.addEventListener("resize",g),()=>{c.cancel(),p(),typeof i.removeEventListener=="function"&&i.removeEventListener("resize",g)}}class yY{constructor(){jt(this,"lockCount",0);jt(this,"restore",null);jt(this,"timeoutLock",vs.create());jt(this,"timeoutUnlock",vs.create());jt(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});jt(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Vo(t).documentElement,i=Ln(r).getComputedStyle(r).overflowY;if(i==="hidden"||i==="clip"){this.restore=Kn;return}const s=fN||!gY(t);this.restore=s?mY(t):vY(t)}}const bY=new yY;function r0(e=!0,t=null){je(()=>{if(e)return bY.acquire(t)},[e,t])}function SY(e){const t=S.useRef(""),n=S.useCallback(i=>{i.defaultPrevented||(t.current=i.pointerType,e(i,i.pointerType))},[e]);return{onClick:S.useCallback(i=>{if(i.detail===0){e(i,"keyboard");return}"pointerType"in i&&e(i,i.pointerType),e(i,t.current),t.current=""},[e]),onPointerDown:n}}function o0(e){const[t,n]=S.useState(null),r=Ue((c,f)=>{e||n(f)}),i=S.useCallback(()=>{n(null)},[]),{onClick:s,onPointerDown:l}=SY(r);return S.useMemo(()=>({openMethod:t,reset:i,triggerProps:{onClick:s,onPointerDown:l}}),[t,i,s,l])}function EY(e){const{store:t,parentContext:n,actionsRef:r}=e,i=t.useState("open"),s=t.useState("disablePointerDismissal"),l=t.useState("modal"),c=t.useState("popupElement"),{openMethod:f,triggerProps:d,reset:p}=o0(i);Im(t);const{forceUnmount:g}=Dm(i,t,()=>{p()}),m=Ue(F=>{const B=st(F);return B.preventUnmountOnClose=()=>{t.set("preventUnmountingOnClose",!0)},B}),y=S.useCallback(()=>{t.setOpen(!1,m(Tm))},[t,m]);S.useImperativeHandle(r,()=>({unmount:g,close:y}),[g,y]);const E=km({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[b,x]=S.useState(0),C=b===0,R=CE(E),_=zd(E,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(F){if("button"in F&&F.button!==0||"touches"in F&&F.touches.length!==1)return!1;const B=wr(F);if(C&&!s){const j=B;return l&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===j||t.context.backdropRef.current===j||Tt(j,c)&&!(j!=null&&j.hasAttribute("data-base-ui-portal")):!0}return!1},escapeKey:C});r0(i&&l===!0,c);const{getReferenceProps:O,getFloatingProps:T,getTriggerProps:M}=Ll([R,_]);t.useContextCallback("onNestedDialogOpen",F=>{x(F+1)}),t.useContextCallback("onNestedDialogClose",()=>{x(0)}),S.useEffect(()=>(n!=null&&n.onNestedDialogOpen&&i&&n.onNestedDialogOpen(b),n!=null&&n.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n!=null&&n.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[i,n,b]);const A=S.useMemo(()=>O(d),[O,d]),D=S.useMemo(()=>M(d),[M,d]),L=S.useMemo(()=>T(),[T]);t.useSyncedValues({openMethod:f,activeTriggerProps:A,inactiveTriggerProps:D,popupProps:L,floatingRootContext:E,nestedOpenDialogCount:b})}const wY={...Pm,modal:ke(e=>e.modal),nested:ke(e=>e.nested),nestedOpenDialogCount:ke(e=>e.nestedOpenDialogCount),disablePointerDismissal:ke(e=>e.disablePointerDismissal),openMethod:ke(e=>e.openMethod),descriptionElementId:ke(e=>e.descriptionElementId),titleElementId:ke(e=>e.titleElementId),viewportElement:ke(e=>e.viewportElement),role:ke(e=>e.role)};class RY extends Bd{constructor(n){super(xY(n),{popupRef:S.createRef(),backdropRef:S.createRef(),internalBackdropRef:S.createRef(),triggerElements:new Cc,onOpenChange:void 0,onOpenChangeComplete:void 0},wY);jt(this,"setOpen",(n,r)=>{var c,f,d,p;if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!n&&r.trigger==null&&this.state.activeTriggerId!=null&&(r.trigger=this.state.activeTriggerElement??void 0),(f=(c=this.context).onOpenChange)==null||f.call(c,n,r),r.isCanceled)return;const i={open:n,nativeEvent:r.event,reason:r.reason,nested:this.state.nested};(d=this.state.floatingRootContext.context.events)==null||d.emit("openchange",i);const s={open:n},l=((p=r.trigger)==null?void 0:p.id)??null;(l||n)&&(s.activeTriggerId=l,s.activeTriggerElement=r.trigger??null),this.update(s)})}}function xY(e={}){return{...Lm(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...e}}function Une(e){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:s,disablePointerDismissal:l=!1,modal:c=!0,actionsRef:f,handle:d,triggerId:p,defaultTriggerId:g=null}=e,m=th(!0),y=!!m,E=Cr(()=>(d==null?void 0:d.store)??new RY({open:n??r,activeTriggerId:p!==void 0?p:g,modal:c,disablePointerDismissal:l,nested:y})).current;E.useControlledProp("open",n,r),E.useControlledProp("activeTriggerId",p,g),E.useSyncedValues({disablePointerDismissal:l,nested:y,modal:c}),E.useContextCallback("onOpenChange",i),E.useContextCallback("onOpenChangeComplete",s);const b=E.useState("payload");EY({store:E,actionsRef:f,parentContext:m==null?void 0:m.store.context});const x=S.useMemo(()=>({store:E}),[E]);return Re.jsx(w3.Provider,{value:x,children:typeof t=="function"?t({payload:b}):t})}const Vne=S.forwardRef(function(t,n){const{render:r,className:i,id:s,...l}=t,{store:c}=th(),f=eo(s);return c.useSyncedValueWithCleanup("titleElementId",f),Ot("h2",t,{ref:n,props:[{id:f},l]})}),CA=e=>Symbol.iterator in e,_A=e=>"entries"in e,TA=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[i,s]of n)if(!r.has(i)||!Object.is(s,r.get(i)))return!1;return!0},CY=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let i=n.next(),s=r.next();for(;!i.done&&!s.done;){if(!Object.is(i.value,s.value))return!1;i=n.next(),s=r.next()}return!!i.done&&!!s.done};function _Y(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:CA(e)&&CA(t)?_A(e)&&_A(t)?TA(e,t):CY(e,t):TA({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function jne(e){const t=fe.useRef(void 0);return n=>{const r=e(n);return _Y(t.current,r)?t.current:t.current=r}}function Tl({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=S.useRef(e!==void 0),[s,l]=S.useState(t),c=i?e:s,f=S.useCallback(d=>{i||l(d)},[]);return[c,f]}let AA=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({}),OA=function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const TY={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Hc={valid(e){return e===null?null:e?{[OA.valid]:""}:{[OA.invalid]:""}}};function O3(e){return S.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[AA.checked]:""}:{[AA.unchecked]:""}},...Hc}),[e.indeterminate])}const AY=S.createContext({invalid:void 0,name:void 0,validityData:{state:TY,errors:[],error:"",value:"",initialValue:null},setValidityData:Kn,disabled:void 0,touched:!1,setTouched:Kn,dirty:!1,setDirty:Kn,filled:!1,setFilled:Kn,focused:!1,setFocused:Kn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(e=Tn)=>e,getInputValidationProps:(e=Tn)=>e,inputRef:{current:null},commit:async()=>{}}});function Oa(e=!0){const t=S.useContext(AY);if(t.setValidityData===Kn&&!e)throw new Error(Zt(28));return t}const OY=S.createContext({disabled:!1});function M3(){return S.useContext(OY)}function MY(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}const IY=S.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Kn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function oh(){return S.useContext(IY)}function i0(e){const{enabled:t=!0,value:n,id:r,name:i,controlRef:s,commit:l}=e,{formRef:c}=oh(),{invalid:f,markedDirtyRef:d,validityData:p,setValidityData:g}=Oa(),m=Ue(e.getValue);je(()=>{if(!t)return;let y=n;y===void 0&&(y=m()),p.initialValue===null&&y!==null&&g(E=>({...E,initialValue:y}))},[t,g,n,p.initialValue,m]),je(()=>{!t||!r||c.current.fields.set(r,{getValue:m,name:i,controlRef:s,validityData:MY(p,f),validate(){let y=n;y===void 0&&(y=m()),d.current=!0,Dn.flushSync(()=>l(y))}})},[l,s,t,c,m,r,f,d,i,p,n]),je(()=>{const y=c.current.fields;return()=>{r&&y.delete(r)}},[c,r])}const DY=S.createContext({controlId:void 0,setControlId:Kn,labelId:void 0,setLabelId:Kn,messageIds:[],setMessageIds:Kn,getDescriptionProps:e=>e});function Nl(){return S.useContext(DY)}const LY=S.createContext(void 0);function PY(e=!0){const t=S.useContext(LY);if(t===void 0&&!e)throw new Error(Zt(3));return t}const I3=S.createContext(void 0);function kY(){const e=S.useContext(I3);if(e===void 0)throw new Error(Zt(14));return e}function s0(e,t){const n=S.useRef(e),r=Ue(t);je(()=>{n.current!==e&&r(n.current)},[e,r]),je(()=>{n.current=e},[e])}const NY="data-parent",$ne=S.forwardRef(function(t,n){const{checked:r,className:i,defaultChecked:s=!1,disabled:l=!1,id:c,indeterminate:f=!1,inputRef:d,name:p,onCheckedChange:g,parent:m=!1,readOnly:y=!1,render:E,required:b=!1,uncheckedValue:x,value:C,nativeButton:R=!1,..._}=t,{clearErrors:O}=oh(),{disabled:T,name:M,setDirty:A,setFilled:D,setFocused:L,setTouched:F,state:B,validationMode:j,validityData:z,shouldValidateOnChange:G,validation:V}=Oa(),P=M3(),{labelId:q,controlId:U,setControlId:K,getDescriptionProps:Z}=Nl(),k=PY(),$=k==null?void 0:k.parent,X=$&&k.allValues,te=T||P.disabled||(k==null?void 0:k.disabled)||l,ue=M??p,ne=C??ue,ce=eo(),Q=eo();let ve=U;X?ve=m?Q:`${$.id}-${ne}`:c&&(ve=c);let Ee={};X&&(m?Ee=k.parent.getParentProps():ne&&(Ee=k.parent.getChildProps(ne)));const le=Ue(g),{checked:me=r,indeterminate:Ce=f,onCheckedChange:Ie,...Me}=Ee,be=k==null?void 0:k.value,xe=k==null?void 0:k.setValue,we=k==null?void 0:k.defaultValue,De=S.useRef(null),{getButtonProps:H,buttonRef:Y}=Ni({disabled:te,native:R}),ee=(k==null?void 0:k.validation)??V,[ie,ae]=Tl({controlled:ne&&be&&!m?be.includes(ne):me,default:ne&&we&&!m?we.includes(ne):s,name:"Checkbox",state:"checked"});je(()=>{if(K!==Kn)return K(ve),()=>{K(void 0)}},[ve,k,K,m]),i0({enabled:!k,id:ce,commit:ee.commit,value:ie,controlRef:De,name:ue,getValue:()=>ie});const oe=S.useRef(null),Oe=bo(d,oe,ee.inputRef);je(()=>{oe.current&&(oe.current.indeterminate=Ce,ie&&D(!0))},[ie,Ce,D]),s0(ie,()=>{k&&!m||(O(ue),D(ie),A(ie!==z.initialValue),G()?ee.commit(ie):ee.commit(ie,!0))});const Be=Ai({checked:ie,disabled:te,name:m?void 0:ue,id:ve??void 0,required:b,ref:Oe,style:Dl,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(ut){if(ut.nativeEvent.defaultPrevented)return;const he=ut.target.checked,ze=st(Rs,ut.nativeEvent);if(Ie==null||Ie(he,ze),le(he,ze),!ze.isCanceled&&(ae(he),ne&&be&&xe&&!m)){const He=he?[...be,ne]:be.filter(tt=>tt!==ne);xe(He,ze)}},onFocus(){var ut;(ut=De.current)==null||ut.focus()}},C!==void 0?{value:(k?ie&&C:C)||""}:Tn,Z,k?ee.getValidationProps:ee.getInputValidationProps),Fe=X?!!me:ie,Ke=X&&Ce||f;S.useEffect(()=>{$&&ne&&$.disabledStatesRef.current.set(ne,te)},[$,te,ne]);const it=S.useMemo(()=>({...B,checked:Fe,disabled:te,readOnly:y,required:b,indeterminate:Ke}),[B,Fe,te,y,b,Ke]),rt=O3(it),kt=Ot("span",t,{state:it,ref:[Y,De,n,k==null?void 0:k.registerControlRef],props:[{id:ce,role:"checkbox","aria-checked":Ce?"mixed":ie,"aria-readonly":y||void 0,"aria-required":b||void 0,"aria-labelledby":q,[NY]:m?"":void 0,onFocus(){L(!0)},onBlur(){const ut=oe.current;ut&&(F(!0),L(!1),j==="onBlur"&&ee.commit(k?be:ut.checked))},onClick(ut){var he;y||te||(ut.preventDefault(),(he=oe.current)==null||he.click())}},Z,ee.getValidationProps,_,Me,H],stateAttributesMapping:rt});return Re.jsxs(I3.Provider,{value:it,children:[kt,!ie&&!k&&ue&&!m&&x!==void 0&&Re.jsx("input",{type:"hidden",name:ue,value:x}),Re.jsx("input",{...Be})]})}),qne=S.forwardRef(function(t,n){const{render:r,className:i,keepMounted:s=!1,...l}=t,c=kY(),f=c.checked||c.indeterminate,{transitionStatus:d,setMounted:p}=xc(f),g=S.useRef(null),m=S.useMemo(()=>({...c,transitionStatus:d}),[c,d]);si({open:f,ref:g,onComplete(){f||p(!1)}});const y=O3(c),E=S.useMemo(()=>({...y,...ki,...Hc}),[y]),b=s||f,x=Ot("span",t,{enabled:b,ref:[n,g],state:m,stateAttributesMapping:E,props:l});return b?x:null});function FY(e){const t=S.useRef(!0);t.current&&(t.current=!1,e())}const D3=S.createContext(null),L3=S.createContext(null);function li(){const e=S.useContext(D3);if(e===null)throw new Error(Zt(60));return e}function P3(){const e=S.useContext(L3);if(e===null)throw new Error(Zt(61));return e}function aw(e={}){const{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,setControlId:s}=Nl(),l=eo(t);return je(()=>{if(!(!n&&!t||s===Kn)){if(n){const c=r==null?void 0:r.current;Wt(c)&&c.closest("label")!=null?s(t??null):s(i??l)}else t&&s(t);return()=>{t&&s(void 0)}}},[t,r,i,s,n,l]),i??l}const zY=(e,t)=>Object.is(e,t);function gc(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function T1(e,t,n){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:gc(r,t,n))}function wS(e,t,n){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:gc(r,t,n))}function BY(e,t,n){return e.filter(r=>!gc(r,t,n))}function RS(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function HY(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function Kf(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return RS(e)}function _u(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?RS(e.value):RS(e)}function UY(e,t,n){if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??Kf(e,n);if(Array.isArray(t)){const r=HY(t)?t.flatMap(i=>i.items):t;if(e==null){const i=r.find(s=>s.value==null);return i&&i.label!=null?i.label:Kf(e,n)}if(typeof e!="object"){const i=r.find(s=>s&&s.value===e);return i&&i.label!=null?i.label:Kf(e,n)}if("value"in e){const i=r.find(s=>s&&s.value===e.value);if(i&&i.label!=null)return i.label}}return Kf(e,n)}function VY(e,t){return!Array.isArray(e)||e.length===0?"":e.map(n=>Kf(n,t)).join(", ")}const ht={id:ke(e=>e.id),modal:ke(e=>e.modal),multiple:ke(e=>e.multiple),items:ke(e=>e.items),itemToStringLabel:ke(e=>e.itemToStringLabel),itemToStringValue:ke(e=>e.itemToStringValue),isItemEqualToValue:ke(e=>e.isItemEqualToValue),value:ke(e=>e.value),open:ke(e=>e.open),mounted:ke(e=>e.mounted),forceMount:ke(e=>e.forceMount),transitionStatus:ke(e=>e.transitionStatus),openMethod:ke(e=>e.openMethod),activeIndex:ke(e=>e.activeIndex),selectedIndex:ke(e=>e.selectedIndex),isActive:ke((e,t)=>e.activeIndex===t),isSelected:ke((e,t,n)=>{const r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(s=>gc(s,n,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:gc(i,n,r)}),isSelectedByFocus:ke((e,t)=>e.selectedIndex===t),popupProps:ke(e=>e.popupProps),triggerProps:ke(e=>e.triggerProps),triggerElement:ke(e=>e.triggerElement),positionerElement:ke(e=>e.positionerElement),listElement:ke(e=>e.listElement),scrollUpArrowVisible:ke(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:ke(e=>e.scrollDownArrowVisible),hasScrollArrows:ke(e=>e.hasScrollArrows),serializedValue:ke(e=>{const{multiple:t,value:n,itemToStringValue:r}=e;return t&&Array.isArray(n)&&n.length===0?"":_u(n,r)})};function Gne(e){const{id:t,value:n,defaultValue:r=null,onValueChange:i,open:s,defaultOpen:l=!1,onOpenChange:c,name:f,disabled:d=!1,readOnly:p=!1,required:g=!1,modal:m=!0,actionsRef:y,inputRef:E,onOpenChangeComplete:b,items:x,multiple:C=!1,itemToStringLabel:R,itemToStringValue:_,isItemEqualToValue:O=zY,highlightItemOnHover:T=!0,children:M}=e,{clearErrors:A}=oh(),{setDirty:D,shouldValidateOnChange:L,validityData:F,setFilled:B,name:j,disabled:z,validation:G}=Oa(),{controlId:V}=Nl(),P=aw({id:t}),q=z||d,U=j??f,[K,Z]=Tl({controlled:n,default:C?r??pa:r,name:"Select",state:"value"}),[k,$]=Tl({controlled:s,default:l,name:"Select",state:"open"}),X=S.useRef([]),te=S.useRef([]),ue=S.useRef(null),ne=S.useRef(null),ce=S.useRef(0),Q=S.useRef(null),ve=S.useRef([]),Ee=S.useRef(!1),le=S.useRef(!1),me=S.useRef(null),Ce=S.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),Ie=S.useRef(!1),{mounted:Me,setMounted:be,transitionStatus:xe}=xc(k),{openMethod:we,triggerProps:De,reset:H}=o0(k),Y=Cr(()=>new Fu({id:P,modal:m,multiple:C,itemToStringLabel:R,itemToStringValue:_,isItemEqualToValue:O,value:K,open:k,mounted:Me,transitionStatus:xe,items:x,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ee=gt(Y,ht.activeIndex),ie=gt(Y,ht.selectedIndex),ae=gt(Y,ht.triggerElement),oe=gt(Y,ht.positionerElement),Oe=S.useMemo(()=>C&&Array.isArray(K)&&K.length===0?"":_u(K,_),[C,K,_]),Be=S.useMemo(()=>C&&Array.isArray(K)?K.map(qe=>_u(qe,_)):_u(K,_),[C,K,_]),Fe=Yn(Y.state.triggerElement);i0({id:P,commit:G.commit,value:K,controlRef:Fe,name:U,getValue:()=>Be});const Ke=S.useRef(K);je(()=>{K!==Ke.current&&Y.set("forceMount",!0)},[Y,K]),je(()=>{B(K!==null)},[K,B]),je(function(){if(k)return;const Ct=ve.current;if(C){const Ht=Array.isArray(K)?K:[];if(Ht.length===0){Y.set("selectedIndex",null);return}const an=Ht[Ht.length-1],vn=wS(Ct,an,O);Y.set("selectedIndex",vn===-1?null:vn);return}const en=wS(Ct,K,O);Y.set("selectedIndex",en===-1?null:en)},[C,k,K,ve,O,Y]),s0(K,()=>{A(U),D(K!==F.initialValue),L()?G.commit(K):G.commit(K,!0)});const it=Ue((qe,Ct)=>{if(c==null||c(qe,Ct),!Ct.isCanceled&&($(qe),!qe&&Y.state.activeIndex!==null)){const en=X.current[Y.state.activeIndex];queueMicrotask(()=>{en==null||en.setAttribute("tabindex","-1")})}}),rt=Ue(()=>{be(!1),Y.set("activeIndex",null),H(),b==null||b(!1)});si({enabled:!y,open:k,ref:ue,onComplete(){k||rt()}}),S.useImperativeHandle(y,()=>({unmount:rt}),[rt]);const kt=Ue((qe,Ct)=>{i==null||i(qe,Ct),!Ct.isCanceled&&Z(qe)}),ut=Ue(()=>{const qe=Y.state.listElement||ue.current;if(!qe)return;const Ct=qe.scrollTop,en=qe.scrollTop+qe.clientHeight,Ht=Ct>1,an=en<qe.scrollHeight-1;Y.state.scrollUpArrowVisible!==Ht&&Y.set("scrollUpArrowVisible",Ht),Y.state.scrollDownArrowVisible!==an&&Y.set("scrollDownArrowVisible",an)}),he=z4({open:k,onOpenChange:it,elements:{reference:ae,floating:oe}}),ze=yE(he,{enabled:!p&&!q,event:"mousedown"}),He=zd(he,{bubbles:!1}),tt=U4(he,{enabled:!p&&!q,listRef:X,activeIndex:ee,selectedIndex:ie,disabledIndices:pa,onNavigate(qe){qe===null&&!k||Y.set("activeIndex",qe)},focusItemOnHover:!1}),mt=V4(he,{enabled:!p&&!q&&(k||!C),listRef:te,activeIndex:ee,selectedIndex:ie,onMatch(qe){k?Y.set("activeIndex",qe):kt(ve.current[qe],st("none"))},onTypingChange(qe){Ee.current=qe}}),{getReferenceProps:nt,getFloatingProps:yt,getItemProps:qt}=Ll([ze,He,tt,mt]),Ze=S.useMemo(()=>Ai(nt(),De),[nt,De]);FY(()=>{Y.update({popupProps:yt(),triggerProps:Ze})}),je(()=>{Y.update({id:P,modal:m,multiple:C,value:K,open:k,mounted:Me,transitionStatus:xe,popupProps:yt(),triggerProps:Ze,items:x,itemToStringLabel:R,itemToStringValue:_,isItemEqualToValue:O,openMethod:we})},[Y,P,m,C,K,k,Me,xe,yt,Ze,x,R,_,O,we]);const bt=S.useMemo(()=>({store:Y,name:U,required:g,disabled:q,readOnly:p,multiple:C,itemToStringLabel:R,itemToStringValue:_,highlightItemOnHover:T,setValue:kt,setOpen:it,listRef:X,popupRef:ue,scrollHandlerRef:ne,handleScrollArrowVisibility:ut,scrollArrowsMountedCountRef:ce,getItemProps:qt,events:he.context.events,valueRef:Q,valuesRef:ve,labelsRef:te,typingRef:Ee,selectionRef:Ce,selectedItemTextRef:me,validation:G,onOpenChangeComplete:b,keyboardActiveRef:le,alignItemWithTriggerActiveRef:Ie,initialValueRef:Ke}),[Y,U,g,q,p,C,R,_,T,kt,it,qt,he.context.events,G,b,ut]),ct=bo(E,G.inputRef),Bt=C&&Array.isArray(K)&&K.length>0,sn=S.useMemo(()=>!C||!Array.isArray(K)||!U?null:K.map(qe=>{const Ct=_u(qe,_);return Re.jsx("input",{type:"hidden",name:U,value:Ct},Ct)}),[C,K,U,_]);return Re.jsx(D3.Provider,{value:bt,children:Re.jsxs(L3.Provider,{value:he,children:[M,Re.jsx("input",{...G.getInputValidationProps({onFocus(){var qe;(qe=Y.state.triggerElement)==null||qe.focus()},onChange(qe){if(qe.nativeEvent.defaultPrevented)return;const Ct=qe.target.value,en=st(Rs,qe.nativeEvent);function Ht(){if(C)return;const an=ve.current.find(vn=>_u(vn,_).toLowerCase()===Ct.toLowerCase());an!=null&&(D(an!==F.initialValue),kt(an,en),L()&&G.commit(an))}Y.set("forceMount",!0),queueMicrotask(Ht)}}),id:t||V||void 0,name:C?void 0:U,value:Oe,disabled:q,required:g&&!Bt,readOnly:p,ref:ct,style:Dl,tabIndex:-1,"aria-hidden":!0}),sn]})})}function k3(e){const t=e.getBoundingClientRect(),n=window.getComputedStyle(e,"::before"),r=window.getComputedStyle(e,"::after");if(!(n.content!=="none"||r.content!=="none"))return t;const s=parseFloat(n.width)||0,l=parseFloat(n.height)||0,c=parseFloat(r.width)||0,f=parseFloat(r.height)||0,d=Math.max(t.width,s,c),p=Math.max(t.height,l,f),g=d-t.width,m=p-t.height;return{left:t.left-g/2,right:t.right+g/2,top:t.top-m/2,bottom:t.bottom+m/2}}const Kp=2,jY={...Ug,...Hc,value:()=>null},Yne=S.forwardRef(function(t,n){const{render:r,className:i,disabled:s=!1,nativeButton:l=!0,...c}=t,{setTouched:f,setFocused:d,validationMode:p,state:g,disabled:m}=Oa(),{labelId:y}=Nl(),{store:E,setOpen:b,selectionRef:x,validation:C,readOnly:R,alignItemWithTriggerActiveRef:_,disabled:O,keyboardActiveRef:T}=li(),M=m||O||s,A=gt(E,ht.open),D=gt(E,ht.value),L=gt(E,ht.triggerProps),F=gt(E,ht.positionerElement),B=gt(E,ht.listElement),j=gt(E,ht.serializedValue),z=Yn(F),G=S.useRef(null),V=Bn(),P=Bn(),{getButtonProps:q,buttonRef:U}=Ni({disabled:M,native:l}),K=Ue(ne=>{E.set("triggerElement",ne)}),Z=bo(n,G,U,K),k=Bn(),$=Bn();S.useEffect(()=>{if(A)return $.start(200,()=>{x.current.allowUnselectedMouseUp=!0,k.start(200,()=>{x.current.allowSelectedMouseUp=!0})}),()=>{k.clear(),$.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},P.clear()},[A,x,P,k,$]);const X=S.useMemo(()=>{var ne;return(B==null?void 0:B.id)??((ne=ad(F))==null?void 0:ne.id)},[B,F]),te=Ai(L,{role:"combobox","aria-expanded":A?"true":"false","aria-haspopup":"listbox","aria-controls":A?X:void 0,"aria-labelledby":y,"aria-readonly":R||void 0,tabIndex:M?-1:0,ref:Z,onFocus(ne){d(!0),A&&_.current&&b(!1,st(Ti,ne.nativeEvent)),V.start(0,()=>{E.set("forceMount",!0)})},onBlur(){f(!0),d(!1),p==="onBlur"&&C.commit(D)},onPointerMove(){T.current=!1},onKeyDown(){T.current=!0},onMouseDown(ne){if(A)return;const ce=Vo(ne.currentTarget);function Q(ve){if(!G.current)return;const Ee=ve.target;if(Tt(G.current,Ee)||Tt(z.current,Ee)||Ee===G.current)return;const le=k3(G.current);ve.clientX>=le.left-Kp&&ve.clientX<=le.right+Kp&&ve.clientY>=le.top-Kp&&ve.clientY<=le.bottom+Kp||b(!1,st(m4,ve))}P.start(0,()=>{ce.addEventListener("mouseup",Q,{once:!0})})}},C.getValidationProps,c,q);te.role="combobox";const ue=S.useMemo(()=>({...g,open:A,disabled:M,value:D,readOnly:R,placeholder:!j}),[g,A,M,D,R,j]);return Ot("button",t,{ref:[n,G],state:ue,stateAttributesMapping:jY,props:te})}),$Y={value:()=>null},Kne=S.forwardRef(function(t,n){const{className:r,render:i,children:s,...l}=t,{store:c,valueRef:f}=li(),d=gt(c,ht.value),p=gt(c,ht.items),g=gt(c,ht.itemToStringLabel),m=gt(c,ht.serializedValue),y=S.useMemo(()=>({value:d,placeholder:!m}),[d,m]),E=typeof s=="function"?s(d):s??(Array.isArray(d)?VY(d,g):UY(d,p,g));return Ot("span",t,{state:y,ref:[n,f],props:[{children:E},l],stateAttributesMapping:$Y})}),Xne=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,{store:l}=li(),c=gt(l,ht.open),f=S.useMemo(()=>({open:c}),[c]);return Ot("span",t,{state:f,ref:n,props:[{"aria-hidden":!0,children:"▼"},s],stateAttributesMapping:AE})}),qY=S.createContext(void 0),Wne=S.forwardRef(function(t,n){const{store:r}=li(),i=gt(r,ht.mounted),s=gt(r,ht.forceMount);return i||s?Re.jsx(qY.Provider,{value:!0,children:Re.jsx(Am,{ref:n,...t})}):null}),N3=S.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function GY(){return S.useContext(N3)}function lw(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,s=Ue(i),l=S.useRef(0),c=Cr(KY).current,f=Cr(YY).current,[d,p]=S.useState(0),g=S.useRef(d),m=Ue((C,R)=>{f.set(C,R??null),g.current+=1,p(g.current)}),y=Ue(C=>{f.delete(C),g.current+=1,p(g.current)}),E=S.useMemo(()=>{const C=new Map;return Array.from(f.keys()).filter(_=>_.isConnected).sort(XY).forEach((_,O)=>{const T=f.get(_)??{};C.set(_,{...T,index:O})}),C},[f,d]);je(()=>{if(typeof MutationObserver!="function"||E.size===0)return;const C=new MutationObserver(R=>{const _=new Set,O=T=>_.has(T)?_.delete(T):_.add(T);R.forEach(T=>{T.removedNodes.forEach(O),T.addedNodes.forEach(O)}),_.size===0&&(g.current+=1,p(g.current))});return E.forEach((R,_)=>{_.parentElement&&C.observe(_.parentElement,{childList:!0})}),()=>{C.disconnect()}},[E]),je(()=>{g.current===d&&(n.current.length!==E.size&&(n.current.length=E.size),r&&r.current.length!==E.size&&(r.current.length=E.size),l.current=E.size),s(E)},[s,E,n,r,d]),je(()=>()=>{n.current=[]},[n]),je(()=>()=>{r&&(r.current=[])},[r]);const b=Ue(C=>(c.add(C),()=>{c.delete(C)}));je(()=>{c.forEach(C=>C(E))},[c,E]);const x=S.useMemo(()=>({register:m,unregister:y,subscribeMapChange:b,elementsRef:n,labelsRef:r,nextIndexRef:l}),[m,y,b,n,r,l]);return Re.jsx(N3.Provider,{value:x,children:t})}function YY(){return new Map}function KY(){return new Set}function XY(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const F3=S.createContext(void 0);function a0(){const e=S.useContext(F3);if(!e)throw new Error(Zt(59));return e}function im(e,t){e&&Object.assign(e.style,t)}const z3={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},WY={position:"fixed"},Qne=S.forwardRef(function(t,n){const{anchor:r,positionMethod:i="absolute",className:s,render:l,side:c="bottom",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m,arrowPadding:y=5,sticky:E=!1,disableAnchorTracking:b,alignItemWithTrigger:x=!0,collisionAvoidance:C=g4,...R}=t,{store:_,listRef:O,labelsRef:T,alignItemWithTriggerActiveRef:M,selectedItemTextRef:A,valuesRef:D,initialValueRef:L,popupRef:F,setValue:B}=li(),j=P3(),z=gt(_,ht.open),G=gt(_,ht.mounted),V=gt(_,ht.modal),P=gt(_,ht.value),q=gt(_,ht.openMethod),U=gt(_,ht.positionerElement),K=gt(_,ht.triggerElement),Z=gt(_,ht.isItemEqualToValue),k=S.useRef(null),$=S.useRef(null),[X,te]=S.useState(x),ue=G&&X&&q!=="touch";!G&&X!==x&&te(x),je(()=>{G||(ht.scrollUpArrowVisible(_.state)&&_.set("scrollUpArrowVisible",!1),ht.scrollDownArrowVisible(_.state)&&_.set("scrollDownArrowVisible",!1))},[_,G]),S.useImperativeHandle(M,()=>ue),r0((ue||V)&&z&&q!=="touch",K);const ne=Fm({anchor:r,floatingRootContext:j,positionMethod:i,mounted:G,side:c,sideOffset:d,align:f,alignOffset:p,arrowPadding:y,collisionBoundary:g,collisionPadding:m,sticky:E,disableAnchorTracking:b??ue,collisionAvoidance:C,keepMounted:!0}),ce=ue?"none":ne.side,Q=ue?WY:ne.positionerStyles,ve=S.useMemo(()=>{const be={};return z||(be.pointerEvents="none"),{role:"presentation",hidden:!G,style:{...Q,...be}}},[z,G,Q]),Ee=S.useMemo(()=>({open:z,side:ce,align:ne.align,anchorHidden:ne.anchorHidden}),[z,ce,ne.align,ne.anchorHidden]),le=Ue(be=>{_.set("positionerElement",be)}),me=Ot("div",t,{ref:[n,le],state:Ee,stateAttributesMapping:jo,props:[ve,R]}),Ce=S.useRef(0),Ie=Ue(be=>{if(be.size===0&&Ce.current===0||D.current.length===0)return;const xe=Ce.current;if(Ce.current=be.size,be.size===xe)return;const we=st(Rs);if(xe!==0&&!_.state.multiple&&P!==null&&wS(D.current,P,Z)===-1){const H=L.current,ee=H!=null&&T1(D.current,H,Z)?H:null;B(ee,we),ee===null&&(_.set("selectedIndex",null),A.current=null)}if(xe!==0&&_.state.multiple&&Array.isArray(P)){const De=P.filter(H=>T1(D.current,H,Z));(De.length!==P.length||De.some(H=>!T1(P,H,Z)))&&(B(De,we),De.length===0&&(_.set("selectedIndex",null),A.current=null))}if(z&&ue){_.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const De={height:""};im(U,De),im(F.current,De)}}),Me=S.useMemo(()=>({...ne,side:ce,alignItemWithTriggerActive:ue,setControlledAlignItemWithTrigger:te,scrollUpArrowRef:k,scrollDownArrowRef:$}),[ne,ce,ue,te]);return Re.jsx(lw,{elementsRef:O,labelsRef:T,onMapChange:Ie,children:Re.jsxs(F3.Provider,{value:Me,children:[G&&V&&Re.jsx(n0,{inert:zm(!z),cutout:K}),me]})})});function B3(e){const t=e.currentTarget.getBoundingClientRect();return t.top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1}const Xp="base-ui-disable-scrollbar",xS={className:Xp,element:Re.jsx("style",{href:Xp,precedence:"base-ui:low",children:`.${Xp}{scrollbar-width:none}.${Xp}::-webkit-scrollbar{display:none}`})},H3=S.createContext(void 0);function ih(e){const t=S.useContext(H3);if(t===void 0&&!e)throw new Error(Zt(69));return t}const QY={...jo,...ki},Jne=S.forwardRef(function(t,n){const{render:r,className:i,...s}=t,{store:l,popupRef:c,onOpenChangeComplete:f,setOpen:d,valueRef:p,selectedItemTextRef:g,keyboardActiveRef:m,multiple:y,handleScrollArrowVisibility:E,scrollHandlerRef:b}=li(),{side:x,align:C,alignItemWithTriggerActive:R,setControlledAlignItemWithTrigger:_,scrollDownArrowRef:O,scrollUpArrowRef:T}=a0(),M=ih(!0)!=null,A=P3(),D=Bn(),L=gt(l,ht.id),F=gt(l,ht.open),B=gt(l,ht.mounted),j=gt(l,ht.popupProps),z=gt(l,ht.transitionStatus),G=gt(l,ht.triggerElement),V=gt(l,ht.positionerElement),P=gt(l,ht.listElement),q=S.useRef(0),U=S.useRef(!1),K=S.useRef(0),Z=S.useRef(!1),k=S.useRef({}),$=Rc(),X=Ue(ce=>{if(!V||!c.current||!Z.current)return;if(U.current||!R){E();return}const Q=V.style.top==="0px",ve=V.style.bottom==="0px",Ee=V.getBoundingClientRect().height,le=Vo(V),me=getComputedStyle(V),Ce=parseFloat(me.marginTop),Ie=parseFloat(me.marginBottom),Me=le.documentElement.clientHeight-Ce-Ie,be=ce.scrollTop,xe=ce.scrollHeight,we=ce.clientHeight,De=xe-we;let H=null,Y=null,ee=!1;if(Q){const ie=De-be,ae=Ee+ie,oe=Math.min(ae,Me);H=oe,oe!==Me?Y=De:ee=!0}else if(ve){const ie=be-0,ae=Ee+ie,oe=Math.min(ae,Me),Oe=ae-Me;H=oe,oe!==Me?Y=0:(ee=!0,be<De&&(Y=be-(ie-Oe)))}H!=null&&(V.style.height=`${H}px`),Y!=null&&(ce.scrollTop=Y),ee&&(U.current=!0),E()});S.useImperativeHandle(b,()=>X,[X]),si({open:F,ref:c,onComplete(){F&&(f==null||f(!0))}});const te=S.useMemo(()=>({open:F,transitionStatus:z,side:x,align:C}),[F,z,x,C]);je(()=>{!V||!c.current||Object.keys(k.current).length||(k.current={top:V.style.top||"0",left:V.style.left||"0",right:V.style.right,height:V.style.height,bottom:V.style.bottom,minHeight:V.style.minHeight,maxHeight:V.style.maxHeight,marginTop:V.style.marginTop,marginBottom:V.style.marginBottom})},[c,V]),je(()=>{B||R||(Z.current=!1,U.current=!1,q.current=0,K.current=0,im(V,k.current))},[B,R,V,c]),je(()=>{const ce=c.current;if(!(!B||!G||!V||!ce)){if(!R){Z.current=!0,$.request(E);return}queueMicrotask(()=>{var bt;const Q=getComputedStyle(V),ve=getComputedStyle(ce),Ee=Vo(G),le=Ln(V),me=G.getBoundingClientRect(),Ce=V.getBoundingClientRect(),Ie=me.left,Me=me.height,be=P||ce,xe=be.scrollHeight,we=parseFloat(ve.borderBottomWidth),De=parseFloat(Q.marginTop)||10,H=parseFloat(Q.marginBottom)||10,Y=parseFloat(Q.minHeight)||100,ee=5,ie=5,ae=20,oe=Ee.documentElement.clientHeight-De-H,Oe=Ee.documentElement.clientWidth,Be=oe-me.bottom+Me,Fe=g.current,Ke=p.current;let it=0,rt=0;if(Fe&&Ke){const ct=Ke.getBoundingClientRect(),Bt=Fe.getBoundingClientRect(),sn=ct.left-Ie,qe=Bt.left-Ce.left,Ct=ct.top-me.top+ct.height/2,en=Bt.top-Ce.top+Bt.height/2;it=sn-qe,rt=en-Ct}const kt=Be+rt+H+we;let ut=Math.min(oe,kt);const he=oe-De-H,ze=kt-ut,He=Math.max(ee,Ie+it),tt=Oe-ie,mt=Math.max(0,He+Ce.width-tt);V.style.left=`${He-mt}px`,V.style.height=`${ut}px`,V.style.maxHeight="auto",V.style.marginTop=`${De}px`,V.style.marginBottom=`${H}px`,ce.style.height="100%";const nt=be.scrollHeight-be.clientHeight,yt=ze>=nt;yt&&(ut=Math.min(oe,Ce.height)-(ze-nt));const qt=me.top<ae||me.bottom>oe-ae||ut<Math.min(xe,Y),Ze=(((bt=le.visualViewport)==null?void 0:bt.scale)??1)!==1&&NM;if(qt||Ze){Z.current=!0,im(V,k.current),Dn.flushSync(()=>_(!1));return}if(yt){const ct=Math.max(0,oe-kt);V.style.top=Ce.height>=he?"0":`${ct}px`,V.style.height=`${ut}px`,be.scrollTop=be.scrollHeight-be.clientHeight,q.current=Math.max(Y,ut)}else V.style.bottom="0",q.current=Math.max(Y,ut),be.scrollTop=ze;q.current===oe&&(U.current=!0),E(),setTimeout(()=>{Z.current=!0})})}},[l,B,V,G,p,g,c,E,R,_,$,O,T,P]),S.useEffect(()=>{if(!R||!V||!B)return;const ce=Ln(V);function Q(ve){d(!1,st(JN,ve))}return ce.addEventListener("resize",Q),()=>{ce.removeEventListener("resize",Q)}},[d,R,V,B]);const ue={...P?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":y||void 0,id:`${L}-list`},onKeyDown(ce){m.current=!0,M&&t0.has(ce.key)&&ce.stopPropagation()},onMouseMove(){m.current=!1},onPointerLeave(ce){if(B3(ce)||ce.pointerType==="touch")return;const Q=ce.currentTarget;D.start(0,()=>{l.set("activeIndex",null),Q.focus({preventScroll:!0})})},onScroll(ce){var Q;P||(Q=b.current)==null||Q.call(b,ce.currentTarget)},...R&&{style:P?{height:"100%"}:z3}},ne=Ot("div",t,{ref:[n,c],state:te,stateAttributesMapping:QY,props:[j,ue,_c(z),{className:!P&&R?xS.className:void 0},s]});return Re.jsxs(S.Fragment,{children:[xS.element,Re.jsx(Om,{context:A,modal:!1,disabled:!B,restoreFocus:!0,children:ne})]})}),Zne=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,{store:l,scrollHandlerRef:c}=li(),{alignItemWithTriggerActive:f}=a0(),d=gt(l,ht.hasScrollArrows),p=gt(l,ht.openMethod),g=gt(l,ht.multiple),y={id:`${gt(l,ht.id)}-list`,role:"listbox","aria-multiselectable":g||void 0,onScroll(b){var x;(x=c.current)==null||x.call(c,b.currentTarget)},...f&&{style:z3},className:d&&p!=="touch"?xS.className:void 0},E=Ue(b=>{l.set("listElement",b)});return Ot("div",t,{ref:[n,E],props:[y,s]})});let U3=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function uw(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:s}=e,{register:l,unregister:c,subscribeMapChange:f,elementsRef:d,labelsRef:p,nextIndexRef:g}=GY(),m=S.useRef(-1),[y,E]=S.useState(s??(i===U3.GuessFromOrder?()=>{if(m.current===-1){const C=g.current;g.current+=1,m.current=C}return m.current}:-1)),b=S.useRef(null),x=S.useCallback(C=>{var R;if(b.current=C,y!==-1&&C!==null&&(d.current[y]=C,p)){const _=t!==void 0;p.current[y]=_?t:((R=r==null?void 0:r.current)==null?void 0:R.textContent)??C.textContent}},[y,d,p,t,r]);return je(()=>{if(s!=null)return;const C=b.current;if(C)return l(C,n),()=>{c(C)}},[s,l,c,n]),je(()=>{if(s==null)return f(C=>{var _;const R=b.current?(_=C.get(b.current))==null?void 0:_.index:null;R!=null&&E(R)})},[s,f,E]),S.useMemo(()=>({ref:x,index:y}),[y,x])}const V3=S.createContext(void 0);function cw(){const e=S.useContext(V3);if(!e)throw new Error(Zt(57));return e}const ere=S.memo(S.forwardRef(function(t,n){const{render:r,className:i,value:s=null,label:l,disabled:c=!1,nativeButton:f=!1,...d}=t,p=S.useRef(null),g=uw({label:l,textRef:p,indexGuessBehavior:U3.GuessFromOrder}),{store:m,getItemProps:y,setOpen:E,setValue:b,selectionRef:x,typingRef:C,valuesRef:R,keyboardActiveRef:_,multiple:O,highlightItemOnHover:T}=li(),M=Bn(),A=gt(m,ht.isActive,g.index),D=gt(m,ht.isSelected,g.index,s),L=gt(m,ht.isSelectedByFocus,g.index),F=gt(m,ht.isItemEqualToValue),B=g.index,j=B!==-1,z=S.useRef(null),G=Yn(B);je(()=>{if(!j)return;const ne=R.current;return ne[B]=s,()=>{delete ne[B]}},[j,B,s,R]),je(()=>{if(!j)return;const ne=m.state.value;let ce=ne;O&&Array.isArray(ne)&&ne.length>0&&(ce=ne[ne.length-1]),ce!==void 0&&gc(ce,s,F)&&m.set("selectedIndex",B)},[j,B,O,F,m,s]);const V=S.useMemo(()=>({disabled:c,selected:D,highlighted:A}),[c,D,A]),P=y({active:A,selected:D});P.onFocus=void 0,P.id=void 0;const q=S.useRef(null),U=S.useRef("mouse"),K=S.useRef(!1),{getButtonProps:Z,buttonRef:k}=Ni({disabled:c,focusableWhenDisabled:!0,native:f});function $(ne){const ce=m.state.value;if(O){const Q=Array.isArray(ce)?ce:[],ve=D?BY(Q,s,F):[...Q,s];b(ve,st(Xf,ne))}else b(s,st(Xf,ne)),E(!1,st(Xf,ne))}const X={role:"option","aria-selected":D,"aria-disabled":c||void 0,tabIndex:A?0:-1,onFocus(){m.set("activeIndex",B)},onMouseEnter(){!_.current&&m.state.selectedIndex===null&&m.set("activeIndex",B)},onMouseMove(){T&&m.set("activeIndex",B)},onMouseLeave(ne){!T||_.current||B3(ne)||M.start(0,()=>{m.state.activeIndex===B&&m.set("activeIndex",null)})},onTouchStart(){x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(ne){q.current=ne.key,m.set("activeIndex",B)},onClick(ne){K.current=!1,!(ne.type==="keydown"&&q.current===null)&&(c||q.current===" "&&C.current||U.current!=="touch"&&!A||(q.current=null,$(ne.nativeEvent)))},onPointerEnter(ne){U.current=ne.pointerType},onPointerDown(ne){U.current=ne.pointerType,K.current=!0},onMouseUp(ne){if(c)return;if(K.current){K.current=!1;return}const ce=!x.current.allowSelectedMouseUp&&D,Q=!x.current.allowUnselectedMouseUp&&!D;ce||Q||U.current!=="touch"&&!A||$(ne.nativeEvent)}},te=Ot("div",t,{ref:[k,n,g.ref,z],state:V,props:[P,X,d,Z]}),ue=S.useMemo(()=>({selected:D,indexRef:G,textRef:p,selectedByFocus:L,hasRegistered:j}),[D,G,p,L,j]);return Re.jsx(V3.Provider,{value:ue,children:te})})),tre=S.forwardRef(function(t,n){const r=t.keepMounted??!1,{selected:i}=cw();return r||i?Re.jsx(JY,{...t,ref:n}):null}),JY=S.memo(S.forwardRef((e,t)=>{const{render:n,className:r,keepMounted:i,...s}=e,{selected:l}=cw(),c=S.useRef(null),{transitionStatus:f,setMounted:d}=xc(l),p=S.useMemo(()=>({selected:l,transitionStatus:f}),[l,f]),g=Ot("span",e,{ref:[t,c],state:p,props:[{"aria-hidden":!0,children:"✔️"},s],stateAttributesMapping:ki});return si({open:l,ref:c,onComplete(){l||d(!1)}}),g})),nre=S.memo(S.forwardRef(function(t,n){const{indexRef:r,textRef:i,selectedByFocus:s,hasRegistered:l}=cw(),{selectedItemTextRef:c}=li(),{className:f,render:d,...p}=t,g=S.useCallback(y=>{if(!y||!l)return;const E=c.current===null||!c.current.isConnected;(s||E&&r.current===0)&&(c.current=y)},[c,r,s,l]);return Ot("div",t,{ref:[g,n,i],props:p})})),ZY={...jo,...ki},rre=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,{store:l}=li(),{side:c,align:f,arrowRef:d,arrowStyles:p,arrowUncentered:g,alignItemWithTriggerActive:m}=a0(),y=gt(l,ht.open,!0),E=S.useMemo(()=>({open:y,side:c,align:f,uncentered:g}),[y,c,f,g]),b=Ot("div",t,{state:E,ref:[d,n],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:ZY});return m?null:b}),j3=S.forwardRef(function(t,n){const{render:r,className:i,direction:s,keepMounted:l=!1,...c}=t,{store:f,popupRef:d,listRef:p,handleScrollArrowVisibility:g,scrollArrowsMountedCountRef:m}=li(),{side:y,scrollDownArrowRef:E,scrollUpArrowRef:b}=a0(),x=s==="up"?ht.scrollUpArrowVisible:ht.scrollDownArrowVisible,C=gt(f,x),R=gt(f,ht.openMethod),_=C&&R!=="touch",O=Bn(),T=s==="up"?b:E,{transitionStatus:M,setMounted:A}=xc(_);je(()=>(m.current+=1,f.state.hasScrollArrows||f.set("hasScrollArrows",!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&f.state.hasScrollArrows&&f.set("hasScrollArrows",!1)}),[f,m]),si({open:_,ref:T,onComplete(){_||A(!1)}});const D=S.useMemo(()=>({direction:s,visible:_,side:y,transitionStatus:M}),[s,_,y,M]),F=Ot("div",t,{ref:[n,T],state:D,props:[{"aria-hidden":!0,children:s==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(j){if(j.movementX===0&&j.movementY===0||O.isStarted())return;f.set("activeIndex",null);function z(){var U;const G=f.state.listElement??d.current;if(!G)return;f.set("activeIndex",null),g();const V=G.scrollTop===0,P=Math.round(G.scrollTop+G.clientHeight)>=G.scrollHeight;if(p.current.length===0&&(s==="up"?f.set("scrollUpArrowVisible",!V):f.set("scrollDownArrowVisible",!P)),s==="up"&&V||s==="down"&&P){O.clear();return}if((f.state.listElement||d.current)&&p.current&&p.current.length>0){const K=p.current,Z=((U=T.current)==null?void 0:U.offsetHeight)||0;if(s==="up"){let k=0;const $=G.scrollTop+Z;for(let te=0;te<K.length;te+=1){const ue=K[te];if(ue&&ue.offsetTop>=$){k=te;break}}const X=Math.max(0,k-1);if(X<k){const te=K[X];te&&(G.scrollTop=Math.max(0,te.offsetTop-Z))}else G.scrollTop=0}else{let k=K.length-1;const $=G.scrollTop+G.clientHeight-Z;for(let te=0;te<K.length;te+=1){const ue=K[te];if(ue&&ue.offsetTop+ue.offsetHeight>$){k=Math.max(0,te-1);break}}const X=Math.min(K.length-1,k+1);if(X>k){const te=K[X];te&&(G.scrollTop=te.offsetTop+te.offsetHeight-G.clientHeight+Z)}else G.scrollTop=G.scrollHeight-G.clientHeight}}O.start(40,z)}O.start(40,z)},onMouseLeave(){O.clear()}},c]});return _||l?F:null}),ore=S.forwardRef(function(t,n){return Re.jsx(j3,{...t,ref:n,direction:"down"})}),ire=S.forwardRef(function(t,n){return Re.jsx(j3,{...t,ref:n,direction:"up"})}),sre=S.forwardRef(function(t,n){const{className:r,render:i,orientation:s="horizontal",...l}=t,c=S.useMemo(()=>({orientation:s}),[s]);return Ot("div",t,{state:c,ref:n,props:[{role:"separator","aria-orientation":s},l]})}),$3=S.createContext(void 0);function eK(){const e=S.useContext($3);if(e===void 0)throw new Error(Zt(63));return e}let MA=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const q3={...Hc,checked(e){return e?{[MA.checked]:""}:{[MA.unchecked]:""}}},are=S.forwardRef(function(t,n){const{checked:r,className:i,defaultChecked:s,id:l,inputRef:c,name:f,nativeButton:d=!1,onCheckedChange:p,readOnly:g=!1,required:m=!1,disabled:y=!1,render:E,uncheckedValue:b,...x}=t,{clearErrors:C}=oh(),{state:R,setTouched:_,setDirty:O,validityData:T,setFilled:M,setFocused:A,shouldValidateOnChange:D,validationMode:L,disabled:F,name:B,validation:j}=Oa(),{labelId:z}=Nl(),G=F||y,V=B??f,P=Ue(p),q=S.useRef(null),U=bo(q,c,j.inputRef),K=S.useRef(null),Z=eo(),k=aw({id:l,implicit:!1,controlRef:K}),[$,X]=Tl({controlled:r,default:!!s,name:"Switch",state:"checked"});i0({id:Z,commit:j.commit,value:$,controlRef:K,name:V,getValue:()=>$}),je(()=>{q.current&&M(q.current.checked)},[q,M]),s0($,()=>{C(V),O($!==T.initialValue),M($),D()?j.commit($):j.commit($,!0)});const{getButtonProps:te,buttonRef:ue}=Ni({disabled:G,native:d}),ne={id:Z,role:"switch","aria-checked":$,"aria-readonly":g||void 0,"aria-labelledby":z,onFocus(){G||A(!0)},onBlur(){const Ee=q.current;!Ee||G||(_(!0),A(!1),L==="onBlur"&&j.commit(Ee.checked))},onClick(Ee){var le;g||G||(Ee.preventDefault(),(le=q==null?void 0:q.current)==null||le.click())}},ce=S.useMemo(()=>Ai({checked:$,disabled:G,id:k,name:V,required:m,style:Dl,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:U,onChange(Ee){if(Ee.nativeEvent.defaultPrevented)return;const le=Ee.target.checked,me=st(Rs,Ee.nativeEvent);P==null||P(le,me),!me.isCanceled&&X(le)},onFocus(){var Ee;(Ee=K.current)==null||Ee.focus()}},j.getInputValidationProps),[$,G,U,k,V,P,m,X,j]),Q=S.useMemo(()=>({...R,checked:$,disabled:G,readOnly:g,required:m}),[R,$,G,g,m]),ve=Ot("span",t,{state:Q,ref:[n,K,ue],props:[ne,j.getValidationProps,x,te],stateAttributesMapping:q3});return Re.jsxs($3.Provider,{value:Q,children:[ve,!$&&V&&b!==void 0&&Re.jsx("input",{type:"hidden",name:V,value:b}),Re.jsx("input",{...ce})]})}),lre=S.forwardRef(function(t,n){const{render:r,className:i,...s}=t,{state:l}=Oa(),c=eK(),f={...l,...c};return Ot("span",t,{state:f,ref:n,stateAttributesMapping:q3,props:s})});var sh=e=>e.type==="checkbox",el=e=>e instanceof Date,Ir=e=>e==null;const G3=e=>typeof e=="object";var Hn=e=>!Ir(e)&&!Array.isArray(e)&&G3(e)&&!el(e),Y3=e=>Hn(e)&&e.target?sh(e.target)?e.target.checked:e.target.value:e,tK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,K3=(e,t)=>e.has(tK(t)),nK=e=>{const t=e.constructor&&e.constructor.prototype;return Hn(t)&&t.hasOwnProperty("isPrototypeOf")},fw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Sn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(fw&&(e instanceof Blob||r))&&(n||Hn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!nK(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Sn(e[i]));else return e;return t}var l0=e=>/^\w*$/.test(e),En=e=>e===void 0,u0=e=>Array.isArray(e)?e.filter(Boolean):[],dw=e=>u0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ve=(e,t,n)=>{if(!t||!Hn(e))return n;const r=(l0(t)?[t]:dw(t)).reduce((i,s)=>Ir(i)?i:i[s],e);return En(r)||r===e?En(e[t])?n:e[t]:r},fo=e=>typeof e=="boolean",fn=(e,t,n)=>{let r=-1;const i=l0(t)?[t]:dw(t),s=i.length,l=s-1;for(;++r<s;){const c=i[r];let f=n;if(r!==l){const d=e[c];f=Hn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=f,e=e[c]}};const sm={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Fo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},rs={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},X3=fe.createContext(null);X3.displayName="HookFormContext";const c0=()=>fe.useContext(X3);var W3=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const l=s;return t._proxyFormState[l]!==Fo.all&&(t._proxyFormState[l]=!r||Fo.all),n&&(n[l]=!0),e[l]}});return i};const f0=typeof window<"u"?fe.useLayoutEffect:fe.useEffect;function rK(e){const t=c0(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[l,c]=fe.useState(n._formState),f=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return f0(()=>n._subscribe({name:i,formState:f.current,exact:s,callback:d=>{!r&&c({...n._formState,...d})}}),[i,r,s]),fe.useEffect(()=>{f.current.isValid&&n._setValid(!0)},[n]),fe.useMemo(()=>W3(l,n,f.current,!1),[l,n])}var wi=e=>typeof e=="string",Q3=(e,t,n,r,i)=>wi(e)?(r&&t.watch.add(e),Ve(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),Ve(n,s))):(r&&(t.watchAll=!0),n),CS=e=>Ir(e)||!G3(e);function cs(e,t,n=new WeakSet){if(CS(e)||CS(t))return e===t;if(el(e)&&el(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const l=e[s];if(!i.includes(s))return!1;if(s!=="ref"){const c=t[s];if(el(l)&&el(c)||Hn(l)&&Hn(c)||Array.isArray(l)&&Array.isArray(c)?!cs(l,c,n):l!==c)return!1}}return!0}function oK(e){const t=c0(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:l,compute:c}=e||{},f=fe.useRef(i),d=fe.useRef(c),p=fe.useRef(void 0);d.current=c;const g=fe.useMemo(()=>n._getWatch(r,f.current),[n,r]),[m,y]=fe.useState(d.current?d.current(g):g);return f0(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:E=>{if(!s){const b=Q3(r,n._names,E.values||n._formValues,!1,f.current);if(d.current){const x=d.current(b);cs(x,p.current)||(y(x),p.current=x)}else y(b)}}}),[n,s,r,l]),fe.useEffect(()=>n._removeUnmounted()),m}function ure(e){const t=c0(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s,defaultValue:l}=e,c=K3(i._names.array,n),f=fe.useMemo(()=>Ve(i._formValues,n,Ve(i._defaultValues,n,l)),[i,n,l]),d=oK({control:i,name:n,defaultValue:f,exact:!0}),p=rK({control:i,name:n,exact:!0}),g=fe.useRef(e),m=fe.useRef(i.register(n,{...e.rules,value:d,...fo(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const y=fe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ve(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ve(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ve(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ve(p.validatingFields,n)},error:{enumerable:!0,get:()=>Ve(p.errors,n)}}),[p,n]),E=fe.useCallback(R=>m.current.onChange({target:{value:Y3(R),name:n},type:sm.CHANGE}),[n]),b=fe.useCallback(()=>m.current.onBlur({target:{value:Ve(i._formValues,n),name:n},type:sm.BLUR}),[n,i._formValues]),x=fe.useCallback(R=>{const _=Ve(i._fields,n);_&&R&&(_._f.ref={focus:()=>R.focus&&R.focus(),select:()=>R.select&&R.select(),setCustomValidity:O=>R.setCustomValidity(O),reportValidity:()=>R.reportValidity()})},[i._fields,n]),C=fe.useMemo(()=>({name:n,value:d,...fo(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:E,onBlur:b,ref:x}),[n,r,p.disabled,E,b,x,d]);return fe.useEffect(()=>{const R=i._options.shouldUnregister||s;i.register(n,{...g.current.rules,...fo(g.current.disabled)?{disabled:g.current.disabled}:{}});const _=(O,T)=>{const M=Ve(i._fields,O);M&&M._f&&(M._f.mount=T)};if(_(n,!0),R){const O=Sn(Ve(i._options.defaultValues,n));fn(i._defaultValues,n,O),En(Ve(i._formValues,n))&&fn(i._formValues,n,O)}return!c&&i.register(n),()=>{(c?R&&!i._state.action:R)?i.unregister(n):_(n,!1)}},[n,i,c,s]),fe.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),fe.useMemo(()=>({field:C,formState:p,fieldState:y}),[C,p,y])}var iK=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Kr=e=>Array.isArray(e)?e:[e],IA=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},Or=e=>Hn(e)&&!Object.keys(e).length,hw=e=>e.type==="file",Qo=e=>typeof e=="function",am=e=>{if(!fw)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},J3=e=>e.type==="select-multiple",pw=e=>e.type==="radio",sK=e=>pw(e)||sh(e),A1=e=>am(e)&&e.isConnected;function aK(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=En(e)?r++:e[t[r++]];return e}function lK(e){for(const t in e)if(e.hasOwnProperty(t)&&!En(e[t]))return!1;return!0}function Fn(e,t){const n=Array.isArray(t)?t:l0(t)?[t]:dw(t),r=n.length===1?e:aK(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Hn(r)&&Or(r)||Array.isArray(r)&&lK(r))&&Fn(e,n.slice(0,-1)),e}var Z3=e=>{for(const t in e)if(Qo(e[t]))return!0;return!1};function lm(e,t={}){const n=Array.isArray(e);if(Hn(e)||n)for(const r in e)Array.isArray(e[r])||Hn(e[r])&&!Z3(e[r])?(t[r]=Array.isArray(e[r])?[]:{},lm(e[r],t[r])):Ir(e[r])||(t[r]=!0);return t}function eD(e,t,n){const r=Array.isArray(e);if(Hn(e)||r)for(const i in e)Array.isArray(e[i])||Hn(e[i])&&!Z3(e[i])?En(t)||CS(n[i])?n[i]=Array.isArray(e[i])?lm(e[i],[]):{...lm(e[i])}:eD(e[i],Ir(t)?{}:t[i],n[i]):n[i]=!cs(e[i],t[i]);return n}var Vf=(e,t)=>eD(e,t,lm(t));const DA={value:!1,isValid:!1},LA={value:!0,isValid:!0};var tD=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!En(e[0].attributes.value)?En(e[0].value)||e[0].value===""?LA:{value:e[0].value,isValid:!0}:LA:DA}return DA},nD=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>En(e)?e:t?e===""?NaN:e&&+e:n&&wi(e)?new Date(e):r?r(e):e;const PA={isValid:!1,value:null};var rD=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,PA):PA;function kA(e){const t=e.ref;return hw(t)?t.files:pw(t)?rD(e.refs).value:J3(t)?[...t.selectedOptions].map(({value:n})=>n):sh(t)?tD(e.refs).value:nD(En(t.value)?e.ref.value:t.value,e)}var uK=(e,t,n,r)=>{const i={};for(const s of e){const l=Ve(t,s);l&&fn(i,s,l._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},um=e=>e instanceof RegExp,jf=e=>En(e)?e:um(e)?e.source:Hn(e)?um(e.value)?e.value.source:e.value:e,Iu=e=>({isOnSubmit:!e||e===Fo.onSubmit,isOnBlur:e===Fo.onBlur,isOnChange:e===Fo.onChange,isOnAll:e===Fo.all,isOnTouch:e===Fo.onTouched});const NA="AsyncFunction";var cK=e=>!!e&&!!e.validate&&!!(Qo(e.validate)&&e.validate.constructor.name===NA||Hn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===NA)),fK=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),_S=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Uu=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=Ve(e,i);if(s){const{_f:l,...c}=s;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],i)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Uu(c,t))break}else if(Hn(c)&&Uu(c,t))break}}};function FA(e,t,n){const r=Ve(e,n);if(r||l0(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),l=Ve(t,s),c=Ve(e,s);if(l&&!Array.isArray(l)&&n!==s)return{name:n};if(c&&c.type)return{name:s,error:c};if(c&&c.root&&c.root.type)return{name:`${s}.root`,error:c.root};i.pop()}return{name:n}}var dK=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return Or(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||Fo.all))},hK=(e,t,n)=>!e||!t||e===t||Kr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),pK=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,gK=(e,t)=>!u0(Ve(e,t)).length&&Fn(e,t),oD=(e,t,n)=>{const r=Kr(Ve(e,n));return fn(r,"root",t[n]),fn(e,n,r),e},Tg=e=>wi(e);function zA(e,t,n="validate"){if(Tg(e)||Array.isArray(e)&&e.every(Tg)||fo(e)&&!e)return{type:n,message:Tg(e)?e:"",ref:t}}var xu=e=>Hn(e)&&!um(e)?e:{value:e,message:""},TS=async(e,t,n,r,i,s)=>{const{ref:l,refs:c,required:f,maxLength:d,minLength:p,min:g,max:m,pattern:y,validate:E,name:b,valueAsNumber:x,mount:C}=e._f,R=Ve(n,b);if(!C||t.has(b))return{};const _=c?c[0]:l,O=j=>{i&&_.reportValidity&&(_.setCustomValidity(fo(j)?"":j||""),_.reportValidity())},T={},M=pw(l),A=sh(l),D=M||A,L=(x||hw(l))&&En(l.value)&&En(R)||am(l)&&l.value===""||R===""||Array.isArray(R)&&!R.length,F=iK.bind(null,b,r,T),B=(j,z,G,V=rs.maxLength,P=rs.minLength)=>{const q=j?z:G;T[b]={type:j?V:P,message:q,ref:l,...F(j?V:P,q)}};if(s?!Array.isArray(R)||!R.length:f&&(!D&&(L||Ir(R))||fo(R)&&!R||A&&!tD(c).isValid||M&&!rD(c).isValid)){const{value:j,message:z}=Tg(f)?{value:!!f,message:f}:xu(f);if(j&&(T[b]={type:rs.required,message:z,ref:_,...F(rs.required,z)},!r))return O(z),T}if(!L&&(!Ir(g)||!Ir(m))){let j,z;const G=xu(m),V=xu(g);if(!Ir(R)&&!isNaN(R)){const P=l.valueAsNumber||R&&+R;Ir(G.value)||(j=P>G.value),Ir(V.value)||(z=P<V.value)}else{const P=l.valueAsDate||new Date(R),q=Z=>new Date(new Date().toDateString()+" "+Z),U=l.type=="time",K=l.type=="week";wi(G.value)&&R&&(j=U?q(R)>q(G.value):K?R>G.value:P>new Date(G.value)),wi(V.value)&&R&&(z=U?q(R)<q(V.value):K?R<V.value:P<new Date(V.value))}if((j||z)&&(B(!!j,G.message,V.message,rs.max,rs.min),!r))return O(T[b].message),T}if((d||p)&&!L&&(wi(R)||s&&Array.isArray(R))){const j=xu(d),z=xu(p),G=!Ir(j.value)&&R.length>+j.value,V=!Ir(z.value)&&R.length<+z.value;if((G||V)&&(B(G,j.message,z.message),!r))return O(T[b].message),T}if(y&&!L&&wi(R)){const{value:j,message:z}=xu(y);if(um(j)&&!R.match(j)&&(T[b]={type:rs.pattern,message:z,ref:l,...F(rs.pattern,z)},!r))return O(z),T}if(E){if(Qo(E)){const j=await E(R,n),z=zA(j,_);if(z&&(T[b]={...z,...F(rs.validate,z.message)},!r))return O(z.message),T}else if(Hn(E)){let j={};for(const z in E){if(!Or(j)&&!r)break;const G=zA(await E[z](R,n),_,z);G&&(j={...G,...F(z,G.message)},O(G.message),r&&(T[b]=j))}if(!Or(j)&&(T[b]={ref:_,...j},!r))return T}}return O(!0),T};const mK={mode:Fo.onSubmit,reValidateMode:Fo.onChange,shouldFocusError:!0};function vK(e={}){let t={...mK,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Qo(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Hn(t.defaultValues)||Hn(t.values)?Sn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Sn(i),l={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,d=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...p};const m={array:IA(),state:IA()},y=t.criteriaMode===Fo.all,E=H=>Y=>{clearTimeout(d),d=setTimeout(H,Y)},b=async H=>{if(!t.disabled&&(p.isValid||g.isValid||H)){const Y=t.resolver?Or((await A()).errors):await L(r,!0);Y!==n.isValid&&m.state.next({isValid:Y})}},x=(H,Y)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((H||Array.from(c.mount)).forEach(ee=>{ee&&(Y?fn(n.validatingFields,ee,Y):Fn(n.validatingFields,ee))}),m.state.next({validatingFields:n.validatingFields,isValidating:!Or(n.validatingFields)}))},C=(H,Y=[],ee,ie,ae=!0,oe=!0)=>{if(ie&&ee&&!t.disabled){if(l.action=!0,oe&&Array.isArray(Ve(r,H))){const Oe=ee(Ve(r,H),ie.argA,ie.argB);ae&&fn(r,H,Oe)}if(oe&&Array.isArray(Ve(n.errors,H))){const Oe=ee(Ve(n.errors,H),ie.argA,ie.argB);ae&&fn(n.errors,H,Oe),gK(n.errors,H)}if((p.touchedFields||g.touchedFields)&&oe&&Array.isArray(Ve(n.touchedFields,H))){const Oe=ee(Ve(n.touchedFields,H),ie.argA,ie.argB);ae&&fn(n.touchedFields,H,Oe)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=Vf(i,s)),m.state.next({name:H,isDirty:B(H,Y),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else fn(s,H,Y)},R=(H,Y)=>{fn(n.errors,H,Y),m.state.next({errors:n.errors})},_=H=>{n.errors=H,m.state.next({errors:n.errors,isValid:!1})},O=(H,Y,ee,ie)=>{const ae=Ve(r,H);if(ae){const oe=Ve(s,H,En(ee)?Ve(i,H):ee);En(oe)||ie&&ie.defaultChecked||Y?fn(s,H,Y?oe:kA(ae._f)):G(H,oe),l.mount&&b()}},T=(H,Y,ee,ie,ae)=>{let oe=!1,Oe=!1;const Be={name:H};if(!t.disabled){if(!ee||ie){(p.isDirty||g.isDirty)&&(Oe=n.isDirty,n.isDirty=Be.isDirty=B(),oe=Oe!==Be.isDirty);const Fe=cs(Ve(i,H),Y);Oe=!!Ve(n.dirtyFields,H),Fe?Fn(n.dirtyFields,H):fn(n.dirtyFields,H,!0),Be.dirtyFields=n.dirtyFields,oe=oe||(p.dirtyFields||g.dirtyFields)&&Oe!==!Fe}if(ee){const Fe=Ve(n.touchedFields,H);Fe||(fn(n.touchedFields,H,ee),Be.touchedFields=n.touchedFields,oe=oe||(p.touchedFields||g.touchedFields)&&Fe!==ee)}oe&&ae&&m.state.next(Be)}return oe?Be:{}},M=(H,Y,ee,ie)=>{const ae=Ve(n.errors,H),oe=(p.isValid||g.isValid)&&fo(Y)&&n.isValid!==Y;if(t.delayError&&ee?(f=E(()=>R(H,ee)),f(t.delayError)):(clearTimeout(d),f=null,ee?fn(n.errors,H,ee):Fn(n.errors,H)),(ee?!cs(ae,ee):ae)||!Or(ie)||oe){const Oe={...ie,...oe&&fo(Y)?{isValid:Y}:{},errors:n.errors,name:H};n={...n,...Oe},m.state.next(Oe)}},A=async H=>{x(H,!0);const Y=await t.resolver(s,t.context,uK(H||c.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(H),Y},D=async H=>{const{errors:Y}=await A(H);if(H)for(const ee of H){const ie=Ve(Y,ee);ie?fn(n.errors,ee,ie):Fn(n.errors,ee)}else n.errors=Y;return Y},L=async(H,Y,ee={valid:!0})=>{for(const ie in H){const ae=H[ie];if(ae){const{_f:oe,...Oe}=ae;if(oe){const Be=c.array.has(oe.name),Fe=ae._f&&cK(ae._f);Fe&&p.validatingFields&&x([ie],!0);const Ke=await TS(ae,c.disabled,s,y,t.shouldUseNativeValidation&&!Y,Be);if(Fe&&p.validatingFields&&x([ie]),Ke[oe.name]&&(ee.valid=!1,Y))break;!Y&&(Ve(Ke,oe.name)?Be?oD(n.errors,Ke,oe.name):fn(n.errors,oe.name,Ke[oe.name]):Fn(n.errors,oe.name))}!Or(Oe)&&await L(Oe,Y,ee)}}return ee.valid},F=()=>{for(const H of c.unMount){const Y=Ve(r,H);Y&&(Y._f.refs?Y._f.refs.every(ee=>!A1(ee)):!A1(Y._f.ref))&&ce(H)}c.unMount=new Set},B=(H,Y)=>!t.disabled&&(H&&Y&&fn(s,H,Y),!cs(Z(),i)),j=(H,Y,ee)=>Q3(H,c,{...l.mount?s:En(Y)?i:wi(H)?{[H]:Y}:Y},ee,Y),z=H=>u0(Ve(l.mount?s:i,H,t.shouldUnregister?Ve(i,H,[]):[])),G=(H,Y,ee={})=>{const ie=Ve(r,H);let ae=Y;if(ie){const oe=ie._f;oe&&(!oe.disabled&&fn(s,H,nD(Y,oe)),ae=am(oe.ref)&&Ir(Y)?"":Y,J3(oe.ref)?[...oe.ref.options].forEach(Oe=>Oe.selected=ae.includes(Oe.value)):oe.refs?sh(oe.ref)?oe.refs.forEach(Oe=>{(!Oe.defaultChecked||!Oe.disabled)&&(Array.isArray(ae)?Oe.checked=!!ae.find(Be=>Be===Oe.value):Oe.checked=ae===Oe.value||!!ae)}):oe.refs.forEach(Oe=>Oe.checked=Oe.value===ae):hw(oe.ref)?oe.ref.value="":(oe.ref.value=ae,oe.ref.type||m.state.next({name:H,values:Sn(s)})))}(ee.shouldDirty||ee.shouldTouch)&&T(H,ae,ee.shouldTouch,ee.shouldDirty,!0),ee.shouldValidate&&K(H)},V=(H,Y,ee)=>{for(const ie in Y){if(!Y.hasOwnProperty(ie))return;const ae=Y[ie],oe=H+"."+ie,Oe=Ve(r,oe);(c.array.has(H)||Hn(ae)||Oe&&!Oe._f)&&!el(ae)?V(oe,ae,ee):G(oe,ae,ee)}},P=(H,Y,ee={})=>{const ie=Ve(r,H),ae=c.array.has(H),oe=Sn(Y);fn(s,H,oe),ae?(m.array.next({name:H,values:Sn(s)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&ee.shouldDirty&&m.state.next({name:H,dirtyFields:Vf(i,s),isDirty:B(H,oe)})):ie&&!ie._f&&!Ir(oe)?V(H,oe,ee):G(H,oe,ee),_S(H,c)&&m.state.next({...n,name:H}),m.state.next({name:l.mount?H:void 0,values:Sn(s)})},q=async H=>{l.mount=!0;const Y=H.target;let ee=Y.name,ie=!0;const ae=Ve(r,ee),oe=Fe=>{ie=Number.isNaN(Fe)||el(Fe)&&isNaN(Fe.getTime())||cs(Fe,Ve(s,ee,Fe))},Oe=Iu(t.mode),Be=Iu(t.reValidateMode);if(ae){let Fe,Ke;const it=Y.type?kA(ae._f):Y3(H),rt=H.type===sm.BLUR||H.type===sm.FOCUS_OUT,kt=!fK(ae._f)&&!t.resolver&&!Ve(n.errors,ee)&&!ae._f.deps||pK(rt,Ve(n.touchedFields,ee),n.isSubmitted,Be,Oe),ut=_S(ee,c,rt);fn(s,ee,it),rt?(!Y||!Y.readOnly)&&(ae._f.onBlur&&ae._f.onBlur(H),f&&f(0)):ae._f.onChange&&ae._f.onChange(H);const he=T(ee,it,rt),ze=!Or(he)||ut;if(!rt&&m.state.next({name:ee,type:H.type,values:Sn(s)}),kt)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?rt&&b():rt||b()),ze&&m.state.next({name:ee,...ut?{}:he});if(!rt&&ut&&m.state.next({...n}),t.resolver){const{errors:He}=await A([ee]);if(oe(it),ie){const tt=FA(n.errors,r,ee),mt=FA(He,r,tt.name||ee);Fe=mt.error,ee=mt.name,Ke=Or(He)}}else x([ee],!0),Fe=(await TS(ae,c.disabled,s,y,t.shouldUseNativeValidation))[ee],x([ee]),oe(it),ie&&(Fe?Ke=!1:(p.isValid||g.isValid)&&(Ke=await L(r,!0)));ie&&(ae._f.deps&&K(ae._f.deps),M(ee,Ke,Fe,he))}},U=(H,Y)=>{if(Ve(n.errors,Y)&&H.focus)return H.focus(),1},K=async(H,Y={})=>{let ee,ie;const ae=Kr(H);if(t.resolver){const oe=await D(En(H)?H:ae);ee=Or(oe),ie=H?!ae.some(Oe=>Ve(oe,Oe)):ee}else H?(ie=(await Promise.all(ae.map(async oe=>{const Oe=Ve(r,oe);return await L(Oe&&Oe._f?{[oe]:Oe}:Oe)}))).every(Boolean),!(!ie&&!n.isValid)&&b()):ie=ee=await L(r);return m.state.next({...!wi(H)||(p.isValid||g.isValid)&&ee!==n.isValid?{}:{name:H},...t.resolver||!H?{isValid:ee}:{},errors:n.errors}),Y.shouldFocus&&!ie&&Uu(r,U,H?ae:c.mount),ie},Z=H=>{const Y={...l.mount?s:i};return En(H)?Y:wi(H)?Ve(Y,H):H.map(ee=>Ve(Y,ee))},k=(H,Y)=>({invalid:!!Ve((Y||n).errors,H),isDirty:!!Ve((Y||n).dirtyFields,H),error:Ve((Y||n).errors,H),isValidating:!!Ve(n.validatingFields,H),isTouched:!!Ve((Y||n).touchedFields,H)}),$=H=>{H&&Kr(H).forEach(Y=>Fn(n.errors,Y)),m.state.next({errors:H?n.errors:{}})},X=(H,Y,ee)=>{const ie=(Ve(r,H,{_f:{}})._f||{}).ref,ae=Ve(n.errors,H)||{},{ref:oe,message:Oe,type:Be,...Fe}=ae;fn(n.errors,H,{...Fe,...Y,ref:ie}),m.state.next({name:H,errors:n.errors,isValid:!1}),ee&&ee.shouldFocus&&ie&&ie.focus&&ie.focus()},te=(H,Y)=>Qo(H)?m.state.subscribe({next:ee=>"values"in ee&&H(j(void 0,Y),ee)}):j(H,Y,!0),ue=H=>m.state.subscribe({next:Y=>{hK(H.name,Y.name,H.exact)&&dK(Y,H.formState||p,xe,H.reRenderRoot)&&H.callback({values:{...s},...n,...Y,defaultValues:i})}}).unsubscribe,ne=H=>(l.mount=!0,g={...g,...H.formState},ue({...H,formState:g})),ce=(H,Y={})=>{for(const ee of H?Kr(H):c.mount)c.mount.delete(ee),c.array.delete(ee),Y.keepValue||(Fn(r,ee),Fn(s,ee)),!Y.keepError&&Fn(n.errors,ee),!Y.keepDirty&&Fn(n.dirtyFields,ee),!Y.keepTouched&&Fn(n.touchedFields,ee),!Y.keepIsValidating&&Fn(n.validatingFields,ee),!t.shouldUnregister&&!Y.keepDefaultValue&&Fn(i,ee);m.state.next({values:Sn(s)}),m.state.next({...n,...Y.keepDirty?{isDirty:B()}:{}}),!Y.keepIsValid&&b()},Q=({disabled:H,name:Y})=>{(fo(H)&&l.mount||H||c.disabled.has(Y))&&(H?c.disabled.add(Y):c.disabled.delete(Y))},ve=(H,Y={})=>{let ee=Ve(r,H);const ie=fo(Y.disabled)||fo(t.disabled);return fn(r,H,{...ee||{},_f:{...ee&&ee._f?ee._f:{ref:{name:H}},name:H,mount:!0,...Y}}),c.mount.add(H),ee?Q({disabled:fo(Y.disabled)?Y.disabled:t.disabled,name:H}):O(H,!0,Y.value),{...ie?{disabled:Y.disabled||t.disabled}:{},...t.progressive?{required:!!Y.required,min:jf(Y.min),max:jf(Y.max),minLength:jf(Y.minLength),maxLength:jf(Y.maxLength),pattern:jf(Y.pattern)}:{},name:H,onChange:q,onBlur:q,ref:ae=>{if(ae){ve(H,Y),ee=Ve(r,H);const oe=En(ae.value)&&ae.querySelectorAll&&ae.querySelectorAll("input,select,textarea")[0]||ae,Oe=sK(oe),Be=ee._f.refs||[];if(Oe?Be.find(Fe=>Fe===oe):oe===ee._f.ref)return;fn(r,H,{_f:{...ee._f,...Oe?{refs:[...Be.filter(A1),oe,...Array.isArray(Ve(i,H))?[{}]:[]],ref:{type:oe.type,name:H}}:{ref:oe}}}),O(H,!1,void 0,oe)}else ee=Ve(r,H,{}),ee._f&&(ee._f.mount=!1),(t.shouldUnregister||Y.shouldUnregister)&&!(K3(c.array,H)&&l.action)&&c.unMount.add(H)}}},Ee=()=>t.shouldFocusError&&Uu(r,U,c.mount),le=H=>{fo(H)&&(m.state.next({disabled:H}),Uu(r,(Y,ee)=>{const ie=Ve(r,ee);ie&&(Y.disabled=ie._f.disabled||H,Array.isArray(ie._f.refs)&&ie._f.refs.forEach(ae=>{ae.disabled=ie._f.disabled||H}))},0,!1))},me=(H,Y)=>async ee=>{let ie;ee&&(ee.preventDefault&&ee.preventDefault(),ee.persist&&ee.persist());let ae=Sn(s);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:oe,values:Oe}=await A();n.errors=oe,ae=Sn(Oe)}else await L(r);if(c.disabled.size)for(const oe of c.disabled)Fn(ae,oe);if(Fn(n.errors,"root"),Or(n.errors)){m.state.next({errors:{}});try{await H(ae,ee)}catch(oe){ie=oe}}else Y&&await Y({...n.errors},ee),Ee(),setTimeout(Ee);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Or(n.errors)&&!ie,submitCount:n.submitCount+1,errors:n.errors}),ie)throw ie},Ce=(H,Y={})=>{Ve(r,H)&&(En(Y.defaultValue)?P(H,Sn(Ve(i,H))):(P(H,Y.defaultValue),fn(i,H,Sn(Y.defaultValue))),Y.keepTouched||Fn(n.touchedFields,H),Y.keepDirty||(Fn(n.dirtyFields,H),n.isDirty=Y.defaultValue?B(H,Sn(Ve(i,H))):B()),Y.keepError||(Fn(n.errors,H),p.isValid&&b()),m.state.next({...n}))},Ie=(H,Y={})=>{const ee=H?Sn(H):i,ie=Sn(ee),ae=Or(H),oe=ae?i:ie;if(Y.keepDefaultValues||(i=ee),!Y.keepValues){if(Y.keepDirtyValues){const Oe=new Set([...c.mount,...Object.keys(Vf(i,s))]);for(const Be of Array.from(Oe))Ve(n.dirtyFields,Be)?fn(oe,Be,Ve(s,Be)):P(Be,Ve(oe,Be))}else{if(fw&&En(H))for(const Oe of c.mount){const Be=Ve(r,Oe);if(Be&&Be._f){const Fe=Array.isArray(Be._f.refs)?Be._f.refs[0]:Be._f.ref;if(am(Fe)){const Ke=Fe.closest("form");if(Ke){Ke.reset();break}}}}if(Y.keepFieldsRef)for(const Oe of c.mount)P(Oe,Ve(oe,Oe));else r={}}s=t.shouldUnregister?Y.keepDefaultValues?Sn(i):{}:Sn(oe),m.array.next({values:{...oe}}),m.state.next({values:{...oe}})}c={mount:Y.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!Y.keepIsValid||!!Y.keepDirtyValues,l.watch=!!t.shouldUnregister,m.state.next({submitCount:Y.keepSubmitCount?n.submitCount:0,isDirty:ae?!1:Y.keepDirty?n.isDirty:!!(Y.keepDefaultValues&&!cs(H,i)),isSubmitted:Y.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ae?{}:Y.keepDirtyValues?Y.keepDefaultValues&&s?Vf(i,s):n.dirtyFields:Y.keepDefaultValues&&H?Vf(i,H):Y.keepDirty?n.dirtyFields:{},touchedFields:Y.keepTouched?n.touchedFields:{},errors:Y.keepErrors?n.errors:{},isSubmitSuccessful:Y.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Me=(H,Y)=>Ie(Qo(H)?H(s):H,Y),be=(H,Y={})=>{const ee=Ve(r,H),ie=ee&&ee._f;if(ie){const ae=ie.refs?ie.refs[0]:ie.ref;ae.focus&&(ae.focus(),Y.shouldSelect&&Qo(ae.select)&&ae.select())}},xe=H=>{n={...n,...H}},De={control:{register:ve,unregister:ce,getFieldState:k,handleSubmit:me,setError:X,_subscribe:ue,_runSchema:A,_focusError:Ee,_getWatch:j,_getDirty:B,_setValid:b,_setFieldArray:C,_setDisabledField:Q,_setErrors:_,_getFieldArray:z,_reset:Ie,_resetDefaultValues:()=>Qo(t.defaultValues)&&t.defaultValues().then(H=>{Me(H,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:le,_subjects:m,_proxyFormState:p,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(H){l=H},get _defaultValues(){return i},get _names(){return c},set _names(H){c=H},get _formState(){return n},get _options(){return t},set _options(H){t={...t,...H}}},subscribe:ne,trigger:K,register:ve,handleSubmit:me,watch:te,setValue:P,getValues:Z,reset:Me,resetField:Ce,clearErrors:$,unregister:ce,setError:X,setFocus:be,getFieldState:k};return{...De,formControl:De}}var Ks=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},O1=(e,t,n={})=>n.shouldFocus||En(n.shouldFocus)?n.focusName||`${e}.${En(n.focusIndex)?t:n.focusIndex}.`:"",M1=(e,t)=>[...e,...Kr(t)],I1=e=>Array.isArray(e)?e.map(()=>{}):void 0;function D1(e,t,n){return[...e.slice(0,t),...Kr(n),...e.slice(t)]}var L1=(e,t,n)=>Array.isArray(e)?(En(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],P1=(e,t)=>[...Kr(t),...Kr(e)];function yK(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return u0(r).length?r:[]}var k1=(e,t)=>En(t)?[]:yK(e,Kr(t).sort((n,r)=>n-r)),N1=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},BA=(e,t,n)=>(e[t]=n,e);function cre(e){const t=c0(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:l}=e,[c,f]=fe.useState(n._getFieldArray(r)),d=fe.useRef(n._getFieldArray(r).map(Ks)),p=fe.useRef(c),g=fe.useRef(!1);p.current=c,n._names.array.add(r),fe.useMemo(()=>l&&n.register(r,l),[n,l,r]),f0(()=>n._subjects.array.subscribe({next:({values:T,name:M})=>{if(M===r||!M){const A=Ve(T,r);Array.isArray(A)&&(f(A),d.current=A.map(Ks))}}}).unsubscribe,[n,r]);const m=fe.useCallback(T=>{g.current=!0,n._setFieldArray(r,T)},[n,r]),y=(T,M)=>{const A=Kr(Sn(T)),D=M1(n._getFieldArray(r),A);n._names.focus=O1(r,D.length-1,M),d.current=M1(d.current,A.map(Ks)),m(D),f(D),n._setFieldArray(r,D,M1,{argA:I1(T)})},E=(T,M)=>{const A=Kr(Sn(T)),D=P1(n._getFieldArray(r),A);n._names.focus=O1(r,0,M),d.current=P1(d.current,A.map(Ks)),m(D),f(D),n._setFieldArray(r,D,P1,{argA:I1(T)})},b=T=>{const M=k1(n._getFieldArray(r),T);d.current=k1(d.current,T),m(M),f(M),!Array.isArray(Ve(n._fields,r))&&fn(n._fields,r,void 0),n._setFieldArray(r,M,k1,{argA:T})},x=(T,M,A)=>{const D=Kr(Sn(M)),L=D1(n._getFieldArray(r),T,D);n._names.focus=O1(r,T,A),d.current=D1(d.current,T,D.map(Ks)),m(L),f(L),n._setFieldArray(r,L,D1,{argA:T,argB:I1(M)})},C=(T,M)=>{const A=n._getFieldArray(r);N1(A,T,M),N1(d.current,T,M),m(A),f(A),n._setFieldArray(r,A,N1,{argA:T,argB:M},!1)},R=(T,M)=>{const A=n._getFieldArray(r);L1(A,T,M),L1(d.current,T,M),m(A),f(A),n._setFieldArray(r,A,L1,{argA:T,argB:M},!1)},_=(T,M)=>{const A=Sn(M),D=BA(n._getFieldArray(r),T,A);d.current=[...D].map((L,F)=>!L||F===T?Ks():d.current[F]),m(D),f([...D]),n._setFieldArray(r,D,BA,{argA:T,argB:A},!0,!1)},O=T=>{const M=Kr(Sn(T));d.current=M.map(Ks),m([...M]),f([...M]),n._setFieldArray(r,[...M],A=>A,{},!0,!1)};return fe.useEffect(()=>{if(n._state.action=!1,_S(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Iu(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Iu(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(T=>{const M=Ve(T.errors,r),A=Ve(n._formState.errors,r);(A?!M&&A.type||M&&(A.type!==M.type||A.message!==M.message):M&&M.type)&&(M?fn(n._formState.errors,r,M):Fn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const T=Ve(n._fields,r);T&&T._f&&!(Iu(n._options.reValidateMode).isOnSubmit&&Iu(n._options.mode).isOnSubmit)&&TS(T,n._names.disabled,n._formValues,n._options.criteriaMode===Fo.all,n._options.shouldUseNativeValidation,!0).then(M=>!Or(M)&&n._subjects.state.next({errors:oD(n._formState.errors,M,r)}))}n._subjects.state.next({name:r,values:Sn(n._formValues)}),n._names.focus&&Uu(n._fields,(T,M)=>{if(n._names.focus&&M.startsWith(n._names.focus)&&T.focus)return T.focus(),1}),n._names.focus="",n._setValid(),g.current=!1},[c,r,n]),fe.useEffect(()=>(!Ve(n._formValues,r)&&n._setFieldArray(r),()=>{const T=(M,A)=>{const D=Ve(n._fields,M);D&&D._f&&(D._f.mount=A)};n._options.shouldUnregister||s?n.unregister(r):T(r,!1)}),[r,n,i,s]),{swap:fe.useCallback(C,[m,r,n]),move:fe.useCallback(R,[m,r,n]),prepend:fe.useCallback(E,[m,r,n]),append:fe.useCallback(y,[m,r,n]),remove:fe.useCallback(b,[m,r,n]),insert:fe.useCallback(x,[m,r,n]),update:fe.useCallback(_,[m,r,n]),replace:fe.useCallback(O,[m,r,n]),fields:fe.useMemo(()=>c.map((T,M)=>({...T,[i]:d.current[M]||Ks()})),[c,i])}}function fre(e={}){const t=fe.useRef(void 0),n=fe.useRef(void 0),[r,i]=fe.useState({isDirty:!1,isValidating:!1,isLoading:Qo(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Qo(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Qo(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=vK(e);t.current={...c,formState:r}}const s=t.current.control;return s._options=e,f0(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}),reRenderRoot:!0});return i(c=>({...c,isReady:!0})),s._formState.isReady=!0,l},[s]),fe.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),fe.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),fe.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),fe.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),fe.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==r.isDirty&&s._subjects.state.next({isDirty:l})}},[s,r.isDirty]),fe.useEffect(()=>{e.values&&!cs(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,i(l=>({...l}))):s._resetDefaultValues()},[s,e.values]),fe.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=W3(r,s),t.current}function Uc(){return(Uc=Object.assign||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}).apply(this,arguments)}function d0(e,t){if(e==null)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(i[n]=e[n]);return i}function bd(e){var t=S.useRef(e),n=S.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var mc=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Zf=function(e){return"touches"in e},AS=function(e){return e&&e.ownerDocument.defaultView||self},HA=function(e,t,n){var r=e.getBoundingClientRect(),i=Zf(t)?function(s,l){for(var c=0;c<s.length;c++)if(s[c].identifier===l)return s[c];return s[0]}(t.touches,n):t;return{left:mc((i.pageX-(r.left+AS(e).pageXOffset))/r.width),top:mc((i.pageY-(r.top+AS(e).pageYOffset))/r.height)}},UA=function(e){!Zf(e)&&e.preventDefault()},gw=fe.memo(function(e){var t=e.onMove,n=e.onKey,r=d0(e,["onMove","onKey"]),i=S.useRef(null),s=bd(t),l=bd(n),c=S.useRef(null),f=S.useRef(!1),d=S.useMemo(function(){var y=function(x){UA(x),(Zf(x)?x.touches.length>0:x.buttons>0)&&i.current?s(HA(i.current,x,c.current)):b(!1)},E=function(){return b(!1)};function b(x){var C=f.current,R=AS(i.current),_=x?R.addEventListener:R.removeEventListener;_(C?"touchmove":"mousemove",y),_(C?"touchend":"mouseup",E)}return[function(x){var C=x.nativeEvent,R=i.current;if(R&&(UA(C),!function(O,T){return T&&!Zf(O)}(C,f.current)&&R)){if(Zf(C)){f.current=!0;var _=C.changedTouches||[];_.length&&(c.current=_[0].identifier)}R.focus(),s(HA(R,C,c.current)),b(!0)}},function(x){var C=x.which||x.keyCode;C<37||C>40||(x.preventDefault(),l({left:C===39?.05:C===37?-.05:0,top:C===40?.05:C===38?-.05:0}))},b]},[l,s]),p=d[0],g=d[1],m=d[2];return S.useEffect(function(){return m},[m]),fe.createElement("div",Uc({},r,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:i,onKeyDown:g,tabIndex:0,role:"slider"}))}),h0=function(e){return e.filter(Boolean).join(" ")},mw=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,s=h0(["react-colorful__pointer",e.className]);return fe.createElement("div",{className:s,style:{top:100*i+"%",left:100*n+"%"}},fe.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},lr=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},bK=function(e){return RK(OS(e))},OS=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?lr(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?lr(parseInt(e.substring(6,8),16)/255,2):1}},SK=function(e){return wK(EK(e))},iD=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:lr(e.h),s:lr(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:lr(i/2),a:lr(r,2)}},MS=function(e){var t=iD(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},F1=function(e){var t=iD(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},EK=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var s=Math.floor(t),l=r*(1-n),c=r*(1-(t-s)*n),f=r*(1-(1-t+s)*n),d=s%6;return{r:lr(255*[r,c,l,l,f,r][d]),g:lr(255*[f,r,r,c,l,l][d]),b:lr(255*[l,l,f,r,r,c][d]),a:lr(i,2)}},Wp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wK=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,s=i<1?Wp(lr(255*i)):"";return"#"+Wp(t)+Wp(n)+Wp(r)+s},RK=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,s=Math.max(t,n,r),l=s-Math.min(t,n,r),c=l?s===t?(n-r)/l:s===n?2+(r-t)/l:4+(t-n)/l:0;return{h:lr(60*(c<0?c+6:c)),s:lr(s?l/s*100:0),v:lr(s/255*100),a:i}},xK=fe.memo(function(e){var t=e.hue,n=e.onChange,r=h0(["react-colorful__hue",e.className]);return fe.createElement("div",{className:r},fe.createElement(gw,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:mc(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":lr(t),"aria-valuemax":"360","aria-valuemin":"0"},fe.createElement(mw,{className:"react-colorful__hue-pointer",left:t/360,color:MS({h:t,s:100,v:100,a:1})})))}),CK=fe.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:MS({h:t.h,s:100,v:100,a:1})};return fe.createElement("div",{className:"react-colorful__saturation",style:r},fe.createElement(gw,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:mc(t.s+100*i.left,0,100),v:mc(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+lr(t.s)+"%, Brightness "+lr(t.v)+"%"},fe.createElement(mw,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:MS(t)})))}),sD=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},_K=function(e,t){return e.toLowerCase()===t.toLowerCase()||sD(OS(e),OS(t))};function TK(e,t,n){var r=bd(n),i=S.useState(function(){return e.toHsva(t)}),s=i[0],l=i[1],c=S.useRef({color:t,hsva:s});S.useEffect(function(){if(!e.equal(t,c.current.color)){var d=e.toHsva(t);c.current={hsva:d,color:t},l(d)}},[t,e]),S.useEffect(function(){var d;sD(s,c.current.hsva)||e.equal(d=e.fromHsva(s),c.current.color)||(c.current={hsva:s,color:d},r(d))},[s,e,r]);var f=S.useCallback(function(d){l(function(p){return Object.assign({},p,d)})},[]);return[s,f]}var AK=typeof window<"u"?S.useLayoutEffect:S.useEffect,OK=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},VA=new Map,MK=function(e){AK(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!VA.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,VA.set(t,n);var r=OK();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},IK=function(e){var t=e.className,n=e.hsva,r=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+F1(Object.assign({},n,{a:0}))+", "+F1(Object.assign({},n,{a:1}))+")"},s=h0(["react-colorful__alpha",t]),l=lr(100*n.a);return fe.createElement("div",{className:s},fe.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),fe.createElement(gw,{onMove:function(c){r({a:c.left})},onKey:function(c){r({a:mc(n.a+c.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},fe.createElement(mw,{className:"react-colorful__alpha-pointer",left:n.a,color:F1(n)})))},DK=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,s=e.onChange,l=d0(e,["className","colorModel","color","onChange"]),c=S.useRef(null);MK(c);var f=TK(n,i,s),d=f[0],p=f[1],g=h0(["react-colorful",t]);return fe.createElement("div",Uc({},l,{ref:c,className:g}),fe.createElement(CK,{hsva:d,onChange:p}),fe.createElement(xK,{hue:d.h,onChange:p}),fe.createElement(IK,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},LK={defaultColor:"0001",toHsva:bK,fromHsva:SK,equal:_K},dre=function(e){return fe.createElement(DK,Uc({},e,{colorModel:LK}))},PK=/^#?([0-9A-F]{3,8})$/i,kK=function(e){var t=e.color,n=t===void 0?"":t,r=e.onChange,i=e.onBlur,s=e.escape,l=e.validate,c=e.format,f=e.process,d=d0(e,["color","onChange","onBlur","escape","validate","format","process"]),p=S.useState(function(){return s(n)}),g=p[0],m=p[1],y=bd(r),E=bd(i),b=S.useCallback(function(C){var R=s(C.target.value);m(R),l(R)&&y(f?f(R):R)},[s,f,l,y]),x=S.useCallback(function(C){l(C.target.value)||m(s(n)),E(C)},[n,s,l,E]);return S.useEffect(function(){m(s(n))},[n,s]),fe.createElement("input",Uc({},d,{value:c?c(g):g,spellCheck:"false",onChange:b,onBlur:x}))},jA=function(e){return"#"+e},hre=function(e){var t=e.prefixed,n=e.alpha,r=d0(e,["prefixed","alpha"]),i=S.useCallback(function(l){return l.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),s=S.useCallback(function(l){return function(c,f){var d=PK.exec(c),p=d?d[1].length:0;return p===3||p===6||!!f&&p===4||!!f&&p===8}(l,n)},[n]);return fe.createElement(kK,Uc({},r,{escape:i,format:t?jA:void 0,process:jA,validate:s}))};const aD=S.createContext(void 0);function Fl(e){const t=S.useContext(aD);if(t===void 0&&!e)throw new Error(Zt(47));return t}function NK(){return{...Lm(),disabled:!1,modal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0}}const FK={...Pm,disabled:ke(e=>e.disabled),instantType:ke(e=>e.instantType),openMethod:ke(e=>e.openMethod),openChangeReason:ke(e=>e.openChangeReason),modal:ke(e=>e.modal),stickIfOpen:ke(e=>e.stickIfOpen),titleElementId:ke(e=>e.titleElementId),descriptionElementId:ke(e=>e.descriptionElementId),openOnHover:ke(e=>e.openOnHover),closeDelay:ke(e=>e.closeDelay)};class vw extends Bd{constructor(n){const r={...NK(),...n};r.open&&(n==null?void 0:n.mounted)===void 0&&(r.mounted=!0);super(r,{popupRef:S.createRef(),backdropRef:S.createRef(),internalBackdropRef:S.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:S.createRef(),beforeContentFocusGuardRef:S.createRef(),stickIfOpenTimeout:new vs,triggerElements:new Cc},FK);jt(this,"setOpen",(n,r)=>{var p,g;const i=r.reason===rr,s=r.reason===Jo&&r.event.detail===0,l=!n&&(r.reason===Fd||r.reason==null);if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(g=(p=this.context).onOpenChange)==null||g.call(p,n,r),r.isCanceled)return;const c={open:n,nativeEvent:r.event,reason:r.reason,nested:this.state.nested,triggerElement:r.trigger},f=this.state.floatingRootContext.context.events;f==null||f.emit("openchange",c);const d=()=>{var E;const m={open:n,openChangeReason:r.reason},y=((E=r.trigger)==null?void 0:E.id)??null;(y||n)&&(m.activeTriggerId=y,m.activeTriggerElement=r.trigger??null),this.update(m)};i?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(h4,()=>{this.set("stickIfOpen",!1)}),Dn.flushSync(d)):d(),s||l?this.set("instantType",s?"click":"dismiss"):r.reason===Ti?this.set("instantType","focus"):this.set("instantType",void 0)});jt(this,"disposeEffect",()=>this.context.stickIfOpenTimeout.disposeEffect())}static useStore(n,r){const i=Cr(()=>n??new vw(r)).current;return oE(i.disposeEffect),i}}function $A({props:e}){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:s,modal:l=!1,handle:c,triggerId:f,defaultTriggerId:d=null}=e,p=vw.useStore(c==null?void 0:c.store,{open:n??r,modal:l,activeTriggerId:f!==void 0?f:d});p.useControlledProp("open",n,r),p.useControlledProp("activeTriggerId",f,d);const g=p.useState("open"),m=p.useState("positionerElement"),y=p.useState("payload"),E=p.useState("openChangeReason");p.useContextCallback("onOpenChange",i),p.useContextCallback("onOpenChangeComplete",s);const{openMethod:b,triggerProps:x,reset:C}=o0(g);Im(p);const{forceUnmount:R}=Dm(g,p,()=>{p.update({stickIfOpen:!0,openChangeReason:null}),C()});r0(g&&l===!0&&E!==rr&&b!=="touch",m),S.useEffect(()=>{g||p.context.stickIfOpenTimeout.clear()},[p,g]);const _=S.useCallback(V=>{const P=st(V);return P.preventUnmountOnClose=()=>{p.set("preventUnmountingOnClose",!0)},P},[p]),O=S.useCallback(()=>{p.setOpen(!1,_(Tm))},[p,_]);S.useImperativeHandle(e.actionsRef,()=>({unmount:R,close:O}),[R,O]);const T=km({popupStore:p,onOpenChange:p.setOpen}),M=zd(T,{outsidePressEvent:{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),A=CE(T),{getReferenceProps:D,getFloatingProps:L,getTriggerProps:F}=Ll([M,A]),B=S.useMemo(()=>D(x),[D,x]),j=S.useMemo(()=>F(x),[F,x]),z=S.useMemo(()=>L(),[L]);p.useSyncedValues({modal:l,openMethod:b,activeTriggerProps:B,inactiveTriggerProps:j,popupProps:z,floatingRootContext:T,nested:Pi()!=null});const G=S.useMemo(()=>({store:p}),[p]);return Re.jsx(aD.Provider,{value:G,children:typeof t=="function"?t({payload:y}):t})}function pre(e){return Fl(!0)?Re.jsx($A,{props:e}):Re.jsx(d4,{children:Re.jsx($A,{props:e})})}const zK=300,gre=S.forwardRef(function(t,n){const{render:r,className:i,disabled:s=!1,nativeButton:l=!0,handle:c,payload:f,openOnHover:d=!1,delay:p=zK,closeDelay:g=0,id:m,...y}=t,E=Fl(!0),b=(c==null?void 0:c.store)??(E==null?void 0:E.store);if(!b)throw new Error(Zt(74));const x=eo(m),C=b.useState("isTriggerActive",x),R=b.useState("floatingRootContext"),_=b.useState("isOpenedByTrigger",x),O=S.useRef(null),{registerTrigger:T,isMountedByThisTrigger:M}=wE(x,O,b,{payload:f,disabled:s,openOnHover:d,closeDelay:g}),A=b.useState("openChangeReason"),D=b.useState("stickIfOpen"),L=b.useState("openMethod"),F=xE(R,{enabled:R!=null&&d&&(L!=="touch"||A!==Jo),mouseOnly:!0,move:!1,handleClose:_E(),restMs:p,delay:{close:g},triggerElementRef:O,isActiveTrigger:C}),B=yE(R,{enabled:R!=null,stickIfOpen:D}),j=Ll([B]),z=b.useState("triggerProps",M),G=S.useMemo(()=>({disabled:s,open:_}),[s,_]),{getButtonProps:V,buttonRef:P}=Ni({disabled:s,native:l}),q=S.useMemo(()=>({open($){return $&&A===Jo?Ug.open($):AE.open($)}}),[A]),U=Ot("button",t,{state:G,ref:[P,n,T,O],props:[j.getReferenceProps(),F,z,{[p4]:"",id:x},y,V],stateAttributesMapping:q}),K=S.useRef(null),Z=Ue($=>{Dn.flushSync(()=>{b.setOpen(!1,st(Ti,$.nativeEvent,$.currentTarget))});const X=a4(K.current);X==null||X.focus()}),k=Ue($=>{var te;const X=b.select("positionerElement");if(X&&dl($,X))(te=b.context.beforeContentFocusGuardRef.current)==null||te.focus();else{Dn.flushSync(()=>{b.setOpen(!1,st(Ti,$.nativeEvent,$.currentTarget))});let ue=s4(O.current);for(;ue!==null&&Tt(X,ue)||ue!=null&&ue.hasAttribute("aria-hidden");){const ne=ue;if(ue=_m(ue),ue===ne)break}ue==null||ue.focus()}});return C?Re.jsxs(S.Fragment,{children:[Re.jsx(ga,{ref:K,onFocus:Z}),Re.jsx(S.Fragment,{children:U},x),Re.jsx(ga,{ref:b.context.triggerFocusTargetRef,onFocus:k})]}):Re.jsx(S.Fragment,{children:U},x)}),lD=S.createContext(void 0);function BK(){const e=S.useContext(lD);if(e===void 0)throw new Error(Zt(45));return e}const mre=S.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:s}=Fl();return s.useState("mounted")||r?Re.jsx(lD.Provider,{value:r,children:Re.jsx(Am,{ref:n,...i,renderGuards:!1})}):null}),uD=S.createContext(void 0);function HK(){const e=S.useContext(uD);if(!e)throw new Error(Zt(46));return e}const vre=S.forwardRef(function(t,n){const{render:r,className:i,anchor:s,positionMethod:l="absolute",side:c="bottom",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:y=5,sticky:E=!1,disableAnchorTracking:b=!1,collisionAvoidance:x=pE,...C}=t,{store:R}=Fl(),_=BK(),O=hE(),T=R.useState("floatingRootContext"),M=R.useState("mounted"),A=R.useState("open"),D=R.useState("openChangeReason"),L=R.useState("activeTriggerElement"),F=R.useState("modal"),B=R.useState("positionerElement"),j=R.useState("instantType"),z=R.useState("transitionStatus"),G=S.useRef(null),V=EE(B,!1,!1),P=Fm({anchor:s,floatingRootContext:T,positionMethod:l,mounted:M,side:c,sideOffset:d,align:f,alignOffset:p,arrowPadding:y,collisionBoundary:g,collisionPadding:m,sticky:E,disableAnchorTracking:b,keepMounted:_,nodeId:O,collisionAvoidance:x,adaptiveOrigin:Y4}),q=S.useMemo(()=>{const X={};return A||(X.pointerEvents="none"),{role:"presentation",hidden:!M,style:{...P.positionerStyles,...X}}},[A,M,P.positionerStyles]),U=S.useMemo(()=>({props:q,...P}),[q,P]),K=T==null?void 0:T.select("domReferenceElement");je(()=>{const X=K,te=G.current;if(X&&(G.current=X),te&&X&&X!==te){R.set("instantType",void 0);const ue=new AbortController;return V(()=>{R.set("instantType","trigger-change")},ue.signal),()=>{ue.abort()}}},[K,V,R]);const Z=S.useMemo(()=>({open:A,side:U.side,align:U.align,anchorHidden:U.anchorHidden,instant:j}),[A,U.side,U.align,U.anchorHidden,j]),k=S.useCallback(X=>{R.set("positionerElement",X)},[R]),$=Ot("div",t,{state:Z,props:[U.props,_c(z),C],ref:[n,k],stateAttributesMapping:jo});return Re.jsxs(uD.Provider,{value:U,children:[M&&F===!0&&D!==rr&&Re.jsx(n0,{ref:R.context.internalBackdropRef,inert:zm(!A),cutout:L}),Re.jsx(f4,{id:O,children:$})]})}),UK={...jo,...ki},yre=S.forwardRef(function(t,n){const{className:r,render:i,initialFocus:s,finalFocus:l,...c}=t,{store:f}=Fl(),d=HK(),p=ih(!0)!=null,g=Hd(),m=f.useState("open"),y=f.useState("openMethod"),E=f.useState("instantType"),b=f.useState("transitionStatus"),x=f.useState("popupProps"),C=f.useState("titleElementId"),R=f.useState("descriptionElementId"),_=f.useState("modal"),O=f.useState("mounted"),T=f.useState("openChangeReason"),M=f.useState("popupElement"),A=f.useState("payload"),D=f.useState("positionerElement"),L=f.useState("activeTriggerElement"),F=f.useState("floatingRootContext");si({open:m,ref:f.context.popupRef,onComplete(){var $,X;m&&((X=($=f.context).onOpenChangeComplete)==null||X.call($,!0))}});const B=f.useState("disabled"),j=f.useState("openOnHover"),z=f.useState("closeDelay");RE(F,{enabled:j&&!B,closeDelay:z});function G($){return $==="touch"?f.context.popupRef.current:!0}const V=s===void 0?G:s,P=S.useMemo(()=>({open:m,side:d.side,align:d.align,instant:E,transitionStatus:b}),[m,d.side,d.align,E,b]),q=S.useCallback($=>{f.set("popupElement",$)},[f]);function U(){F.context.events.emit("measure-layout")}function K($,X){F.context.events.emit("measure-layout-complete",{previousDimensions:$,nextDimensions:X})}const Z=S.useCallback(()=>f.context.triggerElements.size>1,[f]);X4({popupElement:M,positionerElement:D,mounted:O,content:A,enabled:Z,onMeasureLayout:U,onMeasureLayoutComplete:K,side:d.side,direction:g});const k=Ot("div",t,{state:P,ref:[n,f.context.popupRef,q],props:[x,{"aria-labelledby":C,"aria-describedby":R,onKeyDown($){p&&t0.has($.key)&&$.stopPropagation()}},_c(b),c],stateAttributesMapping:UK});return Re.jsx(Om,{context:F,openInteractionType:y,modal:_==="trap-focus",disabled:!O||T===rr,initialFocus:V,returnFocus:l,restoreFocus:"popup",previousFocusableElement:mn(L)?L:void 0,nextFocusableElement:f.context.triggerFocusTargetRef,beforeContentFocusGuardRef:f.context.beforeContentFocusGuardRef,children:k})}),bre=S.forwardRef(function(t,n){const{render:r,className:i,...s}=t,{store:l}=Fl(),c=eo(s.id);return je(()=>(l.set("titleElementId",c),()=>{l.set("titleElementId",void 0)}),[l,c]),Ot("h2",t,{ref:n,props:[{id:c},s]})}),Sre=S.forwardRef(function(t,n){const{render:r,className:i,...s}=t,{store:l}=Fl(),c=eo(s.id);return je(()=>(l.set("descriptionElementId",c),()=>{l.set("descriptionElementId",void 0)}),[l,c]),Ot("p",t,{ref:n,props:[{id:c},s]})});var Cu={},z1={exports:{}},B1,qA;function VK(){if(qA)return B1;qA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return B1=e,B1}var H1,GA;function jK(){if(GA)return H1;GA=1;var e=VK();function t(){}function n(){}return n.resetWarningCache=t,H1=function(){function r(l,c,f,d,p,g){if(g!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},H1}var YA;function cD(){return YA||(YA=1,z1.exports=jK()()),z1.exports}var U1,KA;function fD(){return KA||(KA=1,U1={L:1,M:0,Q:3,H:2}),U1}var V1,XA;function dD(){return XA||(XA=1,V1={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),V1}var j1,WA;function $K(){if(WA)return j1;WA=1;var e=dD();function t(n){this.mode=e.MODE_8BIT_BYTE,this.data=n}return t.prototype={getLength:function(n){return this.data.length},write:function(n){for(var r=0;r<this.data.length;r++)n.put(this.data.charCodeAt(r),8)}},j1=t,j1}var $1,QA;function qK(){if(QA)return $1;QA=1;var e=fD();function t(n,r){this.totalCount=n,this.dataCount=r}return t.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t.getRSBlocks=function(n,r){var i=t.getRsBlockTable(n,r);if(i==null)throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+r);for(var s=i.length/3,l=new Array,c=0;c<s;c++)for(var f=i[c*3+0],d=i[c*3+1],p=i[c*3+2],g=0;g<f;g++)l.push(new t(d,p));return l},t.getRsBlockTable=function(n,r){switch(r){case e.L:return t.RS_BLOCK_TABLE[(n-1)*4+0];case e.M:return t.RS_BLOCK_TABLE[(n-1)*4+1];case e.Q:return t.RS_BLOCK_TABLE[(n-1)*4+2];case e.H:return t.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},$1=t,$1}var q1,JA;function GK(){if(JA)return q1;JA=1;function e(){this.buffer=new Array,this.length=0}return e.prototype={get:function(t){var n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)==1},put:function(t,n){for(var r=0;r<n;r++)this.putBit((t>>>n-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},q1=e,q1}var G1,ZA;function hD(){if(ZA)return G1;ZA=1;for(var e={glog:function(n){if(n<1)throw new Error("glog("+n+")");return e.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return e.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},t=0;t<8;t++)e.EXP_TABLE[t]=1<<t;for(var t=8;t<256;t++)e.EXP_TABLE[t]=e.EXP_TABLE[t-4]^e.EXP_TABLE[t-5]^e.EXP_TABLE[t-6]^e.EXP_TABLE[t-8];for(var t=0;t<255;t++)e.LOG_TABLE[e.EXP_TABLE[t]]=t;return G1=e,G1}var Y1,eO;function pD(){if(eO)return Y1;eO=1;var e=hD();function t(n,r){if(n.length==null)throw new Error(n.length+"/"+r);for(var i=0;i<n.length&&n[i]==0;)i++;this.num=new Array(n.length-i+r);for(var s=0;s<n.length-i;s++)this.num[s]=n[s+i]}return t.prototype={get:function(n){return this.num[n]},getLength:function(){return this.num.length},multiply:function(n){for(var r=new Array(this.getLength()+n.getLength()-1),i=0;i<this.getLength();i++)for(var s=0;s<n.getLength();s++)r[i+s]^=e.gexp(e.glog(this.get(i))+e.glog(n.get(s)));return new t(r,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var r=e.glog(this.get(0))-e.glog(n.get(0)),i=new Array(this.getLength()),s=0;s<this.getLength();s++)i[s]=this.get(s);for(var s=0;s<n.getLength();s++)i[s]^=e.gexp(e.glog(n.get(s))+r);return new t(i,0).mod(n)}},Y1=t,Y1}var K1,tO;function YK(){if(tO)return K1;tO=1;var e=dD(),t=pD(),n=hD(),r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(s){for(var l=s<<10;i.getBCHDigit(l)-i.getBCHDigit(i.G15)>=0;)l^=i.G15<<i.getBCHDigit(l)-i.getBCHDigit(i.G15);return(s<<10|l)^i.G15_MASK},getBCHTypeNumber:function(s){for(var l=s<<12;i.getBCHDigit(l)-i.getBCHDigit(i.G18)>=0;)l^=i.G18<<i.getBCHDigit(l)-i.getBCHDigit(i.G18);return s<<12|l},getBCHDigit:function(s){for(var l=0;s!=0;)l++,s>>>=1;return l},getPatternPosition:function(s){return i.PATTERN_POSITION_TABLE[s-1]},getMask:function(s,l,c){switch(s){case r.PATTERN000:return(l+c)%2==0;case r.PATTERN001:return l%2==0;case r.PATTERN010:return c%3==0;case r.PATTERN011:return(l+c)%3==0;case r.PATTERN100:return(Math.floor(l/2)+Math.floor(c/3))%2==0;case r.PATTERN101:return l*c%2+l*c%3==0;case r.PATTERN110:return(l*c%2+l*c%3)%2==0;case r.PATTERN111:return(l*c%3+(l+c)%2)%2==0;default:throw new Error("bad maskPattern:"+s)}},getErrorCorrectPolynomial:function(s){for(var l=new t([1],0),c=0;c<s;c++)l=l.multiply(new t([1,n.gexp(c)],0));return l},getLengthInBits:function(s,l){if(1<=l&&l<10)switch(s){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+s)}else if(l<27)switch(s){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+s)}else if(l<41)switch(s){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+s)}else throw new Error("type:"+l)},getLostPoint:function(s){for(var l=s.getModuleCount(),c=0,f=0;f<l;f++)for(var d=0;d<l;d++){for(var p=0,g=s.isDark(f,d),m=-1;m<=1;m++)if(!(f+m<0||l<=f+m))for(var y=-1;y<=1;y++)d+y<0||l<=d+y||m==0&&y==0||g==s.isDark(f+m,d+y)&&p++;p>5&&(c+=3+p-5)}for(var f=0;f<l-1;f++)for(var d=0;d<l-1;d++){var E=0;s.isDark(f,d)&&E++,s.isDark(f+1,d)&&E++,s.isDark(f,d+1)&&E++,s.isDark(f+1,d+1)&&E++,(E==0||E==4)&&(c+=3)}for(var f=0;f<l;f++)for(var d=0;d<l-6;d++)s.isDark(f,d)&&!s.isDark(f,d+1)&&s.isDark(f,d+2)&&s.isDark(f,d+3)&&s.isDark(f,d+4)&&!s.isDark(f,d+5)&&s.isDark(f,d+6)&&(c+=40);for(var d=0;d<l;d++)for(var f=0;f<l-6;f++)s.isDark(f,d)&&!s.isDark(f+1,d)&&s.isDark(f+2,d)&&s.isDark(f+3,d)&&s.isDark(f+4,d)&&!s.isDark(f+5,d)&&s.isDark(f+6,d)&&(c+=40);for(var b=0,d=0;d<l;d++)for(var f=0;f<l;f++)s.isDark(f,d)&&b++;var x=Math.abs(100*b/l/l-50)/5;return c+=x*10,c}};return K1=i,K1}var X1,nO;function KK(){if(nO)return X1;nO=1;var e=$K(),t=qK(),n=GK(),r=YK(),i=pD();function s(c,f){this.typeNumber=c,this.errorCorrectLevel=f,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var l=s.prototype;return l.addData=function(c){var f=new e(c);this.dataList.push(f),this.dataCache=null},l.isDark=function(c,f){if(c<0||this.moduleCount<=c||f<0||this.moduleCount<=f)throw new Error(c+","+f);return this.modules[c][f]},l.getModuleCount=function(){return this.moduleCount},l.make=function(){if(this.typeNumber<1){var c=1;for(c=1;c<40;c++){for(var f=t.getRSBlocks(c,this.errorCorrectLevel),d=new n,p=0,g=0;g<f.length;g++)p+=f[g].dataCount;for(var g=0;g<this.dataList.length;g++){var m=this.dataList[g];d.put(m.mode,4),d.put(m.getLength(),r.getLengthInBits(m.mode,c)),m.write(d)}if(d.getLengthInBits()<=p*8)break}this.typeNumber=c}this.makeImpl(!1,this.getBestMaskPattern())},l.makeImpl=function(c,f){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var d=0;d<this.moduleCount;d++){this.modules[d]=new Array(this.moduleCount);for(var p=0;p<this.moduleCount;p++)this.modules[d][p]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(c,f),this.typeNumber>=7&&this.setupTypeNumber(c),this.dataCache==null&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,f)},l.setupPositionProbePattern=function(c,f){for(var d=-1;d<=7;d++)if(!(c+d<=-1||this.moduleCount<=c+d))for(var p=-1;p<=7;p++)f+p<=-1||this.moduleCount<=f+p||(0<=d&&d<=6&&(p==0||p==6)||0<=p&&p<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=p&&p<=4?this.modules[c+d][f+p]=!0:this.modules[c+d][f+p]=!1)},l.getBestMaskPattern=function(){for(var c=0,f=0,d=0;d<8;d++){this.makeImpl(!0,d);var p=r.getLostPoint(this);(d==0||c>p)&&(c=p,f=d)}return f},l.createMovieClip=function(c,f,d){var p=c.createEmptyMovieClip(f,d),g=1;this.make();for(var m=0;m<this.modules.length;m++)for(var y=m*g,E=0;E<this.modules[m].length;E++){var b=E*g,x=this.modules[m][E];x&&(p.beginFill(0,100),p.moveTo(b,y),p.lineTo(b+g,y),p.lineTo(b+g,y+g),p.lineTo(b,y+g),p.endFill())}return p},l.setupTimingPattern=function(){for(var c=8;c<this.moduleCount-8;c++)this.modules[c][6]==null&&(this.modules[c][6]=c%2==0);for(var f=8;f<this.moduleCount-8;f++)this.modules[6][f]==null&&(this.modules[6][f]=f%2==0)},l.setupPositionAdjustPattern=function(){for(var c=r.getPatternPosition(this.typeNumber),f=0;f<c.length;f++)for(var d=0;d<c.length;d++){var p=c[f],g=c[d];if(this.modules[p][g]==null)for(var m=-2;m<=2;m++)for(var y=-2;y<=2;y++)m==-2||m==2||y==-2||y==2||m==0&&y==0?this.modules[p+m][g+y]=!0:this.modules[p+m][g+y]=!1}},l.setupTypeNumber=function(c){for(var f=r.getBCHTypeNumber(this.typeNumber),d=0;d<18;d++){var p=!c&&(f>>d&1)==1;this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=p}for(var d=0;d<18;d++){var p=!c&&(f>>d&1)==1;this.modules[d%3+this.moduleCount-8-3][Math.floor(d/3)]=p}},l.setupTypeInfo=function(c,f){for(var d=this.errorCorrectLevel<<3|f,p=r.getBCHTypeInfo(d),g=0;g<15;g++){var m=!c&&(p>>g&1)==1;g<6?this.modules[g][8]=m:g<8?this.modules[g+1][8]=m:this.modules[this.moduleCount-15+g][8]=m}for(var g=0;g<15;g++){var m=!c&&(p>>g&1)==1;g<8?this.modules[8][this.moduleCount-g-1]=m:g<9?this.modules[8][15-g-1+1]=m:this.modules[8][15-g-1]=m}this.modules[this.moduleCount-8][8]=!c},l.mapData=function(c,f){for(var d=-1,p=this.moduleCount-1,g=7,m=0,y=this.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(var E=0;E<2;E++)if(this.modules[p][y-E]==null){var b=!1;m<c.length&&(b=(c[m]>>>g&1)==1);var x=r.getMask(f,p,y-E);x&&(b=!b),this.modules[p][y-E]=b,g--,g==-1&&(m++,g=7)}if(p+=d,p<0||this.moduleCount<=p){p-=d,d=-d;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(c,f,d){for(var p=t.getRSBlocks(c,f),g=new n,m=0;m<d.length;m++){var y=d[m];g.put(y.mode,4),g.put(y.getLength(),r.getLengthInBits(y.mode,c)),y.write(g)}for(var E=0,m=0;m<p.length;m++)E+=p[m].dataCount;if(g.getLengthInBits()>E*8)throw new Error("code length overflow. ("+g.getLengthInBits()+">"+E*8+")");for(g.getLengthInBits()+4<=E*8&&g.put(0,4);g.getLengthInBits()%8!=0;)g.putBit(!1);for(;!(g.getLengthInBits()>=E*8||(g.put(s.PAD0,8),g.getLengthInBits()>=E*8));)g.put(s.PAD1,8);return s.createBytes(g,p)},s.createBytes=function(c,f){for(var d=0,p=0,g=0,m=new Array(f.length),y=new Array(f.length),E=0;E<f.length;E++){var b=f[E].dataCount,x=f[E].totalCount-b;p=Math.max(p,b),g=Math.max(g,x),m[E]=new Array(b);for(var C=0;C<m[E].length;C++)m[E][C]=255&c.buffer[C+d];d+=b;var R=r.getErrorCorrectPolynomial(x),_=new i(m[E],R.getLength()-1),O=_.mod(R);y[E]=new Array(R.getLength()-1);for(var C=0;C<y[E].length;C++){var T=C+O.getLength()-y[E].length;y[E][C]=T>=0?O.get(T):0}}for(var M=0,C=0;C<f.length;C++)M+=f[C].totalCount;for(var A=new Array(M),D=0,C=0;C<p;C++)for(var E=0;E<f.length;E++)C<m[E].length&&(A[D++]=m[E][C]);for(var C=0;C<g;C++)for(var E=0;E<f.length;E++)C<y[E].length&&(A[D++]=y[E][C]);return A},X1=s,X1}var Qp={},rO;function XK(){if(rO)return Qp;rO=1,Object.defineProperty(Qp,"__esModule",{value:!0});var e=Object.assign||function(d){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(d[m]=g[m])}return d},t=cD(),n=s(t),r=Es(),i=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,p){var g={};for(var m in d)p.indexOf(m)>=0||Object.prototype.hasOwnProperty.call(d,m)&&(g[m]=d[m]);return g}var c={bgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,bgD:n.default.string.isRequired,fgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,fgD:n.default.string.isRequired,size:n.default.number.isRequired,title:n.default.string,viewBoxSize:n.default.number.isRequired,xmlns:n.default.string},f=(0,r.forwardRef)(function(d,p){var g=d.bgColor,m=d.bgD,y=d.fgD,E=d.fgColor,b=d.size,x=d.title,C=d.viewBoxSize,R=d.xmlns,_=R===void 0?"http://www.w3.org/2000/svg":R,O=l(d,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return i.default.createElement("svg",e({},O,{height:b,ref:p,viewBox:"0 0 "+C+" "+C,width:b,xmlns:_}),x?i.default.createElement("title",null,x):null,i.default.createElement("path",{d:m,fill:g}),i.default.createElement("path",{d:y,fill:E}))});return f.displayName="QRCodeSvg",f.propTypes=c,Qp.default=f,Qp}var oO;function WK(){if(oO)return Cu;oO=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.QRCode=void 0;var e=Object.assign||function(b){for(var x=1;x<arguments.length;x++){var C=arguments[x];for(var R in C)Object.prototype.hasOwnProperty.call(C,R)&&(b[R]=C[R])}return b},t=cD(),n=g(t),r=fD(),i=g(r),s=KK(),l=g(s),c=Es(),f=g(c),d=XK(),p=g(d);function g(b){return b&&b.__esModule?b:{default:b}}function m(b,x){var C={};for(var R in b)x.indexOf(R)>=0||Object.prototype.hasOwnProperty.call(b,R)&&(C[R]=b[R]);return C}var y={bgColor:n.default.oneOfType([n.default.object,n.default.string]),fgColor:n.default.oneOfType([n.default.object,n.default.string]),level:n.default.string,size:n.default.number,value:n.default.string.isRequired},E=(0,c.forwardRef)(function(b,x){var C=b.bgColor,R=C===void 0?"#FFFFFF":C,_=b.fgColor,O=_===void 0?"#000000":_,T=b.level,M=T===void 0?"L":T,A=b.size,D=A===void 0?256:A,L=b.value,F=m(b,["bgColor","fgColor","level","size","value"]),B=new l.default(-1,i.default[M]);B.addData(L),B.make();var j=B.modules;return f.default.createElement(p.default,e({},F,{bgColor:R,bgD:j.map(function(z,G){return z.map(function(V,P){return V?"":"M "+P+" "+G+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:O,fgD:j.map(function(z,G){return z.map(function(V,P){return V?"M "+P+" "+G+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:x,size:D,viewBoxSize:j.length}))});return Cu.QRCode=E,E.displayName="QRCode",E.propTypes=y,Cu.default=E,Cu}var QK=WK();const Ere=Ss(QK);let iO=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const IS={checked(e){return e?{[iO.checked]:""}:{[iO.unchecked]:""}},...ki,...Hc},gD="data-composite-item-active";function JK(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=sw(),{ref:i,index:s}=uw(e),l=n===s,c=S.useRef(null),f=bo(i,c);return{compositeProps:S.useMemo(()=>({tabIndex:l?0:-1,onFocus(){r(s)},onMouseMove(){const p=c.current;if(!t||!p)return;const g=p.hasAttribute("disabled")||p.ariaDisabled==="true";!l&&!g&&p.focus()}}),[l,r,s,t]),compositeRef:f,index:s}}function p0(e){const{render:t,className:n,state:r=Tn,props:i=pa,refs:s=pa,metadata:l,stateAttributesMapping:c,tag:f="div",...d}=e,{compositeProps:p,compositeRef:g}=JK({metadata:l});return Ot(f,e,{state:r,ref:[...s,g],props:[p,...i,d],stateAttributesMapping:c})}const mD=S.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:Kn,onValueChange:Kn,touched:!1,setTouched:Kn,registerControlRef:Kn});function ZK(){return S.useContext(mD)}const vD=S.createContext(void 0);function eX(){const e=S.useContext(vD);if(e===void 0)throw new Error(Zt(52));return e}const wre=S.forwardRef(function(t,n){const{render:r,className:i,disabled:s=!1,readOnly:l=!1,required:c=!1,value:f,inputRef:d,nativeButton:p=!1,id:g,...m}=t,{disabled:y,readOnly:E,required:b,checkedValue:x,setCheckedValue:C,touched:R,setTouched:_,validation:O,registerControlRef:T}=ZK(),{setDirty:M,validityData:A,setTouched:D,setFilled:L,state:F,disabled:B}=Oa(),j=M3(),{labelId:z,getDescriptionProps:G}=Nl(),V=B||j.disabled||y||s,P=E||l,q=b||c,U=x===f,K=S.useRef(null),Z=S.useRef(null),k=bo(d,Z);je(()=>{var Ie;(Ie=Z.current)!=null&&Ie.checked&&L(!0)},[L]);const $=eo(),X=aw({id:g,implicit:!1,controlRef:K}),te={role:"radio","aria-checked":U,"aria-required":q||void 0,"aria-disabled":V||void 0,"aria-readonly":P||void 0,"aria-labelledby":z,[gD]:U?"":void 0,id:$,disabled:V,onKeyDown(Ie){Ie.key==="Enter"&&Ie.preventDefault()},onClick(Ie){var Me;Ie.defaultPrevented||V||P||(Ie.preventDefault(),(Me=Z.current)==null||Me.click())},onFocus(Ie){var Me;Ie.defaultPrevented||V||P||!R||((Me=Z.current)==null||Me.click(),_(!1))}},{getButtonProps:ue,buttonRef:ne}=Ni({disabled:V,native:p}),ce=S.useMemo(()=>({type:"radio",ref:k,id:X,tabIndex:-1,style:Dl,"aria-hidden":!0,disabled:V,checked:U,required:q,readOnly:P,onChange(Ie){if(Ie.nativeEvent.defaultPrevented||V||P||f===void 0)return;const Me=st(Rs,Ie.nativeEvent);Me.isCanceled||(D(!0),M(f!==A.initialValue),L(!0),C(f,Me))},onFocus(){var Ie;(Ie=K.current)==null||Ie.focus()}}),[U,V,X,k,P,q,C,M,D,L,A.initialValue,f]),Q=S.useMemo(()=>({...F,required:q,disabled:V,readOnly:P,checked:U}),[F,V,P,U,q]),ve=S.useMemo(()=>Q,[Q]),Ee=C!==Kn,le=[n,T,K,ne],me=[te,G,(O==null?void 0:O.getValidationProps)??Tn,m,ue],Ce=Ot("span",t,{enabled:!Ee,state:Q,ref:le,props:me,stateAttributesMapping:IS});return Re.jsxs(vD.Provider,{value:ve,children:[Ee?Re.jsx(p0,{tag:"span",render:r,className:i,state:Q,refs:le,props:me,stateAttributesMapping:IS}):Ce,Re.jsx("input",{...ce})]})}),Rre=S.forwardRef(function(t,n){const{render:r,className:i,keepMounted:s=!1,...l}=t,c=eX(),f=c.checked,{transitionStatus:d,setMounted:p}=xc(f),g=S.useMemo(()=>({...c,transitionStatus:d}),[c,d]),m=S.useRef(null),y=s||f,E=Ot("span",t,{enabled:y,ref:[n,m],state:g,props:l,stateAttributesMapping:IS});return si({open:f,ref:m,onComplete(){f||p(!1)}}),y?E:null});function tX(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const nX=[];function rX(e){const{itemSizes:t,cols:n=1,loopFocus:r=!0,dense:i=!1,orientation:s="both",direction:l,highlightedIndex:c,onHighlightedIndexChange:f,rootRef:d,enableHomeAndEndKeys:p=!1,stopEventPropagation:g=!1,disabledIndices:m,modifierKeys:y=nX}=e,[E,b]=S.useState(0),x=n>1,C=S.useRef(null),R=bo(C,d),_=S.useRef([]),O=S.useRef(!1),T=c??E,M=Ue((L,F=!1)=>{if((f??b)(L),F){const B=_.current[L];SA(C.current,B,l,s)}}),A=Ue(L=>{if(L.size===0||O.current)return;O.current=!0;const F=Array.from(L.keys()),B=F.find(z=>z==null?void 0:z.hasAttribute(gD))??null,j=B?F.indexOf(B):-1;j!==-1&&M(j),SA(C.current,B,l,s)}),D=S.useMemo(()=>({"aria-orientation":s==="both"?void 0:s,ref:R,onFocus(L){!C.current||!bA(L.target)||L.target.setSelectionRange(0,L.target.value.length??0)},onKeyDown(L){const F=p?lY:T3;if(!F.has(L.key)||oX(L,y)||!C.current)return;const j=l==="rtl",z=j?yd:Hu,G={horizontal:z,vertical:Za,both:z}[s],V=j?Hu:yd,P={horizontal:V,vertical:Bu,both:V}[s];if(bA(L.target)&&!tX(L.target)){const X=L.target.selectionStart,te=L.target.selectionEnd,ue=L.target.value??"";if(X==null||L.shiftKey||X!==te||L.key!==P&&X<ue.length||L.key!==G&&X>0)return}let q=T;const U=ug(_,m),K=Cb(_,m);if(x){const X=t||Array.from({length:_.current.length},()=>({width:1,height:1})),te=YM(X,n,i),ue=te.findIndex(ce=>ce!=null&&!fa(_,ce,m)),ne=te.reduce((ce,Q,ve)=>Q!=null&&!fa(_,Q,m)?ve:ce,-1);q=te[GM({current:te.map(ce=>ce?_.current[ce]:null)},{event:L,orientation:s,loopFocus:r,cols:n,disabledIndices:XM([...m||_.current.map((ce,Q)=>fa(_,Q)?Q:void 0),void 0],te),minIndex:ue,maxIndex:ne,prevIndex:KM(T>K?U:T,X,te,n,L.key===Za?"bl":L.key===Hu?"tr":"tl"),rtl:j})]}const Z={horizontal:[z],vertical:[Za],both:[z,Za]}[s],k={horizontal:[V],vertical:[Bu],both:[V,Bu]}[s],$=x?F:{horizontal:p?sY:C3,vertical:p?aY:_3,both:F}[s];p&&(L.key===nh?q=U:L.key===rh&&(q=K)),q===T&&(Z.includes(L.key)||k.includes(L.key))&&(r&&q===K&&Z.includes(L.key)?q=U:r&&q===U&&k.includes(L.key)?q=K:q=mr(_,{startingIndex:q,decrement:k.includes(L.key),disabledIndices:m})),q!==T&&!Pu(_,q)&&(g&&L.stopPropagation(),$.has(L.key)&&L.preventDefault(),M(q,!0),queueMicrotask(()=>{var X;(X=_.current[q])==null||X.focus()}))}}),[n,i,l,m,_,p,T,x,t,r,R,y,M,s,g]);return S.useMemo(()=>({props:D,highlightedIndex:T,onHighlightedIndexChange:M,elementsRef:_,disabledIndices:m,onMapChange:A,relayKeyboardEvent:D.onKeyDown}),[D,T,M,_,m,A])}function oX(e,t){for(const n of dY.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function yw(e){const{render:t,className:n,refs:r=pa,props:i=pa,state:s=Tn,stateAttributesMapping:l,highlightedIndex:c,onHighlightedIndexChange:f,orientation:d,dense:p,itemSizes:g,loopFocus:m,cols:y,enableHomeAndEndKeys:E,onMapChange:b,stopEventPropagation:x=!0,rootRef:C,disabledIndices:R,modifierKeys:_,highlightItemOnHover:O=!1,tag:T="div",...M}=e,A=Hd(),{props:D,highlightedIndex:L,onHighlightedIndexChange:F,elementsRef:B,onMapChange:j,relayKeyboardEvent:z}=rX({itemSizes:g,cols:y,loopFocus:m,dense:p,orientation:d,highlightedIndex:c,onHighlightedIndexChange:f,rootRef:C,stopEventPropagation:x,enableHomeAndEndKeys:E,direction:A,disabledIndices:R,modifierKeys:_}),G=Ot(T,e,{state:s,ref:r,props:[D,...i,M],stateAttributesMapping:l}),V=S.useMemo(()=>({highlightedIndex:L,onHighlightedIndexChange:F,highlightItemOnHover:O,relayKeyboardEvent:z}),[L,F,O,z]);return Re.jsx(R3.Provider,{value:V,children:Re.jsx(lw,{elementsRef:B,onMapChange:P=>{b==null||b(P),j(P)},children:G})})}const iX=S.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});function sX(e=!1){const t=S.useContext(iX);if(!t&&!e)throw new Error(Zt(86));return t}const aX=[A3],xre=S.forwardRef(function(t,n){const{render:r,className:i,disabled:s,readOnly:l,required:c,onValueChange:f,value:d,defaultValue:p,name:g,inputRef:m,id:y,...E}=t,{setTouched:b,setFocused:x,shouldValidateOnChange:C,validationMode:R,name:_,disabled:O,state:T,validation:M,setDirty:A,setFilled:D,validityData:L}=Oa(),{labelId:F}=Nl(),{clearErrors:B}=oh(),j=sX(!0),z=O||s,G=_??g,V=eo(y),[P,q]=Tl({controlled:d,default:p,name:"RadioGroup",state:"value"}),U=Ue(f),K=Ue((me,Ce)=>{U(me,Ce),!Ce.isCanceled&&q(me)}),Z=S.useRef(null),k=Ue(me=>{Z.current==null&&me!=null&&(Z.current=me)});i0({id:V,commit:M.commit,value:P,controlRef:Z,name:G,getValue:()=>P??null}),s0(P,()=>{B(G),A(P!==L.initialValue),D(P!=null),C()?M.commit(P):M.commit(P,!0)});const[$,X]=S.useState(!1),te=Ue(me=>{Tt(me.currentTarget,me.relatedTarget)||(b(!0),x(!1),R==="onBlur"&&M.commit(P))}),ue=Ue(me=>{me.key.startsWith("Arrow")&&(b(!0),X(!0),x(!0))}),ne=S.useMemo(()=>P==null?"":typeof P=="string"?P:JSON.stringify(P),[P]),ce=bo(M.inputRef,m),Q=Ai({value:ne,ref:ce,id:V,name:ne?G:void 0,disabled:z,readOnly:l,required:c,"aria-labelledby":E["aria-labelledby"]??(j==null?void 0:j.legendId),"aria-hidden":!0,tabIndex:-1,style:Dl,onChange:Kn,onFocus(){var me;(me=Z.current)==null||me.focus()}},M.getInputValidationProps),ve=S.useMemo(()=>({...T,disabled:z??!1,required:c??!1,readOnly:l??!1}),[T,z,l,c]),Ee=S.useMemo(()=>({...T,checkedValue:P,disabled:z,validation:M,name:G,onValueChange:U,readOnly:l,registerControlRef:k,required:c,setCheckedValue:K,setTouched:X,touched:$}),[P,z,M,T,G,U,l,k,c,K,X,$]),le={role:"radiogroup","aria-required":c||void 0,"aria-disabled":z||void 0,"aria-readonly":l||void 0,"aria-labelledby":F,onFocus(){x(!0)},onBlur:te,onKeyDownCapture:ue};return Re.jsxs(mD.Provider,{value:Ee,children:[Re.jsx(yw,{render:r,className:i,state:ve,props:[le,M.getValidationProps,E],refs:[n],stateAttributesMapping:Hc,enableHomeAndEndKeys:!1,modifierKeys:aX}),Re.jsx("input",{...Q})]})});function lX(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var s;const l=f=>f===null?null:JSON.parse(f,void 0),c=(s=n.getItem(i))!=null?s:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const DS=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return DS(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return DS(r)(n)}}}},uX=(e,t)=>(n,r,i)=>{let s={storage:lX(()=>localStorage),partialize:b=>b,version:0,merge:(b,x)=>({...x,...b}),...t},l=!1;const c=new Set,f=new Set;let d=s.storage;if(!d)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...b)},r,i);const p=()=>{const b=s.partialize({...r()});return d.setItem(s.name,{state:b,version:s.version})},g=i.setState;i.setState=(b,x)=>(g(b,x),p());const m=e((...b)=>(n(...b),p()),r,i);i.getInitialState=()=>m;let y;const E=()=>{var b,x;if(!d)return;l=!1,c.forEach(R=>{var _;return R((_=r())!=null?_:m)});const C=((x=s.onRehydrateStorage)==null?void 0:x.call(s,(b=r())!=null?b:m))||void 0;return DS(d.getItem.bind(d))(s.name).then(R=>{if(R)if(typeof R.version=="number"&&R.version!==s.version){if(s.migrate){const _=s.migrate(R.state,R.version);return _ instanceof Promise?_.then(O=>[!0,O]):[!0,_]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,R.state];return[!1,void 0]}).then(R=>{var _;const[O,T]=R;if(y=s.merge(T,(_=r())!=null?_:m),n(y,!0),O)return p()}).then(()=>{C==null||C(y,void 0),y=r(),l=!0,f.forEach(R=>R(y))}).catch(R=>{C==null||C(void 0,R)})};return i.persist={setOptions:b=>{s={...s,...b},b.storage&&(d=b.storage)},clearStorage:()=>{d==null||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>E(),hasHydrated:()=>l,onHydrate:b=>(c.add(b),()=>{c.delete(b)}),onFinishHydration:b=>(f.add(b),()=>{f.delete(b)})},s.skipHydration||E(),y||m},Cre=uX;var sO=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},Ei=[],Lo=[],cX=typeof Uint8Array<"u"?Uint8Array:Array,bw=!1;function yD(){bw=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Ei[t]=e[t],Lo[e.charCodeAt(t)]=t;Lo[45]=62,Lo[95]=63}function fX(e){bw||yD();var t,n,r,i,s,l,c=e.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s=e[c-2]==="="?2:e[c-1]==="="?1:0,l=new cX(c*3/4-s),r=s>0?c-4:c;var f=0;for(t=0,n=0;t<r;t+=4,n+=3)i=Lo[e.charCodeAt(t)]<<18|Lo[e.charCodeAt(t+1)]<<12|Lo[e.charCodeAt(t+2)]<<6|Lo[e.charCodeAt(t+3)],l[f++]=i>>16&255,l[f++]=i>>8&255,l[f++]=i&255;return s===2?(i=Lo[e.charCodeAt(t)]<<2|Lo[e.charCodeAt(t+1)]>>4,l[f++]=i&255):s===1&&(i=Lo[e.charCodeAt(t)]<<10|Lo[e.charCodeAt(t+1)]<<4|Lo[e.charCodeAt(t+2)]>>2,l[f++]=i>>8&255,l[f++]=i&255),l}function dX(e){return Ei[e>>18&63]+Ei[e>>12&63]+Ei[e>>6&63]+Ei[e&63]}function hX(e,t,n){for(var r,i=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(dX(r));return i.join("")}function aO(e){bw||yD();for(var t,n=e.length,r=n%3,i="",s=[],l=16383,c=0,f=n-r;c<f;c+=l)s.push(hX(e,c,c+l>f?f:c+l));return r===1?(t=e[n-1],i+=Ei[t>>2],i+=Ei[t<<4&63],i+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],i+=Ei[t>>10],i+=Ei[t>>4&63],i+=Ei[t<<2&63],i+="="),s.push(i),s.join("")}function g0(e,t,n,r,i){var s,l,c=i*8-r-1,f=(1<<c)-1,d=f>>1,p=-7,g=n?i-1:0,m=n?-1:1,y=e[t+g];for(g+=m,s=y&(1<<-p)-1,y>>=-p,p+=c;p>0;s=s*256+e[t+g],g+=m,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=r;p>0;l=l*256+e[t+g],g+=m,p-=8);if(s===0)s=1-d;else{if(s===f)return l?NaN:(y?-1:1)*(1/0);l=l+Math.pow(2,r),s=s-d}return(y?-1:1)*l*Math.pow(2,s-r)}function bD(e,t,n,r,i,s){var l,c,f,d=s*8-i-1,p=(1<<d)-1,g=p>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:s-1,E=r?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,l=p):(l=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-l))<1&&(l--,f*=2),l+g>=1?t+=m/f:t+=m*Math.pow(2,1-g),t*f>=2&&(l++,f/=2),l+g>=p?(c=0,l=p):l+g>=1?(c=(t*f-1)*Math.pow(2,i),l=l+g):(c=t*Math.pow(2,g-1)*Math.pow(2,i),l=0));i>=8;e[n+y]=c&255,y+=E,c/=256,i-=8);for(l=l<<i|c,d+=i;d>0;e[n+y]=l&255,y+=E,l/=256,d-=8);e[n+y-E]|=b*128}var pX={}.toString,SD=Array.isArray||function(e){return pX.call(e)=="[object Array]"},gX=50;Le.TYPED_ARRAY_SUPPORT=sO.TYPED_ARRAY_SUPPORT!==void 0?sO.TYPED_ARRAY_SUPPORT:!0;cm();function cm(){return Le.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fs(e,t){if(cm()<t)throw new RangeError("Invalid typed array length");return Le.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=Le.prototype):(e===null&&(e=new Le(t)),e.length=t),e}function Le(e,t,n){if(!Le.TYPED_ARRAY_SUPPORT&&!(this instanceof Le))return new Le(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Sw(this,e)}return ED(this,e,t,n)}Le.poolSize=8192;Le._augment=function(e){return e.__proto__=Le.prototype,e};function ED(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?yX(e,t,n,r):typeof t=="string"?vX(e,t,n):bX(e,t)}Le.from=function(e,t,n){return ED(null,e,t,n)};Le.TYPED_ARRAY_SUPPORT&&(Le.prototype.__proto__=Uint8Array.prototype,Le.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Le[Symbol.species]);function wD(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function mX(e,t,n,r){return wD(t),t<=0?fs(e,t):n!==void 0?typeof r=="string"?fs(e,t).fill(n,r):fs(e,t).fill(n):fs(e,t)}Le.alloc=function(e,t,n){return mX(null,e,t,n)};function Sw(e,t){if(wD(t),e=fs(e,t<0?0:Ew(t)|0),!Le.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}Le.allocUnsafe=function(e){return Sw(null,e)};Le.allocUnsafeSlow=function(e){return Sw(null,e)};function vX(e,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!Le.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=RD(t,n)|0;e=fs(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function LS(e,t){var n=t.length<0?0:Ew(t.length)|0;e=fs(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function yX(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?t=new Uint8Array(t):r===void 0?t=new Uint8Array(t,n):t=new Uint8Array(t,n,r),Le.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=Le.prototype):e=LS(e,t),e}function bX(e,t){if(Ii(t)){var n=Ew(t.length)|0;return e=fs(e,n),e.length===0||t.copy(e,0,0,n),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||zX(t.length)?fs(e,0):LS(e,t);if(t.type==="Buffer"&&SD(t.data))return LS(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Ew(e){if(e>=cm())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+cm().toString(16)+" bytes");return e|0}Le.isBuffer=Du;function Ii(e){return!!(e!=null&&e._isBuffer)}Le.compare=function(t,n){if(!Ii(t)||!Ii(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,i=n.length,s=0,l=Math.min(r,i);s<l;++s)if(t[s]!==n[s]){r=t[s],i=n[s];break}return r<i?-1:i<r?1:0};Le.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Le.concat=function(t,n){if(!SD(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Le.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var i=Le.allocUnsafe(n),s=0;for(r=0;r<t.length;++r){var l=t[r];if(!Ii(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(i,s),s+=l.length}return i};function RD(e,t){if(Ii(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return fm(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return MD(e).length;default:if(r)return fm(e).length;t=(""+t).toLowerCase(),r=!0}}Le.byteLength=RD;function SX(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return MX(this,t,n);case"utf8":case"utf-8":return _D(this,t,n);case"ascii":return AX(this,t,n);case"latin1":case"binary":return OX(this,t,n);case"base64":return _X(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return IX(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}Le.prototype._isBuffer=!0;function tl(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}Le.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)tl(this,n,n+1);return this};Le.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)tl(this,n,n+3),tl(this,n+1,n+2);return this};Le.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)tl(this,n,n+7),tl(this,n+1,n+6),tl(this,n+2,n+5),tl(this,n+3,n+4);return this};Le.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?_D(this,0,t):SX.apply(this,arguments)};Le.prototype.equals=function(t){if(!Ii(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Le.compare(this,t)===0};Le.prototype.inspect=function(){var t="",n=gX;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"};Le.prototype.compare=function(t,n,r,i,s){if(!Ii(t))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),n<0||r>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&n>=r)return 0;if(i>=s)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,s>>>=0,this===t)return 0;for(var l=s-i,c=r-n,f=Math.min(l,c),d=this.slice(i,s),p=t.slice(n,r),g=0;g<f;++g)if(d[g]!==p[g]){l=d[g],c=p[g];break}return l<c?-1:c<l?1:0};function xD(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t=="string"&&(t=Le.from(t,r)),Ii(t))return t.length===0?-1:lO(e,t,n,r,i);if(typeof t=="number")return t=t&255,Le.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):lO(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function lO(e,t,n,r,i){var s=1,l=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;s=2,l/=2,c/=2,n/=2}function f(y,E){return s===1?y[E]:y.readUInt16BE(E*s)}var d;if(i){var p=-1;for(d=n;d<l;d++)if(f(e,d)===f(t,p===-1?0:d-p)){if(p===-1&&(p=d),d-p+1===c)return p*s}else p!==-1&&(d-=d-p),p=-1}else for(n+c>l&&(n=l-c),d=n;d>=0;d--){for(var g=!0,m=0;m<c;m++)if(f(e,d+m)!==f(t,m)){g=!1;break}if(g)return d}return-1}Le.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1};Le.prototype.indexOf=function(t,n,r){return xD(this,t,n,r,!0)};Le.prototype.lastIndexOf=function(t,n,r){return xD(this,t,n,r,!1)};function EX(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var l=0;l<r;++l){var c=parseInt(t.substr(l*2,2),16);if(isNaN(c))return l;e[n+l]=c}return l}function wX(e,t,n,r){return y0(fm(t,e.length-n),e,n,r)}function CD(e,t,n,r){return y0(NX(t),e,n,r)}function RX(e,t,n,r){return CD(e,t,n,r)}function xX(e,t,n,r){return y0(MD(t),e,n,r)}function CX(e,t,n,r){return y0(FX(t,e.length-n),e,n,r)}Le.prototype.write=function(t,n,r,i){if(n===void 0)i="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")i=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,i===void 0&&(i="utf8")):(i=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-n;if((r===void 0||r>s)&&(r=s),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var l=!1;;)switch(i){case"hex":return EX(this,t,n,r);case"utf8":case"utf-8":return wX(this,t,n,r);case"ascii":return CD(this,t,n,r);case"latin1":case"binary":return RX(this,t,n,r);case"base64":return xX(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CX(this,t,n,r);default:if(l)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),l=!0}};Le.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _X(e,t,n){return t===0&&n===e.length?aO(e):aO(e.slice(t,n))}function _D(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var s=e[i],l=null,c=s>239?4:s>223?3:s>191?2:1;if(i+c<=n){var f,d,p,g;switch(c){case 1:s<128&&(l=s);break;case 2:f=e[i+1],(f&192)===128&&(g=(s&31)<<6|f&63,g>127&&(l=g));break;case 3:f=e[i+1],d=e[i+2],(f&192)===128&&(d&192)===128&&(g=(s&15)<<12|(f&63)<<6|d&63,g>2047&&(g<55296||g>57343)&&(l=g));break;case 4:f=e[i+1],d=e[i+2],p=e[i+3],(f&192)===128&&(d&192)===128&&(p&192)===128&&(g=(s&15)<<18|(f&63)<<12|(d&63)<<6|p&63,g>65535&&g<1114112&&(l=g))}}l===null?(l=65533,c=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|l&1023),r.push(l),i+=c}return TX(r)}var uO=4096;function TX(e){var t=e.length;if(t<=uO)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=uO));return n}function AX(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function OX(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function MX(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",s=t;s<n;++s)i+=kX(e[s]);return i}function IX(e,t,n){for(var r=e.slice(t,n),i="",s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+r[s+1]*256);return i}Le.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var i;if(Le.TYPED_ARRAY_SUPPORT)i=this.subarray(t,n),i.__proto__=Le.prototype;else{var s=n-t;i=new Le(s,void 0);for(var l=0;l<s;++l)i[l]=this[l+t]}return i};function ur(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}Le.prototype.readUIntLE=function(t,n,r){t=t|0,n=n|0,r||ur(t,n,this.length);for(var i=this[t],s=1,l=0;++l<n&&(s*=256);)i+=this[t+l]*s;return i};Le.prototype.readUIntBE=function(t,n,r){t=t|0,n=n|0,r||ur(t,n,this.length);for(var i=this[t+--n],s=1;n>0&&(s*=256);)i+=this[t+--n]*s;return i};Le.prototype.readUInt8=function(t,n){return n||ur(t,1,this.length),this[t]};Le.prototype.readUInt16LE=function(t,n){return n||ur(t,2,this.length),this[t]|this[t+1]<<8};Le.prototype.readUInt16BE=function(t,n){return n||ur(t,2,this.length),this[t]<<8|this[t+1]};Le.prototype.readUInt32LE=function(t,n){return n||ur(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Le.prototype.readUInt32BE=function(t,n){return n||ur(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Le.prototype.readIntLE=function(t,n,r){t=t|0,n=n|0,r||ur(t,n,this.length);for(var i=this[t],s=1,l=0;++l<n&&(s*=256);)i+=this[t+l]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*n)),i};Le.prototype.readIntBE=function(t,n,r){t=t|0,n=n|0,r||ur(t,n,this.length);for(var i=n,s=1,l=this[t+--i];i>0&&(s*=256);)l+=this[t+--i]*s;return s*=128,l>=s&&(l-=Math.pow(2,8*n)),l};Le.prototype.readInt8=function(t,n){return n||ur(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Le.prototype.readInt16LE=function(t,n){n||ur(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};Le.prototype.readInt16BE=function(t,n){n||ur(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};Le.prototype.readInt32LE=function(t,n){return n||ur(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Le.prototype.readInt32BE=function(t,n){return n||ur(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Le.prototype.readFloatLE=function(t,n){return n||ur(t,4,this.length),g0(this,t,!0,23,4)};Le.prototype.readFloatBE=function(t,n){return n||ur(t,4,this.length),g0(this,t,!1,23,4)};Le.prototype.readDoubleLE=function(t,n){return n||ur(t,8,this.length),g0(this,t,!0,52,8)};Le.prototype.readDoubleBE=function(t,n){return n||ur(t,8,this.length),g0(this,t,!1,52,8)};function to(e,t,n,r,i,s){if(!Ii(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}Le.prototype.writeUIntLE=function(t,n,r,i){if(t=+t,n=n|0,r=r|0,!i){var s=Math.pow(2,8*r)-1;to(this,t,n,r,s,0)}var l=1,c=0;for(this[n]=t&255;++c<r&&(l*=256);)this[n+c]=t/l&255;return n+r};Le.prototype.writeUIntBE=function(t,n,r,i){if(t=+t,n=n|0,r=r|0,!i){var s=Math.pow(2,8*r)-1;to(this,t,n,r,s,0)}var l=r-1,c=1;for(this[n+l]=t&255;--l>=0&&(c*=256);)this[n+l]=t/c&255;return n+r};Le.prototype.writeUInt8=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,1,255,0),Le.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1};function m0(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-n,2);i<s;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}Le.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,2,65535,0),Le.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):m0(this,t,n,!0),n+2};Le.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,2,65535,0),Le.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):m0(this,t,n,!1),n+2};function v0(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-n,4);i<s;++i)e[n+i]=t>>>(r?i:3-i)*8&255}Le.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,4,4294967295,0),Le.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255):v0(this,t,n,!0),n+4};Le.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,4,4294967295,0),Le.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):v0(this,t,n,!1),n+4};Le.prototype.writeIntLE=function(t,n,r,i){if(t=+t,n=n|0,!i){var s=Math.pow(2,8*r-1);to(this,t,n,r,s-1,-s)}var l=0,c=1,f=0;for(this[n]=t&255;++l<r&&(c*=256);)t<0&&f===0&&this[n+l-1]!==0&&(f=1),this[n+l]=(t/c>>0)-f&255;return n+r};Le.prototype.writeIntBE=function(t,n,r,i){if(t=+t,n=n|0,!i){var s=Math.pow(2,8*r-1);to(this,t,n,r,s-1,-s)}var l=r-1,c=1,f=0;for(this[n+l]=t&255;--l>=0&&(c*=256);)t<0&&f===0&&this[n+l+1]!==0&&(f=1),this[n+l]=(t/c>>0)-f&255;return n+r};Le.prototype.writeInt8=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,1,127,-128),Le.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1};Le.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,2,32767,-32768),Le.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):m0(this,t,n,!0),n+2};Le.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,2,32767,-32768),Le.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):m0(this,t,n,!1),n+2};Le.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,4,2147483647,-2147483648),Le.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):v0(this,t,n,!0),n+4};Le.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n|0,r||to(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Le.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):v0(this,t,n,!1),n+4};function TD(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function AD(e,t,n,r,i){return i||TD(e,t,n,4),bD(e,t,n,r,23,4),n+4}Le.prototype.writeFloatLE=function(t,n,r){return AD(this,t,n,!0,r)};Le.prototype.writeFloatBE=function(t,n,r){return AD(this,t,n,!1,r)};function OD(e,t,n,r,i){return i||TD(e,t,n,8),bD(e,t,n,r,52,8),n+8}Le.prototype.writeDoubleLE=function(t,n,r){return OD(this,t,n,!0,r)};Le.prototype.writeDoubleBE=function(t,n,r){return OD(this,t,n,!1,r)};Le.prototype.copy=function(t,n,r,i){if(r||(r=0),!i&&i!==0&&(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i<r&&(i=r),i===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n<i-r&&(i=t.length-n+r);var s=i-r,l;if(this===t&&r<n&&n<i)for(l=s-1;l>=0;--l)t[l+n]=this[l+r];else if(s<1e3||!Le.TYPED_ARRAY_SUPPORT)for(l=0;l<s;++l)t[l+n]=this[l+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+s),n);return s};Le.prototype.fill=function(t,n,r,i){if(typeof t=="string"){if(typeof n=="string"?(i=n,n=0,r=this.length):typeof r=="string"&&(i=r,r=this.length),t.length===1){var s=t.charCodeAt(0);s<256&&(t=s)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!Le.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var l;if(typeof t=="number")for(l=n;l<r;++l)this[l]=t;else{var c=Ii(t)?t:fm(new Le(t,i).toString()),f=c.length;for(l=0;l<r-n;++l)this[l+n]=c[l%f]}return this};var DX=/[^+\/0-9A-Za-z-_]/g;function LX(e){if(e=PX(e).replace(DX,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function PX(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kX(e){return e<16?"0"+e.toString(16):e.toString(16)}function fm(e,t){t=t||1/0;for(var n,r=e.length,i=null,s=[],l=0;l<r;++l){if(n=e.charCodeAt(l),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(l+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function NX(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function FX(e,t){for(var n,r,i,s=[],l=0;l<e.length&&!((t-=2)<0);++l)n=e.charCodeAt(l),r=n>>8,i=n%256,s.push(i),s.push(r);return s}function MD(e){return fX(LX(e))}function y0(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function zX(e){return e!==e}function Du(e){return e!=null&&(!!e._isBuffer||ID(e)||BX(e))}function ID(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function BX(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&ID(e.slice(0,0))}const HX=46,UX=/\\(\\)?/g,VX=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),jX=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$X=/^\w*$/,qX=function(e){return Object.prototype.toString.call(e)},DD=function(e){const t=typeof e;return t==="symbol"||t==="object"&&e&&qX(e)==="[object Symbol]"},GX=function(e,t){if(Array.isArray(e))return!1;const n=typeof e;return n==="number"||n==="symbol"||n==="boolean"||!e||DD(e)?!0:$X.test(e)||!jX.test(e)||t!=null&&e in Object(t)},YX=function(e){const t=[];return e.charCodeAt(0)===HX&&t.push(""),e.replace(VX,function(n,r,i,s){let l=n;i?l=s.replace(UX,"$1"):r&&(l=r.trim()),t.push(l)}),t},KX=function(e,t){return Array.isArray(e)?e:GX(e,t)?[e]:YX(e)},XX=function(e){if(typeof e=="string"||DD(e))return e;const t=`${e}`;return t=="0"&&1/e==-INFINITY?"-0":t},WX=function(e,t){t=KX(t,e);let n=0;const r=t.length;for(;e!=null&&n<r;)e=e[XX(t[n++])];return n&&n===r?e:void 0},QX=function(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)},LD=function(e){if(e==null)return[void 0,void 0];if(typeof e!="object")return[Error('Invalid option "columns": expect an array or an object')];if(Array.isArray(e)){const t=[];for(const n of e)if(typeof n=="string")t.push({key:n,header:n});else if(typeof n=="object"&&n!==null&&!Array.isArray(n)){if(!n.key)return[Error('Invalid column definition: property "key" is required')];n.header===void 0&&(n.header=n.key),t.push(n)}else return[Error("Invalid column definition: expect a string or an object")];e=t}else{const t=[];for(const n in e)t.push({key:n,header:e[n]});e=t}return[void 0,e]};class Lu extends Error{constructor(t,n,...r){Array.isArray(n)&&(n=n.join(" ")),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,Lu),this.code=t;for(const i of r)for(const s in i){const l=i[s];this[s]=Du(l)?l.toString():l==null?l:JSON.parse(JSON.stringify(l))}}}const JX=function(e){return e.replace(/([A-Z])/g,function(t,n){return"_"+n.toLowerCase()})},PD=function(e){const t={};for(const i in e)t[JX(i)]=e[i];if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)return[new Lu("CSV_OPTION_BOOLEAN_INVALID_TYPE",["option `bom` is optional and must be a boolean value,",`got ${JSON.stringify(t.bom)}`])];if(t.delimiter===void 0||t.delimiter===null)t.delimiter=",";else if(Du(t.delimiter))t.delimiter=t.delimiter.toString();else if(typeof t.delimiter!="string")return[new Lu("CSV_OPTION_DELIMITER_INVALID_TYPE",["option `delimiter` must be a buffer or a string,",`got ${JSON.stringify(t.delimiter)}`])];if(t.quote===void 0||t.quote===null)t.quote='"';else if(t.quote===!0)t.quote='"';else if(t.quote===!1)t.quote="";else if(Du(t.quote))t.quote=t.quote.toString();else if(typeof t.quote!="string")return[new Lu("CSV_OPTION_QUOTE_INVALID_TYPE",["option `quote` must be a boolean, a buffer or a string,",`got ${JSON.stringify(t.quote)}`])];if((t.quoted===void 0||t.quoted===null)&&(t.quoted=!1),t.escape_formulas===void 0||t.escape_formulas===null)t.escape_formulas=!1;else if(typeof t.escape_formulas!="boolean")return[new Lu("CSV_OPTION_ESCAPE_FORMULAS_INVALID_TYPE",["option `escape_formulas` must be a boolean,",`got ${JSON.stringify(t.escape_formulas)}`])];if((t.quoted_empty===void 0||t.quoted_empty===null)&&(t.quoted_empty=void 0),t.quoted_match===void 0||t.quoted_match===null||t.quoted_match===!1?t.quoted_match=null:Array.isArray(t.quoted_match)||(t.quoted_match=[t.quoted_match]),t.quoted_match)for(const i of t.quoted_match){const s=typeof i=="string",l=i instanceof RegExp;if(!s&&!l)return[Error(`Invalid Option: quoted_match must be a string or a regex, got ${JSON.stringify(i)}`)]}if((t.quoted_string===void 0||t.quoted_string===null)&&(t.quoted_string=!1),(t.eof===void 0||t.eof===null)&&(t.eof=!0),t.escape===void 0||t.escape===null)t.escape='"';else if(Du(t.escape))t.escape=t.escape.toString();else if(typeof t.escape!="string")return[Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`)];if(t.escape.length>1)return[Error(`Invalid Option: escape must be one character, got ${t.escape.length} characters`)];(t.header===void 0||t.header===null)&&(t.header=!1);const[n,r]=LD(t.columns);if(n!==void 0)return[n];if(t.columns=r,(t.quoted===void 0||t.quoted===null)&&(t.quoted=!1),(t.cast===void 0||t.cast===null)&&(t.cast={}),(t.cast.bigint===void 0||t.cast.bigint===null)&&(t.cast.bigint=i=>""+i),(t.cast.boolean===void 0||t.cast.boolean===null)&&(t.cast.boolean=i=>i?"1":""),(t.cast.date===void 0||t.cast.date===null)&&(t.cast.date=i=>""+i.getTime()),(t.cast.number===void 0||t.cast.number===null)&&(t.cast.number=i=>""+i),(t.cast.object===void 0||t.cast.object===null)&&(t.cast.object=i=>JSON.stringify(i)),(t.cast.string===void 0||t.cast.string===null)&&(t.cast.string=function(i){return i}),t.on_record!==void 0&&typeof t.on_record!="function")return[Error('Invalid Option: "on_record" must be a function.')];if(t.record_delimiter===void 0||t.record_delimiter===null)t.record_delimiter=`
32
+ `;else if(Du(t.record_delimiter))t.record_delimiter=t.record_delimiter.toString();else if(typeof t.record_delimiter!="string")return[Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(t.record_delimiter)}`)];switch(t.record_delimiter){case"unix":t.record_delimiter=`
33
+ `;break;case"mac":t.record_delimiter="\r";break;case"windows":t.record_delimiter=`\r
34
+ `;break;case"ascii":t.record_delimiter="";break;case"unicode":t.record_delimiter="\u2028";break}return[void 0,t]},ZX=Le.from([239,187,191]),eW=function(e,t,n){return{options:e,state:t,info:n,__transform:function(r,i){if(!Array.isArray(r)&&typeof r!="object")return Error(`Invalid Record: expect an array or an object, got ${JSON.stringify(r)}`);if(this.info.records===0){if(Array.isArray(r)){if(this.options.header===!0&&this.options.columns===void 0)return Error("Undiscoverable Columns: header option requires column option or object records")}else if(this.options.columns===void 0){const[c,f]=LD(Object.keys(r));if(c)return;this.options.columns=f}}if(this.info.records===0){this.bom(i);const c=this.headers(i);if(c)return c}try{this.options.on_record&&this.options.on_record(r,this.info.records)}catch(c){return c}let s,l;if(this.options.eof){if([s,l]=this.stringify(r),s)return s;if(l===void 0)return;l=l+this.options.record_delimiter}else{if([s,l]=this.stringify(r),s)return s;if(l===void 0)return;(this.options.header||this.info.records)&&(l=this.options.record_delimiter+l)}this.info.records++,i(l)},stringify:function(r,i=!1){if(typeof r!="object")return[void 0,r];const{columns:s}=this.options,l=[];if(Array.isArray(r)){s&&r.splice(s.length);for(let f=0;f<r.length;f++){const d=r[f],[p,g]=this.__cast(d,{index:f,column:f,records:this.info.records,header:i});if(p)return[p];l[f]=[g,d]}}else for(let f=0;f<s.length;f++){const d=WX(r,s[f].key),[p,g]=this.__cast(d,{index:f,column:s[f].key,records:this.info.records,header:i});if(p)return[p];l[f]=[g,d]}let c="";for(let f=0;f<l.length;f++){let d,p,[g,m]=l[f];if(typeof g=="string")d=this.options;else if(QX(g)){if(d=g,g=d.value,delete d.value,typeof g!="string"&&g!==void 0&&g!==null&&p)return[Error(`Invalid Casting Value: returned value must return a string, null or undefined, got ${JSON.stringify(g)}`)];if(d={...this.options,...d},[p,d]=PD(d),p!==void 0)return[p]}else if(g==null)d=this.options;else return[Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(g)}`)];const{delimiter:y,escape:E,quote:b,quoted:x,quoted_empty:C,quoted_string:R,quoted_match:_,record_delimiter:O,escape_formulas:T}=d;if(g===""&&m===""){let M=_&&_.filter(D=>typeof D=="string"?g.indexOf(D)!==-1:D.test(g));M=M&&M.length>0,(M||C===!0||R===!0&&C!==!1)===!0&&(g=b+g+b),c+=g}else if(g){if(typeof g!="string")return[Error(`Formatter must return a string, null or undefined, got ${JSON.stringify(g)}`)];const M=y.length&&g.indexOf(y)>=0,A=b!==""&&g.indexOf(b)>=0,D=g.indexOf(E)>=0&&E!==b,L=g.indexOf(O)>=0,F=R&&typeof m=="string";let B=_&&_.filter(z=>typeof z=="string"?g.indexOf(z)!==-1:z.test(g));if(B=B&&B.length>0,T)switch(g[0]){case"=":case"+":case"-":case"@":case" ":case"\r":case"=":case"+":case"-":case"@":g=`'${g}`;break}const j=A===!0||M||L||x||F||B;if(j===!0&&D===!0){const z=E==="\\"?new RegExp(E+E,"g"):new RegExp(E,"g");g=g.replace(z,E+E)}if(A===!0){const z=new RegExp(b,"g");g=g.replace(z,E+b)}j===!0&&(g=b+g+b),c+=g}else(C===!0||m===""&&R===!0&&C!==!1)&&(c+=b+b);f!==l.length-1&&(c+=y)}return[void 0,c]},bom:function(r){this.options.bom===!0&&r(ZX)},headers:function(r){if(this.options.header===!1||this.options.columns===void 0)return;let i,s=this.options.columns.map(l=>l.header);if(this.options.eof?([i,s]=this.stringify(s,!0),s+=this.options.record_delimiter):[i,s]=this.stringify(s),i)return i;r(s)},__cast:function(r,i){const s=typeof r;try{return s==="string"?[void 0,this.options.cast.string(r,i)]:s==="bigint"?[void 0,this.options.cast.bigint(r,i)]:s==="number"?[void 0,this.options.cast.number(r,i)]:s==="boolean"?[void 0,this.options.cast.boolean(r,i)]:r instanceof Date?[void 0,this.options.cast.date(r,i)]:s==="object"&&r!==null?[void 0,this.options.cast.object(r,i)]:[void 0,r,r]}catch(l){return[l]}}}},_re=function(e,t={}){const n=[],[r,i]=PD(t);if(r!==void 0)throw r;const c=eW(i,{stop:!1},{records:0});for(const f of e){const d=c.__transform(f,function(p){n.push(p)});if(d!==void 0)throw d}if(n.length===0){c.bom(d=>{n.push(d)});const f=c.headers(d=>{n.push(d)});if(f!==void 0)throw f}return n.join("")};function Tre(e){return $e({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 5a1 1 0 0 1 .3 -.714a6 6 0 0 1 8.213 -.176l.351 .328a4 4 0 0 0 5.272 0l.249 -.227c.61 -.483 1.527 -.097 1.61 .676l.005 .113v9a1 1 0 0 1 -.3 .714a6 6 0 0 1 -8.213 .176l-.351 -.328a4 4 0 0 0 -5.136 -.114v6.552a1 1 0 0 1 -1.993 .117l-.007 -.117v-16z"},child:[]}]})(e)}function Are(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.5 21h-4.5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v3"},child:[]},{tag:"path",attr:{d:"M16 3v4"},child:[]},{tag:"path",attr:{d:"M8 3v4"},child:[]},{tag:"path",attr:{d:"M4 11h10"},child:[]},{tag:"path",attr:{d:"M18 18m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"},child:[]},{tag:"path",attr:{d:"M18 16.5v1.5l.5 .5"},child:[]}]})(e)}function Ore(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12.5 21h-6.5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"},child:[]},{tag:"path",attr:{d:"M16 3v4"},child:[]},{tag:"path",attr:{d:"M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z"},child:[]},{tag:"path",attr:{d:"M19 18v.01"},child:[]},{tag:"path",attr:{d:"M8 3v4"},child:[]},{tag:"path",attr:{d:"M4 11h16"},child:[]}]})(e)}function Mre(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 21h-5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v3.5"},child:[]},{tag:"path",attr:{d:"M16 3v4"},child:[]},{tag:"path",attr:{d:"M8 3v4"},child:[]},{tag:"path",attr:{d:"M4 11h11"},child:[]},{tag:"path",attr:{d:"M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z"},child:[]}]})(e)}function Ire(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12.857 14.675a5.016 5.016 0 0 1 -.857 -.675a5 5 0 0 0 -7 0v-9a5 5 0 0 1 7 0a5 5 0 0 0 7 0v6"},child:[]},{tag:"path",attr:{d:"M5 21v-7"},child:[]},{tag:"path",attr:{d:"M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z"},child:[]},{tag:"path",attr:{d:"M19 18v.01"},child:[]}]})(e)}function Dre(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11.475 13.551a5.001 5.001 0 0 0 -6.475 .449v-9a5 5 0 0 1 7 0a5 5 0 0 0 7 0v5"},child:[]},{tag:"path",attr:{d:"M5 21v-7"},child:[]},{tag:"path",attr:{d:"M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z"},child:[]}]})(e)}function Lre(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 19h-7a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2.5"},child:[]},{tag:"path",attr:{d:"M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z"},child:[]},{tag:"path",attr:{d:"M19 18v.01"},child:[]}]})(e)}function Pre(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 19h-5a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2.5"},child:[]},{tag:"path",attr:{d:"M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z"},child:[]}]})(e)}function kre(e){return $e({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"},child:[]},{tag:"path",attr:{d:"M14 14m0 1a1 1 0 0 1 1 -1h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1z"},child:[]},{tag:"path",attr:{d:"M7 9l4 4"},child:[]},{tag:"path",attr:{d:"M7 12v-3h3"},child:[]}]})(e)}const kD=S.createContext(void 0);function ND(e){const t=S.useContext(kD);if(t===void 0&&!e)throw new Error(Zt(33));return t}const FD=S.createContext(void 0);function zl(e){const t=S.useContext(FD);if(t===void 0&&!e)throw new Error(Zt(36));return t}const tW=S.createContext(void 0);function b0(e=!0){const t=S.useContext(tW);if(t===void 0&&!e)throw new Error(Zt(25));return t}const nW={type:"regular-item"};function rW(e){const{closeOnClick:t,disabled:n=!1,highlighted:r,id:i,store:s,nativeButton:l,itemMetadata:c,nodeId:f}=e,d=S.useRef(null),p=b0(!0),g=p!==void 0,{events:m}=s.useState("floatingTreeRoot"),{getButtonProps:y,buttonRef:E}=Ni({disabled:n,focusableWhenDisabled:!0,native:l}),b=S.useCallback(C=>Ai({id:i,role:"menuitem",tabIndex:r?0:-1,onMouseMove(R){f&&m.emit("itemhover",{nodeId:f,target:R.currentTarget})},onMouseEnter(){c.type==="submenu-trigger"&&c.setActive()},onKeyUp(R){R.key===" "&&s.context.typingRef.current&&R.preventBaseUIHandler()},onClick(R){t&&m.emit("close",{domEvent:R,reason:Xf})},onMouseUp(R){if(p){const _=p.initialCursorPointRef.current;if(p.initialCursorPointRef.current=null,g&&_&&Math.abs(R.clientX-_.x)<=1&&Math.abs(R.clientY-_.y)<=1)return}d.current&&s.context.allowMouseUpTriggerRef.current&&(!g||R.button===2)&&c.type==="regular-item"&&d.current.click()}},C,y),[i,r,y,t,m,s,g,p,c,f]),x=bo(d,E);return S.useMemo(()=>({getItemProps:b,itemRef:x}),[b,x])}const Nre=S.forwardRef(function(t,n){const{render:r,className:i,id:s,label:l,nativeButton:c=!1,disabled:f=!1,closeOnClick:d=!0,...p}=t,g=uw({label:l}),m=ND(!0),y=eo(s),{store:E}=zl(),b=E.useState("isActive",g.index),x=E.useState("itemProps"),{getItemProps:C,itemRef:R}=rW({closeOnClick:d,disabled:f,highlighted:b,id:y,store:E,nativeButton:c,nodeId:m==null?void 0:m.nodeId,itemMetadata:nW}),_=S.useMemo(()=>({disabled:f,highlighted:b}),[f,b]);return Ot("div",t,{state:_,props:[x,p,C],ref:[R,n,g.ref]})}),oW={...jo,...ki},Fre=S.forwardRef(function(t,n){const{render:r,className:i,finalFocus:s,...l}=t,{store:c}=zl(),{side:f,align:d}=ND(),p=ih(!0)!=null,g=c.useState("open"),m=c.useState("transitionStatus"),y=c.useState("popupProps"),E=c.useState("mounted"),b=c.useState("instantType"),x=c.useState("activeTriggerElement"),C=c.useState("parent"),R=c.useState("lastOpenChangeReason"),_=c.useState("rootId"),O=c.useState("floatingRootContext"),T=c.useState("floatingTreeRoot"),M=c.useState("closeDelay"),A=c.useState("activeTriggerElement");si({open:g,ref:c.context.popupRef,onComplete(){var z,G;g&&((G=(z=c.context).onOpenChangeComplete)==null||G.call(z,!0))}}),S.useEffect(()=>{function z(G){c.setOpen(!1,st(G.reason,G.domEvent))}return T.events.on("close",z),()=>{T.events.off("close",z)}},[T.events,c]);const D=c.useState("hoverEnabled"),L=c.useState("disabled");RE(O,{enabled:D&&!L&&C.type!=="context-menu"&&C.type!=="menubar",closeDelay:M});const F=S.useMemo(()=>({transitionStatus:m,side:f,align:d,open:g,nested:C.type==="menu",instant:b}),[m,f,d,g,C.type,b]),B=Ot("div",t,{state:F,ref:[n,c.context.popupRef],stateAttributesMapping:oW,props:[y,{onKeyDown(z){p&&t0.has(z.key)&&z.stopPropagation()}},_c(m),l,{"data-rootownerid":_}]});let j=C.type===void 0||C.type==="context-menu";return(x||C.type==="menubar"&&R!==gE)&&(j=!0),Re.jsx(Om,{context:O,modal:!1,disabled:!E,returnFocus:s===void 0?j:s,initialFocus:C.type!=="menu",restoreFocus:!0,externalTree:C.type!=="menubar"?T:void 0,previousFocusableElement:A,nextFocusableElement:C.type===void 0?c.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:C.type===void 0?c.context.beforeContentFocusGuardRef:void 0,children:B})}),zD=S.createContext(void 0);function iW(){const e=S.useContext(zD);if(e===void 0)throw new Error(Zt(32));return e}const zre=S.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:s}=zl();return s.useState("mounted")||r?Re.jsx(zD.Provider,{value:r,children:Re.jsx(Am,{ref:n,...i})}):null}),Bre=S.forwardRef(function(t,n){var Ee;const{anchor:r,positionMethod:i="absolute",className:s,render:l,side:c,align:f,sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:y=5,sticky:E=!1,disableAnchorTracking:b=!1,collisionAvoidance:x=g4,...C}=t,{store:R}=zl(),_=iW(),O=b0(!0),T=R.useState("parent"),M=R.useState("floatingRootContext"),A=R.useState("floatingTreeRoot"),D=R.useState("mounted"),L=R.useState("open"),F=R.useState("modal"),B=R.useState("activeTriggerElement"),j=R.useState("lastOpenChangeReason"),z=R.useState("floatingNodeId"),G=R.useState("floatingParentNodeId");let V=r,P=d,q=p,U=f,K=x;T.type==="context-menu"&&(V=r??((Ee=T.context)==null?void 0:Ee.anchor),U=U??"start",!c&&U!=="center"&&(q=t.alignOffset??2,P=t.sideOffset??-5));let Z=c,k=U;T.type==="menu"?(Z=Z??"inline-end",k=k??"start",K=t.collisionAvoidance??pE):T.type==="menubar"&&(Z=Z??"bottom",k=k??"start");const $=T.type==="context-menu",X=Fm({anchor:V,floatingRootContext:M,positionMethod:O?"fixed":i,mounted:D,side:Z,sideOffset:P,align:k,alignOffset:q,arrowPadding:$?0:y,collisionBoundary:g,collisionPadding:m,sticky:E,nodeId:z,keepMounted:_,disableAnchorTracking:b,collisionAvoidance:K,shiftCrossAxis:$,externalTree:A}),te=S.useMemo(()=>{const le={};return L||(le.pointerEvents="none"),{role:"presentation",hidden:!D,style:{...X.positionerStyles,...le}}},[L,D,X.positionerStyles]);S.useEffect(()=>{function le(me){me.open?(me.parentNodeId===z&&R.set("hoverEnabled",!1),me.nodeId!==z&&me.parentNodeId===R.select("floatingParentNodeId")&&R.setOpen(!1,st(qf))):me.parentNodeId===z&&me.reason!==qf&&R.set("hoverEnabled",!0)}return A.events.on("menuopenchange",le),()=>{A.events.off("menuopenchange",le)}},[R,A.events,z]),S.useEffect(()=>{if(R.select("floatingParentNodeId")==null)return;function le(me){if(me.open||me.nodeId!==R.select("floatingParentNodeId"))return;const Ce=me.reason??qf;R.setOpen(!1,st(Ce))}return A.events.on("menuopenchange",le),()=>{A.events.off("menuopenchange",le)}},[A.events,R]),S.useEffect(()=>{function le(me){!L||me.nodeId!==R.select("floatingParentNodeId")||me.target&&B&&B!==me.target&&R.setOpen(!1,st(qf))}return A.events.on("itemhover",le),()=>{A.events.off("itemhover",le)}},[A.events,L,B,R]),S.useEffect(()=>{const le={open:L,nodeId:z,parentNodeId:G,reason:R.select("lastOpenChangeReason")};A.events.emit("menuopenchange",le)},[A.events,L,R,z,G]);const ue=S.useMemo(()=>({open:L,side:X.side,align:X.align,anchorHidden:X.anchorHidden,nested:T.type==="menu"}),[L,X.side,X.align,X.anchorHidden,T.type]),ne=S.useMemo(()=>({side:X.side,align:X.align,arrowRef:X.arrowRef,arrowUncentered:X.arrowUncentered,arrowStyles:X.arrowStyles,nodeId:X.context.nodeId}),[X.side,X.align,X.arrowRef,X.arrowUncentered,X.arrowStyles,X.context.nodeId]),ce=Ot("div",t,{state:ue,stateAttributesMapping:jo,ref:[n,R.useStateSetter("positionerElement")],props:[te,C]}),Q=D&&T.type!=="menu"&&(T.type!=="menubar"&&F&&j!==rr||T.type==="menubar"&&T.context.modal);let ve=null;return T.type==="menubar"?ve=T.context.contentElement:T.type===void 0&&(ve=B),Re.jsxs(kD.Provider,{value:ne,children:[Q&&Re.jsx(n0,{ref:T.type==="context-menu"||T.type==="nested-context-menu"?T.context.internalBackdropRef:null,inert:zm(!L),cutout:ve}),Re.jsx(f4,{id:z,children:Re.jsx(lw,{elementsRef:R.context.itemDomElements,labelsRef:R.context.itemLabels,children:ce})})]})}),sW=S.createContext(null);function BD(e){return S.useContext(sW)}const aW={...Pm,disabled:ke(e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled),modal:ke(e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0)),allowMouseEnter:ke(e=>e.parent.type==="menu"?e.parent.store.select("allowMouseEnter"):e.allowMouseEnter),stickIfOpen:ke(e=>e.stickIfOpen),parent:ke(e=>e.parent),rootId:ke(e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId),activeIndex:ke(e=>e.activeIndex),isActive:ke((e,t)=>e.activeIndex===t),hoverEnabled:ke(e=>e.hoverEnabled),instantType:ke(e=>e.instantType),lastOpenChangeReason:ke(e=>e.openChangeReason),floatingTreeRoot:ke(e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot),floatingNodeId:ke(e=>e.floatingNodeId),floatingParentNodeId:ke(e=>e.floatingParentNodeId),itemProps:ke(e=>e.itemProps),closeDelay:ke(e=>e.closeDelay),keyboardEventRelay:ke(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")})};class ww extends Bd{constructor(n){super({...lW(),...n},{positionerRef:S.createRef(),popupRef:S.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:S.createRef(),beforeContentFocusGuardRef:S.createRef(),onOpenChangeComplete:void 0,triggerElements:new Cc},aW);jt(this,"unsubscribeParentListener",null);this.observe(ke(r=>r.allowMouseEnter),(r,i)=>{this.state.parent.type==="menu"&&r!==i&&this.state.parent.store.set("allowMouseEnter",r)}),this.unsubscribeParentListener=this.observe("parent",r=>{var i;if((i=this.unsubscribeParentListener)==null||i.call(this),r.type==="menu"){this.unsubscribeParentListener=r.store.subscribe(()=>{this.notifyAll()}),this.context.allowMouseUpTriggerRef=r.store.context.allowMouseUpTriggerRef;return}r.type!==void 0&&(this.context.allowMouseUpTriggerRef=r.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(n,r){this.state.floatingRootContext.context.events.emit("setOpen",{open:n,eventDetails:r})}static useStore(n,r){return Cr(()=>n??new ww(r)).current}}function lW(){return{...Lm(),disabled:!1,modal:!0,allowMouseEnter:!0,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new dE,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Tn,keyboardEventRelay:void 0,closeDelay:0}}const uW=S.createContext(void 0);function cW(){return S.useContext(uW)}function Hre(e){const{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:s=!1,disabled:l=!1,modal:c,loopFocus:f=!0,orientation:d="vertical",actionsRef:p,closeParentOnEsc:g=!1,handle:m,triggerId:y,defaultTriggerId:E=null,highlightItemOnHover:b=!0}=e,x=b0(!0),C=zl(!0),R=BD(),_=cW(),O=S.useMemo(()=>_&&C?{type:"menu",store:C.store}:R?{type:"menubar",context:R}:x&&!C?{type:"context-menu",context:x}:{type:void 0},[x,C,R,_]),T=ww.useStore(m==null?void 0:m.store,{parent:O}),M=T.useState("floatingTreeRoot"),A=hE(M),D=Pi();je(()=>{x&&!C?T.update({parent:{type:"context-menu",context:x},floatingNodeId:A,floatingParentNodeId:D}):C&&T.update({floatingNodeId:A,floatingParentNodeId:D})},[x,C,A,D,T]),T.useControlledProp("open",n,s),T.useControlledProp("activeTriggerId",y,E),T.useContextCallback("onOpenChangeComplete",i);const L=T.useState("open"),F=T.useState("activeTriggerElement"),B=T.useState("positionerElement"),j=T.useState("hoverEnabled"),z=T.useState("modal"),G=T.useState("disabled"),V=T.useState("lastOpenChangeReason"),P=T.useState("parent"),q=T.useState("activeIndex"),U=T.useState("payload"),K=T.useState("floatingParentNodeId"),Z=S.useRef(null),k=K!=null;let $;T.useSyncedValues({disabled:l,modal:P.type===void 0?c:void 0,rootId:Il()});const{openMethod:X,triggerProps:te,reset:ue}=o0(L);Im(T);const{forceUnmount:ne}=Dm(L,T,()=>{T.update({allowMouseEnter:!1,stickIfOpen:!0}),ue()}),ce=S.useRef(P.type!=="context-menu"),Q=Bn();S.useEffect(()=>{if(L||(Z.current=null),P.type==="context-menu"){if(!L){Q.clear(),ce.current=!1;return}Q.start(500,()=>{ce.current=!0})}},[Q,L,P.type]),r0(L&&z&&V!==rr&&X!=="touch",B),je(()=>{!L&&!j&&T.set("hoverEnabled",!0)},[L,j,T]);const ve=S.useRef(!0),Ee=Bn(),le=Ue((he,ze)=>{const He=ze.reason;if(L===he&&ze.trigger===F||(ze.preventUnmountOnClose=()=>{T.set("preventUnmountingOnClose",!0)},!he&&ze.trigger==null&&(ze.trigger=F??void 0),r==null||r(he,ze),ze.isCanceled))return;const tt={open:he,nativeEvent:ze.event,reason:ze.reason,nested:k};$==null||$.emit("openchange",tt);const mt=ze.event;if(he===!1&&(mt==null?void 0:mt.type)==="click"&&mt.pointerType==="touch"&&!ve.current)return;if(!he&&q!==null){const Ze=T.context.itemDomElements.current[q];queueMicrotask(()=>{Ze==null||Ze.setAttribute("tabindex","-1")})}he&&He===ud?(ve.current=!1,Ee.start(300,()=>{ve.current=!0})):(ve.current=!0,Ee.clear());const nt=(He===Jo||He===Xf)&&mt.detail===0&&(mt==null?void 0:mt.isTrusted),yt=!he&&(He===Fd||He==null);function qt(){var ct;const Ze={open:he,openChangeReason:He};Z.current=ze.event??null;const bt=((ct=ze.trigger)==null?void 0:ct.id)??null;(bt||he)&&(Ze.activeTriggerId=bt,Ze.activeTriggerElement=ze.trigger??null),T.update(Ze)}He===rr?Dn.flushSync(qt):qt(),P.type==="menubar"&&(He===ud||He===Ti||He===rr||He===cg||He===qf)?T.set("instantType","group"):nt||yt?T.set("instantType",nt?"click":"dismiss"):T.set("instantType",void 0)}),me=S.useCallback(he=>{const ze=st(he);return ze.preventUnmountOnClose=()=>{T.set("preventUnmountingOnClose",!0)},ze},[T]),Ce=S.useCallback(()=>{T.setOpen(!1,me(Tm))},[T,me]);S.useImperativeHandle(p,()=>({unmount:ne,close:Ce}),[ne,Ce]);let Ie;P.type==="context-menu"&&(Ie=P.context),S.useImperativeHandle(Ie==null?void 0:Ie.positionerRef,()=>B,[B]),S.useImperativeHandle(Ie==null?void 0:Ie.actionsRef,()=>({setOpen:le}),[le]);const Me=km({popupStore:T,onOpenChange:le});$=Me.context.events,S.useEffect(()=>{const he=({open:ze,eventDetails:He})=>le(ze,He);return $.on("setOpen",he),()=>{$==null||$.off("setOpen",he)}},[$,le]);const be=zd(Me,{enabled:!G,bubbles:g&&P.type==="menu",outsidePress(){var he;return P.type!=="context-menu"||((he=Z.current)==null?void 0:he.type)==="contextmenu"?!0:ce.current},externalTree:k?M:void 0}),xe=CE(Me,{role:"menu"}),we=Hd(),De=S.useCallback(he=>{T.select("activeIndex")!==he&&T.set("activeIndex",he)},[T]),H=U4(Me,{enabled:!G,listRef:T.context.itemDomElements,activeIndex:q,nested:P.type!==void 0,loopFocus:f,orientation:d,parentOrientation:P.type==="menubar"?P.context.orientation:void 0,rtl:we==="rtl",disabledIndices:pa,onNavigate:De,openOnArrowKeyDown:P.type!=="context-menu",externalTree:k?M:void 0,focusItemOnHover:b}),Y=S.useCallback(he=>{T.context.typingRef.current=he},[T]),ee=V4(Me,{listRef:T.context.itemLabels,activeIndex:q,resetMs:KN,onMatch:he=>{L&&he!==q&&T.set("activeIndex",he)},onTypingChange:Y}),{getReferenceProps:ie,getFloatingProps:ae,getItemProps:oe,getTriggerProps:Oe}=Ll([be,xe,H,ee]),Be=S.useMemo(()=>{const he=Ai(ie(),{onMouseEnter(){T.set("hoverEnabled",!0)},onMouseMove(){T.set("allowMouseEnter",!0)}},te);return delete he.role,he},[ie,T,te]),Fe=S.useMemo(()=>{const he=Oe();if(!he)return he;const ze=Ai(he,te);return delete ze.role,delete ze["aria-controls"],ze},[Oe,te]),Ke=Rc(),it=S.useMemo(()=>ae({onMouseEnter(){P.type==="menu"&&Ke.request(()=>T.set("hoverEnabled",!1))},onMouseMove(){T.set("allowMouseEnter",!0)},onClick(){T.select("hoverEnabled")&&T.set("hoverEnabled",!1)},onKeyDown(he){const ze=T.select("keyboardEventRelay");ze&&!he.isPropagationStopped()&&ze(he)}}),[ae,P.type,Ke,T]),rt=S.useMemo(()=>oe(),[oe]);T.useSyncedValues({floatingRootContext:Me,activeTriggerProps:Be,inactiveTriggerProps:Fe,popupProps:it,itemProps:rt});const kt=S.useMemo(()=>({store:T,parent:O}),[T,O]),ut=Re.jsx(FD.Provider,{value:kt,children:typeof t=="function"?t({payload:U}):t});return P.type===void 0||P.type==="context-menu"?Re.jsx(d4,{externalTree:M,children:ut}):ut}function HD(e){if(mn(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid")??void 0;if(!xi(e))return HD(_i(e))}function fW(e){const{enabled:t=!0,mouseDownAction:n,open:r}=e,i=S.useRef(!1);return S.useMemo(()=>t?{onMouseDown:s=>{(n==="open"&&!r||n==="close"&&r)&&(i.current=!0,Vo(s.currentTarget).addEventListener("click",()=>{i.current=!1},{once:!0}))},onClick:s=>{i.current&&(i.current=!1,s.preventBaseUIHandler())}}:Tn,[t,n,r])}const Jp=2,Ure=S.forwardRef(function(t,n){const{render:r,className:i,disabled:s=!1,nativeButton:l=!0,id:c,openOnHover:f,delay:d=100,closeDelay:p=0,handle:g,payload:m,...y}=t,E=zl(!0),b=(g==null?void 0:g.store)??(E==null?void 0:E.store);if(!b)throw new Error(Zt(85));const x=eo(c),C=b.useState("isTriggerActive",x),R=b.useState("floatingRootContext"),_=b.useState("isOpenedByTrigger",x),O=S.useRef(null),T=hW(),M=sw(!0),A=_a(),D=S.useMemo(()=>A??new dE,[A]),L=hE(D),F=Pi(),{registerTrigger:B,isMountedByThisTrigger:j}=wE(x,O,b,{payload:m,closeDelay:p,parent:T,floatingTreeRoot:D,floatingNodeId:L,floatingParentNodeId:F,keyboardEventRelay:M==null?void 0:M.relayKeyboardEvent}),z=b.useState("disabled"),G=s||z||T.type==="menubar"&&T.context.disabled,{getButtonProps:V,buttonRef:P}=Ni({disabled:G,native:l});S.useEffect(()=>{!_&&T.type===void 0&&(b.context.allowMouseUpTriggerRef.current=!1)},[b,_,T.type]);const q=S.useRef(null),U=Bn(),K=Ue(xe=>{if(!q.current)return;U.clear(),b.context.allowMouseUpTriggerRef.current=!1;const we=xe.target;if(Tt(q.current,we)||Tt(b.select("positionerElement"),we)||we===q.current||we!=null&&HD(we)===b.select("rootId"))return;const De=k3(q.current);xe.clientX>=De.left-Jp&&xe.clientX<=De.right+Jp&&xe.clientY>=De.top-Jp&&xe.clientY<=De.bottom+Jp||D.events.emit("close",{domEvent:xe,reason:m4})});S.useEffect(()=>{_&&b.select("lastOpenChangeReason")===rr&&Vo(q.current).addEventListener("mouseup",K,{once:!0})},[_,K,b]);const Z=T.type==="menubar"&&T.context.hasSubmenuOpen,$=xE(R,{enabled:(f??Z??!1)&&!G&&T.type!=="context-menu"&&(T.type!=="menubar"||Z&&!j),handleClose:_E({blockPointerEvents:T.type!=="menubar"}),mouseOnly:!0,move:!1,restMs:T.type===void 0?d:void 0,delay:{close:p},triggerElementRef:O,externalTree:D,isActiveTrigger:C}),X=dW(_,b.select("lastOpenChangeReason")),te=yE(R,{enabled:!G&&T.type!=="context-menu",event:_&&T.type==="menubar"?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0?X:!1}),ue=B4(R,{enabled:!G&&(T.type!=="menubar"&&_||Z)}),ne=fW({open:_,enabled:T.type==="menubar",mouseDownAction:"open"}),ce=Ll([te,ue]),Q=T.type==="menubar",ve=S.useMemo(()=>({disabled:G,open:_}),[G,_]),Ee=b.useState("triggerProps",j),le=[q,n,P,B,O],me=[ce.getReferenceProps(),$??Tn,Ee,{"aria-haspopup":"menu",id:x,onMouseDown:xe=>{if(b.select("open"))return;U.start(200,()=>{b.context.allowMouseUpTriggerRef.current=!0}),Vo(xe.currentTarget).addEventListener("mouseup",K,{once:!0})}},Q?{role:"menuitem"}:{},ne,y,V],Ce=S.useRef(null),Ie=Ue(xe=>{Dn.flushSync(()=>{b.setOpen(!1,st(Ti,xe.nativeEvent,xe.currentTarget))});const we=a4(Ce.current);we==null||we.focus()}),Me=Ue(xe=>{var De;const we=b.select("positionerElement");if(we&&dl(xe,we))(De=b.context.beforeContentFocusGuardRef.current)==null||De.focus();else{Dn.flushSync(()=>{b.setOpen(!1,st(Ti,xe.nativeEvent,xe.currentTarget))});let H=s4(O.current);for(;H!==null&&Tt(we,H)||H!=null&&H.hasAttribute("aria-hidden");){const Y=H;if(H=_m(H),H===Y)break}H==null||H.focus()}}),be=Ot("button",t,{enabled:!Q,stateAttributesMapping:Ug,state:ve,ref:le,props:me});return Q?Re.jsx(p0,{tag:"button",render:r,className:i,state:ve,refs:le,props:me,stateAttributesMapping:Ug}):_?Re.jsxs(S.Fragment,{children:[Re.jsx(ga,{ref:Ce,onFocus:Ie},`${x}-pre-focus-guard`),Re.jsx(S.Fragment,{children:be},x),Re.jsx(ga,{ref:b.context.triggerFocusTargetRef,onFocus:Me},`${x}-post-focus-guard`)]}):Re.jsx(S.Fragment,{children:be},x)});function dW(e,t){const n=Bn(),[r,i]=S.useState(!1);return je(()=>{e&&t==="trigger-hover"?(i(!0),n.start(h4,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function hW(){const e=b0(!0),t=zl(!0),n=BD();return S.useMemo(()=>n?{type:"menubar",context:n}:e&&!t?{type:"context-menu",context:e}:{type:void 0},[e,t,n])}var Ag={exports:{}},pW=Ag.exports,cO;function gW(){return cO||(cO=1,function(e,t){(function(n,r){e.exports=r()})(pW,function(){var n=new Map;function r(f){if(!f||!f.nodeName||f.nodeName!=="TEXTAREA"||n.has(f))return;var d=null;function p(x){for(var C=[];x&&x.parentNode&&x.parentNode instanceof Element;)x.parentNode.scrollTop&&C.push([x.parentNode,x.parentNode.scrollTop]),x=x.parentNode;return function(){return C.forEach(function(R){var _=R[0],O=R[1];_.style.scrollBehavior="auto",_.scrollTop=O,_.style.scrollBehavior=null})}}var g=window.getComputedStyle(f);function m(x){var C=x.restoreTextAlign,R=C===void 0?null:C,_=x.testForHeightReduction,O=_===void 0?!0:_,T=g.overflowY;if(f.scrollHeight!==0){g.resize==="vertical"?f.style.resize="none":g.resize==="both"&&(f.style.resize="horizontal");var M;O&&(M=p(f),f.style.height="");var A;if(g.boxSizing==="content-box"?A=f.scrollHeight-(parseFloat(g.paddingTop)+parseFloat(g.paddingBottom)):A=f.scrollHeight+parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth),g.maxHeight!=="none"&&A>parseFloat(g.maxHeight)?(g.overflowY==="hidden"&&(f.style.overflow="scroll"),A=parseFloat(g.maxHeight)):g.overflowY!=="hidden"&&(f.style.overflow="hidden"),f.style.height=A+"px",R&&(f.style.textAlign=R),M&&M(),d!==A&&(f.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),d=A),T!==g.overflow&&!R){var D=g.textAlign;g.overflow==="hidden"&&(f.style.textAlign=D==="start"?"end":"start"),m({restoreTextAlign:D,testForHeightReduction:!0})}}}function y(){m({testForHeightReduction:!0,restoreTextAlign:null})}var E=function(){var x=f.value;return function(){m({testForHeightReduction:x===""||!f.value.startsWith(x),restoreTextAlign:null}),x=f.value}}(),b=(function(x){f.removeEventListener("autosize:destroy",b),f.removeEventListener("autosize:update",y),f.removeEventListener("input",E),window.removeEventListener("resize",y),Object.keys(x).forEach(function(C){return f.style[C]=x[C]}),n.delete(f)}).bind(f,{height:f.style.height,resize:f.style.resize,textAlign:f.style.textAlign,overflowY:f.style.overflowY,overflowX:f.style.overflowX,wordWrap:f.style.wordWrap});f.addEventListener("autosize:destroy",b),f.addEventListener("autosize:update",y),f.addEventListener("input",E),window.addEventListener("resize",y),f.style.overflowX="hidden",f.style.wordWrap="break-word",n.set(f,{destroy:b,update:y}),y()}function i(f){var d=n.get(f);d&&d.destroy()}function s(f){var d=n.get(f);d&&d.update()}var l=null;typeof window>"u"?(l=function(d){return d},l.destroy=function(f){return f},l.update=function(f){return f}):(l=function(d,p){return d&&Array.prototype.forEach.call(d.length?d:[d],function(g){return r(g)}),d},l.destroy=function(f){return f&&Array.prototype.forEach.call(f.length?f:[f],i),f},l.update=function(f){return f&&Array.prototype.forEach.call(f.length?f:[f],s),f});var c=l;return c})}(Ag)),Ag.exports}var mW=gW();const Vre=Ss(mW);function vW(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const S0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Rw(e){return"nodeType"in e}function no(e){var t,n;return e?Vc(e)?e:Rw(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function xw(e){const{Document:t}=no(e);return e instanceof t}function ah(e){return Vc(e)?!1:e instanceof no(e).HTMLElement}function UD(e){return e instanceof no(e).SVGElement}function jc(e){return e?Vc(e)?e.document:Rw(e)?xw(e)?e:ah(e)||UD(e)?e.ownerDocument:document:document:document}const Di=S0?S.useLayoutEffect:S.useEffect;function Cw(e){const t=S.useRef(e);return Di(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function yW(){const e=S.useRef(null),t=S.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=S.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Sd(e,t){t===void 0&&(t=[e]);const n=S.useRef(e);return Di(()=>{n.current!==e&&(n.current=e)},t),n}function lh(e,t){const n=S.useRef();return S.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function dm(e){const t=Cw(e),n=S.useRef(null),r=S.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function PS(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}let W1={};function uh(e,t){return S.useMemo(()=>{if(t)return t;const n=W1[e]==null?0:W1[e]+1;return W1[e]=n,e+"-"+n},[e,t])}function VD(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((s,l)=>{const c=Object.entries(l);for(const[f,d]of c){const p=s[f];p!=null&&(s[f]=p+e*d)}return s},{...t})}}const Vu=VD(1),hm=VD(-1);function bW(e){return"clientX"in e&&"clientY"in e}function _w(e){if(!e)return!1;const{KeyboardEvent:t}=no(e.target);return t&&e instanceof t}function SW(e){if(!e)return!1;const{TouchEvent:t}=no(e.target);return t&&e instanceof t}function kS(e){if(SW(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return bW(e)?{x:e.clientX,y:e.clientY}:null}const pm=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[pm.Translate.toString(e),pm.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),fO="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function EW(e){return e.matches(fO)?e:e.querySelector(fO)}const wW={display:"none"};function RW(e){let{id:t,value:n}=e;return fe.createElement("div",{id:t,style:wW},n)}function xW(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return fe.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function CW(){const[e,t]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const jD=S.createContext(null);function _W(e){const t=S.useContext(jD);S.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function TW(){const[e]=S.useState(()=>new Set),t=S.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[S.useCallback(r=>{let{type:i,event:s}=r;e.forEach(l=>{var c;return(c=l[i])==null?void 0:c.call(l,s)})},[e]),t]}const AW={draggable:`
35
+ To pick up a draggable item, press the space bar.
36
+ While dragging, use the arrow keys to move the item.
37
+ Press space again to drop the item in its new position, or press escape to cancel.
38
+ `},OW={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function MW(e){let{announcements:t=OW,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=AW}=e;const{announce:s,announcement:l}=CW(),c=uh("DndLiveRegion"),[f,d]=S.useState(!1);if(S.useEffect(()=>{d(!0)},[]),_W(S.useMemo(()=>({onDragStart(g){let{active:m}=g;s(t.onDragStart({active:m}))},onDragMove(g){let{active:m,over:y}=g;t.onDragMove&&s(t.onDragMove({active:m,over:y}))},onDragOver(g){let{active:m,over:y}=g;s(t.onDragOver({active:m,over:y}))},onDragEnd(g){let{active:m,over:y}=g;s(t.onDragEnd({active:m,over:y}))},onDragCancel(g){let{active:m,over:y}=g;s(t.onDragCancel({active:m,over:y}))}}),[s,t])),!f)return null;const p=fe.createElement(fe.Fragment,null,fe.createElement(RW,{id:r,value:i.draggable}),fe.createElement(xW,{id:c,announcement:l}));return n?Dn.createPortal(p,n):p}var tr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(tr||(tr={}));function gm(){}function jre(e,t){return S.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function $re(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const ri=Object.freeze({x:0,y:0});function $D(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function qD(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function IW(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function dO(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function DW(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function hO(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const qre=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=hO(t,t.left,t.top),s=[];for(const l of r){const{id:c}=l,f=n.get(c);if(f){const d=$D(hO(f),i);s.push({id:c,data:{droppableContainer:l,value:d}})}}return s.sort(qD)},Gre=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=dO(t),s=[];for(const l of r){const{id:c}=l,f=n.get(c);if(f){const d=dO(f),p=i.reduce((m,y,E)=>m+$D(d[E],y),0),g=Number((p/4).toFixed(4));s.push({id:c,data:{droppableContainer:l,value:g}})}}return s.sort(qD)};function LW(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=i-r,c=s-n;if(r<i&&n<s){const f=t.width*t.height,d=e.width*e.height,p=l*c,g=p/(f+d-p);return Number(g.toFixed(4))}return 0}const PW=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const f=LW(c,t);f>0&&i.push({id:l,data:{droppableContainer:s,value:f}})}}return i.sort(IW)};function kW(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function GD(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ri}function NW(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return i.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const FW=NW(1);function zW(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function BW(e,t,n){const r=zW(t);if(!r)return e;const{scaleX:i,scaleY:s,x:l,y:c}=r,f=e.left-l-(1-i)*parseFloat(n),d=e.top-c-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),p=i?e.width/i:e.width,g=s?e.height/s:e.height;return{width:p,height:g,top:d,right:f+p,bottom:d+g,left:f}}const HW={ignoreTransform:!1};function $c(e,t){t===void 0&&(t=HW);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:p}=no(e).getComputedStyle(e);d&&(n=BW(n,d,p))}const{top:r,left:i,width:s,height:l,bottom:c,right:f}=n;return{top:r,left:i,width:s,height:l,bottom:c,right:f}}function pO(e){return $c(e,{ignoreTransform:!0})}function UW(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function VW(e,t){return t===void 0&&(t=no(e).getComputedStyle(e)),t.position==="fixed"}function jW(e,t){t===void 0&&(t=no(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const s=t[i];return typeof s=="string"?n.test(s):!1})}function Tw(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(xw(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!ah(i)||UD(i)||n.includes(i))return n;const s=no(e).getComputedStyle(i);return i!==e&&jW(i,s)&&n.push(i),VW(i,s)?n:r(i.parentNode)}return e?r(e):n}function YD(e){const[t]=Tw(e,1);return t??null}function Q1(e){return!S0||!e?null:Vc(e)?e:Rw(e)?xw(e)||e===jc(e).scrollingElement?window:ah(e)?e:null:null}function KD(e){return Vc(e)?e.scrollX:e.scrollLeft}function XD(e){return Vc(e)?e.scrollY:e.scrollTop}function NS(e){return{x:KD(e),y:XD(e)}}var ar;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(ar||(ar={}));function WD(e){return!S0||!e?!1:e===document.scrollingElement}function QD(e){const t={x:0,y:0},n=WD(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:i,isLeft:s,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const $W={x:.2,y:.2};function qW(e,t,n,r,i){let{top:s,left:l,right:c,bottom:f}=n;r===void 0&&(r=10),i===void 0&&(i=$W);const{isTop:d,isBottom:p,isLeft:g,isRight:m}=QD(e),y={x:0,y:0},E={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!d&&s<=t.top+b.height?(y.y=ar.Backward,E.y=r*Math.abs((t.top+b.height-s)/b.height)):!p&&f>=t.bottom-b.height&&(y.y=ar.Forward,E.y=r*Math.abs((t.bottom-b.height-f)/b.height)),!m&&c>=t.right-b.width?(y.x=ar.Forward,E.x=r*Math.abs((t.right-b.width-c)/b.width)):!g&&l<=t.left+b.width&&(y.x=ar.Backward,E.x=r*Math.abs((t.left+b.width-l)/b.width)),{direction:y,speed:E}}function GW(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function JD(e){return e.reduce((t,n)=>Vu(t,NS(n)),ri)}function YW(e){return e.reduce((t,n)=>t+KD(n),0)}function KW(e){return e.reduce((t,n)=>t+XD(n),0)}function XW(e,t){if(t===void 0&&(t=$c),!e)return;const{top:n,left:r,bottom:i,right:s}=t(e);YD(e)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const WW=[["x",["left","right"],YW],["y",["top","bottom"],KW]];class Aw{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Tw(n),i=JD(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,c]of WW)for(const f of l)Object.defineProperty(this,f,{get:()=>{const d=c(r),p=i[s]-d;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ed{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function QW(e){const{EventTarget:t}=no(e);return e instanceof t?e:jc(e)}function J1(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var No;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(No||(No={}));function gO(e){e.preventDefault()}function JW(e){e.stopPropagation()}var Yt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Yt||(Yt={}));const ZD={start:[Yt.Space,Yt.Enter],cancel:[Yt.Esc],end:[Yt.Space,Yt.Enter,Yt.Tab]},ZW=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Yt.Right:return{...n,x:n.x+25};case Yt.Left:return{...n,x:n.x-25};case Yt.Down:return{...n,y:n.y+25};case Yt.Up:return{...n,y:n.y-25}}};class e5{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ed(jc(n)),this.windowListeners=new ed(no(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(No.Resize,this.handleCancel),this.windowListeners.add(No.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(No.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&XW(r),n(ri)}handleKeyDown(t){if(_w(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:s=ZD,coordinateGetter:l=ZW,scrollBehavior:c="smooth"}=i,{code:f}=t;if(s.end.includes(f)){this.handleEnd(t);return}if(s.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:d}=r.current,p=d?{x:d.left,y:d.top}:ri;this.referenceCoordinates||(this.referenceCoordinates=p);const g=l(t,{active:n,context:r.current,currentCoordinates:p});if(g){const m=hm(g,p),y={x:0,y:0},{scrollableAncestors:E}=r.current;for(const b of E){const x=t.code,{isTop:C,isRight:R,isLeft:_,isBottom:O,maxScroll:T,minScroll:M}=QD(b),A=GW(b),D={x:Math.min(x===Yt.Right?A.right-A.width/2:A.right,Math.max(x===Yt.Right?A.left:A.left+A.width/2,g.x)),y:Math.min(x===Yt.Down?A.bottom-A.height/2:A.bottom,Math.max(x===Yt.Down?A.top:A.top+A.height/2,g.y))},L=x===Yt.Right&&!R||x===Yt.Left&&!_,F=x===Yt.Down&&!O||x===Yt.Up&&!C;if(L&&D.x!==g.x){const B=b.scrollLeft+m.x,j=x===Yt.Right&&B<=T.x||x===Yt.Left&&B>=M.x;if(j&&!m.y){b.scrollTo({left:B,behavior:c});return}j?y.x=b.scrollLeft-B:y.x=x===Yt.Right?b.scrollLeft-T.x:b.scrollLeft-M.x,y.x&&b.scrollBy({left:-y.x,behavior:c});break}else if(F&&D.y!==g.y){const B=b.scrollTop+m.y,j=x===Yt.Down&&B<=T.y||x===Yt.Up&&B>=M.y;if(j&&!m.x){b.scrollTo({top:B,behavior:c});return}j?y.y=b.scrollTop-B:y.y=x===Yt.Down?b.scrollTop-T.y:b.scrollTop-M.y,y.y&&b.scrollBy({top:-y.y,behavior:c});break}}this.handleMove(t,Vu(hm(g,this.referenceCoordinates),y))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}e5.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ZD,onActivation:i}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=s.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function mO(e){return!!(e&&"distance"in e)}function vO(e){return!!(e&&"delay"in e)}class Ow{constructor(t,n,r){var i;r===void 0&&(r=QW(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=jc(l),this.documentListeners=new ed(this.document),this.listeners=new ed(r),this.windowListeners=new ed(no(l)),this.initialCoordinates=(i=kS(s))!=null?i:ri,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(No.Resize,this.handleCancel),this.windowListeners.add(No.DragStart,gO),this.windowListeners.add(No.VisibilityChange,this.handleCancel),this.windowListeners.add(No.ContextMenu,gO),this.documentListeners.add(No.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(vO(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(mO(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(No.Click,JW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(No.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:s}=this,{onMove:l,options:{activationConstraint:c}}=s;if(!i)return;const f=(n=kS(t))!=null?n:ri,d=hm(i,f);if(!r&&c){if(mO(c)){if(c.tolerance!=null&&J1(d,c.tolerance))return this.handleCancel();if(J1(d,c.distance))return this.handleStart()}if(vO(c)&&J1(d,c.tolerance))return this.handleCancel();this.handlePending(c,d);return}t.cancelable&&t.preventDefault(),l(f)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Yt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const eQ={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class t5 extends Ow{constructor(t){const{event:n}=t,r=jc(n.target);super(t,eQ,r)}}t5.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const tQ={move:{name:"mousemove"},end:{name:"mouseup"}};var FS;(function(e){e[e.RightClick=2]="RightClick"})(FS||(FS={}));class nQ extends Ow{constructor(t){super(t,tQ,jc(t.event.target))}}nQ.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===FS.RightClick?!1:(r==null||r({event:n}),!0)}}];const Z1={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class rQ extends Ow{constructor(t){super(t,Z1)}static setup(){return window.addEventListener(Z1.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Z1.move.name,t)};function t(){}}}rQ.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var td;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(td||(td={}));var mm;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(mm||(mm={}));function oQ(e){let{acceleration:t,activator:n=td.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:l=5,order:c=mm.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:p,delta:g,threshold:m}=e;const y=sQ({delta:g,disabled:!s}),[E,b]=yW(),x=S.useRef({x:0,y:0}),C=S.useRef({x:0,y:0}),R=S.useMemo(()=>{switch(n){case td.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case td.DraggableRect:return i}},[n,i,f]),_=S.useRef(null),O=S.useCallback(()=>{const M=_.current;if(!M)return;const A=x.current.x*C.current.x,D=x.current.y*C.current.y;M.scrollBy(A,D)},[]),T=S.useMemo(()=>c===mm.TreeOrder?[...d].reverse():d,[c,d]);S.useEffect(()=>{if(!s||!d.length||!R){b();return}for(const M of T){if((r==null?void 0:r(M))===!1)continue;const A=d.indexOf(M),D=p[A];if(!D)continue;const{direction:L,speed:F}=qW(M,D,R,t,m);for(const B of["x","y"])y[B][L[B]]||(F[B]=0,L[B]=0);if(F.x>0||F.y>0){b(),_.current=M,E(O,l),x.current=F,C.current=L;return}}x.current={x:0,y:0},C.current={x:0,y:0},b()},[t,O,r,b,s,l,JSON.stringify(R),JSON.stringify(y),E,d,T,p,JSON.stringify(m)])}const iQ={x:{[ar.Backward]:!1,[ar.Forward]:!1},y:{[ar.Backward]:!1,[ar.Forward]:!1}};function sQ(e){let{delta:t,disabled:n}=e;const r=PS(t);return lh(i=>{if(n||!r||!i)return iQ;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[ar.Backward]:i.x[ar.Backward]||s.x===-1,[ar.Forward]:i.x[ar.Forward]||s.x===1},y:{[ar.Backward]:i.y[ar.Backward]||s.y===-1,[ar.Forward]:i.y[ar.Forward]||s.y===1}}},[n,t,r])}function aQ(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return lh(i=>{var s;return t==null?null:(s=r??i)!=null?s:null},[r,t])}function lQ(e,t){return S.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,s=i.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var Ed;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ed||(Ed={}));var zS;(function(e){e.Optimized="optimized"})(zS||(zS={}));const yO=new Map;function uQ(e,t){let{dragging:n,dependencies:r,config:i}=t;const[s,l]=S.useState(null),{frequency:c,measure:f,strategy:d}=i,p=S.useRef(e),g=x(),m=Sd(g),y=S.useCallback(function(C){C===void 0&&(C=[]),!m.current&&l(R=>R===null?C:R.concat(C.filter(_=>!R.includes(_))))},[m]),E=S.useRef(null),b=lh(C=>{if(g&&!n)return yO;if(!C||C===yO||p.current!==e||s!=null){const R=new Map;for(let _ of e){if(!_)continue;if(s&&s.length>0&&!s.includes(_.id)&&_.rect.current){R.set(_.id,_.rect.current);continue}const O=_.node.current,T=O?new Aw(f(O),O):null;_.rect.current=T,T&&R.set(_.id,T)}return R}return C},[e,s,n,g,f]);return S.useEffect(()=>{p.current=e},[e]),S.useEffect(()=>{g||y()},[n,g]),S.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),S.useEffect(()=>{g||typeof c!="number"||E.current!==null||(E.current=setTimeout(()=>{y(),E.current=null},c))},[c,g,y,...r]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:s!=null};function x(){switch(d){case Ed.Always:return!1;case Ed.BeforeDragging:return n;default:return!n}}}function n5(e,t){return lh(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function cQ(e,t){return n5(e,t)}function fQ(e){let{callback:t,disabled:n}=e;const r=Cw(t),i=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return S.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function E0(e){let{callback:t,disabled:n}=e;const r=Cw(t),i=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return S.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function dQ(e){return new Aw($c(e),e)}function bO(e,t,n){t===void 0&&(t=dQ);const[r,i]=S.useState(null);function s(){i(f=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=f??n)!=null?d:null}const p=t(e);return JSON.stringify(f)===JSON.stringify(p)?f:p})}const l=fQ({callback(f){if(e)for(const d of f){const{type:p,target:g}=d;if(p==="childList"&&g instanceof HTMLElement&&g.contains(e)){s();break}}}}),c=E0({callback:s});return Di(()=>{s(),e?(c==null||c.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),l==null||l.disconnect())},[e]),r}function hQ(e){const t=n5(e);return GD(e,t)}const SO=[];function pQ(e){const t=S.useRef(e),n=lh(r=>e?r&&r!==SO&&e&&t.current&&e.parentNode===t.current.parentNode?r:Tw(e):SO,[e]);return S.useEffect(()=>{t.current=e},[e]),n}function gQ(e){const[t,n]=S.useState(null),r=S.useRef(e),i=S.useCallback(s=>{const l=Q1(s.target);l&&n(c=>c?(c.set(l,NS(l)),new Map(c)):null)},[]);return S.useEffect(()=>{const s=r.current;if(e!==s){l(s);const c=e.map(f=>{const d=Q1(f);return d?(d.addEventListener("scroll",i,{passive:!0}),[d,NS(d)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(s)};function l(c){c.forEach(f=>{const d=Q1(f);d==null||d.removeEventListener("scroll",i)})}},[i,e]),S.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>Vu(s,l),ri):JD(e):ri,[e,t])}function EO(e,t){t===void 0&&(t=[]);const n=S.useRef(null);return S.useEffect(()=>{n.current=null},t),S.useEffect(()=>{const r=e!==ri;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?hm(e,n.current):ri}function mQ(e){S.useEffect(()=>{if(!S0)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function vQ(e,t){return S.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:s}=r;return n[i]=l=>{s(l,t)},n},{}),[e,t])}function r5(e){return S.useMemo(()=>e?UW(e):null,[e])}const wO=[];function yQ(e,t){t===void 0&&(t=$c);const[n]=e,r=r5(n?no(n):null),[i,s]=S.useState(wO);function l(){s(()=>e.length?e.map(f=>WD(f)?r:new Aw(t(f),f)):wO)}const c=E0({callback:l});return Di(()=>{c==null||c.disconnect(),l(),e.forEach(f=>c==null?void 0:c.observe(f))},[e]),i}function bQ(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ah(t)?t:e}function SQ(e){let{measure:t}=e;const[n,r]=S.useState(null),i=S.useCallback(d=>{for(const{target:p}of d)if(ah(p)){r(g=>{const m=t(p);return g?{...g,width:m.width,height:m.height}:m});break}},[t]),s=E0({callback:i}),l=S.useCallback(d=>{const p=bQ(d);s==null||s.disconnect(),p&&(s==null||s.observe(p)),r(p?t(p):null)},[t,s]),[c,f]=dm(l);return S.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const EQ=[{sensor:t5,options:{}},{sensor:e5,options:{}}],wQ={current:{}},Og={draggable:{measure:pO},droppable:{measure:pO,strategy:Ed.WhileDragging,frequency:zS.Optimized},dragOverlay:{measure:$c}};class nd extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const RQ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new nd,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:gm},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Og,measureDroppableContainers:gm,windowRect:null,measuringScheduled:!1},xQ={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:gm,draggableNodes:new Map,over:null,measureDroppableContainers:gm},w0=S.createContext(xQ),o5=S.createContext(RQ);function CQ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new nd}}}function _Q(e,t){switch(t.type){case tr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case tr.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case tr.DragEnd:case tr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case tr.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new nd(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case tr.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new nd(e.droppable.containers);return l.set(n,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case tr.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new nd(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function TQ(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=S.useContext(w0),s=PS(r),l=PS(n==null?void 0:n.id);return S.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!_w(s)||document.activeElement===s.target)return;const c=i.get(l);if(!c)return;const{activatorNode:f,node:d}=c;if(!f.current&&!d.current)return;requestAnimationFrame(()=>{for(const p of[f.current,d.current]){if(!p)continue;const g=EW(p);if(g){g.focus();break}}})}},[r,t,i,l,s]),null}function AQ(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,s)=>s({transform:i,...r}),n):n}function OQ(e){return S.useMemo(()=>({draggable:{...Og.draggable,...e==null?void 0:e.draggable},droppable:{...Og.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Og.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function MQ(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const s=S.useRef(!1),{x:l,y:c}=typeof i=="boolean"?{x:i,y:i}:i;Di(()=>{if(!l&&!c||!t){s.current=!1;return}if(s.current||!r)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const p=n(d),g=GD(p,r);if(l||(g.x=0),c||(g.y=0),s.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const m=YD(d);m&&m.scrollBy({top:g.y,left:g.x})}},[t,l,c,r,n])}const i5=S.createContext({...ri,scaleX:1,scaleY:1});var Ws;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ws||(Ws={}));const Yre=S.memo(function(t){var n,r,i,s;let{id:l,accessibility:c,autoScroll:f=!0,children:d,sensors:p=EQ,collisionDetection:g=PW,measuring:m,modifiers:y,...E}=t;const b=S.useReducer(_Q,void 0,CQ),[x,C]=b,[R,_]=TW(),[O,T]=S.useState(Ws.Uninitialized),M=O===Ws.Initialized,{draggable:{active:A,nodes:D,translate:L},droppable:{containers:F}}=x,B=A!=null?D.get(A):null,j=S.useRef({initial:null,translated:null}),z=S.useMemo(()=>{var Ze;return A!=null?{id:A,data:(Ze=B==null?void 0:B.data)!=null?Ze:wQ,rect:j}:null},[A,B]),G=S.useRef(null),[V,P]=S.useState(null),[q,U]=S.useState(null),K=Sd(E,Object.values(E)),Z=uh("DndDescribedBy",l),k=S.useMemo(()=>F.getEnabled(),[F]),$=OQ(m),{droppableRects:X,measureDroppableContainers:te,measuringScheduled:ue}=uQ(k,{dragging:M,dependencies:[L.x,L.y],config:$.droppable}),ne=aQ(D,A),ce=S.useMemo(()=>q?kS(q):null,[q]),Q=qt(),ve=cQ(ne,$.draggable.measure);MQ({activeNode:A!=null?D.get(A):null,config:Q.layoutShiftCompensation,initialRect:ve,measure:$.draggable.measure});const Ee=bO(ne,$.draggable.measure,ve),le=bO(ne?ne.parentElement:null),me=S.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ce=F.getNodeFor((n=me.current.over)==null?void 0:n.id),Ie=SQ({measure:$.dragOverlay.measure}),Me=(r=Ie.nodeRef.current)!=null?r:ne,be=M?(i=Ie.rect)!=null?i:Ee:null,xe=!!(Ie.nodeRef.current&&Ie.rect),we=hQ(xe?null:Ee),De=r5(Me?no(Me):null),H=pQ(M?Ce??ne:null),Y=yQ(H),ee=AQ(y,{transform:{x:L.x-we.x,y:L.y-we.y,scaleX:1,scaleY:1},activatorEvent:q,active:z,activeNodeRect:Ee,containerNodeRect:le,draggingNodeRect:be,over:me.current.over,overlayNodeRect:Ie.rect,scrollableAncestors:H,scrollableAncestorRects:Y,windowRect:De}),ie=ce?Vu(ce,L):null,ae=gQ(H),oe=EO(ae),Oe=EO(ae,[Ee]),Be=Vu(ee,oe),Fe=be?FW(be,ee):null,Ke=z&&Fe?g({active:z,collisionRect:Fe,droppableRects:X,droppableContainers:k,pointerCoordinates:ie}):null,it=DW(Ke,"id"),[rt,kt]=S.useState(null),ut=xe?ee:Vu(ee,Oe),he=kW(ut,(s=rt==null?void 0:rt.rect)!=null?s:null,Ee),ze=S.useRef(null),He=S.useCallback((Ze,bt)=>{let{sensor:ct,options:Bt}=bt;if(G.current==null)return;const sn=D.get(G.current);if(!sn)return;const qe=Ze.nativeEvent,Ct=new ct({active:G.current,activeNode:sn,event:qe,options:Bt,context:me,onAbort(Ht){if(!D.get(Ht))return;const{onDragAbort:vn}=K.current,gn={id:Ht};vn==null||vn(gn),R({type:"onDragAbort",event:gn})},onPending(Ht,an,vn,gn){if(!D.get(Ht))return;const{onDragPending:kr}=K.current,Vn={id:Ht,constraint:an,initialCoordinates:vn,offset:gn};kr==null||kr(Vn),R({type:"onDragPending",event:Vn})},onStart(Ht){const an=G.current;if(an==null)return;const vn=D.get(an);if(!vn)return;const{onDragStart:gn}=K.current,cr={activatorEvent:qe,active:{id:an,data:vn.data,rect:j}};Dn.unstable_batchedUpdates(()=>{gn==null||gn(cr),T(Ws.Initializing),C({type:tr.DragStart,initialCoordinates:Ht,active:an}),R({type:"onDragStart",event:cr}),P(ze.current),U(qe)})},onMove(Ht){C({type:tr.DragMove,coordinates:Ht})},onEnd:en(tr.DragEnd),onCancel:en(tr.DragCancel)});ze.current=Ct;function en(Ht){return async function(){const{active:vn,collisions:gn,over:cr,scrollAdjustedTranslate:kr}=me.current;let Vn=null;if(vn&&kr){const{cancelDrop:ro}=K.current;Vn={activatorEvent:qe,active:vn,collisions:gn,delta:kr,over:cr},Ht===tr.DragEnd&&typeof ro=="function"&&await Promise.resolve(ro(Vn))&&(Ht=tr.DragCancel)}G.current=null,Dn.unstable_batchedUpdates(()=>{C({type:Ht}),T(Ws.Uninitialized),kt(null),P(null),U(null),ze.current=null;const ro=Ht===tr.DragEnd?"onDragEnd":"onDragCancel";if(Vn){const Nr=K.current[ro];Nr==null||Nr(Vn),R({type:ro,event:Vn})}})}}},[D]),tt=S.useCallback((Ze,bt)=>(ct,Bt)=>{const sn=ct.nativeEvent,qe=D.get(Bt);if(G.current!==null||!qe||sn.dndKit||sn.defaultPrevented)return;const Ct={active:qe};Ze(ct,bt.options,Ct)===!0&&(sn.dndKit={capturedBy:bt.sensor},G.current=Bt,He(ct,bt))},[D,He]),mt=lQ(p,tt);mQ(p),Di(()=>{Ee&&O===Ws.Initializing&&T(Ws.Initialized)},[Ee,O]),S.useEffect(()=>{const{onDragMove:Ze}=K.current,{active:bt,activatorEvent:ct,collisions:Bt,over:sn}=me.current;if(!bt||!ct)return;const qe={active:bt,activatorEvent:ct,collisions:Bt,delta:{x:Be.x,y:Be.y},over:sn};Dn.unstable_batchedUpdates(()=>{Ze==null||Ze(qe),R({type:"onDragMove",event:qe})})},[Be.x,Be.y]),S.useEffect(()=>{const{active:Ze,activatorEvent:bt,collisions:ct,droppableContainers:Bt,scrollAdjustedTranslate:sn}=me.current;if(!Ze||G.current==null||!bt||!sn)return;const{onDragOver:qe}=K.current,Ct=Bt.get(it),en=Ct&&Ct.rect.current?{id:Ct.id,rect:Ct.rect.current,data:Ct.data,disabled:Ct.disabled}:null,Ht={active:Ze,activatorEvent:bt,collisions:ct,delta:{x:sn.x,y:sn.y},over:en};Dn.unstable_batchedUpdates(()=>{kt(en),qe==null||qe(Ht),R({type:"onDragOver",event:Ht})})},[it]),Di(()=>{me.current={activatorEvent:q,active:z,activeNode:ne,collisionRect:Fe,collisions:Ke,droppableRects:X,draggableNodes:D,draggingNode:Me,draggingNodeRect:be,droppableContainers:F,over:rt,scrollableAncestors:H,scrollAdjustedTranslate:Be},j.current={initial:be,translated:Fe}},[z,ne,Ke,Fe,D,Me,be,X,F,rt,H,Be]),oQ({...Q,delta:L,draggingRect:Fe,pointerCoordinates:ie,scrollableAncestors:H,scrollableAncestorRects:Y});const nt=S.useMemo(()=>({active:z,activeNode:ne,activeNodeRect:Ee,activatorEvent:q,collisions:Ke,containerNodeRect:le,dragOverlay:Ie,draggableNodes:D,droppableContainers:F,droppableRects:X,over:rt,measureDroppableContainers:te,scrollableAncestors:H,scrollableAncestorRects:Y,measuringConfiguration:$,measuringScheduled:ue,windowRect:De}),[z,ne,Ee,q,Ke,le,Ie,D,F,X,rt,te,H,Y,$,ue,De]),yt=S.useMemo(()=>({activatorEvent:q,activators:mt,active:z,activeNodeRect:Ee,ariaDescribedById:{draggable:Z},dispatch:C,draggableNodes:D,over:rt,measureDroppableContainers:te}),[q,mt,z,Ee,C,Z,D,rt,te]);return fe.createElement(jD.Provider,{value:_},fe.createElement(w0.Provider,{value:yt},fe.createElement(o5.Provider,{value:nt},fe.createElement(i5.Provider,{value:he},d)),fe.createElement(TQ,{disabled:(c==null?void 0:c.restoreFocus)===!1})),fe.createElement(MW,{...c,hiddenTextDescribedById:Z}));function qt(){const Ze=(V==null?void 0:V.autoScrollEnabled)===!1,bt=typeof f=="object"?f.enabled===!1:f===!1,ct=M&&!Ze&&!bt;return typeof f=="object"?{...f,enabled:ct}:{enabled:ct}}}),IQ=S.createContext(null),RO="button",DQ="Draggable";function LQ(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const s=uh(DQ),{activators:l,activatorEvent:c,active:f,activeNodeRect:d,ariaDescribedById:p,draggableNodes:g,over:m}=S.useContext(w0),{role:y=RO,roleDescription:E="draggable",tabIndex:b=0}=i??{},x=(f==null?void 0:f.id)===t,C=S.useContext(x?i5:IQ),[R,_]=dm(),[O,T]=dm(),M=vQ(l,t),A=Sd(n);Di(()=>(g.set(t,{id:t,key:s,node:R,activatorNode:O,data:A}),()=>{const L=g.get(t);L&&L.key===s&&g.delete(t)}),[g,t]);const D=S.useMemo(()=>({role:y,tabIndex:b,"aria-disabled":r,"aria-pressed":x&&y===RO?!0:void 0,"aria-roledescription":E,"aria-describedby":p.draggable}),[r,y,b,x,E,p.draggable]);return{active:f,activatorEvent:c,activeNodeRect:d,attributes:D,isDragging:x,listeners:r?void 0:M,node:R,over:m,setNodeRef:_,setActivatorNodeRef:T,transform:C}}function PQ(){return S.useContext(o5)}const kQ="Droppable",NQ={timeout:25};function FQ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const s=uh(kQ),{active:l,dispatch:c,over:f,measureDroppableContainers:d}=S.useContext(w0),p=S.useRef({disabled:n}),g=S.useRef(!1),m=S.useRef(null),y=S.useRef(null),{disabled:E,updateMeasurementsFor:b,timeout:x}={...NQ,...i},C=Sd(b??r),R=S.useCallback(()=>{if(!g.current){g.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{d(Array.isArray(C.current)?C.current:[C.current]),y.current=null},x)},[x]),_=E0({callback:R,disabled:E||!l}),O=S.useCallback((D,L)=>{_&&(L&&(_.unobserve(L),g.current=!1),D&&_.observe(D))},[_]),[T,M]=dm(O),A=Sd(t);return S.useEffect(()=>{!_||!T.current||(_.disconnect(),g.current=!1,_.observe(T.current))},[T,_]),S.useEffect(()=>(c({type:tr.RegisterDroppable,element:{id:r,key:s,disabled:n,node:T,rect:m,data:A}}),()=>c({type:tr.UnregisterDroppable,key:s,id:r})),[r]),S.useEffect(()=>{n!==p.current.disabled&&(c({type:tr.SetDroppableDisabled,id:r,key:s,disabled:n}),p.current.disabled=n)},[r,s,n,c]),{active:l,rect:m,isOver:(f==null?void 0:f.id)===r,node:T,over:f,setNodeRef:M}}const R0=0,Ma=1,qc=2,s5=4;function xO(e){return()=>e}function zQ(e){e()}function vm(e,t){return n=>e(t(n))}function CO(e,t){return()=>e(t)}function BQ(e,t){return n=>e(t,n)}function Mw(e){return e!==void 0}function HQ(...e){return()=>{e.map(zQ)}}function ch(){}function x0(e,t){return t(e),e}function UQ(e,t){return t(e)}function Rn(...e){return e}function Qt(e,t){return e(Ma,t)}function xt(e,t){e(R0,t)}function Iw(e){e(qc)}function _n(e){return e(s5)}function Qe(e,t){return Qt(e,BQ(t,R0))}function Zo(e,t){const n=e(Ma,r=>{n(),t(r)});return n}function _O(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function a5(e,t){return e===t}function wn(e=a5){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function lt(e){return t=>n=>{e(n)&&t(n)}}function Ye(e){return t=>vm(t,e)}function bi(e){return t=>()=>{t(e)}}function Pe(e,...t){const n=VQ(...t);return(r,i)=>{switch(r){case qc:Iw(e);return;case Ma:return Qt(e,n(i))}}}function Ri(e,t){return n=>r=>{n(t=e(t,r))}}function Al(e){return t=>n=>{e>0?e--:t(n)}}function ds(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function At(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((s,l)=>{const c=Math.pow(2,l);Qt(s,f=>{const d=n;n=n|c,t[l]=f,d!==i&&n===i&&r&&(r(),r=null)})}),s=>l=>{const c=()=>{s([l].concat(t))};n===i?c():r=c}}function VQ(...e){return t=>e.reduceRight(UQ,t)}function jQ(e){let t,n;const r=()=>t==null?void 0:t();return function(i,s){switch(i){case Ma:return s?n===s?void 0:(r(),n=s,t=Qt(e,s),t):(r(),ch);case qc:r(),n=null;return}}}function Ne(e){let t=e;const n=zt();return(r,i)=>{switch(r){case R0:t=i;break;case Ma:{i(t);break}case s5:return t}return n(r,i)}}function xr(e,t){return x0(Ne(t),n=>Qe(e,n))}function zt(){const e=[];return(t,n)=>{switch(t){case R0:e.slice().forEach(r=>{r(n)});return;case qc:e.splice(0,e.length);return;case Ma:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}}}function mo(e){return x0(zt(),t=>Qe(e,t))}function $t(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:$Q(),singleton:n}}const $Q=()=>Symbol();function qQ(e){const t=new Map,n=({constructor:r,dependencies:i,id:s,singleton:l})=>{if(l&&t.has(s))return t.get(s);const c=r(i.map(f=>n(f)));return l&&t.set(s,c),c};return n(e)}function Xn(...e){const t=zt(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((s,l)=>{const c=Math.pow(2,l);Qt(s,f=>{n[l]=f,r=r|c,r===i&&xt(t,n)})}),function(s,l){switch(s){case qc:{Iw(t);return}case Ma:return r===i&&l(n),Qt(t,l)}}}function at(e,t=a5){return Pe(e,wn(t))}function BS(...e){return function(t,n){switch(t){case qc:return;case Ma:return HQ(...e.map(r=>Qt(r,n)))}}}var vo=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(vo||{});const GQ={0:"debug",3:"error",1:"log",2:"warn"},YQ=()=>typeof globalThis>"u"?window:globalThis,Ia=$t(()=>{const e=Ne(3);return{log:Ne((t,n,r=1)=>{var i;const s=(i=YQ().VIRTUOSO_LOG_LEVEL)!=null?i:_n(e);r>=s&&console[GQ[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function Ol(e,t,n){return Dw(e,t,n).callbackRef}function Dw(e,t,n){const r=fe.useRef(null);let i=l=>{};const s=fe.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(l=>{const c=()=>{const f=l[0].target;f.offsetParent!==null&&e(f)};n?c():requestAnimationFrame(c)}):null,[e,n]);return i=l=>{l&&t?(s==null||s.observe(l),r.current=l):(r.current&&(s==null||s.unobserve(r.current)),r.current=null)},{callbackRef:i,ref:r}}function KQ(e,t,n,r,i,s,l,c,f){const d=fe.useCallback(p=>{const g=XQ(p.children,t,"offsetHeight",i);let m=p.parentElement;for(;!m.dataset.virtuosoScroller;)m=m.parentElement;const y=m.lastElementChild.dataset.viewportType==="window";let E;y&&(E=m.ownerDocument.defaultView);const b=l?l.scrollTop:y?E.scrollY||E.document.documentElement.scrollTop:m.scrollTop,x=l?l.scrollHeight:y?E.document.documentElement.scrollHeight:m.scrollHeight,C=l?l.offsetHeight:y?E.innerHeight:m.offsetHeight;r({scrollHeight:x,scrollTop:Math.max(b,0),viewportHeight:C}),g!==null&&e(g)},[e,t,i,s,l,r,c]);return Dw(d,n,f)}function XQ(e,t,n,r){const i=e.length;if(i===0)return null;const s=[];for(let l=0;l<i;l++){const c=e.item(l);if(c.dataset.index===void 0)continue;const f=parseInt(c.dataset.index),d=parseFloat(c.dataset.knownSize),p=t(c,n);if(p===0&&r("Zero-sized element, this should not happen",{child:c},vo.ERROR),p===d)continue;const g=s[s.length-1];s.length===0||g.size!==p||g.endIndex!==f-1?s.push({endIndex:f,size:p,startIndex:f}):s[s.length-1].endIndex++}return s}function l5(e,t,n){const r=fe.useRef(null),i=fe.useCallback(f=>{if(!(f!=null&&f.offsetParent))return;const d=f.getBoundingClientRect(),p=d.width;let g,m;if(t){const y=t.getBoundingClientRect(),E=d.top-y.top;m=y.height-Math.max(0,E),g=E+t.scrollTop}else{const y=l.current.ownerDocument.defaultView;m=y.innerHeight-Math.max(0,d.top),g=d.top+y.scrollY}r.current={offsetTop:g,visibleHeight:m,visibleWidth:p},e(r.current)},[e,t]),{callbackRef:s,ref:l}=Dw(i,!0,n),c=fe.useCallback(()=>{i(l.current)},[i,l]);return fe.useEffect(()=>{var f;if(t){t.addEventListener("scroll",c);const d=new ResizeObserver(()=>{requestAnimationFrame(c)});return d.observe(t),()=>{t.removeEventListener("scroll",c),d.unobserve(t)}}else{const d=(f=l.current)==null?void 0:f.ownerDocument.defaultView;return d==null||d.addEventListener("scroll",c),d==null||d.addEventListener("resize",c),()=>{d==null||d.removeEventListener("scroll",c),d==null||d.removeEventListener("resize",c)}}},[c,t,l]),s}const Pr=$t(()=>{const e=zt(),t=zt(),n=Ne(0),r=zt(),i=Ne(0),s=zt(),l=zt(),c=Ne(0),f=Ne(0),d=Ne(0),p=Ne(0),g=zt(),m=zt(),y=Ne(!1),E=Ne(!1),b=Ne(!1);return Qe(Pe(e,Ye(({scrollTop:x})=>x)),t),Qe(Pe(e,Ye(({scrollHeight:x})=>x)),l),Qe(t,i),{deviation:n,fixedFooterHeight:d,fixedHeaderHeight:f,footerHeight:p,headerHeight:c,horizontalDirection:E,scrollBy:m,scrollContainerState:e,scrollHeight:l,scrollingInProgress:y,scrollTo:g,scrollTop:t,skipAnimationFrameInResizeObserver:b,smoothScrollTargetReached:r,statefulScrollTop:i,viewportHeight:s}},[],{singleton:!0}),wd={lvl:0};function u5(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const s=[];for(let l=1;l<n;l++){const{index:c,value:f}=t(e[l]);s.push({end:c-1,start:r,value:i}),r=c,i=f}return s.push({end:1/0,start:r,value:i}),s}function hn(e){return e===wd}function Rd(e,t){if(!hn(e))return t===e.k?e.v:t<e.k?Rd(e.l,t):Rd(e.r,t)}function oi(e,t,n="k"){if(hn(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=oi(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return oi(e.l,t,n)}function po(e,t,n){return hn(e)?d5(t,n,1):t===e.k?er(e,{k:t,v:n}):t<e.k?TO(er(e,{l:po(e.l,t,n)})):TO(er(e,{r:po(e.r,t,n)}))}function ju(){return wd}function $u(e,t,n){if(hn(e))return[];const r=oi(e,t)[0];return WQ(US(e,r,n))}function HS(e,t){if(hn(e))return wd;const{k:n,l:r,r:i}=e;if(t===n){if(hn(r))return i;if(hn(i))return r;{const[s,l]=f5(r);return Mg(er(e,{k:s,l:c5(r),v:l}))}}else return t<n?Mg(er(e,{l:HS(r,t)})):Mg(er(e,{r:HS(i,t)}))}function nl(e){return hn(e)?[]:[...nl(e.l),{k:e.k,v:e.v},...nl(e.r)]}function US(e,t,n){if(hn(e))return[];const{k:r,l:i,r:s,v:l}=e;let c=[];return r>t&&(c=c.concat(US(i,t,n))),r>=t&&r<=n&&c.push({k:r,v:l}),r<=n&&(c=c.concat(US(s,t,n))),c}function Mg(e){const{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(eb(t))return h5(er(e,{lvl:n-1}));if(!hn(t)&&!hn(t.r))return er(t.r,{l:er(t,{r:t.r.l}),lvl:n,r:er(e,{l:t.r.r,lvl:n-1})});throw new Error("Unexpected empty nodes")}else{if(eb(e))return VS(er(e,{lvl:n-1}));if(!hn(r)&&!hn(r.l)){const i=r.l,s=eb(i)?r.lvl-1:r.lvl;return er(i,{l:er(e,{lvl:n-1,r:i.l}),lvl:i.lvl+1,r:VS(er(r,{l:i.r,lvl:s}))})}else throw new Error("Unexpected empty nodes")}}function er(e,t){return d5(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function c5(e){return hn(e.r)?e.l:Mg(er(e,{r:c5(e.r)}))}function eb(e){return hn(e)||e.lvl>e.r.lvl}function f5(e){return hn(e.r)?[e.k,e.v]:f5(e.r)}function d5(e,t,n,r=wd,i=wd){return{k:e,l:r,lvl:n,r:i,v:t}}function TO(e){return VS(h5(e))}function h5(e){const{l:t}=e;return!hn(t)&&t.lvl===e.lvl?er(t,{r:er(e,{l:t.r})}):e}function VS(e){const{lvl:t,r:n}=e;return!hn(n)&&!hn(n.r)&&n.lvl===t&&n.r.lvl===t?er(n,{l:er(e,{r:n.l}),lvl:t+1}):e}function WQ(e){return u5(e,({k:t,v:n})=>({index:t,value:n}))}function p5(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function xd(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const Lw=$t(()=>({recalcInProgress:Ne(!1)}),[],{singleton:!0});function g5(e,t,n){return e[ym(e,t,n)]}function ym(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const s=Math.floor((r+i)/2),l=e[s],c=n(l,t);if(c===0)return s;if(c===-1){if(i-r<2)return s-1;i=s-1}else{if(i===r)return s;r=s+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function QQ(e,t,n,r){const i=ym(e,t,r),s=ym(e,n,r,i);return e.slice(i,s+1)}function wa(e,t){return Math.round(e.getBoundingClientRect()[t])}function C0(e){return!hn(e.groupOffsetTree)}function Pw({index:e},t){return t===e?0:t<e?-1:1}function JQ(){return{groupIndices:[],groupOffsetTree:ju(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:ju()}}function ZQ(e,t){let n=hn(e)?0:1/0;for(const r of t){const{endIndex:i,size:s,startIndex:l}=r;if(n=Math.min(n,l),hn(e)){e=po(e,0,s);continue}const c=$u(e,l-1,i+1);if(c.some(sJ(r)))continue;let f=!1,d=!1;for(const{end:p,start:g,value:m}of c)f?(i>=g||s===m)&&(e=HS(e,g)):(d=m!==s,f=!0),p>i&&i>=g&&m!==s&&(e=po(e,i+1,m));d&&(e=po(e,l,s))}return[e,n]}function eJ(e){return typeof e.groupIndex<"u"}function tJ({offset:e},t){return t===e?0:t<e?-1:1}function Cd(e,t,n){if(t.length===0)return 0;const{index:r,offset:i,size:s}=g5(t,e,Pw),l=e-r,c=s*l+(l-1)*n+i;return c>0?c+n:c}function m5(e,t){if(!C0(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function v5(e,t,n){if(eJ(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=m5(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function nJ(e,t,n,r=0){return r>0&&(t=Math.max(t,g5(e,r,Pw).offset)),u5(QQ(e,t,n,tJ),iJ)}function rJ(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,vo.DEBUG);const s=e.sizeTree;let l=s,c=0;if(n.length>0&&hn(s)&&t.length===2){const m=t[0].size,y=t[1].size;l=n.reduce((E,b)=>po(po(E,b,m),b+1,y),l)}else[l,c]=ZQ(l,t);if(l===s)return e;const{lastIndex:f,lastOffset:d,lastSize:p,offsetTree:g}=jS(e.offsetTree,c,l,i);return{groupIndices:n,groupOffsetTree:n.reduce((m,y)=>po(m,y,Cd(y,g,i)),ju()),lastIndex:f,lastOffset:d,lastSize:p,offsetTree:g,sizeTree:l}}function oJ(e){return nl(e).map(({k:t,v:n},r,i)=>{const s=i[r+1];return{endIndex:s?s.k-1:1/0,size:n,startIndex:t}})}function AO(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function jS(e,t,n,r){let i=e,s=0,l=0,c=0,f=0;if(t!==0){f=ym(i,t-1,Pw),c=i[f].offset;const d=oi(n,t-1);s=d[0],l=d[1],i.length&&i[f].size===oi(n,t)[1]&&(f-=1),i=i.slice(0,f+1)}else i=[];for(const{start:d,value:p}of $u(n,t,1/0)){const g=d-s,m=g*l+c+g*r;i.push({index:d,offset:m,size:p}),s=d,c=m,l=p}return{lastIndex:s,lastOffset:c,lastSize:l,offsetTree:i}}function iJ(e){return{index:e.index,value:e}}function sJ(e){const{endIndex:t,size:n,startIndex:r}=e;return i=>i.start===r&&(i.end===t||i.end===1/0)&&i.value===n}const aJ={offsetHeight:"height",offsetWidth:"width"},Fi=$t(([{log:e},{recalcInProgress:t}])=>{const n=zt(),r=zt(),i=xr(r,0),s=zt(),l=zt(),c=Ne(0),f=Ne([]),d=Ne(void 0),p=Ne(void 0),g=Ne(void 0),m=Ne(void 0),y=Ne((A,D)=>wa(A,aJ[D])),E=Ne(void 0),b=Ne(0),x=JQ(),C=xr(Pe(n,At(f,e,b),Ri(rJ,x),wn()),x),R=xr(Pe(f,wn(),Ri((A,D)=>({current:D,prev:A.current}),{current:[],prev:[]}),Ye(({prev:A})=>A)),[]);Qe(Pe(f,lt(A=>A.length>0),At(C,b),Ye(([A,D,L])=>{const F=A.reduce((B,j,z)=>po(B,j,Cd(j,D.offsetTree,L)||z),ju());return{...D,groupIndices:A,groupOffsetTree:F}})),C),Qe(Pe(r,At(C),lt(([A,{lastIndex:D}])=>A<D),Ye(([A,{lastIndex:D,lastSize:L}])=>[{endIndex:D,size:L,startIndex:A}])),n),Qe(d,p);const _=xr(Pe(d,Ye(A=>A===void 0)),!0);Qe(Pe(p,lt(A=>A!==void 0&&hn(_n(C).sizeTree)),Ye(A=>{const D=_n(g),L=_n(f).length>0;return D?L?[{endIndex:0,size:D,startIndex:0},{endIndex:1,size:A,startIndex:1}]:[]:[{endIndex:0,size:A,startIndex:0}]})),n),Qe(Pe(m,lt(A=>A!==void 0&&A.length>0&&hn(_n(C).sizeTree)),Ye(A=>{const D=[];let L=A[0],F=0;for(let B=1;B<A.length;B++){const j=A[B];j!==L&&(D.push({endIndex:B-1,size:L,startIndex:F}),L=j,F=B)}return D.push({endIndex:A.length-1,size:L,startIndex:F}),D})),n),Qe(Pe(f,At(g,p),lt(([,A,D])=>A!==void 0&&D!==void 0),Ye(([A,D,L])=>{const F=[];for(let B=0;B<A.length;B++){const j=A[B],z=A[B+1];F.push({startIndex:j,endIndex:j,size:D}),z!==void 0&&F.push({startIndex:j+1,endIndex:z-1,size:L})}return F})),n);const O=mo(Pe(n,At(C),Ri(({sizes:A},[D,L])=>({changed:L!==A,sizes:L}),{changed:!1,sizes:x}),Ye(A=>A.changed)));Qt(Pe(c,Ri((A,D)=>({diff:A.prev-D,prev:D}),{diff:0,prev:0}),Ye(A=>A.diff)),A=>{const{groupIndices:D}=_n(C);if(A>0)xt(t,!0),xt(s,A+AO(A,D));else if(A<0){const L=_n(R);L.length>0&&(A-=AO(-A,L)),xt(l,A)}}),Qt(Pe(c,At(e)),([A,D])=>{A<0&&D("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:c},vo.ERROR)});const T=mo(s);Qe(Pe(s,At(C),Ye(([A,D])=>{const L=D.groupIndices.length>0,F=[],B=D.lastSize;if(L){const j=Rd(D.sizeTree,0);let z=0,G=0;for(;z<A;){const P=D.groupIndices[G],q=D.groupIndices.length===G+1?1/0:D.groupIndices[G+1]-P-1;F.push({endIndex:P,size:j,startIndex:P}),F.push({endIndex:P+1+q-1,size:B,startIndex:P+1}),G++,z+=q+1}const V=nl(D.sizeTree);return z!==A&&V.shift(),V.reduce((P,{k:q,v:U})=>{let K=P.ranges;return P.prevSize!==0&&(K=[...P.ranges,{endIndex:q+A-1,size:P.prevSize,startIndex:P.prevIndex}]),{prevIndex:q+A,prevSize:U,ranges:K}},{prevIndex:A,prevSize:0,ranges:F}).ranges}return nl(D.sizeTree).reduce((j,{k:z,v:G})=>({prevIndex:z+A,prevSize:G,ranges:[...j.ranges,{endIndex:z+A-1,size:j.prevSize,startIndex:j.prevIndex}]}),{prevIndex:0,prevSize:B,ranges:[]}).ranges})),n);const M=mo(Pe(l,At(C,b),Ye(([A,{offsetTree:D},L])=>{const F=-A;return Cd(F,D,L)})));return Qe(Pe(l,At(C,b),Ye(([A,D,L])=>{if(D.groupIndices.length>0){if(hn(D.sizeTree))return D;let F=ju();const B=_n(R);let j=0,z=0,G=0;for(;j<-A;){G=B[z];const V=B[z+1]-G-1;z++,j+=V+1}if(F=nl(D.sizeTree).reduce((V,{k:P,v:q})=>po(V,Math.max(0,P+A),q),F),j!==-A){const V=Rd(D.sizeTree,G);F=po(F,0,V);const P=oi(D.sizeTree,-A+1)[1];F=po(F,1,P)}return{...D,sizeTree:F,...jS(D.offsetTree,0,F,L)}}else{const F=nl(D.sizeTree).reduce((B,{k:j,v:z})=>po(B,Math.max(0,j+A),z),ju());return{...D,sizeTree:F,...jS(D.offsetTree,0,F,L)}}})),C),{beforeUnshiftWith:T,data:E,defaultItemSize:p,firstItemIndex:c,fixedItemSize:d,fixedGroupSize:g,gap:b,groupIndices:f,heightEstimates:m,itemSize:y,listRefresh:O,shiftWith:l,shiftWithOffset:M,sizeRanges:n,sizes:C,statefulTotalCount:i,totalCount:r,trackItemSizes:_,unshiftWith:s}},Rn(Ia,Lw),{singleton:!0});function lJ(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{groupIndices:[],totalCount:0})}const y5=$t(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{const s=zt(),l=zt(),c=mo(Pe(s,Ye(lJ)));return Qe(Pe(c,Ye(f=>f.totalCount)),n),Qe(Pe(c,Ye(f=>f.groupIndices)),e),Qe(Pe(Xn(i,t,r),lt(([f,d])=>C0(d)),Ye(([f,d,p])=>oi(d.groupOffsetTree,Math.max(f-p,0),"v")[0]),wn(),Ye(f=>[f])),l),{groupCounts:s,topItemsIndexes:l}},Rn(Fi,Pr)),Da=$t(([{log:e}])=>{const t=Ne(!1),n=mo(Pe(t,lt(r=>r),wn()));return Qt(t,r=>{r&&_n(e)("props updated",{},vo.DEBUG)}),{didMount:n,propsReady:t}},Rn(Ia),{singleton:!0}),uJ=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function b5(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!uJ)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const fh=$t(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:i,fixedHeaderHeight:s,footerHeight:l,headerHeight:c,scrollingInProgress:f,scrollTo:d,smoothScrollTargetReached:p,viewportHeight:g},{log:m}])=>{const y=zt(),E=zt(),b=Ne(0);let x=null,C=null,R=null;function _(){x&&(x(),x=null),R&&(R(),R=null),C&&(clearTimeout(C),C=null),xt(f,!1)}return Qe(Pe(y,At(n,g,r,b,c,l,m),At(e,s,i),Ye(([[O,T,M,A,D,L,F,B],j,z,G])=>{const V=b5(O),{align:P,behavior:q,offset:U}=V,K=A-1,Z=v5(V,T,K);let k=Cd(Z,T.offsetTree,j)+L;P==="end"?(k+=z+oi(T.sizeTree,Z)[1]-M+G,Z===K&&(k+=F)):P==="center"?k+=(z+oi(T.sizeTree,Z)[1]-M+G)/2:k-=D,U&&(k+=U);const $=X=>{_(),X?(B("retrying to scroll to",{location:O},vo.DEBUG),xt(y,O)):(xt(E,!0),B("list did not change, scroll successful",{},vo.DEBUG))};if(_(),q==="smooth"){let X=!1;R=Qt(t,te=>{X=X||te}),x=Zo(p,()=>{$(X)})}else x=Zo(Pe(t,cJ(150)),$);return C=setTimeout(()=>{_()},1200),xt(f,!0),B("scrolling from index to",{behavior:q,index:Z,top:k},vo.DEBUG),{behavior:q,top:k}})),d),{scrollTargetReached:E,scrollToIndex:y,topListHeight:b}},Rn(Fi,Pr,Ia),{singleton:!0});function cJ(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}function kw(e,t){e==0?t():requestAnimationFrame(()=>{kw(e-1,t)})}function Nw(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const dh=$t(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:s},{didMount:l}])=>{const c=Ne(!0),f=Ne(0),d=Ne(!0);return Qe(Pe(l,At(f),lt(([p,g])=>!!g),bi(!1)),c),Qe(Pe(l,At(f),lt(([p,g])=>!!g),bi(!1)),d),Qt(Pe(Xn(t,l),At(c,n,e,d),lt(([[,p],g,{sizeTree:m},y,E])=>p&&(!hn(m)||Mw(y))&&!g&&!E),At(f)),([,p])=>{Zo(i,()=>{xt(d,!0)}),kw(4,()=>{Zo(r,()=>{xt(c,!0)}),xt(s,p)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:f,scrolledToInitialItem:c}},Rn(Fi,Pr,fh,Da),{singleton:!0});function S5(e,t){return Math.abs(e-t)<1.01}const _d="up",rd="down",fJ="none",dJ={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},hJ=0,hh=$t(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:s}])=>{const l=Ne(!1),c=Ne(!0),f=zt(),d=zt(),p=Ne(4),g=Ne(hJ),m=xr(Pe(BS(Pe(at(i),Al(1),bi(!0)),Pe(at(i),Al(1),bi(!1),_O(100))),wn()),!1),y=xr(Pe(BS(Pe(n,bi(!0)),Pe(n,bi(!1),_O(200))),wn()),!1);Qe(Pe(Xn(at(i),at(g)),Ye(([R,_])=>R<=_),wn()),c),Qe(Pe(c,ds(50)),d);const E=mo(Pe(Xn(r,at(s),at(t),at(e),at(p)),Ri((R,[{scrollHeight:_,scrollTop:O},T,M,A,D])=>{const L=O+T-_>-D,F={scrollHeight:_,scrollTop:O,viewportHeight:T};if(L){let j,z;return O>R.state.scrollTop?(j="SCROLLED_DOWN",z=R.state.scrollTop-O):(j="SIZE_DECREASED",z=R.state.scrollTop-O||R.scrollTopDelta),{atBottom:!0,atBottomBecause:j,scrollTopDelta:z,state:F}}let B;return F.scrollHeight>R.state.scrollHeight?B="SIZE_INCREASED":T<R.state.viewportHeight?B="VIEWPORT_HEIGHT_DECREASING":O<R.state.scrollTop?B="SCROLLING_UPWARDS":B="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:B,state:F}},dJ),wn((R,_)=>R&&R.atBottom===_.atBottom))),b=xr(Pe(r,Ri((R,{scrollHeight:_,scrollTop:O,viewportHeight:T})=>{if(S5(R.scrollHeight,_))return{changed:!1,jump:0,scrollHeight:_,scrollTop:O};{const M=_-(O+T)<1;return R.scrollTop!==O&&M?{changed:!0,jump:R.scrollTop-O,scrollHeight:_,scrollTop:O}:{changed:!0,jump:0,scrollHeight:_,scrollTop:O}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),lt(R=>R.changed),Ye(R=>R.jump)),0);Qe(Pe(E,Ye(R=>R.atBottom)),l),Qe(Pe(l,ds(50)),f);const x=Ne(rd);Qe(Pe(r,Ye(({scrollTop:R})=>R),wn(),Ri((R,_)=>_n(y)?{direction:R.direction,prevScrollTop:_}:{direction:_<R.prevScrollTop?_d:rd,prevScrollTop:_},{direction:rd,prevScrollTop:0}),Ye(R=>R.direction)),x),Qe(Pe(r,ds(50),bi(fJ)),x);const C=Ne(0);return Qe(Pe(m,lt(R=>!R),bi(0)),C),Qe(Pe(i,ds(100),At(m),lt(([R,_])=>!!_),Ri(([R,_],[O])=>[_,O],[0,0]),Ye(([R,_])=>_-R)),C),{atBottomState:E,atBottomStateChange:f,atBottomThreshold:p,atTopStateChange:d,atTopThreshold:g,isAtBottom:l,isAtTop:c,isScrolling:m,lastJumpDueToItemResize:b,scrollDirection:x,scrollVelocity:C}},Rn(Pr)),Td="top",Ad="bottom",OO="none";function MO(e,t,n){return typeof e=="number"?n===_d&&t===Td||n===rd&&t===Ad?e:0:n===_d?t===Td?e.main:e.reverse:t===Ad?e.main:e.reverse}function IO(e,t){var n;return typeof e=="number"?e:(n=e[t])!=null?n:0}const Fw=$t(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{const s=zt(),l=Ne(0),c=Ne(0),f=Ne(0),d=xr(Pe(Xn(at(r),at(i),at(n),at(s,xd),at(f),at(l),at(t),at(e),at(c)),Ye(([p,g,m,[y,E],b,x,C,R,_])=>{const O=p-R,T=x+C,M=Math.max(m-O,0);let A=OO;const D=IO(_,Td),L=IO(_,Ad);return y-=R,y+=m+C,E+=m+C,E-=R,y>p+T-D&&(A=_d),E<p-M+g+L&&(A=rd),A!==OO?[Math.max(O-m-MO(b,Td,A)-D,0),O-M-C+g+MO(b,Ad,A)+L]:null}),lt(p=>p!=null),wn(xd)),[0,0]);return{increaseViewportBy:c,listBoundary:s,overscan:f,topListHeight:l,visibleRange:d}},Rn(Pr),{singleton:!0});function pJ(e,t,n){if(C0(t)){const r=m5(e,t);return[{index:oi(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n==null?void 0:n[0],index:r,offset:0,size:0}]}return[{data:n==null?void 0:n[0],index:e,offset:0,size:0}]}const tb={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Ig(e,t,n,r,i,s){const{lastIndex:l,lastOffset:c,lastSize:f}=i;let d=0,p=0;if(e.length>0){d=e[0].offset;const b=e[e.length-1];p=b.offset+b.size}const g=n-l,m=c+g*f+(g-1)*r,y=d,E=m-p;return{bottom:p,firstItemIndex:s,items:DO(e,i,s),offsetBottom:E,offsetTop:d,top:y,topItems:DO(t,i,s),topListHeight:t.reduce((b,x)=>x.size+b,0),totalCount:n}}function E5(e,t,n,r,i,s){let l=0;if(n.groupIndices.length>0)for(const p of n.groupIndices){if(p-l>=e)break;l++}const c=e+l,f=Nw(t,c),d=Array.from({length:c}).map((p,g)=>({data:s[g+f],index:g+f,offset:0,size:0}));return Ig(d,[],c,i,n,r)}function DO(e,t,n){if(e.length===0)return[];if(!C0(t))return e.map(d=>({...d,index:d.index+n,originalIndex:d.index}));const r=e[0].index,i=e[e.length-1].index,s=[],l=$u(t.groupOffsetTree,r,i);let c,f=0;for(const d of e){(!c||c.end<d.index)&&(c=l.shift(),f=t.groupIndices.indexOf(c.start));let p;d.index===c.start?p={index:f,type:"group"}:p={groupIndex:f,index:d.index-(f+1)+n},s.push({...p,data:d.data,offset:d.offset,originalIndex:d.index,size:d.size})}return s}function LO(e,t){var n;return e===void 0?0:typeof e=="number"?e:(n=e[t])!=null?n:0}const Bl=$t(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:i},s,{listBoundary:l,topListHeight:c,visibleRange:f},{initialTopMostItemIndex:d,scrolledToInitialItem:p},{topListHeight:g},m,{didMount:y},{recalcInProgress:E}])=>{const b=Ne([]),x=Ne(0),C=zt(),R=Ne(0);Qe(s.topItemsIndexes,b);const _=xr(Pe(Xn(y,E,at(f,xd),at(i),at(r),at(d),p,at(b),at(t),at(n),at(R),e),lt(([A,D,,L,,,,,,,,F])=>{const B=F&&F.length!==L;return A&&!D&&!B}),Ye(([,,[A,D],L,F,B,j,z,G,V,P,q])=>{var U,K,Z,k;const $=F,{offsetTree:X,sizeTree:te}=$,ue=_n(x);if(L===0)return{...tb,totalCount:L};if(A===0&&D===0)return ue===0?{...tb,totalCount:L}:E5(ue,B,F,G,V,q||[]);if(hn(te))return ue>0?null:Ig(pJ(Nw(B,L),$,q),[],L,V,$,G);const ne=[];if(z.length>0){const Ce=z[0],Ie=z[z.length-1];let Me=0;for(const be of $u(te,Ce,Ie)){const xe=be.value,we=Math.max(be.start,Ce),De=Math.min(be.end,Ie);for(let H=we;H<=De;H++)ne.push({data:q==null?void 0:q[H],index:H,offset:Me,size:xe}),Me+=xe}}if(!j)return Ig([],ne,L,V,$,G);const ce=z.length>0?z[z.length-1]+1:0,Q=nJ(X,A,D,ce);if(Q.length===0)return null;const ve=L-1,Ee=x0([],Ce=>{for(const Ie of Q){const Me=Ie.value;let be=Me.offset,xe=Ie.start;const we=Me.size;if(Me.offset<A){xe+=Math.floor((A-Me.offset+V)/(we+V));const H=xe-Ie.start;be+=H*we+H*V}xe<ce&&(be+=(ce-xe)*we,xe=ce);const De=Math.min(Ie.end,ve);for(let H=xe;H<=De&&!(be>=D);H++)Ce.push({data:q==null?void 0:q[H],index:H,offset:be,size:we}),be+=we+V}}),le=LO(P,Td),me=LO(P,Ad);if(Ee.length>0&&(le>0||me>0)){const Ce=Ee[0],Ie=Ee[Ee.length-1];if(le>0&&Ce.index>ce){const Me=Math.min(le,Ce.index-ce),be=[];let xe=Ce.offset;for(let we=Ce.index-1;we>=Ce.index-Me;we--){const De=(K=(U=$u(te,we,we)[0])==null?void 0:U.value)!=null?K:Ce.size;xe-=De+V,be.unshift({data:q==null?void 0:q[we],index:we,offset:xe,size:De})}Ee.unshift(...be)}if(me>0&&Ie.index<ve){const Me=Math.min(me,ve-Ie.index);let be=Ie.offset+Ie.size+V;for(let xe=Ie.index+1;xe<=Ie.index+Me;xe++){const we=(k=(Z=$u(te,xe,xe)[0])==null?void 0:Z.value)!=null?k:Ie.size;Ee.push({data:q==null?void 0:q[xe],index:xe,offset:be,size:we}),be+=we+V}}}return Ig(Ee,ne,L,V,$,G)}),lt(A=>A!==null),wn()),tb);Qe(Pe(e,lt(Mw),Ye(A=>A==null?void 0:A.length)),i),Qe(Pe(_,Ye(A=>A.topListHeight)),g),Qe(g,c),Qe(Pe(_,Ye(A=>[A.top,A.bottom])),l),Qe(Pe(_,Ye(A=>A.items)),C);const O=mo(Pe(_,lt(({items:A})=>A.length>0),At(i,e),lt(([{items:A},D])=>A[A.length-1].originalIndex===D-1),Ye(([,A,D])=>[A-1,D]),wn(xd),Ye(([A])=>A))),T=mo(Pe(_,ds(200),lt(({items:A,topItems:D})=>A.length>0&&A[0].originalIndex===D.length),Ye(({items:A})=>A[0].index),wn())),M=mo(Pe(_,lt(({items:A})=>A.length>0),Ye(({items:A})=>{let D=0,L=A.length-1;for(;A[D].type==="group"&&D<L;)D++;for(;A[L].type==="group"&&L>D;)L--;return{endIndex:A[L].index,startIndex:A[D].index}}),wn(p5)));return{endReached:O,initialItemCount:x,itemsRendered:C,listState:_,minOverscanItemCount:R,rangeChanged:M,startReached:T,topItemsIndexes:b,...m}},Rn(Fi,y5,Fw,dh,fh,hh,Da,Lw),{singleton:!0}),w5=$t(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{const s=zt(),l=xr(Pe(Xn(n,e,r,t,i),Ye(([c,f,d,p,g])=>c+f+d+p+g.offsetBottom+g.bottom)),0);return Qe(at(l),s),{totalListHeight:l,totalListHeightChanged:s}},Rn(Pr,Bl),{singleton:!0}),gJ=$t(([{viewportHeight:e},{totalListHeight:t}])=>{const n=Ne(!1),r=xr(Pe(Xn(n,e,t),lt(([i])=>i),Ye(([,i,s])=>Math.max(0,i-s)),ds(0),wn()),0);return{alignToBottom:n,paddingTopAddition:r}},Rn(Pr,w5),{singleton:!0}),R5=$t(()=>({context:Ne(null)})),mJ=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...i},viewportBottom:s,viewportTop:l})=>t<l?{...i,align:n??"start",behavior:r}:e>s?{...i,align:n??"end",behavior:r}:null,x5=$t(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:s,scrollingInProgress:l,scrollTop:c,viewportHeight:f},{scrollToIndex:d}])=>{const p=zt();return Qe(Pe(p,At(t,f,n,s,i,r,c),At(e),Ye(([[g,m,y,E,b,x,C,R],_])=>{const{align:O,behavior:T,calculateViewLocation:M=mJ,done:A,...D}=g,L=v5(g,m,E-1),F=Cd(L,m.offsetTree,_)+b+x,B=F+oi(m.sizeTree,L)[1],j=R+x,z=R+y-C,G=M({itemBottom:B,itemTop:F,locationParams:{align:O,behavior:T,...D},viewportBottom:z,viewportTop:j});return G?A&&Zo(Pe(l,lt(V=>!V),Al(_n(l)?1:2)),A):A&&A(),G}),lt(g=>g!==null)),d),{scrollIntoView:p}},Rn(Fi,Pr,fh,Bl,Ia),{singleton:!0});function PO(e){return e?e==="smooth"?"smooth":"auto":!1}const vJ=(e,t)=>typeof e=="function"?PO(e(t)):t&&PO(e),yJ=$t(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:i,isAtBottom:s},{scrollToIndex:l},{scrolledToInitialItem:c},{didMount:f,propsReady:d},{log:p},{scrollingInProgress:g},{context:m},{scrollIntoView:y}])=>{const E=Ne(!1),b=zt();let x=null;function C(T){xt(l,{align:"end",behavior:T,index:"LAST"})}Qt(Pe(Xn(Pe(at(t),Al(1)),f),At(at(E),s,c,g),Ye(([[T,M],A,D,L,F])=>{let B=M&&L,j="auto";return B&&(j=vJ(A,D||F),B=B&&!!j),{followOutputBehavior:j,shouldFollow:B,totalCount:T}}),lt(({shouldFollow:T})=>T)),({followOutputBehavior:T,totalCount:M})=>{x&&(x(),x=null),_n(n)?requestAnimationFrame(()=>{_n(p)("following output to ",{totalCount:M},vo.DEBUG),C(T)}):x=Zo(e,()=>{_n(p)("following output to ",{totalCount:M},vo.DEBUG),C(T),x=null})});function R(T){const M=Zo(i,A=>{T&&!A.atBottom&&A.notAtBottomBecause==="SIZE_INCREASED"&&!x&&(_n(p)("scrolling to bottom due to increased size",{},vo.DEBUG),C("auto"))});setTimeout(M,100)}Qt(Pe(Xn(at(E),t,d),lt(([T,,M])=>T&&M),Ri(({value:T},[,M])=>({refreshed:T===M,value:M}),{refreshed:!1,value:0}),lt(({refreshed:T})=>T),At(E,t)),([,T])=>{_n(c)&&R(T!==!1)}),Qt(b,()=>{R(_n(E)!==!1)}),Qt(Xn(at(E),i),([T,M])=>{T&&!M.atBottom&&M.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&C("auto")});const _=Ne(null),O=zt();return Qe(BS(Pe(at(r),Ye(T=>{var M;return(M=T==null?void 0:T.length)!=null?M:0})),Pe(at(t))),O),Qt(Pe(Xn(Pe(O,Al(1)),f),At(at(_),c,g,m),Ye(([[T,M],A,D,L,F])=>M&&D&&(A==null?void 0:A({context:F,totalCount:T,scrollingInProgress:L}))),lt(T=>!!T),ds(0)),T=>{x&&(x(),x=null),_n(n)?requestAnimationFrame(()=>{_n(p)("scrolling into view",{}),xt(y,T)}):x=Zo(e,()=>{_n(p)("scrolling into view",{}),xt(y,T),x=null})}),{autoscrollToBottom:b,followOutput:E,scrollIntoViewOnChange:_}},Rn(Fi,hh,fh,dh,Da,Ia,Pr,R5,x5)),bJ=$t(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:s,listState:l},{didMount:c}])=>(Qe(Pe(c,At(s),lt(([,f])=>f!==0),At(i,r,t,n,e),Ye(([[,f],d,p,g,m,y=[]])=>E5(f,d,p,g,m,y))),l),{}),Rn(Fi,dh,Bl,Da),{singleton:!0}),SJ=$t(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=Ne(0);return Qt(Pe(e,At(r),lt(([,i])=>i!==0),Ye(([,i])=>({top:i}))),i=>{Zo(Pe(n,Al(1),lt(s=>s.items.length>1)),()=>{requestAnimationFrame(()=>{xt(t,i)})})}),{initialScrollTop:r}},Rn(Da,Pr,Bl),{singleton:!0}),C5=$t(([{scrollVelocity:e}])=>{const t=Ne(!1),n=zt(),r=Ne(!1);return Qe(Pe(e,At(r,t,n),lt(([i,s])=>!!s),Ye(([i,s,l,c])=>{const{enter:f,exit:d}=s;if(l){if(d(i,c))return!1}else if(f(i,c))return!0;return l}),wn()),t),Qt(Pe(Xn(t,e,n),At(r)),([[i,s,l],c])=>{i&&c&&c.change&&c.change(s,l)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},Rn(hh),{singleton:!0}),zw=$t(([{scrollContainerState:e,scrollTo:t}])=>{const n=zt(),r=zt(),i=zt(),s=Ne(!1),l=Ne(void 0);return Qe(Pe(Xn(n,r),Ye(([{scrollHeight:c,scrollTop:f,viewportHeight:d},{offsetTop:p}])=>({scrollHeight:c,scrollTop:Math.max(0,f-p),viewportHeight:d}))),e),Qe(Pe(t,At(r),Ye(([c,{offsetTop:f}])=>({...c,top:c.top+f}))),i),{customScrollParent:l,useWindowScroll:s,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},Rn(Pr)),EJ=$t(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:s},{useWindowScroll:l,windowScrollContainerState:c,windowViewportRect:f}])=>{const d=zt(),p=Ne(void 0),g=Ne(null),m=Ne(null);return Qe(c,g),Qe(f,m),Qt(Pe(d,At(t,r,l,g,m,n)),([y,E,b,x,C,R,_])=>{const O=oJ(E.sizeTree);x&&C!==null&&R!==null&&(b=C.scrollTop-R.offsetTop),b-=_,y({ranges:O,scrollTop:b})}),Qe(Pe(p,lt(Mw),Ye(wJ)),i),Qe(Pe(s,At(p),lt(([,y])=>y!==void 0),wn(),Ye(([,y])=>y.ranges)),e),{getState:d,restoreStateFrom:p}},Rn(Fi,Pr,dh,Da,zw));function wJ(e){return{align:"start",index:0,offset:e.scrollTop}}const RJ=$t(([{topItemsIndexes:e}])=>{const t=Ne(0);return Qe(Pe(t,lt(n=>n>=0),Ye(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},Rn(Bl));function _5(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const xJ=_5(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),CJ=$t(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:i,isScrolling:s,lastJumpDueToItemResize:l,scrollDirection:c},{listState:f},{beforeUnshiftWith:d,gap:p,shiftWithOffset:g,sizes:m},{log:y},{recalcInProgress:E}])=>{const b=mo(Pe(f,At(l),Ri(([,C,R,_],[{bottom:O,items:T,offsetBottom:M,totalCount:A},D])=>{const L=O+M;let F=0;return R===A&&C.length>0&&T.length>0&&(T[0].originalIndex===0&&C[0].originalIndex===0||(F=L-_,F!==0&&(F+=D))),[F,T,A,L]},[0,[],0,0]),lt(([C])=>C!==0),At(r,c,n,i,y,E),lt(([,C,R,_,,,O])=>!O&&!_&&C!==0&&R===_d),Ye(([[C],,,,,R])=>(R("Upward scrolling compensation",{amount:C},vo.DEBUG),C))));function x(C){C>0?(xt(t,{behavior:"auto",top:-C}),xt(e,0)):(xt(e,0),xt(t,{behavior:"auto",top:-C}))}return Qt(Pe(b,At(e,s)),([C,R,_])=>{_&&xJ()?xt(e,R-C):x(-C)}),Qt(Pe(Xn(xr(s,!1),e,E),lt(([C,R,_])=>!C&&!_&&R!==0),Ye(([C,R])=>R),ds(1)),x),Qe(Pe(g,Ye(C=>({top:-C}))),t),Qt(Pe(d,At(m,p),Ye(([C,{groupIndices:R,lastSize:_,sizeTree:O},T])=>{function M(A){return A*(_+T)}if(R.length===0)return M(C);{let A=0;const D=Rd(O,0);let L=0,F=0;for(;L<C;){L++,A+=D;let B=R.length===F+1?1/0:R[F+1]-R[F]-1;L+B>C&&(A-=D,B=C-L+1),L+=B,A+=M(B),F++}return A}})),C=>{xt(e,C),requestAnimationFrame(()=>{xt(t,{top:C}),requestAnimationFrame(()=>{xt(e,0),xt(E,!1)})})}),{deviation:e}},Rn(Pr,hh,Bl,Fi,Ia,Lw)),_J=$t(([e,t,n,r,i,s,l,c,f,d,p])=>({...e,...t,...n,...r,...i,...s,...l,...c,...f,...d,...p}),Rn(Fw,bJ,Da,C5,w5,SJ,gJ,zw,x5,Ia,R5)),T5=$t(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:i,gap:s,groupIndices:l,heightEstimates:c,itemSize:f,sizeRanges:d,sizes:p,statefulTotalCount:g,totalCount:m,trackItemSizes:y},{initialItemFinalLocationReached:E,initialTopMostItemIndex:b,scrolledToInitialItem:x},C,R,_,O,{scrollToIndex:T},M,{topItemCount:A},{groupCounts:D},L])=>{const{listState:F,minOverscanItemCount:B,topItemsIndexes:j,rangeChanged:z,...G}=O;return Qe(z,L.scrollSeekRangeChanged),Qe(Pe(L.windowViewportRect,Ye(V=>V.visibleHeight)),C.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:i,gap:s,groupCounts:D,heightEstimates:c,initialItemFinalLocationReached:E,initialTopMostItemIndex:b,scrolledToInitialItem:x,sizeRanges:d,topItemCount:A,topItemsIndexes:j,totalCount:m,..._,groupIndices:l,itemSize:f,listState:F,minOverscanItemCount:B,scrollToIndex:T,statefulTotalCount:g,trackItemSizes:y,rangeChanged:z,...G,...L,...C,sizes:p,...R}},Rn(Fi,dh,Pr,EJ,yJ,Bl,fh,CJ,RJ,y5,_J));function TJ(e,t){const n={},r={};let i=0;const s=e.length;for(;i<s;)r[e[i]]=1,i+=1;for(const l in t)Object.hasOwn(r,l)||(n[l]=t[l]);return n}const Zp=typeof document<"u"?fe.useLayoutEffect:fe.useEffect;function A5(e,t,n){const r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),l=Object.keys(t.events||{}),c=fe.createContext({});function f(x,C){x.propsReady&&xt(x.propsReady,!1);for(const R of r){const _=x[t.required[R]];xt(_,C[R])}for(const R of i)if(R in C){const _=x[t.optional[R]];xt(_,C[R])}x.propsReady&&xt(x.propsReady,!0)}function d(x){return s.reduce((C,R)=>(C[R]=_=>{const O=x[t.methods[R]];xt(O,_)},C),{})}function p(x){return l.reduce((C,R)=>(C[R]=jQ(x[t.events[R]]),C),{})}const g=fe.forwardRef((x,C)=>{const{children:R,..._}=x,[O]=fe.useState(()=>x0(qQ(e),A=>{f(A,_)})),[T]=fe.useState(CO(p,O));Zp(()=>{for(const A of l)A in _&&Qt(T[A],_[A]);return()=>{Object.values(T).map(Iw)}},[_,T,O]),Zp(()=>{f(O,_)}),fe.useImperativeHandle(C,xO(d(O)));const M=n;return Re.jsx(c.Provider,{value:O,children:n?Re.jsx(M,{...TJ([...r,...i,...l],_),children:R}):R})}),m=x=>{const C=fe.useContext(c);return fe.useCallback(R=>{xt(C[x],R)},[C,x])},y=x=>{const C=fe.useContext(c)[x],R=fe.useCallback(_=>Qt(C,_),[C]);return fe.useSyncExternalStore(R,()=>_n(C),()=>_n(C))},E=x=>{const C=fe.useContext(c)[x],[R,_]=fe.useState(CO(_n,C));return Zp(()=>Qt(C,O=>{O!==R&&_(xO(O))}),[C,R]),R},b=fe.version.startsWith("18")?y:E;return{Component:g,useEmitter:(x,C)=>{const R=fe.useContext(c)[x];Zp(()=>Qt(R,C),[C,R])},useEmitterValue:b,usePublisher:m}}const O5=fe.createContext(void 0),M5=fe.createContext(void 0),I5=typeof document<"u"?fe.useLayoutEffect:fe.useEffect;function nb(e){return"self"in e}function AJ(e){return"body"in e}function D5(e,t,n,r=ch,i,s){const l=fe.useRef(null),c=fe.useRef(null),f=fe.useRef(null),d=fe.useCallback(m=>{let y,E,b;const x=m.target;if(AJ(x)||nb(x)){const R=nb(x)?x:x.defaultView;b=s?R.scrollX:R.scrollY,y=s?R.document.documentElement.scrollWidth:R.document.documentElement.scrollHeight,E=s?R.innerWidth:R.innerHeight}else b=s?x.scrollLeft:x.scrollTop,y=s?x.scrollWidth:x.scrollHeight,E=s?x.offsetWidth:x.offsetHeight;const C=()=>{e({scrollHeight:y,scrollTop:Math.max(b,0),viewportHeight:E})};m.suppressFlushSync?C():lF.flushSync(C),c.current!==null&&(b===c.current||b<=0||b===y-E)&&(c.current=null,t(!0),f.current&&(clearTimeout(f.current),f.current=null))},[e,t,s]);fe.useEffect(()=>{const m=i||l.current;return r(i||l.current),d({suppressFlushSync:!0,target:m}),m.addEventListener("scroll",d,{passive:!0}),()=>{r(null),m.removeEventListener("scroll",d)}},[l,d,n,r,i]);function p(m){const y=l.current;if(!y||(s?"offsetWidth"in y&&y.offsetWidth===0:"offsetHeight"in y&&y.offsetHeight===0))return;const E=m.behavior==="smooth";let b,x,C;nb(y)?(x=Math.max(wa(y.document.documentElement,s?"width":"height"),s?y.document.documentElement.scrollWidth:y.document.documentElement.scrollHeight),b=s?y.innerWidth:y.innerHeight,C=s?window.scrollX:window.scrollY):(x=y[s?"scrollWidth":"scrollHeight"],b=wa(y,s?"width":"height"),C=y[s?"scrollLeft":"scrollTop"]);const R=x-b;if(m.top=Math.ceil(Math.max(Math.min(R,m.top),0)),S5(b,x)||m.top===C){e({scrollHeight:x,scrollTop:C,viewportHeight:b}),E&&t(!0);return}E?(c.current=m.top,f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{f.current=null,c.current=null,t(!0)},1e3)):c.current=null,s&&(m={behavior:m.behavior,left:m.top}),y.scrollTo(m)}function g(m){s&&(m={behavior:m.behavior,left:m.top}),l.current.scrollBy(m)}return{scrollByCallback:g,scrollerRef:l,scrollToCallback:p}}const rb="-webkit-sticky",kO="sticky",Bw=_5(()=>{if(typeof document>"u")return kO;const e=document.createElement("div");return e.style.position=rb,e.style.position===rb?rb:kO});function Hw(e){return e}const OJ=$t(()=>{const e=Ne(c=>`Item ${c}`),t=Ne(c=>`Group ${c}`),n=Ne({}),r=Ne(Hw),i=Ne("div"),s=Ne(ch),l=(c,f=null)=>xr(Pe(n,Ye(d=>d[c]),wn()),f);return{components:n,computeItemKey:r,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:i,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}});Rn(T5,OJ);Bw();const MJ={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},IJ={outline:"none",overflowX:"auto",position:"relative"},_0=e=>({height:"100%",position:"absolute",top:0,width:"100%"});Bw();function vr(e,t){if(typeof e!="string")return{context:t}}function DJ(e,t){return{item:typeof e=="string"?void 0:t}}function L5({useEmitter:e,useEmitterValue:t,usePublisher:n}){return fe.memo(function({children:r,style:i,context:s,...l}){const c=n("scrollContainerState"),f=t("ScrollerComponent"),d=n("smoothScrollTargetReached"),p=t("scrollerRef"),g=t("horizontalDirection")||!1,{scrollByCallback:m,scrollerRef:y,scrollToCallback:E}=D5(c,d,f,p,void 0,g);return e("scrollTo",E),e("scrollBy",m),Re.jsx(f,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:y,style:{...g?IJ:MJ,...i},tabIndex:0,...l,...vr(f,s),children:r})})}function P5({useEmitter:e,useEmitterValue:t,usePublisher:n}){return fe.memo(function({children:r,style:i,context:s,...l}){const c=n("windowScrollContainerState"),f=t("ScrollerComponent"),d=n("smoothScrollTargetReached"),p=t("totalListHeight"),g=t("deviation"),m=t("customScrollParent"),y=fe.useRef(null),E=t("scrollerRef"),{scrollByCallback:b,scrollerRef:x,scrollToCallback:C}=D5(c,d,f,E,m);return I5(()=>{var R;return x.current=m||((R=y.current)==null?void 0:R.ownerDocument.defaultView),()=>{x.current=null}},[x,m]),e("windowScrollTo",C),e("scrollBy",b),Re.jsx(f,{ref:y,"data-virtuoso-scroller":!0,style:{position:"relative",...i,...p!==0?{height:p+g}:{}},...l,...vr(f,s),children:r})})}const LJ=$t(()=>{const e=Ne(d=>Re.jsxs("td",{children:["Item $",d]})),t=Ne(null),n=Ne(d=>Re.jsxs("td",{colSpan:1e3,children:["Group ",d]})),r=Ne(null),i=Ne(null),s=Ne({}),l=Ne(Hw),c=Ne(ch),f=(d,p=null)=>xr(Pe(s,Ye(g=>g[d]),wn()),p);return{components:s,computeItemKey:l,context:t,EmptyPlaceholder:f("EmptyPlaceholder"),FillerRow:f("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:f("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:f("ScrollSeekPlaceholder"),TableBodyComponent:f("TableBody","tbody"),TableComponent:f("Table","table"),TableFooterComponent:f("TableFoot","tfoot"),TableHeadComponent:f("TableHead","thead"),TableRowComponent:f("TableRow","tr"),GroupComponent:f("Group","tr")}}),PJ=$t(([e,t])=>({...e,...t}),Rn(T5,LJ)),kJ=({height:e})=>Re.jsx("tr",{children:Re.jsx("td",{style:{height:e}})}),NJ=({height:e})=>Re.jsx("tr",{children:Re.jsx("td",{style:{border:0,height:e,padding:0}})}),FJ={overflowAnchor:"none"},NO={position:Bw(),zIndex:2,overflowAnchor:"none"},FO=fe.memo(function({showTopList:e=!1}){const t=Rt("listState"),n=Rt("computeItemKey"),r=Rt("firstItemIndex"),i=Rt("context"),s=Rt("isSeeking"),l=Rt("fixedHeaderHeight"),c=Rt("groupIndices").length>0,f=Rt("itemContent"),d=Rt("groupContent"),p=Rt("ScrollSeekPlaceholder")||kJ,g=Rt("GroupComponent"),m=Rt("TableRowComponent"),y=(e?t.topItems:[]).reduce((b,x,C)=>(C===0?b.push(x.size):b.push(b[C-1]+x.size),b),[]),E=(e?t.topItems:t.items).map(b=>{const x=b.originalIndex,C=n(x+r,b.data,i),R=e?x===0?0:y[x-1]:0;return s?S.createElement(p,{...vr(p,i),height:b.size,index:b.index,key:C,type:b.type||"item"}):b.type==="group"?S.createElement(g,{...vr(g,i),"data-index":x,"data-item-index":b.index,"data-known-size":b.size,key:C,style:{...NO,top:l}},d(b.index,i)):S.createElement(m,{...vr(m,i),...DJ(m,b.data),"data-index":x,"data-item-index":b.index,"data-known-size":b.size,"data-item-group-index":b.groupIndex,key:C,style:e?{...NO,top:l+R}:FJ},c?f(b.index,b.groupIndex,b.data,i):f(b.index,b.data,i))});return Re.jsx(Re.Fragment,{children:E})}),zJ=fe.memo(function(){const e=Rt("listState"),t=Rt("topItemsIndexes").length>0,n=ei("sizeRanges"),r=Rt("useWindowScroll"),i=Rt("customScrollParent"),s=ei("windowScrollContainerState"),l=ei("scrollContainerState"),c=i||r?s:l,f=Rt("trackItemSizes"),d=Rt("itemSize"),p=Rt("log"),{callbackRef:g,ref:m}=KQ(n,d,f,c,p,void 0,i,!1,Rt("skipAnimationFrameInResizeObserver")),[y,E]=fe.useState(0);Uw("deviation",F=>{y!==F&&(m.current.style.marginTop=`${F}px`,E(F))});const b=Rt("EmptyPlaceholder"),x=Rt("FillerRow")||NJ,C=Rt("TableBodyComponent"),R=Rt("paddingTopAddition"),_=Rt("statefulTotalCount"),O=Rt("context");if(_===0&&b)return Re.jsx(b,{...vr(b,O)});const T=(t?e.topItems:[]).reduce((F,B)=>F+B.size,0),M=e.offsetTop+R+y-T,A=e.offsetBottom,D=M>0?Re.jsx(x,{context:O,height:M},"padding-top"):null,L=A>0?Re.jsx(x,{context:O,height:A},"padding-bottom"):null;return Re.jsxs(C,{"data-testid":"virtuoso-item-list",ref:g,...vr(C,O),children:[D,t&&Re.jsx(FO,{showTopList:!0}),Re.jsx(FO,{}),L]})}),BJ=({children:e})=>{const t=fe.useContext(O5),n=ei("viewportHeight"),r=ei("fixedItemHeight"),i=Ol(fe.useMemo(()=>vm(n,s=>wa(s,"height")),[n]),!0,Rt("skipAnimationFrameInResizeObserver"));return fe.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),Re.jsx("div",{"data-viewport-type":"element",ref:i,style:_0(),children:e})},HJ=({children:e})=>{const t=fe.useContext(O5),n=ei("windowViewportRect"),r=ei("fixedItemHeight"),i=Rt("customScrollParent"),s=l5(n,i,Rt("skipAnimationFrameInResizeObserver"));return fe.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),Re.jsx("div",{"data-viewport-type":"window",ref:s,style:_0(),children:e})},UJ=fe.memo(function(e){const t=Rt("useWindowScroll"),n=Rt("customScrollParent"),r=ei("fixedHeaderHeight"),i=ei("fixedFooterHeight"),s=Rt("fixedHeaderContent"),l=Rt("fixedFooterContent"),c=Rt("context"),f=Ol(fe.useMemo(()=>vm(r,C=>wa(C,"height")),[r]),!0,Rt("skipAnimationFrameInResizeObserver")),d=Ol(fe.useMemo(()=>vm(i,C=>wa(C,"height")),[i]),!0,Rt("skipAnimationFrameInResizeObserver")),p=n||t?$J:jJ,g=n||t?HJ:BJ,m=Rt("TableComponent"),y=Rt("TableHeadComponent"),E=Rt("TableFooterComponent"),b=s?Re.jsx(y,{ref:f,style:{position:"sticky",top:0,zIndex:2},...vr(y,c),children:s()},"TableHead"):null,x=l?Re.jsx(E,{ref:d,style:{bottom:0,position:"sticky",zIndex:1},...vr(E,c),children:l()},"TableFoot"):null;return Re.jsx(p,{...e,...vr(p,c),children:Re.jsx(g,{children:Re.jsxs(m,{style:{borderSpacing:0,overflowAnchor:"none"},...vr(m,c),children:[b,Re.jsx(zJ,{},"TableBody"),x]})})})}),{Component:VJ,useEmitter:Uw,useEmitterValue:Rt,usePublisher:ei}=A5(PJ,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},UJ),jJ=L5({useEmitter:Uw,useEmitterValue:Rt,usePublisher:ei}),$J=P5({useEmitter:Uw,useEmitterValue:Rt,usePublisher:ei}),Kre=VJ,zO={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},qJ={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:BO,floor:bm,max:od,min:ob,round:HO}=Math;function UO(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>({data:n===null?null:n[i+e],index:i+e}))}function GJ(e){return{...qJ,items:e}}function eg(e,t){return e&&e.width===t.width&&e.height===t.height}function YJ(e,t){return e&&e.column===t.column&&e.row===t.row}const KJ=$t(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:i,headerHeight:s,scrollBy:l,scrollContainerState:c,scrollTo:f,scrollTop:d,smoothScrollTargetReached:p,viewportHeight:g},m,y,{didMount:E,propsReady:b},{customScrollParent:x,useWindowScroll:C,windowScrollContainerState:R,windowScrollTo:_,windowViewportRect:O},T])=>{const M=Ne(0),A=Ne(0),D=Ne(zO),L=Ne({height:0,width:0}),F=Ne({height:0,width:0}),B=zt(),j=zt(),z=Ne(0),G=Ne(null),V=Ne({column:0,row:0}),P=zt(),q=zt(),U=Ne(!1),K=Ne(0),Z=Ne(!0),k=Ne(!1),$=Ne(!1);Qt(Pe(E,At(K),lt(([Q,ve])=>!!ve)),()=>{xt(Z,!1)}),Qt(Pe(Xn(E,Z,F,L,K,k),lt(([Q,ve,Ee,le,,me])=>Q&&!ve&&Ee.height!==0&&le.height!==0&&!me)),([,,,,Q])=>{xt(k,!0),kw(1,()=>{xt(B,Q)}),Zo(Pe(d),()=>{xt(t,[0,0]),xt(Z,!0)})}),Qe(Pe(q,lt(Q=>Q!=null&&Q.scrollTop>0),bi(0)),A),Qt(Pe(E,At(q),lt(([,Q])=>Q!=null)),([,Q])=>{Q&&(xt(L,Q.viewport),xt(F,Q.item),xt(V,Q.gap),Q.scrollTop>0&&(xt(U,!0),Zo(Pe(d,Al(1)),ve=>{xt(U,!1)}),xt(f,{top:Q.scrollTop})))}),Qe(Pe(L,Ye(({height:Q})=>Q)),g),Qe(Pe(Xn(at(L,eg),at(F,eg),at(V,(Q,ve)=>Q&&Q.column===ve.column&&Q.row===ve.row),at(d)),Ye(([Q,ve,Ee,le])=>({gap:Ee,item:ve,scrollTop:le,viewport:Q}))),P),Qe(Pe(Xn(at(M),r,at(V,YJ),at(F,eg),at(L,eg),at(G),at(A),at(U),at(Z),at(K)),lt(([,,,,,,,Q])=>!Q),Ye(([Q,[ve,Ee],le,me,Ce,Ie,Me,,be,xe])=>{const{column:we,row:De}=le,{height:H,width:Y}=me,{width:ee}=Ce;if(Me===0&&(Q===0||ee===0))return zO;if(Y===0){const rt=Nw(xe,Q),kt=rt+Math.max(Me-1,0);return GJ(UO(rt,kt,Ie))}const ie=k5(ee,Y,we);let ae,oe;be?ve===0&&Ee===0&&Me>0?(ae=0,oe=Me-1):(ae=ie*bm((ve+De)/(H+De)),oe=ie*BO((Ee+De)/(H+De))-1,oe=ob(Q-1,od(oe,ie-1)),ae=ob(oe,od(0,ae))):(ae=0,oe=-1);const Oe=UO(ae,oe,Ie),{bottom:Be,top:Fe}=VO(Ce,le,me,Oe),Ke=BO(Q/ie),it=Ke*H+(Ke-1)*De-Be;return{bottom:Be,itemHeight:H,items:Oe,itemWidth:Y,offsetBottom:it,offsetTop:Fe,top:Fe}})),D),Qe(Pe(G,lt(Q=>Q!==null),Ye(Q=>Q.length)),M),Qe(Pe(Xn(L,F,D,V),lt(([Q,ve,{items:Ee}])=>Ee.length>0&&ve.height!==0&&Q.height!==0),Ye(([Q,ve,{items:Ee},le])=>{const{bottom:me,top:Ce}=VO(Q,le,ve,Ee);return[Ce,me]}),wn(xd)),t);const X=Ne(!1);Qe(Pe(d,At(X),Ye(([Q,ve])=>ve||Q!==0)),X);const te=mo(Pe(Xn(D,M),lt(([{items:Q}])=>Q.length>0),At(X),lt(([[Q,ve],Ee])=>{const le=Q.items[Q.items.length-1].index===ve-1;return(Ee||Q.bottom>0&&Q.itemHeight>0&&Q.offsetBottom===0&&Q.items.length===ve)&&le}),Ye(([[,Q]])=>Q-1),wn())),ue=mo(Pe(at(D),lt(({items:Q})=>Q.length>0&&Q[0].index===0),bi(0),wn())),ne=mo(Pe(at(D),At(U),lt(([{items:Q},ve])=>Q.length>0&&!ve),Ye(([{items:Q}])=>({endIndex:Q[Q.length-1].index,startIndex:Q[0].index})),wn(p5),ds(0)));Qe(ne,y.scrollSeekRangeChanged),Qe(Pe(B,At(L,F,M,V),Ye(([Q,ve,Ee,le,me])=>{const Ce=b5(Q),{align:Ie,behavior:Me,offset:be}=Ce;let xe=Ce.index;xe==="LAST"&&(xe=le-1),xe=od(0,xe,ob(le-1,xe));let we=$S(ve,me,Ee,xe);return Ie==="end"?we=HO(we-ve.height+Ee.height):Ie==="center"&&(we=HO(we-ve.height/2+Ee.height/2)),be&&(we+=be),{behavior:Me,top:we}})),f);const ce=xr(Pe(D,Ye(Q=>Q.offsetBottom+Q.bottom)),0);return Qe(Pe(O,Ye(Q=>({height:Q.visibleHeight,width:Q.visibleWidth}))),L),{customScrollParent:x,data:G,deviation:z,footerHeight:i,gap:V,headerHeight:s,increaseViewportBy:e,initialItemCount:A,itemDimensions:F,overscan:n,restoreStateFrom:q,scrollBy:l,scrollContainerState:c,scrollHeight:j,scrollTo:f,scrollToIndex:B,scrollTop:d,smoothScrollTargetReached:p,totalCount:M,useWindowScroll:C,viewportDimensions:L,windowScrollContainerState:R,windowScrollTo:_,windowViewportRect:O,...y,gridState:D,horizontalDirection:$,initialTopMostItemIndex:K,totalListHeight:ce,...m,endReached:te,propsReady:b,rangeChanged:ne,startReached:ue,stateChanged:P,stateRestoreInProgress:U,...T}},Rn(Fw,Pr,hh,C5,Da,zw,Ia));function k5(e,t,n){return od(1,bm((e+n)/(bm(t)+n)))}function VO(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};const s=$S(e,t,n,r[0].index);return{bottom:$S(e,t,n,r[r.length-1].index)+i,top:s}}function $S(e,t,n,r){const i=k5(e.width,n.width,t.column),s=bm(r/i),l=s*n.height+od(0,s-1)*t.row;return l>0?l+t.row:l}const XJ=$t(()=>{const e=Ne(g=>`Item ${g}`),t=Ne({}),n=Ne(null),r=Ne("virtuoso-grid-item"),i=Ne("virtuoso-grid-list"),s=Ne(Hw),l=Ne("div"),c=Ne(ch),f=(g,m=null)=>xr(Pe(t,Ye(y=>y[g]),wn()),m),d=Ne(!1),p=Ne(!1);return Qe(at(p),d),{components:t,computeItemKey:s,context:n,FooterComponent:f("Footer"),HeaderComponent:f("Header"),headerFooterTag:l,itemClassName:r,ItemComponent:f("Item","div"),itemContent:e,listClassName:i,ListComponent:f("List","div"),readyStateChanged:d,reportReadyState:p,ScrollerComponent:f("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:f("ScrollSeekPlaceholder","div")}}),WJ=$t(([e,t])=>({...e,...t}),Rn(KJ,XJ)),QJ=fe.memo(function(){const e=Cn("gridState"),t=Cn("listClassName"),n=Cn("itemClassName"),r=Cn("itemContent"),i=Cn("computeItemKey"),s=Cn("isSeeking"),l=Bo("scrollHeight"),c=Cn("ItemComponent"),f=Cn("ListComponent"),d=Cn("ScrollSeekPlaceholder"),p=Cn("context"),g=Bo("itemDimensions"),m=Bo("gap"),y=Cn("log"),E=Cn("stateRestoreInProgress"),b=Bo("reportReadyState"),x=Ol(fe.useMemo(()=>C=>{const R=C.parentElement.parentElement.scrollHeight;l(R);const _=C.firstChild;if(_){const{height:O,width:T}=_.getBoundingClientRect();g({height:O,width:T})}m({column:jO("column-gap",getComputedStyle(C).columnGap,y),row:jO("row-gap",getComputedStyle(C).rowGap,y)})},[l,g,m,y]),!0,!1);return I5(()=>{e.itemHeight>0&&e.itemWidth>0&&b(!0)},[e]),E?null:Re.jsx(f,{className:t,ref:x,...vr(f,p),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(C=>{const R=i(C.index,C.data,p);return s?Re.jsx(d,{...vr(d,p),height:e.itemHeight,index:C.index,width:e.itemWidth},R):S.createElement(c,{...vr(c,p),className:n,"data-index":C.index,key:R},r(C.index,C.data,p))})})}),JJ=fe.memo(function(){const e=Cn("HeaderComponent"),t=Bo("headerHeight"),n=Cn("headerFooterTag"),r=Ol(fe.useMemo(()=>s=>{t(wa(s,"height"))},[t]),!0,!1),i=Cn("context");return e?Re.jsx(n,{ref:r,children:Re.jsx(e,{...vr(e,i)})}):null}),ZJ=fe.memo(function(){const e=Cn("FooterComponent"),t=Bo("footerHeight"),n=Cn("headerFooterTag"),r=Ol(fe.useMemo(()=>s=>{t(wa(s,"height"))},[t]),!0,!1),i=Cn("context");return e?Re.jsx(n,{ref:r,children:Re.jsx(e,{...vr(e,i)})}):null}),eZ=({children:e})=>{const t=fe.useContext(M5),n=Bo("itemDimensions"),r=Bo("viewportDimensions"),i=Ol(fe.useMemo(()=>s=>{r(s.getBoundingClientRect())},[r]),!0,!1);return fe.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),Re.jsx("div",{ref:i,style:_0(),children:e})},tZ=({children:e})=>{const t=fe.useContext(M5),n=Bo("windowViewportRect"),r=Bo("itemDimensions"),i=Cn("customScrollParent"),s=l5(n,i,!1);return fe.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),Re.jsx("div",{ref:s,style:_0(),children:e})},nZ=fe.memo(function({...e}){const t=Cn("useWindowScroll"),n=Cn("customScrollParent"),r=n||t?oZ:rZ,i=n||t?tZ:eZ,s=Cn("context");return Re.jsx(r,{...e,...vr(r,s),children:Re.jsxs(i,{children:[Re.jsx(JJ,{}),Re.jsx(QJ,{}),Re.jsx(ZJ,{})]})})}),{useEmitter:N5,useEmitterValue:Cn,usePublisher:Bo}=A5(WJ,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},nZ),rZ=L5({useEmitter:N5,useEmitterValue:Cn,usePublisher:Bo}),oZ=P5({useEmitter:N5,useEmitterValue:Cn,usePublisher:Bo});function jO(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,vo.WARN),t==="normal"?0:parseInt(t??"0",10)}var iZ=Object.defineProperty,$O=Object.getOwnPropertySymbols,sZ=Object.prototype.hasOwnProperty,aZ=Object.prototype.propertyIsEnumerable,qO=(e,t,n)=>t in e?iZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GO=(e,t)=>{for(var n in t||(t={}))sZ.call(t,n)&&qO(e,n,t[n]);if($O)for(var n of $O(t))aZ.call(t,n)&&qO(e,n,t[n]);return e},lZ={Cell:'[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],td,th',Row:'[role="row"],tr',RowGroup:'[role="rowgroup"],thead,tbody,tfoot',Focusable:'a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not([aria-disabled="true"]):not([tabindex="-1"]):not(:disabled),*[tabindex]'},uZ=class{constructor(e={}){this.keys=[],this.debugLog=(i,s)=>{this.debug&&console.info(`[${i}]: ${s}`)};const{selectors:t={},pageUpDown:n,debug:r=!1}=e;this.selectors=GO(GO({},lZ),t),this.pageUpDown=n,this.keys=[],this.debug=r,this.disabled=!1}disable(){this.disabled=!0}enable(){this.disabled=!1}isFocusable(e){return e instanceof HTMLElement||e instanceof SVGElement}tableKeyUp(){this.keys=[]}tableKeyDown(e){var t;if(this.debugLog("tableKeyDown",`Key pressed: ${e.key}`),this.disabled){this.debugLog("tableKeyDown","interaction is disabled");return}if((e.key==="ArrowDown"||e.key==="ArrowUp"||e.key==="ArrowLeft"||e.key==="ArrowRight")&&e.preventDefault(),(this.keys.length===0||this.keys[this.keys.length-1]!==e.key)&&this.keys.push(e.key),!(e.target instanceof Element))return;const n=(t=e.target.parentElement)==null?void 0:t.closest(`${this.selectors.Cell},${this.selectors.Row}`);if(!n){this.debugLog("tableKeyDown","cell not found");return}n.matches(this.selectors.Cell)?(this.debugLog("tableKeyDown","event captured in cell"),this.cellNavigation(e)):(this.debugLog("tableKeyDown","event captured in cell"),this.gridNavigation(e))}cellNavigation(e){if(e.target instanceof Element){if(e.key==="Escape"){const t=e.target.closest(this.selectors.Cell);if(t&&this.isFocusable(t)){t.focus();return}}if(e.key==="ArrowRight"||e.key==="ArrowDown"){const t=e.target.closest(this.selectors.Cell);if(!t){this.debugLog("cellNavigation","cell not found");return}const n=[...t.querySelectorAll(this.selectors.Focusable)],r=n.findIndex(l=>l===e.target),i=r===n.length-1?0:r+1,s=n[i];this.isFocusable(s)&&s.focus();return}if(e.key==="ArrowLeft"||e.key==="ArrowUp"){const t=e.target.closest(this.selectors.Cell);if(!t){this.debugLog("cellNavigation","cell not found");return}const n=[...t.querySelectorAll(this.selectors.Focusable)],r=n.findIndex(l=>l===e.target),i=r===0?n.length-1:r-1,s=n[i];this.isFocusable(s)&&s.focus();return}}}gridNavigation(e){var t;const{target:n}=e;if(e.target instanceof Element&&n instanceof Element)if(this.keys.length===1){if(e.key==="Enter"){const r=e.target.querySelector(this.selectors.Focusable);r&&this.isFocusable(r)&&(r.focus(),e.preventDefault())}if(e.key==="ArrowLeft"||e.key==="ArrowRight"){const r=e.key==="ArrowLeft"?"prev":"next",i=e.target.closest(this.selectors.Cell);if(i&&i instanceof Element){const s=this.findUntil(r,i,this.selectors.Cell);s&&s.focus()}}if(e.key==="ArrowDown"||e.key==="ArrowUp"){this.verticalCellNavigation(e);return}if(e.key==="PageUp"||e.key==="PageDown"){this.pageCellNavigation(e);return}if(e.key==="Home"||e.key==="End"){const r=e.target.closest(this.selectors.Row),i=[...(r==null?void 0:r.children)||[]];e.key==="End"&&i.reverse(),this.focusOnFirstCell(i)}}else{const[r,i]=this.keys;if(r==="Control"&&(i==="Home"||i==="End")){const l=(t=e.target.closest(this.selectors.Row).parentElement)==null?void 0:t.children;if(!l){this.debugLog("cellNavigation","siblings not found");return}const c=i==="Home"?l[0]:l[l.length-1],f=[...(c==null?void 0:c.children)||[]];i==="End"&&f.reverse(),this.focusOnFirstCell(f)}}}pageCellNavigation(e){var t;if(!(e.target instanceof Element))return;const n=e.target.closest(this.selectors.Row),r=e.target.closest(this.selectors.Cell);if(n&&r){const i=this.getColumnIndex(r);if(i===void 0){this.debugLog("cellNavigation","position not found");return}const s=e.key==="PageUp"?"prev":"next",l=(t=n.parentElement)==null?void 0:t.children;if(!l){this.debugLog("cellNavigation","siblings not found");return}let c;if(this.pageUpDown){const d=s==="prev"?"previousSibling":"nextSibling";let p=n[d];if(p===null)return;let g=p;for(let m=0;m<this.pageUpDown-1&&p;m++)p=p[d],p&&(g=p);c=p||g}else c=s==="prev"?l[0]:l[l.length-1];if(!c||!(c instanceof Element))return;const f=c.children[i];f&&this.isFocusable(f)&&f.focus()}}verticalCellNavigation(e){var t,n,r,i,s;if(!(e.target instanceof Element))return;const l=e.target.closest(this.selectors.Row),c=e.target.closest(this.selectors.Cell);if(l&&c){const f=this.getColumnIndex(c),d=this.getRowIndex(l);if(this.debugLog("gridNavigation",`Initial row position: ${d}`),this.debugLog("gridNavigation",`Initial cell position: ${f}`),f===void 0||d===void 0){this.debugLog("verticalCellNavigation","row or cell position not found");return}const p=e.key==="ArrowUp"?"prev":"next";if(d===0&&p==="prev"){const E=(t=l.parentElement)==null?void 0:t.closest(this.selectors.RowGroup),b=[...((n=E==null?void 0:E.parentElement)==null?void 0:n.children)||[]],x=b.findIndex(C=>C===E);if(x!==0){const R=[...b[x-1].querySelectorAll(this.selectors.Row)],_=R[R.length-1].children[f];_&&this.isFocusable(_)&&_.focus();return}}const g=[...((r=l.parentElement)==null?void 0:r.querySelectorAll(this.selectors.Row))||[]];if(d===g.length-1&&p==="next"){const E=(i=l.parentElement)==null?void 0:i.closest(this.selectors.RowGroup),b=[...((s=E==null?void 0:E.parentElement)==null?void 0:s.children)||[]],x=b.findIndex(C=>C===E);if(x!==b.length-1){const _=[...b[x+1].querySelectorAll(this.selectors.Row)][0].children[f];_&&this.isFocusable(_)&&_.focus();return}return}const m=this.findUntil(p,l,this.selectors.Row);if(!m)return;const y=m.children[f];y&&this.isFocusable(y)&&y.focus()}}focusOnFirstCell(e){for(let t=0;t<e.length;t++){const n=e[t];if(this.isFocusable(n)){n.focus();return}}}getColumnIndex(e){var t;let n=0;const r=(t=e==null?void 0:e.parentNode)==null?void 0:t.children;if(r){for(;e!==r[n]&&r[n]!==void 0;)n++;if(r[n]===void 0){this.debugLog("getColumnIndex","position finding was not successful");return}return n}}getRowIndex(e){var t;let n=0;const r=(t=e==null?void 0:e.parentNode)==null?void 0:t.children;if(r){for(;e!==r[n]&&r[n]!==void 0;)n++;if(r[n]===void 0){this.debugLog("getRowIndex","position finding was not successful");return}return n}}findUntil(e,t,n,r){let i=t;const s=e==="next"?"nextSibling":"previousSibling";for(;i[s];){const l=i[s];if(!l||r&&l instanceof Element&&l.matches(r))return null;if(l instanceof Element&&l.matches(n))return l;i=l}return null}};function Xre(e){const t=new uZ(e);return{listeners:{onKeyDown:n=>t.tableKeyDown(n),onKeyUp:()=>t.tableKeyUp()},tableNav:t}}function aa(e,t){return typeof e=="function"?e(t):e}function So(e,t){return n=>{t.setState(r=>({...r,[e]:aa(n,r[e])}))}}function T0(e){return e instanceof Function}function cZ(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function fZ(e,t){const n=[],r=i=>{i.forEach(s=>{n.push(s);const l=t(s);l!=null&&l.length&&r(l)})};return r(e),n}function ft(e,t,n){let r=[],i;return s=>{let l;n.key&&n.debug&&(l=Date.now());const c=e(s);if(!(c.length!==r.length||c.some((p,g)=>r[g]!==p)))return i;r=c;let d;if(n.key&&n.debug&&(d=Date.now()),i=t(...c),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const p=Math.round((Date.now()-l)*100)/100,g=Math.round((Date.now()-d)*100)/100,m=g/16,y=(E,b)=>{for(E=String(E);E.length<b;)E=" "+E;return E};console.info(`%c⏱ ${y(g,5)} /${y(p,5)} ms`,`
39
+ font-size: .6rem;
40
+ font-weight: bold;
41
+ color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function dt(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function dZ(e,t,n,r){const i=()=>{var l;return(l=s.getValue())!=null?l:e.options.renderFallbackValue},s={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:ft(()=>[e,n,t,s],(l,c,f,d)=>({table:l,column:c,row:f,cell:d,getValue:d.getValue,renderValue:d.renderValue}),dt(e.options,"debugCells"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(s,n,t,e)},{}),s}function hZ(e,t,n,r){var i,s;const c={...e._getDefaultColumnDef(),...t},f=c.accessorKey;let d=(i=(s=c.id)!=null?s:f?typeof String.prototype.replaceAll=="function"?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)!=null?i:typeof c.header=="string"?c.header:void 0,p;if(c.accessorFn?p=c.accessorFn:f&&(f.includes(".")?p=m=>{let y=m;for(const b of f.split(".")){var E;y=(E=y)==null?void 0:E[b]}return y}:p=m=>m[c.accessorKey]),!d)throw new Error;let g={id:`${String(d)}`,accessorFn:p,parent:r,depth:n,columnDef:c,columns:[],getFlatColumns:ft(()=>[!0],()=>{var m;return[g,...(m=g.columns)==null?void 0:m.flatMap(y=>y.getFlatColumns())]},dt(e.options,"debugColumns")),getLeafColumns:ft(()=>[e._getOrderColumnsFn()],m=>{var y;if((y=g.columns)!=null&&y.length){let E=g.columns.flatMap(b=>b.getLeafColumns());return m(E)}return[g]},dt(e.options,"debugColumns"))};for(const m of e._features)m.createColumn==null||m.createColumn(g,e);return g}const Sr="debugHeaders";function YO(e,t,n){var r;let s={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],c=f=>{f.subHeaders&&f.subHeaders.length&&f.subHeaders.map(c),l.push(f)};return c(s),l},getContext:()=>({table:e,header:s,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(s,e)}),s}const pZ={createTable:e=>{e.getHeaderGroups=ft(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var s,l;const c=(s=r==null?void 0:r.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?s:[],f=(l=i==null?void 0:i.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?l:[],d=n.filter(g=>!(r!=null&&r.includes(g.id))&&!(i!=null&&i.includes(g.id)));return tg(t,[...c,...d,...f],e)},dt(e.options,Sr)),e.getCenterHeaderGroups=ft(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(s=>!(r!=null&&r.includes(s.id))&&!(i!=null&&i.includes(s.id))),tg(t,n,e,"center")),dt(e.options,Sr)),e.getLeftHeaderGroups=ft(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const s=(i=r==null?void 0:r.map(l=>n.find(c=>c.id===l)).filter(Boolean))!=null?i:[];return tg(t,s,e,"left")},dt(e.options,Sr)),e.getRightHeaderGroups=ft(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const s=(i=r==null?void 0:r.map(l=>n.find(c=>c.id===l)).filter(Boolean))!=null?i:[];return tg(t,s,e,"right")},dt(e.options,Sr)),e.getFooterGroups=ft(()=>[e.getHeaderGroups()],t=>[...t].reverse(),dt(e.options,Sr)),e.getLeftFooterGroups=ft(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),dt(e.options,Sr)),e.getCenterFooterGroups=ft(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),dt(e.options,Sr)),e.getRightFooterGroups=ft(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),dt(e.options,Sr)),e.getFlatHeaders=ft(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),dt(e.options,Sr)),e.getLeftFlatHeaders=ft(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),dt(e.options,Sr)),e.getCenterFlatHeaders=ft(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),dt(e.options,Sr)),e.getRightFlatHeaders=ft(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),dt(e.options,Sr)),e.getCenterLeafHeaders=ft(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),dt(e.options,Sr)),e.getLeftLeafHeaders=ft(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),dt(e.options,Sr)),e.getRightLeafHeaders=ft(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),dt(e.options,Sr)),e.getLeafHeaders=ft(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,s,l,c,f,d;return[...(i=(s=t[0])==null?void 0:s.headers)!=null?i:[],...(l=(c=n[0])==null?void 0:c.headers)!=null?l:[],...(f=(d=r[0])==null?void 0:d.headers)!=null?f:[]].map(p=>p.getLeafHeaders()).flat()},dt(e.options,Sr))}};function tg(e,t,n,r){var i,s;let l=0;const c=function(m,y){y===void 0&&(y=1),l=Math.max(l,y),m.filter(E=>E.getIsVisible()).forEach(E=>{var b;(b=E.columns)!=null&&b.length&&c(E.columns,y+1)},0)};c(e);let f=[];const d=(m,y)=>{const E={depth:y,id:[r,`${y}`].filter(Boolean).join("_"),headers:[]},b=[];m.forEach(x=>{const C=[...b].reverse()[0],R=x.column.depth===E.depth;let _,O=!1;if(R&&x.column.parent?_=x.column.parent:(_=x.column,O=!0),C&&(C==null?void 0:C.column)===_)C.subHeaders.push(x);else{const T=YO(n,_,{id:[r,y,_.id,x==null?void 0:x.id].filter(Boolean).join("_"),isPlaceholder:O,placeholderId:O?`${b.filter(M=>M.column===_).length}`:void 0,depth:y,index:b.length});T.subHeaders.push(x),b.push(T)}E.headers.push(x),x.headerGroup=E}),f.push(E),y>0&&d(b,y-1)},p=t.map((m,y)=>YO(n,m,{depth:l,index:y}));d(p,l-1),f.reverse();const g=m=>m.filter(E=>E.column.getIsVisible()).map(E=>{let b=0,x=0,C=[0];E.subHeaders&&E.subHeaders.length?(C=[],g(E.subHeaders).forEach(_=>{let{colSpan:O,rowSpan:T}=_;b+=O,C.push(T)})):b=1;const R=Math.min(...C);return x=x+R,E.colSpan=b,E.rowSpan=x,{colSpan:b,rowSpan:x}});return g((i=(s=f[0])==null?void 0:s.headers)!=null?i:[]),f}const gZ=(e,t,n,r,i,s,l)=>{let c={id:t,index:r,original:n,depth:i,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:f=>{if(c._valuesCache.hasOwnProperty(f))return c._valuesCache[f];const d=e.getColumn(f);if(d!=null&&d.accessorFn)return c._valuesCache[f]=d.accessorFn(c.original,r),c._valuesCache[f]},getUniqueValues:f=>{if(c._uniqueValuesCache.hasOwnProperty(f))return c._uniqueValuesCache[f];const d=e.getColumn(f);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(c._uniqueValuesCache[f]=d.columnDef.getUniqueValues(c.original,r),c._uniqueValuesCache[f]):(c._uniqueValuesCache[f]=[c.getValue(f)],c._uniqueValuesCache[f])},renderValue:f=>{var d;return(d=c.getValue(f))!=null?d:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>fZ(c.subRows,f=>f.subRows),getParentRow:()=>c.parentId?e.getRow(c.parentId,!0):void 0,getParentRows:()=>{let f=[],d=c;for(;;){const p=d.getParentRow();if(!p)break;f.push(p),d=p}return f.reverse()},getAllCells:ft(()=>[e.getAllLeafColumns()],f=>f.map(d=>dZ(e,c,d,d.id)),dt(e.options,"debugRows")),_getAllCellsByColumnId:ft(()=>[c.getAllCells()],f=>f.reduce((d,p)=>(d[p.column.id]=p,d),{}),dt(e.options,"debugRows"))};for(let f=0;f<e._features.length;f++){const d=e._features[f];d==null||d.createRow==null||d.createRow(c,e)}return c},mZ={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},F5=(e,t,n)=>{var r,i;const s=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(s))};F5.autoRemove=e=>ti(e);const z5=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};z5.autoRemove=e=>ti(e);const B5=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};B5.autoRemove=e=>ti(e);const H5=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};H5.autoRemove=e=>ti(e);const U5=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});U5.autoRemove=e=>ti(e)||!(e!=null&&e.length);const V5=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});V5.autoRemove=e=>ti(e)||!(e!=null&&e.length);const j5=(e,t,n)=>e.getValue(t)===n;j5.autoRemove=e=>ti(e);const $5=(e,t,n)=>e.getValue(t)==n;$5.autoRemove=e=>ti(e);const Vw=(e,t,n)=>{let[r,i]=n;const s=e.getValue(t);return s>=r&&s<=i};Vw.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,s=t===null||Number.isNaN(r)?-1/0:r,l=n===null||Number.isNaN(i)?1/0:i;if(s>l){const c=s;s=l,l=c}return[s,l]};Vw.autoRemove=e=>ti(e)||ti(e[0])&&ti(e[1]);const ss={includesString:F5,includesStringSensitive:z5,equalsString:B5,arrIncludes:H5,arrIncludesAll:U5,arrIncludesSome:V5,equals:j5,weakEquals:$5,inNumberRange:Vw};function ti(e){return e==null||e===""}const vZ={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:So("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?ss.includesString:typeof r=="number"?ss.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?ss.equals:Array.isArray(r)?ss.arrIncludes:ss.weakEquals},e.getFilterFn=()=>{var n,r;return T0(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:ss[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),s=r==null?void 0:r.find(p=>p.id===e.id),l=aa(n,s?s.value:void 0);if(KO(i,l,e)){var c;return(c=r==null?void 0:r.filter(p=>p.id!==e.id))!=null?c:[]}const f={id:e.id,value:l};if(s){var d;return(d=r==null?void 0:r.map(p=>p.id===e.id?f:p))!=null?d:[]}return r!=null&&r.length?[...r,f]:[f]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var s;return(s=aa(t,i))==null?void 0:s.filter(l=>{const c=n.find(f=>f.id===l.id);if(c){const f=c.getFilterFn();if(KO(f,l.value,c))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function KO(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const yZ=(e,t,n)=>n.reduce((r,i)=>{const s=i.getValue(e);return r+(typeof s=="number"?s:0)},0),bZ=(e,t,n)=>{let r;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}),r},SZ=(e,t,n)=>{let r;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r<s||r===void 0&&s>=s)&&(r=s)}),r},EZ=(e,t,n)=>{let r,i;return n.forEach(s=>{const l=s.getValue(e);l!=null&&(r===void 0?l>=l&&(r=i=l):(r>l&&(r=l),i<l&&(i=l)))}),[r,i]},wZ=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let s=i.getValue(e);s!=null&&(s=+s)>=s&&(++n,r+=s)}),n)return r/n},RZ=(e,t)=>{if(!t.length)return;const n=t.map(s=>s.getValue(e));if(!cZ(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((s,l)=>s-l);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},xZ=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),CZ=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,_Z=(e,t)=>t.length,ib={sum:yZ,min:bZ,max:SZ,extent:EZ,mean:wZ,median:RZ,unique:xZ,uniqueCount:CZ,count:_Z},TZ={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:So("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return ib.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ib.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return T0(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:ib[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function AZ(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(s=>!t.includes(s.id));return n==="remove"?r:[...t.map(s=>e.find(l=>l.id===s)).filter(Boolean),...r]}const OZ={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:So("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ft(n=>[id(t,n)],n=>n.findIndex(r=>r.id===e.id),dt(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=id(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=id(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ft(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let s=[];if(!(t!=null&&t.length))s=i;else{const l=[...t],c=[...i];for(;c.length&&l.length;){const f=l.shift(),d=c.findIndex(p=>p.id===f);d>-1&&s.push(c.splice(d,1)[0])}s=[...s,...c]}return AZ(s,n,r)},dt(e.options,"debugTable"))}},sb=()=>({left:[],right:[]}),MZ={getInitialState:e=>({columnPinning:sb(),...e}),getDefaultOptions:e=>({onColumnPinningChange:So("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var s,l;if(n==="right"){var c,f;return{left:((c=i==null?void 0:i.left)!=null?c:[]).filter(g=>!(r!=null&&r.includes(g))),right:[...((f=i==null?void 0:i.right)!=null?f:[]).filter(g=>!(r!=null&&r.includes(g))),...r]}}if(n==="left"){var d,p;return{left:[...((d=i==null?void 0:i.left)!=null?d:[]).filter(g=>!(r!=null&&r.includes(g))),...r],right:((p=i==null?void 0:i.right)!=null?p:[]).filter(g=>!(r!=null&&r.includes(g)))}}return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(g=>!(r!=null&&r.includes(g))),right:((l=i==null?void 0:i.right)!=null?l:[]).filter(g=>!(r!=null&&r.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,s,l;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((s=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?s:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(c=>c.id),{left:r,right:i}=t.getState().columnPinning,s=n.some(c=>r==null?void 0:r.includes(c)),l=n.some(c=>i==null?void 0:i.includes(c));return s?"left":l?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ft(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const s=[...r??[],...i??[]];return n.filter(l=>!s.includes(l.column.id))},dt(t.options,"debugRows")),e.getLeftVisibleCells=ft(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(s=>n.find(l=>l.column.id===s)).filter(Boolean).map(s=>({...s,position:"left"})),dt(t.options,"debugRows")),e.getRightVisibleCells=ft(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(s=>n.find(l=>l.column.id===s)).filter(Boolean).map(s=>({...s,position:"right"})),dt(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?sb():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:sb())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,s;return!!((i=r.left)!=null&&i.length||(s=r.right)!=null&&s.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=ft(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),dt(e.options,"debugColumns")),e.getRightLeafColumns=ft(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),dt(e.options,"debugColumns")),e.getCenterLeafColumns=ft(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(s=>!i.includes(s.id))},dt(e.options,"debugColumns"))}};function IZ(e){return e||(typeof document<"u"?document:null)}const ng={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ab=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),DZ={getDefaultColumnDef:()=>ng,getInitialState:e=>({columnSizing:{},columnSizingInfo:ab(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:So("columnSizing",e),onColumnSizingInfoChange:So("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const s=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:ng.minSize,(r=s??e.columnDef.size)!=null?r:ng.size),(i=e.columnDef.maxSize)!=null?i:ng.maxSize)},e.getStart=ft(n=>[n,id(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,s)=>i+s.getSize(),0),dt(t.options,"debugColumns")),e.getAfter=ft(n=>[n,id(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,s)=>i+s.getSize(),0),dt(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var s;n+=(s=i.column.getSize())!=null?s:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return s=>{if(!r||!i||(s.persist==null||s.persist(),lb(s)&&s.touches&&s.touches.length>1))return;const l=e.getSize(),c=e?e.getLeafHeaders().map(C=>[C.column.id,C.column.getSize()]):[[r.id,r.getSize()]],f=lb(s)?Math.round(s.touches[0].clientX):s.clientX,d={},p=(C,R)=>{typeof R=="number"&&(t.setColumnSizingInfo(_=>{var O,T;const M=t.options.columnResizeDirection==="rtl"?-1:1,A=(R-((O=_==null?void 0:_.startOffset)!=null?O:0))*M,D=Math.max(A/((T=_==null?void 0:_.startSize)!=null?T:0),-.999999);return _.columnSizingStart.forEach(L=>{let[F,B]=L;d[F]=Math.round(Math.max(B+B*D,0)*100)/100}),{..._,deltaOffset:A,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||C==="end")&&t.setColumnSizing(_=>({..._,...d})))},g=C=>p("move",C),m=C=>{p("end",C),t.setColumnSizingInfo(R=>({...R,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},y=IZ(n),E={moveHandler:C=>g(C.clientX),upHandler:C=>{y==null||y.removeEventListener("mousemove",E.moveHandler),y==null||y.removeEventListener("mouseup",E.upHandler),m(C.clientX)}},b={moveHandler:C=>(C.cancelable&&(C.preventDefault(),C.stopPropagation()),g(C.touches[0].clientX),!1),upHandler:C=>{var R;y==null||y.removeEventListener("touchmove",b.moveHandler),y==null||y.removeEventListener("touchend",b.upHandler),C.cancelable&&(C.preventDefault(),C.stopPropagation()),m((R=C.touches[0])==null?void 0:R.clientX)}},x=LZ()?{passive:!1}:!1;lb(s)?(y==null||y.addEventListener("touchmove",b.moveHandler,x),y==null||y.addEventListener("touchend",b.upHandler,x)):(y==null||y.addEventListener("mousemove",E.moveHandler,x),y==null||y.addEventListener("mouseup",E.upHandler,x)),t.setColumnSizingInfo(C=>({...C,startOffset:f,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:c,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?ab():(n=e.initialState.columnSizingInfo)!=null?n:ab())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let rg=null;function LZ(){if(typeof rg=="boolean")return rg;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return rg=e,rg}function lb(e){return e.type==="touchstart"}const PZ={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:So("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(s=>s.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ft(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),dt(t.options,"debugRows")),e.getVisibleCells=ft(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],dt(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>ft(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(s=>s.getIsVisible==null?void 0:s.getIsVisible()),dt(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,s)=>({...i,[s.id]:n||!(s.getCanHide!=null&&s.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function id(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const kZ={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},NZ={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:So("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,s;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((s=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?s:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ss.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return T0(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:ss[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},FZ={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:So("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,s;e.setExpanded(r?{}:(i=(s=e.initialState)==null?void 0:s.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(s=>{const l=s.split(".");r=Math.max(r,l.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const s=r===!0?!0:!!(r!=null&&r[e.id]);let l={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(c=>{l[c]=!0}):l=r,n=(i=n)!=null?i:!s,!s&&n)return{...l,[e.id]:!0};if(s&&!n){const{[e.id]:c,...f}=l;return f}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},qS=0,GS=10,ub=()=>({pageIndex:qS,pageSize:GS}),zZ={getInitialState:e=>({...e,pagination:{...ub(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:So("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=s=>aa(r,s);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?ub():(i=e.initialState.pagination)!=null?i:ub())},e.setPageIndex=r=>{e.setPagination(i=>{let s=aa(r,i.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return s=Math.max(0,Math.min(s,l)),{...i,pageIndex:s}})},e.resetPageIndex=r=>{var i,s;e.setPageIndex(r?qS:(i=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageIndex)!=null?i:qS)},e.resetPageSize=r=>{var i,s;e.setPageSize(r?GS:(i=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageSize)!=null?i:GS)},e.setPageSize=r=>{e.setPagination(i=>{const s=Math.max(1,aa(r,i.pageSize)),l=i.pageSize*i.pageIndex,c=Math.floor(l/s);return{...i,pageIndex:c,pageSize:s}})},e.setPageCount=r=>e.setPagination(i=>{var s;let l=aa(r,(s=e.options.pageCount)!=null?s:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...i,pageCount:l}}),e.getPageOptions=ft(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((s,l)=>l)),i},dt(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},cb=()=>({top:[],bottom:[]}),BZ={getInitialState:e=>({rowPinning:cb(),...e}),getDefaultOptions:e=>({onRowPinningChange:So("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const s=r?e.getLeafRows().map(f=>{let{id:d}=f;return d}):[],l=i?e.getParentRows().map(f=>{let{id:d}=f;return d}):[],c=new Set([...l,e.id,...s]);t.setRowPinning(f=>{var d,p;if(n==="bottom"){var g,m;return{top:((g=f==null?void 0:f.top)!=null?g:[]).filter(b=>!(c!=null&&c.has(b))),bottom:[...((m=f==null?void 0:f.bottom)!=null?m:[]).filter(b=>!(c!=null&&c.has(b))),...Array.from(c)]}}if(n==="top"){var y,E;return{top:[...((y=f==null?void 0:f.top)!=null?y:[]).filter(b=>!(c!=null&&c.has(b))),...Array.from(c)],bottom:((E=f==null?void 0:f.bottom)!=null?E:[]).filter(b=>!(c!=null&&c.has(b)))}}return{top:((d=f==null?void 0:f.top)!=null?d:[]).filter(b=>!(c!=null&&c.has(b))),bottom:((p=f==null?void 0:f.bottom)!=null?p:[]).filter(b=>!(c!=null&&c.has(b)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,s=n.some(c=>r==null?void 0:r.includes(c)),l=n.some(c=>i==null?void 0:i.includes(c));return s?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const s=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(l=>{let{id:c}=l;return c});return(r=s==null?void 0:s.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?cb():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:cb())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,s;return!!((i=r.top)!=null&&i.length||(s=r.bottom)!=null&&s.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(l=>{const c=e.getRow(l,!0);return c.getIsAllParentsExpanded()?c:null}):(n??[]).map(l=>t.find(c=>c.id===l))).filter(Boolean).map(l=>({...l,position:r}))},e.getTopRows=ft(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),dt(e.options,"debugRows")),e.getBottomRows=ft(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),dt(e.options,"debugRows")),e.getCenterRows=ft(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(s=>!i.has(s.id))},dt(e.options,"debugRows"))}},HZ={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:So("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(s=>{s.getCanSelect()&&(r[s.id]=!0)}):i.forEach(s=>{delete r[s.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(s=>{YS(i,s.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ft(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?fb(e,n):{rows:[],flatRows:[],rowsById:{}},dt(e.options,"debugTable")),e.getFilteredSelectedRowModel=ft(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?fb(e,n):{rows:[],flatRows:[],rowsById:{}},dt(e.options,"debugTable")),e.getGroupedSelectedRowModel=ft(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?fb(e,n):{rows:[],flatRows:[],rowsById:{}},dt(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(s=>{var l;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return s;const c={...s};return YS(c,e.id,n,(l=r==null?void 0:r.selectChildren)!=null?l:!0,t),c})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return jw(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return KS(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return KS(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},YS=(e,t,n,r,i)=>{var s;const l=i.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(c=>delete e[c]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(s=l.subRows)!=null&&s.length&&l.getCanSelectSubRows()&&l.subRows.forEach(c=>YS(e,c.id,n,r,i))};function fb(e,t){const n=e.getState().rowSelection,r=[],i={},s=function(l,c){return l.map(f=>{var d;const p=jw(f,n);if(p&&(r.push(f),i[f.id]=f),(d=f.subRows)!=null&&d.length&&(f={...f,subRows:s(f.subRows)}),p)return f}).filter(Boolean)};return{rows:s(t.rows),flatRows:r,rowsById:i}}function jw(e,t){var n;return(n=t[e.id])!=null?n:!1}function KS(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,s=!1;return e.subRows.forEach(l=>{if(!(s&&!i)&&(l.getCanSelect()&&(jw(l,t)?s=!0:i=!1),l.subRows&&l.subRows.length)){const c=KS(l,t);c==="all"?s=!0:(c==="some"&&(s=!0),i=!1)}}),i?"all":s?"some":!1}const XS=/([0-9]+)/gm,UZ=(e,t,n)=>q5(Ra(e.getValue(n)).toLowerCase(),Ra(t.getValue(n)).toLowerCase()),VZ=(e,t,n)=>q5(Ra(e.getValue(n)),Ra(t.getValue(n))),jZ=(e,t,n)=>$w(Ra(e.getValue(n)).toLowerCase(),Ra(t.getValue(n)).toLowerCase()),$Z=(e,t,n)=>$w(Ra(e.getValue(n)),Ra(t.getValue(n))),qZ=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},GZ=(e,t,n)=>$w(e.getValue(n),t.getValue(n));function $w(e,t){return e===t?0:e>t?1:-1}function Ra(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function q5(e,t){const n=e.split(XS).filter(Boolean),r=t.split(XS).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),s=r.shift(),l=parseInt(i,10),c=parseInt(s,10),f=[l,c].sort();if(isNaN(f[0])){if(i>s)return 1;if(s>i)return-1;continue}if(isNaN(f[1]))return isNaN(l)?-1:1;if(l>c)return 1;if(c>l)return-1}return n.length-r.length}const $f={alphanumeric:UZ,alphanumericCaseSensitive:VZ,text:jZ,textCaseSensitive:$Z,datetime:qZ,basic:GZ},YZ={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:So("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const s=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(s)==="[object Date]")return $f.datetime;if(typeof s=="string"&&(r=!0,s.split(XS).length>1))return $f.alphanumeric}return r?$f.text:$f.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return T0(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:$f[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),s=typeof n<"u"&&n!==null;t.setSorting(l=>{const c=l==null?void 0:l.find(y=>y.id===e.id),f=l==null?void 0:l.findIndex(y=>y.id===e.id);let d=[],p,g=s?n:i==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&r?c?p="toggle":p="add":l!=null&&l.length&&f!==l.length-1?p="replace":c?p="toggle":p="replace",p==="toggle"&&(s||i||(p="remove")),p==="add"){var m;d=[...l,{id:e.id,desc:g}],d.splice(0,d.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else p==="toggle"?d=l.map(y=>y.id===e.id?{...y,desc:g}:y):p==="remove"?d=l.filter(y=>y.id!==e.id):d=[{id:e.id,desc:g}];return d})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const s=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==s&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:l==="desc"?"asc":"desc":s},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},KZ=[pZ,PZ,OZ,MZ,mZ,vZ,kZ,NZ,YZ,TZ,FZ,zZ,BZ,HZ,DZ];function XZ(e){var t,n;const r=[...KZ,...(t=e._features)!=null?t:[]];let i={_features:r};const s=i._features.reduce((m,y)=>Object.assign(m,y.getDefaultOptions==null?void 0:y.getDefaultOptions(i)),{}),l=m=>i.options.mergeOptions?i.options.mergeOptions(s,m):{...s,...m};let f={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(m=>{var y;f=(y=m.getInitialState==null?void 0:m.getInitialState(f))!=null?y:f});const d=[];let p=!1;const g={_features:r,options:{...s,...e},initialState:f,_queue:m=>{d.push(m),p||(p=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();p=!1}).catch(y=>setTimeout(()=>{throw y})))},reset:()=>{i.setState(i.initialState)},setOptions:m=>{const y=aa(m,i.options);i.options=l(y)},getState:()=>i.options.state,setState:m=>{i.options.onStateChange==null||i.options.onStateChange(m)},_getRowId:(m,y,E)=>{var b;return(b=i.options.getRowId==null?void 0:i.options.getRowId(m,y,E))!=null?b:`${E?[E.id,y].join("."):y}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(m,y)=>{let E=(y?i.getPrePaginationRowModel():i.getRowModel()).rowsById[m];if(!E&&(E=i.getCoreRowModel().rowsById[m],!E))throw new Error;return E},_getDefaultColumnDef:ft(()=>[i.options.defaultColumn],m=>{var y;return m=(y=m)!=null?y:{},{header:E=>{const b=E.header.column.columnDef;return b.accessorKey?b.accessorKey:b.accessorFn?b.id:null},cell:E=>{var b,x;return(b=(x=E.renderValue())==null||x.toString==null?void 0:x.toString())!=null?b:null},...i._features.reduce((E,b)=>Object.assign(E,b.getDefaultColumnDef==null?void 0:b.getDefaultColumnDef()),{}),...m}},dt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:ft(()=>[i._getColumnDefs()],m=>{const y=function(E,b,x){return x===void 0&&(x=0),E.map(C=>{const R=hZ(i,C,x,b),_=C;return R.columns=_.columns?y(_.columns,R,x+1):[],R})};return y(m)},dt(e,"debugColumns")),getAllFlatColumns:ft(()=>[i.getAllColumns()],m=>m.flatMap(y=>y.getFlatColumns()),dt(e,"debugColumns")),_getAllFlatColumnsById:ft(()=>[i.getAllFlatColumns()],m=>m.reduce((y,E)=>(y[E.id]=E,y),{}),dt(e,"debugColumns")),getAllLeafColumns:ft(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(m,y)=>{let E=m.flatMap(b=>b.getLeafColumns());return y(E)},dt(e,"debugColumns")),getColumn:m=>i._getAllFlatColumnsById()[m]};Object.assign(i,g);for(let m=0;m<i._features.length;m++){const y=i._features[m];y==null||y.createTable==null||y.createTable(i)}return i}function Wre(){return e=>ft(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,s,l){s===void 0&&(s=0);const c=[];for(let d=0;d<i.length;d++){const p=gZ(e,e._getRowId(i[d],d,l),i[d],d,s,void 0,l==null?void 0:l.id);if(n.flatRows.push(p),n.rowsById[p.id]=p,c.push(p),e.options.getSubRows){var f;p.originalSubRows=e.options.getSubRows(i[d],d),(f=p.originalSubRows)!=null&&f.length&&(p.subRows=r(p.originalSubRows,s+1,p))}}return c};return n.rows=r(t),n},dt(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Qre(e,t){return e?WZ(e)?S.createElement(e,t):e:null}function WZ(e){return QZ(e)||typeof e=="function"||JZ(e)}function QZ(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function JZ(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Jre(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:XZ(t)})),[r,i]=S.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...r,...e.state},onStateChange:l=>{i(l),e.onStateChange==null||e.onStateChange(l)}})),n.current}function G5(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function ZZ(e,t){return e.reduce((n,r,i)=>{const s=t.get(r);return s&&(n[i]=s),n},Array(e.length))}function og(e){return e!==null&&e>=0}function eee(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function tee(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ig={scaleX:1,scaleY:1},Zre=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:s,index:l}=e;const c=(t=n[i])!=null?t:r;if(!c)return null;const f=nee(n,l,i);if(l===i){const d=n[s];return d?{x:i<s?d.left+d.width-(c.left+c.width):d.left-c.left,y:0,...ig}:null}return l>i&&l<=s?{x:-c.width-f,y:0,...ig}:l<i&&l>=s?{x:c.width+f,y:0,...ig}:{x:0,y:0,...ig}};function nee(e,t,n){const r=e[t],i=e[t-1],s=e[t+1];return!r||!i&&!s?0:n<t?i?r.left-(i.left+i.width):s.left-(r.left+r.width):s?s.left-(r.left+r.width):r.left-(i.left+i.width)}const Y5=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const s=G5(t,r,n),l=t[i],c=s[i];return!c||!l?null:{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}},sg={scaleX:1,scaleY:1},eoe=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:s,overIndex:l}=e;const c=(t=s[n])!=null?t:r;if(!c)return null;if(i===n){const d=s[l];return d?{x:0,y:n<l?d.top+d.height-(c.top+c.height):d.top-c.top,...sg}:null}const f=ree(s,i,n);return i>n&&i<=l?{x:0,y:-c.height-f,...sg}:i<n&&i>=l?{x:0,y:c.height+f,...sg}:{x:0,y:0,...sg}};function ree(e,t,n){const r=e[t],i=e[t-1],s=e[t+1];return r?n<t?i?r.top-(i.top+i.height):s?s.top-(r.top+r.height):0:s?s.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const K5="Sortable",X5=fe.createContext({activeIndex:-1,containerId:K5,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Y5,disabled:{draggable:!1,droppable:!1}});function toe(e){let{children:t,id:n,items:r,strategy:i=Y5,disabled:s=!1}=e;const{active:l,dragOverlay:c,droppableRects:f,over:d,measureDroppableContainers:p}=PQ(),g=uh(K5,n),m=c.rect!==null,y=S.useMemo(()=>r.map(M=>typeof M=="object"&&"id"in M?M.id:M),[r]),E=l!=null,b=l?y.indexOf(l.id):-1,x=d?y.indexOf(d.id):-1,C=S.useRef(y),R=!eee(y,C.current),_=x!==-1&&b===-1||R,O=tee(s);Di(()=>{R&&E&&p(y)},[R,y,E,p]),S.useEffect(()=>{C.current=y},[y]);const T=S.useMemo(()=>({activeIndex:b,containerId:g,disabled:O,disableTransforms:_,items:y,overIndex:x,useDragOverlay:m,sortedRects:ZZ(y,f),strategy:i}),[b,g,O.draggable,O.droppable,_,y,x,f,m,i]);return fe.createElement(X5.Provider,{value:T},t)}const oee=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return G5(n,r,i).indexOf(t)},iee=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:s,newIndex:l,previousItems:c,previousContainerId:f,transition:d}=e;return!d||!r||c!==s&&i===l?!1:n?!0:l!==i&&t===f},see={duration:200,easing:"ease"},W5="transform",aee=pm.Transition.toString({property:W5,duration:0,easing:"linear"}),lee={roleDescription:"sortable"};function uee(e){let{disabled:t,index:n,node:r,rect:i}=e;const[s,l]=S.useState(null),c=S.useRef(n);return Di(()=>{if(!t&&n!==c.current&&r.current){const f=i.current;if(f){const d=$c(r.current,{ignoreTransform:!0}),p={x:f.left-d.left,y:f.top-d.top,scaleX:f.width/d.width,scaleY:f.height/d.height};(p.x||p.y)&&l(p)}}n!==c.current&&(c.current=n)},[t,n,r,i]),S.useEffect(()=>{s&&l(null)},[s]),s}function noe(e){let{animateLayoutChanges:t=iee,attributes:n,disabled:r,data:i,getNewIndex:s=oee,id:l,strategy:c,resizeObserverConfig:f,transition:d=see}=e;const{items:p,containerId:g,activeIndex:m,disabled:y,disableTransforms:E,sortedRects:b,overIndex:x,useDragOverlay:C,strategy:R}=S.useContext(X5),_=cee(r,y),O=p.indexOf(l),T=S.useMemo(()=>({sortable:{containerId:g,index:O,items:p},...i}),[g,i,O,p]),M=S.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:A,node:D,isOver:L,setNodeRef:F}=FQ({id:l,data:T,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...f}}),{active:B,activatorEvent:j,activeNodeRect:z,attributes:G,setNodeRef:V,listeners:P,isDragging:q,over:U,setActivatorNodeRef:K,transform:Z}=LQ({id:l,data:T,attributes:{...lee,...n},disabled:_.draggable}),k=vW(F,V),$=!!B,X=$&&!E&&og(m)&&og(x),te=!C&&q,ue=te&&X?Z:null,ce=X?ue??(c??R)({rects:b,activeNodeRect:z,activeIndex:m,overIndex:x,index:O}):null,Q=og(m)&&og(x)?s({id:l,items:p,activeIndex:m,overIndex:x}):O,ve=B==null?void 0:B.id,Ee=S.useRef({activeId:ve,items:p,newIndex:Q,containerId:g}),le=p!==Ee.current.items,me=t({active:B,containerId:g,isDragging:q,isSorting:$,id:l,index:O,items:p,newIndex:Ee.current.newIndex,previousItems:Ee.current.items,previousContainerId:Ee.current.containerId,transition:d,wasDragging:Ee.current.activeId!=null}),Ce=uee({disabled:!me,index:O,node:D,rect:A});return S.useEffect(()=>{$&&Ee.current.newIndex!==Q&&(Ee.current.newIndex=Q),g!==Ee.current.containerId&&(Ee.current.containerId=g),p!==Ee.current.items&&(Ee.current.items=p)},[$,Q,g,p]),S.useEffect(()=>{if(ve===Ee.current.activeId)return;if(ve!=null&&Ee.current.activeId==null){Ee.current.activeId=ve;return}const Me=setTimeout(()=>{Ee.current.activeId=ve},50);return()=>clearTimeout(Me)},[ve]),{active:B,activeIndex:m,attributes:G,data:T,rect:A,index:O,newIndex:Q,items:p,isOver:L,isSorting:$,isDragging:q,listeners:P,node:D,overIndex:x,over:U,setNodeRef:k,setActivatorNodeRef:K,setDroppableNodeRef:F,setDraggableNodeRef:V,transform:Ce??ce,transition:Ie()};function Ie(){if(Ce||le&&Ee.current.newIndex===O)return aee;if(!(te&&!_w(j)||!d)&&($||me))return pm.Transition.toString({...d,property:W5})}}function cee(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Yt.Down,Yt.Right,Yt.Up,Yt.Left;const Q5=S.createContext(void 0);function fee(e=!0){const t=S.useContext(Q5);if(t===void 0&&!e)throw new Error(Zt(7));return t}const roe=S.forwardRef(function(t,n){const{className:r,defaultPressed:i=!1,disabled:s=!1,form:l,onPressedChange:c,pressed:f,render:d,type:p,value:g,nativeButton:m=!0,...y}=t,E=eo(g||void 0),b=fee(),x=(b==null?void 0:b.value)??[],C=b?void 0:i,R=(s||(b==null?void 0:b.disabled))??!1,[_,O]=Tl({controlled:b?(x==null?void 0:x.indexOf(E))>-1:f,default:C,name:"Toggle",state:"pressed"}),T=Ue((j,z)=>{var G;E&&((G=b==null?void 0:b.setGroupValue)==null||G.call(b,E,j,z)),c==null||c(j,z)}),{getButtonProps:M,buttonRef:A}=Ni({disabled:R,native:m}),D=S.useMemo(()=>({disabled:R,pressed:_}),[R,_]),L=[A,n],F=[{"aria-pressed":_,onClick(j){const z=!_,G=st(Rs,j.nativeEvent);T(z,G),!G.isCanceled&&O(z)}},y,M],B=Ot("button",t,{enabled:!b,state:D,ref:L,props:F});return b?Re.jsx(p0,{tag:"button",render:d,className:r,state:D,refs:L,props:F}):B});let dee=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e.multiple="data-multiple",e}({});const XO={multiple(e){return e?{[dee.multiple]:""}:null}},ooe=S.forwardRef(function(t,n){const{defaultValue:r,disabled:i=!1,loopFocus:s=!0,onValueChange:l,orientation:c="horizontal",multiple:f=!1,value:d,className:p,render:g,...m}=t,y=ih(!0),E=S.useMemo(()=>{if(d===void 0)return r??[]},[d,r]),b=((y==null?void 0:y.disabled)??!1)||i,[x,C]=Tl({controlled:d,default:E,name:"ToggleGroup",state:"value"}),R=Ue((A,D,L)=>{let F;if(f?(F=x.slice(),D?F.push(A):F.splice(x.indexOf(A),1)):F=D?[A]:[],Array.isArray(F)){if(l==null||l(F,L),L.isCanceled)return;C(F)}}),_=S.useMemo(()=>({disabled:b,multiple:f,orientation:c}),[b,c,f]),O=S.useMemo(()=>({disabled:b,orientation:c,setGroupValue:R,value:x}),[b,c,R,x]),T={role:"group"},M=Ot("div",t,{enabled:!!y,state:_,ref:n,props:[T,m],stateAttributesMapping:XO});return Re.jsx(Q5.Provider,{value:O,children:y?M:Re.jsx(yw,{render:g,className:p,state:_,refs:[n],props:[T,m],stateAttributesMapping:XO,loopFocus:s})})}),ioe=S.forwardRef(function(t,n){const{disabled:r=!1,loopFocus:i=!0,orientation:s="horizontal",className:l,render:c,...f}=t,[d,p]=S.useState(()=>new Map),g=S.useMemo(()=>{const b=[];for(const x of d.values())x!=null&&x.index&&!x.focusableWhenDisabled&&b.push(x.index);return b},[d]),m=S.useMemo(()=>({disabled:r,orientation:s,setItemMap:p}),[r,s,p]),y=S.useMemo(()=>({disabled:r,orientation:s}),[r,s]),E={"aria-orientation":s,role:"toolbar"};return Re.jsx(H3.Provider,{value:m,children:Re.jsx(yw,{render:c,className:l,state:y,refs:[n],props:[E,f],disabledIndices:g,loopFocus:i,onMapChange:p,orientation:s})})}),hee=S.createContext(void 0);function pee(e){return S.useContext(hee)}const soe=S.forwardRef(function(t,n){const{className:r,disabled:i=!1,focusableWhenDisabled:s=!0,render:l,nativeButton:c=!0,...f}=t,d=S.useMemo(()=>({focusableWhenDisabled:s}),[s]),{disabled:p,orientation:g}=ih(),m=pee(),y=p||((m==null?void 0:m.disabled)??!1)||i,{getButtonProps:E,buttonRef:b}=Ni({disabled:y,focusableWhenDisabled:s,native:c}),x=S.useMemo(()=>({disabled:y,orientation:g,focusable:s}),[y,s,g]);return Re.jsx(p0,{tag:"button",render:l,className:r,metadata:d,state:x,refs:[n,b],props:[f,{disabled:y},E]})});var db={exports:{}},hb={};var WO;function gee(){if(WO)return hb;WO=1;var e=Es().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return hb.c=function(t){return e.H.useMemoCache(t)},hb}var QO;function mee(){return QO||(QO=1,db.exports=gee()),db.exports}var aoe=mee(),jr={},JO;function vee(){if(JO)return jr;JO=1;var e=jr&&jr.__assign||function(){return e=Object.assign||function(T){for(var M,A=1,D=arguments.length;A<D;A++){M=arguments[A];for(var L in M)Object.prototype.hasOwnProperty.call(M,L)&&(T[L]=M[L])}return T},e.apply(this,arguments)},t=jr&&jr.__createBinding||(Object.create?function(T,M,A,D){D===void 0&&(D=A);var L=Object.getOwnPropertyDescriptor(M,A);(!L||("get"in L?!M.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return M[A]}}),Object.defineProperty(T,D,L)}:function(T,M,A,D){D===void 0&&(D=A),T[D]=M[A]}),n=jr&&jr.__setModuleDefault||(Object.create?function(T,M){Object.defineProperty(T,"default",{enumerable:!0,value:M})}:function(T,M){T.default=M}),r=jr&&jr.__importStar||function(T){if(T&&T.__esModule)return T;var M={};if(T!=null)for(var A in T)A!=="default"&&Object.prototype.hasOwnProperty.call(T,A)&&t(M,T,A);return n(M,T),M},i=jr&&jr.__rest||function(T,M){var A={};for(var D in T)Object.prototype.hasOwnProperty.call(T,D)&&M.indexOf(D)<0&&(A[D]=T[D]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,D=Object.getOwnPropertySymbols(T);L<D.length;L++)M.indexOf(D[L])<0&&Object.prototype.propertyIsEnumerable.call(T,D[L])&&(A[D[L]]=T[D[L]]);return A};Object.defineProperty(jr,"__esModule",{value:!0});var s=r(Es()),l=89,c=90,f=77,d=57,p=219,g=222,m=192,y=100,E=3e3,b=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),x=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),C="npm__react-simple-code-editor__textarea",R=`
42
+ /**
43
+ * Reset the text fill color so that placeholder is visible
44
+ */
45
+ .`.concat(C,`:empty {
46
+ -webkit-text-fill-color: inherit !important;
47
+ }
48
+
49
+ /**
50
+ * Hack to apply on some CSS on IE10 and IE11
51
+ */
52
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
53
+ /**
54
+ * IE doesn't support '-webkit-text-fill-color'
55
+ * So we use 'color: transparent' to make the text transparent on IE
56
+ * Unlike other browsers, it doesn't affect caret color in IE
57
+ */
58
+ .`).concat(C,` {
59
+ color: transparent !important;
60
+ }
61
+
62
+ .`).concat(C,`::selection {
63
+ background-color: #accef7 !important;
64
+ color: transparent !important;
65
+ }
66
+ }
67
+ `),_=s.forwardRef(function(M,A){var D=M.autoFocus,L=M.disabled,F=M.form,B=M.highlight,j=M.ignoreTabKey,z=j===void 0?!1:j,G=M.insertSpaces,V=G===void 0?!0:G,P=M.maxLength,q=M.minLength,U=M.name,K=M.onBlur,Z=M.onClick,k=M.onFocus,$=M.onKeyDown,X=M.onKeyUp,te=M.onValueChange,ue=M.padding,ne=ue===void 0?0:ue,ce=M.placeholder,Q=M.preClassName,ve=M.readOnly,Ee=M.required,le=M.style,me=M.tabSize,Ce=me===void 0?2:me,Ie=M.textareaClassName,Me=M.textareaId,be=M.value,xe=i(M,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),we=s.useRef({stack:[],offset:-1}),De=s.useRef(null),H=s.useState(!0),Y=H[0],ee=H[1],ie={paddingTop:typeof ne=="object"?ne.top:ne,paddingRight:typeof ne=="object"?ne.right:ne,paddingBottom:typeof ne=="object"?ne.bottom:ne,paddingLeft:typeof ne=="object"?ne.left:ne},ae=B(be),oe=function(he,ze){return he.substring(0,ze).split(`
68
+ `)},Oe=s.useCallback(function(he,ze){var He,tt,mt;ze===void 0&&(ze=!1);var nt=we.current,yt=nt.stack,qt=nt.offset;if(yt.length&&qt>-1){we.current.stack=yt.slice(0,qt+1);var Ze=we.current.stack.length;if(Ze>y){var bt=Ze-y;we.current.stack=yt.slice(bt,Ze),we.current.offset=Math.max(we.current.offset-bt,0)}}var ct=Date.now();if(ze){var Bt=we.current.stack[we.current.offset];if(Bt&&ct-Bt.timestamp<E){var sn=/[^a-z0-9]([a-z0-9]+)$/i,qe=(He=oe(Bt.value,Bt.selectionStart).pop())===null||He===void 0?void 0:He.match(sn),Ct=(tt=oe(he.value,he.selectionStart).pop())===null||tt===void 0?void 0:tt.match(sn);if(qe!=null&&qe[1]&&(!((mt=Ct==null?void 0:Ct[1])===null||mt===void 0)&&mt.startsWith(qe[1]))){we.current.stack[we.current.offset]=e(e({},he),{timestamp:ct});return}}}we.current.stack.push(e(e({},he),{timestamp:ct})),we.current.offset++},[]),Be=s.useCallback(function(){var he=De.current;if(he){var ze=he.value,He=he.selectionStart,tt=he.selectionEnd;Oe({value:ze,selectionStart:He,selectionEnd:tt})}},[Oe]),Fe=function(he){var ze=De.current;ze&&(ze.value=he.value,ze.selectionStart=he.selectionStart,ze.selectionEnd=he.selectionEnd,te==null||te(he.value))},Ke=function(he){var ze=De.current,He=we.current.stack[we.current.offset];He&&ze&&(we.current.stack[we.current.offset]=e(e({},He),{selectionStart:ze.selectionStart,selectionEnd:ze.selectionEnd})),Oe(he),Fe(he)},it=function(){var he=we.current,ze=he.stack,He=he.offset,tt=ze[He-1];tt&&(Fe(tt),we.current.offset=Math.max(He-1,0))},rt=function(){var he=we.current,ze=he.stack,He=he.offset,tt=ze[He+1];tt&&(Fe(tt),we.current.offset=Math.min(He+1,ze.length-1))},kt=function(he){if(!($&&($(he),he.defaultPrevented))){he.key==="Escape"&&he.currentTarget.blur();var ze=he.currentTarget,He=ze.value,tt=ze.selectionStart,mt=ze.selectionEnd,nt=(V?" ":" ").repeat(Ce);if(he.key==="Tab"&&!z&&Y)if(he.preventDefault(),he.shiftKey){var yt=oe(He,tt),qt=yt.length-1,Ze=oe(He,mt).length-1,bt=He.split(`
69
+ `).map(function(cr,kr){return kr>=qt&&kr<=Ze&&cr.startsWith(nt)?cr.substring(nt.length):cr}).join(`
70
+ `);if(He!==bt){var ct=yt[qt];Ke({value:bt,selectionStart:ct!=null&&ct.startsWith(nt)?tt-nt.length:tt,selectionEnd:mt-(He.length-bt.length)})}}else if(tt!==mt){var yt=oe(He,tt),Bt=yt.length-1,sn=oe(He,mt).length-1,ct=yt[Bt];Ke({value:He.split(`
71
+ `).map(function(Vn,ro){return ro>=Bt&&ro<=sn?nt+Vn:Vn}).join(`
72
+ `),selectionStart:ct&&/\S/.test(ct)?tt+nt.length:tt,selectionEnd:mt+nt.length*(sn-Bt+1)})}else{var qe=tt+nt.length;Ke({value:He.substring(0,tt)+nt+He.substring(mt),selectionStart:qe,selectionEnd:qe})}else if(he.key==="Backspace"){var Ct=tt!==mt,en=He.substring(0,tt);if(en.endsWith(nt)&&!Ct){he.preventDefault();var qe=tt-nt.length;Ke({value:He.substring(0,tt-nt.length)+He.substring(mt),selectionStart:qe,selectionEnd:qe})}}else if(he.key==="Enter"){if(tt===mt){var Ht=oe(He,tt).pop(),an=Ht==null?void 0:Ht.match(/^\s+/);if(an!=null&&an[0]){he.preventDefault();var vn=`
73
+ `+an[0],qe=tt+vn.length;Ke({value:He.substring(0,tt)+vn+He.substring(mt),selectionStart:qe,selectionEnd:qe})}}}else if(he.keyCode===d||he.keyCode===p||he.keyCode===g||he.keyCode===m){var gn=void 0;he.keyCode===d&&he.shiftKey?gn=["(",")"]:he.keyCode===p?he.shiftKey?gn=["{","}"]:gn=["[","]"]:he.keyCode===g?he.shiftKey?gn=['"','"']:gn=["'","'"]:he.keyCode===m&&!he.shiftKey&&(gn=["`","`"]),tt!==mt&&gn&&(he.preventDefault(),Ke({value:He.substring(0,tt)+gn[0]+He.substring(tt,mt)+gn[1]+He.substring(mt),selectionStart:tt,selectionEnd:mt+2}))}else(x?he.metaKey&&he.keyCode===c:he.ctrlKey&&he.keyCode===c)&&!he.shiftKey&&!he.altKey?(he.preventDefault(),it()):(x?he.metaKey&&he.keyCode===c&&he.shiftKey:b?he.ctrlKey&&he.keyCode===l:he.ctrlKey&&he.keyCode===c&&he.shiftKey)&&!he.altKey?(he.preventDefault(),rt()):he.keyCode===f&&he.ctrlKey&&(!x||he.shiftKey)&&(he.preventDefault(),ee(function(cr){return!cr}))}},ut=function(he){var ze=he.currentTarget,He=ze.value,tt=ze.selectionStart,mt=ze.selectionEnd;Oe({value:He,selectionStart:tt,selectionEnd:mt},!0),te(He)};return s.useEffect(function(){Be()},[Be]),s.useImperativeHandle(A,function(){return{get session(){return{history:we.current}},set session(he){we.current=he.history}}},[]),s.createElement("div",e({},xe,{style:e(e({},O.container),le)}),s.createElement("pre",e({className:Q,"aria-hidden":"true",style:e(e(e({},O.editor),O.highlight),ie)},typeof ae=="string"?{dangerouslySetInnerHTML:{__html:ae+"<br />"}}:{children:ae})),s.createElement("textarea",{ref:function(he){return De.current=he},style:e(e(e({},O.editor),O.textarea),ie),className:C+(Ie?" ".concat(Ie):""),id:Me,value:be,onChange:ut,onKeyDown:kt,onClick:Z,onKeyUp:X,onFocus:k,onBlur:K,disabled:L,form:F,maxLength:P,minLength:q,name:U,placeholder:ce,readOnly:ve,required:Ee,autoFocus:D,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),s.createElement("style",{dangerouslySetInnerHTML:{__html:R}}))}),O={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};return jr.default=_,jr}var yee=vee();const loe=Ss(yee);var pb={exports:{}},ZO;function bee(){return ZO||(ZO=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,l={},c={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function R(_){return _ instanceof f?new f(_.type,R(_.content),_.alias):Array.isArray(_)?_.map(R):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(R){return Object.prototype.toString.call(R).slice(8,-1)},objId:function(R){return R.__id||Object.defineProperty(R,"__id",{value:++s}),R.__id},clone:function R(_,O){O=O||{};var T,M;switch(c.util.type(_)){case"Object":if(M=c.util.objId(_),O[M])return O[M];T={},O[M]=T;for(var A in _)_.hasOwnProperty(A)&&(T[A]=R(_[A],O));return T;case"Array":return M=c.util.objId(_),O[M]?O[M]:(T=[],O[M]=T,_.forEach(function(D,L){T[L]=R(D,O)}),T);default:return _}},getLanguage:function(R){for(;R;){var _=i.exec(R.className);if(_)return _[1].toLowerCase();R=R.parentElement}return"none"},setLanguage:function(R,_){R.className=R.className.replace(RegExp(i,"gi"),""),R.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(T){var R=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(T.stack)||[])[1];if(R){var _=document.getElementsByTagName("script");for(var O in _)if(_[O].src==R)return _[O]}return null}},isActive:function(R,_,O){for(var T="no-"+_;R;){var M=R.classList;if(M.contains(_))return!0;if(M.contains(T))return!1;R=R.parentElement}return!!O}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(R,_){var O=c.util.clone(c.languages[R]);for(var T in _)O[T]=_[T];return O},insertBefore:function(R,_,O,T){T=T||c.languages;var M=T[R],A={};for(var D in M)if(M.hasOwnProperty(D)){if(D==_)for(var L in O)O.hasOwnProperty(L)&&(A[L]=O[L]);O.hasOwnProperty(D)||(A[D]=M[D])}var F=T[R];return T[R]=A,c.languages.DFS(c.languages,function(B,j){j===F&&B!=R&&(this[B]=A)}),A},DFS:function R(_,O,T,M){M=M||{};var A=c.util.objId;for(var D in _)if(_.hasOwnProperty(D)){O.call(_,D,_[D],T||D);var L=_[D],F=c.util.type(L);F==="Object"&&!M[A(L)]?(M[A(L)]=!0,R(L,O,null,M)):F==="Array"&&!M[A(L)]&&(M[A(L)]=!0,R(L,O,D,M))}}},plugins:{},highlightAll:function(R,_){c.highlightAllUnder(document,R,_)},highlightAllUnder:function(R,_,O){var T={callback:O,container:R,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",T),T.elements=Array.prototype.slice.apply(T.container.querySelectorAll(T.selector)),c.hooks.run("before-all-elements-highlight",T);for(var M=0,A;A=T.elements[M++];)c.highlightElement(A,_===!0,T.callback)},highlightElement:function(R,_,O){var T=c.util.getLanguage(R),M=c.languages[T];c.util.setLanguage(R,T);var A=R.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(A,T);var D=R.textContent,L={element:R,language:T,grammar:M,code:D};function F(j){L.highlightedCode=j,c.hooks.run("before-insert",L),L.element.innerHTML=L.highlightedCode,c.hooks.run("after-highlight",L),c.hooks.run("complete",L),O&&O.call(L.element)}if(c.hooks.run("before-sanity-check",L),A=L.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!L.code){c.hooks.run("complete",L),O&&O.call(L.element);return}if(c.hooks.run("before-highlight",L),!L.grammar){F(c.util.encode(L.code));return}if(_&&r.Worker){var B=new Worker(c.filename);B.onmessage=function(j){F(j.data)},B.postMessage(JSON.stringify({language:L.language,code:L.code,immediateClose:!0}))}else F(c.highlight(L.code,L.grammar,L.language))},highlight:function(R,_,O){var T={code:R,grammar:_,language:O};if(c.hooks.run("before-tokenize",T),!T.grammar)throw new Error('The language "'+T.language+'" has no grammar.');return T.tokens=c.tokenize(T.code,T.grammar),c.hooks.run("after-tokenize",T),f.stringify(c.util.encode(T.tokens),T.language)},tokenize:function(R,_){var O=_.rest;if(O){for(var T in O)_[T]=O[T];delete _.rest}var M=new g;return m(M,M.head,R),p(R,M,_,M.head,0),E(M)},hooks:{all:{},add:function(R,_){var O=c.hooks.all;O[R]=O[R]||[],O[R].push(_)},run:function(R,_){var O=c.hooks.all[R];if(!(!O||!O.length))for(var T=0,M;M=O[T++];)M(_)}},Token:f};r.Prism=c;function f(R,_,O,T){this.type=R,this.content=_,this.alias=O,this.length=(T||"").length|0}f.stringify=function R(_,O){if(typeof _=="string")return _;if(Array.isArray(_)){var T="";return _.forEach(function(F){T+=R(F,O)}),T}var M={type:_.type,content:R(_.content,O),tag:"span",classes:["token",_.type],attributes:{},language:O},A=_.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(M.classes,A):M.classes.push(A)),c.hooks.run("wrap",M);var D="";for(var L in M.attributes)D+=" "+L+'="'+(M.attributes[L]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+D+">"+M.content+"</"+M.tag+">"};function d(R,_,O,T){R.lastIndex=_;var M=R.exec(O);if(M&&T&&M[1]){var A=M[1].length;M.index+=A,M[0]=M[0].slice(A)}return M}function p(R,_,O,T,M,A){for(var D in O)if(!(!O.hasOwnProperty(D)||!O[D])){var L=O[D];L=Array.isArray(L)?L:[L];for(var F=0;F<L.length;++F){if(A&&A.cause==D+","+F)return;var B=L[F],j=B.inside,z=!!B.lookbehind,G=!!B.greedy,V=B.alias;if(G&&!B.pattern.global){var P=B.pattern.toString().match(/[imsuy]*$/)[0];B.pattern=RegExp(B.pattern.source,P+"g")}for(var q=B.pattern||B,U=T.next,K=M;U!==_.tail&&!(A&&K>=A.reach);K+=U.value.length,U=U.next){var Z=U.value;if(_.length>R.length)return;if(!(Z instanceof f)){var k=1,$;if(G){if($=d(q,K,R,z),!$||$.index>=R.length)break;var ne=$.index,X=$.index+$[0].length,te=K;for(te+=U.value.length;ne>=te;)U=U.next,te+=U.value.length;if(te-=U.value.length,K=te,U.value instanceof f)continue;for(var ue=U;ue!==_.tail&&(te<X||typeof ue.value=="string");ue=ue.next)k++,te+=ue.value.length;k--,Z=R.slice(K,te),$.index-=K}else if($=d(q,0,Z,z),!$)continue;var ne=$.index,ce=$[0],Q=Z.slice(0,ne),ve=Z.slice(ne+ce.length),Ee=K+Z.length;A&&Ee>A.reach&&(A.reach=Ee);var le=U.prev;Q&&(le=m(_,le,Q),K+=Q.length),y(_,le,k);var me=new f(D,j?c.tokenize(ce,j):ce,V,ce);if(U=m(_,le,me),ve&&m(_,U,ve),k>1){var Ce={cause:D+","+F,reach:Ee};p(R,_,O,U.prev,K,Ce),A&&Ce.reach>A.reach&&(A.reach=Ce.reach)}}}}}}function g(){var R={value:null,prev:null,next:null},_={value:null,prev:R,next:null};R.next=_,this.head=R,this.tail=_,this.length=0}function m(R,_,O){var T=_.next,M={value:O,prev:_,next:T};return _.next=M,T.prev=M,R.length++,M}function y(R,_,O){for(var T=_.next,M=0;M<O&&T!==R.tail;M++)T=T.next;_.next=T,T.prev=_,R.length-=M}function E(R){for(var _=[],O=R.head.next;O!==R.tail;)_.push(O.value),O=O.next;return _}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(R){var _=JSON.parse(R.data),O=_.language,T=_.code,M=_.immediateClose;r.postMessage(c.highlight(T,c.languages[O],O)),M&&r.close()},!1)),c;var b=c.util.currentScript();b&&(c.filename=b.src,b.hasAttribute("data-manual")&&(c.manual=!0));function x(){c.manual||c.highlightAll()}if(!c.manual){var C=document.readyState;C==="loading"||C==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",x):window.requestAnimationFrame?window.requestAnimationFrame(x):window.setTimeout(x,16)}return c}(t);e.exports&&(e.exports=n),typeof N_<"u"&&(N_.Prism=n)}(pb)),pb.exports}var See=bee();const uoe=Ss(See);(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);export{Uee as $,Fte as A,$te as B,Cte as C,Une as D,Rte as E,ws as F,Vne as G,Vte as H,Ote as I,Wte as J,Ane as K,Fne as L,wte as M,jne as N,aI as O,Hee as P,Nee as Q,fe as R,zk as S,_te as T,jee as U,Gee as V,qee as W,hM as X,mb as Y,Ree as Z,_ee as _,pte as a,Cre as a$,g8 as a0,Cee as a1,xee as a2,zee as a3,kee as a4,Tee as a5,Vee as a6,wee as a7,Mte as a8,xne as a9,jre as aA,Yre as aB,Gre as aC,rQ as aD,t5 as aE,Tre as aF,noe as aG,pm as aH,Qre as aI,toe as aJ,Zre as aK,fne as aL,soe as aM,yte as aN,ioe as aO,ooe as aP,roe as aQ,pre as aR,gre as aS,zte as aT,Xre as aU,Jre as aV,Kre as aW,Wre as aX,xre as aY,wre as aZ,Rre as a_,pne as aa,Ere as ab,cne as ac,fre as ad,mte as ae,bte as af,cre as ag,Ine as ah,Lne as ai,_re as aj,Mne as ak,_ne as al,ine as am,Gte as an,Ute as ao,hne as ap,qte as aq,Yte as ar,Xte as as,Dte as at,jte as au,Ite as av,Jte as aw,$ee as ax,vte as ay,$re as az,v3 as b,Qne as b$,sne as b0,Bte as b1,Ore as b2,Are as b3,Mre as b4,Lre as b5,Pre as b6,Ire as b7,Dre as b8,Ate as b9,lre as bA,mre as bB,vre as bC,yre as bD,bre as bE,Sre as bF,dre as bG,hre as bH,ene as bI,ure as bJ,wne as bK,Tne as bL,yne as bM,dne as bN,mne as bO,vne as bP,bne as bQ,One as bR,kne as bS,Zte as bT,Qte as bU,Gne as bV,Yne as bW,Kne as bX,Xne as bY,Nne as bZ,Wne as b_,Pne as ba,$ne as bb,qne as bc,gte as bd,nne as be,Rne as bf,aoe as bg,eoe as bh,qre as bi,Vre as bj,Ete as bk,Dne as bl,lne as bm,une as bn,Tte as bo,one as bp,kte as bq,Pte as br,Hre as bs,Ure as bt,zre as bu,Bre as bv,Fre as bw,sre as bx,Nre as by,are as bz,fte as c,ire as c0,Jne as c1,rre as c2,Zne as c3,ere as c4,tre as c5,nre as c6,ore as c7,kre as c8,Oee as c9,Mee as ca,Iee as cb,Dee as cc,Lee as cd,Pee as ce,loe as cf,uoe as cg,Nte as ch,Ene as ci,Sne as cj,tne as ck,gne as cl,rne as cm,xG as d,Wn as e,dte as f,GI as g,S as h,hte as i,Re as j,Bee as k,Aee as l,Cne as m,ane as n,Ste as o,Kte as p,Hne as q,Dn as r,zne as s,Bne as t,OG as u,Hte as v,Mc as w,ZS as x,Lte as y,xte as z};
74
+ //# sourceMappingURL=vendor-DmGkEtRj.js.map