prefect 3.6.16.dev5__py3-none-any.whl → 3.6.16.dev6__py3-none-any.whl

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 (286) hide show
  1. prefect/_build_info.py +3 -3
  2. prefect/cli/__init__.py +1 -0
  3. prefect/cli/cloud/asset.py +135 -0
  4. prefect/server/ui-v2/assets/artifact-card-BnPKAfkY.js +2 -0
  5. prefect/server/ui-v2/assets/artifact-card-BnPKAfkY.js.map +1 -0
  6. prefect/server/ui-v2/assets/artifact._id-vDOuIuta.js +2 -0
  7. prefect/server/ui-v2/assets/artifact._id-vDOuIuta.js.map +1 -0
  8. prefect/server/ui-v2/assets/automation-wizard-RlOhF90R.js +2 -0
  9. prefect/server/ui-v2/assets/automation-wizard-RlOhF90R.js.map +1 -0
  10. prefect/server/ui-v2/assets/automation._id-CEHa-X0X.js +2 -0
  11. prefect/server/ui-v2/assets/{automation._id-CMiura1b.js.map → automation._id-CEHa-X0X.js.map} +1 -1
  12. prefect/server/ui-v2/assets/{automation_._id.edit-Cbfcwa-K.js → automation_._id.edit-BRWAsELa.js} +2 -2
  13. prefect/server/ui-v2/assets/{automation_._id.edit-Cbfcwa-K.js.map → automation_._id.edit-BRWAsELa.js.map} +1 -1
  14. prefect/server/ui-v2/assets/{automations-header-BxPCOE-0.js → automations-header-Dr6v5dPp.js} +2 -2
  15. prefect/server/ui-v2/assets/{automations-header-BxPCOE-0.js.map → automations-header-Dr6v5dPp.js.map} +1 -1
  16. prefect/server/ui-v2/assets/base-job-template-form-section-C8_R96gO.js +2 -0
  17. prefect/server/ui-v2/assets/base-job-template-form-section-C8_R96gO.js.map +1 -0
  18. prefect/server/ui-v2/assets/block-type-details-tAkUWqs1.js +2 -0
  19. prefect/server/ui-v2/assets/block-type-details-tAkUWqs1.js.map +1 -0
  20. prefect/server/ui-v2/assets/block-type-logo-scnMsyY5.js +2 -0
  21. prefect/server/ui-v2/assets/{block-type-logo-DuvU7goV.js.map → block-type-logo-scnMsyY5.js.map} +1 -1
  22. prefect/server/ui-v2/assets/block._id-BY42cyjR.js +2 -0
  23. prefect/server/ui-v2/assets/block._id-BY42cyjR.js.map +1 -0
  24. prefect/server/ui-v2/assets/{block_._id.edit-C4SmoQ4y.js → block_._id.edit-n2jwU5yr.js} +2 -2
  25. prefect/server/ui-v2/assets/{block_._id.edit-C4SmoQ4y.js.map → block_._id.edit-n2jwU5yr.js.map} +1 -1
  26. prefect/server/ui-v2/assets/catalog-5_GoCKpb.js +2 -0
  27. prefect/server/ui-v2/assets/catalog-5_GoCKpb.js.map +1 -0
  28. prefect/server/ui-v2/assets/catalog_._slug-sZvt0fDy.js +2 -0
  29. prefect/server/ui-v2/assets/catalog_._slug-sZvt0fDy.js.map +1 -0
  30. prefect/server/ui-v2/assets/{catalog_._slug_.create-CgKL4TS2.js → catalog_._slug_.create-rboQmoyW.js} +2 -2
  31. prefect/server/ui-v2/assets/{catalog_._slug_.create-CgKL4TS2.js.map → catalog_._slug_.create-rboQmoyW.js.map} +1 -1
  32. prefect/server/ui-v2/assets/{collapsible-DZbPzSgr.js → collapsible-Lk7MRvBH.js} +2 -2
  33. prefect/server/ui-v2/assets/{collapsible-DZbPzSgr.js.map → collapsible-Lk7MRvBH.js.map} +1 -1
  34. prefect/server/ui-v2/assets/concurrency-limit._id-D5i9zZJh.js +2 -0
  35. prefect/server/ui-v2/assets/concurrency-limit._id-D5i9zZJh.js.map +1 -0
  36. prefect/server/ui-v2/assets/create-CtsA2QIl.js +2 -0
  37. prefect/server/ui-v2/assets/{create-BrNwbpVu.js.map → create-CtsA2QIl.js.map} +1 -1
  38. prefect/server/ui-v2/assets/{create-DWgkh2HT.js → create-DJPAEZ93.js} +2 -2
  39. prefect/server/ui-v2/assets/create-DJPAEZ93.js.map +1 -0
  40. prefect/server/ui-v2/assets/{data-table-QSHqmTar.js → data-table-bk-0xKWT.js} +2 -2
  41. prefect/server/ui-v2/assets/{data-table-QSHqmTar.js.map → data-table-bk-0xKWT.js.map} +1 -1
  42. prefect/server/ui-v2/assets/{delete-confirmation-dialog-dLycVNo4.js → delete-confirmation-dialog-BZg9EOfN.js} +2 -2
  43. prefect/server/ui-v2/assets/{delete-confirmation-dialog-dLycVNo4.js.map → delete-confirmation-dialog-BZg9EOfN.js.map} +1 -1
  44. prefect/server/ui-v2/assets/{deployment-action-header-CzvBTL6H.js → deployment-action-header-DwuMPgVg.js} +2 -2
  45. prefect/server/ui-v2/assets/{deployment-action-header-CzvBTL6H.js.map → deployment-action-header-DwuMPgVg.js.map} +1 -1
  46. prefect/server/ui-v2/assets/deployment-form-BpKkzEf2.js +3 -0
  47. prefect/server/ui-v2/assets/deployment-form-BpKkzEf2.js.map +1 -0
  48. prefect/server/ui-v2/assets/{deployment-links-CGjJpxJA.js → deployment-links-B67P-6Ph.js} +2 -2
  49. prefect/server/ui-v2/assets/{deployment-links-CGjJpxJA.js.map → deployment-links-B67P-6Ph.js.map} +1 -1
  50. prefect/server/ui-v2/assets/{deployment._id-DXrb6frJ.js → deployment._id-BVOBfMVf.js} +2 -2
  51. prefect/server/ui-v2/assets/deployment._id-BVOBfMVf.js.map +1 -0
  52. prefect/server/ui-v2/assets/deployment._id-KOMC9fpE.js +2 -0
  53. prefect/server/ui-v2/assets/deployment._id-KOMC9fpE.js.map +1 -0
  54. prefect/server/ui-v2/assets/deployment_._id.duplicate-BPk2SchT.js +2 -0
  55. prefect/server/ui-v2/assets/deployment_._id.duplicate-BPk2SchT.js.map +1 -0
  56. prefect/server/ui-v2/assets/deployment_._id.edit-Dv0M_huv.js +2 -0
  57. prefect/server/ui-v2/assets/deployment_._id.edit-Dv0M_huv.js.map +1 -0
  58. prefect/server/ui-v2/assets/deployment_._id.run-DFVA4Xhx.js +2 -0
  59. prefect/server/ui-v2/assets/{deployment_._id.run-CnacOmhY.js.map → deployment_._id.run-DFVA4Xhx.js.map} +1 -1
  60. prefect/server/ui-v2/assets/{dropdown-menu-B9LKPlz7.js → dropdown-menu-fRiq5bS-.js} +2 -2
  61. prefect/server/ui-v2/assets/{dropdown-menu-B9LKPlz7.js.map → dropdown-menu-fRiq5bS-.js.map} +1 -1
  62. prefect/server/ui-v2/assets/{event-resource-display-B42RIaiX.js → event-resource-display-C1ZAey-o.js} +2 -2
  63. prefect/server/ui-v2/assets/{event-resource-display-B42RIaiX.js.map → event-resource-display-C1ZAey-o.js.map} +1 -1
  64. prefect/server/ui-v2/assets/event._eventDate._eventId-CcbtP9Ag.js +2 -0
  65. prefect/server/ui-v2/assets/{event._eventDate._eventId-CKTuT_8S.js.map → event._eventDate._eventId-CcbtP9Ag.js.map} +1 -1
  66. prefect/server/ui-v2/assets/flow-run-graph-CycKStSg.js +2 -0
  67. prefect/server/ui-v2/assets/flow-run-graph-CycKStSg.js.map +1 -0
  68. prefect/server/ui-v2/assets/{flow-run._id-BKv9Meqc.js → flow-run._id-Dn9R_Tjy.js} +2 -2
  69. prefect/server/ui-v2/assets/flow-run._id-Dn9R_Tjy.js.map +1 -0
  70. prefect/server/ui-v2/assets/{flow-run._id-ZTkjj6bM.js → flow-run._id-Dwx7ojcj.js} +2 -2
  71. prefect/server/ui-v2/assets/flow-run._id-Dwx7ojcj.js.map +1 -0
  72. prefect/server/ui-v2/assets/flow-run._id-YzRd5jrC.js +4 -0
  73. prefect/server/ui-v2/assets/flow-run._id-YzRd5jrC.js.map +1 -0
  74. prefect/server/ui-v2/assets/flow-runs-pagination-DMLZFM1m.js +2 -0
  75. prefect/server/ui-v2/assets/flow-runs-pagination-DMLZFM1m.js.map +1 -0
  76. prefect/server/ui-v2/assets/flow._id-V6-Qhkwk.js +2 -0
  77. prefect/server/ui-v2/assets/flow._id-V6-Qhkwk.js.map +1 -0
  78. prefect/server/ui-v2/assets/{form-DOdmIC3A.js → form-Cl5Hk9bq.js} +2 -2
  79. prefect/server/ui-v2/assets/{form-DOdmIC3A.js.map → form-Cl5Hk9bq.js.map} +1 -1
  80. prefect/server/ui-v2/assets/{header-DcIuN5UN.js → header-BuI436ik.js} +2 -2
  81. prefect/server/ui-v2/assets/{header-DcIuN5UN.js.map → header-BuI436ik.js.map} +1 -1
  82. prefect/server/ui-v2/assets/{header-CnBwASd-.js → header-DcAQCxQl.js} +2 -2
  83. prefect/server/ui-v2/assets/{header-CnBwASd-.js.map → header-DcAQCxQl.js.map} +1 -1
  84. prefect/server/ui-v2/assets/{header-DxE-NzAK.js → header-qlcK4NLD.js} +2 -2
  85. prefect/server/ui-v2/assets/{header-DxE-NzAK.js.map → header-qlcK4NLD.js.map} +1 -1
  86. prefect/server/ui-v2/assets/index--Z69UYXV.js +2 -0
  87. prefect/server/ui-v2/assets/index--Z69UYXV.js.map +1 -0
  88. prefect/server/ui-v2/assets/{index-D0R9_LIL.js → index-BO4Qqsm8.js} +2 -2
  89. prefect/server/ui-v2/assets/index-BO4Qqsm8.js.map +1 -0
  90. prefect/server/ui-v2/assets/index-Bg45XS_V.js +2 -0
  91. prefect/server/ui-v2/assets/index-Bg45XS_V.js.map +1 -0
  92. prefect/server/ui-v2/assets/{index-BIBIJufF.js → index-BleYpDoN.js} +2 -2
  93. prefect/server/ui-v2/assets/index-BleYpDoN.js.map +1 -0
  94. prefect/server/ui-v2/assets/{index-DyOAqIOp.js → index-C63VUjOh.js} +2 -2
  95. prefect/server/ui-v2/assets/{index-DyOAqIOp.js.map → index-C63VUjOh.js.map} +1 -1
  96. prefect/server/ui-v2/assets/{index-DfKXdmko.js → index-C6LgWyJb.js} +2 -2
  97. prefect/server/ui-v2/assets/index-C6LgWyJb.js.map +1 -0
  98. prefect/server/ui-v2/assets/index-CE-bVgqj.js +2 -0
  99. prefect/server/ui-v2/assets/{index-DlAHvqFx.js.map → index-CE-bVgqj.js.map} +1 -1
  100. prefect/server/ui-v2/assets/{index-V_xTKaEb.js → index-CPpeVt8m.js} +13 -13
  101. prefect/server/ui-v2/assets/index-CPpeVt8m.js.map +1 -0
  102. prefect/server/ui-v2/assets/index-CYaUe0Ym.js +2 -0
  103. prefect/server/ui-v2/assets/index-CYaUe0Ym.js.map +1 -0
  104. prefect/server/ui-v2/assets/{index-C5RMFRyZ.js → index-Clbms0kg.js} +2 -2
  105. prefect/server/ui-v2/assets/index-Clbms0kg.js.map +1 -0
  106. prefect/server/ui-v2/assets/index-D13YFoYA.js +2 -0
  107. prefect/server/ui-v2/assets/index-D13YFoYA.js.map +1 -0
  108. prefect/server/ui-v2/assets/{index-Cx1qEoCK.js → index-D73a_nGu.js} +2 -2
  109. prefect/server/ui-v2/assets/{index-Cx1qEoCK.js.map → index-D73a_nGu.js.map} +1 -1
  110. prefect/server/ui-v2/assets/index-DJXBzX1E.css +1 -0
  111. prefect/server/ui-v2/assets/{index-BO60ehN6.js → index-DPPPaOr_.js} +2 -2
  112. prefect/server/ui-v2/assets/index-DPPPaOr_.js.map +1 -0
  113. prefect/server/ui-v2/assets/{index-DP8W-xJo.js → index-DU9ShbqW.js} +2 -2
  114. prefect/server/ui-v2/assets/index-DU9ShbqW.js.map +1 -0
  115. prefect/server/ui-v2/assets/index-DdR1lzZk.js +2 -0
  116. prefect/server/ui-v2/assets/index-DdR1lzZk.js.map +1 -0
  117. prefect/server/ui-v2/assets/{index-B9ttjsyu.js → index-ELo08q04.js} +2 -2
  118. prefect/server/ui-v2/assets/{index-B9ttjsyu.js.map → index-ELo08q04.js.map} +1 -1
  119. prefect/server/ui-v2/assets/{index-BTL1xHS9.js → index-cp6PTdHp.js} +2 -2
  120. prefect/server/ui-v2/assets/{index-BTL1xHS9.js.map → index-cp6PTdHp.js.map} +1 -1
  121. prefect/server/ui-v2/assets/{index-D6G96ToY.js → index-kM_g8J0u.js} +2 -2
  122. prefect/server/ui-v2/assets/{index-D6G96ToY.js.map → index-kM_g8J0u.js.map} +1 -1
  123. prefect/server/ui-v2/assets/{index-q5Y3hlDT.js → index-mYcm9Rkr.js} +2 -2
  124. prefect/server/ui-v2/assets/index-mYcm9Rkr.js.map +1 -0
  125. prefect/server/ui-v2/assets/{index-D9cOtoSU.js → index-yavn_NBp.js} +2 -2
  126. prefect/server/ui-v2/assets/index-yavn_NBp.js.map +1 -0
  127. prefect/server/ui-v2/assets/{json-input-YKJMJCcT.js → json-input-iUzf6BvZ.js} +2 -2
  128. prefect/server/ui-v2/assets/{json-input-YKJMJCcT.js.map → json-input-iUzf6BvZ.js.map} +1 -1
  129. prefect/server/ui-v2/assets/{key-value-RPUUqQ6F.js → key-value-DI27Dv4P.js} +2 -2
  130. prefect/server/ui-v2/assets/{key-value-RPUUqQ6F.js.map → key-value-DI27Dv4P.js.map} +1 -1
  131. prefect/server/ui-v2/assets/key._key-C-nk2nld.js +2 -0
  132. prefect/server/ui-v2/assets/key._key-C-nk2nld.js.map +1 -0
  133. prefect/server/ui-v2/assets/{lazy-markdown-B9vEkJ0h.js → lazy-markdown-D_y73qoD.js} +2 -2
  134. prefect/server/ui-v2/assets/{lazy-markdown-B9vEkJ0h.js.map → lazy-markdown-D_y73qoD.js.map} +1 -1
  135. prefect/server/ui-v2/assets/{login-C3PhSGQJ.js → login-DR_xuMmg.js} +2 -2
  136. prefect/server/ui-v2/assets/{login-C3PhSGQJ.js.map → login-DR_xuMmg.js.map} +1 -1
  137. prefect/server/ui-v2/assets/{markdown-input-Dei7u1qp.js → markdown-input-hzlzpUdj.js} +2 -2
  138. prefect/server/ui-v2/assets/{markdown-input-Dei7u1qp.js.map → markdown-input-hzlzpUdj.js.map} +1 -1
  139. prefect/server/ui-v2/assets/{python-example-snippet-DvulFxgw.js → python-example-snippet-d8bTNJ0J.js} +3 -3
  140. prefect/server/ui-v2/assets/{python-example-snippet-DvulFxgw.js.map → python-example-snippet-d8bTNJ0J.js.map} +1 -1
  141. prefect/server/ui-v2/assets/{python-input-niCawr8m.js → python-input-Bxdnzvx3.js} +2 -2
  142. prefect/server/ui-v2/assets/{python-input-niCawr8m.js.map → python-input-Bxdnzvx3.js.map} +1 -1
  143. prefect/server/ui-v2/assets/{radio-group-D55TQZsk.js → radio-group-0oOEMJCS.js} +2 -2
  144. prefect/server/ui-v2/assets/{radio-group-D55TQZsk.js.map → radio-group-0oOEMJCS.js.map} +1 -1
  145. prefect/server/ui-v2/assets/{route-error-state-Cu4m0LTX.js → route-error-state-BqbnZCc-.js} +2 -2
  146. prefect/server/ui-v2/assets/{route-error-state-Cu4m0LTX.js.map → route-error-state-BqbnZCc-.js.map} +1 -1
  147. prefect/server/ui-v2/assets/{schema-form-BQAcWW5k.js → schema-form-BD-WM4S0.js} +2 -2
  148. prefect/server/ui-v2/assets/{schema-form-BQAcWW5k.js.map → schema-form-BD-WM4S0.js.map} +1 -1
  149. prefect/server/ui-v2/assets/{schema-form-input-string-format-datetime-Cb4sTJle.js → schema-form-input-string-format-datetime-Dg3zVAp5.js} +4 -4
  150. prefect/server/ui-v2/assets/{schema-form-input-string-format-datetime-Cb4sTJle.js.map → schema-form-input-string-format-datetime-Dg3zVAp5.js.map} +1 -1
  151. prefect/server/ui-v2/assets/{settings-DV4ewZ_4.js → settings-Dm6yMLix.js} +2 -2
  152. prefect/server/ui-v2/assets/{settings-DV4ewZ_4.js.map → settings-Dm6yMLix.js.map} +1 -1
  153. prefect/server/ui-v2/assets/{sort-filter-DY7vgl7C.js → sort-filter-X6JyRc0-.js} +2 -2
  154. prefect/server/ui-v2/assets/{sort-filter-DY7vgl7C.js.map → sort-filter-X6JyRc0-.js.map} +1 -1
  155. prefect/server/ui-v2/assets/{table-ChOwO4Pk.js → table-Xyel2BEw.js} +2 -2
  156. prefect/server/ui-v2/assets/{table-ChOwO4Pk.js.map → table-Xyel2BEw.js.map} +1 -1
  157. prefect/server/ui-v2/assets/{tags-input-2KSBvO_K.js → tags-input-DqZ8v99z.js} +2 -2
  158. prefect/server/ui-v2/assets/{tags-input-2KSBvO_K.js.map → tags-input-DqZ8v99z.js.map} +1 -1
  159. prefect/server/ui-v2/assets/{task-run-concurrency-limits-reset-dialog-CNrP9yPQ.js → task-run-concurrency-limits-reset-dialog-5xFWeoYy.js} +2 -2
  160. prefect/server/ui-v2/assets/{task-run-concurrency-limits-reset-dialog-CNrP9yPQ.js.map → task-run-concurrency-limits-reset-dialog-5xFWeoYy.js.map} +1 -1
  161. prefect/server/ui-v2/assets/{task-run._id-cqXH0PMU.js → task-run._id-9DcrUEGz.js} +3 -3
  162. prefect/server/ui-v2/assets/{task-run._id-cqXH0PMU.js.map → task-run._id-9DcrUEGz.js.map} +1 -1
  163. prefect/server/ui-v2/assets/{task-run._id-CQGeAiBh.js → task-run._id-DJkoLl_e.js} +2 -2
  164. prefect/server/ui-v2/assets/task-run._id-DJkoLl_e.js.map +1 -0
  165. prefect/server/ui-v2/assets/task-runs-pagination-B2fSdB1t.js +2 -0
  166. prefect/server/ui-v2/assets/task-runs-pagination-B2fSdB1t.js.map +1 -0
  167. prefect/server/ui-v2/assets/{textarea-9v5uTuxg.js → textarea-DFEOJJdc.js} +2 -2
  168. prefect/server/ui-v2/assets/{textarea-9v5uTuxg.js.map → textarea-DFEOJJdc.js.map} +1 -1
  169. prefect/server/ui-v2/assets/{timezone-select-DPtR_b06.js → timezone-select-NViFNNLz.js} +2 -2
  170. prefect/server/ui-v2/assets/{timezone-select-DPtR_b06.js.map → timezone-select-NViFNNLz.js.map} +1 -1
  171. prefect/server/ui-v2/assets/{toggle-group-CBJphTE6.js → toggle-group-EMgSOoYH.js} +2 -2
  172. prefect/server/ui-v2/assets/{toggle-group-CBJphTE6.js.map → toggle-group-EMgSOoYH.js.map} +1 -1
  173. prefect/server/ui-v2/assets/use-delete-automation-confirmation-dialog-BHgDXlwg.js +2 -0
  174. prefect/server/ui-v2/assets/use-delete-automation-confirmation-dialog-BHgDXlwg.js.map +1 -0
  175. prefect/server/ui-v2/assets/{use-delete-block-document-confirmation-dialog-BYY1b8yH.js → use-delete-block-document-confirmation-dialog-CxRkBKPg.js} +2 -2
  176. prefect/server/ui-v2/assets/{use-delete-block-document-confirmation-dialog-BYY1b8yH.js.map → use-delete-block-document-confirmation-dialog-CxRkBKPg.js.map} +1 -1
  177. prefect/server/ui-v2/assets/use-flow-runs-selected-rows-Ck8nwx2q.js +2 -0
  178. prefect/server/ui-v2/assets/use-flow-runs-selected-rows-Ck8nwx2q.js.map +1 -0
  179. prefect/server/ui-v2/assets/{use-get-artifacts-flow-task-runs-BOTU5FPq.js → use-get-artifacts-flow-task-runs-D7Djt53s.js} +2 -2
  180. prefect/server/ui-v2/assets/{use-get-artifacts-flow-task-runs-BOTU5FPq.js.map → use-get-artifacts-flow-task-runs-D7Djt53s.js.map} +1 -1
  181. prefect/server/ui-v2/assets/{use-quick-run-DzSmbSlu.js → use-quick-run-Cpy0t7dX.js} +2 -2
  182. prefect/server/ui-v2/assets/{use-quick-run-DzSmbSlu.js.map → use-quick-run-Cpy0t7dX.js.map} +1 -1
  183. prefect/server/ui-v2/assets/{use-state-favicon-UFxhmhHr.js → use-state-favicon-CMsL9s6j.js} +2 -2
  184. prefect/server/ui-v2/assets/{use-state-favicon-UFxhmhHr.js.map → use-state-favicon-CMsL9s6j.js.map} +1 -1
  185. prefect/server/ui-v2/assets/use-stepper-CZZEx5js.js +2 -0
  186. prefect/server/ui-v2/assets/use-stepper-CZZEx5js.js.map +1 -0
  187. prefect/server/ui-v2/assets/{utilities-2FfCfMAV.js → utilities-D9BfvLg5.js} +2 -2
  188. prefect/server/ui-v2/assets/{utilities-2FfCfMAV.js.map → utilities-D9BfvLg5.js.map} +1 -1
  189. prefect/server/ui-v2/assets/work-pool-filter-dsJ6xeK6.js +2 -0
  190. prefect/server/ui-v2/assets/work-pool-filter-dsJ6xeK6.js.map +1 -0
  191. prefect/server/ui-v2/assets/{work-pool-queue-toggle-zSWhEFap.js → work-pool-queue-toggle-f_-cTWxB.js} +2 -2
  192. prefect/server/ui-v2/assets/{work-pool-queue-toggle-zSWhEFap.js.map → work-pool-queue-toggle-f_-cTWxB.js.map} +1 -1
  193. prefect/server/ui-v2/assets/{work-pool._workPoolName-BwIVfCIe.js → work-pool._workPoolName-zBqgkYLT.js} +2 -2
  194. prefect/server/ui-v2/assets/{work-pool._workPoolName-BwIVfCIe.js.map → work-pool._workPoolName-zBqgkYLT.js.map} +1 -1
  195. prefect/server/ui-v2/assets/{work-pool_._workPoolName.edit-j7cjgoJp.js → work-pool_._workPoolName.edit-B-8_CnfA.js} +2 -2
  196. prefect/server/ui-v2/assets/{work-pool_._workPoolName.edit-j7cjgoJp.js.map → work-pool_._workPoolName.edit-B-8_CnfA.js.map} +1 -1
  197. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue._workQueueName-BlFjSdoB.js → work-pool_._workPoolName.queue._workQueueName-DzrY1tMq.js} +2 -2
  198. prefect/server/ui-v2/assets/work-pool_._workPoolName.queue._workQueueName-DzrY1tMq.js.map +1 -0
  199. prefect/server/ui-v2/assets/{work-queue-icon-text-vWlRNW-b.js → work-queue-icon-text-BqqQ413o.js} +2 -2
  200. prefect/server/ui-v2/assets/{work-queue-icon-text-vWlRNW-b.js.map → work-queue-icon-text-BqqQ413o.js.map} +1 -1
  201. prefect/server/ui-v2/index.html +2 -2
  202. prefect/task_engine.py +26 -12
  203. prefect/workers/base.py +18 -1
  204. {prefect-3.6.16.dev5.dist-info → prefect-3.6.16.dev6.dist-info}/METADATA +1 -1
  205. {prefect-3.6.16.dev5.dist-info → prefect-3.6.16.dev6.dist-info}/RECORD +208 -207
  206. prefect/server/ui-v2/assets/artifact-card-DQfjRA2u.js +0 -2
  207. prefect/server/ui-v2/assets/artifact-card-DQfjRA2u.js.map +0 -1
  208. prefect/server/ui-v2/assets/artifact._id-BBhuX3px.js +0 -2
  209. prefect/server/ui-v2/assets/artifact._id-BBhuX3px.js.map +0 -1
  210. prefect/server/ui-v2/assets/automation-wizard-DeT-tz5i.js +0 -2
  211. prefect/server/ui-v2/assets/automation-wizard-DeT-tz5i.js.map +0 -1
  212. prefect/server/ui-v2/assets/automation._id-CMiura1b.js +0 -2
  213. prefect/server/ui-v2/assets/base-job-template-form-section-MeO0M71Y.js +0 -2
  214. prefect/server/ui-v2/assets/base-job-template-form-section-MeO0M71Y.js.map +0 -1
  215. prefect/server/ui-v2/assets/block-type-details-Bcb9qEO8.js +0 -2
  216. prefect/server/ui-v2/assets/block-type-details-Bcb9qEO8.js.map +0 -1
  217. prefect/server/ui-v2/assets/block-type-logo-DuvU7goV.js +0 -2
  218. prefect/server/ui-v2/assets/block._id-DFR6zmOy.js +0 -2
  219. prefect/server/ui-v2/assets/block._id-DFR6zmOy.js.map +0 -1
  220. prefect/server/ui-v2/assets/catalog-CPzaK8QS.js +0 -2
  221. prefect/server/ui-v2/assets/catalog-CPzaK8QS.js.map +0 -1
  222. prefect/server/ui-v2/assets/catalog_._slug-60h4tERz.js +0 -2
  223. prefect/server/ui-v2/assets/catalog_._slug-60h4tERz.js.map +0 -1
  224. prefect/server/ui-v2/assets/concurrency-limit._id-BFfR6_U0.js +0 -2
  225. prefect/server/ui-v2/assets/concurrency-limit._id-BFfR6_U0.js.map +0 -1
  226. prefect/server/ui-v2/assets/create-BrNwbpVu.js +0 -2
  227. prefect/server/ui-v2/assets/create-DWgkh2HT.js.map +0 -1
  228. prefect/server/ui-v2/assets/deployment-form-B33C7F2u.js +0 -3
  229. prefect/server/ui-v2/assets/deployment-form-B33C7F2u.js.map +0 -1
  230. prefect/server/ui-v2/assets/deployment._id-5rPcPD0T.js +0 -2
  231. prefect/server/ui-v2/assets/deployment._id-5rPcPD0T.js.map +0 -1
  232. prefect/server/ui-v2/assets/deployment._id-DXrb6frJ.js.map +0 -1
  233. prefect/server/ui-v2/assets/deployment_._id.duplicate-D7YLydeq.js +0 -2
  234. prefect/server/ui-v2/assets/deployment_._id.duplicate-D7YLydeq.js.map +0 -1
  235. prefect/server/ui-v2/assets/deployment_._id.edit-Daq0J0Ow.js +0 -2
  236. prefect/server/ui-v2/assets/deployment_._id.edit-Daq0J0Ow.js.map +0 -1
  237. prefect/server/ui-v2/assets/deployment_._id.run-CnacOmhY.js +0 -2
  238. prefect/server/ui-v2/assets/event._eventDate._eventId-CKTuT_8S.js +0 -2
  239. prefect/server/ui-v2/assets/flow-run-graph-OrT2Osbu.js +0 -2
  240. prefect/server/ui-v2/assets/flow-run-graph-OrT2Osbu.js.map +0 -1
  241. prefect/server/ui-v2/assets/flow-run._id-BKv9Meqc.js.map +0 -1
  242. prefect/server/ui-v2/assets/flow-run._id-DCYAnq0D.js +0 -4
  243. prefect/server/ui-v2/assets/flow-run._id-DCYAnq0D.js.map +0 -1
  244. prefect/server/ui-v2/assets/flow-run._id-ZTkjj6bM.js.map +0 -1
  245. prefect/server/ui-v2/assets/flow-runs-pagination-CykMKOhv.js +0 -2
  246. prefect/server/ui-v2/assets/flow-runs-pagination-CykMKOhv.js.map +0 -1
  247. prefect/server/ui-v2/assets/flow._id-DhrxqQmD.js +0 -2
  248. prefect/server/ui-v2/assets/flow._id-DhrxqQmD.js.map +0 -1
  249. prefect/server/ui-v2/assets/index-BIBIJufF.js.map +0 -1
  250. prefect/server/ui-v2/assets/index-BO60ehN6.js.map +0 -1
  251. prefect/server/ui-v2/assets/index-BS7fbJ2s.js +0 -2
  252. prefect/server/ui-v2/assets/index-BS7fbJ2s.js.map +0 -1
  253. prefect/server/ui-v2/assets/index-C5RMFRyZ.js.map +0 -1
  254. prefect/server/ui-v2/assets/index-D0R9_LIL.js.map +0 -1
  255. prefect/server/ui-v2/assets/index-D9cOtoSU.js.map +0 -1
  256. prefect/server/ui-v2/assets/index-DEpWUeaO.js +0 -2
  257. prefect/server/ui-v2/assets/index-DEpWUeaO.js.map +0 -1
  258. prefect/server/ui-v2/assets/index-DP8W-xJo.js.map +0 -1
  259. prefect/server/ui-v2/assets/index-DfKXdmko.js.map +0 -1
  260. prefect/server/ui-v2/assets/index-DiVKp6rW.js +0 -2
  261. prefect/server/ui-v2/assets/index-DiVKp6rW.js.map +0 -1
  262. prefect/server/ui-v2/assets/index-DlAHvqFx.js +0 -2
  263. prefect/server/ui-v2/assets/index-VNFzALsC.js +0 -2
  264. prefect/server/ui-v2/assets/index-VNFzALsC.js.map +0 -1
  265. prefect/server/ui-v2/assets/index-V_xTKaEb.js.map +0 -1
  266. prefect/server/ui-v2/assets/index-WIq8QUNT.js +0 -2
  267. prefect/server/ui-v2/assets/index-WIq8QUNT.js.map +0 -1
  268. prefect/server/ui-v2/assets/index-m9O-nIOl.css +0 -1
  269. prefect/server/ui-v2/assets/index-q5Y3hlDT.js.map +0 -1
  270. prefect/server/ui-v2/assets/key._key-CX8FwfwL.js +0 -2
  271. prefect/server/ui-v2/assets/key._key-CX8FwfwL.js.map +0 -1
  272. prefect/server/ui-v2/assets/task-run._id-CQGeAiBh.js.map +0 -1
  273. prefect/server/ui-v2/assets/task-runs-pagination-CYoOghEN.js +0 -2
  274. prefect/server/ui-v2/assets/task-runs-pagination-CYoOghEN.js.map +0 -1
  275. prefect/server/ui-v2/assets/use-delete-automation-confirmation-dialog-DZplMJDW.js +0 -2
  276. prefect/server/ui-v2/assets/use-delete-automation-confirmation-dialog-DZplMJDW.js.map +0 -1
  277. prefect/server/ui-v2/assets/use-flow-runs-selected-rows-1YE-VIgM.js +0 -2
  278. prefect/server/ui-v2/assets/use-flow-runs-selected-rows-1YE-VIgM.js.map +0 -1
  279. prefect/server/ui-v2/assets/use-stepper-CnGJHRLP.js +0 -2
  280. prefect/server/ui-v2/assets/use-stepper-CnGJHRLP.js.map +0 -1
  281. prefect/server/ui-v2/assets/work-pool-filter-CGfXNujK.js +0 -2
  282. prefect/server/ui-v2/assets/work-pool-filter-CGfXNujK.js.map +0 -1
  283. prefect/server/ui-v2/assets/work-pool_._workPoolName.queue._workQueueName-BlFjSdoB.js.map +0 -1
  284. {prefect-3.6.16.dev5.dist-info → prefect-3.6.16.dev6.dist-info}/WHEEL +0 -0
  285. {prefect-3.6.16.dev5.dist-info → prefect-3.6.16.dev6.dist-info}/entry_points.txt +0 -0
  286. {prefect-3.6.16.dev5.dist-info → prefect-3.6.16.dev6.dist-info}/licenses/LICENSE +0 -0
@@ -1,28 +1,28 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/settings-DV4ewZ_4.js","assets/vendor-tanstack-BdLtprmr.js","assets/vendor-react-HBv6Kpyp.js","assets/radio-group-D55TQZsk.js","assets/vendor-radix-CJc458uP.js","assets/vendor-recharts-CY3PKigC.js","assets/vendor-forms-BlFSCfFw.js","assets/vendor-date-Cl1Jav-N.js","assets/login-C3PhSGQJ.js","assets/json-input-YKJMJCcT.js","assets/vendor-codemirror-DDrdK9VD.js","assets/index-q5Y3hlDT.js","assets/route-error-state-Cu4m0LTX.js","assets/header-DcIuN5UN.js","assets/index-Cx1qEoCK.js","assets/dropdown-menu-B9LKPlz7.js","assets/index-DfKXdmko.js","assets/header-DxE-NzAK.js","assets/index-C5RMFRyZ.js","assets/data-table-QSHqmTar.js","assets/table-ChOwO4Pk.js","assets/tags-input-2KSBvO_K.js","assets/use-is-overflowing-CDFKqB6i.js","assets/zod-B1GLD-Zc.js","assets/form-DOdmIC3A.js","assets/index-DiVKp6rW.js","assets/work-pool-filter-CGfXNujK.js","assets/sort-filter-DY7vgl7C.js","assets/flow-runs-pagination-CykMKOhv.js","assets/use-flow-runs-selected-rows-1YE-VIgM.js","assets/delete-confirmation-dialog-dLycVNo4.js","assets/use-delete-confirmation-dialog-CkL-rSsp.js","assets/state-colors-CAAf0Eg3.js","assets/task-runs-pagination-CYoOghEN.js","assets/index-D9cOtoSU.js","assets/index-D0R9_LIL.js","assets/index-VNFzALsC.js","assets/collapsible-DZbPzSgr.js","assets/utilities-2FfCfMAV.js","assets/event-resource-display-B42RIaiX.js","assets/index-BO60ehN6.js","assets/header-CnBwASd-.js","assets/index-DP8W-xJo.js","assets/index-DlAHvqFx.js","assets/use-quick-run-DzSmbSlu.js","assets/index-BTL1xHS9.js","assets/cronstrue-p-STK_QW.js","assets/index-B9ttjsyu.js","assets/index-D6G96ToY.js","assets/task-run-concurrency-limits-reset-dialog-CNrP9yPQ.js","assets/index-DEpWUeaO.js","assets/use-delete-block-document-confirmation-dialog-BYY1b8yH.js","assets/block-type-logo-DuvU7goV.js","assets/use-page-title-ar2vyvpx.js","assets/index-BIBIJufF.js","assets/automations-header-BxPCOE-0.js","assets/index-BS7fbJ2s.js","assets/use-delete-automation-confirmation-dialog-DZplMJDW.js","assets/work-queue-icon-text-vWlRNW-b.js","assets/index-WIq8QUNT.js","assets/artifact-card-DQfjRA2u.js","assets/lazy-markdown-B9vEkJ0h.js","assets/toggle-group-CBJphTE6.js","assets/use-debounce-callback-Dk7Ebi48.js","assets/create-BrNwbpVu.js","assets/use-stepper-CnGJHRLP.js","assets/textarea-9v5uTuxg.js","assets/schema-form-input-string-format-datetime-Cb4sTJle.js","assets/timezone-select-DPtR_b06.js","assets/base-job-template-form-section-MeO0M71Y.js","assets/schema-form-BQAcWW5k.js","assets/catalog-CPzaK8QS.js","assets/create-DWgkh2HT.js","assets/automation-schema-D1HDjyeB.js","assets/automation-wizard-DeT-tz5i.js","assets/index-DyOAqIOp.js","assets/event-to-trigger-BEzU9b5I.js","assets/work-pool._workPoolName-BwIVfCIe.js","assets/work-pool-queue-toggle-zSWhEFap.js","assets/task-run._id-CQGeAiBh.js","assets/task-run._id-cqXH0PMU.js","assets/use-state-favicon-UFxhmhHr.js","assets/flow-run._id-ZTkjj6bM.js","assets/flow-run._id-BKv9Meqc.js","assets/flow-run._id-DCYAnq0D.js","assets/key-value-RPUUqQ6F.js","assets/flow._id-DhrxqQmD.js","assets/deployment._id-DXrb6frJ.js","assets/deployment._id-5rPcPD0T.js","assets/deployment-links-CGjJpxJA.js","assets/concurrency-limit._id-BFfR6_U0.js","assets/catalog_._slug-60h4tERz.js","assets/python-example-snippet-DvulFxgw.js","assets/block._id-DFR6zmOy.js","assets/block-type-details-Bcb9qEO8.js","assets/automation._id-CMiura1b.js","assets/key._key-CX8FwfwL.js","assets/use-get-artifacts-flow-task-runs-BOTU5FPq.js","assets/artifact._id-BBhuX3px.js","assets/work-pool_._workPoolName.edit-j7cjgoJp.js","assets/event._eventDate._eventId-CKTuT_8S.js","assets/deployment_._id.run-CnacOmhY.js","assets/deployment-action-header-CzvBTL6H.js","assets/deployment_._id.edit-Daq0J0Ow.js","assets/deployment-form-B33C7F2u.js","assets/deployment_._id.duplicate-D7YLydeq.js","assets/catalog_._slug_.create-CgKL4TS2.js","assets/block_._id.edit-C4SmoQ4y.js","assets/automation_._id.edit-Cbfcwa-K.js","assets/work-pool_._workPoolName.queue._workQueueName-BlFjSdoB.js"])))=>i.map(i=>d[i]);
2
- import{q as be,r as k,u as Rb,j as d,c as V,d as aE,L as Wt,b as rE,e as iE,f as rl,g as oE,h as sE,N as lE,O as uE,k as Be,l as Re,m as qe,n as Le,o as Ie,p as cE,s as Io,t as Je,v as dE,x as fE,Q as hE,y as mE,z as pE,A as vE}from"./vendor-tanstack-BdLtprmr.js";import{r as gE,a as yE,g as jb}from"./vendor-react-HBv6Kpyp.js";import{c as Pe,a as me,b as et,d as _e,e as oe,f as ie,g as Qu,_ as Ti,S as Xr,R as bE,h as Ih,C as zh,i as Fh,P as Uh,O as qh,T as Mb,j as xE,k as wE,l as SE,m as EE,n as _E,A as TE,o as DE,I as CE,H as kE,p as NE,q as AE,r as RE,s as jE,t as ME,u as OE,v as LE,w as IE,x as zE,D as FE,y as UE,L as qE,z as BE,B as PE,E as Co,F as Zr,G as Ws,J as HE,K as $E,M as QE,N as VE,Q as GE,U as YE,V as KE,W as WE,X as XE,Y as ZE,Z as Ob,$ as JE,a0 as e_,a1 as t_,a2 as n_,a3 as a_,a4 as r_,a5 as i_,a6 as o_,a7 as s_,a8 as l_,a9 as u_,aa as c_,ab as d_,ac as f_,ad as h_,ae as m_,af as p_,ag as Lb,ah as v_,ai as g_,aj as y_,ak as b_,al as x_,am as w_,an as S_}from"./vendor-radix-CJc458uP.js";import{c as Bh,R as E_,T as __,s as T_,B as D_,a as C_,C as k_,A as N_,b as Iy}from"./vendor-recharts-CY3PKigC.js";import{o as xt,s as ze,e as rt,n as Et,a as xa,b as Ib,r as zb,u as Fb,d as zy}from"./vendor-forms-BlFSCfFw.js";import{d as $s,i as ic,f as on,p as Ph,a as A_,b as Rf,c as R_,m as Ub,s as uh,e as j_,g as M_,h as Xs,j as gr,k as Ro,l as Zs,n as As,o as ch,q as O_,r as L_,t as I_,u as qb,v as Bb,w as z_,x as F_,y as U_,z as q_,A as B_,B as P_,C as Pb,D as H_,E as $_,F as Hb,G as Hh,H as Q_,I as $b,J as V_,K as wo,L as G_,M as Y_,N as K_,O as Qs,P as W_,Q as X_,R as Z_,S as J_,T as eT,U as Vu,V as Fy,W as Iu,X as dh}from"./vendor-date-Cl1Jav-N.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();var jf={exports:{}},Rs={},Mf={exports:{}},Of={};var Uy;function tT(){return Uy||(Uy=1,(function(e){function n(j,Y){var le=j.length;j.push(Y);e:for(;0<le;){var de=le-1>>>1,fe=j[de];if(0<l(fe,Y))j[de]=Y,j[le]=fe,le=de;else break e}}function r(j){return j.length===0?null:j[0]}function o(j){if(j.length===0)return null;var Y=j[0],le=j.pop();if(le!==Y){j[0]=le;e:for(var de=0,fe=j.length,pe=fe>>>1;de<pe;){var G=2*(de+1)-1,X=j[G],ue=G+1,re=j[ue];if(0>l(X,le))ue<fe&&0>l(re,X)?(j[de]=re,j[ue]=le,de=ue):(j[de]=X,j[G]=le,de=G);else if(ue<fe&&0>l(re,le))j[de]=re,j[ue]=le,de=ue;else break e}}return Y}function l(j,Y){var le=j.sortIndex-Y.sortIndex;return le!==0?le:j.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var p=[],g=[],y=1,v=null,b=3,w=!1,E=!1,C=!1,D=!1,_=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function M(j){for(var Y=r(g);Y!==null;){if(Y.callback===null)o(g);else if(Y.startTime<=j)o(g),Y.sortIndex=Y.expirationTime,n(p,Y);else break;Y=r(g)}}function O(j){if(C=!1,M(j),!E)if(r(p)!==null)E=!0,I||(I=!0,K());else{var Y=r(g);Y!==null&&ce(O,Y.startTime-j)}}var I=!1,S=-1,U=5,F=-1;function L(){return D?!0:!(e.unstable_now()-F<U)}function B(){if(D=!1,I){var j=e.unstable_now();F=j;var Y=!0;try{e:{E=!1,C&&(C=!1,A(S),S=-1),w=!0;var le=b;try{t:{for(M(j),v=r(p);v!==null&&!(v.expirationTime>j&&L());){var de=v.callback;if(typeof de=="function"){v.callback=null,b=v.priorityLevel;var fe=de(v.expirationTime<=j);if(j=e.unstable_now(),typeof fe=="function"){v.callback=fe,M(j),Y=!0;break t}v===r(p)&&o(p),M(j)}else o(p);v=r(p)}if(v!==null)Y=!0;else{var pe=r(g);pe!==null&&ce(O,pe.startTime-j),Y=!1}}break e}finally{v=null,b=le,w=!1}Y=void 0}}finally{Y?K():I=!1}}}var K;if(typeof N=="function")K=function(){N(B)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ae=se.port2;se.port1.onmessage=B,K=function(){ae.postMessage(null)}}else K=function(){_(B,0)};function ce(j,Y){S=_(function(){j(e.unstable_now())},Y)}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(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(j){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var le=b;b=Y;try{return j()}finally{b=le}},e.unstable_requestPaint=function(){D=!0},e.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var le=b;b=j;try{return Y()}finally{b=le}},e.unstable_scheduleCallback=function(j,Y,le){var de=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?de+le:de):le=de,j){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=le+fe,j={id:y++,callback:Y,priorityLevel:j,startTime:le,expirationTime:fe,sortIndex:-1},le>de?(j.sortIndex=le,n(g,j),r(p)===null&&j===r(g)&&(C?(A(S),S=-1):C=!0,ce(O,le-de))):(j.sortIndex=fe,n(p,j),E||w||(E=!0,I||(I=!0,K()))),j},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(j){var Y=b;return function(){var le=b;b=Y;try{return j.apply(this,arguments)}finally{b=le}}}})(Of)),Of}var qy;function nT(){return qy||(qy=1,Mf.exports=tT()),Mf.exports}var By;function aT(){if(By)return Rs;By=1;var e=nT(),n=gE(),r=yE();function o(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function c(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function p(t){if(u(t)!==t)throw Error(o(188))}function g(t){var a=t.alternate;if(!a){if(a=u(t),a===null)throw Error(o(188));return a!==t?null:t}for(var i=t,s=a;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(s=f.return,s!==null){i=s;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return p(f),t;if(m===s)return p(f),a;m=m.sibling}throw Error(o(188))}if(i.return!==s.return)i=f,s=m;else{for(var x=!1,T=f.child;T;){if(T===i){x=!0,i=f,s=m;break}if(T===s){x=!0,s=f,i=m;break}T=T.sibling}if(!x){for(T=m.child;T;){if(T===i){x=!0,i=m,s=f;break}if(T===s){x=!0,s=m,i=f;break}T=T.sibling}if(!x)throw Error(o(189))}}if(i.alternate!==s)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:a}function y(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=y(t),a!==null)return a;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),N=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function K(t){return t===null||typeof t!="object"?null:(t=B&&t[B]||t["@@iterator"],typeof t=="function"?t:null)}var se=Symbol.for("react.client.reference");function ae(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===se?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case _:return"Profiler";case D:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList";case F:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case N:return t.displayName||"Context";case A:return(t._context.displayName||"Context")+".Consumer";case M:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case S:return a=t.displayName||null,a!==null?a:ae(t.type)||"Memo";case U:a=t._payload,t=t._init;try{return ae(t(a))}catch{}}return null}var ce=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},de=[],fe=-1;function pe(t){return{current:t}}function G(t){0>fe||(t.current=de[fe],de[fe]=null,fe--)}function X(t,a){fe++,de[fe]=t.current,t.current=a}var ue=pe(null),re=pe(null),ee=pe(null),ve=pe(null);function ge(t,a){switch(X(ee,a),X(re,t),X(ue,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?iy(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=iy(a),t=oy(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(ue),X(ue,t)}function Ne(){G(ue),G(re),G(ee)}function ot(t){t.memoizedState!==null&&X(ve,t);var a=ue.current,i=oy(a,t.type);a!==i&&(X(re,t),X(ue,i))}function cn(t){re.current===t&&(G(ue),G(re)),ve.current===t&&(G(ve),Ds._currentValue=le)}var sn,Ea;function Zt(t){if(sn===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);sn=a&&a[1]||"",Ea=-1<i.stack.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/settings-Dm6yMLix.js","assets/vendor-tanstack-BdLtprmr.js","assets/vendor-react-HBv6Kpyp.js","assets/radio-group-0oOEMJCS.js","assets/vendor-radix-CJc458uP.js","assets/vendor-recharts-CY3PKigC.js","assets/vendor-forms-BlFSCfFw.js","assets/vendor-date-Cl1Jav-N.js","assets/login-DR_xuMmg.js","assets/json-input-iUzf6BvZ.js","assets/vendor-codemirror-DDrdK9VD.js","assets/index-mYcm9Rkr.js","assets/route-error-state-BqbnZCc-.js","assets/header-BuI436ik.js","assets/index-D73a_nGu.js","assets/dropdown-menu-fRiq5bS-.js","assets/index-C6LgWyJb.js","assets/header-qlcK4NLD.js","assets/index-Clbms0kg.js","assets/data-table-bk-0xKWT.js","assets/table-Xyel2BEw.js","assets/tags-input-DqZ8v99z.js","assets/use-is-overflowing-CDFKqB6i.js","assets/zod-B1GLD-Zc.js","assets/form-Cl5Hk9bq.js","assets/index-D13YFoYA.js","assets/work-pool-filter-dsJ6xeK6.js","assets/sort-filter-X6JyRc0-.js","assets/flow-runs-pagination-DMLZFM1m.js","assets/use-flow-runs-selected-rows-Ck8nwx2q.js","assets/delete-confirmation-dialog-BZg9EOfN.js","assets/use-delete-confirmation-dialog-CkL-rSsp.js","assets/state-colors-CAAf0Eg3.js","assets/task-runs-pagination-B2fSdB1t.js","assets/index-yavn_NBp.js","assets/index-BO4Qqsm8.js","assets/index-Bg45XS_V.js","assets/collapsible-Lk7MRvBH.js","assets/utilities-D9BfvLg5.js","assets/event-resource-display-C1ZAey-o.js","assets/index-DPPPaOr_.js","assets/header-DcAQCxQl.js","assets/index-DU9ShbqW.js","assets/index-CE-bVgqj.js","assets/use-quick-run-Cpy0t7dX.js","assets/index-cp6PTdHp.js","assets/cronstrue-p-STK_QW.js","assets/index-ELo08q04.js","assets/index-kM_g8J0u.js","assets/task-run-concurrency-limits-reset-dialog-5xFWeoYy.js","assets/index-CYaUe0Ym.js","assets/use-delete-block-document-confirmation-dialog-CxRkBKPg.js","assets/block-type-logo-scnMsyY5.js","assets/use-page-title-ar2vyvpx.js","assets/index-BleYpDoN.js","assets/automations-header-Dr6v5dPp.js","assets/index-DdR1lzZk.js","assets/use-delete-automation-confirmation-dialog-BHgDXlwg.js","assets/work-queue-icon-text-BqqQ413o.js","assets/index--Z69UYXV.js","assets/artifact-card-BnPKAfkY.js","assets/lazy-markdown-D_y73qoD.js","assets/toggle-group-EMgSOoYH.js","assets/use-debounce-callback-Dk7Ebi48.js","assets/create-CtsA2QIl.js","assets/use-stepper-CZZEx5js.js","assets/textarea-DFEOJJdc.js","assets/schema-form-input-string-format-datetime-Dg3zVAp5.js","assets/timezone-select-NViFNNLz.js","assets/base-job-template-form-section-C8_R96gO.js","assets/schema-form-BD-WM4S0.js","assets/catalog-5_GoCKpb.js","assets/create-DJPAEZ93.js","assets/automation-schema-D1HDjyeB.js","assets/automation-wizard-RlOhF90R.js","assets/index-C63VUjOh.js","assets/event-to-trigger-BEzU9b5I.js","assets/work-pool._workPoolName-zBqgkYLT.js","assets/work-pool-queue-toggle-f_-cTWxB.js","assets/task-run._id-DJkoLl_e.js","assets/task-run._id-9DcrUEGz.js","assets/use-state-favicon-CMsL9s6j.js","assets/flow-run._id-Dwx7ojcj.js","assets/flow-run._id-Dn9R_Tjy.js","assets/flow-run._id-YzRd5jrC.js","assets/key-value-DI27Dv4P.js","assets/flow._id-V6-Qhkwk.js","assets/deployment._id-BVOBfMVf.js","assets/deployment._id-KOMC9fpE.js","assets/deployment-links-B67P-6Ph.js","assets/concurrency-limit._id-D5i9zZJh.js","assets/catalog_._slug-sZvt0fDy.js","assets/python-example-snippet-d8bTNJ0J.js","assets/block._id-BY42cyjR.js","assets/block-type-details-tAkUWqs1.js","assets/automation._id-CEHa-X0X.js","assets/key._key-C-nk2nld.js","assets/use-get-artifacts-flow-task-runs-D7Djt53s.js","assets/artifact._id-vDOuIuta.js","assets/work-pool_._workPoolName.edit-B-8_CnfA.js","assets/event._eventDate._eventId-CcbtP9Ag.js","assets/deployment_._id.run-DFVA4Xhx.js","assets/deployment-action-header-DwuMPgVg.js","assets/deployment_._id.edit-Dv0M_huv.js","assets/deployment-form-BpKkzEf2.js","assets/deployment_._id.duplicate-BPk2SchT.js","assets/catalog_._slug_.create-rboQmoyW.js","assets/block_._id.edit-n2jwU5yr.js","assets/automation_._id.edit-BRWAsELa.js","assets/work-pool_._workPoolName.queue._workQueueName-DzrY1tMq.js"])))=>i.map(i=>d[i]);
2
+ import{q as be,r as k,u as Rb,j as d,c as V,d as nE,L as Xt,b as aE,e as rE,f as rl,g as iE,h as oE,N as sE,O as lE,k as Be,l as Re,m as qe,n as Le,o as Ie,p as uE,s as Io,t as et,v as cE,x as dE,Q as fE,y as hE,z as mE,A as pE}from"./vendor-tanstack-BdLtprmr.js";import{r as vE,a as gE,g as jb}from"./vendor-react-HBv6Kpyp.js";import{c as Pe,a as me,b as tt,d as _e,e as oe,f as ie,g as Qu,_ as Di,S as Zr,R as yE,h as Ih,C as zh,i as Fh,P as Uh,O as qh,T as Mb,j as bE,k as xE,l as wE,m as SE,n as EE,A as _E,o as TE,I as DE,H as CE,p as kE,q as NE,r as AE,s as RE,t as jE,u as ME,v as OE,w as LE,x as IE,D as zE,y as FE,L as UE,z as qE,B as BE,E as Co,F as Jr,G as Xs,J as PE,K as HE,M as $E,N as QE,Q as VE,U as GE,V as YE,W as KE,X as WE,Y as XE,Z as Ob,$ as ZE,a0 as JE,a1 as e_,a2 as t_,a3 as n_,a4 as a_,a5 as r_,a6 as i_,a7 as o_,a8 as s_,a9 as l_,aa as u_,ab as c_,ac as d_,ad as f_,ae as h_,af as m_,ag as Lb,ah as p_,ai as v_,aj as g_,ak as y_,al as b_,am as x_,an as w_}from"./vendor-radix-CJc458uP.js";import{c as Bh,R as S_,T as E_,s as __,B as T_,a as D_,C as C_,A as k_,b as Iy}from"./vendor-recharts-CY3PKigC.js";import{o as wt,s as ze,e as it,n as _t,a as wa,b as Ib,r as zb,u as Fb,d as zy}from"./vendor-forms-BlFSCfFw.js";import{d as Qs,i as ic,f as sn,p as Ph,a as N_,b as Rf,c as A_,m as Ub,s as uh,e as R_,g as j_,h as Zs,j as yr,k as Ro,l as Js,n as Rs,o as ch,q as M_,r as O_,t as L_,u as qb,v as Bb,w as I_,x as z_,y as F_,z as U_,A as q_,B as B_,C as Pb,D as P_,E as H_,F as Hb,G as Hh,H as $_,I as $b,J as Q_,K as wo,L as V_,M as G_,N as Y_,O as Vs,P as K_,Q as W_,R as X_,S as Z_,T as J_,U as Vu,V as Fy,W as Iu,X as dh}from"./vendor-date-Cl1Jav-N.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();var jf={exports:{}},js={},Mf={exports:{}},Of={};var Uy;function eT(){return Uy||(Uy=1,(function(e){function n(j,Y){var le=j.length;j.push(Y);e:for(;0<le;){var de=le-1>>>1,fe=j[de];if(0<l(fe,Y))j[de]=Y,j[le]=fe,le=de;else break e}}function r(j){return j.length===0?null:j[0]}function o(j){if(j.length===0)return null;var Y=j[0],le=j.pop();if(le!==Y){j[0]=le;e:for(var de=0,fe=j.length,pe=fe>>>1;de<pe;){var G=2*(de+1)-1,X=j[G],ue=G+1,re=j[ue];if(0>l(X,le))ue<fe&&0>l(re,X)?(j[de]=re,j[ue]=le,de=ue):(j[de]=X,j[G]=le,de=G);else if(ue<fe&&0>l(re,le))j[de]=re,j[ue]=le,de=ue;else break e}}return Y}function l(j,Y){var le=j.sortIndex-Y.sortIndex;return le!==0?le:j.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var p=[],g=[],y=1,v=null,b=3,w=!1,E=!1,C=!1,D=!1,_=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function M(j){for(var Y=r(g);Y!==null;){if(Y.callback===null)o(g);else if(Y.startTime<=j)o(g),Y.sortIndex=Y.expirationTime,n(p,Y);else break;Y=r(g)}}function O(j){if(C=!1,M(j),!E)if(r(p)!==null)E=!0,I||(I=!0,K());else{var Y=r(g);Y!==null&&ce(O,Y.startTime-j)}}var I=!1,S=-1,U=5,F=-1;function L(){return D?!0:!(e.unstable_now()-F<U)}function B(){if(D=!1,I){var j=e.unstable_now();F=j;var Y=!0;try{e:{E=!1,C&&(C=!1,A(S),S=-1),w=!0;var le=b;try{t:{for(M(j),v=r(p);v!==null&&!(v.expirationTime>j&&L());){var de=v.callback;if(typeof de=="function"){v.callback=null,b=v.priorityLevel;var fe=de(v.expirationTime<=j);if(j=e.unstable_now(),typeof fe=="function"){v.callback=fe,M(j),Y=!0;break t}v===r(p)&&o(p),M(j)}else o(p);v=r(p)}if(v!==null)Y=!0;else{var pe=r(g);pe!==null&&ce(O,pe.startTime-j),Y=!1}}break e}finally{v=null,b=le,w=!1}Y=void 0}}finally{Y?K():I=!1}}}var K;if(typeof N=="function")K=function(){N(B)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ae=se.port2;se.port1.onmessage=B,K=function(){ae.postMessage(null)}}else K=function(){_(B,0)};function ce(j,Y){S=_(function(){j(e.unstable_now())},Y)}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(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(j){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var le=b;b=Y;try{return j()}finally{b=le}},e.unstable_requestPaint=function(){D=!0},e.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var le=b;b=j;try{return Y()}finally{b=le}},e.unstable_scheduleCallback=function(j,Y,le){var de=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?de+le:de):le=de,j){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=le+fe,j={id:y++,callback:Y,priorityLevel:j,startTime:le,expirationTime:fe,sortIndex:-1},le>de?(j.sortIndex=le,n(g,j),r(p)===null&&j===r(g)&&(C?(A(S),S=-1):C=!0,ce(O,le-de))):(j.sortIndex=fe,n(p,j),E||w||(E=!0,I||(I=!0,K()))),j},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(j){var Y=b;return function(){var le=b;b=Y;try{return j.apply(this,arguments)}finally{b=le}}}})(Of)),Of}var qy;function tT(){return qy||(qy=1,Mf.exports=eT()),Mf.exports}var By;function nT(){if(By)return js;By=1;var e=tT(),n=vE(),r=gE();function o(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function c(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function p(t){if(u(t)!==t)throw Error(o(188))}function g(t){var a=t.alternate;if(!a){if(a=u(t),a===null)throw Error(o(188));return a!==t?null:t}for(var i=t,s=a;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(s=f.return,s!==null){i=s;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return p(f),t;if(m===s)return p(f),a;m=m.sibling}throw Error(o(188))}if(i.return!==s.return)i=f,s=m;else{for(var x=!1,T=f.child;T;){if(T===i){x=!0,i=f,s=m;break}if(T===s){x=!0,s=f,i=m;break}T=T.sibling}if(!x){for(T=m.child;T;){if(T===i){x=!0,i=m,s=f;break}if(T===s){x=!0,s=m,i=f;break}T=T.sibling}if(!x)throw Error(o(189))}}if(i.alternate!==s)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:a}function y(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=y(t),a!==null)return a;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),N=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function K(t){return t===null||typeof t!="object"?null:(t=B&&t[B]||t["@@iterator"],typeof t=="function"?t:null)}var se=Symbol.for("react.client.reference");function ae(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===se?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case _:return"Profiler";case D:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList";case F:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case N:return t.displayName||"Context";case A:return(t._context.displayName||"Context")+".Consumer";case M:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case S:return a=t.displayName||null,a!==null?a:ae(t.type)||"Memo";case U:a=t._payload,t=t._init;try{return ae(t(a))}catch{}}return null}var ce=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},de=[],fe=-1;function pe(t){return{current:t}}function G(t){0>fe||(t.current=de[fe],de[fe]=null,fe--)}function X(t,a){fe++,de[fe]=t.current,t.current=a}var ue=pe(null),re=pe(null),ee=pe(null),ve=pe(null);function ge(t,a){switch(X(ee,a),X(re,t),X(ue,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?iy(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=iy(a),t=oy(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(ue),X(ue,t)}function Ne(){G(ue),G(re),G(ee)}function st(t){t.memoizedState!==null&&X(ve,t);var a=ue.current,i=oy(a,t.type);a!==i&&(X(re,t),X(ue,i))}function dn(t){re.current===t&&(G(ue),G(re)),ve.current===t&&(G(ve),Cs._currentValue=le)}var ln,_a;function Jt(t){if(ln===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);ln=a&&a[1]||"",_a=-1<i.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+sn+t+Ea}var Qn=!1;function Vn(t,a){if(!t||Qn)return"";Qn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(a){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(W){var Q=W}Reflect.construct(t,[],te)}else{try{te.call()}catch(W){Q=W}t.call(te.prototype)}}else{try{throw Error()}catch(W){Q=W}(te=t())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(W){if(W&&Q&&typeof W.stack=="string")return[W.stack,Q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),x=m[0],T=m[1];if(x&&T){var R=x.split(`
4
+ `+ln+t+_a}var Vn=!1;function Gn(t,a){if(!t||Vn)return"";Vn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(a){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(W){var Q=W}Reflect.construct(t,[],te)}else{try{te.call()}catch(W){Q=W}t.call(te.prototype)}}else{try{throw Error()}catch(W){Q=W}(te=t())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(W){if(W&&Q&&typeof W.stack=="string")return[W.stack,Q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=s.DetermineComponentFrameRoot(),x=m[0],T=m[1];if(x&&T){var R=x.split(`
5
5
  `),H=T.split(`
6
6
  `);for(f=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;f<H.length&&!H[f].includes("DetermineComponentFrameRoot");)f++;if(s===R.length||f===H.length)for(s=R.length-1,f=H.length-1;1<=s&&0<=f&&R[s]!==H[f];)f--;for(;1<=s&&0<=f;s--,f--)if(R[s]!==H[f]){if(s!==1||f!==1)do if(s--,f--,0>f||R[s]!==H[f]){var Z=`
7
- `+R[s].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),Z}while(1<=s&&0<=f);break}}}finally{Qn=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Zt(i):""}function Rn(t,a){switch(t.tag){case 26:case 27:case 5:return Zt(t.type);case 16:return Zt("Lazy");case 13:return t.child!==a&&a!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return Vn(t.type,!1);case 11:return Vn(t.type.render,!1);case 1:return Vn(t.type,!0);case 31:return Zt("Activity");default:return""}}function sa(t){try{var a="",i=null;do a+=Rn(t,i),i=t,t=t.return;while(t);return a}catch(s){return`
7
+ `+R[s].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),Z}while(1<=s&&0<=f);break}}}finally{Vn=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Jt(i):""}function jn(t,a){switch(t.tag){case 26:case 27:case 5:return Jt(t.type);case 16:return Jt("Lazy");case 13:return t.child!==a&&a!==null?Jt("Suspense Fallback"):Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 15:return Gn(t.type,!1);case 11:return Gn(t.type.render,!1);case 1:return Gn(t.type,!0);case 31:return Jt("Activity");default:return""}}function la(t){try{var a="",i=null;do a+=jn(t,i),i=t,t=t.return;while(t);return a}catch(s){return`
8
8
  Error generating stack: `+s.message+`
9
- `+s.stack}}var _t=Object.prototype.hasOwnProperty,Ha=e.unstable_scheduleCallback,_a=e.unstable_cancelCallback,Pt=e.unstable_shouldYield,la=e.unstable_requestPaint,Ht=e.unstable_now,ei=e.unstable_getCurrentPriorityLevel,$a=e.unstable_ImmediatePriority,ki=e.unstable_UserBlockingPriority,Qa=e.unstable_NormalPriority,ti=e.unstable_LowPriority,ua=e.unstable_IdlePriority,Ni=e.log,Ta=e.unstable_setDisableYieldValue,Va=null,Jt=null;function jn(t){if(typeof Ni=="function"&&Ta(t),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(Va,t)}catch{}}var Vt=Math.clz32?Math.clz32:De,Ai=Math.log,ni=Math.LN2;function De(t){return t>>>=0,t===0?32:31-(Ai(t)/ni|0)|0}var He=256,Te=262144,Ue=4194304;function wt(t){var a=t&42;if(a!==0)return a;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function he(t,a,i){var s=t.pendingLanes;if(s===0)return 0;var f=0,m=t.suspendedLanes,x=t.pingedLanes;t=t.warmLanes;var T=s&134217727;return T!==0?(s=T&~m,s!==0?f=wt(s):(x&=T,x!==0?f=wt(x):i||(i=T&~t,i!==0&&(f=wt(i))))):(T=s&~m,T!==0?f=wt(T):x!==0?f=wt(x):i||(i=s&~t,i!==0&&(f=wt(i)))),f===0?0:a!==0&&a!==f&&(a&m)===0&&(m=f&-f,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:f}function ht(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function It(t,a){switch(t){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 Gt(){var t=Ue;return Ue<<=1,(Ue&62914560)===0&&(Ue=4194304),t}function Gn(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function ct(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pn(t,a,i,s,f,m){var x=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var T=t.entanglements,R=t.expirationTimes,H=t.hiddenUpdates;for(i=x&~i;0<i;){var Z=31-Vt(i),te=1<<Z;T[Z]=0,R[Z]=-1;var Q=H[Z];if(Q!==null)for(H[Z]=null,Z=0;Z<Q.length;Z++){var W=Q[Z];W!==null&&(W.lane&=-536870913)}i&=~te}s!==0&&ai(t,s,0),m!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=m&~(x&~a))}function ai(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var s=31-Vt(a);t.entangledLanes|=a,t.entanglements[s]=t.entanglements[s]|1073741824|i&261930}function vn(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var s=31-Vt(i),f=1<<s;f&a|t[s]&a&&(t[s]|=a),i&=~f}}function gn(t,a){var i=a&-a;return i=(i&42)!==0?1:Ri(i),(i&(t.suspendedLanes|a))!==0?0:i}function Ri(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ca(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function xc(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Ny(t.type))}function Qm(t,a){var i=Y.p;try{return Y.p=t,a()}finally{Y.p=i}}var yr=Math.random().toString(36).slice(2),en="__reactFiber$"+yr,yn="__reactProps$"+yr,ji="__reactContainer$"+yr,wc="__reactEvents$"+yr,Vw="__reactListeners$"+yr,Gw="__reactHandles$"+yr,Vm="__reactResources$"+yr,Bo="__reactMarker$"+yr;function Sc(t){delete t[en],delete t[yn],delete t[wc],delete t[Vw],delete t[Gw]}function Mi(t){var a=t[en];if(a)return a;for(var i=t.parentNode;i;){if(a=i[ji]||i[en]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=hy(t);t!==null;){if(i=t[en])return i;t=hy(t)}return a}t=i,i=t.parentNode}return null}function Oi(t){if(t=t[en]||t[ji]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function Po(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(o(33))}function Li(t){var a=t[Vm];return a||(a=t[Vm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Yt(t){t[Bo]=!0}var Gm=new Set,Ym={};function ri(t,a){Ii(t,a),Ii(t+"Capture",a)}function Ii(t,a){for(Ym[t]=a,t=0;t<a.length;t++)Gm.add(a[t])}var Yw=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]*$"),Km={},Wm={};function Kw(t){return _t.call(Wm,t)?!0:_t.call(Km,t)?!1:Yw.test(t)?Wm[t]=!0:(Km[t]=!0,!1)}function hl(t,a,i){if(Kw(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var s=a.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function ml(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function Ga(t,a,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+s)}}function Yn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xm(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ww(t,a,i){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,m=s.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return f.call(this)},set:function(x){i=""+x,m.call(this,x)}}),Object.defineProperty(t,a,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(x){i=""+x},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function Ec(t){if(!t._valueTracker){var a=Xm(t)?"checked":"value";t._valueTracker=Ww(t,a,""+t[a])}}function Zm(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),s="";return t&&(s=Xm(t)?t.checked?"true":"false":t.value),t=s,t!==i?(a.setValue(t),!0):!1}function pl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Xw=/[\n"\\]/g;function Kn(t){return t.replace(Xw,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function _c(t,a,i,s,f,m,x,T){t.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.type=x:t.removeAttribute("type"),a!=null?x==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Yn(a)):t.value!==""+Yn(a)&&(t.value=""+Yn(a)):x!=="submit"&&x!=="reset"||t.removeAttribute("value"),a!=null?Tc(t,x,Yn(a)):i!=null?Tc(t,x,Yn(i)):s!=null&&t.removeAttribute("value"),f==null&&m!=null&&(t.defaultChecked=!!m),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+Yn(T):t.removeAttribute("name")}function Jm(t,a,i,s,f,m,x,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){Ec(t);return}i=i!=null?""+Yn(i):"",a=a!=null?""+Yn(a):i,T||a===t.value||(t.value=a),t.defaultValue=a}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=T?t.checked:!!s,t.defaultChecked=!!s,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.name=x),Ec(t)}function Tc(t,a,i){a==="number"&&pl(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function zi(t,a,i,s){if(t=t.options,a){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=!0;for(i=0;i<t.length;i++)f=a.hasOwnProperty("$"+t[i].value),t[i].selected!==f&&(t[i].selected=f),f&&s&&(t[i].defaultSelected=!0)}else{for(i=""+Yn(i),a=null,f=0;f<t.length;f++){if(t[f].value===i){t[f].selected=!0,s&&(t[f].defaultSelected=!0);return}a!==null||t[f].disabled||(a=t[f])}a!==null&&(a.selected=!0)}}function ep(t,a,i){if(a!=null&&(a=""+Yn(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+Yn(i):""}function tp(t,a,i,s){if(a==null){if(s!=null){if(i!=null)throw Error(o(92));if(ce(s)){if(1<s.length)throw Error(o(93));s=s[0]}i=s}i==null&&(i=""),a=i}i=Yn(a),t.defaultValue=i,s=t.textContent,s===i&&s!==""&&s!==null&&(t.value=s),Ec(t)}function Fi(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var Zw=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 np(t,a,i){var s=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":s?t.setProperty(a,i):typeof i!="number"||i===0||Zw.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function ap(t,a,i){if(a!=null&&typeof a!="object")throw Error(o(62));if(t=t.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||a!=null&&a.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var f in a)s=a[f],a.hasOwnProperty(f)&&i[f]!==s&&np(t,f,s)}else for(var m in a)a.hasOwnProperty(m)&&np(t,m,a[m])}function Dc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Jw=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"]]),e2=/^[\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 vl(t){return e2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ya(){}var Cc=null;function kc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ui=null,qi=null;function rp(t){var a=Oi(t);if(a&&(t=a.stateNode)){var i=t[yn]||null;e:switch(t=a.stateNode,a.type){case"input":if(_c(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Kn(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var s=i[a];if(s!==t&&s.form===t.form){var f=s[yn]||null;if(!f)throw Error(o(90));_c(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<i.length;a++)s=i[a],s.form===t.form&&Zm(s)}break e;case"textarea":ep(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&zi(t,!!i.multiple,a,!1)}}}var Nc=!1;function ip(t,a,i){if(Nc)return t(a,i);Nc=!0;try{var s=t(a);return s}finally{if(Nc=!1,(Ui!==null||qi!==null)&&(au(),Ui&&(a=Ui,t=qi,qi=Ui=null,rp(a),t)))for(a=0;a<t.length;a++)rp(t[a])}}function Ho(t,a){var i=t.stateNode;if(i===null)return null;var s=i[yn]||null;if(s===null)return null;i=s[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":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,a,typeof i));return i}var Ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ac=!1;if(Ka)try{var $o={};Object.defineProperty($o,"passive",{get:function(){Ac=!0}}),window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{Ac=!1}var br=null,Rc=null,gl=null;function op(){if(gl)return gl;var t,a=Rc,i=a.length,s,f="value"in br?br.value:br.textContent,m=f.length;for(t=0;t<i&&a[t]===f[t];t++);var x=i-t;for(s=1;s<=x&&a[i-s]===f[m-s];s++);return gl=f.slice(t,1<s?1-s:void 0)}function yl(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function bl(){return!0}function sp(){return!1}function bn(t){function a(i,s,f,m,x){this._reactName=i,this._targetInst=f,this.type=s,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(i=t[T],this[T]=i?i(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?bl:sp,this.isPropagationStopped=sp,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=bl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=bl)},persist:function(){},isPersistent:bl}),a}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xl=bn(ii),Qo=v({},ii,{view:0,detail:0}),t2=bn(Qo),jc,Mc,Vo,wl=v({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Vo&&(Vo&&t.type==="mousemove"?(jc=t.screenX-Vo.screenX,Mc=t.screenY-Vo.screenY):Mc=jc=0,Vo=t),jc)},movementY:function(t){return"movementY"in t?t.movementY:Mc}}),lp=bn(wl),n2=v({},wl,{dataTransfer:0}),a2=bn(n2),r2=v({},Qo,{relatedTarget:0}),Oc=bn(r2),i2=v({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),o2=bn(i2),s2=v({},ii,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),l2=bn(s2),u2=v({},ii,{data:0}),up=bn(u2),c2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d2={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"},f2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h2(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=f2[t])?!!a[t]:!1}function Lc(){return h2}var m2=v({},Qo,{key:function(t){if(t.key){var a=c2[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=yl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?d2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(t){return t.type==="keypress"?yl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?yl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),p2=bn(m2),v2=v({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cp=bn(v2),g2=v({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),y2=bn(g2),b2=v({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),x2=bn(b2),w2=v({},wl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),S2=bn(w2),E2=v({},ii,{newState:0,oldState:0}),_2=bn(E2),T2=[9,13,27,32],Ic=Ka&&"CompositionEvent"in window,Go=null;Ka&&"documentMode"in document&&(Go=document.documentMode);var D2=Ka&&"TextEvent"in window&&!Go,dp=Ka&&(!Ic||Go&&8<Go&&11>=Go),fp=" ",hp=!1;function mp(t,a){switch(t){case"keyup":return T2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Bi=!1;function C2(t,a){switch(t){case"compositionend":return pp(a);case"keypress":return a.which!==32?null:(hp=!0,fp);case"textInput":return t=a.data,t===fp&&hp?null:t;default:return null}}function k2(t,a){if(Bi)return t==="compositionend"||!Ic&&mp(t,a)?(t=op(),gl=Rc=br=null,Bi=!1,t):null;switch(t){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 dp&&a.locale!=="ko"?null:a.data;default:return null}}var N2={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 vp(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!N2[t.type]:a==="textarea"}function gp(t,a,i,s){Ui?qi?qi.push(s):qi=[s]:Ui=s,a=cu(a,"onChange"),0<a.length&&(i=new xl("onChange","change",null,i,s),t.push({event:i,listeners:a}))}var Yo=null,Ko=null;function A2(t){Jg(t,0)}function Sl(t){var a=Po(t);if(Zm(a))return t}function yp(t,a){if(t==="change")return a}var bp=!1;if(Ka){var zc;if(Ka){var Fc="oninput"in document;if(!Fc){var xp=document.createElement("div");xp.setAttribute("oninput","return;"),Fc=typeof xp.oninput=="function"}zc=Fc}else zc=!1;bp=zc&&(!document.documentMode||9<document.documentMode)}function wp(){Yo&&(Yo.detachEvent("onpropertychange",Sp),Ko=Yo=null)}function Sp(t){if(t.propertyName==="value"&&Sl(Ko)){var a=[];gp(a,Ko,t,kc(t)),ip(A2,a)}}function R2(t,a,i){t==="focusin"?(wp(),Yo=a,Ko=i,Yo.attachEvent("onpropertychange",Sp)):t==="focusout"&&wp()}function j2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Sl(Ko)}function M2(t,a){if(t==="click")return Sl(a)}function O2(t,a){if(t==="input"||t==="change")return Sl(a)}function L2(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var Mn=typeof Object.is=="function"?Object.is:L2;function Wo(t,a){if(Mn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),s=Object.keys(a);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var f=i[s];if(!_t.call(a,f)||!Mn(t[f],a[f]))return!1}return!0}function Ep(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _p(t,a){var i=Ep(t);t=0;for(var s;i;){if(i.nodeType===3){if(s=t+i.textContent.length,t<=a&&s>=a)return{node:i,offset:a-t};t=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Ep(i)}}function Tp(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Tp(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Dp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=pl(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=pl(t.document)}return a}function Uc(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var I2=Ka&&"documentMode"in document&&11>=document.documentMode,Pi=null,qc=null,Xo=null,Bc=!1;function Cp(t,a,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Bc||Pi==null||Pi!==pl(s)||(s=Pi,"selectionStart"in s&&Uc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Xo&&Wo(Xo,s)||(Xo=s,s=cu(qc,"onSelect"),0<s.length&&(a=new xl("onSelect","select",null,a,i),t.push({event:a,listeners:s}),a.target=Pi)))}function oi(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var Hi={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionrun:oi("Transition","TransitionRun"),transitionstart:oi("Transition","TransitionStart"),transitioncancel:oi("Transition","TransitionCancel"),transitionend:oi("Transition","TransitionEnd")},Pc={},kp={};Ka&&(kp=document.createElement("div").style,"AnimationEvent"in window||(delete Hi.animationend.animation,delete Hi.animationiteration.animation,delete Hi.animationstart.animation),"TransitionEvent"in window||delete Hi.transitionend.transition);function si(t){if(Pc[t])return Pc[t];if(!Hi[t])return t;var a=Hi[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in kp)return Pc[t]=a[i];return t}var Np=si("animationend"),Ap=si("animationiteration"),Rp=si("animationstart"),z2=si("transitionrun"),F2=si("transitionstart"),U2=si("transitioncancel"),jp=si("transitionend"),Mp=new Map,Hc="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(" ");Hc.push("scrollEnd");function da(t,a){Mp.set(t,a),ri(a,[t])}var El=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Wn=[],$i=0,$c=0;function _l(){for(var t=$i,a=$c=$i=0;a<t;){var i=Wn[a];Wn[a++]=null;var s=Wn[a];Wn[a++]=null;var f=Wn[a];Wn[a++]=null;var m=Wn[a];if(Wn[a++]=null,s!==null&&f!==null){var x=s.pending;x===null?f.next=f:(f.next=x.next,x.next=f),s.pending=f}m!==0&&Op(i,f,m)}}function Tl(t,a,i,s){Wn[$i++]=t,Wn[$i++]=a,Wn[$i++]=i,Wn[$i++]=s,$c|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Qc(t,a,i,s){return Tl(t,a,i,s),Dl(t)}function li(t,a){return Tl(t,null,null,a),Dl(t)}function Op(t,a,i){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i);for(var f=!1,m=t.return;m!==null;)m.childLanes|=i,s=m.alternate,s!==null&&(s.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(f=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,f&&a!==null&&(f=31-Vt(i),t=m.hiddenUpdates,s=t[f],s===null?t[f]=[a]:s.push(a),a.lane=i|536870912),m):null}function Dl(t){if(50<bs)throw bs=0,ef=null,Error(o(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Qi={};function q2(t,a,i,s){this.tag=t,this.key=i,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(t,a,i,s){return new q2(t,a,i,s)}function Vc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Wa(t,a){var i=t.alternate;return i===null?(i=On(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Lp(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Cl(t,a,i,s,f,m){var x=0;if(s=t,typeof t=="function")Vc(t)&&(x=1);else if(typeof t=="string")x=QS(t,i,ue.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case F:return t=On(31,i,a,f),t.elementType=F,t.lanes=m,t;case C:return ui(i.children,f,m,a);case D:x=8,f|=24;break;case _:return t=On(12,i,a,f|2),t.elementType=_,t.lanes=m,t;case O:return t=On(13,i,a,f),t.elementType=O,t.lanes=m,t;case I:return t=On(19,i,a,f),t.elementType=I,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:x=10;break e;case A:x=9;break e;case M:x=11;break e;case S:x=14;break e;case U:x=16,s=null;break e}x=29,i=Error(o(130,t===null?"null":typeof t,"")),s=null}return a=On(x,i,a,f),a.elementType=t,a.type=s,a.lanes=m,a}function ui(t,a,i,s){return t=On(7,t,s,a),t.lanes=i,t}function Gc(t,a,i){return t=On(6,t,null,a),t.lanes=i,t}function Ip(t){var a=On(18,null,null,0);return a.stateNode=t,a}function Yc(t,a,i){return a=On(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var zp=new WeakMap;function Xn(t,a){if(typeof t=="object"&&t!==null){var i=zp.get(t);return i!==void 0?i:(a={value:t,source:a,stack:sa(a)},zp.set(t,a),a)}return{value:t,source:a,stack:sa(a)}}var Vi=[],Gi=0,kl=null,Zo=0,Zn=[],Jn=0,xr=null,Da=1,Ca="";function Xa(t,a){Vi[Gi++]=Zo,Vi[Gi++]=kl,kl=t,Zo=a}function Fp(t,a,i){Zn[Jn++]=Da,Zn[Jn++]=Ca,Zn[Jn++]=xr,xr=t;var s=Da;t=Ca;var f=32-Vt(s)-1;s&=~(1<<f),i+=1;var m=32-Vt(a)+f;if(30<m){var x=f-f%5;m=(s&(1<<x)-1).toString(32),s>>=x,f-=x,Da=1<<32-Vt(a)+f|i<<f|s,Ca=m+t}else Da=1<<m|i<<f|s,Ca=t}function Kc(t){t.return!==null&&(Xa(t,1),Fp(t,1,0))}function Wc(t){for(;t===kl;)kl=Vi[--Gi],Vi[Gi]=null,Zo=Vi[--Gi],Vi[Gi]=null;for(;t===xr;)xr=Zn[--Jn],Zn[Jn]=null,Ca=Zn[--Jn],Zn[Jn]=null,Da=Zn[--Jn],Zn[Jn]=null}function Up(t,a){Zn[Jn++]=Da,Zn[Jn++]=Ca,Zn[Jn++]=xr,Da=a.id,Ca=a.overflow,xr=t}var tn=null,gt=null,Ye=!1,wr=null,ea=!1,Xc=Error(o(519));function Sr(t){var a=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jo(Xn(a,t)),Xc}function qp(t){var a=t.stateNode,i=t.type,s=t.memoizedProps;switch(a[en]=t,a[yn]=s,i){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(i=0;i<ws.length;i++)Qe(ws[i],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),Jm(a,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),tp(a,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||s.suppressHydrationWarning===!0||ay(a.textContent,i)?(s.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),s.onScroll!=null&&Qe("scroll",a),s.onScrollEnd!=null&&Qe("scrollend",a),s.onClick!=null&&(a.onclick=Ya),a=!0):a=!1,a||Sr(t,!0)}function Bp(t){for(tn=t.return;tn;)switch(tn.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:tn=tn.return}}function Yi(t){if(t!==tn)return!1;if(!Ye)return Bp(t),Ye=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||vf(t.type,t.memoizedProps)),i=!i),i&&gt&&Sr(t),Bp(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));gt=fy(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));gt=fy(t)}else a===27?(a=gt,Ir(t.type)?(t=wf,wf=null,gt=t):gt=a):gt=tn?na(t.stateNode.nextSibling):null;return!0}function ci(){gt=tn=null,Ye=!1}function Zc(){var t=wr;return t!==null&&(En===null?En=t:En.push.apply(En,t),wr=null),t}function Jo(t){wr===null?wr=[t]:wr.push(t)}var Jc=pe(null),di=null,Za=null;function Er(t,a,i){X(Jc,a._currentValue),a._currentValue=i}function Ja(t){t._currentValue=Jc.current,G(Jc)}function ed(t,a,i){for(;t!==null;){var s=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,s!==null&&(s.childLanes|=a)):s!==null&&(s.childLanes&a)!==a&&(s.childLanes|=a),t===i)break;t=t.return}}function td(t,a,i,s){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var m=f.dependencies;if(m!==null){var x=f.child;m=m.firstContext;e:for(;m!==null;){var T=m;m=f;for(var R=0;R<a.length;R++)if(T.context===a[R]){m.lanes|=i,T=m.alternate,T!==null&&(T.lanes|=i),ed(m.return,i,t),s||(x=null);break e}m=T.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(o(341));x.lanes|=i,m=x.alternate,m!==null&&(m.lanes|=i),ed(x,i,t),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===t){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function Ki(t,a,i,s){t=null;for(var f=a,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(o(387));if(x=x.memoizedProps,x!==null){var T=f.type;Mn(f.pendingProps.value,x.value)||(t!==null?t.push(T):t=[T])}}else if(f===ve.current){if(x=f.alternate,x===null)throw Error(o(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(Ds):t=[Ds])}f=f.return}t!==null&&td(a,t,i,s),a.flags|=262144}function Nl(t){for(t=t.firstContext;t!==null;){if(!Mn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function fi(t){di=t,Za=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function nn(t){return Pp(di,t)}function Al(t,a){return di===null&&fi(t),Pp(t,a)}function Pp(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Za===null){if(t===null)throw Error(o(308));Za=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Za=Za.next=a;return i}var B2=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,s){t.push(s)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},P2=e.unstable_scheduleCallback,H2=e.unstable_NormalPriority,zt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nd(){return{controller:new B2,data:new Map,refCount:0}}function es(t){t.refCount--,t.refCount===0&&P2(H2,function(){t.controller.abort()})}var ts=null,ad=0,Wi=0,Xi=null;function $2(t,a){if(ts===null){var i=ts=[];ad=0,Wi=sf(),Xi={status:"pending",value:void 0,then:function(s){i.push(s)}}}return ad++,a.then(Hp,Hp),a}function Hp(){if(--ad===0&&ts!==null){Xi!==null&&(Xi.status="fulfilled");var t=ts;ts=null,Wi=0,Xi=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function Q2(t,a){var i=[],s={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return t.then(function(){s.status="fulfilled",s.value=a;for(var f=0;f<i.length;f++)(0,i[f])(a)},function(f){for(s.status="rejected",s.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),s}var $p=j.S;j.S=function(t,a){Cg=Ht(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&$2(t,a),$p!==null&&$p(t,a)};var hi=pe(null);function rd(){var t=hi.current;return t!==null?t:dt.pooledCache}function Rl(t,a){a===null?X(hi,hi.current):X(hi,a.pool)}function Qp(){var t=rd();return t===null?null:{parent:zt._currentValue,pool:t}}var Zi=Error(o(460)),id=Error(o(474)),jl=Error(o(542)),Ml={then:function(){}};function Vp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Gp(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(Ya,Ya),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Kp(t),t;default:if(typeof a.status=="string")a.then(Ya,Ya);else{if(t=dt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=a,t.status="pending",t.then(function(s){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=s}},function(s){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=s}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Kp(t),t}throw pi=a,Zi}}function mi(t){try{var a=t._init;return a(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(pi=i,Zi):i}}var pi=null;function Yp(){if(pi===null)throw Error(o(459));var t=pi;return pi=null,t}function Kp(t){if(t===Zi||t===jl)throw Error(o(483))}var Ji=null,ns=0;function Ol(t){var a=ns;return ns+=1,Ji===null&&(Ji=[]),Gp(Ji,t,a)}function as(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Ll(t,a){throw a.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(a),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Wp(t){function a(q,z){if(t){var P=q.deletions;P===null?(q.deletions=[z],q.flags|=16):P.push(z)}}function i(q,z){if(!t)return null;for(;z!==null;)a(q,z),z=z.sibling;return null}function s(q){for(var z=new Map;q!==null;)q.key!==null?z.set(q.key,q):z.set(q.index,q),q=q.sibling;return z}function f(q,z){return q=Wa(q,z),q.index=0,q.sibling=null,q}function m(q,z,P){return q.index=P,t?(P=q.alternate,P!==null?(P=P.index,P<z?(q.flags|=67108866,z):P):(q.flags|=67108866,z)):(q.flags|=1048576,z)}function x(q){return t&&q.alternate===null&&(q.flags|=67108866),q}function T(q,z,P,J){return z===null||z.tag!==6?(z=Gc(P,q.mode,J),z.return=q,z):(z=f(z,P),z.return=q,z)}function R(q,z,P,J){var Ee=P.type;return Ee===C?Z(q,z,P.props.children,J,P.key):z!==null&&(z.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===U&&mi(Ee)===z.type)?(z=f(z,P.props),as(z,P),z.return=q,z):(z=Cl(P.type,P.key,P.props,null,q.mode,J),as(z,P),z.return=q,z)}function H(q,z,P,J){return z===null||z.tag!==4||z.stateNode.containerInfo!==P.containerInfo||z.stateNode.implementation!==P.implementation?(z=Yc(P,q.mode,J),z.return=q,z):(z=f(z,P.children||[]),z.return=q,z)}function Z(q,z,P,J,Ee){return z===null||z.tag!==7?(z=ui(P,q.mode,J,Ee),z.return=q,z):(z=f(z,P),z.return=q,z)}function te(q,z,P){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Gc(""+z,q.mode,P),z.return=q,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case w:return P=Cl(z.type,z.key,z.props,null,q.mode,P),as(P,z),P.return=q,P;case E:return z=Yc(z,q.mode,P),z.return=q,z;case U:return z=mi(z),te(q,z,P)}if(ce(z)||K(z))return z=ui(z,q.mode,P,null),z.return=q,z;if(typeof z.then=="function")return te(q,Ol(z),P);if(z.$$typeof===N)return te(q,Al(q,z),P);Ll(q,z)}return null}function Q(q,z,P,J){var Ee=z!==null?z.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return Ee!==null?null:T(q,z,""+P,J);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case w:return P.key===Ee?R(q,z,P,J):null;case E:return P.key===Ee?H(q,z,P,J):null;case U:return P=mi(P),Q(q,z,P,J)}if(ce(P)||K(P))return Ee!==null?null:Z(q,z,P,J,null);if(typeof P.then=="function")return Q(q,z,Ol(P),J);if(P.$$typeof===N)return Q(q,z,Al(q,P),J);Ll(q,P)}return null}function W(q,z,P,J,Ee){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return q=q.get(P)||null,T(z,q,""+J,Ee);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case w:return q=q.get(J.key===null?P:J.key)||null,R(z,q,J,Ee);case E:return q=q.get(J.key===null?P:J.key)||null,H(z,q,J,Ee);case U:return J=mi(J),W(q,z,P,J,Ee)}if(ce(J)||K(J))return q=q.get(P)||null,Z(z,q,J,Ee,null);if(typeof J.then=="function")return W(q,z,P,Ol(J),Ee);if(J.$$typeof===N)return W(q,z,P,Al(z,J),Ee);Ll(z,J)}return null}function ye(q,z,P,J){for(var Ee=null,We=null,xe=z,Me=z=0,Ge=null;xe!==null&&Me<P.length;Me++){xe.index>Me?(Ge=xe,xe=null):Ge=xe.sibling;var Xe=Q(q,xe,P[Me],J);if(Xe===null){xe===null&&(xe=Ge);break}t&&xe&&Xe.alternate===null&&a(q,xe),z=m(Xe,z,Me),We===null?Ee=Xe:We.sibling=Xe,We=Xe,xe=Ge}if(Me===P.length)return i(q,xe),Ye&&Xa(q,Me),Ee;if(xe===null){for(;Me<P.length;Me++)xe=te(q,P[Me],J),xe!==null&&(z=m(xe,z,Me),We===null?Ee=xe:We.sibling=xe,We=xe);return Ye&&Xa(q,Me),Ee}for(xe=s(xe);Me<P.length;Me++)Ge=W(xe,q,Me,P[Me],J),Ge!==null&&(t&&Ge.alternate!==null&&xe.delete(Ge.key===null?Me:Ge.key),z=m(Ge,z,Me),We===null?Ee=Ge:We.sibling=Ge,We=Ge);return t&&xe.forEach(function(Br){return a(q,Br)}),Ye&&Xa(q,Me),Ee}function Ce(q,z,P,J){if(P==null)throw Error(o(151));for(var Ee=null,We=null,xe=z,Me=z=0,Ge=null,Xe=P.next();xe!==null&&!Xe.done;Me++,Xe=P.next()){xe.index>Me?(Ge=xe,xe=null):Ge=xe.sibling;var Br=Q(q,xe,Xe.value,J);if(Br===null){xe===null&&(xe=Ge);break}t&&xe&&Br.alternate===null&&a(q,xe),z=m(Br,z,Me),We===null?Ee=Br:We.sibling=Br,We=Br,xe=Ge}if(Xe.done)return i(q,xe),Ye&&Xa(q,Me),Ee;if(xe===null){for(;!Xe.done;Me++,Xe=P.next())Xe=te(q,Xe.value,J),Xe!==null&&(z=m(Xe,z,Me),We===null?Ee=Xe:We.sibling=Xe,We=Xe);return Ye&&Xa(q,Me),Ee}for(xe=s(xe);!Xe.done;Me++,Xe=P.next())Xe=W(xe,q,Me,Xe.value,J),Xe!==null&&(t&&Xe.alternate!==null&&xe.delete(Xe.key===null?Me:Xe.key),z=m(Xe,z,Me),We===null?Ee=Xe:We.sibling=Xe,We=Xe);return t&&xe.forEach(function(nE){return a(q,nE)}),Ye&&Xa(q,Me),Ee}function ut(q,z,P,J){if(typeof P=="object"&&P!==null&&P.type===C&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case w:e:{for(var Ee=P.key;z!==null;){if(z.key===Ee){if(Ee=P.type,Ee===C){if(z.tag===7){i(q,z.sibling),J=f(z,P.props.children),J.return=q,q=J;break e}}else if(z.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===U&&mi(Ee)===z.type){i(q,z.sibling),J=f(z,P.props),as(J,P),J.return=q,q=J;break e}i(q,z);break}else a(q,z);z=z.sibling}P.type===C?(J=ui(P.props.children,q.mode,J,P.key),J.return=q,q=J):(J=Cl(P.type,P.key,P.props,null,q.mode,J),as(J,P),J.return=q,q=J)}return x(q);case E:e:{for(Ee=P.key;z!==null;){if(z.key===Ee)if(z.tag===4&&z.stateNode.containerInfo===P.containerInfo&&z.stateNode.implementation===P.implementation){i(q,z.sibling),J=f(z,P.children||[]),J.return=q,q=J;break e}else{i(q,z);break}else a(q,z);z=z.sibling}J=Yc(P,q.mode,J),J.return=q,q=J}return x(q);case U:return P=mi(P),ut(q,z,P,J)}if(ce(P))return ye(q,z,P,J);if(K(P)){if(Ee=K(P),typeof Ee!="function")throw Error(o(150));return P=Ee.call(P),Ce(q,z,P,J)}if(typeof P.then=="function")return ut(q,z,Ol(P),J);if(P.$$typeof===N)return ut(q,z,Al(q,P),J);Ll(q,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,z!==null&&z.tag===6?(i(q,z.sibling),J=f(z,P),J.return=q,q=J):(i(q,z),J=Gc(P,q.mode,J),J.return=q,q=J),x(q)):i(q,z)}return function(q,z,P,J){try{ns=0;var Ee=ut(q,z,P,J);return Ji=null,Ee}catch(xe){if(xe===Zi||xe===jl)throw xe;var We=On(29,xe,null,q.mode);return We.lanes=J,We.return=q,We}}}var vi=Wp(!0),Xp=Wp(!1),_r=!1;function od(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sd(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Tr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Dr(t,a,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Ze&2)!==0){var f=s.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a,a=Dl(t),Op(t,null,i),a}return Tl(t,s,a,i),Dl(t)}function rs(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var s=a.lanes;s&=t.pendingLanes,i|=s,a.lanes=i,vn(t,i)}}function ld(t,a){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=x:m=m.next=x,i=i.next}while(i!==null);m===null?f=m=a:m=m.next=a}else f=m=a;i={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var ud=!1;function is(){if(ud){var t=Xi;if(t!==null)throw t}}function os(t,a,i,s){ud=!1;var f=t.updateQueue;_r=!1;var m=f.firstBaseUpdate,x=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var R=T,H=R.next;R.next=null,x===null?m=H:x.next=H,x=R;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,T=Z.lastBaseUpdate,T!==x&&(T===null?Z.firstBaseUpdate=H:T.next=H,Z.lastBaseUpdate=R))}if(m!==null){var te=f.baseState;x=0,Z=H=R=null,T=m;do{var Q=T.lane&-536870913,W=Q!==T.lane;if(W?(Ve&Q)===Q:(s&Q)===Q){Q!==0&&Q===Wi&&(ud=!0),Z!==null&&(Z=Z.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ye=t,Ce=T;Q=a;var ut=i;switch(Ce.tag){case 1:if(ye=Ce.payload,typeof ye=="function"){te=ye.call(ut,te,Q);break e}te=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ce.payload,Q=typeof ye=="function"?ye.call(ut,te,Q):ye,Q==null)break e;te=v({},te,Q);break e;case 2:_r=!0}}Q=T.callback,Q!==null&&(t.flags|=64,W&&(t.flags|=8192),W=f.callbacks,W===null?f.callbacks=[Q]:W.push(Q))}else W={lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Z===null?(H=Z=W,R=te):Z=Z.next=W,x|=Q;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;W=T,T=W.next,W.next=null,f.lastBaseUpdate=W,f.shared.pending=null}}while(!0);Z===null&&(R=te),f.baseState=R,f.firstBaseUpdate=H,f.lastBaseUpdate=Z,m===null&&(f.shared.lanes=0),Rr|=x,t.lanes=x,t.memoizedState=te}}function Zp(t,a){if(typeof t!="function")throw Error(o(191,t));t.call(a)}function Jp(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Zp(i[t],a)}var eo=pe(null),Il=pe(0);function ev(t,a){t=lr,X(Il,t),X(eo,a),lr=t|a.baseLanes}function cd(){X(Il,lr),X(eo,eo.current)}function dd(){lr=Il.current,G(eo),G(Il)}var Ln=pe(null),ta=null;function Cr(t){var a=t.alternate;X(Mt,Mt.current&1),X(Ln,t),ta===null&&(a===null||eo.current!==null||a.memoizedState!==null)&&(ta=t)}function fd(t){X(Mt,Mt.current),X(Ln,t),ta===null&&(ta=t)}function tv(t){t.tag===22?(X(Mt,Mt.current),X(Ln,t),ta===null&&(ta=t)):kr()}function kr(){X(Mt,Mt.current),X(Ln,Ln.current)}function In(t){G(Ln),ta===t&&(ta=null),G(Mt)}var Mt=pe(0);function zl(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||bf(i)||xf(i)))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===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var er=0,je=null,st=null,Ft=null,Fl=!1,to=!1,gi=!1,Ul=0,ss=0,no=null,V2=0;function Nt(){throw Error(o(321))}function hd(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!Mn(t[i],a[i]))return!1;return!0}function md(t,a,i,s,f,m){return er=m,je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,j.H=t===null||t.memoizedState===null?Fv:Nd,gi=!1,m=i(s,f),gi=!1,to&&(m=av(a,i,s,f)),nv(t),m}function nv(t){j.H=cs;var a=st!==null&&st.next!==null;if(er=0,Ft=st=je=null,Fl=!1,ss=0,no=null,a)throw Error(o(300));t===null||Ut||(t=t.dependencies,t!==null&&Nl(t)&&(Ut=!0))}function av(t,a,i,s){je=t;var f=0;do{if(to&&(no=null),ss=0,to=!1,25<=f)throw Error(o(301));if(f+=1,Ft=st=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}j.H=Uv,m=a(i,s)}while(to);return m}function G2(){var t=j.H,a=t.useState()[0];return a=typeof a.then=="function"?ls(a):a,t=t.useState()[0],(st!==null?st.memoizedState:null)!==t&&(je.flags|=1024),a}function pd(){var t=Ul!==0;return Ul=0,t}function vd(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function gd(t){if(Fl){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Fl=!1}er=0,Ft=st=je=null,to=!1,ss=Ul=0,no=null}function dn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?je.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function Ot(){if(st===null){var t=je.alternate;t=t!==null?t.memoizedState:null}else t=st.next;var a=Ft===null?je.memoizedState:Ft.next;if(a!==null)Ft=a,st=t;else{if(t===null)throw je.alternate===null?Error(o(467)):Error(o(310));st=t,t={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},Ft===null?je.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function ql(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(t){var a=ss;return ss+=1,no===null&&(no=[]),t=Gp(no,t,a),a=je,(Ft===null?a.memoizedState:Ft.next)===null&&(a=a.alternate,j.H=a===null||a.memoizedState===null?Fv:Nd),t}function Bl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ls(t);if(t.$$typeof===N)return nn(t)}throw Error(o(438,String(t)))}function yd(t){var a=null,i=je.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var s=je.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(a={data:s.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=ql(),je.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),s=0;s<t;s++)i[s]=L;return a.index++,i}function tr(t,a){return typeof a=="function"?a(t):a}function Pl(t){var a=Ot();return bd(a,st,t)}function bd(t,a,i){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=i;var f=t.baseQueue,m=s.pending;if(m!==null){if(f!==null){var x=f.next;f.next=m.next,m.next=x}a.baseQueue=f=m,s.pending=null}if(m=t.baseState,f===null)t.memoizedState=m;else{a=f.next;var T=x=null,R=null,H=a,Z=!1;do{var te=H.lane&-536870913;if(te!==H.lane?(Ve&te)===te:(er&te)===te){var Q=H.revertLane;if(Q===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),te===Wi&&(Z=!0);else if((er&Q)===Q){H=H.next,Q===Wi&&(Z=!0);continue}else te={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(T=R=te,x=m):R=R.next=te,je.lanes|=Q,Rr|=Q;te=H.action,gi&&i(m,te),m=H.hasEagerState?H.eagerState:i(m,te)}else Q={lane:te,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(T=R=Q,x=m):R=R.next=Q,je.lanes|=te,Rr|=te;H=H.next}while(H!==null&&H!==a);if(R===null?x=m:R.next=T,!Mn(m,t.memoizedState)&&(Ut=!0,Z&&(i=Xi,i!==null)))throw i;t.memoizedState=m,t.baseState=x,t.baseQueue=R,s.lastRenderedState=m}return f===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function xd(t){var a=Ot(),i=a.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var s=i.dispatch,f=i.pending,m=a.memoizedState;if(f!==null){i.pending=null;var x=f=f.next;do m=t(m,x.action),x=x.next;while(x!==f);Mn(m,a.memoizedState)||(Ut=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,s]}function rv(t,a,i){var s=je,f=Ot(),m=Ye;if(m){if(i===void 0)throw Error(o(407));i=i()}else i=a();var x=!Mn((st||f).memoizedState,i);if(x&&(f.memoizedState=i,Ut=!0),f=f.queue,Ed(sv.bind(null,s,f,t),[t]),f.getSnapshot!==a||x||Ft!==null&&Ft.memoizedState.tag&1){if(s.flags|=2048,ao(9,{destroy:void 0},ov.bind(null,s,f,i,a),null),dt===null)throw Error(o(349));m||(er&127)!==0||iv(s,a,i)}return i}function iv(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=je.updateQueue,a===null?(a=ql(),je.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function ov(t,a,i,s){a.value=i,a.getSnapshot=s,lv(a)&&uv(t)}function sv(t,a,i){return i(function(){lv(a)&&uv(t)})}function lv(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!Mn(t,i)}catch{return!0}}function uv(t){var a=li(t,2);a!==null&&_n(a,t,2)}function wd(t){var a=dn();if(typeof t=="function"){var i=t;if(t=i(),gi){jn(!0);try{i()}finally{jn(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:t},a}function cv(t,a,i,s){return t.baseState=i,bd(t,st,typeof s=="function"?s:tr)}function Y2(t,a,i,s,f){if(Ql(t))throw Error(o(485));if(t=a.action,t!==null){var m={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};j.T!==null?i(!0):m.isTransition=!1,s(m),i=a.pending,i===null?(m.next=a.pending=m,dv(a,m)):(m.next=i.next,a.pending=i.next=m)}}function dv(t,a){var i=a.action,s=a.payload,f=t.state;if(a.isTransition){var m=j.T,x={};j.T=x;try{var T=i(f,s),R=j.S;R!==null&&R(x,T),fv(t,a,T)}catch(H){Sd(t,a,H)}finally{m!==null&&x.types!==null&&(m.types=x.types),j.T=m}}else try{m=i(f,s),fv(t,a,m)}catch(H){Sd(t,a,H)}}function fv(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){hv(t,a,s)},function(s){return Sd(t,a,s)}):hv(t,a,i)}function hv(t,a,i){a.status="fulfilled",a.value=i,mv(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,dv(t,i)))}function Sd(t,a,i){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do a.status="rejected",a.reason=i,mv(a),a=a.next;while(a!==s)}t.action=null}function mv(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function pv(t,a){return a}function vv(t,a){if(Ye){var i=dt.formState;if(i!==null){e:{var s=je;if(Ye){if(gt){t:{for(var f=gt,m=ea;f.nodeType!==8;){if(!m){f=null;break t}if(f=na(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){gt=na(f.nextSibling),s=f.data==="F!";break e}}Sr(s)}s=!1}s&&(a=i[0])}}return i=dn(),i.memoizedState=i.baseState=a,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pv,lastRenderedState:a},i.queue=s,i=Lv.bind(null,je,s),s.dispatch=i,s=wd(!1),m=kd.bind(null,je,!1,s.queue),s=dn(),f={state:a,dispatch:null,action:t,pending:null},s.queue=f,i=Y2.bind(null,je,f,m,i),f.dispatch=i,s.memoizedState=t,[a,i,!1]}function gv(t){var a=Ot();return yv(a,st,t)}function yv(t,a,i){if(a=bd(t,a,pv)[0],t=Pl(tr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var s=ls(a)}catch(x){throw x===Zi?jl:x}else s=a;a=Ot();var f=a.queue,m=f.dispatch;return i!==a.memoizedState&&(je.flags|=2048,ao(9,{destroy:void 0},K2.bind(null,f,i),null)),[s,m,t]}function K2(t,a){t.action=a}function bv(t){var a=Ot(),i=st;if(i!==null)return yv(a,i,t);Ot(),a=a.memoizedState,i=Ot();var s=i.queue.dispatch;return i.memoizedState=t,[a,s,!1]}function ao(t,a,i,s){return t={tag:t,create:i,deps:s,inst:a,next:null},a=je.updateQueue,a===null&&(a=ql(),je.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(s=i.next,i.next=t,t.next=s,a.lastEffect=t),t}function xv(){return Ot().memoizedState}function Hl(t,a,i,s){var f=dn();je.flags|=t,f.memoizedState=ao(1|a,{destroy:void 0},i,s===void 0?null:s)}function $l(t,a,i,s){var f=Ot();s=s===void 0?null:s;var m=f.memoizedState.inst;st!==null&&s!==null&&hd(s,st.memoizedState.deps)?f.memoizedState=ao(a,m,i,s):(je.flags|=t,f.memoizedState=ao(1|a,m,i,s))}function wv(t,a){Hl(8390656,8,t,a)}function Ed(t,a){$l(2048,8,t,a)}function W2(t){je.flags|=4;var a=je.updateQueue;if(a===null)a=ql(),je.updateQueue=a,a.events=[t];else{var i=a.events;i===null?a.events=[t]:i.push(t)}}function Sv(t){var a=Ot().memoizedState;return W2({ref:a,nextImpl:t}),function(){if((Ze&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}function Ev(t,a){return $l(4,2,t,a)}function _v(t,a){return $l(4,4,t,a)}function Tv(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Dv(t,a,i){i=i!=null?i.concat([t]):null,$l(4,4,Tv.bind(null,a,t),i)}function _d(){}function Cv(t,a){var i=Ot();a=a===void 0?null:a;var s=i.memoizedState;return a!==null&&hd(a,s[1])?s[0]:(i.memoizedState=[t,a],t)}function kv(t,a){var i=Ot();a=a===void 0?null:a;var s=i.memoizedState;if(a!==null&&hd(a,s[1]))return s[0];if(s=t(),gi){jn(!0);try{t()}finally{jn(!1)}}return i.memoizedState=[s,a],s}function Td(t,a,i){return i===void 0||(er&1073741824)!==0&&(Ve&261930)===0?t.memoizedState=a:(t.memoizedState=i,t=Ng(),je.lanes|=t,Rr|=t,i)}function Nv(t,a,i,s){return Mn(i,a)?i:eo.current!==null?(t=Td(t,i,s),Mn(t,a)||(Ut=!0),t):(er&42)===0||(er&1073741824)!==0&&(Ve&261930)===0?(Ut=!0,t.memoizedState=i):(t=Ng(),je.lanes|=t,Rr|=t,a)}function Av(t,a,i,s,f){var m=Y.p;Y.p=m!==0&&8>m?m:8;var x=j.T,T={};j.T=T,kd(t,!1,a,i);try{var R=f(),H=j.S;if(H!==null&&H(T,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Z=Q2(R,s);us(t,a,Z,Un(t))}else us(t,a,s,Un(t))}catch(te){us(t,a,{then:function(){},status:"rejected",reason:te},Un())}finally{Y.p=m,x!==null&&T.types!==null&&(x.types=T.types),j.T=x}}function X2(){}function Dd(t,a,i,s){if(t.tag!==5)throw Error(o(476));var f=Rv(t).queue;Av(t,f,a,le,i===null?X2:function(){return jv(t),i(s)})}function Rv(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:le},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function jv(t){var a=Rv(t);a.next===null&&(a=t.alternate.memoizedState),us(t,a.next.queue,{},Un())}function Cd(){return nn(Ds)}function Mv(){return Ot().memoizedState}function Ov(){return Ot().memoizedState}function Z2(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=Un();t=Tr(i);var s=Dr(a,t,i);s!==null&&(_n(s,a,i),rs(s,a,i)),a={cache:nd()},t.payload=a;return}a=a.return}}function J2(t,a,i){var s=Un();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ql(t)?Iv(a,i):(i=Qc(t,a,i,s),i!==null&&(_n(i,t,s),zv(i,a,s)))}function Lv(t,a,i){var s=Un();us(t,a,i,s)}function us(t,a,i,s){var f={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ql(t))Iv(a,f);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var x=a.lastRenderedState,T=m(x,i);if(f.hasEagerState=!0,f.eagerState=T,Mn(T,x))return Tl(t,a,f,0),dt===null&&_l(),!1}catch{}if(i=Qc(t,a,f,s),i!==null)return _n(i,t,s),zv(i,a,s),!0}return!1}function kd(t,a,i,s){if(s={lane:2,revertLane:sf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ql(t)){if(a)throw Error(o(479))}else a=Qc(t,i,s,2),a!==null&&_n(a,t,2)}function Ql(t){var a=t.alternate;return t===je||a!==null&&a===je}function Iv(t,a){to=Fl=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function zv(t,a,i){if((i&4194048)!==0){var s=a.lanes;s&=t.pendingLanes,i|=s,a.lanes=i,vn(t,i)}}var cs={readContext:nn,use:Bl,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};cs.useEffectEvent=Nt;var Fv={readContext:nn,use:Bl,useCallback:function(t,a){return dn().memoizedState=[t,a===void 0?null:a],t},useContext:nn,useEffect:wv,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,Hl(4194308,4,Tv.bind(null,a,t),i)},useLayoutEffect:function(t,a){return Hl(4194308,4,t,a)},useInsertionEffect:function(t,a){Hl(4,2,t,a)},useMemo:function(t,a){var i=dn();a=a===void 0?null:a;var s=t();if(gi){jn(!0);try{t()}finally{jn(!1)}}return i.memoizedState=[s,a],s},useReducer:function(t,a,i){var s=dn();if(i!==void 0){var f=i(a);if(gi){jn(!0);try{i(a)}finally{jn(!1)}}}else f=a;return s.memoizedState=s.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},s.queue=t,t=t.dispatch=J2.bind(null,je,t),[s.memoizedState,t]},useRef:function(t){var a=dn();return t={current:t},a.memoizedState=t},useState:function(t){t=wd(t);var a=t.queue,i=Lv.bind(null,je,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:_d,useDeferredValue:function(t,a){var i=dn();return Td(i,t,a)},useTransition:function(){var t=wd(!1);return t=Av.bind(null,je,t.queue,!0,!1),dn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var s=je,f=dn();if(Ye){if(i===void 0)throw Error(o(407));i=i()}else{if(i=a(),dt===null)throw Error(o(349));(Ve&127)!==0||iv(s,a,i)}f.memoizedState=i;var m={value:i,getSnapshot:a};return f.queue=m,wv(sv.bind(null,s,m,t),[t]),s.flags|=2048,ao(9,{destroy:void 0},ov.bind(null,s,m,i,a),null),i},useId:function(){var t=dn(),a=dt.identifierPrefix;if(Ye){var i=Ca,s=Da;i=(s&~(1<<32-Vt(s)-1)).toString(32)+i,a="_"+a+"R_"+i,i=Ul++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=V2++,a="_"+a+"r_"+i.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:Cd,useFormState:vv,useActionState:vv,useOptimistic:function(t){var a=dn();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=kd.bind(null,je,!0,i),i.dispatch=a,[t,a]},useMemoCache:yd,useCacheRefresh:function(){return dn().memoizedState=Z2.bind(null,je)},useEffectEvent:function(t){var a=dn(),i={impl:t};return a.memoizedState=i,function(){if((Ze&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Nd={readContext:nn,use:Bl,useCallback:Cv,useContext:nn,useEffect:Ed,useImperativeHandle:Dv,useInsertionEffect:Ev,useLayoutEffect:_v,useMemo:kv,useReducer:Pl,useRef:xv,useState:function(){return Pl(tr)},useDebugValue:_d,useDeferredValue:function(t,a){var i=Ot();return Nv(i,st.memoizedState,t,a)},useTransition:function(){var t=Pl(tr)[0],a=Ot().memoizedState;return[typeof t=="boolean"?t:ls(t),a]},useSyncExternalStore:rv,useId:Mv,useHostTransitionStatus:Cd,useFormState:gv,useActionState:gv,useOptimistic:function(t,a){var i=Ot();return cv(i,st,t,a)},useMemoCache:yd,useCacheRefresh:Ov};Nd.useEffectEvent=Sv;var Uv={readContext:nn,use:Bl,useCallback:Cv,useContext:nn,useEffect:Ed,useImperativeHandle:Dv,useInsertionEffect:Ev,useLayoutEffect:_v,useMemo:kv,useReducer:xd,useRef:xv,useState:function(){return xd(tr)},useDebugValue:_d,useDeferredValue:function(t,a){var i=Ot();return st===null?Td(i,t,a):Nv(i,st.memoizedState,t,a)},useTransition:function(){var t=xd(tr)[0],a=Ot().memoizedState;return[typeof t=="boolean"?t:ls(t),a]},useSyncExternalStore:rv,useId:Mv,useHostTransitionStatus:Cd,useFormState:bv,useActionState:bv,useOptimistic:function(t,a){var i=Ot();return st!==null?cv(i,st,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:yd,useCacheRefresh:Ov};Uv.useEffectEvent=Sv;function Ad(t,a,i,s){a=t.memoizedState,i=i(s,a),i=i==null?a:v({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Rd={enqueueSetState:function(t,a,i){t=t._reactInternals;var s=Un(),f=Tr(s);f.payload=a,i!=null&&(f.callback=i),a=Dr(t,f,s),a!==null&&(_n(a,t,s),rs(a,t,s))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var s=Un(),f=Tr(s);f.tag=1,f.payload=a,i!=null&&(f.callback=i),a=Dr(t,f,s),a!==null&&(_n(a,t,s),rs(a,t,s))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=Un(),s=Tr(i);s.tag=2,a!=null&&(s.callback=a),a=Dr(t,s,i),a!==null&&(_n(a,t,i),rs(a,t,i))}};function qv(t,a,i,s,f,m,x){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,m,x):a.prototype&&a.prototype.isPureReactComponent?!Wo(i,s)||!Wo(f,m):!0}function Bv(t,a,i,s){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,s),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,s),a.state!==t&&Rd.enqueueReplaceState(a,a.state,null)}function yi(t,a){var i=a;if("ref"in a){i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}if(t=t.defaultProps){i===a&&(i=v({},i));for(var f in t)i[f]===void 0&&(i[f]=t[f])}return i}function Pv(t){El(t)}function Hv(t){console.error(t)}function $v(t){El(t)}function Vl(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(s){setTimeout(function(){throw s})}}function Qv(t,a,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function jd(t,a,i){return i=Tr(i),i.tag=3,i.payload={element:null},i.callback=function(){Vl(t,a)},i}function Vv(t){return t=Tr(t),t.tag=3,t}function Gv(t,a,i,s){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=s.value;t.payload=function(){return f(m)},t.callback=function(){Qv(a,i,s)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(t.callback=function(){Qv(a,i,s),typeof f!="function"&&(jr===null?jr=new Set([this]):jr.add(this));var T=s.stack;this.componentDidCatch(s.value,{componentStack:T!==null?T:""})})}function eS(t,a,i,s,f){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(a=i.alternate,a!==null&&Ki(a,i,f,!0),i=Ln.current,i!==null){switch(i.tag){case 31:case 13:return ta===null?ru():i.alternate===null&&At===0&&(At=3),i.flags&=-257,i.flags|=65536,i.lanes=f,s===Ml?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([s]):a.add(s),af(t,s,f)),!1;case 22:return i.flags|=65536,s===Ml?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([s]):i.add(s)),af(t,s,f)),!1}throw Error(o(435,i.tag))}return af(t,s,f),ru(),!1}if(Ye)return a=Ln.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,s!==Xc&&(t=Error(o(422),{cause:s}),Jo(Xn(t,i)))):(s!==Xc&&(a=Error(o(423),{cause:s}),Jo(Xn(a,i))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,s=Xn(s,i),f=jd(t.stateNode,s,f),ld(t,f),At!==4&&(At=2)),!1;var m=Error(o(520),{cause:s});if(m=Xn(m,i),ys===null?ys=[m]:ys.push(m),At!==4&&(At=2),a===null)return!0;s=Xn(s,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=f&-f,i.lanes|=t,t=jd(i.stateNode,s,t),ld(i,t),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(jr===null||!jr.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Vv(f),Gv(f,t,i,s),ld(i,f),!1}i=i.return}while(i!==null);return!1}var Md=Error(o(461)),Ut=!1;function an(t,a,i,s){a.child=t===null?Xp(a,null,i,s):vi(a,t.child,i,s)}function Yv(t,a,i,s,f){i=i.render;var m=a.ref;if("ref"in s){var x={};for(var T in s)T!=="ref"&&(x[T]=s[T])}else x=s;return fi(a),s=md(t,a,i,x,m,f),T=pd(),t!==null&&!Ut?(vd(t,a,f),nr(t,a,f)):(Ye&&T&&Kc(a),a.flags|=1,an(t,a,s,f),a.child)}function Kv(t,a,i,s,f){if(t===null){var m=i.type;return typeof m=="function"&&!Vc(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,Wv(t,a,m,s,f)):(t=Cl(i.type,null,s,a,a.mode,f),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Bd(t,f)){var x=m.memoizedProps;if(i=i.compare,i=i!==null?i:Wo,i(x,s)&&t.ref===a.ref)return nr(t,a,f)}return a.flags|=1,t=Wa(m,s),t.ref=a.ref,t.return=a,a.child=t}function Wv(t,a,i,s,f){if(t!==null){var m=t.memoizedProps;if(Wo(m,s)&&t.ref===a.ref)if(Ut=!1,a.pendingProps=s=m,Bd(t,f))(t.flags&131072)!==0&&(Ut=!0);else return a.lanes=t.lanes,nr(t,a,f)}return Od(t,a,i,s,f)}function Xv(t,a,i,s){var f=s.children,m=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(s=a.child=t.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~m}else s=0,a.child=null;return Zv(t,a,m,i,s)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Rl(a,m!==null?m.cachePool:null),m!==null?ev(a,m):cd(),tv(a);else return s=a.lanes=536870912,Zv(t,a,m!==null?m.baseLanes|i:i,i,s)}else m!==null?(Rl(a,m.cachePool),ev(a,m),kr(),a.memoizedState=null):(t!==null&&Rl(a,null),cd(),kr());return an(t,a,f,i),a.child}function ds(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Zv(t,a,i,s,f){var m=rd();return m=m===null?null:{parent:zt._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},t!==null&&Rl(a,null),cd(),tv(a),t!==null&&Ki(t,a,s,!0),a.childLanes=f,null}function Gl(t,a){return a=Kl({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function Jv(t,a,i){return vi(a,t.child,null,i),t=Gl(a,a.pendingProps),t.flags|=2,In(a),a.memoizedState=null,t}function tS(t,a,i){var s=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(Ye){if(s.mode==="hidden")return t=Gl(a,s),a.lanes=536870912,ds(null,t);if(fd(a),(t=gt)?(t=dy(t,ea),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:xr!==null?{id:Da,overflow:Ca}:null,retryLane:536870912,hydrationErrors:null},i=Ip(t),i.return=a,a.child=i,tn=a,gt=null)):t=null,t===null)throw Sr(a);return a.lanes=536870912,null}return Gl(a,s)}var m=t.memoizedState;if(m!==null){var x=m.dehydrated;if(fd(a),f)if(a.flags&256)a.flags&=-257,a=Jv(t,a,i);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(o(558));else if(Ut||Ki(t,a,i,!1),f=(i&t.childLanes)!==0,Ut||f){if(s=dt,s!==null&&(x=gn(s,i),x!==0&&x!==m.retryLane))throw m.retryLane=x,li(t,x),_n(s,t,x),Md;ru(),a=Jv(t,a,i)}else t=m.treeContext,gt=na(x.nextSibling),tn=a,Ye=!0,wr=null,ea=!1,t!==null&&Up(a,t),a=Gl(a,s),a.flags|=4096;return a}return t=Wa(t.child,{mode:s.mode,children:s.children}),t.ref=a.ref,a.child=t,t.return=a,t}function Yl(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function Od(t,a,i,s,f){return fi(a),i=md(t,a,i,s,void 0,f),s=pd(),t!==null&&!Ut?(vd(t,a,f),nr(t,a,f)):(Ye&&s&&Kc(a),a.flags|=1,an(t,a,i,f),a.child)}function eg(t,a,i,s,f,m){return fi(a),a.updateQueue=null,i=av(a,s,i,f),nv(t),s=pd(),t!==null&&!Ut?(vd(t,a,m),nr(t,a,m)):(Ye&&s&&Kc(a),a.flags|=1,an(t,a,i,m),a.child)}function tg(t,a,i,s,f){if(fi(a),a.stateNode===null){var m=Qi,x=i.contextType;typeof x=="object"&&x!==null&&(m=nn(x)),m=new i(s,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Rd,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=s,m.state=a.memoizedState,m.refs={},od(a),x=i.contextType,m.context=typeof x=="object"&&x!==null?nn(x):Qi,m.state=a.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(Ad(a,i,x,s),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&Rd.enqueueReplaceState(m,m.state,null),os(a,s,m,f),is(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),s=!0}else if(t===null){m=a.stateNode;var T=a.memoizedProps,R=yi(i,T);m.props=R;var H=m.context,Z=i.contextType;x=Qi,typeof Z=="object"&&Z!==null&&(x=nn(Z));var te=i.getDerivedStateFromProps;Z=typeof te=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=a.pendingProps!==T,Z||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||H!==x)&&Bv(a,m,s,x),_r=!1;var Q=a.memoizedState;m.state=Q,os(a,s,m,f),is(),H=a.memoizedState,T||Q!==H||_r?(typeof te=="function"&&(Ad(a,i,te,s),H=a.memoizedState),(R=_r||qv(a,i,R,s,Q,H,x))?(Z||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=s,a.memoizedState=H),m.props=s,m.state=H,m.context=x,s=R):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),s=!1)}else{m=a.stateNode,sd(t,a),x=a.memoizedProps,Z=yi(i,x),m.props=Z,te=a.pendingProps,Q=m.context,H=i.contextType,R=Qi,typeof H=="object"&&H!==null&&(R=nn(H)),T=i.getDerivedStateFromProps,(H=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==te||Q!==R)&&Bv(a,m,s,R),_r=!1,Q=a.memoizedState,m.state=Q,os(a,s,m,f),is();var W=a.memoizedState;x!==te||Q!==W||_r||t!==null&&t.dependencies!==null&&Nl(t.dependencies)?(typeof T=="function"&&(Ad(a,i,T,s),W=a.memoizedState),(Z=_r||qv(a,i,Z,s,Q,W,R)||t!==null&&t.dependencies!==null&&Nl(t.dependencies))?(H||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,W,R),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,W,R)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=1024),a.memoizedProps=s,a.memoizedState=W),m.props=s,m.state=W,m.context=R,s=Z):(typeof m.componentDidUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=1024),s=!1)}return m=s,Yl(t,a),s=(a.flags&128)!==0,m||s?(m=a.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&s?(a.child=vi(a,t.child,null,f),a.child=vi(a,null,i,f)):an(t,a,i,f),a.memoizedState=m.state,t=a.child):t=nr(t,a,f),t}function ng(t,a,i,s){return ci(),a.flags|=256,an(t,a,i,s),a.child}var Ld={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Id(t){return{baseLanes:t,cachePool:Qp()}}function zd(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=Fn),t}function ag(t,a,i){var s=a.pendingProps,f=!1,m=(a.flags&128)!==0,x;if((x=m)||(x=t!==null&&t.memoizedState===null?!1:(Mt.current&2)!==0),x&&(f=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,t===null){if(Ye){if(f?Cr(a):kr(),(t=gt)?(t=dy(t,ea),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:xr!==null?{id:Da,overflow:Ca}:null,retryLane:536870912,hydrationErrors:null},i=Ip(t),i.return=a,a.child=i,tn=a,gt=null)):t=null,t===null)throw Sr(a);return xf(t)?a.lanes=32:a.lanes=536870912,null}var T=s.children;return s=s.fallback,f?(kr(),f=a.mode,T=Kl({mode:"hidden",children:T},f),s=ui(s,f,i,null),T.return=a,s.return=a,T.sibling=s,a.child=T,s=a.child,s.memoizedState=Id(i),s.childLanes=zd(t,x,i),a.memoizedState=Ld,ds(null,s)):(Cr(a),Fd(a,T))}var R=t.memoizedState;if(R!==null&&(T=R.dehydrated,T!==null)){if(m)a.flags&256?(Cr(a),a.flags&=-257,a=Ud(t,a,i)):a.memoizedState!==null?(kr(),a.child=t.child,a.flags|=128,a=null):(kr(),T=s.fallback,f=a.mode,s=Kl({mode:"visible",children:s.children},f),T=ui(T,f,i,null),T.flags|=2,s.return=a,T.return=a,s.sibling=T,a.child=s,vi(a,t.child,null,i),s=a.child,s.memoizedState=Id(i),s.childLanes=zd(t,x,i),a.memoizedState=Ld,a=ds(null,s));else if(Cr(a),xf(T)){if(x=T.nextSibling&&T.nextSibling.dataset,x)var H=x.dgst;x=H,s=Error(o(419)),s.stack="",s.digest=x,Jo({value:s,source:null,stack:null}),a=Ud(t,a,i)}else if(Ut||Ki(t,a,i,!1),x=(i&t.childLanes)!==0,Ut||x){if(x=dt,x!==null&&(s=gn(x,i),s!==0&&s!==R.retryLane))throw R.retryLane=s,li(t,s),_n(x,t,s),Md;bf(T)||ru(),a=Ud(t,a,i)}else bf(T)?(a.flags|=192,a.child=t.child,a=null):(t=R.treeContext,gt=na(T.nextSibling),tn=a,Ye=!0,wr=null,ea=!1,t!==null&&Up(a,t),a=Fd(a,s.children),a.flags|=4096);return a}return f?(kr(),T=s.fallback,f=a.mode,R=t.child,H=R.sibling,s=Wa(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,H!==null?T=Wa(H,T):(T=ui(T,f,i,null),T.flags|=2),T.return=a,s.return=a,s.sibling=T,a.child=s,ds(null,s),s=a.child,T=t.child.memoizedState,T===null?T=Id(i):(f=T.cachePool,f!==null?(R=zt._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=Qp(),T={baseLanes:T.baseLanes|i,cachePool:f}),s.memoizedState=T,s.childLanes=zd(t,x,i),a.memoizedState=Ld,ds(t.child,s)):(Cr(a),i=t.child,t=i.sibling,i=Wa(i,{mode:"visible",children:s.children}),i.return=a,i.sibling=null,t!==null&&(x=a.deletions,x===null?(a.deletions=[t],a.flags|=16):x.push(t)),a.child=i,a.memoizedState=null,i)}function Fd(t,a){return a=Kl({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Kl(t,a){return t=On(22,t,null,a),t.lanes=0,t}function Ud(t,a,i){return vi(a,t.child,null,i),t=Fd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function rg(t,a,i){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a),ed(t.return,a,i)}function qd(t,a,i,s,f,m){var x=t.memoizedState;x===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:f,treeForkCount:m}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=s,x.tail=i,x.tailMode=f,x.treeForkCount=m)}function ig(t,a,i){var s=a.pendingProps,f=s.revealOrder,m=s.tail;s=s.children;var x=Mt.current,T=(x&2)!==0;if(T?(x=x&1|2,a.flags|=128):x&=1,X(Mt,x),an(t,a,s,i),s=Ye?Zo:0,!T&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rg(t,i,a);else if(t.tag===19)rg(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(f){case"forwards":for(i=a.child,f=null;i!==null;)t=i.alternate,t!==null&&zl(t)===null&&(f=i),i=i.sibling;i=f,i===null?(f=a.child,a.child=null):(f=i.sibling,i.sibling=null),qd(a,!1,f,i,m,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=a.child,a.child=null;f!==null;){if(t=f.alternate,t!==null&&zl(t)===null){a.child=f;break}t=f.sibling,f.sibling=i,i=f,f=t}qd(a,!0,i,null,m,s);break;case"together":qd(a,!1,null,null,void 0,s);break;default:a.memoizedState=null}return a.child}function nr(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),Rr|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(Ki(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(o(153));if(a.child!==null){for(t=a.child,i=Wa(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=Wa(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Bd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Nl(t)))}function nS(t,a,i){switch(a.tag){case 3:ge(a,a.stateNode.containerInfo),Er(a,zt,t.memoizedState.cache),ci();break;case 27:case 5:ot(a);break;case 4:ge(a,a.stateNode.containerInfo);break;case 10:Er(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,fd(a),null;break;case 13:var s=a.memoizedState;if(s!==null)return s.dehydrated!==null?(Cr(a),a.flags|=128,null):(i&a.child.childLanes)!==0?ag(t,a,i):(Cr(a),t=nr(t,a,i),t!==null?t.sibling:null);Cr(a);break;case 19:var f=(t.flags&128)!==0;if(s=(i&a.childLanes)!==0,s||(Ki(t,a,i,!1),s=(i&a.childLanes)!==0),f){if(s)return ig(t,a,i);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),X(Mt,Mt.current),s)break;return null;case 22:return a.lanes=0,Xv(t,a,i,a.pendingProps);case 24:Er(a,zt,t.memoizedState.cache)}return nr(t,a,i)}function og(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)Ut=!0;else{if(!Bd(t,i)&&(a.flags&128)===0)return Ut=!1,nS(t,a,i);Ut=(t.flags&131072)!==0}else Ut=!1,Ye&&(a.flags&1048576)!==0&&Fp(a,Zo,a.index);switch(a.lanes=0,a.tag){case 16:e:{var s=a.pendingProps;if(t=mi(a.elementType),a.type=t,typeof t=="function")Vc(t)?(s=yi(t,s),a.tag=1,a=tg(null,a,t,s,i)):(a.tag=0,a=Od(null,a,t,s,i));else{if(t!=null){var f=t.$$typeof;if(f===M){a.tag=11,a=Yv(null,a,t,s,i);break e}else if(f===S){a.tag=14,a=Kv(null,a,t,s,i);break e}}throw a=ae(t)||t,Error(o(306,a,""))}}return a;case 0:return Od(t,a,a.type,a.pendingProps,i);case 1:return s=a.type,f=yi(s,a.pendingProps),tg(t,a,s,f,i);case 3:e:{if(ge(a,a.stateNode.containerInfo),t===null)throw Error(o(387));s=a.pendingProps;var m=a.memoizedState;f=m.element,sd(t,a),os(a,s,null,i);var x=a.memoizedState;if(s=x.cache,Er(a,zt,s),s!==m.cache&&td(a,[zt],i,!0),is(),s=x.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=ng(t,a,s,i);break e}else if(s!==f){f=Xn(Error(o(424)),a),Jo(f),a=ng(t,a,s,i);break e}else for(t=a.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,gt=na(t.firstChild),tn=a,Ye=!0,wr=null,ea=!0,i=Xp(a,null,s,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ci(),s===f){a=nr(t,a,i);break e}an(t,a,s,i)}a=a.child}return a;case 26:return Yl(t,a),t===null?(i=gy(a.type,null,a.pendingProps,null))?a.memoizedState=i:Ye||(i=a.type,t=a.pendingProps,s=du(ee.current).createElement(i),s[en]=a,s[yn]=t,rn(s,i,t),Yt(s),a.stateNode=s):a.memoizedState=gy(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return ot(a),t===null&&Ye&&(s=a.stateNode=my(a.type,a.pendingProps,ee.current),tn=a,ea=!0,f=gt,Ir(a.type)?(wf=f,gt=na(s.firstChild)):gt=f),an(t,a,a.pendingProps.children,i),Yl(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Ye&&((f=s=gt)&&(s=jS(s,a.type,a.pendingProps,ea),s!==null?(a.stateNode=s,tn=a,gt=na(s.firstChild),ea=!1,f=!0):f=!1),f||Sr(a)),ot(a),f=a.type,m=a.pendingProps,x=t!==null?t.memoizedProps:null,s=m.children,vf(f,m)?s=null:x!==null&&vf(f,x)&&(a.flags|=32),a.memoizedState!==null&&(f=md(t,a,G2,null,null,i),Ds._currentValue=f),Yl(t,a),an(t,a,s,i),a.child;case 6:return t===null&&Ye&&((t=i=gt)&&(i=MS(i,a.pendingProps,ea),i!==null?(a.stateNode=i,tn=a,gt=null,t=!0):t=!1),t||Sr(a)),null;case 13:return ag(t,a,i);case 4:return ge(a,a.stateNode.containerInfo),s=a.pendingProps,t===null?a.child=vi(a,null,s,i):an(t,a,s,i),a.child;case 11:return Yv(t,a,a.type,a.pendingProps,i);case 7:return an(t,a,a.pendingProps,i),a.child;case 8:return an(t,a,a.pendingProps.children,i),a.child;case 12:return an(t,a,a.pendingProps.children,i),a.child;case 10:return s=a.pendingProps,Er(a,a.type,s.value),an(t,a,s.children,i),a.child;case 9:return f=a.type._context,s=a.pendingProps.children,fi(a),f=nn(f),s=s(f),a.flags|=1,an(t,a,s,i),a.child;case 14:return Kv(t,a,a.type,a.pendingProps,i);case 15:return Wv(t,a,a.type,a.pendingProps,i);case 19:return ig(t,a,i);case 31:return tS(t,a,i);case 22:return Xv(t,a,i,a.pendingProps);case 24:return fi(a),s=nn(zt),t===null?(f=rd(),f===null&&(f=dt,m=nd(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),a.memoizedState={parent:s,cache:f},od(a),Er(a,zt,f)):((t.lanes&i)!==0&&(sd(t,a),os(a,null,null,i),is()),f=t.memoizedState,m=a.memoizedState,f.parent!==s?(f={parent:s,cache:s},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Er(a,zt,s)):(s=m.cache,Er(a,zt,s),s!==f.cache&&td(a,[zt],i,!0))),an(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function ar(t){t.flags|=4}function Pd(t,a,i,s,f){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(f&335544128)===f)if(t.stateNode.complete)t.flags|=8192;else if(Mg())t.flags|=8192;else throw pi=Ml,id}else t.flags&=-16777217}function sg(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Sy(a))if(Mg())t.flags|=8192;else throw pi=Ml,id}function Wl(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Gt():536870912,t.lanes|=a,so|=a)}function fs(t,a){if(!Ye)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function yt(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,s=0;if(a)for(var f=t.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=s,t.childLanes=i,a}function aS(t,a,i){var s=a.pendingProps;switch(Wc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(a),null;case 1:return yt(a),null;case 3:return i=a.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Ja(zt),Ne(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Yi(a)?ar(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Zc())),yt(a),null;case 26:var f=a.type,m=a.memoizedState;return t===null?(ar(a),m!==null?(yt(a),sg(a,m)):(yt(a),Pd(a,f,null,s,i))):m?m!==t.memoizedState?(ar(a),yt(a),sg(a,m)):(yt(a),a.flags&=-16777217):(t=t.memoizedProps,t!==s&&ar(a),yt(a),Pd(a,f,t,s,i)),null;case 27:if(cn(a),i=ee.current,f=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==s&&ar(a);else{if(!s){if(a.stateNode===null)throw Error(o(166));return yt(a),null}t=ue.current,Yi(a)?qp(a):(t=my(f,s,i),a.stateNode=t,ar(a))}return yt(a),null;case 5:if(cn(a),f=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==s&&ar(a);else{if(!s){if(a.stateNode===null)throw Error(o(166));return yt(a),null}if(m=ue.current,Yi(a))qp(a);else{var x=du(ee.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof s.is=="string"?x.createElement("select",{is:s.is}):x.createElement("select"),s.multiple?m.multiple=!0:s.size&&(m.size=s.size);break;default:m=typeof s.is=="string"?x.createElement(f,{is:s.is}):x.createElement(f)}}m[en]=a,m[yn]=s;e:for(x=a.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===a)break e;for(;x.sibling===null;){if(x.return===null||x.return===a)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}a.stateNode=m;e:switch(rn(m,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ar(a)}}return yt(a),Pd(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==s&&ar(a);else{if(typeof s!="string"&&a.stateNode===null)throw Error(o(166));if(t=ee.current,Yi(a)){if(t=a.stateNode,i=a.memoizedProps,s=null,f=tn,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}t[en]=a,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||ay(t.nodeValue,i)),t||Sr(a,!0)}else t=du(t).createTextNode(s),t[en]=a,a.stateNode=t}return yt(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(s=Yi(a),i!==null){if(t===null){if(!s)throw Error(o(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[en]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;yt(a),t=!1}else i=Zc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(In(a),a):(In(a),null);if((a.flags&128)!==0)throw Error(o(558))}return yt(a),null;case 13:if(s=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=Yi(a),s!==null&&s.dehydrated!==null){if(t===null){if(!f)throw Error(o(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[en]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;yt(a),f=!1}else f=Zc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(In(a),a):(In(a),null)}return In(a),(a.flags&128)!==0?(a.lanes=i,a):(i=s!==null,t=t!==null&&t.memoizedState!==null,i&&(s=a.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==f&&(s.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),Wl(a,a.updateQueue),yt(a),null);case 4:return Ne(),t===null&&df(a.stateNode.containerInfo),yt(a),null;case 10:return Ja(a.type),yt(a),null;case 19:if(G(Mt),s=a.memoizedState,s===null)return yt(a),null;if(f=(a.flags&128)!==0,m=s.rendering,m===null)if(f)fs(s,!1);else{if(At!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=zl(t),m!==null){for(a.flags|=128,fs(s,!1),t=m.updateQueue,a.updateQueue=t,Wl(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)Lp(i,t),i=i.sibling;return X(Mt,Mt.current&1|2),Ye&&Xa(a,s.treeForkCount),a.child}t=t.sibling}s.tail!==null&&Ht()>tu&&(a.flags|=128,f=!0,fs(s,!1),a.lanes=4194304)}else{if(!f)if(t=zl(m),t!==null){if(a.flags|=128,f=!0,t=t.updateQueue,a.updateQueue=t,Wl(a,t),fs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!m.alternate&&!Ye)return yt(a),null}else 2*Ht()-s.renderingStartTime>tu&&i!==536870912&&(a.flags|=128,f=!0,fs(s,!1),a.lanes=4194304);s.isBackwards?(m.sibling=a.child,a.child=m):(t=s.last,t!==null?t.sibling=m:a.child=m,s.last=m)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ht(),t.sibling=null,i=Mt.current,X(Mt,f?i&1|2:i&1),Ye&&Xa(a,s.treeForkCount),t):(yt(a),null);case 22:case 23:return In(a),dd(),s=a.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(a.flags|=8192):s&&(a.flags|=8192),s?(i&536870912)!==0&&(a.flags&128)===0&&(yt(a),a.subtreeFlags&6&&(a.flags|=8192)):yt(a),i=a.updateQueue,i!==null&&Wl(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048),t!==null&&G(hi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Ja(zt),yt(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function rS(t,a){switch(Wc(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Ja(zt),Ne(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return cn(a),null;case 31:if(a.memoizedState!==null){if(In(a),a.alternate===null)throw Error(o(340));ci()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(In(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(o(340));ci()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return G(Mt),null;case 4:return Ne(),null;case 10:return Ja(a.type),null;case 22:case 23:return In(a),dd(),t!==null&&G(hi),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Ja(zt),null;case 25:return null;default:return null}}function lg(t,a){switch(Wc(a),a.tag){case 3:Ja(zt),Ne();break;case 26:case 27:case 5:cn(a);break;case 4:Ne();break;case 31:a.memoizedState!==null&&In(a);break;case 13:In(a);break;case 19:G(Mt);break;case 10:Ja(a.type);break;case 22:case 23:In(a),dd(),t!==null&&G(hi);break;case 24:Ja(zt)}}function hs(t,a){try{var i=a.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&t)===t){s=void 0;var m=i.create,x=i.inst;s=m(),x.destroy=s}i=i.next}while(i!==f)}}catch(T){nt(a,a.return,T)}}function Nr(t,a,i){try{var s=a.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&t)===t){var x=s.inst,T=x.destroy;if(T!==void 0){x.destroy=void 0,f=a;var R=i,H=T;try{H()}catch(Z){nt(f,R,Z)}}}s=s.next}while(s!==m)}}catch(Z){nt(a,a.return,Z)}}function ug(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{Jp(a,i)}catch(s){nt(t,t.return,s)}}}function cg(t,a,i){i.props=yi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){nt(t,a,s)}}function ms(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof i=="function"?t.refCleanup=i(s):i.current=s}}catch(f){nt(t,a,f)}}function ka(t,a){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(f){nt(t,a,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){nt(t,a,f)}else i.current=null}function dg(t){var a=t.type,i=t.memoizedProps,s=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(f){nt(t,t.return,f)}}function Hd(t,a,i){try{var s=t.stateNode;DS(s,t.type,i,a),s[yn]=a}catch(f){nt(t,t.return,f)}}function fg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ir(t.type)||t.tag===4}function $d(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||fg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ir(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Qd(t,a,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Ya));else if(s!==4&&(s===27&&Ir(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(Qd(t,a,i),t=t.sibling;t!==null;)Qd(t,a,i),t=t.sibling}function Xl(t,a,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(s!==4&&(s===27&&Ir(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Xl(t,a,i),t=t.sibling;t!==null;)Xl(t,a,i),t=t.sibling}function hg(t){var a=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);rn(a,s,i),a[en]=t,a[yn]=i}catch(m){nt(t,t.return,m)}}var rr=!1,qt=!1,Vd=!1,mg=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function iS(t,a){if(t=t.containerInfo,mf=yu,t=Dp(t),Uc(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var f=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var x=0,T=-1,R=-1,H=0,Z=0,te=t,Q=null;t:for(;;){for(var W;te!==i||f!==0&&te.nodeType!==3||(T=x+f),te!==m||s!==0&&te.nodeType!==3||(R=x+s),te.nodeType===3&&(x+=te.nodeValue.length),(W=te.firstChild)!==null;)Q=te,te=W;for(;;){if(te===t)break t;if(Q===i&&++H===f&&(T=x),Q===m&&++Z===s&&(R=x),(W=te.nextSibling)!==null)break;te=Q,Q=te.parentNode}te=W}i=T===-1||R===-1?null:{start:T,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(pf={focusedElem:t,selectionRange:i},yu=!1,Kt=a;Kt!==null;)if(a=Kt,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,Kt=t;else for(;Kt!==null;){switch(a=Kt,m=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)f=t[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=a,f=m.memoizedProps,m=m.memoizedState,s=i.stateNode;try{var ye=yi(i.type,f);t=s.getSnapshotBeforeUpdate(ye,m),s.__reactInternalSnapshotBeforeUpdate=t}catch(Ce){nt(i,i.return,Ce)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)yf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":yf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=a.sibling,t!==null){t.return=a.return,Kt=t;break}Kt=a.return}}function pg(t,a,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:or(t,i),s&4&&hs(5,i);break;case 1:if(or(t,i),s&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(x){nt(i,i.return,x)}else{var f=yi(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(f,a,t.__reactInternalSnapshotBeforeUpdate)}catch(x){nt(i,i.return,x)}}s&64&&ug(i),s&512&&ms(i,i.return);break;case 3:if(or(t,i),s&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Jp(t,a)}catch(x){nt(i,i.return,x)}}break;case 27:a===null&&s&4&&hg(i);case 26:case 5:or(t,i),a===null&&s&4&&dg(i),s&512&&ms(i,i.return);break;case 12:or(t,i);break;case 31:or(t,i),s&4&&yg(t,i);break;case 13:or(t,i),s&4&&bg(t,i),s&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=mS.bind(null,i),OS(t,i))));break;case 22:if(s=i.memoizedState!==null||rr,!s){a=a!==null&&a.memoizedState!==null||qt,f=rr;var m=qt;rr=s,(qt=a)&&!m?sr(t,i,(i.subtreeFlags&8772)!==0):or(t,i),rr=f,qt=m}break;case 30:break;default:or(t,i)}}function vg(t){var a=t.alternate;a!==null&&(t.alternate=null,vg(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Sc(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var St=null,xn=!1;function ir(t,a,i){for(i=i.child;i!==null;)gg(t,a,i),i=i.sibling}function gg(t,a,i){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Va,i)}catch{}switch(i.tag){case 26:qt||ka(i,a),ir(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:qt||ka(i,a);var s=St,f=xn;Ir(i.type)&&(St=i.stateNode,xn=!1),ir(t,a,i),Es(i.stateNode),St=s,xn=f;break;case 5:qt||ka(i,a);case 6:if(s=St,f=xn,St=null,ir(t,a,i),St=s,xn=f,St!==null)if(xn)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(i.stateNode)}catch(m){nt(i,a,m)}else try{St.removeChild(i.stateNode)}catch(m){nt(i,a,m)}break;case 18:St!==null&&(xn?(t=St,uy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),vo(t)):uy(St,i.stateNode));break;case 4:s=St,f=xn,St=i.stateNode.containerInfo,xn=!0,ir(t,a,i),St=s,xn=f;break;case 0:case 11:case 14:case 15:Nr(2,i,a),qt||Nr(4,i,a),ir(t,a,i);break;case 1:qt||(ka(i,a),s=i.stateNode,typeof s.componentWillUnmount=="function"&&cg(i,a,s)),ir(t,a,i);break;case 21:ir(t,a,i);break;case 22:qt=(s=qt)||i.memoizedState!==null,ir(t,a,i),qt=s;break;default:ir(t,a,i)}}function yg(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vo(t)}catch(i){nt(a,a.return,i)}}}function bg(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vo(t)}catch(i){nt(a,a.return,i)}}function oS(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new mg),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new mg),a;default:throw Error(o(435,t.tag))}}function Zl(t,a){var i=oS(t);a.forEach(function(s){if(!i.has(s)){i.add(s);var f=pS.bind(null,t,s);s.then(f,f)}})}function wn(t,a){var i=a.deletions;if(i!==null)for(var s=0;s<i.length;s++){var f=i[s],m=t,x=a,T=x;e:for(;T!==null;){switch(T.tag){case 27:if(Ir(T.type)){St=T.stateNode,xn=!1;break e}break;case 5:St=T.stateNode,xn=!1;break e;case 3:case 4:St=T.stateNode.containerInfo,xn=!0;break e}T=T.return}if(St===null)throw Error(o(160));gg(m,x,f),St=null,xn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)xg(a,t),a=a.sibling}var fa=null;function xg(t,a){var i=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:wn(a,t),Sn(t),s&4&&(Nr(3,t,t.return),hs(3,t),Nr(5,t,t.return));break;case 1:wn(a,t),Sn(t),s&512&&(qt||i===null||ka(i,i.return)),s&64&&rr&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var f=fa;if(wn(a,t),Sn(t),s&512&&(qt||i===null||ka(i,i.return)),s&4){var m=i!==null?i.memoizedState:null;if(s=t.memoizedState,i===null)if(s===null)if(t.stateNode===null){e:{s=t.type,i=t.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Bo]||m[en]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(s),f.head.insertBefore(m,f.querySelector("head > title"))),rn(m,s,i),m[en]=t,Yt(m),s=m;break e;case"link":var x=xy("link","href",f).get(s+(i.href||""));if(x){for(var T=0;T<x.length;T++)if(m=x[T],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(T,1);break t}}m=f.createElement(s),rn(m,s,i),f.head.appendChild(m);break;case"meta":if(x=xy("meta","content",f).get(s+(i.content||""))){for(T=0;T<x.length;T++)if(m=x[T],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(T,1);break t}}m=f.createElement(s),rn(m,s,i),f.head.appendChild(m);break;default:throw Error(o(468,s))}m[en]=t,Yt(m),s=m}t.stateNode=s}else wy(f,t.type,t.stateNode);else t.stateNode=by(f,s,t.memoizedProps);else m!==s?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,s===null?wy(f,t.type,t.stateNode):by(f,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Hd(t,t.memoizedProps,i.memoizedProps)}break;case 27:wn(a,t),Sn(t),s&512&&(qt||i===null||ka(i,i.return)),i!==null&&s&4&&Hd(t,t.memoizedProps,i.memoizedProps);break;case 5:if(wn(a,t),Sn(t),s&512&&(qt||i===null||ka(i,i.return)),t.flags&32){f=t.stateNode;try{Fi(f,"")}catch(ye){nt(t,t.return,ye)}}s&4&&t.stateNode!=null&&(f=t.memoizedProps,Hd(t,f,i!==null?i.memoizedProps:f)),s&1024&&(Vd=!0);break;case 6:if(wn(a,t),Sn(t),s&4){if(t.stateNode===null)throw Error(o(162));s=t.memoizedProps,i=t.stateNode;try{i.nodeValue=s}catch(ye){nt(t,t.return,ye)}}break;case 3:if(mu=null,f=fa,fa=fu(a.containerInfo),wn(a,t),fa=f,Sn(t),s&4&&i!==null&&i.memoizedState.isDehydrated)try{vo(a.containerInfo)}catch(ye){nt(t,t.return,ye)}Vd&&(Vd=!1,wg(t));break;case 4:s=fa,fa=fu(t.stateNode.containerInfo),wn(a,t),Sn(t),fa=s;break;case 12:wn(a,t),Sn(t);break;case 31:wn(a,t),Sn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Zl(t,s)));break;case 13:wn(a,t),Sn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(eu=Ht()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Zl(t,s)));break;case 22:f=t.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,H=rr,Z=qt;if(rr=H||f,qt=Z||R,wn(a,t),qt=Z,rr=H,Sn(t),s&8192)e:for(a=t.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(i===null||R||rr||qt||bi(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){R=i=a;try{if(m=R.stateNode,f)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{T=R.stateNode;var te=R.memoizedProps.style,Q=te!=null&&te.hasOwnProperty("display")?te.display:null;T.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ye){nt(R,R.return,ye)}}}else if(a.tag===6){if(i===null){R=a;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(ye){nt(R,R.return,ye)}}}else if(a.tag===18){if(i===null){R=a;try{var W=R.stateNode;f?cy(W,!0):cy(R.stateNode,!1)}catch(ye){nt(R,R.return,ye)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}s&4&&(s=t.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Zl(t,i))));break;case 19:wn(a,t),Sn(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Zl(t,s)));break;case 30:break;case 21:break;default:wn(a,t),Sn(t)}}function Sn(t){var a=t.flags;if(a&2){try{for(var i,s=t.return;s!==null;){if(fg(s)){i=s;break}s=s.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var f=i.stateNode,m=$d(t);Xl(t,m,f);break;case 5:var x=i.stateNode;i.flags&32&&(Fi(x,""),i.flags&=-33);var T=$d(t);Xl(t,T,x);break;case 3:case 4:var R=i.stateNode.containerInfo,H=$d(t);Qd(t,H,R);break;default:throw Error(o(161))}}catch(Z){nt(t,t.return,Z)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function wg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;wg(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function or(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)pg(t,a.alternate,a),a=a.sibling}function bi(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Nr(4,a,a.return),bi(a);break;case 1:ka(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&cg(a,a.return,i),bi(a);break;case 27:Es(a.stateNode);case 26:case 5:ka(a,a.return),bi(a);break;case 22:a.memoizedState===null&&bi(a);break;case 30:bi(a);break;default:bi(a)}t=t.sibling}}function sr(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var s=a.alternate,f=t,m=a,x=m.flags;switch(m.tag){case 0:case 11:case 15:sr(f,m,i),hs(4,m);break;case 1:if(sr(f,m,i),s=m,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(H){nt(s,s.return,H)}if(s=m,f=s.updateQueue,f!==null){var T=s.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)Zp(R[f],T)}catch(H){nt(s,s.return,H)}}i&&x&64&&ug(m),ms(m,m.return);break;case 27:hg(m);case 26:case 5:sr(f,m,i),i&&s===null&&x&4&&dg(m),ms(m,m.return);break;case 12:sr(f,m,i);break;case 31:sr(f,m,i),i&&x&4&&yg(f,m);break;case 13:sr(f,m,i),i&&x&4&&bg(f,m);break;case 22:m.memoizedState===null&&sr(f,m,i),ms(m,m.return);break;case 30:break;default:sr(f,m,i)}a=a.sibling}}function Gd(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&es(i))}function Yd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&es(t))}function ha(t,a,i,s){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Sg(t,a,i,s),a=a.sibling}function Sg(t,a,i,s){var f=a.flags;switch(a.tag){case 0:case 11:case 15:ha(t,a,i,s),f&2048&&hs(9,a);break;case 1:ha(t,a,i,s);break;case 3:ha(t,a,i,s),f&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&es(t)));break;case 12:if(f&2048){ha(t,a,i,s),t=a.stateNode;try{var m=a.memoizedProps,x=m.id,T=m.onPostCommit;typeof T=="function"&&T(x,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){nt(a,a.return,R)}}else ha(t,a,i,s);break;case 31:ha(t,a,i,s);break;case 13:ha(t,a,i,s);break;case 23:break;case 22:m=a.stateNode,x=a.alternate,a.memoizedState!==null?m._visibility&2?ha(t,a,i,s):ps(t,a):m._visibility&2?ha(t,a,i,s):(m._visibility|=2,ro(t,a,i,s,(a.subtreeFlags&10256)!==0||!1)),f&2048&&Gd(x,a);break;case 24:ha(t,a,i,s),f&2048&&Yd(a.alternate,a);break;default:ha(t,a,i,s)}}function ro(t,a,i,s,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=t,x=a,T=i,R=s,H=x.flags;switch(x.tag){case 0:case 11:case 15:ro(m,x,T,R,f),hs(8,x);break;case 23:break;case 22:var Z=x.stateNode;x.memoizedState!==null?Z._visibility&2?ro(m,x,T,R,f):ps(m,x):(Z._visibility|=2,ro(m,x,T,R,f)),f&&H&2048&&Gd(x.alternate,x);break;case 24:ro(m,x,T,R,f),f&&H&2048&&Yd(x.alternate,x);break;default:ro(m,x,T,R,f)}a=a.sibling}}function ps(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,s=a,f=s.flags;switch(s.tag){case 22:ps(i,s),f&2048&&Gd(s.alternate,s);break;case 24:ps(i,s),f&2048&&Yd(s.alternate,s);break;default:ps(i,s)}a=a.sibling}}var vs=8192;function io(t,a,i){if(t.subtreeFlags&vs)for(t=t.child;t!==null;)Eg(t,a,i),t=t.sibling}function Eg(t,a,i){switch(t.tag){case 26:io(t,a,i),t.flags&vs&&t.memoizedState!==null&&VS(i,fa,t.memoizedState,t.memoizedProps);break;case 5:io(t,a,i);break;case 3:case 4:var s=fa;fa=fu(t.stateNode.containerInfo),io(t,a,i),fa=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=vs,vs=16777216,io(t,a,i),vs=s):io(t,a,i));break;default:io(t,a,i)}}function _g(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function gs(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var s=a[i];Kt=s,Dg(s,t)}_g(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tg(t),t=t.sibling}function Tg(t){switch(t.tag){case 0:case 11:case 15:gs(t),t.flags&2048&&Nr(9,t,t.return);break;case 3:gs(t);break;case 12:gs(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Jl(t)):gs(t);break;default:gs(t)}}function Jl(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var s=a[i];Kt=s,Dg(s,t)}_g(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Nr(8,a,a.return),Jl(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,Jl(a));break;default:Jl(a)}t=t.sibling}}function Dg(t,a){for(;Kt!==null;){var i=Kt;switch(i.tag){case 0:case 11:case 15:Nr(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:es(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,Kt=s;else e:for(i=t;Kt!==null;){s=Kt;var f=s.sibling,m=s.return;if(vg(s),s===i){Kt=null;break e}if(f!==null){f.return=m,Kt=f;break e}Kt=m}}}var sS={getCacheForType:function(t){var a=nn(zt),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i},cacheSignal:function(){return nn(zt).controller.signal}},lS=typeof WeakMap=="function"?WeakMap:Map,Ze=0,dt=null,$e=null,Ve=0,tt=0,zn=null,Ar=!1,oo=!1,Kd=!1,lr=0,At=0,Rr=0,xi=0,Wd=0,Fn=0,so=0,ys=null,En=null,Xd=!1,eu=0,Cg=0,tu=1/0,nu=null,jr=null,$t=0,Mr=null,lo=null,ur=0,Zd=0,Jd=null,kg=null,bs=0,ef=null;function Un(){return(Ze&2)!==0&&Ve!==0?Ve&-Ve:j.T!==null?sf():xc()}function Ng(){if(Fn===0)if((Ve&536870912)===0||Ye){var t=Te;Te<<=1,(Te&3932160)===0&&(Te=262144),Fn=t}else Fn=536870912;return t=Ln.current,t!==null&&(t.flags|=32),Fn}function _n(t,a,i){(t===dt&&(tt===2||tt===9)||t.cancelPendingCommit!==null)&&(uo(t,0),Or(t,Ve,Fn,!1)),ct(t,i),((Ze&2)===0||t!==dt)&&(t===dt&&((Ze&2)===0&&(xi|=i),At===4&&Or(t,Ve,Fn,!1)),Na(t))}function Ag(t,a,i){if((Ze&6)!==0)throw Error(o(327));var s=!i&&(a&127)===0&&(a&t.expiredLanes)===0||ht(t,a),f=s?dS(t,a):nf(t,a,!0),m=s;do{if(f===0){oo&&!s&&Or(t,a,0,!1);break}else{if(i=t.current.alternate,m&&!uS(i)){f=nf(t,a,!1),m=!1;continue}if(f===2){if(m=a,t.errorRecoveryDisabledLanes&m)var x=0;else x=t.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var T=t;f=ys;var R=T.current.memoizedState.isDehydrated;if(R&&(uo(T,x).flags|=256),x=nf(T,x,!1),x!==2){if(Kd&&!R){T.errorRecoveryDisabledLanes|=m,xi|=m,f=4;break e}m=En,En=f,m!==null&&(En===null?En=m:En.push.apply(En,m))}f=x}if(m=!1,f!==2)continue}}if(f===1){uo(t,0),Or(t,a,0,!0);break}e:{switch(s=t,m=f,m){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:Or(s,a,Fn,!Ar);break e;case 2:En=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(f=eu+300-Ht(),10<f)){if(Or(s,a,Fn,!Ar),he(s,0,!0)!==0)break e;ur=a,s.timeoutHandle=sy(Rg.bind(null,s,i,En,nu,Xd,a,Fn,xi,so,Ar,m,"Throttled",-0,0),f);break e}Rg(s,i,En,nu,Xd,a,Fn,xi,so,Ar,m,null,-0,0)}}break}while(!0);Na(t)}function Rg(t,a,i,s,f,m,x,T,R,H,Z,te,Q,W){if(t.timeoutHandle=-1,te=a.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ya},Eg(a,m,te);var ye=(m&62914560)===m?eu-Ht():(m&4194048)===m?Cg-Ht():0;if(ye=GS(te,ye),ye!==null){ur=m,t.cancelPendingCommit=ye(Ug.bind(null,t,a,m,i,s,f,x,T,R,Z,te,null,Q,W)),Or(t,m,x,!H);return}}Ug(t,a,m,i,s,f,x,T,R)}function uS(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var f=i[s],m=f.getSnapshot;f=f.value;try{if(!Mn(m(),f))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Or(t,a,i,s){a&=~Wd,a&=~xi,t.suspendedLanes|=a,t.pingedLanes&=~a,s&&(t.warmLanes|=a),s=t.expirationTimes;for(var f=a;0<f;){var m=31-Vt(f),x=1<<m;s[m]=-1,f&=~x}i!==0&&ai(t,i,a)}function au(){return(Ze&6)===0?(xs(0),!1):!0}function tf(){if($e!==null){if(tt===0)var t=$e.return;else t=$e,Za=di=null,gd(t),Ji=null,ns=0,t=$e;for(;t!==null;)lg(t.alternate,t),t=t.return;$e=null}}function uo(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,NS(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),ur=0,tf(),dt=t,$e=i=Wa(t.current,null),Ve=a,tt=0,zn=null,Ar=!1,oo=ht(t,a),Kd=!1,so=Fn=Wd=xi=Rr=At=0,En=ys=null,Xd=!1,(a&8)!==0&&(a|=a&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=a;0<s;){var f=31-Vt(s),m=1<<f;a|=t[f],s&=~m}return lr=a,_l(),i}function jg(t,a){je=null,j.H=cs,a===Zi||a===jl?(a=Yp(),tt=3):a===id?(a=Yp(),tt=4):tt=a===Md?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,zn=a,$e===null&&(At=1,Vl(t,Xn(a,t.current)))}function Mg(){var t=Ln.current;return t===null?!0:(Ve&4194048)===Ve?ta===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?t===ta:!1}function Og(){var t=j.H;return j.H=cs,t===null?cs:t}function Lg(){var t=j.A;return j.A=sS,t}function ru(){At=4,Ar||(Ve&4194048)!==Ve&&Ln.current!==null||(oo=!0),(Rr&134217727)===0&&(xi&134217727)===0||dt===null||Or(dt,Ve,Fn,!1)}function nf(t,a,i){var s=Ze;Ze|=2;var f=Og(),m=Lg();(dt!==t||Ve!==a)&&(nu=null,uo(t,a)),a=!1;var x=At;e:do try{if(tt!==0&&$e!==null){var T=$e,R=zn;switch(tt){case 8:tf(),x=6;break e;case 3:case 2:case 9:case 6:Ln.current===null&&(a=!0);var H=tt;if(tt=0,zn=null,co(t,T,R,H),i&&oo){x=0;break e}break;default:H=tt,tt=0,zn=null,co(t,T,R,H)}}cS(),x=At;break}catch(Z){jg(t,Z)}while(!0);return a&&t.shellSuspendCounter++,Za=di=null,Ze=s,j.H=f,j.A=m,$e===null&&(dt=null,Ve=0,_l()),x}function cS(){for(;$e!==null;)Ig($e)}function dS(t,a){var i=Ze;Ze|=2;var s=Og(),f=Lg();dt!==t||Ve!==a?(nu=null,tu=Ht()+500,uo(t,a)):oo=ht(t,a);e:do try{if(tt!==0&&$e!==null){a=$e;var m=zn;t:switch(tt){case 1:tt=0,zn=null,co(t,a,m,1);break;case 2:case 9:if(Vp(m)){tt=0,zn=null,zg(a);break}a=function(){tt!==2&&tt!==9||dt!==t||(tt=7),Na(t)},m.then(a,a);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:Vp(m)?(tt=0,zn=null,zg(a)):(tt=0,zn=null,co(t,a,m,7));break;case 5:var x=null;switch($e.tag){case 26:x=$e.memoizedState;case 5:case 27:var T=$e;if(x?Sy(x):T.stateNode.complete){tt=0,zn=null;var R=T.sibling;if(R!==null)$e=R;else{var H=T.return;H!==null?($e=H,iu(H)):$e=null}break t}}tt=0,zn=null,co(t,a,m,5);break;case 6:tt=0,zn=null,co(t,a,m,6);break;case 8:tf(),At=6;break e;default:throw Error(o(462))}}fS();break}catch(Z){jg(t,Z)}while(!0);return Za=di=null,j.H=s,j.A=f,Ze=i,$e!==null?0:(dt=null,Ve=0,_l(),At)}function fS(){for(;$e!==null&&!Pt();)Ig($e)}function Ig(t){var a=og(t.alternate,t,lr);t.memoizedProps=t.pendingProps,a===null?iu(t):$e=a}function zg(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=eg(i,a,a.pendingProps,a.type,void 0,Ve);break;case 11:a=eg(i,a,a.pendingProps,a.type.render,a.ref,Ve);break;case 5:gd(a);default:lg(i,a),a=$e=Lp(a,lr),a=og(i,a,lr)}t.memoizedProps=t.pendingProps,a===null?iu(t):$e=a}function co(t,a,i,s){Za=di=null,gd(a),Ji=null,ns=0;var f=a.return;try{if(eS(t,f,a,i,Ve)){At=1,Vl(t,Xn(i,t.current)),$e=null;return}}catch(m){if(f!==null)throw $e=f,m;At=1,Vl(t,Xn(i,t.current)),$e=null;return}a.flags&32768?(Ye||s===1?t=!0:oo||(Ve&536870912)!==0?t=!1:(Ar=t=!0,(s===2||s===9||s===3||s===6)&&(s=Ln.current,s!==null&&s.tag===13&&(s.flags|=16384))),Fg(a,t)):iu(a)}function iu(t){var a=t;do{if((a.flags&32768)!==0){Fg(a,Ar);return}t=a.return;var i=aS(a.alternate,a,lr);if(i!==null){$e=i;return}if(a=a.sibling,a!==null){$e=a;return}$e=a=t}while(a!==null);At===0&&(At=5)}function Fg(t,a){do{var i=rS(t.alternate,t);if(i!==null){i.flags&=32767,$e=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){$e=t;return}$e=t=i}while(t!==null);At=6,$e=null}function Ug(t,a,i,s,f,m,x,T,R){t.cancelPendingCommit=null;do ou();while($t!==0);if((Ze&6)!==0)throw Error(o(327));if(a!==null){if(a===t.current)throw Error(o(177));if(m=a.lanes|a.childLanes,m|=$c,pn(t,i,m,x,T,R),t===dt&&($e=dt=null,Ve=0),lo=a,Mr=t,ur=i,Zd=m,Jd=f,kg=s,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,vS(Qa,function(){return $g(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,f=Y.p,Y.p=2,x=Ze,Ze|=4;try{iS(t,a,i)}finally{Ze=x,Y.p=f,j.T=s}}$t=1,qg(),Bg(),Pg()}}function qg(){if($t===1){$t=0;var t=Mr,a=lo,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=j.T,j.T=null;var s=Y.p;Y.p=2;var f=Ze;Ze|=4;try{xg(a,t);var m=pf,x=Dp(t.containerInfo),T=m.focusedElem,R=m.selectionRange;if(x!==T&&T&&T.ownerDocument&&Tp(T.ownerDocument.documentElement,T)){if(R!==null&&Uc(T)){var H=R.start,Z=R.end;if(Z===void 0&&(Z=H),"selectionStart"in T)T.selectionStart=H,T.selectionEnd=Math.min(Z,T.value.length);else{var te=T.ownerDocument||document,Q=te&&te.defaultView||window;if(Q.getSelection){var W=Q.getSelection(),ye=T.textContent.length,Ce=Math.min(R.start,ye),ut=R.end===void 0?Ce:Math.min(R.end,ye);!W.extend&&Ce>ut&&(x=ut,ut=Ce,Ce=x);var q=_p(T,Ce),z=_p(T,ut);if(q&&z&&(W.rangeCount!==1||W.anchorNode!==q.node||W.anchorOffset!==q.offset||W.focusNode!==z.node||W.focusOffset!==z.offset)){var P=te.createRange();P.setStart(q.node,q.offset),W.removeAllRanges(),Ce>ut?(W.addRange(P),W.extend(z.node,z.offset)):(P.setEnd(z.node,z.offset),W.addRange(P))}}}}for(te=[],W=T;W=W.parentNode;)W.nodeType===1&&te.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<te.length;T++){var J=te[T];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}yu=!!mf,pf=mf=null}finally{Ze=f,Y.p=s,j.T=i}}t.current=a,$t=2}}function Bg(){if($t===2){$t=0;var t=Mr,a=lo,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=j.T,j.T=null;var s=Y.p;Y.p=2;var f=Ze;Ze|=4;try{pg(t,a.alternate,a)}finally{Ze=f,Y.p=s,j.T=i}}$t=3}}function Pg(){if($t===4||$t===3){$t=0,la();var t=Mr,a=lo,i=ur,s=kg;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?$t=5:($t=0,lo=Mr=null,Hg(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(jr=null),ca(i),a=a.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Va,a,void 0,(a.current.flags&128)===128)}catch{}if(s!==null){a=j.T,f=Y.p,Y.p=2,j.T=null;try{for(var m=t.onRecoverableError,x=0;x<s.length;x++){var T=s[x];m(T.value,{componentStack:T.stack})}}finally{j.T=a,Y.p=f}}(ur&3)!==0&&ou(),Na(t),f=t.pendingLanes,(i&261930)!==0&&(f&42)!==0?t===ef?bs++:(bs=0,ef=t):bs=0,xs(0)}}function Hg(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,es(a)))}function ou(){return qg(),Bg(),Pg(),$g()}function $g(){if($t!==5)return!1;var t=Mr,a=Zd;Zd=0;var i=ca(ur),s=j.T,f=Y.p;try{Y.p=32>i?32:i,j.T=null,i=Jd,Jd=null;var m=Mr,x=ur;if($t=0,lo=Mr=null,ur=0,(Ze&6)!==0)throw Error(o(331));var T=Ze;if(Ze|=4,Tg(m.current),Sg(m,m.current,x,i),Ze=T,xs(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Va,m)}catch{}return!0}finally{Y.p=f,j.T=s,Hg(t,a)}}function Qg(t,a,i){a=Xn(i,a),a=jd(t.stateNode,a,2),t=Dr(t,a,2),t!==null&&(ct(t,2),Na(t))}function nt(t,a,i){if(t.tag===3)Qg(t,t,i);else for(;a!==null;){if(a.tag===3){Qg(a,t,i);break}else if(a.tag===1){var s=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(jr===null||!jr.has(s))){t=Xn(i,t),i=Vv(2),s=Dr(a,i,2),s!==null&&(Gv(i,s,a,t),ct(s,2),Na(s));break}}a=a.return}}function af(t,a,i){var s=t.pingCache;if(s===null){s=t.pingCache=new lS;var f=new Set;s.set(a,f)}else f=s.get(a),f===void 0&&(f=new Set,s.set(a,f));f.has(i)||(Kd=!0,f.add(i),t=hS.bind(null,t,a,i),a.then(t,t))}function hS(t,a,i){var s=t.pingCache;s!==null&&s.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,dt===t&&(Ve&i)===i&&(At===4||At===3&&(Ve&62914560)===Ve&&300>Ht()-eu?(Ze&2)===0&&uo(t,0):Wd|=i,so===Ve&&(so=0)),Na(t)}function Vg(t,a){a===0&&(a=Gt()),t=li(t,a),t!==null&&(ct(t,a),Na(t))}function mS(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),Vg(t,i)}function pS(t,a){var i=0;switch(t.tag){case 31:case 13:var s=t.stateNode,f=t.memoizedState;f!==null&&(i=f.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(a),Vg(t,i)}function vS(t,a){return Ha(t,a)}var su=null,fo=null,rf=!1,lu=!1,of=!1,Lr=0;function Na(t){t!==fo&&t.next===null&&(fo===null?su=fo=t:fo=fo.next=t),lu=!0,rf||(rf=!0,yS())}function xs(t,a){if(!of&&lu){of=!0;do for(var i=!1,s=su;s!==null;){if(t!==0){var f=s.pendingLanes;if(f===0)var m=0;else{var x=s.suspendedLanes,T=s.pingedLanes;m=(1<<31-Vt(42|t)+1)-1,m&=f&~(x&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Wg(s,m))}else m=Ve,m=he(s,s===dt?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||ht(s,m)||(i=!0,Wg(s,m));s=s.next}while(i);of=!1}}function gS(){Gg()}function Gg(){lu=rf=!1;var t=0;Lr!==0&&kS()&&(t=Lr);for(var a=Ht(),i=null,s=su;s!==null;){var f=s.next,m=Yg(s,a);m===0?(s.next=null,i===null?su=f:i.next=f,f===null&&(fo=i)):(i=s,(t!==0||(m&3)!==0)&&(lu=!0)),s=f}$t!==0&&$t!==5||xs(t),Lr!==0&&(Lr=0)}function Yg(t,a){for(var i=t.suspendedLanes,s=t.pingedLanes,f=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var x=31-Vt(m),T=1<<x,R=f[x];R===-1?((T&i)===0||(T&s)!==0)&&(f[x]=It(T,a)):R<=a&&(t.expiredLanes|=T),m&=~T}if(a=dt,i=Ve,i=he(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,i===0||t===a&&(tt===2||tt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&_a(s),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||ht(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(s!==null&&_a(s),ca(i)){case 2:case 8:i=ki;break;case 32:i=Qa;break;case 268435456:i=ua;break;default:i=Qa}return s=Kg.bind(null,t),i=Ha(i,s),t.callbackPriority=a,t.callbackNode=i,a}return s!==null&&s!==null&&_a(s),t.callbackPriority=2,t.callbackNode=null,2}function Kg(t,a){if($t!==0&&$t!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(ou()&&t.callbackNode!==i)return null;var s=Ve;return s=he(t,t===dt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Ag(t,s,a),Yg(t,Ht()),t.callbackNode!=null&&t.callbackNode===i?Kg.bind(null,t):null)}function Wg(t,a){if(ou())return null;Ag(t,a,!0)}function yS(){AS(function(){(Ze&6)!==0?Ha($a,gS):Gg()})}function sf(){if(Lr===0){var t=Wi;t===0&&(t=He,He<<=1,(He&261888)===0&&(He=256)),Lr=t}return Lr}function Xg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vl(""+t)}function Zg(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function bS(t,a,i,s,f){if(a==="submit"&&i&&i.stateNode===f){var m=Xg((f[yn]||null).action),x=s.submitter;x&&(a=(a=x[yn]||null)?Xg(a.formAction):x.getAttribute("formAction"),a!==null&&(m=a,x=null));var T=new xl("action","action",null,s,f);t.push({event:T,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Lr!==0){var R=x?Zg(f,x):new FormData(f);Dd(i,{pending:!0,data:R,method:f.method,action:m},null,R)}}else typeof m=="function"&&(T.preventDefault(),R=x?Zg(f,x):new FormData(f),Dd(i,{pending:!0,data:R,method:f.method,action:m},m,R))},currentTarget:f}]})}}for(var lf=0;lf<Hc.length;lf++){var uf=Hc[lf],xS=uf.toLowerCase(),wS=uf[0].toUpperCase()+uf.slice(1);da(xS,"on"+wS)}da(Np,"onAnimationEnd"),da(Ap,"onAnimationIteration"),da(Rp,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(z2,"onTransitionRun"),da(F2,"onTransitionStart"),da(U2,"onTransitionCancel"),da(jp,"onTransitionEnd"),Ii("onMouseEnter",["mouseout","mouseover"]),Ii("onMouseLeave",["mouseout","mouseover"]),Ii("onPointerEnter",["pointerout","pointerover"]),Ii("onPointerLeave",["pointerout","pointerover"]),ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ri("onBeforeInput",["compositionend","keypress","textInput","paste"]),ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ws="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(" "),SS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ws));function Jg(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var s=t[i],f=s.event;s=s.listeners;e:{var m=void 0;if(a)for(var x=s.length-1;0<=x;x--){var T=s[x],R=T.instance,H=T.currentTarget;if(T=T.listener,R!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=H;try{m(f)}catch(Z){El(Z)}f.currentTarget=null,m=R}else for(x=0;x<s.length;x++){if(T=s[x],R=T.instance,H=T.currentTarget,T=T.listener,R!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=H;try{m(f)}catch(Z){El(Z)}f.currentTarget=null,m=R}}}}function Qe(t,a){var i=a[wc];i===void 0&&(i=a[wc]=new Set);var s=t+"__bubble";i.has(s)||(ey(a,t,2,!1),i.add(s))}function cf(t,a,i){var s=0;a&&(s|=4),ey(i,t,s,a)}var uu="_reactListening"+Math.random().toString(36).slice(2);function df(t){if(!t[uu]){t[uu]=!0,Gm.forEach(function(i){i!=="selectionchange"&&(SS.has(i)||cf(i,!1,t),cf(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[uu]||(a[uu]=!0,cf("selectionchange",!1,a))}}function ey(t,a,i,s){switch(Ny(a)){case 2:var f=WS;break;case 8:f=XS;break;default:f=Df}i=f.bind(null,a,i,t),f=void 0,!Ac||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),s?f!==void 0?t.addEventListener(a,i,{capture:!0,passive:f}):t.addEventListener(a,i,!0):f!==void 0?t.addEventListener(a,i,{passive:f}):t.addEventListener(a,i,!1)}function ff(t,a,i,s,f){var m=s;if((a&1)===0&&(a&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var T=s.stateNode.containerInfo;if(T===f)break;if(x===4)for(x=s.return;x!==null;){var R=x.tag;if((R===3||R===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;T!==null;){if(x=Mi(T),x===null)return;if(R=x.tag,R===5||R===6||R===26||R===27){s=m=x;continue e}T=T.parentNode}}s=s.return}ip(function(){var H=m,Z=kc(i),te=[];e:{var Q=Mp.get(t);if(Q!==void 0){var W=xl,ye=t;switch(t){case"keypress":if(yl(i)===0)break e;case"keydown":case"keyup":W=p2;break;case"focusin":ye="focus",W=Oc;break;case"focusout":ye="blur",W=Oc;break;case"beforeblur":case"afterblur":W=Oc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=lp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=a2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=y2;break;case Np:case Ap:case Rp:W=o2;break;case jp:W=x2;break;case"scroll":case"scrollend":W=t2;break;case"wheel":W=S2;break;case"copy":case"cut":case"paste":W=l2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=cp;break;case"toggle":case"beforetoggle":W=_2}var Ce=(a&4)!==0,ut=!Ce&&(t==="scroll"||t==="scrollend"),q=Ce?Q!==null?Q+"Capture":null:Q;Ce=[];for(var z=H,P;z!==null;){var J=z;if(P=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||P===null||q===null||(J=Ho(z,q),J!=null&&Ce.push(Ss(z,J,P))),ut)break;z=z.return}0<Ce.length&&(Q=new W(Q,ye,null,i,Z),te.push({event:Q,listeners:Ce}))}}if((a&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",W=t==="mouseout"||t==="pointerout",Q&&i!==Cc&&(ye=i.relatedTarget||i.fromElement)&&(Mi(ye)||ye[ji]))break e;if((W||Q)&&(Q=Z.window===Z?Z:(Q=Z.ownerDocument)?Q.defaultView||Q.parentWindow:window,W?(ye=i.relatedTarget||i.toElement,W=H,ye=ye?Mi(ye):null,ye!==null&&(ut=u(ye),Ce=ye.tag,ye!==ut||Ce!==5&&Ce!==27&&Ce!==6)&&(ye=null)):(W=null,ye=H),W!==ye)){if(Ce=lp,J="onMouseLeave",q="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(Ce=cp,J="onPointerLeave",q="onPointerEnter",z="pointer"),ut=W==null?Q:Po(W),P=ye==null?Q:Po(ye),Q=new Ce(J,z+"leave",W,i,Z),Q.target=ut,Q.relatedTarget=P,J=null,Mi(Z)===H&&(Ce=new Ce(q,z+"enter",ye,i,Z),Ce.target=P,Ce.relatedTarget=ut,J=Ce),ut=J,W&&ye)t:{for(Ce=ES,q=W,z=ye,P=0,J=q;J;J=Ce(J))P++;J=0;for(var Ee=z;Ee;Ee=Ce(Ee))J++;for(;0<P-J;)q=Ce(q),P--;for(;0<J-P;)z=Ce(z),J--;for(;P--;){if(q===z||z!==null&&q===z.alternate){Ce=q;break t}q=Ce(q),z=Ce(z)}Ce=null}else Ce=null;W!==null&&ty(te,Q,W,Ce,!1),ye!==null&&ut!==null&&ty(te,ut,ye,Ce,!0)}}e:{if(Q=H?Po(H):window,W=Q.nodeName&&Q.nodeName.toLowerCase(),W==="select"||W==="input"&&Q.type==="file")var We=yp;else if(vp(Q))if(bp)We=O2;else{We=j2;var xe=R2}else W=Q.nodeName,!W||W.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?H&&Dc(H.elementType)&&(We=yp):We=M2;if(We&&(We=We(t,H))){gp(te,We,i,Z);break e}xe&&xe(t,Q,H),t==="focusout"&&H&&Q.type==="number"&&H.memoizedProps.value!=null&&Tc(Q,"number",Q.value)}switch(xe=H?Po(H):window,t){case"focusin":(vp(xe)||xe.contentEditable==="true")&&(Pi=xe,qc=H,Xo=null);break;case"focusout":Xo=qc=Pi=null;break;case"mousedown":Bc=!0;break;case"contextmenu":case"mouseup":case"dragend":Bc=!1,Cp(te,i,Z);break;case"selectionchange":if(I2)break;case"keydown":case"keyup":Cp(te,i,Z)}var Me;if(Ic)e:{switch(t){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Bi?mp(t,i)&&(Ge="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ge="onCompositionStart");Ge&&(dp&&i.locale!=="ko"&&(Bi||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Bi&&(Me=op()):(br=Z,Rc="value"in br?br.value:br.textContent,Bi=!0)),xe=cu(H,Ge),0<xe.length&&(Ge=new up(Ge,t,null,i,Z),te.push({event:Ge,listeners:xe}),Me?Ge.data=Me:(Me=pp(i),Me!==null&&(Ge.data=Me)))),(Me=D2?C2(t,i):k2(t,i))&&(Ge=cu(H,"onBeforeInput"),0<Ge.length&&(xe=new up("onBeforeInput","beforeinput",null,i,Z),te.push({event:xe,listeners:Ge}),xe.data=Me)),bS(te,t,H,i,Z)}Jg(te,a)})}function Ss(t,a,i){return{instance:t,listener:a,currentTarget:i}}function cu(t,a){for(var i=a+"Capture",s=[];t!==null;){var f=t,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Ho(t,i),f!=null&&s.unshift(Ss(t,f,m)),f=Ho(t,a),f!=null&&s.push(Ss(t,f,m))),t.tag===3)return s;t=t.return}return[]}function ES(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ty(t,a,i,s,f){for(var m=a._reactName,x=[];i!==null&&i!==s;){var T=i,R=T.alternate,H=T.stateNode;if(T=T.tag,R!==null&&R===s)break;T!==5&&T!==26&&T!==27||H===null||(R=H,f?(H=Ho(i,m),H!=null&&x.unshift(Ss(i,H,R))):f||(H=Ho(i,m),H!=null&&x.push(Ss(i,H,R)))),i=i.return}x.length!==0&&t.push({event:a,listeners:x})}var _S=/\r\n?/g,TS=/\u0000|\uFFFD/g;function ny(t){return(typeof t=="string"?t:""+t).replace(_S,`
10
- `).replace(TS,"")}function ay(t,a){return a=ny(a),ny(t)===a}function lt(t,a,i,s,f,m){switch(i){case"children":typeof s=="string"?a==="body"||a==="textarea"&&s===""||Fi(t,s):(typeof s=="number"||typeof s=="bigint")&&a!=="body"&&Fi(t,""+s);break;case"className":ml(t,"class",s);break;case"tabIndex":ml(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ml(t,i,s);break;case"style":ap(t,s,m);break;case"data":if(a!=="object"){ml(t,"data",s);break}case"src":case"href":if(s===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=vl(""+s),t.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(i,"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 m=="function"&&(i==="formAction"?(a!=="input"&&lt(t,a,"name",f.name,f,null),lt(t,a,"formEncType",f.formEncType,f,null),lt(t,a,"formMethod",f.formMethod,f,null),lt(t,a,"formTarget",f.formTarget,f,null)):(lt(t,a,"encType",f.encType,f,null),lt(t,a,"method",f.method,f,null),lt(t,a,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=vl(""+s),t.setAttribute(i,s);break;case"onClick":s!=null&&(t.onclick=Ya);break;case"onScroll":s!=null&&Qe("scroll",t);break;case"onScrollEnd":s!=null&&Qe("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}i=vl(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""+s):t.removeAttribute(i);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":s===!0?t.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,s):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(i,s):t.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(i):t.setAttribute(i,s);break;case"popover":Qe("beforetoggle",t),Qe("toggle",t),hl(t,"popover",s);break;case"xlinkActuate":Ga(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Ga(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Ga(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Ga(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Ga(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Ga(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Ga(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Ga(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Ga(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":hl(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Jw.get(i)||i,hl(t,i,s))}}function hf(t,a,i,s,f,m){switch(i){case"style":ap(t,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof s=="string"?Fi(t,s):(typeof s=="number"||typeof s=="bigint")&&Fi(t,""+s);break;case"onScroll":s!=null&&Qe("scroll",t);break;case"onScrollEnd":s!=null&&Qe("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Ya);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ym.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),a=i.slice(2,f?i.length-7:void 0),m=t[yn]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(a,m,f),typeof s=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,s,f);break e}i in t?t[i]=s:s===!0?t.setAttribute(i,""):hl(t,i,s)}}}function rn(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",t),Qe("load",t);var s=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var x=i[m];if(x!=null)switch(m){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:lt(t,a,m,x,i,null)}}f&&lt(t,a,"srcSet",i.srcSet,i,null),s&&lt(t,a,"src",i.src,i,null);return;case"input":Qe("invalid",t);var T=m=x=f=null,R=null,H=null;for(s in i)if(i.hasOwnProperty(s)){var Z=i[s];if(Z!=null)switch(s){case"name":f=Z;break;case"type":x=Z;break;case"checked":R=Z;break;case"defaultChecked":H=Z;break;case"value":m=Z;break;case"defaultValue":T=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,a));break;default:lt(t,a,s,Z,i,null)}}Jm(t,m,T,R,H,x,f,!1);return;case"select":Qe("invalid",t),s=x=m=null;for(f in i)if(i.hasOwnProperty(f)&&(T=i[f],T!=null))switch(f){case"value":m=T;break;case"defaultValue":x=T;break;case"multiple":s=T;default:lt(t,a,f,T,i,null)}a=m,i=x,t.multiple=!!s,a!=null?zi(t,!!s,a,!1):i!=null&&zi(t,!!s,i,!0);return;case"textarea":Qe("invalid",t),m=f=s=null;for(x in i)if(i.hasOwnProperty(x)&&(T=i[x],T!=null))switch(x){case"value":s=T;break;case"defaultValue":f=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(91));break;default:lt(t,a,x,T,i,null)}tp(t,s,f,m);return;case"option":for(R in i)i.hasOwnProperty(R)&&(s=i[R],s!=null)&&(R==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":lt(t,a,R,s,i,null));return;case"dialog":Qe("beforetoggle",t),Qe("toggle",t),Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":Qe("load",t);break;case"video":case"audio":for(s=0;s<ws.length;s++)Qe(ws[s],t);break;case"image":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"embed":case"source":case"link":Qe("error",t),Qe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in i)if(i.hasOwnProperty(H)&&(s=i[H],s!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:lt(t,a,H,s,i,null)}return;default:if(Dc(a)){for(Z in i)i.hasOwnProperty(Z)&&(s=i[Z],s!==void 0&&hf(t,a,Z,s,i,void 0));return}}for(T in i)i.hasOwnProperty(T)&&(s=i[T],s!=null&&lt(t,a,T,s,i,null))}function DS(t,a,i,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,x=null,T=null,R=null,H=null,Z=null;for(W in i){var te=i[W];if(i.hasOwnProperty(W)&&te!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":R=te;default:s.hasOwnProperty(W)||lt(t,a,W,null,s,te)}}for(var Q in s){var W=s[Q];if(te=i[Q],s.hasOwnProperty(Q)&&(W!=null||te!=null))switch(Q){case"type":m=W;break;case"name":f=W;break;case"checked":H=W;break;case"defaultChecked":Z=W;break;case"value":x=W;break;case"defaultValue":T=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(o(137,a));break;default:W!==te&&lt(t,a,Q,W,s,te)}}_c(t,x,T,R,H,Z,m,f);return;case"select":W=x=T=Q=null;for(m in i)if(R=i[m],i.hasOwnProperty(m)&&R!=null)switch(m){case"value":break;case"multiple":W=R;default:s.hasOwnProperty(m)||lt(t,a,m,null,s,R)}for(f in s)if(m=s[f],R=i[f],s.hasOwnProperty(f)&&(m!=null||R!=null))switch(f){case"value":Q=m;break;case"defaultValue":T=m;break;case"multiple":x=m;default:m!==R&&lt(t,a,f,m,s,R)}a=T,i=x,s=W,Q!=null?zi(t,!!i,Q,!1):!!s!=!!i&&(a!=null?zi(t,!!i,a,!0):zi(t,!!i,i?[]:"",!1));return;case"textarea":W=Q=null;for(T in i)if(f=i[T],i.hasOwnProperty(T)&&f!=null&&!s.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:lt(t,a,T,null,s,f)}for(x in s)if(f=s[x],m=i[x],s.hasOwnProperty(x)&&(f!=null||m!=null))switch(x){case"value":Q=f;break;case"defaultValue":W=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:f!==m&&lt(t,a,x,f,s,m)}ep(t,Q,W);return;case"option":for(var ye in i)Q=i[ye],i.hasOwnProperty(ye)&&Q!=null&&!s.hasOwnProperty(ye)&&(ye==="selected"?t.selected=!1:lt(t,a,ye,null,s,Q));for(R in s)Q=s[R],W=i[R],s.hasOwnProperty(R)&&Q!==W&&(Q!=null||W!=null)&&(R==="selected"?t.selected=Q&&typeof Q!="function"&&typeof Q!="symbol":lt(t,a,R,Q,s,W));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 Ce in i)Q=i[Ce],i.hasOwnProperty(Ce)&&Q!=null&&!s.hasOwnProperty(Ce)&&lt(t,a,Ce,null,s,Q);for(H in s)if(Q=s[H],W=i[H],s.hasOwnProperty(H)&&Q!==W&&(Q!=null||W!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,a));break;default:lt(t,a,H,Q,s,W)}return;default:if(Dc(a)){for(var ut in i)Q=i[ut],i.hasOwnProperty(ut)&&Q!==void 0&&!s.hasOwnProperty(ut)&&hf(t,a,ut,void 0,s,Q);for(Z in s)Q=s[Z],W=i[Z],!s.hasOwnProperty(Z)||Q===W||Q===void 0&&W===void 0||hf(t,a,Z,Q,s,W);return}}for(var q in i)Q=i[q],i.hasOwnProperty(q)&&Q!=null&&!s.hasOwnProperty(q)&&lt(t,a,q,null,s,Q);for(te in s)Q=s[te],W=i[te],!s.hasOwnProperty(te)||Q===W||Q==null&&W==null||lt(t,a,te,Q,s,W)}function ry(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function CS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var f=i[s],m=f.transferSize,x=f.initiatorType,T=f.duration;if(m&&T&&ry(x)){for(x=0,T=f.responseEnd,s+=1;s<i.length;s++){var R=i[s],H=R.startTime;if(H>T)break;var Z=R.transferSize,te=R.initiatorType;Z&&ry(te)&&(R=R.responseEnd,x+=Z*(R<T?1:(T-H)/(R-H)))}if(--s,a+=8*(m+x)/(f.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var mf=null,pf=null;function du(t){return t.nodeType===9?t:t.ownerDocument}function iy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oy(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function vf(t,a){return t==="textarea"||t==="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 gf=null;function kS(){var t=window.event;return t&&t.type==="popstate"?t===gf?!1:(gf=t,!0):(gf=null,!1)}var sy=typeof setTimeout=="function"?setTimeout:void 0,NS=typeof clearTimeout=="function"?clearTimeout:void 0,ly=typeof Promise=="function"?Promise:void 0,AS=typeof queueMicrotask=="function"?queueMicrotask:typeof ly<"u"?function(t){return ly.resolve(null).then(t).catch(RS)}:sy;function RS(t){setTimeout(function(){throw t})}function Ir(t){return t==="head"}function uy(t,a){var i=a,s=0;do{var f=i.nextSibling;if(t.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(s===0){t.removeChild(f),vo(a);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")Es(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Es(i);for(var m=i.firstChild;m;){var x=m.nextSibling,T=m.nodeName;m[Bo]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=x}}else i==="body"&&Es(t.ownerDocument.body);i=f}while(i);vo(a)}function cy(t,a){var i=t;t=0;do{var s=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=s}while(i)}function yf(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":yf(i),Sc(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function jS(t,a,i,s){for(;t.nodeType===1;){var f=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Bo])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=na(t.nextSibling),t===null)break}return null}function MS(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=na(t.nextSibling),t===null))return null;return t}function dy(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=na(t.nextSibling),t===null))return null;return t}function bf(t){return t.data==="$?"||t.data==="$~"}function xf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function OS(t,a){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||i.readyState!=="loading")a();else{var s=function(){a(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function na(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var wf=null;function fy(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(a===0)return na(t.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}t=t.nextSibling}return null}function hy(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return t;a--}else i!=="/$"&&i!=="/&"||a++}t=t.previousSibling}return null}function my(t,a,i){switch(a=du(i),t){case"html":if(t=a.documentElement,!t)throw Error(o(452));return t;case"head":if(t=a.head,!t)throw Error(o(453));return t;case"body":if(t=a.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Es(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Sc(t)}var aa=new Map,py=new Set;function fu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var cr=Y.d;Y.d={f:LS,r:IS,D:zS,C:FS,L:US,m:qS,X:PS,S:BS,M:HS};function LS(){var t=cr.f(),a=au();return t||a}function IS(t){var a=Oi(t);a!==null&&a.tag===5&&a.type==="form"?jv(a):cr.r(t)}var ho=typeof document>"u"?null:document;function vy(t,a,i){var s=ho;if(s&&typeof a=="string"&&a){var f=Kn(a);f='link[rel="'+t+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),py.has(f)||(py.add(f),t={rel:t,crossOrigin:i,href:a},s.querySelector(f)===null&&(a=s.createElement("link"),rn(a,"link",t),Yt(a),s.head.appendChild(a)))}}function zS(t){cr.D(t),vy("dns-prefetch",t,null)}function FS(t,a){cr.C(t,a),vy("preconnect",t,a)}function US(t,a,i){cr.L(t,a,i);var s=ho;if(s&&t&&a){var f='link[rel="preload"][as="'+Kn(a)+'"]';a==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Kn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Kn(i.imageSizes)+'"]')):f+='[href="'+Kn(t)+'"]';var m=f;switch(a){case"style":m=mo(t);break;case"script":m=po(t)}aa.has(m)||(t=v({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),aa.set(m,t),s.querySelector(f)!==null||a==="style"&&s.querySelector(_s(m))||a==="script"&&s.querySelector(Ts(m))||(a=s.createElement("link"),rn(a,"link",t),Yt(a),s.head.appendChild(a)))}}function qS(t,a){cr.m(t,a);var i=ho;if(i&&t){var s=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Kn(s)+'"][href="'+Kn(t)+'"]',m=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=po(t)}if(!aa.has(m)&&(t=v({rel:"modulepreload",href:t},a),aa.set(m,t),i.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ts(m)))return}s=i.createElement("link"),rn(s,"link",t),Yt(s),i.head.appendChild(s)}}}function BS(t,a,i){cr.S(t,a,i);var s=ho;if(s&&t){var f=Li(s).hoistableStyles,m=mo(t);a=a||"default";var x=f.get(m);if(!x){var T={loading:0,preload:null};if(x=s.querySelector(_s(m)))T.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":a},i),(i=aa.get(m))&&Sf(t,i);var R=x=s.createElement("link");Yt(R),rn(R,"link",t),R._p=new Promise(function(H,Z){R.onload=H,R.onerror=Z}),R.addEventListener("load",function(){T.loading|=1}),R.addEventListener("error",function(){T.loading|=2}),T.loading|=4,hu(x,a,s)}x={type:"stylesheet",instance:x,count:1,state:T},f.set(m,x)}}}function PS(t,a){cr.X(t,a);var i=ho;if(i&&t){var s=Li(i).hoistableScripts,f=po(t),m=s.get(f);m||(m=i.querySelector(Ts(f)),m||(t=v({src:t,async:!0},a),(a=aa.get(f))&&Ef(t,a),m=i.createElement("script"),Yt(m),rn(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function HS(t,a){cr.M(t,a);var i=ho;if(i&&t){var s=Li(i).hoistableScripts,f=po(t),m=s.get(f);m||(m=i.querySelector(Ts(f)),m||(t=v({src:t,async:!0,type:"module"},a),(a=aa.get(f))&&Ef(t,a),m=i.createElement("script"),Yt(m),rn(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function gy(t,a,i,s){var f=(f=ee.current)?fu(f):null;if(!f)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=mo(i.href),i=Li(f).hoistableStyles,s=i.get(a),s||(s={type:"style",instance:null,count:0,state:null},i.set(a,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=mo(i.href);var m=Li(f).hoistableStyles,x=m.get(t);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,x),(m=f.querySelector(_s(t)))&&!m._p&&(x.instance=m,x.state.loading=5),aa.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},aa.set(t,i),m||$S(f,t,i,x.state))),a&&s===null)throw Error(o(528,""));return x}if(a&&s!==null)throw Error(o(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=po(i),i=Li(f).hoistableScripts,s=i.get(a),s||(s={type:"script",instance:null,count:0,state:null},i.set(a,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function mo(t){return'href="'+Kn(t)+'"'}function _s(t){return'link[rel="stylesheet"]['+t+"]"}function yy(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function $S(t,a,i,s){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?s.loading=1:(a=t.createElement("link"),s.preload=a,a.addEventListener("load",function(){return s.loading|=1}),a.addEventListener("error",function(){return s.loading|=2}),rn(a,"link",i),Yt(a),t.head.appendChild(a))}function po(t){return'[src="'+Kn(t)+'"]'}function Ts(t){return"script[async]"+t}function by(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var s=t.querySelector('style[data-href~="'+Kn(i.href)+'"]');if(s)return a.instance=s,Yt(s),s;var f=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),Yt(s),rn(s,"style",f),hu(s,i.precedence,t),a.instance=s;case"stylesheet":f=mo(i.href);var m=t.querySelector(_s(f));if(m)return a.state.loading|=4,a.instance=m,Yt(m),m;s=yy(i),(f=aa.get(f))&&Sf(s,f),m=(t.ownerDocument||t).createElement("link"),Yt(m);var x=m;return x._p=new Promise(function(T,R){x.onload=T,x.onerror=R}),rn(m,"link",s),a.state.loading|=4,hu(m,i.precedence,t),a.instance=m;case"script":return m=po(i.src),(f=t.querySelector(Ts(m)))?(a.instance=f,Yt(f),f):(s=i,(f=aa.get(m))&&(s=v({},i),Ef(s,f)),t=t.ownerDocument||t,f=t.createElement("script"),Yt(f),rn(f,"link",s),t.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(s=a.instance,a.state.loading|=4,hu(s,i.precedence,t));return a.instance}function hu(t,a,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,m=f,x=0;x<s.length;x++){var T=s[x];if(T.dataset.precedence===a)m=T;else if(m!==f)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function Sf(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Ef(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var mu=null;function xy(t,a,i){if(mu===null){var s=new Map,f=mu=new Map;f.set(i,s)}else f=mu,s=f.get(i),s||(s=new Map,f.set(i,s));if(s.has(t))return s;for(s.set(t,null),i=i.getElementsByTagName(t),f=0;f<i.length;f++){var m=i[f];if(!(m[Bo]||m[en]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(a)||"";x=t+x;var T=s.get(x);T?T.push(m):s.set(x,[m])}}return s}function wy(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function QS(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){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;return a.rel==="stylesheet"?(t=a.disabled,typeof a.precedence=="string"&&t==null):!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 Sy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function VS(t,a,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=mo(s.href),m=a.querySelector(_s(f));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=pu.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=m,Yt(m);return}m=a.ownerDocument||a,s=yy(s),(f=aa.get(f))&&Sf(s,f),m=m.createElement("link"),Yt(m);var x=m;x._p=new Promise(function(T,R){x.onload=T,x.onerror=R}),rn(m,"link",s),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=pu.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var _f=0;function GS(t,a){return t.stylesheets&&t.count===0&&gu(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var s=setTimeout(function(){if(t.stylesheets&&gu(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+a);0<t.imgBytes&&_f===0&&(_f=62500*CS());var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&gu(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>_f?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vu=null;function gu(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vu=new Map,a.forEach(YS,t),vu=null,pu.call(t))}function YS(t,a){if(!(a.state.loading&4)){var i=vu.get(t);if(i)var s=i.get(null);else{i=new Map,vu.set(t,i);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var x=f[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),s=x)}s&&i.set(null,s)}f=a.instance,x=f.getAttribute("data-precedence"),m=i.get(x)||s,m===s&&i.set(null,f),i.set(x,f),this.count++,s=pu.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),m?m.parentNode.insertBefore(f,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),a.state.loading|=4}}var Ds={$$typeof:N,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function KS(t,a,i,s,f,m,x,T,R){this.tag=1,this.containerInfo=t,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=Gn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gn(0),this.hiddenUpdates=Gn(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ey(t,a,i,s,f,m,x,T,R,H,Z,te){return t=new KS(t,a,i,x,R,H,Z,te,T),a=1,m===!0&&(a|=24),m=On(3,null,null,a),t.current=m,m.stateNode=t,a=nd(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:s,isDehydrated:i,cache:a},od(m),t}function _y(t){return t?(t=Qi,t):Qi}function Ty(t,a,i,s,f,m){f=_y(f),s.context===null?s.context=f:s.pendingContext=f,s=Tr(a),s.payload={element:i},m=m===void 0?null:m,m!==null&&(s.callback=m),i=Dr(t,s,a),i!==null&&(_n(i,t,a),rs(i,t,a))}function Dy(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function Tf(t,a){Dy(t,a),(t=t.alternate)&&Dy(t,a)}function Cy(t){if(t.tag===13||t.tag===31){var a=li(t,67108864);a!==null&&_n(a,t,67108864),Tf(t,67108864)}}function ky(t){if(t.tag===13||t.tag===31){var a=Un();a=Ri(a);var i=li(t,a);i!==null&&_n(i,t,a),Tf(t,a)}}var yu=!0;function WS(t,a,i,s){var f=j.T;j.T=null;var m=Y.p;try{Y.p=2,Df(t,a,i,s)}finally{Y.p=m,j.T=f}}function XS(t,a,i,s){var f=j.T;j.T=null;var m=Y.p;try{Y.p=8,Df(t,a,i,s)}finally{Y.p=m,j.T=f}}function Df(t,a,i,s){if(yu){var f=Cf(s);if(f===null)ff(t,a,s,bu,i),Ay(t,s);else if(JS(f,t,a,i,s))s.stopPropagation();else if(Ay(t,s),a&4&&-1<ZS.indexOf(t)){for(;f!==null;){var m=Oi(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=wt(m.pendingLanes);if(x!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var R=1<<31-Vt(x);T.entanglements[1]|=R,x&=~R}Na(m),(Ze&6)===0&&(tu=Ht()+500,xs(0))}}break;case 31:case 13:T=li(m,2),T!==null&&_n(T,m,2),au(),Tf(m,2)}if(m=Cf(s),m===null&&ff(t,a,s,bu,i),m===f)break;f=m}f!==null&&s.stopPropagation()}else ff(t,a,s,null,i)}}function Cf(t){return t=kc(t),kf(t)}var bu=null;function kf(t){if(bu=null,t=Mi(t),t!==null){var a=u(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=c(a),t!==null)return t;t=null}else if(i===31){if(t=h(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return bu=t,null}function Ny(t){switch(t){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(ei()){case $a:return 2;case ki:return 8;case Qa:case ti:return 32;case ua:return 268435456;default:return 32}default:return 32}}var Nf=!1,zr=null,Fr=null,Ur=null,Cs=new Map,ks=new Map,qr=[],ZS="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 Ay(t,a){switch(t){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Fr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":Cs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ks.delete(a.pointerId)}}function Ns(t,a,i,s,f,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:i,eventSystemFlags:s,nativeEvent:m,targetContainers:[f]},a!==null&&(a=Oi(a),a!==null&&Cy(a)),t):(t.eventSystemFlags|=s,a=t.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),t)}function JS(t,a,i,s,f){switch(a){case"focusin":return zr=Ns(zr,t,a,i,s,f),!0;case"dragenter":return Fr=Ns(Fr,t,a,i,s,f),!0;case"mouseover":return Ur=Ns(Ur,t,a,i,s,f),!0;case"pointerover":var m=f.pointerId;return Cs.set(m,Ns(Cs.get(m)||null,t,a,i,s,f)),!0;case"gotpointercapture":return m=f.pointerId,ks.set(m,Ns(ks.get(m)||null,t,a,i,s,f)),!0}return!1}function Ry(t){var a=Mi(t.target);if(a!==null){var i=u(a);if(i!==null){if(a=i.tag,a===13){if(a=c(i),a!==null){t.blockedOn=a,Qm(t.priority,function(){ky(i)});return}}else if(a===31){if(a=h(i),a!==null){t.blockedOn=a,Qm(t.priority,function(){ky(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xu(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=Cf(t.nativeEvent);if(i===null){i=t.nativeEvent;var s=new i.constructor(i.type,i);Cc=s,i.target.dispatchEvent(s),Cc=null}else return a=Oi(i),a!==null&&Cy(a),t.blockedOn=i,!1;a.shift()}return!0}function jy(t,a,i){xu(t)&&i.delete(a)}function eE(){Nf=!1,zr!==null&&xu(zr)&&(zr=null),Fr!==null&&xu(Fr)&&(Fr=null),Ur!==null&&xu(Ur)&&(Ur=null),Cs.forEach(jy),ks.forEach(jy)}function wu(t,a){t.blockedOn===a&&(t.blockedOn=null,Nf||(Nf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,eE)))}var Su=null;function My(t){Su!==t&&(Su=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Su===t&&(Su=null);for(var a=0;a<t.length;a+=3){var i=t[a],s=t[a+1],f=t[a+2];if(typeof s!="function"){if(kf(s||i)===null)continue;break}var m=Oi(i);m!==null&&(t.splice(a,3),a-=3,Dd(m,{pending:!0,data:f,method:i.method,action:s},s,f))}}))}function vo(t){function a(R){return wu(R,t)}zr!==null&&wu(zr,t),Fr!==null&&wu(Fr,t),Ur!==null&&wu(Ur,t),Cs.forEach(a),ks.forEach(a);for(var i=0;i<qr.length;i++){var s=qr[i];s.blockedOn===t&&(s.blockedOn=null)}for(;0<qr.length&&(i=qr[0],i.blockedOn===null);)Ry(i),i.blockedOn===null&&qr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var f=i[s],m=i[s+1],x=f[yn]||null;if(typeof m=="function")x||My(i);else if(x){var T=null;if(m&&m.hasAttribute("formAction")){if(f=m,x=m[yn]||null)T=x.formAction;else if(kf(f)!==null)continue}else T=x.action;typeof T=="function"?i[s+1]=T:(i.splice(s,3),s-=3),My(i)}}}function Oy(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function Af(t){this._internalRoot=t}Eu.prototype.render=Af.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(o(409));var i=a.current,s=Un();Ty(i,s,t,a,null,null)},Eu.prototype.unmount=Af.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Ty(t.current,2,null,t,null,null),au(),a[ji]=null}};function Eu(t){this._internalRoot=t}Eu.prototype.unstable_scheduleHydration=function(t){if(t){var a=xc();t={blockedOn:null,target:t,priority:a};for(var i=0;i<qr.length&&a!==0&&a<qr[i].priority;i++);qr.splice(i,0,t),i===0&&Ry(t)}};var Ly=n.version;if(Ly!=="19.2.4")throw Error(o(527,Ly,"19.2.4"));Y.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=g(a),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var tE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_u.isDisabled&&_u.supportsFiber)try{Va=_u.inject(tE),Jt=_u}catch{}}return Rs.createRoot=function(t,a){if(!l(t))throw Error(o(299));var i=!1,s="",f=Pv,m=Hv,x=$v;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=Ey(t,1,!1,null,null,i,s,null,f,m,x,Oy),t[ji]=a.current,df(t),new Af(a)},Rs.hydrateRoot=function(t,a,i){if(!l(t))throw Error(o(299));var s=!1,f="",m=Pv,x=Hv,T=$v,R=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),a=Ey(t,1,!0,a,i??null,s,f,R,m,x,T,Oy),a.context=_y(null),i=a.current,s=Un(),s=Ri(s),f=Tr(s),f.callback=null,Dr(i,f,s),i=s,a.current.lanes=i,ct(a,i),Na(a),t[ji]=a.current,df(t),new Eu(a)},Rs.version="19.2.4",Rs}var Py;function rT(){if(Py)return jf.exports;Py=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(n){console.error(n)}}return e(),jf.exports=aT(),jf.exports}var iT=rT();const oT=jb(iT),sT="modulepreload",lT=function(e){return"/PREFECT_UI_SERVE_BASE_REPLACE_PLACEHOLDER/"+e},Hy={},Ae=function(n,r,o){let l=Promise.resolve();if(r&&r.length>0){let p=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),h=c?.nonce||c?.getAttribute("nonce");l=p(r.map(g=>{if(g=lT(g),g in Hy)return;Hy[g]=!0;const y=g.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":sT,y||(b.as="script"),b.crossOrigin="",b.href=g,h&&b.setAttribute("nonce",h),document.head.appendChild(b),y)return new Promise((w,E)=>{b.addEventListener("load",w),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(c){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=c,window.dispatchEvent(h),!h.defaultPrevented)throw c}return l.then(c=>{for(const h of c||[])h.status==="rejected"&&u(h.reason);return n().catch(u)})};var uT=function(){return null};const cT=/\{[^{}]+\}/g,dT=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function fT(){return Math.random().toString(36).slice(2,11)}function hT(e){let{baseUrl:n="",Request:r=globalThis.Request,fetch:o=globalThis.fetch,querySerializer:l,bodySerializer:u,headers:c,requestInitExt:h=void 0,...p}={...e};h=dT()?h:void 0,n=Vy(n);const g=[];async function y(v,b){const{baseUrl:w,fetch:E=o,Request:C=r,headers:D,params:_={},parseAs:A="json",querySerializer:N,bodySerializer:M=u??pT,body:O,middleware:I=[],...S}=b||{};let U=n;w&&(U=Vy(w)??n);let F=typeof l=="function"?l:$y(l);N&&(F=typeof N=="function"?N:$y({...typeof l=="object"?l:{},...N}));const L=O===void 0?void 0:M(O,Qy(c,D,_.header)),B=Qy(L===void 0||L instanceof FormData?{}:{"Content-Type":"application/json"},c,D,_.header),K=[...g,...I],se={redirect:"follow",...p,...S,body:L,headers:B};let ae,ce,j=new C(vT(v,{baseUrl:U,params:_,querySerializer:F}),se),Y;for(const de in S)de in j||(j[de]=S[de]);if(K.length){ae=fT(),ce=Object.freeze({baseUrl:U,fetch:E,parseAs:A,querySerializer:F,bodySerializer:M});for(const de of K)if(de&&typeof de=="object"&&typeof de.onRequest=="function"){const fe=await de.onRequest({request:j,schemaPath:v,params:_,options:ce,id:ae});if(fe)if(fe instanceof C)j=fe;else if(fe instanceof Response){Y=fe;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Y){try{Y=await E(j,h)}catch(de){let fe=de;if(K.length)for(let pe=K.length-1;pe>=0;pe--){const G=K[pe];if(G&&typeof G=="object"&&typeof G.onError=="function"){const X=await G.onError({request:j,error:fe,schemaPath:v,params:_,options:ce,id:ae});if(X){if(X instanceof Response){fe=void 0,Y=X;break}if(X instanceof Error){fe=X;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(fe)throw fe}if(K.length)for(let de=K.length-1;de>=0;de--){const fe=K[de];if(fe&&typeof fe=="object"&&typeof fe.onResponse=="function"){const pe=await fe.onResponse({request:j,response:Y,schemaPath:v,params:_,options:ce,id:ae});if(pe){if(!(pe instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Y=pe}}}}if(Y.status===204||j.method==="HEAD"||Y.headers.get("Content-Length")==="0")return Y.ok?{data:void 0,response:Y}:{error:void 0,response:Y};if(Y.ok)return A==="stream"?{data:Y.body,response:Y}:{data:await Y[A](),response:Y};let le=await Y.text();try{le=JSON.parse(le)}catch{}return{error:le,response:Y}}return{request(v,b,w){return y(b,{...w,method:v.toUpperCase()})},GET(v,b){return y(v,{...b,method:"GET"})},PUT(v,b){return y(v,{...b,method:"PUT"})},POST(v,b){return y(v,{...b,method:"POST"})},DELETE(v,b){return y(v,{...b,method:"DELETE"})},OPTIONS(v,b){return y(v,{...b,method:"OPTIONS"})},HEAD(v,b){return y(v,{...b,method:"HEAD"})},PATCH(v,b){return y(v,{...b,method:"PATCH"})},TRACE(v,b){return y(v,{...b,method:"TRACE"})},use(...v){for(const b of v)if(b){if(typeof b!="object"||!("onRequest"in b||"onResponse"in b||"onError"in b))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");g.push(b)}},eject(...v){for(const b of v){const w=g.indexOf(b);w!==-1&&g.splice(w,1)}}}}function oc(e,n,r){if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?.allowReserved===!0?n:encodeURIComponent(n)}`}function Qb(e,n,r){if(!n||typeof n!="object")return"";const o=[],l={simple:",",label:".",matrix:";"}[r.style]||"&";if(r.style!=="deepObject"&&r.explode===!1){for(const h in n)o.push(h,r.allowReserved===!0?n[h]:encodeURIComponent(n[h]));const c=o.join(",");switch(r.style){case"form":return`${e}=${c}`;case"label":return`.${c}`;case"matrix":return`;${e}=${c}`;default:return c}}for(const c in n){const h=r.style==="deepObject"?`${e}[${c}]`:c;o.push(oc(h,n[c],r))}const u=o.join(l);return r.style==="label"||r.style==="matrix"?`${l}${u}`:u}function Vb(e,n,r){if(!Array.isArray(n))return"";if(r.explode===!1){const u={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",c=(r.allowReserved===!0?n:n.map(h=>encodeURIComponent(h))).join(u);switch(r.style){case"simple":return c;case"label":return`.${c}`;case"matrix":return`;${e}=${c}`;default:return`${e}=${c}`}}const o={simple:",",label:".",matrix:";"}[r.style]||"&",l=[];for(const u of n)r.style==="simple"||r.style==="label"?l.push(r.allowReserved===!0?u:encodeURIComponent(u)):l.push(oc(e,u,r));return r.style==="label"||r.style==="matrix"?`${o}${l.join(o)}`:l.join(o)}function $y(e){return function(r){const o=[];if(r&&typeof r=="object")for(const l in r){const u=r[l];if(u!=null){if(Array.isArray(u)){if(u.length===0)continue;o.push(Vb(l,u,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof u=="object"){o.push(Qb(l,u,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}o.push(oc(l,u,e))}}return o.join("&")}}function mT(e,n){let r=e;for(const o of e.match(cT)??[]){let l=o.substring(1,o.length-1),u=!1,c="simple";if(l.endsWith("*")&&(u=!0,l=l.substring(0,l.length-1)),l.startsWith(".")?(c="label",l=l.substring(1)):l.startsWith(";")&&(c="matrix",l=l.substring(1)),!n||n[l]===void 0||n[l]===null)continue;const h=n[l];if(Array.isArray(h)){r=r.replace(o,Vb(l,h,{style:c,explode:u}));continue}if(typeof h=="object"){r=r.replace(o,Qb(l,h,{style:c,explode:u}));continue}if(c==="matrix"){r=r.replace(o,`;${oc(l,h)}`);continue}r=r.replace(o,c==="label"?`.${encodeURIComponent(h)}`:encodeURIComponent(h))}return r}function pT(e,n){return e instanceof FormData?e:n&&(n.get instanceof Function?n.get("Content-Type")??n.get("content-type"):n["Content-Type"]??n["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function vT(e,n){let r=`${n.baseUrl}${e}`;n.params?.path&&(r=mT(r,n.params.path));let o=n.querySerializer(n.params.query??{});return o.startsWith("?")&&(o=o.substring(1)),o&&(r+=`?${o}`),r}function Qy(...e){const n=new Headers;for(const r of e){if(!r||typeof r!="object")continue;const o=r instanceof Headers?r.entries():Object.entries(r);for(const[l,u]of o)if(u===null)n.delete(l);else if(Array.isArray(u))for(const c of u)n.append(l,c);else u!==void 0&&n.set(l,u)}return n}function Vy(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function gT(e){return e instanceof TypeError?e.message.includes("Failed to fetch")||e.message.includes("NetworkError")||e.message.includes("Network request failed"):!1}function jo(e,n){if(gT(e))return{type:"network-error",message:"Unable to connect to Prefect server",details:"The server may be down, starting up, or there may be a network issue. The app will automatically retry."};if(e instanceof Error){const r=e.message.match(/status[:\s]*(\d{3})/i);if(r){const o=Number.parseInt(r[1],10);if(o>=500)return{type:"server-error",message:"Prefect server error",details:`The server returned an error (${o}). This may be a temporary issue.`,statusCode:o};if(o>=400)return{type:"client-error",message:"Configuration error",details:`The server rejected the request (${o}). Check your Prefect configuration.`,statusCode:o}}return{type:"unknown-error",message:"Connection error",details:e.message||"An unexpected error occurred while connecting to the server."}}return{type:"unknown-error",message:"Unexpected error",details:n||"An unexpected error occurred. Please try again."}}class yT{settings=null;promise=null;getBaseUrl(){return""}async load(){if(this.settings!==null)return this.settings;if(this.promise!==null)return this.promise;this.promise=(async()=>{const n=this.getBaseUrl();let r;try{r=await fetch(`${n}/ui-settings`)}catch(l){this.promise=null;const u=jo(l,"Failed to connect to Prefect server");throw new Error(u.message+(u.details?`: ${u.details}`:""))}if(!r.ok){this.promise=null;const l=jo(new Error(`Failed to fetch UI settings: status ${r.status}`),"Server returned an error");throw new Error(l.message+(l.details?`: ${l.details}`:""))}const o=await r.json();return{apiUrl:o.api_url,csrfEnabled:o.csrf_enabled,auth:o.auth,flags:o.flags??[]}})();try{return this.settings=await this.promise,this.settings}catch(n){throw this.promise=null,n}}async getApiUrl(){return(await this.load()).apiUrl}reset(){this.settings=null,this.promise=null}}const Js=new yT,Gb="prefect-password",bT=new CustomEvent("auth:unauthorized"),xT={onResponse({response:e}){e.status===401&&(localStorage.removeItem(Gb),window.dispatchEvent(bT))}},wT={async onResponse({response:e}){if(!e.ok){const n=await e.clone().json();throw new Error(n.detail)}}},ST={onRequest({request:e}){const n=localStorage.getItem(Gb);return n&&e.headers.set("Authorization",`Basic ${n}`),e}};let go=null,Gy=null;const ne=async()=>{const e=await Js.getApiUrl();return(!go||Gy!==e)&&(go=hT({baseUrl:e}),go.use(ST),go.use(xT),go.use(wT),Gy=e),go},ET=async()=>Js.getApiUrl(),Yb={settings:()=>["settings"],version:()=>["version"]},Kb=()=>be({queryKey:Yb.version(),queryFn:async()=>{const e=await(await ne()).GET("/admin/version");if(!e.data)throw new Error("'data' expected");return e.data}}),Wb=()=>be({queryKey:Yb.settings(),queryFn:async()=>{const e=await(await ne()).GET("/admin/settings");if(!e.data)throw new Error("'data' expected");return e.data}});var Vr;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Vr||(Vr={}));var ba;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(ba||(ba={}));var Yy="-",sc="AMP",_T="".concat(sc,"_unsent"),Xb="$default_instance",Zb="https://api2.amplitude.com/2/httpapi",TT="https://api.eu.amplitude.com/2/httpapi",DT="https://api2.amplitude.com/batch",CT="https://api.eu.amplitude.com/batch",kT="utm_campaign",NT="utm_content",AT="utm_id",RT="utm_medium",jT="utm_source",MT="utm_term",Ky="dclid",Wy="fbclid",Xy="gbraid",Zy="gclid",Jy="ko_click_id",e0="li_fat_id",t0="msclkid",n0="rdt_cid",a0="ttclid",r0="twclid",i0="wbraid",lc={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},Gu=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],OT=["authorization","cookie","set-cookie"],LT=1e3,fh=function(e){if(Object.keys(e).length>LT)return!1;for(var n in e){var r=e[n];if(!Jb(n,r))return!1}return!0},Jb=function(e,n){var r,o;if(typeof e!="string")return!1;if(Array.isArray(n)){var l=!0;try{for(var u=Pe(n),c=u.next();!c.done;c=u.next()){var h=c.value;if(Array.isArray(h))return!1;if(typeof h=="object")l=l&&fh(h);else if(!["number","string"].includes(typeof h))return!1;if(!l)return!1}}catch(p){r={error:p}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}else{if(n==null)return!1;if(typeof n=="object")return fh(n);if(!["number","string","boolean"].includes(typeof n))return!1}return!0},Yu=(function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return me({},this._properties)},e.prototype.set=function(n,r){return this._safeSet(mt.SET,n,r),this},e.prototype.setOnce=function(n,r){return this._safeSet(mt.SET_ONCE,n,r),this},e.prototype.append=function(n,r){return this._safeSet(mt.APPEND,n,r),this},e.prototype.prepend=function(n,r){return this._safeSet(mt.PREPEND,n,r),this},e.prototype.postInsert=function(n,r){return this._safeSet(mt.POSTINSERT,n,r),this},e.prototype.preInsert=function(n,r){return this._safeSet(mt.PREINSERT,n,r),this},e.prototype.remove=function(n,r){return this._safeSet(mt.REMOVE,n,r),this},e.prototype.add=function(n,r){return this._safeSet(mt.ADD,n,r),this},e.prototype.unset=function(n){return this._safeSet(mt.UNSET,n,Yy),this},e.prototype.clearAll=function(){return this._properties={},this._properties[mt.CLEAR_ALL]=Yy,this},e.prototype._safeSet=function(n,r,o){if(this._validate(n,r,o)){var l=this._properties[n];return l===void 0&&(l={},this._properties[n]=l),l[r]=o,this._propertySet.add(r),!0}return!1},e.prototype._validate=function(n,r,o){return this._properties[mt.CLEAR_ALL]!==void 0||this._propertySet.has(r)?!1:n===mt.ADD?typeof o=="number":n!==mt.UNSET&&n!==mt.REMOVE?Jb(r,o):!0},e})(),mt;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(mt||(mt={}));var IT=[mt.CLEAR_ALL,mt.UNSET,mt.SET,mt.SET_ONCE,mt.ADD,mt.APPEND,mt.PREPEND,mt.PREINSERT,mt.POSTINSERT,mt.REMOVE],zT="Event tracked successfully",FT="Unexpected error occurred",UT="Event rejected due to exceeded retry count",qT="Event skipped due to optOut config",BT="Event rejected due to missing API key",PT="Invalid API key",HT="Client not initialized",Bt;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(Bt||(Bt={}));var ko=function(e,n,r){return n===void 0&&(n=0),r===void 0&&(r=Bt.Unknown),{event:e,code:n,message:r}},ft=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},$T=function(e){return e?(e^Math.random()*16>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,qa)},o0=et([],_e(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),qa=function(e){var n,r=ft();if(!(!((n=r?.crypto)===null||n===void 0)&&n.getRandomValues))return $T(e);var o=r.crypto.getRandomValues(new Uint8Array(16));return o[6]=o[6]&15|64,o[8]=o[8]&63|128,et([],_e(o.entries()),!1).map(function(l){var u=_e(l,2),c=u[0],h=u[1];return[4,6,8,10].includes(c)?"-".concat(o0[h]):o0[h]}).join("")},QT=(function(){function e(n){this.client=n,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(n,r){var o,l;return oe(this,void 0,void 0,function(){return ie(this,function(u){switch(u.label){case 0:return this.plugins.some(function(c){return c.name===n.name})?(this.loggerProvider.warn("Plugin with name ".concat(n.name," already exists, skipping registration")),[2]):(n.name===void 0&&(n.name=qa(),this.loggerProvider.warn(`Plugin name is undefined.
9
+ `+s.stack}}var Tt=Object.prototype.hasOwnProperty,$a=e.unstable_scheduleCallback,Ta=e.unstable_cancelCallback,Ht=e.unstable_shouldYield,ua=e.unstable_requestPaint,$t=e.unstable_now,ti=e.unstable_getCurrentPriorityLevel,Qa=e.unstable_ImmediatePriority,ki=e.unstable_UserBlockingPriority,Va=e.unstable_NormalPriority,ni=e.unstable_LowPriority,ca=e.unstable_IdlePriority,Ni=e.log,Da=e.unstable_setDisableYieldValue,Ga=null,en=null;function Mn(t){if(typeof Ni=="function"&&Da(t),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Ga,t)}catch{}}var Gt=Math.clz32?Math.clz32:De,Ai=Math.log,ai=Math.LN2;function De(t){return t>>>=0,t===0?32:31-(Ai(t)/ai|0)|0}var He=256,Te=262144,Ue=4194304;function St(t){var a=t&42;if(a!==0)return a;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function he(t,a,i){var s=t.pendingLanes;if(s===0)return 0;var f=0,m=t.suspendedLanes,x=t.pingedLanes;t=t.warmLanes;var T=s&134217727;return T!==0?(s=T&~m,s!==0?f=St(s):(x&=T,x!==0?f=St(x):i||(i=T&~t,i!==0&&(f=St(i))))):(T=s&~m,T!==0?f=St(T):x!==0?f=St(x):i||(i=s&~t,i!==0&&(f=St(i)))),f===0?0:a!==0&&a!==f&&(a&m)===0&&(m=f&-f,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:f}function mt(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function zt(t,a){switch(t){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 Yt(){var t=Ue;return Ue<<=1,(Ue&62914560)===0&&(Ue=4194304),t}function Yn(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function dt(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function vn(t,a,i,s,f,m){var x=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var T=t.entanglements,R=t.expirationTimes,H=t.hiddenUpdates;for(i=x&~i;0<i;){var Z=31-Gt(i),te=1<<Z;T[Z]=0,R[Z]=-1;var Q=H[Z];if(Q!==null)for(H[Z]=null,Z=0;Z<Q.length;Z++){var W=Q[Z];W!==null&&(W.lane&=-536870913)}i&=~te}s!==0&&ri(t,s,0),m!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=m&~(x&~a))}function ri(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var s=31-Gt(a);t.entangledLanes|=a,t.entanglements[s]=t.entanglements[s]|1073741824|i&261930}function gn(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var s=31-Gt(i),f=1<<s;f&a|t[s]&a&&(t[s]|=a),i&=~f}}function yn(t,a){var i=a&-a;return i=(i&42)!==0?1:Ri(i),(i&(t.suspendedLanes|a))!==0?0:i}function Ri(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function da(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function xc(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Ny(t.type))}function Qm(t,a){var i=Y.p;try{return Y.p=t,a()}finally{Y.p=i}}var br=Math.random().toString(36).slice(2),tn="__reactFiber$"+br,bn="__reactProps$"+br,ji="__reactContainer$"+br,wc="__reactEvents$"+br,Qw="__reactListeners$"+br,Vw="__reactHandles$"+br,Vm="__reactResources$"+br,Po="__reactMarker$"+br;function Sc(t){delete t[tn],delete t[bn],delete t[wc],delete t[Qw],delete t[Vw]}function Mi(t){var a=t[tn];if(a)return a;for(var i=t.parentNode;i;){if(a=i[ji]||i[tn]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=hy(t);t!==null;){if(i=t[tn])return i;t=hy(t)}return a}t=i,i=t.parentNode}return null}function Oi(t){if(t=t[tn]||t[ji]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function Ho(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(o(33))}function Li(t){var a=t[Vm];return a||(a=t[Vm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Kt(t){t[Po]=!0}var Gm=new Set,Ym={};function ii(t,a){Ii(t,a),Ii(t+"Capture",a)}function Ii(t,a){for(Ym[t]=a,t=0;t<a.length;t++)Gm.add(a[t])}var Gw=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]*$"),Km={},Wm={};function Yw(t){return Tt.call(Wm,t)?!0:Tt.call(Km,t)?!1:Gw.test(t)?Wm[t]=!0:(Km[t]=!0,!1)}function hl(t,a,i){if(Yw(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var s=a.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function ml(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function Ya(t,a,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+s)}}function Kn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xm(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Kw(t,a,i){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,m=s.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return f.call(this)},set:function(x){i=""+x,m.call(this,x)}}),Object.defineProperty(t,a,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(x){i=""+x},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function Ec(t){if(!t._valueTracker){var a=Xm(t)?"checked":"value";t._valueTracker=Kw(t,a,""+t[a])}}function Zm(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),s="";return t&&(s=Xm(t)?t.checked?"true":"false":t.value),t=s,t!==i?(a.setValue(t),!0):!1}function pl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ww=/[\n"\\]/g;function Wn(t){return t.replace(Ww,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function _c(t,a,i,s,f,m,x,T){t.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.type=x:t.removeAttribute("type"),a!=null?x==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Kn(a)):t.value!==""+Kn(a)&&(t.value=""+Kn(a)):x!=="submit"&&x!=="reset"||t.removeAttribute("value"),a!=null?Tc(t,x,Kn(a)):i!=null?Tc(t,x,Kn(i)):s!=null&&t.removeAttribute("value"),f==null&&m!=null&&(t.defaultChecked=!!m),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+Kn(T):t.removeAttribute("name")}function Jm(t,a,i,s,f,m,x,T){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){Ec(t);return}i=i!=null?""+Kn(i):"",a=a!=null?""+Kn(a):i,T||a===t.value||(t.value=a),t.defaultValue=a}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=T?t.checked:!!s,t.defaultChecked=!!s,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.name=x),Ec(t)}function Tc(t,a,i){a==="number"&&pl(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function zi(t,a,i,s){if(t=t.options,a){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=!0;for(i=0;i<t.length;i++)f=a.hasOwnProperty("$"+t[i].value),t[i].selected!==f&&(t[i].selected=f),f&&s&&(t[i].defaultSelected=!0)}else{for(i=""+Kn(i),a=null,f=0;f<t.length;f++){if(t[f].value===i){t[f].selected=!0,s&&(t[f].defaultSelected=!0);return}a!==null||t[f].disabled||(a=t[f])}a!==null&&(a.selected=!0)}}function ep(t,a,i){if(a!=null&&(a=""+Kn(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+Kn(i):""}function tp(t,a,i,s){if(a==null){if(s!=null){if(i!=null)throw Error(o(92));if(ce(s)){if(1<s.length)throw Error(o(93));s=s[0]}i=s}i==null&&(i=""),a=i}i=Kn(a),t.defaultValue=i,s=t.textContent,s===i&&s!==""&&s!==null&&(t.value=s),Ec(t)}function Fi(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var Xw=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 np(t,a,i){var s=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":s?t.setProperty(a,i):typeof i!="number"||i===0||Xw.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function ap(t,a,i){if(a!=null&&typeof a!="object")throw Error(o(62));if(t=t.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||a!=null&&a.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var f in a)s=a[f],a.hasOwnProperty(f)&&i[f]!==s&&np(t,f,s)}else for(var m in a)a.hasOwnProperty(m)&&np(t,m,a[m])}function Dc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Zw=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"]]),Jw=/^[\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 vl(t){return Jw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ka(){}var Cc=null;function kc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ui=null,qi=null;function rp(t){var a=Oi(t);if(a&&(t=a.stateNode)){var i=t[bn]||null;e:switch(t=a.stateNode,a.type){case"input":if(_c(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Wn(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var s=i[a];if(s!==t&&s.form===t.form){var f=s[bn]||null;if(!f)throw Error(o(90));_c(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<i.length;a++)s=i[a],s.form===t.form&&Zm(s)}break e;case"textarea":ep(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&zi(t,!!i.multiple,a,!1)}}}var Nc=!1;function ip(t,a,i){if(Nc)return t(a,i);Nc=!0;try{var s=t(a);return s}finally{if(Nc=!1,(Ui!==null||qi!==null)&&(au(),Ui&&(a=Ui,t=qi,qi=Ui=null,rp(a),t)))for(a=0;a<t.length;a++)rp(t[a])}}function $o(t,a){var i=t.stateNode;if(i===null)return null;var s=i[bn]||null;if(s===null)return null;i=s[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":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,a,typeof i));return i}var Wa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ac=!1;if(Wa)try{var Qo={};Object.defineProperty(Qo,"passive",{get:function(){Ac=!0}}),window.addEventListener("test",Qo,Qo),window.removeEventListener("test",Qo,Qo)}catch{Ac=!1}var xr=null,Rc=null,gl=null;function op(){if(gl)return gl;var t,a=Rc,i=a.length,s,f="value"in xr?xr.value:xr.textContent,m=f.length;for(t=0;t<i&&a[t]===f[t];t++);var x=i-t;for(s=1;s<=x&&a[i-s]===f[m-s];s++);return gl=f.slice(t,1<s?1-s:void 0)}function yl(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function bl(){return!0}function sp(){return!1}function xn(t){function a(i,s,f,m,x){this._reactName=i,this._targetInst=f,this.type=s,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(i=t[T],this[T]=i?i(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?bl:sp,this.isPropagationStopped=sp,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=bl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=bl)},persist:function(){},isPersistent:bl}),a}var oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xl=xn(oi),Vo=v({},oi,{view:0,detail:0}),e2=xn(Vo),jc,Mc,Go,wl=v({},Vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Go&&(Go&&t.type==="mousemove"?(jc=t.screenX-Go.screenX,Mc=t.screenY-Go.screenY):Mc=jc=0,Go=t),jc)},movementY:function(t){return"movementY"in t?t.movementY:Mc}}),lp=xn(wl),t2=v({},wl,{dataTransfer:0}),n2=xn(t2),a2=v({},Vo,{relatedTarget:0}),Oc=xn(a2),r2=v({},oi,{animationName:0,elapsedTime:0,pseudoElement:0}),i2=xn(r2),o2=v({},oi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),s2=xn(o2),l2=v({},oi,{data:0}),up=xn(l2),u2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c2={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"},d2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f2(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=d2[t])?!!a[t]:!1}function Lc(){return f2}var h2=v({},Vo,{key:function(t){if(t.key){var a=u2[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=yl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?c2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(t){return t.type==="keypress"?yl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?yl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),m2=xn(h2),p2=v({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cp=xn(p2),v2=v({},Vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),g2=xn(v2),y2=v({},oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),b2=xn(y2),x2=v({},wl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),w2=xn(x2),S2=v({},oi,{newState:0,oldState:0}),E2=xn(S2),_2=[9,13,27,32],Ic=Wa&&"CompositionEvent"in window,Yo=null;Wa&&"documentMode"in document&&(Yo=document.documentMode);var T2=Wa&&"TextEvent"in window&&!Yo,dp=Wa&&(!Ic||Yo&&8<Yo&&11>=Yo),fp=" ",hp=!1;function mp(t,a){switch(t){case"keyup":return _2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Bi=!1;function D2(t,a){switch(t){case"compositionend":return pp(a);case"keypress":return a.which!==32?null:(hp=!0,fp);case"textInput":return t=a.data,t===fp&&hp?null:t;default:return null}}function C2(t,a){if(Bi)return t==="compositionend"||!Ic&&mp(t,a)?(t=op(),gl=Rc=xr=null,Bi=!1,t):null;switch(t){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 dp&&a.locale!=="ko"?null:a.data;default:return null}}var k2={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 vp(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!k2[t.type]:a==="textarea"}function gp(t,a,i,s){Ui?qi?qi.push(s):qi=[s]:Ui=s,a=cu(a,"onChange"),0<a.length&&(i=new xl("onChange","change",null,i,s),t.push({event:i,listeners:a}))}var Ko=null,Wo=null;function N2(t){Jg(t,0)}function Sl(t){var a=Ho(t);if(Zm(a))return t}function yp(t,a){if(t==="change")return a}var bp=!1;if(Wa){var zc;if(Wa){var Fc="oninput"in document;if(!Fc){var xp=document.createElement("div");xp.setAttribute("oninput","return;"),Fc=typeof xp.oninput=="function"}zc=Fc}else zc=!1;bp=zc&&(!document.documentMode||9<document.documentMode)}function wp(){Ko&&(Ko.detachEvent("onpropertychange",Sp),Wo=Ko=null)}function Sp(t){if(t.propertyName==="value"&&Sl(Wo)){var a=[];gp(a,Wo,t,kc(t)),ip(N2,a)}}function A2(t,a,i){t==="focusin"?(wp(),Ko=a,Wo=i,Ko.attachEvent("onpropertychange",Sp)):t==="focusout"&&wp()}function R2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Sl(Wo)}function j2(t,a){if(t==="click")return Sl(a)}function M2(t,a){if(t==="input"||t==="change")return Sl(a)}function O2(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var On=typeof Object.is=="function"?Object.is:O2;function Xo(t,a){if(On(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),s=Object.keys(a);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var f=i[s];if(!Tt.call(a,f)||!On(t[f],a[f]))return!1}return!0}function Ep(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _p(t,a){var i=Ep(t);t=0;for(var s;i;){if(i.nodeType===3){if(s=t+i.textContent.length,t<=a&&s>=a)return{node:i,offset:a-t};t=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Ep(i)}}function Tp(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Tp(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Dp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=pl(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=pl(t.document)}return a}function Uc(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var L2=Wa&&"documentMode"in document&&11>=document.documentMode,Pi=null,qc=null,Zo=null,Bc=!1;function Cp(t,a,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Bc||Pi==null||Pi!==pl(s)||(s=Pi,"selectionStart"in s&&Uc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Zo&&Xo(Zo,s)||(Zo=s,s=cu(qc,"onSelect"),0<s.length&&(a=new xl("onSelect","select",null,a,i),t.push({event:a,listeners:s}),a.target=Pi)))}function si(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var Hi={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionrun:si("Transition","TransitionRun"),transitionstart:si("Transition","TransitionStart"),transitioncancel:si("Transition","TransitionCancel"),transitionend:si("Transition","TransitionEnd")},Pc={},kp={};Wa&&(kp=document.createElement("div").style,"AnimationEvent"in window||(delete Hi.animationend.animation,delete Hi.animationiteration.animation,delete Hi.animationstart.animation),"TransitionEvent"in window||delete Hi.transitionend.transition);function li(t){if(Pc[t])return Pc[t];if(!Hi[t])return t;var a=Hi[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in kp)return Pc[t]=a[i];return t}var Np=li("animationend"),Ap=li("animationiteration"),Rp=li("animationstart"),I2=li("transitionrun"),z2=li("transitionstart"),F2=li("transitioncancel"),jp=li("transitionend"),Mp=new Map,Hc="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(" ");Hc.push("scrollEnd");function fa(t,a){Mp.set(t,a),ii(a,[t])}var El=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Xn=[],$i=0,$c=0;function _l(){for(var t=$i,a=$c=$i=0;a<t;){var i=Xn[a];Xn[a++]=null;var s=Xn[a];Xn[a++]=null;var f=Xn[a];Xn[a++]=null;var m=Xn[a];if(Xn[a++]=null,s!==null&&f!==null){var x=s.pending;x===null?f.next=f:(f.next=x.next,x.next=f),s.pending=f}m!==0&&Op(i,f,m)}}function Tl(t,a,i,s){Xn[$i++]=t,Xn[$i++]=a,Xn[$i++]=i,Xn[$i++]=s,$c|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Qc(t,a,i,s){return Tl(t,a,i,s),Dl(t)}function ui(t,a){return Tl(t,null,null,a),Dl(t)}function Op(t,a,i){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i);for(var f=!1,m=t.return;m!==null;)m.childLanes|=i,s=m.alternate,s!==null&&(s.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(f=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,f&&a!==null&&(f=31-Gt(i),t=m.hiddenUpdates,s=t[f],s===null?t[f]=[a]:s.push(a),a.lane=i|536870912),m):null}function Dl(t){if(50<xs)throw xs=0,ef=null,Error(o(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Qi={};function U2(t,a,i,s){this.tag=t,this.key=i,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(t,a,i,s){return new U2(t,a,i,s)}function Vc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Xa(t,a){var i=t.alternate;return i===null?(i=Ln(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Lp(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Cl(t,a,i,s,f,m){var x=0;if(s=t,typeof t=="function")Vc(t)&&(x=1);else if(typeof t=="string")x=$S(t,i,ue.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case F:return t=Ln(31,i,a,f),t.elementType=F,t.lanes=m,t;case C:return ci(i.children,f,m,a);case D:x=8,f|=24;break;case _:return t=Ln(12,i,a,f|2),t.elementType=_,t.lanes=m,t;case O:return t=Ln(13,i,a,f),t.elementType=O,t.lanes=m,t;case I:return t=Ln(19,i,a,f),t.elementType=I,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:x=10;break e;case A:x=9;break e;case M:x=11;break e;case S:x=14;break e;case U:x=16,s=null;break e}x=29,i=Error(o(130,t===null?"null":typeof t,"")),s=null}return a=Ln(x,i,a,f),a.elementType=t,a.type=s,a.lanes=m,a}function ci(t,a,i,s){return t=Ln(7,t,s,a),t.lanes=i,t}function Gc(t,a,i){return t=Ln(6,t,null,a),t.lanes=i,t}function Ip(t){var a=Ln(18,null,null,0);return a.stateNode=t,a}function Yc(t,a,i){return a=Ln(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var zp=new WeakMap;function Zn(t,a){if(typeof t=="object"&&t!==null){var i=zp.get(t);return i!==void 0?i:(a={value:t,source:a,stack:la(a)},zp.set(t,a),a)}return{value:t,source:a,stack:la(a)}}var Vi=[],Gi=0,kl=null,Jo=0,Jn=[],ea=0,wr=null,Ca=1,ka="";function Za(t,a){Vi[Gi++]=Jo,Vi[Gi++]=kl,kl=t,Jo=a}function Fp(t,a,i){Jn[ea++]=Ca,Jn[ea++]=ka,Jn[ea++]=wr,wr=t;var s=Ca;t=ka;var f=32-Gt(s)-1;s&=~(1<<f),i+=1;var m=32-Gt(a)+f;if(30<m){var x=f-f%5;m=(s&(1<<x)-1).toString(32),s>>=x,f-=x,Ca=1<<32-Gt(a)+f|i<<f|s,ka=m+t}else Ca=1<<m|i<<f|s,ka=t}function Kc(t){t.return!==null&&(Za(t,1),Fp(t,1,0))}function Wc(t){for(;t===kl;)kl=Vi[--Gi],Vi[Gi]=null,Jo=Vi[--Gi],Vi[Gi]=null;for(;t===wr;)wr=Jn[--ea],Jn[ea]=null,ka=Jn[--ea],Jn[ea]=null,Ca=Jn[--ea],Jn[ea]=null}function Up(t,a){Jn[ea++]=Ca,Jn[ea++]=ka,Jn[ea++]=wr,Ca=a.id,ka=a.overflow,wr=t}var nn=null,yt=null,Ye=!1,Sr=null,ta=!1,Xc=Error(o(519));function Er(t){var a=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw es(Zn(a,t)),Xc}function qp(t){var a=t.stateNode,i=t.type,s=t.memoizedProps;switch(a[tn]=t,a[bn]=s,i){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(i=0;i<Ss.length;i++)Qe(Ss[i],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),Jm(a,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),tp(a,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||s.suppressHydrationWarning===!0||ay(a.textContent,i)?(s.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),s.onScroll!=null&&Qe("scroll",a),s.onScrollEnd!=null&&Qe("scrollend",a),s.onClick!=null&&(a.onclick=Ka),a=!0):a=!1,a||Er(t,!0)}function Bp(t){for(nn=t.return;nn;)switch(nn.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:nn=nn.return}}function Yi(t){if(t!==nn)return!1;if(!Ye)return Bp(t),Ye=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||vf(t.type,t.memoizedProps)),i=!i),i&&yt&&Er(t),Bp(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));yt=fy(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));yt=fy(t)}else a===27?(a=yt,zr(t.type)?(t=wf,wf=null,yt=t):yt=a):yt=nn?aa(t.stateNode.nextSibling):null;return!0}function di(){yt=nn=null,Ye=!1}function Zc(){var t=Sr;return t!==null&&(_n===null?_n=t:_n.push.apply(_n,t),Sr=null),t}function es(t){Sr===null?Sr=[t]:Sr.push(t)}var Jc=pe(null),fi=null,Ja=null;function _r(t,a,i){X(Jc,a._currentValue),a._currentValue=i}function er(t){t._currentValue=Jc.current,G(Jc)}function ed(t,a,i){for(;t!==null;){var s=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,s!==null&&(s.childLanes|=a)):s!==null&&(s.childLanes&a)!==a&&(s.childLanes|=a),t===i)break;t=t.return}}function td(t,a,i,s){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var m=f.dependencies;if(m!==null){var x=f.child;m=m.firstContext;e:for(;m!==null;){var T=m;m=f;for(var R=0;R<a.length;R++)if(T.context===a[R]){m.lanes|=i,T=m.alternate,T!==null&&(T.lanes|=i),ed(m.return,i,t),s||(x=null);break e}m=T.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(o(341));x.lanes|=i,m=x.alternate,m!==null&&(m.lanes|=i),ed(x,i,t),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===t){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function Ki(t,a,i,s){t=null;for(var f=a,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(o(387));if(x=x.memoizedProps,x!==null){var T=f.type;On(f.pendingProps.value,x.value)||(t!==null?t.push(T):t=[T])}}else if(f===ve.current){if(x=f.alternate,x===null)throw Error(o(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(Cs):t=[Cs])}f=f.return}t!==null&&td(a,t,i,s),a.flags|=262144}function Nl(t){for(t=t.firstContext;t!==null;){if(!On(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function hi(t){fi=t,Ja=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function an(t){return Pp(fi,t)}function Al(t,a){return fi===null&&hi(t),Pp(t,a)}function Pp(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Ja===null){if(t===null)throw Error(o(308));Ja=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Ja=Ja.next=a;return i}var q2=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,s){t.push(s)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},B2=e.unstable_scheduleCallback,P2=e.unstable_NormalPriority,Ft={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nd(){return{controller:new q2,data:new Map,refCount:0}}function ts(t){t.refCount--,t.refCount===0&&B2(P2,function(){t.controller.abort()})}var ns=null,ad=0,Wi=0,Xi=null;function H2(t,a){if(ns===null){var i=ns=[];ad=0,Wi=sf(),Xi={status:"pending",value:void 0,then:function(s){i.push(s)}}}return ad++,a.then(Hp,Hp),a}function Hp(){if(--ad===0&&ns!==null){Xi!==null&&(Xi.status="fulfilled");var t=ns;ns=null,Wi=0,Xi=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function $2(t,a){var i=[],s={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return t.then(function(){s.status="fulfilled",s.value=a;for(var f=0;f<i.length;f++)(0,i[f])(a)},function(f){for(s.status="rejected",s.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),s}var $p=j.S;j.S=function(t,a){Cg=$t(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&H2(t,a),$p!==null&&$p(t,a)};var mi=pe(null);function rd(){var t=mi.current;return t!==null?t:ft.pooledCache}function Rl(t,a){a===null?X(mi,mi.current):X(mi,a.pool)}function Qp(){var t=rd();return t===null?null:{parent:Ft._currentValue,pool:t}}var Zi=Error(o(460)),id=Error(o(474)),jl=Error(o(542)),Ml={then:function(){}};function Vp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Gp(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(Ka,Ka),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Kp(t),t;default:if(typeof a.status=="string")a.then(Ka,Ka);else{if(t=ft,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=a,t.status="pending",t.then(function(s){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=s}},function(s){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=s}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Kp(t),t}throw vi=a,Zi}}function pi(t){try{var a=t._init;return a(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(vi=i,Zi):i}}var vi=null;function Yp(){if(vi===null)throw Error(o(459));var t=vi;return vi=null,t}function Kp(t){if(t===Zi||t===jl)throw Error(o(483))}var Ji=null,as=0;function Ol(t){var a=as;return as+=1,Ji===null&&(Ji=[]),Gp(Ji,t,a)}function rs(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Ll(t,a){throw a.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(a),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Wp(t){function a(q,z){if(t){var P=q.deletions;P===null?(q.deletions=[z],q.flags|=16):P.push(z)}}function i(q,z){if(!t)return null;for(;z!==null;)a(q,z),z=z.sibling;return null}function s(q){for(var z=new Map;q!==null;)q.key!==null?z.set(q.key,q):z.set(q.index,q),q=q.sibling;return z}function f(q,z){return q=Xa(q,z),q.index=0,q.sibling=null,q}function m(q,z,P){return q.index=P,t?(P=q.alternate,P!==null?(P=P.index,P<z?(q.flags|=67108866,z):P):(q.flags|=67108866,z)):(q.flags|=1048576,z)}function x(q){return t&&q.alternate===null&&(q.flags|=67108866),q}function T(q,z,P,J){return z===null||z.tag!==6?(z=Gc(P,q.mode,J),z.return=q,z):(z=f(z,P),z.return=q,z)}function R(q,z,P,J){var Ee=P.type;return Ee===C?Z(q,z,P.props.children,J,P.key):z!==null&&(z.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===U&&pi(Ee)===z.type)?(z=f(z,P.props),rs(z,P),z.return=q,z):(z=Cl(P.type,P.key,P.props,null,q.mode,J),rs(z,P),z.return=q,z)}function H(q,z,P,J){return z===null||z.tag!==4||z.stateNode.containerInfo!==P.containerInfo||z.stateNode.implementation!==P.implementation?(z=Yc(P,q.mode,J),z.return=q,z):(z=f(z,P.children||[]),z.return=q,z)}function Z(q,z,P,J,Ee){return z===null||z.tag!==7?(z=ci(P,q.mode,J,Ee),z.return=q,z):(z=f(z,P),z.return=q,z)}function te(q,z,P){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Gc(""+z,q.mode,P),z.return=q,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case w:return P=Cl(z.type,z.key,z.props,null,q.mode,P),rs(P,z),P.return=q,P;case E:return z=Yc(z,q.mode,P),z.return=q,z;case U:return z=pi(z),te(q,z,P)}if(ce(z)||K(z))return z=ci(z,q.mode,P,null),z.return=q,z;if(typeof z.then=="function")return te(q,Ol(z),P);if(z.$$typeof===N)return te(q,Al(q,z),P);Ll(q,z)}return null}function Q(q,z,P,J){var Ee=z!==null?z.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return Ee!==null?null:T(q,z,""+P,J);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case w:return P.key===Ee?R(q,z,P,J):null;case E:return P.key===Ee?H(q,z,P,J):null;case U:return P=pi(P),Q(q,z,P,J)}if(ce(P)||K(P))return Ee!==null?null:Z(q,z,P,J,null);if(typeof P.then=="function")return Q(q,z,Ol(P),J);if(P.$$typeof===N)return Q(q,z,Al(q,P),J);Ll(q,P)}return null}function W(q,z,P,J,Ee){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return q=q.get(P)||null,T(z,q,""+J,Ee);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case w:return q=q.get(J.key===null?P:J.key)||null,R(z,q,J,Ee);case E:return q=q.get(J.key===null?P:J.key)||null,H(z,q,J,Ee);case U:return J=pi(J),W(q,z,P,J,Ee)}if(ce(J)||K(J))return q=q.get(P)||null,Z(z,q,J,Ee,null);if(typeof J.then=="function")return W(q,z,P,Ol(J),Ee);if(J.$$typeof===N)return W(q,z,P,Al(z,J),Ee);Ll(z,J)}return null}function ye(q,z,P,J){for(var Ee=null,Xe=null,xe=z,Me=z=0,Ge=null;xe!==null&&Me<P.length;Me++){xe.index>Me?(Ge=xe,xe=null):Ge=xe.sibling;var Ze=Q(q,xe,P[Me],J);if(Ze===null){xe===null&&(xe=Ge);break}t&&xe&&Ze.alternate===null&&a(q,xe),z=m(Ze,z,Me),Xe===null?Ee=Ze:Xe.sibling=Ze,Xe=Ze,xe=Ge}if(Me===P.length)return i(q,xe),Ye&&Za(q,Me),Ee;if(xe===null){for(;Me<P.length;Me++)xe=te(q,P[Me],J),xe!==null&&(z=m(xe,z,Me),Xe===null?Ee=xe:Xe.sibling=xe,Xe=xe);return Ye&&Za(q,Me),Ee}for(xe=s(xe);Me<P.length;Me++)Ge=W(xe,q,Me,P[Me],J),Ge!==null&&(t&&Ge.alternate!==null&&xe.delete(Ge.key===null?Me:Ge.key),z=m(Ge,z,Me),Xe===null?Ee=Ge:Xe.sibling=Ge,Xe=Ge);return t&&xe.forEach(function(Pr){return a(q,Pr)}),Ye&&Za(q,Me),Ee}function Ce(q,z,P,J){if(P==null)throw Error(o(151));for(var Ee=null,Xe=null,xe=z,Me=z=0,Ge=null,Ze=P.next();xe!==null&&!Ze.done;Me++,Ze=P.next()){xe.index>Me?(Ge=xe,xe=null):Ge=xe.sibling;var Pr=Q(q,xe,Ze.value,J);if(Pr===null){xe===null&&(xe=Ge);break}t&&xe&&Pr.alternate===null&&a(q,xe),z=m(Pr,z,Me),Xe===null?Ee=Pr:Xe.sibling=Pr,Xe=Pr,xe=Ge}if(Ze.done)return i(q,xe),Ye&&Za(q,Me),Ee;if(xe===null){for(;!Ze.done;Me++,Ze=P.next())Ze=te(q,Ze.value,J),Ze!==null&&(z=m(Ze,z,Me),Xe===null?Ee=Ze:Xe.sibling=Ze,Xe=Ze);return Ye&&Za(q,Me),Ee}for(xe=s(xe);!Ze.done;Me++,Ze=P.next())Ze=W(xe,q,Me,Ze.value,J),Ze!==null&&(t&&Ze.alternate!==null&&xe.delete(Ze.key===null?Me:Ze.key),z=m(Ze,z,Me),Xe===null?Ee=Ze:Xe.sibling=Ze,Xe=Ze);return t&&xe.forEach(function(tE){return a(q,tE)}),Ye&&Za(q,Me),Ee}function ct(q,z,P,J){if(typeof P=="object"&&P!==null&&P.type===C&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case w:e:{for(var Ee=P.key;z!==null;){if(z.key===Ee){if(Ee=P.type,Ee===C){if(z.tag===7){i(q,z.sibling),J=f(z,P.props.children),J.return=q,q=J;break e}}else if(z.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===U&&pi(Ee)===z.type){i(q,z.sibling),J=f(z,P.props),rs(J,P),J.return=q,q=J;break e}i(q,z);break}else a(q,z);z=z.sibling}P.type===C?(J=ci(P.props.children,q.mode,J,P.key),J.return=q,q=J):(J=Cl(P.type,P.key,P.props,null,q.mode,J),rs(J,P),J.return=q,q=J)}return x(q);case E:e:{for(Ee=P.key;z!==null;){if(z.key===Ee)if(z.tag===4&&z.stateNode.containerInfo===P.containerInfo&&z.stateNode.implementation===P.implementation){i(q,z.sibling),J=f(z,P.children||[]),J.return=q,q=J;break e}else{i(q,z);break}else a(q,z);z=z.sibling}J=Yc(P,q.mode,J),J.return=q,q=J}return x(q);case U:return P=pi(P),ct(q,z,P,J)}if(ce(P))return ye(q,z,P,J);if(K(P)){if(Ee=K(P),typeof Ee!="function")throw Error(o(150));return P=Ee.call(P),Ce(q,z,P,J)}if(typeof P.then=="function")return ct(q,z,Ol(P),J);if(P.$$typeof===N)return ct(q,z,Al(q,P),J);Ll(q,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,z!==null&&z.tag===6?(i(q,z.sibling),J=f(z,P),J.return=q,q=J):(i(q,z),J=Gc(P,q.mode,J),J.return=q,q=J),x(q)):i(q,z)}return function(q,z,P,J){try{as=0;var Ee=ct(q,z,P,J);return Ji=null,Ee}catch(xe){if(xe===Zi||xe===jl)throw xe;var Xe=Ln(29,xe,null,q.mode);return Xe.lanes=J,Xe.return=q,Xe}}}var gi=Wp(!0),Xp=Wp(!1),Tr=!1;function od(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sd(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cr(t,a,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Je&2)!==0){var f=s.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a,a=Dl(t),Op(t,null,i),a}return Tl(t,s,a,i),Dl(t)}function is(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var s=a.lanes;s&=t.pendingLanes,i|=s,a.lanes=i,gn(t,i)}}function ld(t,a){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=x:m=m.next=x,i=i.next}while(i!==null);m===null?f=m=a:m=m.next=a}else f=m=a;i={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:s.shared,callbacks:s.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var ud=!1;function os(){if(ud){var t=Xi;if(t!==null)throw t}}function ss(t,a,i,s){ud=!1;var f=t.updateQueue;Tr=!1;var m=f.firstBaseUpdate,x=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var R=T,H=R.next;R.next=null,x===null?m=H:x.next=H,x=R;var Z=t.alternate;Z!==null&&(Z=Z.updateQueue,T=Z.lastBaseUpdate,T!==x&&(T===null?Z.firstBaseUpdate=H:T.next=H,Z.lastBaseUpdate=R))}if(m!==null){var te=f.baseState;x=0,Z=H=R=null,T=m;do{var Q=T.lane&-536870913,W=Q!==T.lane;if(W?(Ve&Q)===Q:(s&Q)===Q){Q!==0&&Q===Wi&&(ud=!0),Z!==null&&(Z=Z.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ye=t,Ce=T;Q=a;var ct=i;switch(Ce.tag){case 1:if(ye=Ce.payload,typeof ye=="function"){te=ye.call(ct,te,Q);break e}te=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Ce.payload,Q=typeof ye=="function"?ye.call(ct,te,Q):ye,Q==null)break e;te=v({},te,Q);break e;case 2:Tr=!0}}Q=T.callback,Q!==null&&(t.flags|=64,W&&(t.flags|=8192),W=f.callbacks,W===null?f.callbacks=[Q]:W.push(Q))}else W={lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Z===null?(H=Z=W,R=te):Z=Z.next=W,x|=Q;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;W=T,T=W.next,W.next=null,f.lastBaseUpdate=W,f.shared.pending=null}}while(!0);Z===null&&(R=te),f.baseState=R,f.firstBaseUpdate=H,f.lastBaseUpdate=Z,m===null&&(f.shared.lanes=0),jr|=x,t.lanes=x,t.memoizedState=te}}function Zp(t,a){if(typeof t!="function")throw Error(o(191,t));t.call(a)}function Jp(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Zp(i[t],a)}var eo=pe(null),Il=pe(0);function ev(t,a){t=ur,X(Il,t),X(eo,a),ur=t|a.baseLanes}function cd(){X(Il,ur),X(eo,eo.current)}function dd(){ur=Il.current,G(eo),G(Il)}var In=pe(null),na=null;function kr(t){var a=t.alternate;X(Ot,Ot.current&1),X(In,t),na===null&&(a===null||eo.current!==null||a.memoizedState!==null)&&(na=t)}function fd(t){X(Ot,Ot.current),X(In,t),na===null&&(na=t)}function tv(t){t.tag===22?(X(Ot,Ot.current),X(In,t),na===null&&(na=t)):Nr()}function Nr(){X(Ot,Ot.current),X(In,In.current)}function zn(t){G(In),na===t&&(na=null),G(Ot)}var Ot=pe(0);function zl(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||bf(i)||xf(i)))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===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var tr=0,je=null,lt=null,Ut=null,Fl=!1,to=!1,yi=!1,Ul=0,ls=0,no=null,Q2=0;function At(){throw Error(o(321))}function hd(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!On(t[i],a[i]))return!1;return!0}function md(t,a,i,s,f,m){return tr=m,je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,j.H=t===null||t.memoizedState===null?Fv:Nd,yi=!1,m=i(s,f),yi=!1,to&&(m=av(a,i,s,f)),nv(t),m}function nv(t){j.H=ds;var a=lt!==null&&lt.next!==null;if(tr=0,Ut=lt=je=null,Fl=!1,ls=0,no=null,a)throw Error(o(300));t===null||qt||(t=t.dependencies,t!==null&&Nl(t)&&(qt=!0))}function av(t,a,i,s){je=t;var f=0;do{if(to&&(no=null),ls=0,to=!1,25<=f)throw Error(o(301));if(f+=1,Ut=lt=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}j.H=Uv,m=a(i,s)}while(to);return m}function V2(){var t=j.H,a=t.useState()[0];return a=typeof a.then=="function"?us(a):a,t=t.useState()[0],(lt!==null?lt.memoizedState:null)!==t&&(je.flags|=1024),a}function pd(){var t=Ul!==0;return Ul=0,t}function vd(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function gd(t){if(Fl){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Fl=!1}tr=0,Ut=lt=je=null,to=!1,ls=Ul=0,no=null}function fn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?je.memoizedState=Ut=t:Ut=Ut.next=t,Ut}function Lt(){if(lt===null){var t=je.alternate;t=t!==null?t.memoizedState:null}else t=lt.next;var a=Ut===null?je.memoizedState:Ut.next;if(a!==null)Ut=a,lt=t;else{if(t===null)throw je.alternate===null?Error(o(467)):Error(o(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Ut===null?je.memoizedState=Ut=t:Ut=Ut.next=t}return Ut}function ql(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function us(t){var a=ls;return ls+=1,no===null&&(no=[]),t=Gp(no,t,a),a=je,(Ut===null?a.memoizedState:Ut.next)===null&&(a=a.alternate,j.H=a===null||a.memoizedState===null?Fv:Nd),t}function Bl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return us(t);if(t.$$typeof===N)return an(t)}throw Error(o(438,String(t)))}function yd(t){var a=null,i=je.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var s=je.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(a={data:s.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=ql(),je.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),s=0;s<t;s++)i[s]=L;return a.index++,i}function nr(t,a){return typeof a=="function"?a(t):a}function Pl(t){var a=Lt();return bd(a,lt,t)}function bd(t,a,i){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=i;var f=t.baseQueue,m=s.pending;if(m!==null){if(f!==null){var x=f.next;f.next=m.next,m.next=x}a.baseQueue=f=m,s.pending=null}if(m=t.baseState,f===null)t.memoizedState=m;else{a=f.next;var T=x=null,R=null,H=a,Z=!1;do{var te=H.lane&-536870913;if(te!==H.lane?(Ve&te)===te:(tr&te)===te){var Q=H.revertLane;if(Q===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),te===Wi&&(Z=!0);else if((tr&Q)===Q){H=H.next,Q===Wi&&(Z=!0);continue}else te={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(T=R=te,x=m):R=R.next=te,je.lanes|=Q,jr|=Q;te=H.action,yi&&i(m,te),m=H.hasEagerState?H.eagerState:i(m,te)}else Q={lane:te,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},R===null?(T=R=Q,x=m):R=R.next=Q,je.lanes|=te,jr|=te;H=H.next}while(H!==null&&H!==a);if(R===null?x=m:R.next=T,!On(m,t.memoizedState)&&(qt=!0,Z&&(i=Xi,i!==null)))throw i;t.memoizedState=m,t.baseState=x,t.baseQueue=R,s.lastRenderedState=m}return f===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function xd(t){var a=Lt(),i=a.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var s=i.dispatch,f=i.pending,m=a.memoizedState;if(f!==null){i.pending=null;var x=f=f.next;do m=t(m,x.action),x=x.next;while(x!==f);On(m,a.memoizedState)||(qt=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,s]}function rv(t,a,i){var s=je,f=Lt(),m=Ye;if(m){if(i===void 0)throw Error(o(407));i=i()}else i=a();var x=!On((lt||f).memoizedState,i);if(x&&(f.memoizedState=i,qt=!0),f=f.queue,Ed(sv.bind(null,s,f,t),[t]),f.getSnapshot!==a||x||Ut!==null&&Ut.memoizedState.tag&1){if(s.flags|=2048,ao(9,{destroy:void 0},ov.bind(null,s,f,i,a),null),ft===null)throw Error(o(349));m||(tr&127)!==0||iv(s,a,i)}return i}function iv(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=je.updateQueue,a===null?(a=ql(),je.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function ov(t,a,i,s){a.value=i,a.getSnapshot=s,lv(a)&&uv(t)}function sv(t,a,i){return i(function(){lv(a)&&uv(t)})}function lv(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!On(t,i)}catch{return!0}}function uv(t){var a=ui(t,2);a!==null&&Tn(a,t,2)}function wd(t){var a=fn();if(typeof t=="function"){var i=t;if(t=i(),yi){Mn(!0);try{i()}finally{Mn(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:t},a}function cv(t,a,i,s){return t.baseState=i,bd(t,lt,typeof s=="function"?s:nr)}function G2(t,a,i,s,f){if(Ql(t))throw Error(o(485));if(t=a.action,t!==null){var m={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};j.T!==null?i(!0):m.isTransition=!1,s(m),i=a.pending,i===null?(m.next=a.pending=m,dv(a,m)):(m.next=i.next,a.pending=i.next=m)}}function dv(t,a){var i=a.action,s=a.payload,f=t.state;if(a.isTransition){var m=j.T,x={};j.T=x;try{var T=i(f,s),R=j.S;R!==null&&R(x,T),fv(t,a,T)}catch(H){Sd(t,a,H)}finally{m!==null&&x.types!==null&&(m.types=x.types),j.T=m}}else try{m=i(f,s),fv(t,a,m)}catch(H){Sd(t,a,H)}}function fv(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){hv(t,a,s)},function(s){return Sd(t,a,s)}):hv(t,a,i)}function hv(t,a,i){a.status="fulfilled",a.value=i,mv(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,dv(t,i)))}function Sd(t,a,i){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do a.status="rejected",a.reason=i,mv(a),a=a.next;while(a!==s)}t.action=null}function mv(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function pv(t,a){return a}function vv(t,a){if(Ye){var i=ft.formState;if(i!==null){e:{var s=je;if(Ye){if(yt){t:{for(var f=yt,m=ta;f.nodeType!==8;){if(!m){f=null;break t}if(f=aa(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){yt=aa(f.nextSibling),s=f.data==="F!";break e}}Er(s)}s=!1}s&&(a=i[0])}}return i=fn(),i.memoizedState=i.baseState=a,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pv,lastRenderedState:a},i.queue=s,i=Lv.bind(null,je,s),s.dispatch=i,s=wd(!1),m=kd.bind(null,je,!1,s.queue),s=fn(),f={state:a,dispatch:null,action:t,pending:null},s.queue=f,i=G2.bind(null,je,f,m,i),f.dispatch=i,s.memoizedState=t,[a,i,!1]}function gv(t){var a=Lt();return yv(a,lt,t)}function yv(t,a,i){if(a=bd(t,a,pv)[0],t=Pl(nr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var s=us(a)}catch(x){throw x===Zi?jl:x}else s=a;a=Lt();var f=a.queue,m=f.dispatch;return i!==a.memoizedState&&(je.flags|=2048,ao(9,{destroy:void 0},Y2.bind(null,f,i),null)),[s,m,t]}function Y2(t,a){t.action=a}function bv(t){var a=Lt(),i=lt;if(i!==null)return yv(a,i,t);Lt(),a=a.memoizedState,i=Lt();var s=i.queue.dispatch;return i.memoizedState=t,[a,s,!1]}function ao(t,a,i,s){return t={tag:t,create:i,deps:s,inst:a,next:null},a=je.updateQueue,a===null&&(a=ql(),je.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(s=i.next,i.next=t,t.next=s,a.lastEffect=t),t}function xv(){return Lt().memoizedState}function Hl(t,a,i,s){var f=fn();je.flags|=t,f.memoizedState=ao(1|a,{destroy:void 0},i,s===void 0?null:s)}function $l(t,a,i,s){var f=Lt();s=s===void 0?null:s;var m=f.memoizedState.inst;lt!==null&&s!==null&&hd(s,lt.memoizedState.deps)?f.memoizedState=ao(a,m,i,s):(je.flags|=t,f.memoizedState=ao(1|a,m,i,s))}function wv(t,a){Hl(8390656,8,t,a)}function Ed(t,a){$l(2048,8,t,a)}function K2(t){je.flags|=4;var a=je.updateQueue;if(a===null)a=ql(),je.updateQueue=a,a.events=[t];else{var i=a.events;i===null?a.events=[t]:i.push(t)}}function Sv(t){var a=Lt().memoizedState;return K2({ref:a,nextImpl:t}),function(){if((Je&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}function Ev(t,a){return $l(4,2,t,a)}function _v(t,a){return $l(4,4,t,a)}function Tv(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Dv(t,a,i){i=i!=null?i.concat([t]):null,$l(4,4,Tv.bind(null,a,t),i)}function _d(){}function Cv(t,a){var i=Lt();a=a===void 0?null:a;var s=i.memoizedState;return a!==null&&hd(a,s[1])?s[0]:(i.memoizedState=[t,a],t)}function kv(t,a){var i=Lt();a=a===void 0?null:a;var s=i.memoizedState;if(a!==null&&hd(a,s[1]))return s[0];if(s=t(),yi){Mn(!0);try{t()}finally{Mn(!1)}}return i.memoizedState=[s,a],s}function Td(t,a,i){return i===void 0||(tr&1073741824)!==0&&(Ve&261930)===0?t.memoizedState=a:(t.memoizedState=i,t=Ng(),je.lanes|=t,jr|=t,i)}function Nv(t,a,i,s){return On(i,a)?i:eo.current!==null?(t=Td(t,i,s),On(t,a)||(qt=!0),t):(tr&42)===0||(tr&1073741824)!==0&&(Ve&261930)===0?(qt=!0,t.memoizedState=i):(t=Ng(),je.lanes|=t,jr|=t,a)}function Av(t,a,i,s,f){var m=Y.p;Y.p=m!==0&&8>m?m:8;var x=j.T,T={};j.T=T,kd(t,!1,a,i);try{var R=f(),H=j.S;if(H!==null&&H(T,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Z=$2(R,s);cs(t,a,Z,qn(t))}else cs(t,a,s,qn(t))}catch(te){cs(t,a,{then:function(){},status:"rejected",reason:te},qn())}finally{Y.p=m,x!==null&&T.types!==null&&(x.types=T.types),j.T=x}}function W2(){}function Dd(t,a,i,s){if(t.tag!==5)throw Error(o(476));var f=Rv(t).queue;Av(t,f,a,le,i===null?W2:function(){return jv(t),i(s)})}function Rv(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:le},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function jv(t){var a=Rv(t);a.next===null&&(a=t.alternate.memoizedState),cs(t,a.next.queue,{},qn())}function Cd(){return an(Cs)}function Mv(){return Lt().memoizedState}function Ov(){return Lt().memoizedState}function X2(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=qn();t=Dr(i);var s=Cr(a,t,i);s!==null&&(Tn(s,a,i),is(s,a,i)),a={cache:nd()},t.payload=a;return}a=a.return}}function Z2(t,a,i){var s=qn();i={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ql(t)?Iv(a,i):(i=Qc(t,a,i,s),i!==null&&(Tn(i,t,s),zv(i,a,s)))}function Lv(t,a,i){var s=qn();cs(t,a,i,s)}function cs(t,a,i,s){var f={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ql(t))Iv(a,f);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var x=a.lastRenderedState,T=m(x,i);if(f.hasEagerState=!0,f.eagerState=T,On(T,x))return Tl(t,a,f,0),ft===null&&_l(),!1}catch{}if(i=Qc(t,a,f,s),i!==null)return Tn(i,t,s),zv(i,a,s),!0}return!1}function kd(t,a,i,s){if(s={lane:2,revertLane:sf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ql(t)){if(a)throw Error(o(479))}else a=Qc(t,i,s,2),a!==null&&Tn(a,t,2)}function Ql(t){var a=t.alternate;return t===je||a!==null&&a===je}function Iv(t,a){to=Fl=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function zv(t,a,i){if((i&4194048)!==0){var s=a.lanes;s&=t.pendingLanes,i|=s,a.lanes=i,gn(t,i)}}var ds={readContext:an,use:Bl,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At};ds.useEffectEvent=At;var Fv={readContext:an,use:Bl,useCallback:function(t,a){return fn().memoizedState=[t,a===void 0?null:a],t},useContext:an,useEffect:wv,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,Hl(4194308,4,Tv.bind(null,a,t),i)},useLayoutEffect:function(t,a){return Hl(4194308,4,t,a)},useInsertionEffect:function(t,a){Hl(4,2,t,a)},useMemo:function(t,a){var i=fn();a=a===void 0?null:a;var s=t();if(yi){Mn(!0);try{t()}finally{Mn(!1)}}return i.memoizedState=[s,a],s},useReducer:function(t,a,i){var s=fn();if(i!==void 0){var f=i(a);if(yi){Mn(!0);try{i(a)}finally{Mn(!1)}}}else f=a;return s.memoizedState=s.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},s.queue=t,t=t.dispatch=Z2.bind(null,je,t),[s.memoizedState,t]},useRef:function(t){var a=fn();return t={current:t},a.memoizedState=t},useState:function(t){t=wd(t);var a=t.queue,i=Lv.bind(null,je,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:_d,useDeferredValue:function(t,a){var i=fn();return Td(i,t,a)},useTransition:function(){var t=wd(!1);return t=Av.bind(null,je,t.queue,!0,!1),fn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var s=je,f=fn();if(Ye){if(i===void 0)throw Error(o(407));i=i()}else{if(i=a(),ft===null)throw Error(o(349));(Ve&127)!==0||iv(s,a,i)}f.memoizedState=i;var m={value:i,getSnapshot:a};return f.queue=m,wv(sv.bind(null,s,m,t),[t]),s.flags|=2048,ao(9,{destroy:void 0},ov.bind(null,s,m,i,a),null),i},useId:function(){var t=fn(),a=ft.identifierPrefix;if(Ye){var i=ka,s=Ca;i=(s&~(1<<32-Gt(s)-1)).toString(32)+i,a="_"+a+"R_"+i,i=Ul++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=Q2++,a="_"+a+"r_"+i.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:Cd,useFormState:vv,useActionState:vv,useOptimistic:function(t){var a=fn();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=kd.bind(null,je,!0,i),i.dispatch=a,[t,a]},useMemoCache:yd,useCacheRefresh:function(){return fn().memoizedState=X2.bind(null,je)},useEffectEvent:function(t){var a=fn(),i={impl:t};return a.memoizedState=i,function(){if((Je&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Nd={readContext:an,use:Bl,useCallback:Cv,useContext:an,useEffect:Ed,useImperativeHandle:Dv,useInsertionEffect:Ev,useLayoutEffect:_v,useMemo:kv,useReducer:Pl,useRef:xv,useState:function(){return Pl(nr)},useDebugValue:_d,useDeferredValue:function(t,a){var i=Lt();return Nv(i,lt.memoizedState,t,a)},useTransition:function(){var t=Pl(nr)[0],a=Lt().memoizedState;return[typeof t=="boolean"?t:us(t),a]},useSyncExternalStore:rv,useId:Mv,useHostTransitionStatus:Cd,useFormState:gv,useActionState:gv,useOptimistic:function(t,a){var i=Lt();return cv(i,lt,t,a)},useMemoCache:yd,useCacheRefresh:Ov};Nd.useEffectEvent=Sv;var Uv={readContext:an,use:Bl,useCallback:Cv,useContext:an,useEffect:Ed,useImperativeHandle:Dv,useInsertionEffect:Ev,useLayoutEffect:_v,useMemo:kv,useReducer:xd,useRef:xv,useState:function(){return xd(nr)},useDebugValue:_d,useDeferredValue:function(t,a){var i=Lt();return lt===null?Td(i,t,a):Nv(i,lt.memoizedState,t,a)},useTransition:function(){var t=xd(nr)[0],a=Lt().memoizedState;return[typeof t=="boolean"?t:us(t),a]},useSyncExternalStore:rv,useId:Mv,useHostTransitionStatus:Cd,useFormState:bv,useActionState:bv,useOptimistic:function(t,a){var i=Lt();return lt!==null?cv(i,lt,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:yd,useCacheRefresh:Ov};Uv.useEffectEvent=Sv;function Ad(t,a,i,s){a=t.memoizedState,i=i(s,a),i=i==null?a:v({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Rd={enqueueSetState:function(t,a,i){t=t._reactInternals;var s=qn(),f=Dr(s);f.payload=a,i!=null&&(f.callback=i),a=Cr(t,f,s),a!==null&&(Tn(a,t,s),is(a,t,s))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var s=qn(),f=Dr(s);f.tag=1,f.payload=a,i!=null&&(f.callback=i),a=Cr(t,f,s),a!==null&&(Tn(a,t,s),is(a,t,s))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=qn(),s=Dr(i);s.tag=2,a!=null&&(s.callback=a),a=Cr(t,s,i),a!==null&&(Tn(a,t,i),is(a,t,i))}};function qv(t,a,i,s,f,m,x){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,m,x):a.prototype&&a.prototype.isPureReactComponent?!Xo(i,s)||!Xo(f,m):!0}function Bv(t,a,i,s){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,s),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,s),a.state!==t&&Rd.enqueueReplaceState(a,a.state,null)}function bi(t,a){var i=a;if("ref"in a){i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}if(t=t.defaultProps){i===a&&(i=v({},i));for(var f in t)i[f]===void 0&&(i[f]=t[f])}return i}function Pv(t){El(t)}function Hv(t){console.error(t)}function $v(t){El(t)}function Vl(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(s){setTimeout(function(){throw s})}}function Qv(t,a,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function jd(t,a,i){return i=Dr(i),i.tag=3,i.payload={element:null},i.callback=function(){Vl(t,a)},i}function Vv(t){return t=Dr(t),t.tag=3,t}function Gv(t,a,i,s){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=s.value;t.payload=function(){return f(m)},t.callback=function(){Qv(a,i,s)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(t.callback=function(){Qv(a,i,s),typeof f!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var T=s.stack;this.componentDidCatch(s.value,{componentStack:T!==null?T:""})})}function J2(t,a,i,s,f){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(a=i.alternate,a!==null&&Ki(a,i,f,!0),i=In.current,i!==null){switch(i.tag){case 31:case 13:return na===null?ru():i.alternate===null&&Rt===0&&(Rt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,s===Ml?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([s]):a.add(s),af(t,s,f)),!1;case 22:return i.flags|=65536,s===Ml?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([s]):i.add(s)),af(t,s,f)),!1}throw Error(o(435,i.tag))}return af(t,s,f),ru(),!1}if(Ye)return a=In.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,s!==Xc&&(t=Error(o(422),{cause:s}),es(Zn(t,i)))):(s!==Xc&&(a=Error(o(423),{cause:s}),es(Zn(a,i))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,s=Zn(s,i),f=jd(t.stateNode,s,f),ld(t,f),Rt!==4&&(Rt=2)),!1;var m=Error(o(520),{cause:s});if(m=Zn(m,i),bs===null?bs=[m]:bs.push(m),Rt!==4&&(Rt=2),a===null)return!0;s=Zn(s,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=f&-f,i.lanes|=t,t=jd(i.stateNode,s,t),ld(i,t),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Mr===null||!Mr.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Vv(f),Gv(f,t,i,s),ld(i,f),!1}i=i.return}while(i!==null);return!1}var Md=Error(o(461)),qt=!1;function rn(t,a,i,s){a.child=t===null?Xp(a,null,i,s):gi(a,t.child,i,s)}function Yv(t,a,i,s,f){i=i.render;var m=a.ref;if("ref"in s){var x={};for(var T in s)T!=="ref"&&(x[T]=s[T])}else x=s;return hi(a),s=md(t,a,i,x,m,f),T=pd(),t!==null&&!qt?(vd(t,a,f),ar(t,a,f)):(Ye&&T&&Kc(a),a.flags|=1,rn(t,a,s,f),a.child)}function Kv(t,a,i,s,f){if(t===null){var m=i.type;return typeof m=="function"&&!Vc(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,Wv(t,a,m,s,f)):(t=Cl(i.type,null,s,a,a.mode,f),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Bd(t,f)){var x=m.memoizedProps;if(i=i.compare,i=i!==null?i:Xo,i(x,s)&&t.ref===a.ref)return ar(t,a,f)}return a.flags|=1,t=Xa(m,s),t.ref=a.ref,t.return=a,a.child=t}function Wv(t,a,i,s,f){if(t!==null){var m=t.memoizedProps;if(Xo(m,s)&&t.ref===a.ref)if(qt=!1,a.pendingProps=s=m,Bd(t,f))(t.flags&131072)!==0&&(qt=!0);else return a.lanes=t.lanes,ar(t,a,f)}return Od(t,a,i,s,f)}function Xv(t,a,i,s){var f=s.children,m=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(s=a.child=t.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~m}else s=0,a.child=null;return Zv(t,a,m,i,s)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Rl(a,m!==null?m.cachePool:null),m!==null?ev(a,m):cd(),tv(a);else return s=a.lanes=536870912,Zv(t,a,m!==null?m.baseLanes|i:i,i,s)}else m!==null?(Rl(a,m.cachePool),ev(a,m),Nr(),a.memoizedState=null):(t!==null&&Rl(a,null),cd(),Nr());return rn(t,a,f,i),a.child}function fs(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Zv(t,a,i,s,f){var m=rd();return m=m===null?null:{parent:Ft._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},t!==null&&Rl(a,null),cd(),tv(a),t!==null&&Ki(t,a,s,!0),a.childLanes=f,null}function Gl(t,a){return a=Kl({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function Jv(t,a,i){return gi(a,t.child,null,i),t=Gl(a,a.pendingProps),t.flags|=2,zn(a),a.memoizedState=null,t}function eS(t,a,i){var s=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(Ye){if(s.mode==="hidden")return t=Gl(a,s),a.lanes=536870912,fs(null,t);if(fd(a),(t=yt)?(t=dy(t,ta),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:wr!==null?{id:Ca,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},i=Ip(t),i.return=a,a.child=i,nn=a,yt=null)):t=null,t===null)throw Er(a);return a.lanes=536870912,null}return Gl(a,s)}var m=t.memoizedState;if(m!==null){var x=m.dehydrated;if(fd(a),f)if(a.flags&256)a.flags&=-257,a=Jv(t,a,i);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(o(558));else if(qt||Ki(t,a,i,!1),f=(i&t.childLanes)!==0,qt||f){if(s=ft,s!==null&&(x=yn(s,i),x!==0&&x!==m.retryLane))throw m.retryLane=x,ui(t,x),Tn(s,t,x),Md;ru(),a=Jv(t,a,i)}else t=m.treeContext,yt=aa(x.nextSibling),nn=a,Ye=!0,Sr=null,ta=!1,t!==null&&Up(a,t),a=Gl(a,s),a.flags|=4096;return a}return t=Xa(t.child,{mode:s.mode,children:s.children}),t.ref=a.ref,a.child=t,t.return=a,t}function Yl(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function Od(t,a,i,s,f){return hi(a),i=md(t,a,i,s,void 0,f),s=pd(),t!==null&&!qt?(vd(t,a,f),ar(t,a,f)):(Ye&&s&&Kc(a),a.flags|=1,rn(t,a,i,f),a.child)}function eg(t,a,i,s,f,m){return hi(a),a.updateQueue=null,i=av(a,s,i,f),nv(t),s=pd(),t!==null&&!qt?(vd(t,a,m),ar(t,a,m)):(Ye&&s&&Kc(a),a.flags|=1,rn(t,a,i,m),a.child)}function tg(t,a,i,s,f){if(hi(a),a.stateNode===null){var m=Qi,x=i.contextType;typeof x=="object"&&x!==null&&(m=an(x)),m=new i(s,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Rd,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=s,m.state=a.memoizedState,m.refs={},od(a),x=i.contextType,m.context=typeof x=="object"&&x!==null?an(x):Qi,m.state=a.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(Ad(a,i,x,s),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&Rd.enqueueReplaceState(m,m.state,null),ss(a,s,m,f),os(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),s=!0}else if(t===null){m=a.stateNode;var T=a.memoizedProps,R=bi(i,T);m.props=R;var H=m.context,Z=i.contextType;x=Qi,typeof Z=="object"&&Z!==null&&(x=an(Z));var te=i.getDerivedStateFromProps;Z=typeof te=="function"||typeof m.getSnapshotBeforeUpdate=="function",T=a.pendingProps!==T,Z||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(T||H!==x)&&Bv(a,m,s,x),Tr=!1;var Q=a.memoizedState;m.state=Q,ss(a,s,m,f),os(),H=a.memoizedState,T||Q!==H||Tr?(typeof te=="function"&&(Ad(a,i,te,s),H=a.memoizedState),(R=Tr||qv(a,i,R,s,Q,H,x))?(Z||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=s,a.memoizedState=H),m.props=s,m.state=H,m.context=x,s=R):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),s=!1)}else{m=a.stateNode,sd(t,a),x=a.memoizedProps,Z=bi(i,x),m.props=Z,te=a.pendingProps,Q=m.context,H=i.contextType,R=Qi,typeof H=="object"&&H!==null&&(R=an(H)),T=i.getDerivedStateFromProps,(H=typeof T=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==te||Q!==R)&&Bv(a,m,s,R),Tr=!1,Q=a.memoizedState,m.state=Q,ss(a,s,m,f),os();var W=a.memoizedState;x!==te||Q!==W||Tr||t!==null&&t.dependencies!==null&&Nl(t.dependencies)?(typeof T=="function"&&(Ad(a,i,T,s),W=a.memoizedState),(Z=Tr||qv(a,i,Z,s,Q,W,R)||t!==null&&t.dependencies!==null&&Nl(t.dependencies))?(H||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,W,R),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,W,R)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=1024),a.memoizedProps=s,a.memoizedState=W),m.props=s,m.state=W,m.context=R,s=Z):(typeof m.componentDidUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===t.memoizedProps&&Q===t.memoizedState||(a.flags|=1024),s=!1)}return m=s,Yl(t,a),s=(a.flags&128)!==0,m||s?(m=a.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&s?(a.child=gi(a,t.child,null,f),a.child=gi(a,null,i,f)):rn(t,a,i,f),a.memoizedState=m.state,t=a.child):t=ar(t,a,f),t}function ng(t,a,i,s){return di(),a.flags|=256,rn(t,a,i,s),a.child}var Ld={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Id(t){return{baseLanes:t,cachePool:Qp()}}function zd(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=Un),t}function ag(t,a,i){var s=a.pendingProps,f=!1,m=(a.flags&128)!==0,x;if((x=m)||(x=t!==null&&t.memoizedState===null?!1:(Ot.current&2)!==0),x&&(f=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,t===null){if(Ye){if(f?kr(a):Nr(),(t=yt)?(t=dy(t,ta),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:wr!==null?{id:Ca,overflow:ka}:null,retryLane:536870912,hydrationErrors:null},i=Ip(t),i.return=a,a.child=i,nn=a,yt=null)):t=null,t===null)throw Er(a);return xf(t)?a.lanes=32:a.lanes=536870912,null}var T=s.children;return s=s.fallback,f?(Nr(),f=a.mode,T=Kl({mode:"hidden",children:T},f),s=ci(s,f,i,null),T.return=a,s.return=a,T.sibling=s,a.child=T,s=a.child,s.memoizedState=Id(i),s.childLanes=zd(t,x,i),a.memoizedState=Ld,fs(null,s)):(kr(a),Fd(a,T))}var R=t.memoizedState;if(R!==null&&(T=R.dehydrated,T!==null)){if(m)a.flags&256?(kr(a),a.flags&=-257,a=Ud(t,a,i)):a.memoizedState!==null?(Nr(),a.child=t.child,a.flags|=128,a=null):(Nr(),T=s.fallback,f=a.mode,s=Kl({mode:"visible",children:s.children},f),T=ci(T,f,i,null),T.flags|=2,s.return=a,T.return=a,s.sibling=T,a.child=s,gi(a,t.child,null,i),s=a.child,s.memoizedState=Id(i),s.childLanes=zd(t,x,i),a.memoizedState=Ld,a=fs(null,s));else if(kr(a),xf(T)){if(x=T.nextSibling&&T.nextSibling.dataset,x)var H=x.dgst;x=H,s=Error(o(419)),s.stack="",s.digest=x,es({value:s,source:null,stack:null}),a=Ud(t,a,i)}else if(qt||Ki(t,a,i,!1),x=(i&t.childLanes)!==0,qt||x){if(x=ft,x!==null&&(s=yn(x,i),s!==0&&s!==R.retryLane))throw R.retryLane=s,ui(t,s),Tn(x,t,s),Md;bf(T)||ru(),a=Ud(t,a,i)}else bf(T)?(a.flags|=192,a.child=t.child,a=null):(t=R.treeContext,yt=aa(T.nextSibling),nn=a,Ye=!0,Sr=null,ta=!1,t!==null&&Up(a,t),a=Fd(a,s.children),a.flags|=4096);return a}return f?(Nr(),T=s.fallback,f=a.mode,R=t.child,H=R.sibling,s=Xa(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,H!==null?T=Xa(H,T):(T=ci(T,f,i,null),T.flags|=2),T.return=a,s.return=a,s.sibling=T,a.child=s,fs(null,s),s=a.child,T=t.child.memoizedState,T===null?T=Id(i):(f=T.cachePool,f!==null?(R=Ft._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=Qp(),T={baseLanes:T.baseLanes|i,cachePool:f}),s.memoizedState=T,s.childLanes=zd(t,x,i),a.memoizedState=Ld,fs(t.child,s)):(kr(a),i=t.child,t=i.sibling,i=Xa(i,{mode:"visible",children:s.children}),i.return=a,i.sibling=null,t!==null&&(x=a.deletions,x===null?(a.deletions=[t],a.flags|=16):x.push(t)),a.child=i,a.memoizedState=null,i)}function Fd(t,a){return a=Kl({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Kl(t,a){return t=Ln(22,t,null,a),t.lanes=0,t}function Ud(t,a,i){return gi(a,t.child,null,i),t=Fd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function rg(t,a,i){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a),ed(t.return,a,i)}function qd(t,a,i,s,f,m){var x=t.memoizedState;x===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:f,treeForkCount:m}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=s,x.tail=i,x.tailMode=f,x.treeForkCount=m)}function ig(t,a,i){var s=a.pendingProps,f=s.revealOrder,m=s.tail;s=s.children;var x=Ot.current,T=(x&2)!==0;if(T?(x=x&1|2,a.flags|=128):x&=1,X(Ot,x),rn(t,a,s,i),s=Ye?Jo:0,!T&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rg(t,i,a);else if(t.tag===19)rg(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(f){case"forwards":for(i=a.child,f=null;i!==null;)t=i.alternate,t!==null&&zl(t)===null&&(f=i),i=i.sibling;i=f,i===null?(f=a.child,a.child=null):(f=i.sibling,i.sibling=null),qd(a,!1,f,i,m,s);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=a.child,a.child=null;f!==null;){if(t=f.alternate,t!==null&&zl(t)===null){a.child=f;break}t=f.sibling,f.sibling=i,i=f,f=t}qd(a,!0,i,null,m,s);break;case"together":qd(a,!1,null,null,void 0,s);break;default:a.memoizedState=null}return a.child}function ar(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),jr|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(Ki(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(o(153));if(a.child!==null){for(t=a.child,i=Xa(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=Xa(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Bd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Nl(t)))}function tS(t,a,i){switch(a.tag){case 3:ge(a,a.stateNode.containerInfo),_r(a,Ft,t.memoizedState.cache),di();break;case 27:case 5:st(a);break;case 4:ge(a,a.stateNode.containerInfo);break;case 10:_r(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,fd(a),null;break;case 13:var s=a.memoizedState;if(s!==null)return s.dehydrated!==null?(kr(a),a.flags|=128,null):(i&a.child.childLanes)!==0?ag(t,a,i):(kr(a),t=ar(t,a,i),t!==null?t.sibling:null);kr(a);break;case 19:var f=(t.flags&128)!==0;if(s=(i&a.childLanes)!==0,s||(Ki(t,a,i,!1),s=(i&a.childLanes)!==0),f){if(s)return ig(t,a,i);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),X(Ot,Ot.current),s)break;return null;case 22:return a.lanes=0,Xv(t,a,i,a.pendingProps);case 24:_r(a,Ft,t.memoizedState.cache)}return ar(t,a,i)}function og(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)qt=!0;else{if(!Bd(t,i)&&(a.flags&128)===0)return qt=!1,tS(t,a,i);qt=(t.flags&131072)!==0}else qt=!1,Ye&&(a.flags&1048576)!==0&&Fp(a,Jo,a.index);switch(a.lanes=0,a.tag){case 16:e:{var s=a.pendingProps;if(t=pi(a.elementType),a.type=t,typeof t=="function")Vc(t)?(s=bi(t,s),a.tag=1,a=tg(null,a,t,s,i)):(a.tag=0,a=Od(null,a,t,s,i));else{if(t!=null){var f=t.$$typeof;if(f===M){a.tag=11,a=Yv(null,a,t,s,i);break e}else if(f===S){a.tag=14,a=Kv(null,a,t,s,i);break e}}throw a=ae(t)||t,Error(o(306,a,""))}}return a;case 0:return Od(t,a,a.type,a.pendingProps,i);case 1:return s=a.type,f=bi(s,a.pendingProps),tg(t,a,s,f,i);case 3:e:{if(ge(a,a.stateNode.containerInfo),t===null)throw Error(o(387));s=a.pendingProps;var m=a.memoizedState;f=m.element,sd(t,a),ss(a,s,null,i);var x=a.memoizedState;if(s=x.cache,_r(a,Ft,s),s!==m.cache&&td(a,[Ft],i,!0),os(),s=x.element,m.isDehydrated)if(m={element:s,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=ng(t,a,s,i);break e}else if(s!==f){f=Zn(Error(o(424)),a),es(f),a=ng(t,a,s,i);break e}else for(t=a.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,yt=aa(t.firstChild),nn=a,Ye=!0,Sr=null,ta=!0,i=Xp(a,null,s,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(di(),s===f){a=ar(t,a,i);break e}rn(t,a,s,i)}a=a.child}return a;case 26:return Yl(t,a),t===null?(i=gy(a.type,null,a.pendingProps,null))?a.memoizedState=i:Ye||(i=a.type,t=a.pendingProps,s=du(ee.current).createElement(i),s[tn]=a,s[bn]=t,on(s,i,t),Kt(s),a.stateNode=s):a.memoizedState=gy(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return st(a),t===null&&Ye&&(s=a.stateNode=my(a.type,a.pendingProps,ee.current),nn=a,ta=!0,f=yt,zr(a.type)?(wf=f,yt=aa(s.firstChild)):yt=f),rn(t,a,a.pendingProps.children,i),Yl(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Ye&&((f=s=yt)&&(s=RS(s,a.type,a.pendingProps,ta),s!==null?(a.stateNode=s,nn=a,yt=aa(s.firstChild),ta=!1,f=!0):f=!1),f||Er(a)),st(a),f=a.type,m=a.pendingProps,x=t!==null?t.memoizedProps:null,s=m.children,vf(f,m)?s=null:x!==null&&vf(f,x)&&(a.flags|=32),a.memoizedState!==null&&(f=md(t,a,V2,null,null,i),Cs._currentValue=f),Yl(t,a),rn(t,a,s,i),a.child;case 6:return t===null&&Ye&&((t=i=yt)&&(i=jS(i,a.pendingProps,ta),i!==null?(a.stateNode=i,nn=a,yt=null,t=!0):t=!1),t||Er(a)),null;case 13:return ag(t,a,i);case 4:return ge(a,a.stateNode.containerInfo),s=a.pendingProps,t===null?a.child=gi(a,null,s,i):rn(t,a,s,i),a.child;case 11:return Yv(t,a,a.type,a.pendingProps,i);case 7:return rn(t,a,a.pendingProps,i),a.child;case 8:return rn(t,a,a.pendingProps.children,i),a.child;case 12:return rn(t,a,a.pendingProps.children,i),a.child;case 10:return s=a.pendingProps,_r(a,a.type,s.value),rn(t,a,s.children,i),a.child;case 9:return f=a.type._context,s=a.pendingProps.children,hi(a),f=an(f),s=s(f),a.flags|=1,rn(t,a,s,i),a.child;case 14:return Kv(t,a,a.type,a.pendingProps,i);case 15:return Wv(t,a,a.type,a.pendingProps,i);case 19:return ig(t,a,i);case 31:return eS(t,a,i);case 22:return Xv(t,a,i,a.pendingProps);case 24:return hi(a),s=an(Ft),t===null?(f=rd(),f===null&&(f=ft,m=nd(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),a.memoizedState={parent:s,cache:f},od(a),_r(a,Ft,f)):((t.lanes&i)!==0&&(sd(t,a),ss(a,null,null,i),os()),f=t.memoizedState,m=a.memoizedState,f.parent!==s?(f={parent:s,cache:s},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),_r(a,Ft,s)):(s=m.cache,_r(a,Ft,s),s!==f.cache&&td(a,[Ft],i,!0))),rn(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function rr(t){t.flags|=4}function Pd(t,a,i,s,f){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(f&335544128)===f)if(t.stateNode.complete)t.flags|=8192;else if(Mg())t.flags|=8192;else throw vi=Ml,id}else t.flags&=-16777217}function sg(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Sy(a))if(Mg())t.flags|=8192;else throw vi=Ml,id}function Wl(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Yt():536870912,t.lanes|=a,so|=a)}function hs(t,a){if(!Ye)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function bt(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,s=0;if(a)for(var f=t.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)i|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=s,t.childLanes=i,a}function nS(t,a,i){var s=a.pendingProps;switch(Wc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(a),null;case 1:return bt(a),null;case 3:return i=a.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),er(Ft),Ne(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Yi(a)?rr(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Zc())),bt(a),null;case 26:var f=a.type,m=a.memoizedState;return t===null?(rr(a),m!==null?(bt(a),sg(a,m)):(bt(a),Pd(a,f,null,s,i))):m?m!==t.memoizedState?(rr(a),bt(a),sg(a,m)):(bt(a),a.flags&=-16777217):(t=t.memoizedProps,t!==s&&rr(a),bt(a),Pd(a,f,t,s,i)),null;case 27:if(dn(a),i=ee.current,f=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==s&&rr(a);else{if(!s){if(a.stateNode===null)throw Error(o(166));return bt(a),null}t=ue.current,Yi(a)?qp(a):(t=my(f,s,i),a.stateNode=t,rr(a))}return bt(a),null;case 5:if(dn(a),f=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==s&&rr(a);else{if(!s){if(a.stateNode===null)throw Error(o(166));return bt(a),null}if(m=ue.current,Yi(a))qp(a);else{var x=du(ee.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof s.is=="string"?x.createElement("select",{is:s.is}):x.createElement("select"),s.multiple?m.multiple=!0:s.size&&(m.size=s.size);break;default:m=typeof s.is=="string"?x.createElement(f,{is:s.is}):x.createElement(f)}}m[tn]=a,m[bn]=s;e:for(x=a.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===a)break e;for(;x.sibling===null;){if(x.return===null||x.return===a)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}a.stateNode=m;e:switch(on(m,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&rr(a)}}return bt(a),Pd(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==s&&rr(a);else{if(typeof s!="string"&&a.stateNode===null)throw Error(o(166));if(t=ee.current,Yi(a)){if(t=a.stateNode,i=a.memoizedProps,s=null,f=nn,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}t[tn]=a,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||ay(t.nodeValue,i)),t||Er(a,!0)}else t=du(t).createTextNode(s),t[tn]=a,a.stateNode=t}return bt(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(s=Yi(a),i!==null){if(t===null){if(!s)throw Error(o(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[tn]=a}else di(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bt(a),t=!1}else i=Zc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(zn(a),a):(zn(a),null);if((a.flags&128)!==0)throw Error(o(558))}return bt(a),null;case 13:if(s=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=Yi(a),s!==null&&s.dehydrated!==null){if(t===null){if(!f)throw Error(o(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[tn]=a}else di(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bt(a),f=!1}else f=Zc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(zn(a),a):(zn(a),null)}return zn(a),(a.flags&128)!==0?(a.lanes=i,a):(i=s!==null,t=t!==null&&t.memoizedState!==null,i&&(s=a.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==f&&(s.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),Wl(a,a.updateQueue),bt(a),null);case 4:return Ne(),t===null&&df(a.stateNode.containerInfo),bt(a),null;case 10:return er(a.type),bt(a),null;case 19:if(G(Ot),s=a.memoizedState,s===null)return bt(a),null;if(f=(a.flags&128)!==0,m=s.rendering,m===null)if(f)hs(s,!1);else{if(Rt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=zl(t),m!==null){for(a.flags|=128,hs(s,!1),t=m.updateQueue,a.updateQueue=t,Wl(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)Lp(i,t),i=i.sibling;return X(Ot,Ot.current&1|2),Ye&&Za(a,s.treeForkCount),a.child}t=t.sibling}s.tail!==null&&$t()>tu&&(a.flags|=128,f=!0,hs(s,!1),a.lanes=4194304)}else{if(!f)if(t=zl(m),t!==null){if(a.flags|=128,f=!0,t=t.updateQueue,a.updateQueue=t,Wl(a,t),hs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!m.alternate&&!Ye)return bt(a),null}else 2*$t()-s.renderingStartTime>tu&&i!==536870912&&(a.flags|=128,f=!0,hs(s,!1),a.lanes=4194304);s.isBackwards?(m.sibling=a.child,a.child=m):(t=s.last,t!==null?t.sibling=m:a.child=m,s.last=m)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=$t(),t.sibling=null,i=Ot.current,X(Ot,f?i&1|2:i&1),Ye&&Za(a,s.treeForkCount),t):(bt(a),null);case 22:case 23:return zn(a),dd(),s=a.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(a.flags|=8192):s&&(a.flags|=8192),s?(i&536870912)!==0&&(a.flags&128)===0&&(bt(a),a.subtreeFlags&6&&(a.flags|=8192)):bt(a),i=a.updateQueue,i!==null&&Wl(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048),t!==null&&G(mi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),er(Ft),bt(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function aS(t,a){switch(Wc(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return er(Ft),Ne(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return dn(a),null;case 31:if(a.memoizedState!==null){if(zn(a),a.alternate===null)throw Error(o(340));di()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(zn(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(o(340));di()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return G(Ot),null;case 4:return Ne(),null;case 10:return er(a.type),null;case 22:case 23:return zn(a),dd(),t!==null&&G(mi),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return er(Ft),null;case 25:return null;default:return null}}function lg(t,a){switch(Wc(a),a.tag){case 3:er(Ft),Ne();break;case 26:case 27:case 5:dn(a);break;case 4:Ne();break;case 31:a.memoizedState!==null&&zn(a);break;case 13:zn(a);break;case 19:G(Ot);break;case 10:er(a.type);break;case 22:case 23:zn(a),dd(),t!==null&&G(mi);break;case 24:er(Ft)}}function ms(t,a){try{var i=a.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&t)===t){s=void 0;var m=i.create,x=i.inst;s=m(),x.destroy=s}i=i.next}while(i!==f)}}catch(T){at(a,a.return,T)}}function Ar(t,a,i){try{var s=a.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next;s=m;do{if((s.tag&t)===t){var x=s.inst,T=x.destroy;if(T!==void 0){x.destroy=void 0,f=a;var R=i,H=T;try{H()}catch(Z){at(f,R,Z)}}}s=s.next}while(s!==m)}}catch(Z){at(a,a.return,Z)}}function ug(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{Jp(a,i)}catch(s){at(t,t.return,s)}}}function cg(t,a,i){i.props=bi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){at(t,a,s)}}function ps(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof i=="function"?t.refCleanup=i(s):i.current=s}}catch(f){at(t,a,f)}}function Na(t,a){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(f){at(t,a,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){at(t,a,f)}else i.current=null}function dg(t){var a=t.type,i=t.memoizedProps,s=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break e;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(f){at(t,t.return,f)}}function Hd(t,a,i){try{var s=t.stateNode;TS(s,t.type,i,a),s[bn]=a}catch(f){at(t,t.return,f)}}function fg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&zr(t.type)||t.tag===4}function $d(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||fg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&zr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Qd(t,a,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Ka));else if(s!==4&&(s===27&&zr(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(Qd(t,a,i),t=t.sibling;t!==null;)Qd(t,a,i),t=t.sibling}function Xl(t,a,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(s!==4&&(s===27&&zr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Xl(t,a,i),t=t.sibling;t!==null;)Xl(t,a,i),t=t.sibling}function hg(t){var a=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);on(a,s,i),a[tn]=t,a[bn]=i}catch(m){at(t,t.return,m)}}var ir=!1,Bt=!1,Vd=!1,mg=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function rS(t,a){if(t=t.containerInfo,mf=yu,t=Dp(t),Uc(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var f=s.anchorOffset,m=s.focusNode;s=s.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var x=0,T=-1,R=-1,H=0,Z=0,te=t,Q=null;t:for(;;){for(var W;te!==i||f!==0&&te.nodeType!==3||(T=x+f),te!==m||s!==0&&te.nodeType!==3||(R=x+s),te.nodeType===3&&(x+=te.nodeValue.length),(W=te.firstChild)!==null;)Q=te,te=W;for(;;){if(te===t)break t;if(Q===i&&++H===f&&(T=x),Q===m&&++Z===s&&(R=x),(W=te.nextSibling)!==null)break;te=Q,Q=te.parentNode}te=W}i=T===-1||R===-1?null:{start:T,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(pf={focusedElem:t,selectionRange:i},yu=!1,Wt=a;Wt!==null;)if(a=Wt,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,Wt=t;else for(;Wt!==null;){switch(a=Wt,m=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)f=t[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=a,f=m.memoizedProps,m=m.memoizedState,s=i.stateNode;try{var ye=bi(i.type,f);t=s.getSnapshotBeforeUpdate(ye,m),s.__reactInternalSnapshotBeforeUpdate=t}catch(Ce){at(i,i.return,Ce)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)yf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":yf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=a.sibling,t!==null){t.return=a.return,Wt=t;break}Wt=a.return}}function pg(t,a,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:sr(t,i),s&4&&ms(5,i);break;case 1:if(sr(t,i),s&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(x){at(i,i.return,x)}else{var f=bi(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(f,a,t.__reactInternalSnapshotBeforeUpdate)}catch(x){at(i,i.return,x)}}s&64&&ug(i),s&512&&ps(i,i.return);break;case 3:if(sr(t,i),s&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Jp(t,a)}catch(x){at(i,i.return,x)}}break;case 27:a===null&&s&4&&hg(i);case 26:case 5:sr(t,i),a===null&&s&4&&dg(i),s&512&&ps(i,i.return);break;case 12:sr(t,i);break;case 31:sr(t,i),s&4&&yg(t,i);break;case 13:sr(t,i),s&4&&bg(t,i),s&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=hS.bind(null,i),MS(t,i))));break;case 22:if(s=i.memoizedState!==null||ir,!s){a=a!==null&&a.memoizedState!==null||Bt,f=ir;var m=Bt;ir=s,(Bt=a)&&!m?lr(t,i,(i.subtreeFlags&8772)!==0):sr(t,i),ir=f,Bt=m}break;case 30:break;default:sr(t,i)}}function vg(t){var a=t.alternate;a!==null&&(t.alternate=null,vg(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Sc(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Et=null,wn=!1;function or(t,a,i){for(i=i.child;i!==null;)gg(t,a,i),i=i.sibling}function gg(t,a,i){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ga,i)}catch{}switch(i.tag){case 26:Bt||Na(i,a),or(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Bt||Na(i,a);var s=Et,f=wn;zr(i.type)&&(Et=i.stateNode,wn=!1),or(t,a,i),_s(i.stateNode),Et=s,wn=f;break;case 5:Bt||Na(i,a);case 6:if(s=Et,f=wn,Et=null,or(t,a,i),Et=s,wn=f,Et!==null)if(wn)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(i.stateNode)}catch(m){at(i,a,m)}else try{Et.removeChild(i.stateNode)}catch(m){at(i,a,m)}break;case 18:Et!==null&&(wn?(t=Et,uy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),vo(t)):uy(Et,i.stateNode));break;case 4:s=Et,f=wn,Et=i.stateNode.containerInfo,wn=!0,or(t,a,i),Et=s,wn=f;break;case 0:case 11:case 14:case 15:Ar(2,i,a),Bt||Ar(4,i,a),or(t,a,i);break;case 1:Bt||(Na(i,a),s=i.stateNode,typeof s.componentWillUnmount=="function"&&cg(i,a,s)),or(t,a,i);break;case 21:or(t,a,i);break;case 22:Bt=(s=Bt)||i.memoizedState!==null,or(t,a,i),Bt=s;break;default:or(t,a,i)}}function yg(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vo(t)}catch(i){at(a,a.return,i)}}}function bg(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vo(t)}catch(i){at(a,a.return,i)}}function iS(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new mg),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new mg),a;default:throw Error(o(435,t.tag))}}function Zl(t,a){var i=iS(t);a.forEach(function(s){if(!i.has(s)){i.add(s);var f=mS.bind(null,t,s);s.then(f,f)}})}function Sn(t,a){var i=a.deletions;if(i!==null)for(var s=0;s<i.length;s++){var f=i[s],m=t,x=a,T=x;e:for(;T!==null;){switch(T.tag){case 27:if(zr(T.type)){Et=T.stateNode,wn=!1;break e}break;case 5:Et=T.stateNode,wn=!1;break e;case 3:case 4:Et=T.stateNode.containerInfo,wn=!0;break e}T=T.return}if(Et===null)throw Error(o(160));gg(m,x,f),Et=null,wn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)xg(a,t),a=a.sibling}var ha=null;function xg(t,a){var i=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Sn(a,t),En(t),s&4&&(Ar(3,t,t.return),ms(3,t),Ar(5,t,t.return));break;case 1:Sn(a,t),En(t),s&512&&(Bt||i===null||Na(i,i.return)),s&64&&ir&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var f=ha;if(Sn(a,t),En(t),s&512&&(Bt||i===null||Na(i,i.return)),s&4){var m=i!==null?i.memoizedState:null;if(s=t.memoizedState,i===null)if(s===null)if(t.stateNode===null){e:{s=t.type,i=t.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Po]||m[tn]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(s),f.head.insertBefore(m,f.querySelector("head > title"))),on(m,s,i),m[tn]=t,Kt(m),s=m;break e;case"link":var x=xy("link","href",f).get(s+(i.href||""));if(x){for(var T=0;T<x.length;T++)if(m=x[T],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(T,1);break t}}m=f.createElement(s),on(m,s,i),f.head.appendChild(m);break;case"meta":if(x=xy("meta","content",f).get(s+(i.content||""))){for(T=0;T<x.length;T++)if(m=x[T],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(T,1);break t}}m=f.createElement(s),on(m,s,i),f.head.appendChild(m);break;default:throw Error(o(468,s))}m[tn]=t,Kt(m),s=m}t.stateNode=s}else wy(f,t.type,t.stateNode);else t.stateNode=by(f,s,t.memoizedProps);else m!==s?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,s===null?wy(f,t.type,t.stateNode):by(f,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Hd(t,t.memoizedProps,i.memoizedProps)}break;case 27:Sn(a,t),En(t),s&512&&(Bt||i===null||Na(i,i.return)),i!==null&&s&4&&Hd(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Sn(a,t),En(t),s&512&&(Bt||i===null||Na(i,i.return)),t.flags&32){f=t.stateNode;try{Fi(f,"")}catch(ye){at(t,t.return,ye)}}s&4&&t.stateNode!=null&&(f=t.memoizedProps,Hd(t,f,i!==null?i.memoizedProps:f)),s&1024&&(Vd=!0);break;case 6:if(Sn(a,t),En(t),s&4){if(t.stateNode===null)throw Error(o(162));s=t.memoizedProps,i=t.stateNode;try{i.nodeValue=s}catch(ye){at(t,t.return,ye)}}break;case 3:if(mu=null,f=ha,ha=fu(a.containerInfo),Sn(a,t),ha=f,En(t),s&4&&i!==null&&i.memoizedState.isDehydrated)try{vo(a.containerInfo)}catch(ye){at(t,t.return,ye)}Vd&&(Vd=!1,wg(t));break;case 4:s=ha,ha=fu(t.stateNode.containerInfo),Sn(a,t),En(t),ha=s;break;case 12:Sn(a,t),En(t);break;case 31:Sn(a,t),En(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Zl(t,s)));break;case 13:Sn(a,t),En(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(eu=$t()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Zl(t,s)));break;case 22:f=t.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,H=ir,Z=Bt;if(ir=H||f,Bt=Z||R,Sn(a,t),Bt=Z,ir=H,En(t),s&8192)e:for(a=t.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(i===null||R||ir||Bt||xi(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){R=i=a;try{if(m=R.stateNode,f)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{T=R.stateNode;var te=R.memoizedProps.style,Q=te!=null&&te.hasOwnProperty("display")?te.display:null;T.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ye){at(R,R.return,ye)}}}else if(a.tag===6){if(i===null){R=a;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(ye){at(R,R.return,ye)}}}else if(a.tag===18){if(i===null){R=a;try{var W=R.stateNode;f?cy(W,!0):cy(R.stateNode,!1)}catch(ye){at(R,R.return,ye)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}s&4&&(s=t.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Zl(t,i))));break;case 19:Sn(a,t),En(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Zl(t,s)));break;case 30:break;case 21:break;default:Sn(a,t),En(t)}}function En(t){var a=t.flags;if(a&2){try{for(var i,s=t.return;s!==null;){if(fg(s)){i=s;break}s=s.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var f=i.stateNode,m=$d(t);Xl(t,m,f);break;case 5:var x=i.stateNode;i.flags&32&&(Fi(x,""),i.flags&=-33);var T=$d(t);Xl(t,T,x);break;case 3:case 4:var R=i.stateNode.containerInfo,H=$d(t);Qd(t,H,R);break;default:throw Error(o(161))}}catch(Z){at(t,t.return,Z)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function wg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;wg(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function sr(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)pg(t,a.alternate,a),a=a.sibling}function xi(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Ar(4,a,a.return),xi(a);break;case 1:Na(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&cg(a,a.return,i),xi(a);break;case 27:_s(a.stateNode);case 26:case 5:Na(a,a.return),xi(a);break;case 22:a.memoizedState===null&&xi(a);break;case 30:xi(a);break;default:xi(a)}t=t.sibling}}function lr(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var s=a.alternate,f=t,m=a,x=m.flags;switch(m.tag){case 0:case 11:case 15:lr(f,m,i),ms(4,m);break;case 1:if(lr(f,m,i),s=m,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(H){at(s,s.return,H)}if(s=m,f=s.updateQueue,f!==null){var T=s.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)Zp(R[f],T)}catch(H){at(s,s.return,H)}}i&&x&64&&ug(m),ps(m,m.return);break;case 27:hg(m);case 26:case 5:lr(f,m,i),i&&s===null&&x&4&&dg(m),ps(m,m.return);break;case 12:lr(f,m,i);break;case 31:lr(f,m,i),i&&x&4&&yg(f,m);break;case 13:lr(f,m,i),i&&x&4&&bg(f,m);break;case 22:m.memoizedState===null&&lr(f,m,i),ps(m,m.return);break;case 30:break;default:lr(f,m,i)}a=a.sibling}}function Gd(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&ts(i))}function Yd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&ts(t))}function ma(t,a,i,s){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Sg(t,a,i,s),a=a.sibling}function Sg(t,a,i,s){var f=a.flags;switch(a.tag){case 0:case 11:case 15:ma(t,a,i,s),f&2048&&ms(9,a);break;case 1:ma(t,a,i,s);break;case 3:ma(t,a,i,s),f&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&ts(t)));break;case 12:if(f&2048){ma(t,a,i,s),t=a.stateNode;try{var m=a.memoizedProps,x=m.id,T=m.onPostCommit;typeof T=="function"&&T(x,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){at(a,a.return,R)}}else ma(t,a,i,s);break;case 31:ma(t,a,i,s);break;case 13:ma(t,a,i,s);break;case 23:break;case 22:m=a.stateNode,x=a.alternate,a.memoizedState!==null?m._visibility&2?ma(t,a,i,s):vs(t,a):m._visibility&2?ma(t,a,i,s):(m._visibility|=2,ro(t,a,i,s,(a.subtreeFlags&10256)!==0||!1)),f&2048&&Gd(x,a);break;case 24:ma(t,a,i,s),f&2048&&Yd(a.alternate,a);break;default:ma(t,a,i,s)}}function ro(t,a,i,s,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=t,x=a,T=i,R=s,H=x.flags;switch(x.tag){case 0:case 11:case 15:ro(m,x,T,R,f),ms(8,x);break;case 23:break;case 22:var Z=x.stateNode;x.memoizedState!==null?Z._visibility&2?ro(m,x,T,R,f):vs(m,x):(Z._visibility|=2,ro(m,x,T,R,f)),f&&H&2048&&Gd(x.alternate,x);break;case 24:ro(m,x,T,R,f),f&&H&2048&&Yd(x.alternate,x);break;default:ro(m,x,T,R,f)}a=a.sibling}}function vs(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,s=a,f=s.flags;switch(s.tag){case 22:vs(i,s),f&2048&&Gd(s.alternate,s);break;case 24:vs(i,s),f&2048&&Yd(s.alternate,s);break;default:vs(i,s)}a=a.sibling}}var gs=8192;function io(t,a,i){if(t.subtreeFlags&gs)for(t=t.child;t!==null;)Eg(t,a,i),t=t.sibling}function Eg(t,a,i){switch(t.tag){case 26:io(t,a,i),t.flags&gs&&t.memoizedState!==null&&QS(i,ha,t.memoizedState,t.memoizedProps);break;case 5:io(t,a,i);break;case 3:case 4:var s=ha;ha=fu(t.stateNode.containerInfo),io(t,a,i),ha=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=gs,gs=16777216,io(t,a,i),gs=s):io(t,a,i));break;default:io(t,a,i)}}function _g(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function ys(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var s=a[i];Wt=s,Dg(s,t)}_g(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tg(t),t=t.sibling}function Tg(t){switch(t.tag){case 0:case 11:case 15:ys(t),t.flags&2048&&Ar(9,t,t.return);break;case 3:ys(t);break;case 12:ys(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Jl(t)):ys(t);break;default:ys(t)}}function Jl(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var s=a[i];Wt=s,Dg(s,t)}_g(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Ar(8,a,a.return),Jl(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,Jl(a));break;default:Jl(a)}t=t.sibling}}function Dg(t,a){for(;Wt!==null;){var i=Wt;switch(i.tag){case 0:case 11:case 15:Ar(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ts(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,Wt=s;else e:for(i=t;Wt!==null;){s=Wt;var f=s.sibling,m=s.return;if(vg(s),s===i){Wt=null;break e}if(f!==null){f.return=m,Wt=f;break e}Wt=m}}}var oS={getCacheForType:function(t){var a=an(Ft),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i},cacheSignal:function(){return an(Ft).controller.signal}},sS=typeof WeakMap=="function"?WeakMap:Map,Je=0,ft=null,$e=null,Ve=0,nt=0,Fn=null,Rr=!1,oo=!1,Kd=!1,ur=0,Rt=0,jr=0,wi=0,Wd=0,Un=0,so=0,bs=null,_n=null,Xd=!1,eu=0,Cg=0,tu=1/0,nu=null,Mr=null,Qt=0,Or=null,lo=null,cr=0,Zd=0,Jd=null,kg=null,xs=0,ef=null;function qn(){return(Je&2)!==0&&Ve!==0?Ve&-Ve:j.T!==null?sf():xc()}function Ng(){if(Un===0)if((Ve&536870912)===0||Ye){var t=Te;Te<<=1,(Te&3932160)===0&&(Te=262144),Un=t}else Un=536870912;return t=In.current,t!==null&&(t.flags|=32),Un}function Tn(t,a,i){(t===ft&&(nt===2||nt===9)||t.cancelPendingCommit!==null)&&(uo(t,0),Lr(t,Ve,Un,!1)),dt(t,i),((Je&2)===0||t!==ft)&&(t===ft&&((Je&2)===0&&(wi|=i),Rt===4&&Lr(t,Ve,Un,!1)),Aa(t))}function Ag(t,a,i){if((Je&6)!==0)throw Error(o(327));var s=!i&&(a&127)===0&&(a&t.expiredLanes)===0||mt(t,a),f=s?cS(t,a):nf(t,a,!0),m=s;do{if(f===0){oo&&!s&&Lr(t,a,0,!1);break}else{if(i=t.current.alternate,m&&!lS(i)){f=nf(t,a,!1),m=!1;continue}if(f===2){if(m=a,t.errorRecoveryDisabledLanes&m)var x=0;else x=t.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var T=t;f=bs;var R=T.current.memoizedState.isDehydrated;if(R&&(uo(T,x).flags|=256),x=nf(T,x,!1),x!==2){if(Kd&&!R){T.errorRecoveryDisabledLanes|=m,wi|=m,f=4;break e}m=_n,_n=f,m!==null&&(_n===null?_n=m:_n.push.apply(_n,m))}f=x}if(m=!1,f!==2)continue}}if(f===1){uo(t,0),Lr(t,a,0,!0);break}e:{switch(s=t,m=f,m){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:Lr(s,a,Un,!Rr);break e;case 2:_n=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(f=eu+300-$t(),10<f)){if(Lr(s,a,Un,!Rr),he(s,0,!0)!==0)break e;cr=a,s.timeoutHandle=sy(Rg.bind(null,s,i,_n,nu,Xd,a,Un,wi,so,Rr,m,"Throttled",-0,0),f);break e}Rg(s,i,_n,nu,Xd,a,Un,wi,so,Rr,m,null,-0,0)}}break}while(!0);Aa(t)}function Rg(t,a,i,s,f,m,x,T,R,H,Z,te,Q,W){if(t.timeoutHandle=-1,te=a.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ka},Eg(a,m,te);var ye=(m&62914560)===m?eu-$t():(m&4194048)===m?Cg-$t():0;if(ye=VS(te,ye),ye!==null){cr=m,t.cancelPendingCommit=ye(Ug.bind(null,t,a,m,i,s,f,x,T,R,Z,te,null,Q,W)),Lr(t,m,x,!H);return}}Ug(t,a,m,i,s,f,x,T,R)}function lS(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var f=i[s],m=f.getSnapshot;f=f.value;try{if(!On(m(),f))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Lr(t,a,i,s){a&=~Wd,a&=~wi,t.suspendedLanes|=a,t.pingedLanes&=~a,s&&(t.warmLanes|=a),s=t.expirationTimes;for(var f=a;0<f;){var m=31-Gt(f),x=1<<m;s[m]=-1,f&=~x}i!==0&&ri(t,i,a)}function au(){return(Je&6)===0?(ws(0),!1):!0}function tf(){if($e!==null){if(nt===0)var t=$e.return;else t=$e,Ja=fi=null,gd(t),Ji=null,as=0,t=$e;for(;t!==null;)lg(t.alternate,t),t=t.return;$e=null}}function uo(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,kS(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),cr=0,tf(),ft=t,$e=i=Xa(t.current,null),Ve=a,nt=0,Fn=null,Rr=!1,oo=mt(t,a),Kd=!1,so=Un=Wd=wi=jr=Rt=0,_n=bs=null,Xd=!1,(a&8)!==0&&(a|=a&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=a;0<s;){var f=31-Gt(s),m=1<<f;a|=t[f],s&=~m}return ur=a,_l(),i}function jg(t,a){je=null,j.H=ds,a===Zi||a===jl?(a=Yp(),nt=3):a===id?(a=Yp(),nt=4):nt=a===Md?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Fn=a,$e===null&&(Rt=1,Vl(t,Zn(a,t.current)))}function Mg(){var t=In.current;return t===null?!0:(Ve&4194048)===Ve?na===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?t===na:!1}function Og(){var t=j.H;return j.H=ds,t===null?ds:t}function Lg(){var t=j.A;return j.A=oS,t}function ru(){Rt=4,Rr||(Ve&4194048)!==Ve&&In.current!==null||(oo=!0),(jr&134217727)===0&&(wi&134217727)===0||ft===null||Lr(ft,Ve,Un,!1)}function nf(t,a,i){var s=Je;Je|=2;var f=Og(),m=Lg();(ft!==t||Ve!==a)&&(nu=null,uo(t,a)),a=!1;var x=Rt;e:do try{if(nt!==0&&$e!==null){var T=$e,R=Fn;switch(nt){case 8:tf(),x=6;break e;case 3:case 2:case 9:case 6:In.current===null&&(a=!0);var H=nt;if(nt=0,Fn=null,co(t,T,R,H),i&&oo){x=0;break e}break;default:H=nt,nt=0,Fn=null,co(t,T,R,H)}}uS(),x=Rt;break}catch(Z){jg(t,Z)}while(!0);return a&&t.shellSuspendCounter++,Ja=fi=null,Je=s,j.H=f,j.A=m,$e===null&&(ft=null,Ve=0,_l()),x}function uS(){for(;$e!==null;)Ig($e)}function cS(t,a){var i=Je;Je|=2;var s=Og(),f=Lg();ft!==t||Ve!==a?(nu=null,tu=$t()+500,uo(t,a)):oo=mt(t,a);e:do try{if(nt!==0&&$e!==null){a=$e;var m=Fn;t:switch(nt){case 1:nt=0,Fn=null,co(t,a,m,1);break;case 2:case 9:if(Vp(m)){nt=0,Fn=null,zg(a);break}a=function(){nt!==2&&nt!==9||ft!==t||(nt=7),Aa(t)},m.then(a,a);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:Vp(m)?(nt=0,Fn=null,zg(a)):(nt=0,Fn=null,co(t,a,m,7));break;case 5:var x=null;switch($e.tag){case 26:x=$e.memoizedState;case 5:case 27:var T=$e;if(x?Sy(x):T.stateNode.complete){nt=0,Fn=null;var R=T.sibling;if(R!==null)$e=R;else{var H=T.return;H!==null?($e=H,iu(H)):$e=null}break t}}nt=0,Fn=null,co(t,a,m,5);break;case 6:nt=0,Fn=null,co(t,a,m,6);break;case 8:tf(),Rt=6;break e;default:throw Error(o(462))}}dS();break}catch(Z){jg(t,Z)}while(!0);return Ja=fi=null,j.H=s,j.A=f,Je=i,$e!==null?0:(ft=null,Ve=0,_l(),Rt)}function dS(){for(;$e!==null&&!Ht();)Ig($e)}function Ig(t){var a=og(t.alternate,t,ur);t.memoizedProps=t.pendingProps,a===null?iu(t):$e=a}function zg(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=eg(i,a,a.pendingProps,a.type,void 0,Ve);break;case 11:a=eg(i,a,a.pendingProps,a.type.render,a.ref,Ve);break;case 5:gd(a);default:lg(i,a),a=$e=Lp(a,ur),a=og(i,a,ur)}t.memoizedProps=t.pendingProps,a===null?iu(t):$e=a}function co(t,a,i,s){Ja=fi=null,gd(a),Ji=null,as=0;var f=a.return;try{if(J2(t,f,a,i,Ve)){Rt=1,Vl(t,Zn(i,t.current)),$e=null;return}}catch(m){if(f!==null)throw $e=f,m;Rt=1,Vl(t,Zn(i,t.current)),$e=null;return}a.flags&32768?(Ye||s===1?t=!0:oo||(Ve&536870912)!==0?t=!1:(Rr=t=!0,(s===2||s===9||s===3||s===6)&&(s=In.current,s!==null&&s.tag===13&&(s.flags|=16384))),Fg(a,t)):iu(a)}function iu(t){var a=t;do{if((a.flags&32768)!==0){Fg(a,Rr);return}t=a.return;var i=nS(a.alternate,a,ur);if(i!==null){$e=i;return}if(a=a.sibling,a!==null){$e=a;return}$e=a=t}while(a!==null);Rt===0&&(Rt=5)}function Fg(t,a){do{var i=aS(t.alternate,t);if(i!==null){i.flags&=32767,$e=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){$e=t;return}$e=t=i}while(t!==null);Rt=6,$e=null}function Ug(t,a,i,s,f,m,x,T,R){t.cancelPendingCommit=null;do ou();while(Qt!==0);if((Je&6)!==0)throw Error(o(327));if(a!==null){if(a===t.current)throw Error(o(177));if(m=a.lanes|a.childLanes,m|=$c,vn(t,i,m,x,T,R),t===ft&&($e=ft=null,Ve=0),lo=a,Or=t,cr=i,Zd=m,Jd=f,kg=s,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,pS(Va,function(){return $g(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,f=Y.p,Y.p=2,x=Je,Je|=4;try{rS(t,a,i)}finally{Je=x,Y.p=f,j.T=s}}Qt=1,qg(),Bg(),Pg()}}function qg(){if(Qt===1){Qt=0;var t=Or,a=lo,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=j.T,j.T=null;var s=Y.p;Y.p=2;var f=Je;Je|=4;try{xg(a,t);var m=pf,x=Dp(t.containerInfo),T=m.focusedElem,R=m.selectionRange;if(x!==T&&T&&T.ownerDocument&&Tp(T.ownerDocument.documentElement,T)){if(R!==null&&Uc(T)){var H=R.start,Z=R.end;if(Z===void 0&&(Z=H),"selectionStart"in T)T.selectionStart=H,T.selectionEnd=Math.min(Z,T.value.length);else{var te=T.ownerDocument||document,Q=te&&te.defaultView||window;if(Q.getSelection){var W=Q.getSelection(),ye=T.textContent.length,Ce=Math.min(R.start,ye),ct=R.end===void 0?Ce:Math.min(R.end,ye);!W.extend&&Ce>ct&&(x=ct,ct=Ce,Ce=x);var q=_p(T,Ce),z=_p(T,ct);if(q&&z&&(W.rangeCount!==1||W.anchorNode!==q.node||W.anchorOffset!==q.offset||W.focusNode!==z.node||W.focusOffset!==z.offset)){var P=te.createRange();P.setStart(q.node,q.offset),W.removeAllRanges(),Ce>ct?(W.addRange(P),W.extend(z.node,z.offset)):(P.setEnd(z.node,z.offset),W.addRange(P))}}}}for(te=[],W=T;W=W.parentNode;)W.nodeType===1&&te.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<te.length;T++){var J=te[T];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}yu=!!mf,pf=mf=null}finally{Je=f,Y.p=s,j.T=i}}t.current=a,Qt=2}}function Bg(){if(Qt===2){Qt=0;var t=Or,a=lo,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=j.T,j.T=null;var s=Y.p;Y.p=2;var f=Je;Je|=4;try{pg(t,a.alternate,a)}finally{Je=f,Y.p=s,j.T=i}}Qt=3}}function Pg(){if(Qt===4||Qt===3){Qt=0,ua();var t=Or,a=lo,i=cr,s=kg;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Qt=5:(Qt=0,lo=Or=null,Hg(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(Mr=null),da(i),a=a.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Ga,a,void 0,(a.current.flags&128)===128)}catch{}if(s!==null){a=j.T,f=Y.p,Y.p=2,j.T=null;try{for(var m=t.onRecoverableError,x=0;x<s.length;x++){var T=s[x];m(T.value,{componentStack:T.stack})}}finally{j.T=a,Y.p=f}}(cr&3)!==0&&ou(),Aa(t),f=t.pendingLanes,(i&261930)!==0&&(f&42)!==0?t===ef?xs++:(xs=0,ef=t):xs=0,ws(0)}}function Hg(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,ts(a)))}function ou(){return qg(),Bg(),Pg(),$g()}function $g(){if(Qt!==5)return!1;var t=Or,a=Zd;Zd=0;var i=da(cr),s=j.T,f=Y.p;try{Y.p=32>i?32:i,j.T=null,i=Jd,Jd=null;var m=Or,x=cr;if(Qt=0,lo=Or=null,cr=0,(Je&6)!==0)throw Error(o(331));var T=Je;if(Je|=4,Tg(m.current),Sg(m,m.current,x,i),Je=T,ws(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Ga,m)}catch{}return!0}finally{Y.p=f,j.T=s,Hg(t,a)}}function Qg(t,a,i){a=Zn(i,a),a=jd(t.stateNode,a,2),t=Cr(t,a,2),t!==null&&(dt(t,2),Aa(t))}function at(t,a,i){if(t.tag===3)Qg(t,t,i);else for(;a!==null;){if(a.tag===3){Qg(a,t,i);break}else if(a.tag===1){var s=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Mr===null||!Mr.has(s))){t=Zn(i,t),i=Vv(2),s=Cr(a,i,2),s!==null&&(Gv(i,s,a,t),dt(s,2),Aa(s));break}}a=a.return}}function af(t,a,i){var s=t.pingCache;if(s===null){s=t.pingCache=new sS;var f=new Set;s.set(a,f)}else f=s.get(a),f===void 0&&(f=new Set,s.set(a,f));f.has(i)||(Kd=!0,f.add(i),t=fS.bind(null,t,a,i),a.then(t,t))}function fS(t,a,i){var s=t.pingCache;s!==null&&s.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ft===t&&(Ve&i)===i&&(Rt===4||Rt===3&&(Ve&62914560)===Ve&&300>$t()-eu?(Je&2)===0&&uo(t,0):Wd|=i,so===Ve&&(so=0)),Aa(t)}function Vg(t,a){a===0&&(a=Yt()),t=ui(t,a),t!==null&&(dt(t,a),Aa(t))}function hS(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),Vg(t,i)}function mS(t,a){var i=0;switch(t.tag){case 31:case 13:var s=t.stateNode,f=t.memoizedState;f!==null&&(i=f.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(a),Vg(t,i)}function pS(t,a){return $a(t,a)}var su=null,fo=null,rf=!1,lu=!1,of=!1,Ir=0;function Aa(t){t!==fo&&t.next===null&&(fo===null?su=fo=t:fo=fo.next=t),lu=!0,rf||(rf=!0,gS())}function ws(t,a){if(!of&&lu){of=!0;do for(var i=!1,s=su;s!==null;){if(t!==0){var f=s.pendingLanes;if(f===0)var m=0;else{var x=s.suspendedLanes,T=s.pingedLanes;m=(1<<31-Gt(42|t)+1)-1,m&=f&~(x&~T),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Wg(s,m))}else m=Ve,m=he(s,s===ft?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(m&3)===0||mt(s,m)||(i=!0,Wg(s,m));s=s.next}while(i);of=!1}}function vS(){Gg()}function Gg(){lu=rf=!1;var t=0;Ir!==0&&CS()&&(t=Ir);for(var a=$t(),i=null,s=su;s!==null;){var f=s.next,m=Yg(s,a);m===0?(s.next=null,i===null?su=f:i.next=f,f===null&&(fo=i)):(i=s,(t!==0||(m&3)!==0)&&(lu=!0)),s=f}Qt!==0&&Qt!==5||ws(t),Ir!==0&&(Ir=0)}function Yg(t,a){for(var i=t.suspendedLanes,s=t.pingedLanes,f=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var x=31-Gt(m),T=1<<x,R=f[x];R===-1?((T&i)===0||(T&s)!==0)&&(f[x]=zt(T,a)):R<=a&&(t.expiredLanes|=T),m&=~T}if(a=ft,i=Ve,i=he(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,i===0||t===a&&(nt===2||nt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Ta(s),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||mt(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(s!==null&&Ta(s),da(i)){case 2:case 8:i=ki;break;case 32:i=Va;break;case 268435456:i=ca;break;default:i=Va}return s=Kg.bind(null,t),i=$a(i,s),t.callbackPriority=a,t.callbackNode=i,a}return s!==null&&s!==null&&Ta(s),t.callbackPriority=2,t.callbackNode=null,2}function Kg(t,a){if(Qt!==0&&Qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(ou()&&t.callbackNode!==i)return null;var s=Ve;return s=he(t,t===ft?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Ag(t,s,a),Yg(t,$t()),t.callbackNode!=null&&t.callbackNode===i?Kg.bind(null,t):null)}function Wg(t,a){if(ou())return null;Ag(t,a,!0)}function gS(){NS(function(){(Je&6)!==0?$a(Qa,vS):Gg()})}function sf(){if(Ir===0){var t=Wi;t===0&&(t=He,He<<=1,(He&261888)===0&&(He=256)),Ir=t}return Ir}function Xg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:vl(""+t)}function Zg(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function yS(t,a,i,s,f){if(a==="submit"&&i&&i.stateNode===f){var m=Xg((f[bn]||null).action),x=s.submitter;x&&(a=(a=x[bn]||null)?Xg(a.formAction):x.getAttribute("formAction"),a!==null&&(m=a,x=null));var T=new xl("action","action",null,s,f);t.push({event:T,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Ir!==0){var R=x?Zg(f,x):new FormData(f);Dd(i,{pending:!0,data:R,method:f.method,action:m},null,R)}}else typeof m=="function"&&(T.preventDefault(),R=x?Zg(f,x):new FormData(f),Dd(i,{pending:!0,data:R,method:f.method,action:m},m,R))},currentTarget:f}]})}}for(var lf=0;lf<Hc.length;lf++){var uf=Hc[lf],bS=uf.toLowerCase(),xS=uf[0].toUpperCase()+uf.slice(1);fa(bS,"on"+xS)}fa(Np,"onAnimationEnd"),fa(Ap,"onAnimationIteration"),fa(Rp,"onAnimationStart"),fa("dblclick","onDoubleClick"),fa("focusin","onFocus"),fa("focusout","onBlur"),fa(I2,"onTransitionRun"),fa(z2,"onTransitionStart"),fa(F2,"onTransitionCancel"),fa(jp,"onTransitionEnd"),Ii("onMouseEnter",["mouseout","mouseover"]),Ii("onMouseLeave",["mouseout","mouseover"]),Ii("onPointerEnter",["pointerout","pointerover"]),Ii("onPointerLeave",["pointerout","pointerover"]),ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ii("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ii("onBeforeInput",["compositionend","keypress","textInput","paste"]),ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ii("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="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(" "),wS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function Jg(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var s=t[i],f=s.event;s=s.listeners;e:{var m=void 0;if(a)for(var x=s.length-1;0<=x;x--){var T=s[x],R=T.instance,H=T.currentTarget;if(T=T.listener,R!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=H;try{m(f)}catch(Z){El(Z)}f.currentTarget=null,m=R}else for(x=0;x<s.length;x++){if(T=s[x],R=T.instance,H=T.currentTarget,T=T.listener,R!==m&&f.isPropagationStopped())break e;m=T,f.currentTarget=H;try{m(f)}catch(Z){El(Z)}f.currentTarget=null,m=R}}}}function Qe(t,a){var i=a[wc];i===void 0&&(i=a[wc]=new Set);var s=t+"__bubble";i.has(s)||(ey(a,t,2,!1),i.add(s))}function cf(t,a,i){var s=0;a&&(s|=4),ey(i,t,s,a)}var uu="_reactListening"+Math.random().toString(36).slice(2);function df(t){if(!t[uu]){t[uu]=!0,Gm.forEach(function(i){i!=="selectionchange"&&(wS.has(i)||cf(i,!1,t),cf(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[uu]||(a[uu]=!0,cf("selectionchange",!1,a))}}function ey(t,a,i,s){switch(Ny(a)){case 2:var f=KS;break;case 8:f=WS;break;default:f=Df}i=f.bind(null,a,i,t),f=void 0,!Ac||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),s?f!==void 0?t.addEventListener(a,i,{capture:!0,passive:f}):t.addEventListener(a,i,!0):f!==void 0?t.addEventListener(a,i,{passive:f}):t.addEventListener(a,i,!1)}function ff(t,a,i,s,f){var m=s;if((a&1)===0&&(a&2)===0&&s!==null)e:for(;;){if(s===null)return;var x=s.tag;if(x===3||x===4){var T=s.stateNode.containerInfo;if(T===f)break;if(x===4)for(x=s.return;x!==null;){var R=x.tag;if((R===3||R===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;T!==null;){if(x=Mi(T),x===null)return;if(R=x.tag,R===5||R===6||R===26||R===27){s=m=x;continue e}T=T.parentNode}}s=s.return}ip(function(){var H=m,Z=kc(i),te=[];e:{var Q=Mp.get(t);if(Q!==void 0){var W=xl,ye=t;switch(t){case"keypress":if(yl(i)===0)break e;case"keydown":case"keyup":W=m2;break;case"focusin":ye="focus",W=Oc;break;case"focusout":ye="blur",W=Oc;break;case"beforeblur":case"afterblur":W=Oc;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=lp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=n2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=g2;break;case Np:case Ap:case Rp:W=i2;break;case jp:W=b2;break;case"scroll":case"scrollend":W=e2;break;case"wheel":W=w2;break;case"copy":case"cut":case"paste":W=s2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=cp;break;case"toggle":case"beforetoggle":W=E2}var Ce=(a&4)!==0,ct=!Ce&&(t==="scroll"||t==="scrollend"),q=Ce?Q!==null?Q+"Capture":null:Q;Ce=[];for(var z=H,P;z!==null;){var J=z;if(P=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||P===null||q===null||(J=$o(z,q),J!=null&&Ce.push(Es(z,J,P))),ct)break;z=z.return}0<Ce.length&&(Q=new W(Q,ye,null,i,Z),te.push({event:Q,listeners:Ce}))}}if((a&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",W=t==="mouseout"||t==="pointerout",Q&&i!==Cc&&(ye=i.relatedTarget||i.fromElement)&&(Mi(ye)||ye[ji]))break e;if((W||Q)&&(Q=Z.window===Z?Z:(Q=Z.ownerDocument)?Q.defaultView||Q.parentWindow:window,W?(ye=i.relatedTarget||i.toElement,W=H,ye=ye?Mi(ye):null,ye!==null&&(ct=u(ye),Ce=ye.tag,ye!==ct||Ce!==5&&Ce!==27&&Ce!==6)&&(ye=null)):(W=null,ye=H),W!==ye)){if(Ce=lp,J="onMouseLeave",q="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(Ce=cp,J="onPointerLeave",q="onPointerEnter",z="pointer"),ct=W==null?Q:Ho(W),P=ye==null?Q:Ho(ye),Q=new Ce(J,z+"leave",W,i,Z),Q.target=ct,Q.relatedTarget=P,J=null,Mi(Z)===H&&(Ce=new Ce(q,z+"enter",ye,i,Z),Ce.target=P,Ce.relatedTarget=ct,J=Ce),ct=J,W&&ye)t:{for(Ce=SS,q=W,z=ye,P=0,J=q;J;J=Ce(J))P++;J=0;for(var Ee=z;Ee;Ee=Ce(Ee))J++;for(;0<P-J;)q=Ce(q),P--;for(;0<J-P;)z=Ce(z),J--;for(;P--;){if(q===z||z!==null&&q===z.alternate){Ce=q;break t}q=Ce(q),z=Ce(z)}Ce=null}else Ce=null;W!==null&&ty(te,Q,W,Ce,!1),ye!==null&&ct!==null&&ty(te,ct,ye,Ce,!0)}}e:{if(Q=H?Ho(H):window,W=Q.nodeName&&Q.nodeName.toLowerCase(),W==="select"||W==="input"&&Q.type==="file")var Xe=yp;else if(vp(Q))if(bp)Xe=M2;else{Xe=R2;var xe=A2}else W=Q.nodeName,!W||W.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?H&&Dc(H.elementType)&&(Xe=yp):Xe=j2;if(Xe&&(Xe=Xe(t,H))){gp(te,Xe,i,Z);break e}xe&&xe(t,Q,H),t==="focusout"&&H&&Q.type==="number"&&H.memoizedProps.value!=null&&Tc(Q,"number",Q.value)}switch(xe=H?Ho(H):window,t){case"focusin":(vp(xe)||xe.contentEditable==="true")&&(Pi=xe,qc=H,Zo=null);break;case"focusout":Zo=qc=Pi=null;break;case"mousedown":Bc=!0;break;case"contextmenu":case"mouseup":case"dragend":Bc=!1,Cp(te,i,Z);break;case"selectionchange":if(L2)break;case"keydown":case"keyup":Cp(te,i,Z)}var Me;if(Ic)e:{switch(t){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Bi?mp(t,i)&&(Ge="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ge="onCompositionStart");Ge&&(dp&&i.locale!=="ko"&&(Bi||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Bi&&(Me=op()):(xr=Z,Rc="value"in xr?xr.value:xr.textContent,Bi=!0)),xe=cu(H,Ge),0<xe.length&&(Ge=new up(Ge,t,null,i,Z),te.push({event:Ge,listeners:xe}),Me?Ge.data=Me:(Me=pp(i),Me!==null&&(Ge.data=Me)))),(Me=T2?D2(t,i):C2(t,i))&&(Ge=cu(H,"onBeforeInput"),0<Ge.length&&(xe=new up("onBeforeInput","beforeinput",null,i,Z),te.push({event:xe,listeners:Ge}),xe.data=Me)),yS(te,t,H,i,Z)}Jg(te,a)})}function Es(t,a,i){return{instance:t,listener:a,currentTarget:i}}function cu(t,a){for(var i=a+"Capture",s=[];t!==null;){var f=t,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=$o(t,i),f!=null&&s.unshift(Es(t,f,m)),f=$o(t,a),f!=null&&s.push(Es(t,f,m))),t.tag===3)return s;t=t.return}return[]}function SS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ty(t,a,i,s,f){for(var m=a._reactName,x=[];i!==null&&i!==s;){var T=i,R=T.alternate,H=T.stateNode;if(T=T.tag,R!==null&&R===s)break;T!==5&&T!==26&&T!==27||H===null||(R=H,f?(H=$o(i,m),H!=null&&x.unshift(Es(i,H,R))):f||(H=$o(i,m),H!=null&&x.push(Es(i,H,R)))),i=i.return}x.length!==0&&t.push({event:a,listeners:x})}var ES=/\r\n?/g,_S=/\u0000|\uFFFD/g;function ny(t){return(typeof t=="string"?t:""+t).replace(ES,`
10
+ `).replace(_S,"")}function ay(t,a){return a=ny(a),ny(t)===a}function ut(t,a,i,s,f,m){switch(i){case"children":typeof s=="string"?a==="body"||a==="textarea"&&s===""||Fi(t,s):(typeof s=="number"||typeof s=="bigint")&&a!=="body"&&Fi(t,""+s);break;case"className":ml(t,"class",s);break;case"tabIndex":ml(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ml(t,i,s);break;case"style":ap(t,s,m);break;case"data":if(a!=="object"){ml(t,"data",s);break}case"src":case"href":if(s===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=vl(""+s),t.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(i,"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 m=="function"&&(i==="formAction"?(a!=="input"&&ut(t,a,"name",f.name,f,null),ut(t,a,"formEncType",f.formEncType,f,null),ut(t,a,"formMethod",f.formMethod,f,null),ut(t,a,"formTarget",f.formTarget,f,null)):(ut(t,a,"encType",f.encType,f,null),ut(t,a,"method",f.method,f,null),ut(t,a,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=vl(""+s),t.setAttribute(i,s);break;case"onClick":s!=null&&(t.onclick=Ka);break;case"onScroll":s!=null&&Qe("scroll",t);break;case"onScrollEnd":s!=null&&Qe("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}i=vl(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""+s):t.removeAttribute(i);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":s===!0?t.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,s):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(i,s):t.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(i):t.setAttribute(i,s);break;case"popover":Qe("beforetoggle",t),Qe("toggle",t),hl(t,"popover",s);break;case"xlinkActuate":Ya(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Ya(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Ya(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Ya(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Ya(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Ya(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Ya(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Ya(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Ya(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":hl(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Zw.get(i)||i,hl(t,i,s))}}function hf(t,a,i,s,f,m){switch(i){case"style":ap(t,s,m);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(i=s.__html,i!=null){if(f.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof s=="string"?Fi(t,s):(typeof s=="number"||typeof s=="bigint")&&Fi(t,""+s);break;case"onScroll":s!=null&&Qe("scroll",t);break;case"onScrollEnd":s!=null&&Qe("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Ka);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ym.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),a=i.slice(2,f?i.length-7:void 0),m=t[bn]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(a,m,f),typeof s=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,s,f);break e}i in t?t[i]=s:s===!0?t.setAttribute(i,""):hl(t,i,s)}}}function on(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",t),Qe("load",t);var s=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var x=i[m];if(x!=null)switch(m){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:ut(t,a,m,x,i,null)}}f&&ut(t,a,"srcSet",i.srcSet,i,null),s&&ut(t,a,"src",i.src,i,null);return;case"input":Qe("invalid",t);var T=m=x=f=null,R=null,H=null;for(s in i)if(i.hasOwnProperty(s)){var Z=i[s];if(Z!=null)switch(s){case"name":f=Z;break;case"type":x=Z;break;case"checked":R=Z;break;case"defaultChecked":H=Z;break;case"value":m=Z;break;case"defaultValue":T=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,a));break;default:ut(t,a,s,Z,i,null)}}Jm(t,m,T,R,H,x,f,!1);return;case"select":Qe("invalid",t),s=x=m=null;for(f in i)if(i.hasOwnProperty(f)&&(T=i[f],T!=null))switch(f){case"value":m=T;break;case"defaultValue":x=T;break;case"multiple":s=T;default:ut(t,a,f,T,i,null)}a=m,i=x,t.multiple=!!s,a!=null?zi(t,!!s,a,!1):i!=null&&zi(t,!!s,i,!0);return;case"textarea":Qe("invalid",t),m=f=s=null;for(x in i)if(i.hasOwnProperty(x)&&(T=i[x],T!=null))switch(x){case"value":s=T;break;case"defaultValue":f=T;break;case"children":m=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(91));break;default:ut(t,a,x,T,i,null)}tp(t,s,f,m);return;case"option":for(R in i)i.hasOwnProperty(R)&&(s=i[R],s!=null)&&(R==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":ut(t,a,R,s,i,null));return;case"dialog":Qe("beforetoggle",t),Qe("toggle",t),Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":Qe("load",t);break;case"video":case"audio":for(s=0;s<Ss.length;s++)Qe(Ss[s],t);break;case"image":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"embed":case"source":case"link":Qe("error",t),Qe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in i)if(i.hasOwnProperty(H)&&(s=i[H],s!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:ut(t,a,H,s,i,null)}return;default:if(Dc(a)){for(Z in i)i.hasOwnProperty(Z)&&(s=i[Z],s!==void 0&&hf(t,a,Z,s,i,void 0));return}}for(T in i)i.hasOwnProperty(T)&&(s=i[T],s!=null&&ut(t,a,T,s,i,null))}function TS(t,a,i,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,x=null,T=null,R=null,H=null,Z=null;for(W in i){var te=i[W];if(i.hasOwnProperty(W)&&te!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":R=te;default:s.hasOwnProperty(W)||ut(t,a,W,null,s,te)}}for(var Q in s){var W=s[Q];if(te=i[Q],s.hasOwnProperty(Q)&&(W!=null||te!=null))switch(Q){case"type":m=W;break;case"name":f=W;break;case"checked":H=W;break;case"defaultChecked":Z=W;break;case"value":x=W;break;case"defaultValue":T=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(o(137,a));break;default:W!==te&&ut(t,a,Q,W,s,te)}}_c(t,x,T,R,H,Z,m,f);return;case"select":W=x=T=Q=null;for(m in i)if(R=i[m],i.hasOwnProperty(m)&&R!=null)switch(m){case"value":break;case"multiple":W=R;default:s.hasOwnProperty(m)||ut(t,a,m,null,s,R)}for(f in s)if(m=s[f],R=i[f],s.hasOwnProperty(f)&&(m!=null||R!=null))switch(f){case"value":Q=m;break;case"defaultValue":T=m;break;case"multiple":x=m;default:m!==R&&ut(t,a,f,m,s,R)}a=T,i=x,s=W,Q!=null?zi(t,!!i,Q,!1):!!s!=!!i&&(a!=null?zi(t,!!i,a,!0):zi(t,!!i,i?[]:"",!1));return;case"textarea":W=Q=null;for(T in i)if(f=i[T],i.hasOwnProperty(T)&&f!=null&&!s.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:ut(t,a,T,null,s,f)}for(x in s)if(f=s[x],m=i[x],s.hasOwnProperty(x)&&(f!=null||m!=null))switch(x){case"value":Q=f;break;case"defaultValue":W=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:f!==m&&ut(t,a,x,f,s,m)}ep(t,Q,W);return;case"option":for(var ye in i)Q=i[ye],i.hasOwnProperty(ye)&&Q!=null&&!s.hasOwnProperty(ye)&&(ye==="selected"?t.selected=!1:ut(t,a,ye,null,s,Q));for(R in s)Q=s[R],W=i[R],s.hasOwnProperty(R)&&Q!==W&&(Q!=null||W!=null)&&(R==="selected"?t.selected=Q&&typeof Q!="function"&&typeof Q!="symbol":ut(t,a,R,Q,s,W));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 Ce in i)Q=i[Ce],i.hasOwnProperty(Ce)&&Q!=null&&!s.hasOwnProperty(Ce)&&ut(t,a,Ce,null,s,Q);for(H in s)if(Q=s[H],W=i[H],s.hasOwnProperty(H)&&Q!==W&&(Q!=null||W!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,a));break;default:ut(t,a,H,Q,s,W)}return;default:if(Dc(a)){for(var ct in i)Q=i[ct],i.hasOwnProperty(ct)&&Q!==void 0&&!s.hasOwnProperty(ct)&&hf(t,a,ct,void 0,s,Q);for(Z in s)Q=s[Z],W=i[Z],!s.hasOwnProperty(Z)||Q===W||Q===void 0&&W===void 0||hf(t,a,Z,Q,s,W);return}}for(var q in i)Q=i[q],i.hasOwnProperty(q)&&Q!=null&&!s.hasOwnProperty(q)&&ut(t,a,q,null,s,Q);for(te in s)Q=s[te],W=i[te],!s.hasOwnProperty(te)||Q===W||Q==null&&W==null||ut(t,a,te,Q,s,W)}function ry(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function DS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var f=i[s],m=f.transferSize,x=f.initiatorType,T=f.duration;if(m&&T&&ry(x)){for(x=0,T=f.responseEnd,s+=1;s<i.length;s++){var R=i[s],H=R.startTime;if(H>T)break;var Z=R.transferSize,te=R.initiatorType;Z&&ry(te)&&(R=R.responseEnd,x+=Z*(R<T?1:(T-H)/(R-H)))}if(--s,a+=8*(m+x)/(f.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var mf=null,pf=null;function du(t){return t.nodeType===9?t:t.ownerDocument}function iy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oy(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function vf(t,a){return t==="textarea"||t==="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 gf=null;function CS(){var t=window.event;return t&&t.type==="popstate"?t===gf?!1:(gf=t,!0):(gf=null,!1)}var sy=typeof setTimeout=="function"?setTimeout:void 0,kS=typeof clearTimeout=="function"?clearTimeout:void 0,ly=typeof Promise=="function"?Promise:void 0,NS=typeof queueMicrotask=="function"?queueMicrotask:typeof ly<"u"?function(t){return ly.resolve(null).then(t).catch(AS)}:sy;function AS(t){setTimeout(function(){throw t})}function zr(t){return t==="head"}function uy(t,a){var i=a,s=0;do{var f=i.nextSibling;if(t.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(s===0){t.removeChild(f),vo(a);return}s--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")s++;else if(i==="html")_s(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,_s(i);for(var m=i.firstChild;m;){var x=m.nextSibling,T=m.nodeName;m[Po]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=x}}else i==="body"&&_s(t.ownerDocument.body);i=f}while(i);vo(a)}function cy(t,a){var i=t;t=0;do{var s=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=s}while(i)}function yf(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":yf(i),Sc(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function RS(t,a,i,s){for(;t.nodeType===1;){var f=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Po])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=aa(t.nextSibling),t===null)break}return null}function jS(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=aa(t.nextSibling),t===null))return null;return t}function dy(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=aa(t.nextSibling),t===null))return null;return t}function bf(t){return t.data==="$?"||t.data==="$~"}function xf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function MS(t,a){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||i.readyState!=="loading")a();else{var s=function(){a(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function aa(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var wf=null;function fy(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(a===0)return aa(t.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}t=t.nextSibling}return null}function hy(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return t;a--}else i!=="/$"&&i!=="/&"||a++}t=t.previousSibling}return null}function my(t,a,i){switch(a=du(i),t){case"html":if(t=a.documentElement,!t)throw Error(o(452));return t;case"head":if(t=a.head,!t)throw Error(o(453));return t;case"body":if(t=a.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function _s(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Sc(t)}var ra=new Map,py=new Set;function fu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var dr=Y.d;Y.d={f:OS,r:LS,D:IS,C:zS,L:FS,m:US,X:BS,S:qS,M:PS};function OS(){var t=dr.f(),a=au();return t||a}function LS(t){var a=Oi(t);a!==null&&a.tag===5&&a.type==="form"?jv(a):dr.r(t)}var ho=typeof document>"u"?null:document;function vy(t,a,i){var s=ho;if(s&&typeof a=="string"&&a){var f=Wn(a);f='link[rel="'+t+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),py.has(f)||(py.add(f),t={rel:t,crossOrigin:i,href:a},s.querySelector(f)===null&&(a=s.createElement("link"),on(a,"link",t),Kt(a),s.head.appendChild(a)))}}function IS(t){dr.D(t),vy("dns-prefetch",t,null)}function zS(t,a){dr.C(t,a),vy("preconnect",t,a)}function FS(t,a,i){dr.L(t,a,i);var s=ho;if(s&&t&&a){var f='link[rel="preload"][as="'+Wn(a)+'"]';a==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Wn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Wn(i.imageSizes)+'"]')):f+='[href="'+Wn(t)+'"]';var m=f;switch(a){case"style":m=mo(t);break;case"script":m=po(t)}ra.has(m)||(t=v({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),ra.set(m,t),s.querySelector(f)!==null||a==="style"&&s.querySelector(Ts(m))||a==="script"&&s.querySelector(Ds(m))||(a=s.createElement("link"),on(a,"link",t),Kt(a),s.head.appendChild(a)))}}function US(t,a){dr.m(t,a);var i=ho;if(i&&t){var s=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Wn(s)+'"][href="'+Wn(t)+'"]',m=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=po(t)}if(!ra.has(m)&&(t=v({rel:"modulepreload",href:t},a),ra.set(m,t),i.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ds(m)))return}s=i.createElement("link"),on(s,"link",t),Kt(s),i.head.appendChild(s)}}}function qS(t,a,i){dr.S(t,a,i);var s=ho;if(s&&t){var f=Li(s).hoistableStyles,m=mo(t);a=a||"default";var x=f.get(m);if(!x){var T={loading:0,preload:null};if(x=s.querySelector(Ts(m)))T.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":a},i),(i=ra.get(m))&&Sf(t,i);var R=x=s.createElement("link");Kt(R),on(R,"link",t),R._p=new Promise(function(H,Z){R.onload=H,R.onerror=Z}),R.addEventListener("load",function(){T.loading|=1}),R.addEventListener("error",function(){T.loading|=2}),T.loading|=4,hu(x,a,s)}x={type:"stylesheet",instance:x,count:1,state:T},f.set(m,x)}}}function BS(t,a){dr.X(t,a);var i=ho;if(i&&t){var s=Li(i).hoistableScripts,f=po(t),m=s.get(f);m||(m=i.querySelector(Ds(f)),m||(t=v({src:t,async:!0},a),(a=ra.get(f))&&Ef(t,a),m=i.createElement("script"),Kt(m),on(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function PS(t,a){dr.M(t,a);var i=ho;if(i&&t){var s=Li(i).hoistableScripts,f=po(t),m=s.get(f);m||(m=i.querySelector(Ds(f)),m||(t=v({src:t,async:!0,type:"module"},a),(a=ra.get(f))&&Ef(t,a),m=i.createElement("script"),Kt(m),on(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},s.set(f,m))}}function gy(t,a,i,s){var f=(f=ee.current)?fu(f):null;if(!f)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=mo(i.href),i=Li(f).hoistableStyles,s=i.get(a),s||(s={type:"style",instance:null,count:0,state:null},i.set(a,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=mo(i.href);var m=Li(f).hoistableStyles,x=m.get(t);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,x),(m=f.querySelector(Ts(t)))&&!m._p&&(x.instance=m,x.state.loading=5),ra.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ra.set(t,i),m||HS(f,t,i,x.state))),a&&s===null)throw Error(o(528,""));return x}if(a&&s!==null)throw Error(o(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=po(i),i=Li(f).hoistableScripts,s=i.get(a),s||(s={type:"script",instance:null,count:0,state:null},i.set(a,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function mo(t){return'href="'+Wn(t)+'"'}function Ts(t){return'link[rel="stylesheet"]['+t+"]"}function yy(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function HS(t,a,i,s){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?s.loading=1:(a=t.createElement("link"),s.preload=a,a.addEventListener("load",function(){return s.loading|=1}),a.addEventListener("error",function(){return s.loading|=2}),on(a,"link",i),Kt(a),t.head.appendChild(a))}function po(t){return'[src="'+Wn(t)+'"]'}function Ds(t){return"script[async]"+t}function by(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var s=t.querySelector('style[data-href~="'+Wn(i.href)+'"]');if(s)return a.instance=s,Kt(s),s;var f=v({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),Kt(s),on(s,"style",f),hu(s,i.precedence,t),a.instance=s;case"stylesheet":f=mo(i.href);var m=t.querySelector(Ts(f));if(m)return a.state.loading|=4,a.instance=m,Kt(m),m;s=yy(i),(f=ra.get(f))&&Sf(s,f),m=(t.ownerDocument||t).createElement("link"),Kt(m);var x=m;return x._p=new Promise(function(T,R){x.onload=T,x.onerror=R}),on(m,"link",s),a.state.loading|=4,hu(m,i.precedence,t),a.instance=m;case"script":return m=po(i.src),(f=t.querySelector(Ds(m)))?(a.instance=f,Kt(f),f):(s=i,(f=ra.get(m))&&(s=v({},i),Ef(s,f)),t=t.ownerDocument||t,f=t.createElement("script"),Kt(f),on(f,"link",s),t.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(s=a.instance,a.state.loading|=4,hu(s,i.precedence,t));return a.instance}function hu(t,a,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,m=f,x=0;x<s.length;x++){var T=s[x];if(T.dataset.precedence===a)m=T;else if(m!==f)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function Sf(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Ef(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var mu=null;function xy(t,a,i){if(mu===null){var s=new Map,f=mu=new Map;f.set(i,s)}else f=mu,s=f.get(i),s||(s=new Map,f.set(i,s));if(s.has(t))return s;for(s.set(t,null),i=i.getElementsByTagName(t),f=0;f<i.length;f++){var m=i[f];if(!(m[Po]||m[tn]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(a)||"";x=t+x;var T=s.get(x);T?T.push(m):s.set(x,[m])}}return s}function wy(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function $S(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){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;return a.rel==="stylesheet"?(t=a.disabled,typeof a.precedence=="string"&&t==null):!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 Sy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function QS(t,a,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=mo(s.href),m=a.querySelector(Ts(f));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=pu.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=m,Kt(m);return}m=a.ownerDocument||a,s=yy(s),(f=ra.get(f))&&Sf(s,f),m=m.createElement("link"),Kt(m);var x=m;x._p=new Promise(function(T,R){x.onload=T,x.onerror=R}),on(m,"link",s),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=pu.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var _f=0;function VS(t,a){return t.stylesheets&&t.count===0&&gu(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var s=setTimeout(function(){if(t.stylesheets&&gu(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+a);0<t.imgBytes&&_f===0&&(_f=62500*DS());var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&gu(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>_f?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vu=null;function gu(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vu=new Map,a.forEach(GS,t),vu=null,pu.call(t))}function GS(t,a){if(!(a.state.loading&4)){var i=vu.get(t);if(i)var s=i.get(null);else{i=new Map,vu.set(t,i);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var x=f[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),s=x)}s&&i.set(null,s)}f=a.instance,x=f.getAttribute("data-precedence"),m=i.get(x)||s,m===s&&i.set(null,f),i.set(x,f),this.count++,s=pu.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),m?m.parentNode.insertBefore(f,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),a.state.loading|=4}}var Cs={$$typeof:N,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function YS(t,a,i,s,f,m,x,T,R){this.tag=1,this.containerInfo=t,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=Yn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yn(0),this.hiddenUpdates=Yn(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ey(t,a,i,s,f,m,x,T,R,H,Z,te){return t=new YS(t,a,i,x,R,H,Z,te,T),a=1,m===!0&&(a|=24),m=Ln(3,null,null,a),t.current=m,m.stateNode=t,a=nd(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:s,isDehydrated:i,cache:a},od(m),t}function _y(t){return t?(t=Qi,t):Qi}function Ty(t,a,i,s,f,m){f=_y(f),s.context===null?s.context=f:s.pendingContext=f,s=Dr(a),s.payload={element:i},m=m===void 0?null:m,m!==null&&(s.callback=m),i=Cr(t,s,a),i!==null&&(Tn(i,t,a),is(i,t,a))}function Dy(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function Tf(t,a){Dy(t,a),(t=t.alternate)&&Dy(t,a)}function Cy(t){if(t.tag===13||t.tag===31){var a=ui(t,67108864);a!==null&&Tn(a,t,67108864),Tf(t,67108864)}}function ky(t){if(t.tag===13||t.tag===31){var a=qn();a=Ri(a);var i=ui(t,a);i!==null&&Tn(i,t,a),Tf(t,a)}}var yu=!0;function KS(t,a,i,s){var f=j.T;j.T=null;var m=Y.p;try{Y.p=2,Df(t,a,i,s)}finally{Y.p=m,j.T=f}}function WS(t,a,i,s){var f=j.T;j.T=null;var m=Y.p;try{Y.p=8,Df(t,a,i,s)}finally{Y.p=m,j.T=f}}function Df(t,a,i,s){if(yu){var f=Cf(s);if(f===null)ff(t,a,s,bu,i),Ay(t,s);else if(ZS(f,t,a,i,s))s.stopPropagation();else if(Ay(t,s),a&4&&-1<XS.indexOf(t)){for(;f!==null;){var m=Oi(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=St(m.pendingLanes);if(x!==0){var T=m;for(T.pendingLanes|=2,T.entangledLanes|=2;x;){var R=1<<31-Gt(x);T.entanglements[1]|=R,x&=~R}Aa(m),(Je&6)===0&&(tu=$t()+500,ws(0))}}break;case 31:case 13:T=ui(m,2),T!==null&&Tn(T,m,2),au(),Tf(m,2)}if(m=Cf(s),m===null&&ff(t,a,s,bu,i),m===f)break;f=m}f!==null&&s.stopPropagation()}else ff(t,a,s,null,i)}}function Cf(t){return t=kc(t),kf(t)}var bu=null;function kf(t){if(bu=null,t=Mi(t),t!==null){var a=u(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=c(a),t!==null)return t;t=null}else if(i===31){if(t=h(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return bu=t,null}function Ny(t){switch(t){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(ti()){case Qa:return 2;case ki:return 8;case Va:case ni:return 32;case ca:return 268435456;default:return 32}default:return 32}}var Nf=!1,Fr=null,Ur=null,qr=null,ks=new Map,Ns=new Map,Br=[],XS="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 Ay(t,a){switch(t){case"focusin":case"focusout":Fr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":ks.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(a.pointerId)}}function As(t,a,i,s,f,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:i,eventSystemFlags:s,nativeEvent:m,targetContainers:[f]},a!==null&&(a=Oi(a),a!==null&&Cy(a)),t):(t.eventSystemFlags|=s,a=t.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),t)}function ZS(t,a,i,s,f){switch(a){case"focusin":return Fr=As(Fr,t,a,i,s,f),!0;case"dragenter":return Ur=As(Ur,t,a,i,s,f),!0;case"mouseover":return qr=As(qr,t,a,i,s,f),!0;case"pointerover":var m=f.pointerId;return ks.set(m,As(ks.get(m)||null,t,a,i,s,f)),!0;case"gotpointercapture":return m=f.pointerId,Ns.set(m,As(Ns.get(m)||null,t,a,i,s,f)),!0}return!1}function Ry(t){var a=Mi(t.target);if(a!==null){var i=u(a);if(i!==null){if(a=i.tag,a===13){if(a=c(i),a!==null){t.blockedOn=a,Qm(t.priority,function(){ky(i)});return}}else if(a===31){if(a=h(i),a!==null){t.blockedOn=a,Qm(t.priority,function(){ky(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xu(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=Cf(t.nativeEvent);if(i===null){i=t.nativeEvent;var s=new i.constructor(i.type,i);Cc=s,i.target.dispatchEvent(s),Cc=null}else return a=Oi(i),a!==null&&Cy(a),t.blockedOn=i,!1;a.shift()}return!0}function jy(t,a,i){xu(t)&&i.delete(a)}function JS(){Nf=!1,Fr!==null&&xu(Fr)&&(Fr=null),Ur!==null&&xu(Ur)&&(Ur=null),qr!==null&&xu(qr)&&(qr=null),ks.forEach(jy),Ns.forEach(jy)}function wu(t,a){t.blockedOn===a&&(t.blockedOn=null,Nf||(Nf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,JS)))}var Su=null;function My(t){Su!==t&&(Su=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Su===t&&(Su=null);for(var a=0;a<t.length;a+=3){var i=t[a],s=t[a+1],f=t[a+2];if(typeof s!="function"){if(kf(s||i)===null)continue;break}var m=Oi(i);m!==null&&(t.splice(a,3),a-=3,Dd(m,{pending:!0,data:f,method:i.method,action:s},s,f))}}))}function vo(t){function a(R){return wu(R,t)}Fr!==null&&wu(Fr,t),Ur!==null&&wu(Ur,t),qr!==null&&wu(qr,t),ks.forEach(a),Ns.forEach(a);for(var i=0;i<Br.length;i++){var s=Br[i];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Br.length&&(i=Br[0],i.blockedOn===null);)Ry(i),i.blockedOn===null&&Br.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var f=i[s],m=i[s+1],x=f[bn]||null;if(typeof m=="function")x||My(i);else if(x){var T=null;if(m&&m.hasAttribute("formAction")){if(f=m,x=m[bn]||null)T=x.formAction;else if(kf(f)!==null)continue}else T=x.action;typeof T=="function"?i[s+1]=T:(i.splice(s,3),s-=3),My(i)}}}function Oy(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function Af(t){this._internalRoot=t}Eu.prototype.render=Af.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(o(409));var i=a.current,s=qn();Ty(i,s,t,a,null,null)},Eu.prototype.unmount=Af.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Ty(t.current,2,null,t,null,null),au(),a[ji]=null}};function Eu(t){this._internalRoot=t}Eu.prototype.unstable_scheduleHydration=function(t){if(t){var a=xc();t={blockedOn:null,target:t,priority:a};for(var i=0;i<Br.length&&a!==0&&a<Br[i].priority;i++);Br.splice(i,0,t),i===0&&Ry(t)}};var Ly=n.version;if(Ly!=="19.2.4")throw Error(o(527,Ly,"19.2.4"));Y.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=g(a),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var eE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_u.isDisabled&&_u.supportsFiber)try{Ga=_u.inject(eE),en=_u}catch{}}return js.createRoot=function(t,a){if(!l(t))throw Error(o(299));var i=!1,s="",f=Pv,m=Hv,x=$v;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=Ey(t,1,!1,null,null,i,s,null,f,m,x,Oy),t[ji]=a.current,df(t),new Af(a)},js.hydrateRoot=function(t,a,i){if(!l(t))throw Error(o(299));var s=!1,f="",m=Pv,x=Hv,T=$v,R=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),a=Ey(t,1,!0,a,i??null,s,f,R,m,x,T,Oy),a.context=_y(null),i=a.current,s=qn(),s=Ri(s),f=Dr(s),f.callback=null,Cr(i,f,s),i=s,a.current.lanes=i,dt(a,i),Aa(a),t[ji]=a.current,df(t),new Eu(a)},js.version="19.2.4",js}var Py;function aT(){if(Py)return jf.exports;Py=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(n){console.error(n)}}return e(),jf.exports=nT(),jf.exports}var rT=aT();const iT=jb(rT),oT="modulepreload",sT=function(e){return"/PREFECT_UI_SERVE_BASE_REPLACE_PLACEHOLDER/"+e},Hy={},Ae=function(n,r,o){let l=Promise.resolve();if(r&&r.length>0){let p=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),h=c?.nonce||c?.getAttribute("nonce");l=p(r.map(g=>{if(g=sT(g),g in Hy)return;Hy[g]=!0;const y=g.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":oT,y||(b.as="script"),b.crossOrigin="",b.href=g,h&&b.setAttribute("nonce",h),document.head.appendChild(b),y)return new Promise((w,E)=>{b.addEventListener("load",w),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(c){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=c,window.dispatchEvent(h),!h.defaultPrevented)throw c}return l.then(c=>{for(const h of c||[])h.status==="rejected"&&u(h.reason);return n().catch(u)})};var lT=function(){return null};const uT=/\{[^{}]+\}/g,cT=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function dT(){return Math.random().toString(36).slice(2,11)}function fT(e){let{baseUrl:n="",Request:r=globalThis.Request,fetch:o=globalThis.fetch,querySerializer:l,bodySerializer:u,headers:c,requestInitExt:h=void 0,...p}={...e};h=cT()?h:void 0,n=Vy(n);const g=[];async function y(v,b){const{baseUrl:w,fetch:E=o,Request:C=r,headers:D,params:_={},parseAs:A="json",querySerializer:N,bodySerializer:M=u??mT,body:O,middleware:I=[],...S}=b||{};let U=n;w&&(U=Vy(w)??n);let F=typeof l=="function"?l:$y(l);N&&(F=typeof N=="function"?N:$y({...typeof l=="object"?l:{},...N}));const L=O===void 0?void 0:M(O,Qy(c,D,_.header)),B=Qy(L===void 0||L instanceof FormData?{}:{"Content-Type":"application/json"},c,D,_.header),K=[...g,...I],se={redirect:"follow",...p,...S,body:L,headers:B};let ae,ce,j=new C(pT(v,{baseUrl:U,params:_,querySerializer:F}),se),Y;for(const de in S)de in j||(j[de]=S[de]);if(K.length){ae=dT(),ce=Object.freeze({baseUrl:U,fetch:E,parseAs:A,querySerializer:F,bodySerializer:M});for(const de of K)if(de&&typeof de=="object"&&typeof de.onRequest=="function"){const fe=await de.onRequest({request:j,schemaPath:v,params:_,options:ce,id:ae});if(fe)if(fe instanceof C)j=fe;else if(fe instanceof Response){Y=fe;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Y){try{Y=await E(j,h)}catch(de){let fe=de;if(K.length)for(let pe=K.length-1;pe>=0;pe--){const G=K[pe];if(G&&typeof G=="object"&&typeof G.onError=="function"){const X=await G.onError({request:j,error:fe,schemaPath:v,params:_,options:ce,id:ae});if(X){if(X instanceof Response){fe=void 0,Y=X;break}if(X instanceof Error){fe=X;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(fe)throw fe}if(K.length)for(let de=K.length-1;de>=0;de--){const fe=K[de];if(fe&&typeof fe=="object"&&typeof fe.onResponse=="function"){const pe=await fe.onResponse({request:j,response:Y,schemaPath:v,params:_,options:ce,id:ae});if(pe){if(!(pe instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Y=pe}}}}if(Y.status===204||j.method==="HEAD"||Y.headers.get("Content-Length")==="0")return Y.ok?{data:void 0,response:Y}:{error:void 0,response:Y};if(Y.ok)return A==="stream"?{data:Y.body,response:Y}:{data:await Y[A](),response:Y};let le=await Y.text();try{le=JSON.parse(le)}catch{}return{error:le,response:Y}}return{request(v,b,w){return y(b,{...w,method:v.toUpperCase()})},GET(v,b){return y(v,{...b,method:"GET"})},PUT(v,b){return y(v,{...b,method:"PUT"})},POST(v,b){return y(v,{...b,method:"POST"})},DELETE(v,b){return y(v,{...b,method:"DELETE"})},OPTIONS(v,b){return y(v,{...b,method:"OPTIONS"})},HEAD(v,b){return y(v,{...b,method:"HEAD"})},PATCH(v,b){return y(v,{...b,method:"PATCH"})},TRACE(v,b){return y(v,{...b,method:"TRACE"})},use(...v){for(const b of v)if(b){if(typeof b!="object"||!("onRequest"in b||"onResponse"in b||"onError"in b))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");g.push(b)}},eject(...v){for(const b of v){const w=g.indexOf(b);w!==-1&&g.splice(w,1)}}}}function oc(e,n,r){if(n==null)return"";if(typeof n=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?.allowReserved===!0?n:encodeURIComponent(n)}`}function Qb(e,n,r){if(!n||typeof n!="object")return"";const o=[],l={simple:",",label:".",matrix:";"}[r.style]||"&";if(r.style!=="deepObject"&&r.explode===!1){for(const h in n)o.push(h,r.allowReserved===!0?n[h]:encodeURIComponent(n[h]));const c=o.join(",");switch(r.style){case"form":return`${e}=${c}`;case"label":return`.${c}`;case"matrix":return`;${e}=${c}`;default:return c}}for(const c in n){const h=r.style==="deepObject"?`${e}[${c}]`:c;o.push(oc(h,n[c],r))}const u=o.join(l);return r.style==="label"||r.style==="matrix"?`${l}${u}`:u}function Vb(e,n,r){if(!Array.isArray(n))return"";if(r.explode===!1){const u={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",c=(r.allowReserved===!0?n:n.map(h=>encodeURIComponent(h))).join(u);switch(r.style){case"simple":return c;case"label":return`.${c}`;case"matrix":return`;${e}=${c}`;default:return`${e}=${c}`}}const o={simple:",",label:".",matrix:";"}[r.style]||"&",l=[];for(const u of n)r.style==="simple"||r.style==="label"?l.push(r.allowReserved===!0?u:encodeURIComponent(u)):l.push(oc(e,u,r));return r.style==="label"||r.style==="matrix"?`${o}${l.join(o)}`:l.join(o)}function $y(e){return function(r){const o=[];if(r&&typeof r=="object")for(const l in r){const u=r[l];if(u!=null){if(Array.isArray(u)){if(u.length===0)continue;o.push(Vb(l,u,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof u=="object"){o.push(Qb(l,u,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}o.push(oc(l,u,e))}}return o.join("&")}}function hT(e,n){let r=e;for(const o of e.match(uT)??[]){let l=o.substring(1,o.length-1),u=!1,c="simple";if(l.endsWith("*")&&(u=!0,l=l.substring(0,l.length-1)),l.startsWith(".")?(c="label",l=l.substring(1)):l.startsWith(";")&&(c="matrix",l=l.substring(1)),!n||n[l]===void 0||n[l]===null)continue;const h=n[l];if(Array.isArray(h)){r=r.replace(o,Vb(l,h,{style:c,explode:u}));continue}if(typeof h=="object"){r=r.replace(o,Qb(l,h,{style:c,explode:u}));continue}if(c==="matrix"){r=r.replace(o,`;${oc(l,h)}`);continue}r=r.replace(o,c==="label"?`.${encodeURIComponent(h)}`:encodeURIComponent(h))}return r}function mT(e,n){return e instanceof FormData?e:n&&(n.get instanceof Function?n.get("Content-Type")??n.get("content-type"):n["Content-Type"]??n["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function pT(e,n){let r=`${n.baseUrl}${e}`;n.params?.path&&(r=hT(r,n.params.path));let o=n.querySerializer(n.params.query??{});return o.startsWith("?")&&(o=o.substring(1)),o&&(r+=`?${o}`),r}function Qy(...e){const n=new Headers;for(const r of e){if(!r||typeof r!="object")continue;const o=r instanceof Headers?r.entries():Object.entries(r);for(const[l,u]of o)if(u===null)n.delete(l);else if(Array.isArray(u))for(const c of u)n.append(l,c);else u!==void 0&&n.set(l,u)}return n}function Vy(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function vT(e){return e instanceof TypeError?e.message.includes("Failed to fetch")||e.message.includes("NetworkError")||e.message.includes("Network request failed"):!1}function jo(e,n){if(vT(e))return{type:"network-error",message:"Unable to connect to Prefect server",details:"The server may be down, starting up, or there may be a network issue. The app will automatically retry."};if(e instanceof Error){const r=e.message.match(/status[:\s]*(\d{3})/i);if(r){const o=Number.parseInt(r[1],10);if(o>=500)return{type:"server-error",message:"Prefect server error",details:`The server returned an error (${o}). This may be a temporary issue.`,statusCode:o};if(o>=400)return{type:"client-error",message:"Configuration error",details:`The server rejected the request (${o}). Check your Prefect configuration.`,statusCode:o}}return{type:"unknown-error",message:"Connection error",details:e.message||"An unexpected error occurred while connecting to the server."}}return{type:"unknown-error",message:"Unexpected error",details:n||"An unexpected error occurred. Please try again."}}class gT{settings=null;promise=null;getBaseUrl(){return""}async load(){if(this.settings!==null)return this.settings;if(this.promise!==null)return this.promise;this.promise=(async()=>{const n=this.getBaseUrl();let r;try{r=await fetch(`${n}/ui-settings`)}catch(l){this.promise=null;const u=jo(l,"Failed to connect to Prefect server");throw new Error(u.message+(u.details?`: ${u.details}`:""))}if(!r.ok){this.promise=null;const l=jo(new Error(`Failed to fetch UI settings: status ${r.status}`),"Server returned an error");throw new Error(l.message+(l.details?`: ${l.details}`:""))}const o=await r.json();return{apiUrl:o.api_url,csrfEnabled:o.csrf_enabled,auth:o.auth,flags:o.flags??[]}})();try{return this.settings=await this.promise,this.settings}catch(n){throw this.promise=null,n}}async getApiUrl(){return(await this.load()).apiUrl}reset(){this.settings=null,this.promise=null}}const el=new gT,Gb="prefect-password",yT=new CustomEvent("auth:unauthorized"),bT={onResponse({response:e}){e.status===401&&(localStorage.removeItem(Gb),window.dispatchEvent(yT))}},xT={async onResponse({response:e}){if(!e.ok){const n=await e.clone().json();throw new Error(n.detail)}}},wT={onRequest({request:e}){const n=localStorage.getItem(Gb);return n&&e.headers.set("Authorization",`Basic ${n}`),e}};let go=null,Gy=null;const ne=async()=>{const e=await el.getApiUrl();return(!go||Gy!==e)&&(go=fT({baseUrl:e}),go.use(wT),go.use(bT),go.use(xT),Gy=e),go},ST=async()=>el.getApiUrl(),Yb={settings:()=>["settings"],version:()=>["version"]},Kb=()=>be({queryKey:Yb.version(),queryFn:async()=>{const e=await(await ne()).GET("/admin/version");if(!e.data)throw new Error("'data' expected");return e.data}}),Wb=()=>be({queryKey:Yb.settings(),queryFn:async()=>{const e=await(await ne()).GET("/admin/settings");if(!e.data)throw new Error("'data' expected");return e.data}});var Gr;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Gr||(Gr={}));var xa;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(xa||(xa={}));var Yy="-",sc="AMP",ET="".concat(sc,"_unsent"),Xb="$default_instance",Zb="https://api2.amplitude.com/2/httpapi",_T="https://api.eu.amplitude.com/2/httpapi",TT="https://api2.amplitude.com/batch",DT="https://api.eu.amplitude.com/batch",CT="utm_campaign",kT="utm_content",NT="utm_id",AT="utm_medium",RT="utm_source",jT="utm_term",Ky="dclid",Wy="fbclid",Xy="gbraid",Zy="gclid",Jy="ko_click_id",e0="li_fat_id",t0="msclkid",n0="rdt_cid",a0="ttclid",r0="twclid",i0="wbraid",lc={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},Gu=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],MT=["authorization","cookie","set-cookie"],OT=1e3,fh=function(e){if(Object.keys(e).length>OT)return!1;for(var n in e){var r=e[n];if(!Jb(n,r))return!1}return!0},Jb=function(e,n){var r,o;if(typeof e!="string")return!1;if(Array.isArray(n)){var l=!0;try{for(var u=Pe(n),c=u.next();!c.done;c=u.next()){var h=c.value;if(Array.isArray(h))return!1;if(typeof h=="object")l=l&&fh(h);else if(!["number","string"].includes(typeof h))return!1;if(!l)return!1}}catch(p){r={error:p}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}else{if(n==null)return!1;if(typeof n=="object")return fh(n);if(!["number","string","boolean"].includes(typeof n))return!1}return!0},Yu=(function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return me({},this._properties)},e.prototype.set=function(n,r){return this._safeSet(pt.SET,n,r),this},e.prototype.setOnce=function(n,r){return this._safeSet(pt.SET_ONCE,n,r),this},e.prototype.append=function(n,r){return this._safeSet(pt.APPEND,n,r),this},e.prototype.prepend=function(n,r){return this._safeSet(pt.PREPEND,n,r),this},e.prototype.postInsert=function(n,r){return this._safeSet(pt.POSTINSERT,n,r),this},e.prototype.preInsert=function(n,r){return this._safeSet(pt.PREINSERT,n,r),this},e.prototype.remove=function(n,r){return this._safeSet(pt.REMOVE,n,r),this},e.prototype.add=function(n,r){return this._safeSet(pt.ADD,n,r),this},e.prototype.unset=function(n){return this._safeSet(pt.UNSET,n,Yy),this},e.prototype.clearAll=function(){return this._properties={},this._properties[pt.CLEAR_ALL]=Yy,this},e.prototype._safeSet=function(n,r,o){if(this._validate(n,r,o)){var l=this._properties[n];return l===void 0&&(l={},this._properties[n]=l),l[r]=o,this._propertySet.add(r),!0}return!1},e.prototype._validate=function(n,r,o){return this._properties[pt.CLEAR_ALL]!==void 0||this._propertySet.has(r)?!1:n===pt.ADD?typeof o=="number":n!==pt.UNSET&&n!==pt.REMOVE?Jb(r,o):!0},e})(),pt;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(pt||(pt={}));var LT=[pt.CLEAR_ALL,pt.UNSET,pt.SET,pt.SET_ONCE,pt.ADD,pt.APPEND,pt.PREPEND,pt.PREINSERT,pt.POSTINSERT,pt.REMOVE],IT="Event tracked successfully",zT="Unexpected error occurred",FT="Event rejected due to exceeded retry count",UT="Event skipped due to optOut config",qT="Event rejected due to missing API key",BT="Invalid API key",PT="Client not initialized",Pt;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(Pt||(Pt={}));var ko=function(e,n,r){return n===void 0&&(n=0),r===void 0&&(r=Pt.Unknown),{event:e,code:n,message:r}},ht=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},HT=function(e){return e?(e^Math.random()*16>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,Ba)},o0=tt([],_e(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),Ba=function(e){var n,r=ht();if(!(!((n=r?.crypto)===null||n===void 0)&&n.getRandomValues))return HT(e);var o=r.crypto.getRandomValues(new Uint8Array(16));return o[6]=o[6]&15|64,o[8]=o[8]&63|128,tt([],_e(o.entries()),!1).map(function(l){var u=_e(l,2),c=u[0],h=u[1];return[4,6,8,10].includes(c)?"-".concat(o0[h]):o0[h]}).join("")},$T=(function(){function e(n){this.client=n,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(n,r){var o,l;return oe(this,void 0,void 0,function(){return ie(this,function(u){switch(u.label){case 0:return this.plugins.some(function(c){return c.name===n.name})?(this.loggerProvider.warn("Plugin with name ".concat(n.name," already exists, skipping registration")),[2]):(n.name===void 0&&(n.name=Ba(),this.loggerProvider.warn(`Plugin name is undefined.
11
11
  Generating a random UUID for plugin name: `.concat(n.name,`.
12
- Set a name for the plugin to prevent it from being added multiple times.`))),n.type=(o=n.type)!==null&&o!==void 0?o:"enrichment",[4,(l=n.setup)===null||l===void 0?void 0:l.call(n,r,this.client)]);case 1:return u.sent(),this.plugins.push(n),[2]}})})},e.prototype.deregister=function(n,r){var o;return oe(this,void 0,void 0,function(){var l,u;return ie(this,function(c){switch(c.label){case 0:return l=this.plugins.findIndex(function(h){return h.name===n}),l===-1?(r.loggerProvider.warn("Plugin with name ".concat(n," does not exist, skipping deregistration")),[2]):(u=this.plugins[l],this.plugins.splice(l,1),[4,(o=u.teardown)===null||o===void 0?void 0:o.call(u)]);case 1:return c.sent(),[2]}})})},e.prototype.reset=function(n){this.applying=!1;var r=this.plugins;r.map(function(o){var l;return(l=o.teardown)===null||l===void 0?void 0:l.call(o)}),this.plugins=[],this.client=n},e.prototype.push=function(n){var r=this;return new Promise(function(o){r.queue.push([n,o]),r.scheduleApply(0)})},e.prototype.scheduleApply=function(n){var r=this;this.applying||(this.applying=!0,setTimeout(function(){r.apply(r.queue.shift()).then(function(){r.applying=!1,r.queue.length>0&&r.scheduleApply(0)})},n))},e.prototype.apply=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c,h,p,w,E,g,y,v,b,w,E,C,D,_,A,N,M,O;return ie(this,function(I){switch(I.label){case 0:if(!n)return[2];r=_e(n,1),o=r[0],l=_e(n,2),u=l[1],this.loggerProvider.log("Timeline.apply: Initial event",o),c=this.plugins.filter(function(S){return S.type==="before"}),I.label=1;case 1:I.trys.push([1,6,7,8]),h=Pe(c),p=h.next(),I.label=2;case 2:return p.done?[3,5]:(w=p.value,w.execute?[4,w.execute(me({},o))]:[3,4]);case 3:if(E=I.sent(),E===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),u({event:o,code:0,message:""}),[2];o=E,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),I.label=4;case 4:return p=h.next(),[3,2];case 5:return[3,8];case 6:return g=I.sent(),A={error:g},[3,8];case 7:try{p&&!p.done&&(N=h.return)&&N.call(h)}finally{if(A)throw A.error}return[7];case 8:y=this.plugins.filter(function(S){return S.type==="enrichment"||S.type===void 0}),I.label=9;case 9:I.trys.push([9,14,15,16]),v=Pe(y),b=v.next(),I.label=10;case 10:return b.done?[3,13]:(w=b.value,w.execute?[4,w.execute(me({},o))]:[3,12]);case 11:if(E=I.sent(),E===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),u({event:o,code:0,message:""}),[2];o=E,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),I.label=12;case 12:return b=v.next(),[3,10];case 13:return[3,16];case 14:return C=I.sent(),M={error:C},[3,16];case 15:try{b&&!b.done&&(O=v.return)&&O.call(v)}finally{if(M)throw M.error}return[7];case 16:return D=this.plugins.filter(function(S){return S.type==="destination"}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(o))),_=D.map(function(S){var U=me({},o);return S.execute(U).catch(function(F){return ko(U,0,String(F))})}),Promise.all(_).then(function(S){var U=_e(S,1),F=U[0],L=F||ko(o,100,"Event not tracked, no destination plugins on the instance");u(L)}),[2]}})})},e.prototype.flush=function(){return oe(this,void 0,void 0,function(){var n,r,o,l=this;return ie(this,function(u){switch(u.label){case 0:return n=this.queue,this.queue=[],[4,Promise.all(n.map(function(c){return l.apply(c)}))];case 1:return u.sent(),r=this.plugins.filter(function(c){return c.type==="destination"}),o=r.map(function(c){return c.flush&&c.flush()}),[4,Promise.all(o)];case 2:return u.sent(),[2]}})})},e.prototype.onIdentityChanged=function(n){this.plugins.forEach(function(r){var o;(o=r.onIdentityChanged)===null||o===void 0||o.call(r,n)})},e.prototype.onSessionIdChanged=function(n){this.plugins.forEach(function(r){var o;(o=r.onSessionIdChanged)===null||o===void 0||o.call(r,n)})},e.prototype.onOptOutChanged=function(n){this.plugins.forEach(function(r){var o;(o=r.onOptOutChanged)===null||o===void 0||o.call(r,n)})},e.prototype.onReset=function(){this.plugins.forEach(function(n){var r;(r=n.onReset)===null||r===void 0||r.call(n)})},e})(),VT=function(e,n,r){var o=typeof e=="string"?{event_type:e}:e;return me(me(me({},o),r),n&&{event_properties:n})},$h=function(e,n){var r=me(me({},n),{event_type:ba.IDENTIFY,user_properties:e.getUserProperties()});return r},GT=function(e,n,r,o){var l,u=me(me({},o),{event_type:ba.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(l={},l[e]=n,l)});return u},YT=function(e,n,r){var o,l=new Yu;l.set(e,n);var u=me(me({},r),{event_type:ba.IDENTIFY,user_properties:l.getUserProperties(),groups:(o={},o[e]=n,o)});return u},KT=function(e,n){return me(me({},n),{event_type:ba.REVENUE,event_properties:e.getEventProperties()})},Dn=function(e){return{promise:e||Promise.resolve()}},WT=(function(){function e(n){n===void 0&&(n="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new QT(this),this.name=n}return e.prototype._init=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){switch(r.label){case 0:return this.config=n,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return r.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c,h,p,g;return ie(this,function(y){switch(y.label){case 0:r=this[n],this[n]=[],y.label=1;case 1:y.trys.push([1,8,9,10]),o=Pe(r),l=o.next(),y.label=2;case 2:return l.done?[3,7]:(u=l.value,c=u(),c&&"promise"in c?[4,c.promise]:[3,4]);case 3:return y.sent(),[3,6];case 4:return[4,c];case 5:y.sent(),y.label=6;case 6:return l=o.next(),[3,2];case 7:return[3,10];case 8:return h=y.sent(),p={error:h},[3,10];case 9:try{l&&!l.done&&(g=o.return)&&g.call(o)}finally{if(p)throw p.error}return[7];case 10:return this[n].length?[4,this.runQueuedFunctions(n)]:[3,12];case 11:y.sent(),y.label=12;case 12:return[2]}})})},e.prototype.track=function(n,r,o){var l=VT(n,r,o);return Dn(this.dispatch(l))},e.prototype.identify=function(n,r){var o=$h(n,r);return Dn(this.dispatch(o))},e.prototype.groupIdentify=function(n,r,o,l){var u=GT(n,r,o,l);return Dn(this.dispatch(u))},e.prototype.setGroup=function(n,r,o){var l=YT(n,r,o);return Dn(this.dispatch(l))},e.prototype.revenue=function(n,r){var o=KT(n,r);return Dn(this.dispatch(o))},e.prototype.add=function(n){return this.isReady?this._addPlugin(n):(this.q.push(this._addPlugin.bind(this,n)),Dn())},e.prototype._addPlugin=function(n){return Dn(this.timeline.register(n,this.config))},e.prototype.remove=function(n){return this.isReady?this._removePlugin(n):(this.q.push(this._removePlugin.bind(this,n)),Dn())},e.prototype._removePlugin=function(n){return Dn(this.timeline.deregister(n,this.config))},e.prototype.dispatchWithCallback=function(n,r){if(!this.isReady)return r(ko(n,0,HT));this.process(n).then(r)},e.prototype.dispatch=function(n){return oe(this,void 0,void 0,function(){var r=this;return ie(this,function(o){return this.isReady?[2,this.process(n)]:[2,new Promise(function(l){r.dispatchQ.push(r.dispatchWithCallback.bind(r,n,l))})]})})},e.prototype.getOperationAppliedUserProperties=function(n){var r={};if(n===void 0)return r;var o={};return Object.keys(n).forEach(function(l){Object.values(Vr).includes(l)||(o[l]=n[l])}),IT.forEach(function(l){if(Object.keys(n).includes(l)){var u=n[l];switch(l){case Vr.CLEAR_ALL:Object.keys(r).forEach(function(c){delete r[c]});break;case Vr.UNSET:Object.keys(u).forEach(function(c){delete r[c]});break;case Vr.SET:Object.assign(r,u);break}}}),Object.assign(r,o),r},e.prototype.process=function(n){return oe(this,void 0,void 0,function(){var r,u,o,l,u;return ie(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),this.config.optOut?[2,ko(n,0,qT)]:(n.event_type===ba.IDENTIFY&&(r=this.getOperationAppliedUserProperties(n.user_properties),this.timeline.onIdentityChanged({userProperties:r})),[4,this.timeline.push(n)]);case 1:return u=c.sent(),u.code===200?this.config.loggerProvider.log(u.message):u.code===100?this.config.loggerProvider.warn(u.message):this.config.loggerProvider.error(u.message),[2,u];case 2:return o=c.sent(),l=String(o),this.config.loggerProvider.error(l),u=ko(n,0,l),[2,u];case 3:return[2]}})})},e.prototype.setOptOut=function(n){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!n));return}this._setOptOut(n)},e.prototype._setOptOut=function(n){this.config.optOut!==n&&(this.timeline.onOptOutChanged(n),this.config.optOut=!!n)},e.prototype.flush=function(){return Dn(this.timeline.flush())},e.prototype.plugin=function(n){var r=this.timeline.plugins.find(function(o){return o.name===n});if(r===void 0){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(n));return}return r},e.prototype.plugins=function(n){return this.timeline.plugins.filter(function(r){return r instanceof n})},e})(),XT=(function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(n){return this.productId=n,this},e.prototype.setQuantity=function(n){return n>0&&(this.quantity=n),this},e.prototype.setPrice=function(n){return this.price=n,this},e.prototype.setRevenueType=function(n){return this.revenueType=n,this},e.prototype.setCurrency=function(n){return this.currency=n,this},e.prototype.setRevenue=function(n){return this.revenue=n,this},e.prototype.setReceipt=function(n){return this.receipt=n,this},e.prototype.setReceiptSig=function(n){return this.receiptSig=n,this},e.prototype.setEventProperties=function(n){return fh(n)&&(this.properties=n),this},e.prototype.getEventProperties=function(){var n=this.properties?me({},this.properties):{};return n[Ra.REVENUE_PRODUCT_ID]=this.productId,n[Ra.REVENUE_QUANTITY]=this.quantity,n[Ra.REVENUE_PRICE]=this.price,n[Ra.REVENUE_TYPE]=this.revenueType,n[Ra.REVENUE_CURRENCY]=this.currency,n[Ra.REVENUE]=this.revenue,n[Ra.RECEIPT]=this.receipt,n[Ra.RECEIPT_SIG]=this.receiptSig,n},e})(),Ra;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"})(Ra||(Ra={}));var ZT=function(e,n){var r=Math.max(n,1);return e.reduce(function(o,l,u){var c=Math.floor(u/r);return o[c]||(o[c]=[]),o[c].push(l),o},[])},Pn;(function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"})(Pn||(Pn={}));var Tu="Amplitude Logger ",Qh=(function(){function e(){this.logLevel=Pn.None}return e.prototype.disable=function(){this.logLevel=Pn.None},e.prototype.enable=function(n){n===void 0&&(n=Pn.Warn),this.logLevel=n},e.prototype.log=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Pn.Verbose||console.log("".concat(Tu,"[Log]: ").concat(n.join(" ")))},e.prototype.warn=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Pn.Warn||console.warn("".concat(Tu,"[Warn]: ").concat(n.join(" ")))},e.prototype.error=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Pn.Error||console.error("".concat(Tu,"[Error]: ").concat(n.join(" ")))},e.prototype.debug=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Pn.Debug||console.log("".concat(Tu,"[Debug]: ").concat(n.join(" ")))},e})(),zu=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:Xb,logLevel:Pn.Warn,loggerProvider:new Qh,offline:!1,optOut:!1,serverUrl:Zb,serverZone:"US",useBatch:!1}},JT=(function(){function e(n){var r,o,l,u;this._optOut=!1;var c=zu();this.apiKey=n.apiKey,this.flushIntervalMillis=(r=n.flushIntervalMillis)!==null&&r!==void 0?r:c.flushIntervalMillis,this.flushMaxRetries=n.flushMaxRetries||c.flushMaxRetries,this.flushQueueSize=n.flushQueueSize||c.flushQueueSize,this.instanceName=n.instanceName||c.instanceName,this.loggerProvider=n.loggerProvider||c.loggerProvider,this.logLevel=(o=n.logLevel)!==null&&o!==void 0?o:c.logLevel,this.minIdLength=n.minIdLength,this.plan=n.plan,this.ingestionMetadata=n.ingestionMetadata,this.offline=n.offline!==void 0?n.offline:c.offline,this.optOut=(l=n.optOut)!==null&&l!==void 0?l:c.optOut,this.serverUrl=n.serverUrl,this.serverZone=n.serverZone||c.serverZone,this.storageProvider=n.storageProvider,this.transportProvider=n.transportProvider,this.useBatch=(u=n.useBatch)!==null&&u!==void 0?u:c.useBatch,this.loggerProvider.enable(this.logLevel);var h=e1(n.serverUrl,n.serverZone,n.useBatch);this.serverZone=h.serverZone,this.serverUrl=h.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(n){this._optOut=n},enumerable:!1,configurable:!0}),e})(),eD=function(e,n){return e==="EU"?n?CT:TT:n?DT:Zb},e1=function(e,n,r){if(e===void 0&&(e=""),n===void 0&&(n=zu().serverZone),r===void 0&&(r=zu().useBatch),e)return{serverUrl:e,serverZone:void 0};var o=["US","EU"].includes(n)?n:zu().serverZone;return{serverZone:o,serverUrl:eD(o,r)}},tD=(function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(n,r){this.sdk.metrics.histogram[n]=r},e})();function hh(e){return e>=200&&e<300}var Fu=function(e){e===void 0&&(e=0);var n=new Error().stack||"";return n.split(`
13
- `).slice(2+e).map(function(r){return r.trim()})},Tt=function(e){return function(){var n=me({},e.config),r=n.loggerProvider,o=n.logLevel;return{logger:r,logLevel:o}}},nD=function(e,n){var r,o;n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,"");try{for(var l=Pe(n.split(".")),u=l.next();!u.done;u=l.next()){var c=u.value;if(c in e)e=e[c];else return}}catch(h){r={error:h}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return e},Dt=function(e,n){return function(){var r,o,l={};try{for(var u=Pe(n),c=u.next();!c.done;c=u.next()){var h=c.value;l[h]=nD(e,h)}}catch(p){r={error:p}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return l}},Ct=function(e,n,r,o,l){return l===void 0&&(l=null),function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var h=r(),p=h.logger,g=h.logLevel;if(g&&g<Pn.Debug||!g||!p)return e.apply(l,u);var y={type:"invoke public method",name:n,args:u,stacktrace:Fu(1),time:{start:new Date().toISOString()},states:{}};o&&y.states&&(y.states.before=o());var v=e.apply(l,u);return v&&v.promise?v.promise.then(function(){o&&y.states&&(y.states.after=o()),y.time&&(y.time.end=new Date().toISOString()),p.debug(JSON.stringify(y,null,2))}):(o&&y.states&&(y.states.after=o()),y.time&&(y.time.end=new Date().toISOString()),p.debug(JSON.stringify(y,null,2))),v}};function aD(e){return e instanceof Error?e.message:String(e)}function js(e){var n="";try{"body"in e&&(n=JSON.stringify(e.body,null,2))}catch{}return n}var rD=(function(){function e(n){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=n?.diagnosticsClient}return e.prototype.setup=function(n){var r;return oe(this,void 0,void 0,function(){var o,l=this;return ie(this,function(u){switch(u.label){case 0:return this.config=n,this.storageKey="".concat(_T,"_").concat(this.config.apiKey.substring(0,10)),[4,(r=this.config.storageProvider)===null||r===void 0?void 0:r.get(this.storageKey)];case 1:return o=u.sent(),o&&o.length>0&&Promise.all(o.map(function(c){return l.execute(c)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(n){var r=this;return n.insert_id||(n.insert_id=qa()),new Promise(function(o){var l={event:n,attempts:0,callback:function(u){return o(u)},timeout:0};r.queue.push(l),r.schedule(r.config.flushIntervalMillis),r.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(n){var r=this;return n.filter(function(o){return o.attempts+=1,o.attempts<r.config.flushMaxRetries?!0:(r.fulfillRequest([o],500,UT),!1)})},e.prototype.scheduleEvents=function(n){var r=this;n.forEach(function(o){r.schedule(o.timeout===0?r.config.flushIntervalMillis:o.timeout)})},e.prototype.schedule=function(n){var r=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&n>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=n,this.scheduleId=setTimeout(function(){r.queue=r.queue.map(function(o){return o.timeout=0,o}),r.flush(!0)},n);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(n){return n===void 0&&(n=!1),oe(this,void 0,void 0,function(){var r,o,l,u=this;return ie(this,function(c){switch(c.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),r=[],o=[],this.queue.forEach(function(h){return h.timeout===0?r.push(h):o.push(h)}),l=ZT(r,this.config.flushQueueSize),[4,l.reduce(function(h,p){return oe(u,void 0,void 0,function(){return ie(this,function(g){switch(g.label){case 0:return[4,h];case 1:return g.sent(),[4,this.send(p,n)];case 2:return[2,g.sent()]}})})},Promise.resolve())]);case 1:return c.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(n,r){var o;return r===void 0&&(r=!0),oe(this,void 0,void 0,function(){var l,u,c,h,p;return ie(this,function(g){switch(g.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(n,400,BT)];l={api_key:this.config.apiKey,events:n.map(function(y){var v=y.event;v.extra;var b=Qu(v,["extra"]);return b}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new tD,g.label=1;case 1:return g.trys.push([1,3,,4]),u=e1(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(u,l)];case 2:return c=g.sent(),c===null?(this.fulfillRequest(n,0,FT),[2]):r?(this.handleResponse(c,n),[3,4]):("body"in c?this.fulfillRequest(n,c.statusCode,"".concat(c.status,": ").concat(js(c))):this.fulfillRequest(n,c.statusCode,c.status),[2]);case 3:return h=g.sent(),p=aD(h),this.config.loggerProvider.error(p),(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:n.map(function(y){return y.event.event_type}),message:p,stack_trace:Fu()}),this.handleResponse({status:Bt.Failed,statusCode:0},n),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(n,r){var o;hh(n.statusCode)||(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.unsuccessful",{events:r.map(function(u){return u.event.event_type}),code:n.statusCode,status:n.status,body:js(n),stack_trace:Fu()});var l=n.status;switch(l){case Bt.Success:{this.handleSuccessResponse(n,r);break}case Bt.Invalid:{this.handleInvalidResponse(n,r);break}case Bt.PayloadTooLarge:{this.handlePayloadTooLargeResponse(n,r);break}case Bt.RateLimit:{this.handleRateLimitResponse(n,r);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(l,"' provided for ").concat(r.length,' events"}')),this.handleOtherResponse(r);break}}},e.prototype.handleSuccessResponse=function(n,r){this.fulfillRequest(r,n.statusCode,zT)},e.prototype.handleInvalidResponse=function(n,r){var o=this;if(n.body.missingField||n.body.error.startsWith(PT)){this.fulfillRequest(r,n.statusCode,n.body.error);return}var l=et(et(et(et([],_e(Object.values(n.body.eventsWithInvalidFields)),!1),_e(Object.values(n.body.eventsWithMissingFields)),!1),_e(Object.values(n.body.eventsWithInvalidIdLengths)),!1),_e(n.body.silencedEvents),!1).flat(),u=new Set(l),c=r.filter(function(p,g){if(u.has(g)){o.fulfillRequest([p],n.statusCode,n.body.error);return}return!0});c.length>0&&this.config.loggerProvider.warn(js(n));var h=this.removeEventsExceedFlushMaxRetries(c);this.scheduleEvents(h)},e.prototype.handlePayloadTooLargeResponse=function(n,r){if(r.length===1){this.fulfillRequest(r,n.statusCode,n.body.error);return}this.config.loggerProvider.warn(js(n)),this.config.flushQueueSize/=2;var o=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(o)},e.prototype.handleRateLimitResponse=function(n,r){var o=this,l=Object.keys(n.body.exceededDailyQuotaUsers),u=Object.keys(n.body.exceededDailyQuotaDevices),c=n.body.throttledEvents,h=new Set(l),p=new Set(u),g=new Set(c),y=r.filter(function(b,w){if(b.event.user_id&&h.has(b.event.user_id)||b.event.device_id&&p.has(b.event.device_id)){o.fulfillRequest([b],n.statusCode,n.body.error);return}return g.has(w)&&(b.timeout=o.throttleTimeout),!0});y.length>0&&this.config.loggerProvider.warn(js(n));var v=this.removeEventsExceedFlushMaxRetries(y);this.scheduleEvents(v)},e.prototype.handleOtherResponse=function(n){var r=this,o=n.map(function(u){return u.timeout=u.attempts*r.retryTimeout,u}),l=this.removeEventsExceedFlushMaxRetries(o);this.scheduleEvents(l)},e.prototype.fulfillRequest=function(n,r,o){var l,u,c;hh(r)?(c=this.diagnosticsClient)===null||c===void 0||c.increment("analytics.events.sent",n.length):((l=this.diagnosticsClient)===null||l===void 0||l.increment("analytics.events.dropped",n.length),(u=this.diagnosticsClient)===null||u===void 0||u.recordEvent("analytics.events.dropped",{events:n.map(function(h){return h.event.event_type}),code:r,message:o,stack_trace:Fu()})),this.removeEvents(n),n.forEach(function(h){return h.callback(ko(h.event,r,o))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var n=this.queue.map(function(r){return r.event});this.config.storageProvider.set(this.storageKey,n)}},e.prototype.removeEvents=function(n){this.queue=this.queue.filter(function(r){return!n.some(function(o){return o.event.insert_id===r.event.insert_id})}),this.saveEvents()},e})(),iD=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:oD(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),oD=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},sD=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(n){this.receiver?this.receiver(n):this.queue.length<512&&this.queue.push(n)},e.prototype.setEventReceiver=function(n){this.receiver=n,this.queue.length>0&&(this.queue.forEach(function(r){n(r)}),this.queue=[])},e})(),$r=function(){return $r=Object.assign||function(n){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},$r.apply(this,arguments)};function Uu(e){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&e[n],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function s0(e,n){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),l,u=[],c;try{for(;(n===void 0||n-- >0)&&!(l=o.next()).done;)u.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(c)throw c.error}}return u}var qu=function(e,n){var r,o,l=["string","number","boolean","undefined"],u=typeof e,c=typeof n;if(u!==c)return!1;try{for(var h=Uu(l),p=h.next();!p.done;p=h.next()){var g=p.value;if(g===u)return e===n}}catch(D){r={error:D}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}if(e==null&&n==null)return!0;if(e==null||n==null||e.length!==n.length)return!1;var y=Array.isArray(e),v=Array.isArray(n);if(y!==v)return!1;if(y&&v){for(var b=0;b<e.length;b++)if(!qu(e[b],n[b]))return!1}else{var w=Object.keys(e).sort(),E=Object.keys(n).sort();if(!qu(w,E))return!1;var C=!0;return Object.keys(e).forEach(function(D){qu(e[D],n[D])||(C=!1)}),C}return!0},lD="$set",uD="$unset",cD="$clearAll";Object.entries||(Object.entries=function(e){for(var n=Object.keys(e),r=n.length,o=new Array(r);r--;)o[r]=[n[r],e[n[r]]];return o});var dD=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var n=this,r=$r({},this.identity.userProperties),o=$r($r({},this.identity),{userProperties:r});return{setUserId:function(l){return o.userId=l,this},setDeviceId:function(l){return o.deviceId=l,this},setUserProperties:function(l){return o.userProperties=l,this},setOptOut:function(l){return o.optOut=l,this},updateUserProperties:function(l){var u,c,h,p,g,y,v=o.userProperties||{};try{for(var b=Uu(Object.entries(l)),w=b.next();!w.done;w=b.next()){var E=s0(w.value,2),C=E[0],D=E[1];switch(C){case lD:try{for(var _=(h=void 0,Uu(Object.entries(D))),A=_.next();!A.done;A=_.next()){var N=s0(A.value,2),M=N[0],O=N[1];v[M]=O}}catch(U){h={error:U}}finally{try{A&&!A.done&&(p=_.return)&&p.call(_)}finally{if(h)throw h.error}}break;case uD:try{for(var I=(g=void 0,Uu(Object.keys(D))),S=I.next();!S.done;S=I.next()){var M=S.value;delete v[M]}}catch(U){g={error:U}}finally{try{S&&!S.done&&(y=I.return)&&y.call(I)}finally{if(g)throw g.error}}break;case cD:v={};break}}}catch(U){u={error:U}}finally{try{w&&!w.done&&(c=b.return)&&c.call(b)}finally{if(u)throw u.error}}return o.userProperties=v,this},commit:function(){return n.setIdentity(o),this}}},e.prototype.getIdentity=function(){return $r({},this.identity)},e.prototype.setIdentity=function(n){var r=$r({},this.identity);this.identity=$r({},n),qu(r,this.identity)||this.listeners.forEach(function(o){o(n)})},e.prototype.addIdentityListener=function(n){this.listeners.add(n)},e.prototype.removeIdentityListener=function(n){this.listeners.delete(n)},e})(),Ms=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,fD=(function(){function e(){this.identityStore=new dD,this.eventBridge=new sD,this.applicationContextProvider=new iD}return e.getInstance=function(n){return Ms.analyticsConnectorInstances||(Ms.analyticsConnectorInstances={}),Ms.analyticsConnectorInstances[n]||(Ms.analyticsConnectorInstances[n]=new e),Ms.analyticsConnectorInstances[n]},e})(),el=function(e){return e===void 0&&(e=Xb),fD.getInstance(e)},hD=function(e,n){el(n).identityStore.editIdentity().setUserId(e).commit()},mD=function(e,n){el(n).identityStore.editIdentity().setDeviceId(e).commit()},pD=(function(){function e(){this.name="identity",this.type="before",this.identityStore=el().identityStore}return e.prototype.execute=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){return r=n.user_properties,r&&this.identityStore.editIdentity().updateUserProperties(r).commit(),[2,n]})})},e.prototype.setup=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){return n.instanceName&&(this.identityStore=el(n.instanceName).identityStore),[2]})})},e})(),t1=function(e,n){n===void 0&&(n=Date.now());var r=Date.now(),o=r-n;return o>e},n1=function(e,n,r){return n===void 0&&(n=""),r===void 0&&(r=10),[sc,n,e.substring(0,r)].filter(Boolean).join("_")},vD=function(e){return"".concat(sc.toLowerCase(),"_").concat(e.substring(0,6))},gD=function(){var e,n,r,o;if(typeof navigator>"u")return"";var l=navigator.userLanguage;return(o=(r=(n=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&n!==void 0?n:navigator.language)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:""},Ku=function(){var e,n=ft();if(!(!((e=n?.location)===null||e===void 0)&&e.search))return{};var r=n.location.search.substring(1).split("&").filter(Boolean),o=r.reduce(function(l,u){var c=u.split("=",2),h=l0(c[0]),p=l0(c[1]);return p&&(l[h]=p),l},{});return o},l0=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},mh=function(e,n){return!n||!n.length?!0:n.some(function(r){return typeof r=="string"?e===r:e.match(r)})},Gr=function(e,n){var r=e;try{r=decodeURI(e)}catch(o){n?.error("Malformed URI sequence: ",o)}return r},yD=function(e){var n=0;if(e.length===0)return n;for(var r=0;r<e.length;r++){var o=e.charCodeAt(r);n=(n<<5)-n+o,n|=0}return n},u0=function(e,n){var r=yD(e.toString()),o=Math.abs(r),l=o*31,u=l%1e5;return u/1e5<n},Vh=(function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return[2,!0]})})},e.prototype.get=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){return[2,this.memoryStorage.get(n)]})})},e.prototype.getRaw=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){switch(o.label){case 0:return[4,this.get(n)];case 1:return r=o.sent(),[2,r?JSON.stringify(r):void 0]}})})},e.prototype.set=function(n,r){return oe(this,void 0,void 0,function(){return ie(this,function(o){return this.memoryStorage.set(n,r),[2]})})},e.prototype.remove=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){return this.memoryStorage.delete(n),[2]})})},e.prototype.reset=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return this.memoryStorage.clear(),[2]})})},e})(),Wu=(function(){function e(n,r){r===void 0&&(r={}),this.options=me({},n),this.config=r}return e.prototype.isEnabled=function(){return oe(this,void 0,void 0,function(){var n,r,o,l;return ie(this,function(u){switch(u.label){case 0:if(!ft())return[2,!1];e.testValue=String(Date.now()),n=me(me({},this.options),{expirationDays:.003}),r=new e(n),o="AMP_TEST_".concat(qa().substring(0,8)),u.label=1;case 1:return u.trys.push([1,4,5,7]),[4,r.set(o,e.testValue)];case 2:return u.sent(),[4,r.get(o)];case 3:return l=u.sent(),[2,l===e.testValue];case 4:return u.sent(),[2,!1];case 5:return[4,r.remove(o)];case 6:return u.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(n){return oe(this,void 0,void 0,function(){var r,o;return ie(this,function(l){switch(l.label){case 0:return[4,this.getRaw(n)];case 1:if(r=l.sent(),!r)return[2,void 0];try{return o=a1(r),o===void 0?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(n,", value: ").concat(r)),[2,void 0]):[2,JSON.parse(o)]}catch{return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(n,", value: ").concat(r)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(n){var r,o,l,u;return oe(this,void 0,void 0,function(){var c,h,p,g,y,v,b,w,E,C,D,_,A=this;return ie(this,function(N){switch(N.label){case 0:c=ft(),h=c,N.label=1;case 1:return N.trys.push([1,4,,5]),p=h?.cookieStore,p?[4,p.getAll(n)]:[3,3];case 2:if(g=N.sent(),g){g.length>1&&((r=this.config.diagnosticsClient)===null||r===void 0||r.recordEvent("cookies.duplicate",{cookies:g.map(function(M){return M.domain})}),(o=this.config.diagnosticsClient)===null||o===void 0||o.increment("cookies.duplicate.occurrence.cookieStore"));try{for(y=Pe(g),v=y.next();!v.done;v=y.next())if(b=v.value,r1(b.domain,this.options.domain))return[2,b.value]}catch(M){D={error:M}}finally{try{v&&!v.done&&(_=y.return)&&_.call(y)}finally{if(D)throw D.error}}}N.label=3;case 3:return[3,5];case 4:return N.sent(),[3,5];case 5:return w=((u=(l=c?.document)===null||l===void 0?void 0:l.cookie.split("; "))!==null&&u!==void 0?u:[]).filter(function(M){return M.indexOf(n+"=")===0}),E=void 0,C=this.config.duplicateResolverFn,typeof C=="function"&&w.length>1&&(E=w.find(function(M){var O;try{var I=C(M.substring(n.length+1));return I||(O=A.config.diagnosticsClient)===null||O===void 0||O.increment("cookies.duplicate.occurrence.document.cookie"),I}catch{return!1}})),E||(E=w[0]),E?[2,E.substring(n.length+1)]:[2,void 0]}})})},e.prototype.set=function(n,r){var o;return oe(this,void 0,void 0,function(){var l,u,c,h,p,g,y;return ie(this,function(v){try{l=(o=this.options.expirationDays)!==null&&o!==void 0?o:0,u=r!==null?l:-1,c=void 0,u&&(h=new Date,h.setTime(h.getTime()+u*24*60*60*1e3),c=h),p="".concat(n,"=").concat(btoa(encodeURIComponent(JSON.stringify(r)))),c&&(p+="; expires=".concat(c.toUTCString())),p+="; path=/",this.options.domain&&(p+="; domain=".concat(this.options.domain)),this.options.secure&&(p+="; Secure"),this.options.sameSite&&(p+="; SameSite=".concat(this.options.sameSite)),g=ft(),g&&(g.document.cookie=p)}catch(b){y=b instanceof Error?b.message:String(b),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(n,". Error: ").concat(y))}return[2]})})},e.prototype.remove=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){switch(r.label){case 0:return[4,this.set(n,null)];case 1:return r.sent(),[2]}})})},e.prototype.reset=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return[2]})})},e})(),bD=function(e){try{return decodeURIComponent(atob(e))}catch{return}},xD=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},a1=function(e){var n;return(n=bD(e))!==null&&n!==void 0?n:xD(e)},r1=function(e,n){if(!e||!n)return!1;var r=e.startsWith(".")?e.substring(1):e,o=n.startsWith(".")?n.substring(1):n;return r.toLowerCase()===o.toLowerCase()},c0=function(e,n,r){return n===void 0&&(n=""),r===void 0&&(r=10),[sc,n,e.substring(0,r)].filter(Boolean).join("_")},Gh=(function(){function e(n){this.storage=n}return e.prototype.isEnabled=function(){return oe(this,void 0,void 0,function(){var n,r,o,l;return ie(this,function(u){switch(u.label){case 0:if(!this.storage)return[2,!1];n=String(Date.now()),r=new e(this.storage),o="AMP_TEST",u.label=1;case 1:return u.trys.push([1,4,5,7]),[4,r.set(o,n)];case 2:return u.sent(),[4,r.get(o)];case 3:return l=u.sent(),[2,l===n];case 4:return u.sent(),[2,!1];case 5:return[4,r.remove(o)];case 6:return u.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getRaw(n)];case 1:return r=o.sent(),r?[2,JSON.parse(r)]:[2,void 0];case 2:return o.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(n){var r;return oe(this,void 0,void 0,function(){return ie(this,function(o){return[2,((r=this.storage)===null||r===void 0?void 0:r.getItem(n))||void 0]})})},e.prototype.set=function(n,r){var o;return oe(this,void 0,void 0,function(){return ie(this,function(l){try{(o=this.storage)===null||o===void 0||o.setItem(n,JSON.stringify(r))}catch{}return[2]})})},e.prototype.remove=function(n){var r;return oe(this,void 0,void 0,function(){return ie(this,function(o){try{(r=this.storage)===null||r===void 0||r.removeItem(n)}catch{}return[2]})})},e.prototype.reset=function(){var n;return oe(this,void 0,void 0,function(){return ie(this,function(r){try{(n=this.storage)===null||n===void 0||n.clear()}catch{}return[2]})})},e})(),wD=10,SD=1,Ke={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},d0={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},f0=(function(){function e(n,r){this.dbPromise=null,this.logger=r,this.dbName="AMP_diagnostics_".concat(n.substring(0,10))}return e.isSupported=function(){var n;return((n=ft())===null||n===void 0?void 0:n.indexedDB)!==void 0},e.prototype.getDB=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var n=this;return new Promise(function(r,o){var l=indexedDB.open(n.dbName,SD);l.onerror=function(){n.dbPromise=null,o(new Error("Failed to open IndexedDB"))},l.onsuccess=function(){var u=l.result;u.onclose=function(){n.dbPromise=null,n.logger.debug("DiagnosticsStorage: DB connection closed.")},u.onerror=function(c){n.logger.debug("DiagnosticsStorage: A global database error occurred.",c),u.close()},r(u)},l.onupgradeneeded=function(u){var c=u.target.result;n.createTables(c)}})},e.prototype.createTables=function(n){if(n.objectStoreNames.contains(Ke.TAGS)||n.createObjectStore(Ke.TAGS,{keyPath:"key"}),n.objectStoreNames.contains(Ke.COUNTERS)||n.createObjectStore(Ke.COUNTERS,{keyPath:"key"}),n.objectStoreNames.contains(Ke.HISTOGRAMS)||n.createObjectStore(Ke.HISTOGRAMS,{keyPath:"key"}),!n.objectStoreNames.contains(Ke.EVENTS)){var r=n.createObjectStore(Ke.EVENTS,{keyPath:"id",autoIncrement:!0});r.createIndex("time_idx","time",{unique:!1})}n.objectStoreNames.contains(Ke.INTERNAL)||n.createObjectStore(Ke.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),Object.entries(n).length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([Ke.TAGS],"readwrite"),l=o.objectStore(Ke.TAGS),[2,new Promise(function(p){var g=Object.entries(n);o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to set tags",y),p()},g.forEach(function(y){var v=_e(y,2),b=v[0],w=v[1],E=l.put({key:b,value:w});E.onerror=function(C){c.logger.debug("DiagnosticsStorage: Failed to set tag",b,w,C)}})})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",u),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),Object.entries(n).length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([Ke.COUNTERS],"readwrite"),l=o.objectStore(Ke.COUNTERS),[2,new Promise(function(p){var g=Object.entries(n);o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to increment counters",y),p()},g.forEach(function(y){var v=_e(y,2),b=v[0],w=v[1],E=l.get(b);E.onsuccess=function(){var C=E.result,D=C?C.value:0,_=l.put({key:b,value:D+w});_.onerror=function(A){c.logger.debug("DiagnosticsStorage: Failed to update counter",b,A)}},E.onerror=function(C){c.logger.debug("DiagnosticsStorage: Failed to read existing counter",b,C)}})})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",u),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),Object.entries(n).length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([Ke.HISTOGRAMS],"readwrite"),l=o.objectStore(Ke.HISTOGRAMS),[2,new Promise(function(p){var g=Object.entries(n);o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",y),p()},g.forEach(function(y){var v=_e(y,2),b=v[0],w=v[1],E=l.get(b);E.onsuccess=function(){var C=E.result,D;C?D={key:b,count:C.count+w.count,min:Math.min(C.min,w.min),max:Math.max(C.max,w.max),sum:C.sum+w.sum}:D={key:b,count:w.count,min:w.min,max:w.max,sum:w.sum};var _=l.put(D);_.onerror=function(A){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",b,A)}},E.onerror=function(C){c.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",b,C)}})})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",u),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),n.length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([Ke.EVENTS],"readwrite"),l=o.objectStore(Ke.EVENTS),[2,new Promise(function(p){o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to add event records",y),p()};var g=l.count();g.onsuccess=function(){var y=g.result,v=Math.max(0,wD-y);v<n.length&&c.logger.debug("DiagnosticsStorage: Only added ".concat(v," of ").concat(n.length," events due to storage limit")),n.slice(0,v).forEach(function(b){var w=l.add(b);w.onerror=function(E){c.logger.debug("DiagnosticsStorage: Failed to add event record",E)}})},g.onerror=function(y){c.logger.debug("DiagnosticsStorage: Failed to count existing events",y)}})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",u),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(n,r){return oe(this,void 0,void 0,function(){var o,l,u,c;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,this.getDB()];case 1:return o=h.sent(),l=o.transaction([Ke.INTERNAL],"readwrite"),u=l.objectStore(Ke.INTERNAL),[2,new Promise(function(p,g){l.onabort=function(){return g(new Error("Failed to set internal value"))};var y=u.put({key:n,value:r});y.onsuccess=function(){return p()},y.onerror=function(){return g(new Error("Failed to set internal value"))}})];case 2:return c=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",c),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u;return ie(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=c.sent(),o=r.transaction([Ke.INTERNAL],"readonly"),l=o.objectStore(Ke.INTERNAL),[2,new Promise(function(h,p){o.onabort=function(){return p(new Error("Failed to get internal value"))};var g=l.get(n);g.onsuccess=function(){return h(g.result)},g.onerror=function(){return p(new Error("Failed to get internal value"))}})];case 2:return u=c.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",u),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return oe(this,void 0,void 0,function(){var n,r;return ie(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getInternal(d0.LAST_FLUSH_TIMESTAMP)];case 1:return n=o.sent(),[2,n?parseInt(n.value,10):void 0];case 2:return r=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",r),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.setInternal(d0.LAST_FLUSH_TIMESTAMP,n.toString())];case 1:return o.sent(),[3,3];case 2:return r=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",r),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(n,r){return new Promise(function(o,l){var u=n.objectStore(r),c=u.clear();c.onsuccess=function(){return o()},c.onerror=function(){return l(new Error("Failed to clear table ".concat(r)))}})},e.prototype.getAllAndClear=function(){return oe(this,void 0,void 0,function(){var n,r,o,l,u,c,h,p;return ie(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),[4,this.getDB()];case 1:return n=g.sent(),r=n.transaction([Ke.TAGS,Ke.COUNTERS,Ke.HISTOGRAMS,Ke.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(r,Ke.TAGS),this.getAllFromStore(r,Ke.COUNTERS),this.getAllFromStore(r,Ke.HISTOGRAMS),this.getAllFromStore(r,Ke.EVENTS)])];case 2:return o=_e.apply(void 0,[g.sent(),4]),l=o[0],u=o[1],c=o[2],h=o[3],[4,Promise.all([this.clearTable(r,Ke.COUNTERS),this.clearTable(r,Ke.HISTOGRAMS),this.clearTable(r,Ke.EVENTS)])];case 3:return g.sent(),[2,{tags:l,counters:u,histogramStats:c,events:h}];case 4:return p=g.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",p),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(n,r){return new Promise(function(o,l){var u=n.objectStore(r),c=u.getAll();c.onsuccess=function(){return o(c.result)},c.onerror=function(){return l(new Error("Failed to get all from ".concat(r)))}})},e})(),ED="__AMPLITUDE_SCRIPT_URL__",_D="sdk.error.uncaught",TD=function(){var e=ft();return e?.[ED]},DD=function(e){var n=ft();if(!(!n||typeof n.addEventListener!="function")){var r=function(u){var c=u.error instanceof Error?u.error:void 0,h=c?.stack,p=h0({filename:u.filename,stack:h});p&&l({type:"error",message:u.message,stack:h,filename:u.filename,errorName:c?.name,metadata:{colno:u.colno,lineno:u.lineno,isTrusted:u.isTrusted,matchReason:p}})},o=function(u){var c,h=u.reason instanceof Error?u.reason:void 0,p=h?.stack,g=CD(p),y=h0({filename:g,stack:p});y&&l({type:"unhandledrejection",message:(c=h?.message)!==null&&c!==void 0?c:kD(u.reason),stack:p,filename:g,errorName:h?.name,metadata:{isTrusted:u.isTrusted,matchReason:y}})},l=function(u){e.recordEvent(_D,me({type:u.type,message:u.message,filename:u.filename,error_name:u.errorName,stack:u.stack},u.metadata))};n.addEventListener("error",r,!0),n.addEventListener("unhandledrejection",o,!0)}},h0=function(e){var n=TD();if(n){if(e.filename&&e.filename.includes(n))return"filename";if(e.stack&&e.stack.includes(n))return"stack"}},CD=function(e){if(e){var n=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return n?n[1]:void 0}},kD=function(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return"[object Object]"}},ND=1e3,Du=300*1e3,AD="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",RD="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",Lf=1e4,jD=10,MD=(function(){function e(n,r,o,l){o===void 0&&(o="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=n,this.logger=r,this.serverUrl=o==="US"?AD:RD,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(l,null,2)),this.config=me({enabled:!0,sampleRate:0},l),this.startTimestamp=Date.now(),this.shouldTrack=u0(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,f0.isSupported()?this.storage=new f0(n,r):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),DD(this))}return e.prototype.isStorageAndTrackEnabled=function(){return!!this.storage&&!!this.shouldTrack},e.prototype.setTag=function(n,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryTags).length>=Lf){this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit");return}this.inMemoryTags[n]=r,this.startTimersIfNeeded()}},e.prototype.increment=function(n,r){if(r===void 0&&(r=1),!!this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryCounters).length>=Lf){this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit");return}this.inMemoryCounters[n]=(this.inMemoryCounters[n]||0)+r,this.startTimersIfNeeded()}},e.prototype.recordHistogram=function(n,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryHistograms).length>=Lf){this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");return}var o=this.inMemoryHistograms[n];o?(o.count+=1,o.min=Math.min(o.min,r),o.max=Math.max(o.max,r),o.sum+=r):this.inMemoryHistograms[n]={count:1,min:r,max:r,sum:r},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(n,r){if(this.isStorageAndTrackEnabled()){if(this.inMemoryEvents.length>=jD){this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit");return}this.inMemoryEvents.push({event_name:n,time:Date.now(),event_properties:r}),this.startTimersIfNeeded()}},e.prototype.startTimersIfNeeded=function(){var n=this;this.saveTimer||(this.saveTimer=setTimeout(function(){n.saveAllDataToStorage().catch(function(r){n.logger.debug("DiagnosticsClient: Failed to save all data to storage",r)}).finally(function(){n.saveTimer=null})},ND)),this.flushTimer||(this.flushTimer=setTimeout(function(){n._flush().catch(function(r){n.logger.debug("DiagnosticsClient: Failed to flush",r)}).finally(function(){n.flushTimer=null})},Du))},e.prototype.saveAllDataToStorage=function(){return oe(this,void 0,void 0,function(){var n,r,o,l;return ie(this,function(u){switch(u.label){case 0:return this.storage?(n=me({},this.inMemoryTags),r=me({},this.inMemoryCounters),o=me({},this.inMemoryHistograms),l=et([],_e(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(n),this.storage.incrementCounters(r),this.storage.setHistogramStats(o),this.storage.addEventRecords(l)])]):[2];case 1:return u.sent(),[2]}})})},e.prototype._flush=function(){return oe(this,void 0,void 0,function(){var n,r,o,l,u,c,h,p,g,y;return ie(this,function(v){switch(v.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return v.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return n=v.sent(),r=n.tags,o=n.counters,l=n.histogramStats,u=n.events,this.storage.setLastFlushTimestamp(Date.now()),c={},r.forEach(function(b){c[b.key]=b.value}),h={},o.forEach(function(b){h[b.key]=b.value}),p={},l.forEach(function(b){p[b.key]={count:b.count,min:b.min,max:b.max,avg:Math.round(b.sum/b.count*100)/100}}),g=u.map(function(b){return{event_name:b.event_name,time:b.time,event_properties:b.event_properties}}),Object.keys(h).length===0&&Object.keys(p).length===0&&g.length===0?[2]:(y={tags:c,histogram:p,counters:h,events:g},this.fetch(y),[2])}})})},e.prototype.fetch=function(n){return oe(this,void 0,void 0,function(){var r,o;return ie(this,function(l){switch(l.label){case 0:if(l.trys.push([0,2,,3]),!ft())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(n)})];case 1:return r=l.sent(),r.ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return o=l.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",o),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return oe(this,void 0,void 0,function(){var n,r,o;return ie(this,function(l){switch(l.label){case 0:return this.storage?(n=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return r=l.sent()||-1,r===-1?(this.storage.setLastFlushTimestamp(n),this._setFlushTimer(Du),[2]):(o=n-r,o>=Du?(this._flush(),[2]):(this._setFlushTimer(Du-o),[2]))}})})},e.prototype._setFlushTimer=function(n){var r=this;this.flushTimer=setTimeout(function(){r._flush().catch(function(o){r.logger.debug("DiagnosticsClient: Failed to flush",o)}).finally(function(){r.flushTimer=null})},n)},e.prototype._setSampleRate=function(n){this.logger.debug("DiagnosticsClient: Setting sample rate to",n),this.config.sampleRate=n,this.shouldTrack=u0(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e})(),Yh=(function(){function e(){}return e.prototype.send=function(n,r){return Promise.resolve(null)},e.prototype.buildResponse=function(n){var r,o,l,u,c,h,p,g,y,v,b,w,E,C,D,_,A,N,M,O,I,S;if(typeof n!="object")return null;var U=n.code||0,F=this.buildStatus(U);switch(F){case Bt.Success:return{status:F,statusCode:U,body:{eventsIngested:(r=n.events_ingested)!==null&&r!==void 0?r:0,payloadSizeBytes:(o=n.payload_size_bytes)!==null&&o!==void 0?o:0,serverUploadTime:(l=n.server_upload_time)!==null&&l!==void 0?l:0}};case Bt.Invalid:return{status:F,statusCode:U,body:{error:(u=n.error)!==null&&u!==void 0?u:"",missingField:(c=n.missing_field)!==null&&c!==void 0?c:"",eventsWithInvalidFields:(h=n.events_with_invalid_fields)!==null&&h!==void 0?h:{},eventsWithMissingFields:(p=n.events_with_missing_fields)!==null&&p!==void 0?p:{},eventsWithInvalidIdLengths:(g=n.events_with_invalid_id_lengths)!==null&&g!==void 0?g:{},epsThreshold:(y=n.eps_threshold)!==null&&y!==void 0?y:0,exceededDailyQuotaDevices:(v=n.exceeded_daily_quota_devices)!==null&&v!==void 0?v:{},silencedDevices:(b=n.silenced_devices)!==null&&b!==void 0?b:[],silencedEvents:(w=n.silenced_events)!==null&&w!==void 0?w:[],throttledDevices:(E=n.throttled_devices)!==null&&E!==void 0?E:{},throttledEvents:(C=n.throttled_events)!==null&&C!==void 0?C:[]}};case Bt.PayloadTooLarge:return{status:F,statusCode:U,body:{error:(D=n.error)!==null&&D!==void 0?D:""}};case Bt.RateLimit:return{status:F,statusCode:U,body:{error:(_=n.error)!==null&&_!==void 0?_:"",epsThreshold:(A=n.eps_threshold)!==null&&A!==void 0?A:0,throttledDevices:(N=n.throttled_devices)!==null&&N!==void 0?N:{},throttledUsers:(M=n.throttled_users)!==null&&M!==void 0?M:{},exceededDailyQuotaDevices:(O=n.exceeded_daily_quota_devices)!==null&&O!==void 0?O:{},exceededDailyQuotaUsers:(I=n.exceeded_daily_quota_users)!==null&&I!==void 0?I:{},throttledEvents:(S=n.throttled_events)!==null&&S!==void 0?S:[]}};case Bt.Timeout:default:return{status:F,statusCode:U}}},e.prototype.buildStatus=function(n){return hh(n)?Bt.Success:n===429?Bt.RateLimit:n===413?Bt.PayloadTooLarge:n===408?Bt.Timeout:n>=400&&n<500?Bt.Invalid:n>=500?Bt.Failed:Bt.Unknown},e})(),OD=(function(e){Ti(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;return o.customHeaders=r,o}return n.prototype.send=function(r,o){return oe(this,void 0,void 0,function(){var l,u,c;return ie(this,function(h){switch(h.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return l={headers:me({"Content-Type":"application/json",Accept:"*/*"},this.customHeaders),body:JSON.stringify(o),method:"POST"},[4,fetch(r,l)];case 1:return u=h.sent(),[4,u.text()];case 2:c=h.sent();try{return[2,this.buildResponse(JSON.parse(c))]}catch{return[2,this.buildResponse({code:u.status})]}return[2]}})})},n})(Yh),LD=(function(){function e(n,r){this.key="AMP_remote_config_".concat(n.substring(0,10)),this.logger=r}return e.prototype.fetchConfig=function(){var n=null,r={remoteConfig:null,lastFetch:new Date};try{n=localStorage.getItem(this.key)}catch(l){return this.logger.debug("Remote config localstorage failed to access: ",l),Promise.resolve(r)}if(n===null)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(r);try{var o=JSON.parse(n);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(o))),Promise.resolve({remoteConfig:o.remoteConfig,lastFetch:new Date(o.lastFetch)})}catch(l){return this.logger.debug("Remote config localstorage failed to parse: ",l),localStorage.removeItem(this.key),Promise.resolve(r)}},e.prototype.setConfig=function(n){try{return localStorage.setItem(this.key,JSON.stringify(n)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(r){this.logger.debug("Remote config localstorage failed to set: ",r)}return Promise.resolve(!1)},e})(),ID="https://sr-client-cfg.amplitude.com/config",zD="https://sr-client-cfg.eu.amplitude.com/config",FD=3,UD=1e3,qD=300*1e3,BD=(function(){function e(n,r,o,l){o===void 0&&(o="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.apiKey=n,this.serverUrl=l||(o==="US"?ID:zD),this.logger=r,this.storage=new LD(n,r)}return e.prototype.subscribe=function(n,r,o){var l=qa(),u={id:l,key:n,deliveryMode:r,callback:o};return this.callbackInfos.push(u),r==="all"?this.subscribeAll(u):this.subscribeWaitForRemote(u,r.timeout),l},e.prototype.unsubscribe=function(n){var r=this.callbackInfos.findIndex(function(o){return o.id===n});return r===-1?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(n," doesn't exist.")),!1):(this.callbackInfos.splice(r,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(n,".")),!0)},e.prototype.updateConfigs=function(){return oe(this,void 0,void 0,function(){var n,r,o=this;return ie(this,function(l){switch(l.label){case 0:return this.lastSuccessfulFetch&&(n=Date.now()-this.lastSuccessfulFetch,n<qD)?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return r=l.sent(),this.storage.setConfig(r),this.callbackInfos.forEach(function(u){o.sendCallback(u,r,"remote")}),[2]}})})},e.prototype.getOrCreateFetchPromise=function(){var n=this;return this.fetchPromise?this.fetchPromise:(this.fetchPromise=this.fetch().then(function(r){return r.remoteConfig!==null&&(n.lastSuccessfulFetch=Date.now()),r}).finally(function(){n.fetchPromise=null}),this.fetchPromise)},e.prototype.subscribeAll=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u=this;return ie(this,function(c){switch(c.label){case 0:return r=this.getOrCreateFetchPromise().then(function(h){u.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(h))),u.sendCallback(n,h,"remote"),u.storage.setConfig(h)}),o=this.storage.fetchConfig().then(function(h){return h}),[4,Promise.race([r,o])];case 1:return l=c.sent(),l!==void 0&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(l))),l.remoteConfig!==null?this.sendCallback(n,l,"cache"):this.logger.debug("Remote config client skips sending callback because cache is empty (first time user).")),[4,r];case 2:return c.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(n,r){return oe(this,void 0,void 0,function(){var o,l,l;return ie(this,function(u){switch(u.label){case 0:o=new Promise(function(c,h){setTimeout(function(){h("Timeout exceeded")},r)}),u.label=1;case 1:return u.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),o])];case 2:return l=u.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(n,l,"remote"),this.storage.setConfig(l),[3,5];case 3:return u.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return l=u.sent(),l.remoteConfig!==null?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(n,l,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(n,l,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(n,r,o){n.lastCallback=new Date;var l;n.key?l=n.key.split(".").reduce(function(u,c){return u===null?u:c in u?u[c]:null},r.remoteConfig):l=r.remoteConfig,n.callback(l,o,r.lastFetch)},e.prototype.fetch=function(n,r){return n===void 0&&(n=FD),r===void 0&&(r=UD),oe(this,void 0,void 0,function(){var o,l,u,c,h,p,g=this;return ie(this,function(y){switch(y.label){case 0:o=r/n,l={remoteConfig:null,lastFetch:new Date},u=function(v){var b,w,E,C,D,_;return ie(this,function(A){switch(A.label){case 0:b=new AbortController,w=setTimeout(function(){return b.abort()},r),A.label=1;case 1:return A.trys.push([1,7,8,9]),[4,fetch(c.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:b.signal})];case 2:return E=A.sent(),E.ok?[3,4]:[4,E.text()];case 3:return C=A.sent(),c.logger.debug("Remote config client fetch with retry time ".concat(n," failed with ").concat(E.status,": ").concat(C)),[3,6];case 4:return[4,E.json()];case 5:return D=A.sent(),[2,{value:{remoteConfig:D,lastFetch:new Date}}];case 6:return[3,9];case 7:return _=A.sent(),_ instanceof Error&&_.name==="AbortError"?c.logger.debug("Remote config client fetch with retry time ".concat(n," timed out after ").concat(r,"ms")):c.logger.debug("Remote config client fetch with retry time ".concat(n," is rejected because: "),_),[3,9];case 8:return clearTimeout(w),[7];case 9:return v<n-1?[4,new Promise(function(N){return setTimeout(N,g.getJitterDelay(o))})]:[3,11];case 10:A.sent(),A.label=11;case 11:return[2]}})},c=this,h=0,y.label=1;case 1:return h<n?[5,u(h)]:[3,4];case 2:if(p=y.sent(),typeof p=="object")return[2,p.value];y.label=3;case 3:return h++,[3,1];case 4:return[2,l]}})})},e.prototype.getJitterDelay=function(n){return Math.floor(Math.random()*n)},e.prototype.getUrlParams=function(){var n=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(n,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e})(),If=ft(),So=If?.console,Si={},Vs={},zf=!1;function PD(e){if(!So||typeof So[e]!="function")return!1;if(Vs[e])return!0;var n=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];try{if(Si[e]&&!zf){zf=!0;var l=Si[e];l&&l.forEach(function(u){try{u(e,r)}catch{}})}}catch{}return zf=!1,Vs[e].apply(So,r)};return Vs[e]=So[e],So[e]=n,!0}function HD(e,n){var r=PD(e);if(!r)return new Error("Console override failed");Si[e]?Si[e].push(n):Si[e]=[n]}function $D(e){var n,r;try{for(var o=Pe(Object.values(Si)),l=o.next();!l.done;l=o.next())for(var u=l.value,c=u.length-1;c>=0;c--)if(u[c]===e){u.splice(c,1);break}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function QD(){var e,n;try{for(var r=Pe(Object.entries(Vs)),o=r.next();!o.done;o=r.next()){var l=_e(o.value,2),u=l[0],c=l[1];c&&(So[u]=c)}}catch(h){e={error:h}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}Vs={},Si={}}var m0={addListener:HD,removeListener:$D,_restoreConsole:QD},VD=null,GD=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],i1="data-amp-track-",YD=["div","span","h1","h2","h3","h4","h5","h6"],KD=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],o1=et(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],_e(KD),!1),WD=o1,XD=o1,ZD=["*"],JD=1e3,eC=4,tC=50;function nC(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0}function s1(e,n,r){if(e){var o=n.map(p0),l=r.map(p0);l1({json:e,allowlist:o,excludelist:l,ancestors:[]})}}function l1(e){var n,r,o=e.json,l=e.targetObject,u=e.allowlist,c=e.excludelist,h=e.ancestors,p=e.parentObject,g=e.targetKey;l||(l=o);var y=Object.keys(l);try{for(var v=Pe(y),b=v.next();!b.done;b=v.next()){var w=b.value,E=et(et([],_e(h),!1),[w],!1);nC(l[w])?(!v0(E,u)||v0(E,c))&&delete l[w]:l1({json:o,targetObject:l[w],allowlist:u,excludelist:c,ancestors:E,parentObject:l,targetKey:w})}}catch(C){n={error:C}}finally{try{b&&!b.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}Object.keys(l).length===0&&p&&g&&delete p[g]}function p0(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(n){return n.replace(/~0/g,"~").replace(/~1/g,"/")})}function ph(e,n,r,o){if(r===void 0&&(r=0),o===void 0&&(o=0),o===n.length)return r===e.length;if(r===e.length){for(;o<n.length&&n[o]==="**";)o++;return o===n.length}var l=n[o];if(l==="**"){if(o+1===n.length)return!0;for(var u=r;u<=e.length;u++)if(ph(e,n,u,o+1))return!0;return!1}else return l==="*"||l===e[r]?ph(e,n,r+1,o+1):!1}function v0(e,n){return n.some(function(r){return ph(e,r)})}var aC=500,u1=100,rC=(function(){function e(n){this.request=n}return e.prototype.headers=function(n){var r,o;n===void 0&&(n=[]);var l=this.request.headers,u={};if(Array.isArray(l))l.forEach(function(v){var b=_e(v,2),w=b[0],E=b[1];u[w]=E});else if(l instanceof Headers)l.forEach(function(v,b){u[b]=v});else if(typeof l=="object"&&l!==null)try{for(var c=Pe(Object.entries(l)),h=c.next();!h.done;h=c.next()){var p=_e(h.value,2),g=p[0],y=p[1];u[g]=y}}catch(v){r={error:v}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return uc(u,{allow:n})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize=="number")return this._bodySize;var n=ft();if(n?.TextEncoder){var r=this.request.body;return this._bodySize=c1(r,u1),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body=="string"?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){return n.length===0?[2,null]:(o=this.body,[2,Kh(o,n,r)])})})},e})(),iC=(function(){function e(n,r){this.bodyRaw=n,this.requestHeaders=r}return e.prototype.headers=function(n){return n===void 0&&(n=[]),uc(this.requestHeaders,{allow:n})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return c1(this.bodyRaw,u1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw=="string"?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){return n.length===0?[2,null]:(o=this.body,[2,Kh(o,n,r)])})})},e})();function c1(e,n){var r,o,l,u=ft(),c=u?.TextEncoder;if(c){var h;if(typeof e=="string")h=e,l=new c().encode(h).length;else if(e instanceof Blob)h=e,l=h.size;else if(e instanceof URLSearchParams)h=e,l=new c().encode(h.toString()).length;else if(ArrayBuffer.isView(e))h=e,l=h.byteLength;else if(e instanceof ArrayBuffer)h=e,l=h.byteLength;else if(e instanceof FormData){var p=e,g=0,y=0;try{for(var v=Pe(p.entries()),b=v.next();!b.done;b=v.next()){var w=_e(b.value,2),E=w[0],C=w[1];if(g+=E.length,typeof C=="string")g+=new c().encode(C).length;else if(C instanceof Blob)g+=C.size;else return;if(++y>=n)return}}catch(D){r={error:D}}finally{try{b&&!b.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}l=g}else if(e instanceof ReadableStream){h=e;return}return l}}var oC=(function(){function e(n){this.response=n}return e.prototype.headers=function(n){var r;if(n===void 0&&(n=[]),this.response.headers instanceof Headers){var o=this.response.headers,l={};return(r=o?.forEach)===null||r===void 0||r.call(o,function(u,c){l[c]=u}),uc(l,{allow:n})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var n,r;if(this._bodySize!==void 0)return this._bodySize;var o=(r=(n=this.response.headers)===null||n===void 0?void 0:n.get)===null||r===void 0?void 0:r.call(n,"content-length"),l=o?parseInt(o,10):void 0;return this._bodySize=l,l},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return oe(this,void 0,void 0,function(){var n,r,o;return ie(this,function(l){switch(l.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),l.label=1;case 1:return l.trys.push([1,3,,4]),n=this.clonedResponse.text(),r=new Promise(function(u){return setTimeout(function(){return u(null)},aC)}),[4,Promise.race([n,r])];case 2:return o=l.sent(),[2,o];case 3:return l.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){switch(l.label){case 0:return n.length===0?[2,null]:[4,this.text()];case 1:return o=l.sent(),[2,Kh(o,n,r)]}})})},e})(),sC=(function(){function e(n,r,o,l){this.statusCode=n,this.headersString=r,this.size=o,this.getJson=l}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(n){var r,o;if(n===void 0&&(n=[]),!this.headersString)return{};var l={},u=this.headersString.split(`\r
14
- `);try{for(var c=Pe(u),h=c.next();!h.done;h=c.next()){var p=h.value,g=_e(p.split(": "),2),y=g[0],v=g[1];y&&v&&(l[y]=v)}}catch(b){r={error:b}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return uc(l,{allow:n})},e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){return n.length===0?[2,null]:(o=this.getJson(),o?(s1(o,n,r),[2,o]):[2,null])})})},e})();function Kh(e,n,r){if(!e)return null;try{var o=JSON.parse(e);return s1(o,n,r),o}catch{return null}}var Gs;(function(e){e.REDACT="redact",e.REMOVE="remove"})(Gs||(Gs={}));var g0="[REDACTED]",uc=function(e,n){var r,o,l=n.allow,u=l===void 0?[]:l,c=n.strategy,h=c===void 0?Gs.REMOVE:c,p=et([],_e(OT),!1),g={},y=function(E){var C=E.toLowerCase();p.find(function(D){return D.toLowerCase()===C})?h===Gs.REDACT&&(g[E]=g0):u.find(function(D){return D.toLowerCase()===C})?g[E]=e[E]:h===Gs.REDACT&&(g[E]=g0)};try{for(var v=Pe(Object.keys(e)),b=v.next();!b.done;b=v.next()){var w=b.value;y(w)}}catch(E){r={error:E}}finally{try{b&&!b.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}return g},lC=(function(){function e(n,r,o,l,u,c,h,p,g,y,v){h===void 0&&(h=0),this.type=n,this.method=r,this.timestamp=o,this.startTime=l,this.url=u,this.requestWrapper=c,this.status=h,this.duration=p,this.responseWrapper=g,this.error=y,this.endTime=v}return e.prototype.toSerializable=function(){var n,r,o,l,u={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:(n=this.requestWrapper)===null||n===void 0?void 0:n.headers(et([],_e(Gu),!1)),requestBodySize:(r=this.requestWrapper)===null||r===void 0?void 0:r.bodySize,responseHeaders:(o=this.responseWrapper)===null||o===void 0?void 0:o.headers(et([],_e(Gu),!1)),responseBodySize:(l=this.responseWrapper)===null||l===void 0?void 0:l.bodySize};return Object.fromEntries(Object.entries(u).filter(function(c){var h=_e(c,2);h[0];var p=h[1];return p!==void 0}))},e})();function uC(e){return typeof e=="object"&&e!==null&&"url"in e&&"method"in e}var cC=(function(){function e(n,r){r===void 0&&(r=qa()),this.callback=n,this.id=r}return e})(),dC=(function(){function e(n){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=n;var r=ft();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var n=ft();return!!n&&!!n.fetch},e.prototype.subscribe=function(n,r){var o,l,u,c,h,p,g,y,v,b;if(this.logger||(this.logger=r),this.eventCallbacks.set(n.id,n),!this.isObserving){var w=(u=(l=(o=this.globalScope)===null||o===void 0?void 0:o.XMLHttpRequest)===null||l===void 0?void 0:l.prototype)===null||u===void 0?void 0:u.open,E=(p=(h=(c=this.globalScope)===null||c===void 0?void 0:c.XMLHttpRequest)===null||h===void 0?void 0:h.prototype)===null||p===void 0?void 0:p.send,C=(v=(y=(g=this.globalScope)===null||g===void 0?void 0:g.XMLHttpRequest)===null||y===void 0?void 0:y.prototype)===null||v===void 0?void 0:v.setRequestHeader;w&&E&&C&&this.observeXhr(w,E,C);var D=(b=this.globalScope)===null||b===void 0?void 0:b.fetch;D&&this.observeFetch(D),this.isObserving=!0}},e.prototype.unsubscribe=function(n){this.eventCallbacks.delete(n.id)},e.prototype.triggerEventCallbacks=function(n){var r=this;this.eventCallbacks.forEach(function(o){var l;try{o.callback(n)}catch(u){(l=r.logger)===null||l===void 0||l.debug("an unexpected error occurred while triggering event callbacks",u)}})},e.prototype.handleNetworkRequestEvent=function(n,r,o,l,u,c,h){var p;if(!(c===void 0||h===void 0)){var g,y="GET";if(uC(r)?(g=r.url,y=r.method):g=(p=r?.toString)===null||p===void 0?void 0:p.call(r),g)try{var v=new URL(g);g="".concat(v.protocol,"//").concat(v.host).concat(v.pathname).concat(v.search).concat(v.hash)}catch{}y=o?.method||y;var b,w;l&&(b=l.status),u&&(w={name:u.name||"UnknownError",message:u.message||"An unknown error occurred"},b=0);var E=Math.floor(performance.now()-h),C=Math.floor(c+E),D=new lC(n,y,c,c,g,o,b,E,l,w,C);this.triggerEventCallbacks(D)}},e.prototype.getTimestamps=function(){var n,r;return{startTime:(n=Date.now)===null||n===void 0?void 0:n.call(Date),durationStart:(r=performance?.now)===null||r===void 0?void 0:r.call(performance)}},e.prototype.observeFetch=function(n){var r=this;!this.globalScope||!n||(this.globalScope.fetch=function(o,l){return oe(r,void 0,void 0,function(){var u,c,h,p,g,y;return ie(this,function(v){switch(v.label){case 0:try{u=this.getTimestamps()}catch(b){(g=this.logger)===null||g===void 0||g.debug("an unexpected error occurred while retrieving timestamps",b)}v.label=1;case 1:return v.trys.push([1,3,,4]),[4,n(o,l)];case 2:return c=v.sent(),[3,4];case 3:return p=v.sent(),h=p,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",o,l?new rC(l):void 0,c?new oC(c):void 0,h,u?.startTime,u?.durationStart)}catch(b){(y=this.logger)===null||y===void 0||y.debug("an unexpected error occurred while handling fetch",b)}if(c)return[2,c];throw h}})})})},e.createXhrJsonParser=function(n,r){return function(){var o,l;try{if(n.responseType==="json"){if(!((o=r.globalScope)===null||o===void 0)&&o.structuredClone)return r.globalScope.structuredClone(n.response)}else if(["text",""].includes(n.responseType))return JSON.parse(n.responseText)}catch(u){return u instanceof Error&&u.name==="InvalidStateError"&&((l=r.logger)===null||l===void 0||l.error("unexpected error when retrieving responseText. responseType='".concat(n.responseType,"'"))),null}return null}},e.prototype.observeXhr=function(n,r,o){if(!(!this.globalScope||!n||!r)){var l=this.globalScope.XMLHttpRequest.prototype,u=this;l.open=function(){for(var c,h,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];var y=this,v=_e(p,2),b=v[0],w=v[1];try{y.$$AmplitudeAnalyticsEvent=me({method:b,url:(c=w?.toString)===null||c===void 0?void 0:c.call(w),headers:{}},u.getTimestamps())}catch(E){(h=u.logger)===null||h===void 0||h.error("an unexpected error occurred while calling xhr open",E)}return n.apply(y,p)},l.send=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];var p=this,g=p,y=e.createXhrJsonParser(p,u),v=c[0],b=g.$$AmplitudeAnalyticsEvent;return g.addEventListener("loadend",function(){var w;try{var E=g.getAllResponseHeaders(),C=g.getResponseHeader("content-length"),D=new sC(g.status,E,C?parseInt(C,10):void 0,y),_=g.$$AmplitudeAnalyticsEvent.headers,A=new iC(v,_);b.status=g.status,u.handleNetworkRequestEvent("xhr",{url:b.url,method:b.method},A,D,void 0,b.startTime,b.durationStart)}catch(N){(w=u.logger)===null||w===void 0||w.error("an unexpected error occurred while handling xhr send",N)}}),r.apply(g,c)},l.setRequestHeader=function(c,h){var p,g=this;try{g.$$AmplitudeAnalyticsEvent.headers[c]=h}catch(y){(p=u.logger)===null||p===void 0||p.error("an unexpected error occurred while calling xhr setRequestHeader",y)}o.apply(g,[c,h])}}},e})(),y0=new dC,d1=(function(){function e(){}return e.prototype.parse=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return[2,me(me(me(me({},lc),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var n=Ku(),r=n[kT],o=n[NT],l=n[AT],u=n[RT],c=n[jT],h=n[MT];return{utm_campaign:r,utm_content:o,utm_id:l,utm_medium:u,utm_source:c,utm_term:h}},e.prototype.getReferrer=function(){var n,r,o={referrer:void 0,referring_domain:void 0};try{o.referrer=document.referrer||void 0,o.referring_domain=(r=(n=o.referrer)===null||n===void 0?void 0:n.split("/")[2])!==null&&r!==void 0?r:void 0}catch{}return o},e.prototype.getClickIds=function(){var n,r=Ku();return n={},n[Ky]=r[Ky],n[Wy]=r[Wy],n[Xy]=r[Xy],n[Zy]=r[Zy],n[Jy]=r[Jy],n[e0]=r[e0],n[t0]=r[t0],n[n0]=r[n0],n[a0]=r[a0],n[r0]=r[r0],n[i0]=r[i0],n},e})(),Ys="data-amp-mask",Yr="*****",fC=/\b(?:\d[ -]*?){13,16}\b/,hC=/(\d{3}-?\d{2}-?\d{4})/g,mC=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,Wh=function(e,n){var r,o;if(n===void 0&&(n=[]),typeof e!="string")return"";var l=e;l=l.replace(fC,Yr),l=l.replace(hC,Yr),l=l.replace(mC,Yr);try{for(var u=Pe(n),c=u.next();!c.done;c=u.next()){var h=c.value;try{l=l.replace(h,Yr)}catch{}}}catch(p){r={error:p}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return l},Xh=function(e){if(typeof document>"u"||!document.title)return"";var n=document.querySelector("title");return n&&n.hasAttribute(Ys)?Yr:e?e(document.title):document.title};function pC(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=vC(e))||n){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vC(e,n){if(e){if(typeof e=="string")return b0(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b0(e,n)}}function b0(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=e[r];return o}function x0(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Zh(e,n,r){return n&&x0(e.prototype,n),r&&x0(e,r),e}var Jh=function(){return typeof Symbol=="function"},em=function(e){return Jh()&&!!Symbol[e]},tm=function(e){return em(e)?Symbol[e]:"@@"+e};Jh()&&!em("observable")&&(Symbol.observable=Symbol("observable"));var gC=tm("iterator"),vh=tm("observable"),f1=tm("species");function Xu(e,n){var r=e[n];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function Os(e){var n=e.constructor;return n!==void 0&&(n=n[f1],n===null&&(n=void 0)),n!==void 0?n:un}function yC(e){return e instanceof un}function Mo(e){Mo.log?Mo.log(e):setTimeout(function(){throw e})}function Bu(e){Promise.resolve().then(function(){try{e()}catch(n){Mo(n)}})}function h1(e){var n=e._cleanup;if(n!==void 0&&(e._cleanup=void 0,!!n))try{if(typeof n=="function")n();else{var r=Xu(n,"unsubscribe");r&&r.call(n)}}catch(o){Mo(o)}}function gh(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function bC(e){var n=e._queue;if(n){e._queue=void 0,e._state="ready";for(var r=0;r<n.length&&(m1(e,n[r].type,n[r].value),e._state!=="closed");++r);}}function m1(e,n,r){e._state="running";var o=e._observer;try{var l=Xu(o,n);switch(n){case"next":l&&l.call(o,r);break;case"error":if(gh(e),l)l.call(o,r);else throw r;break;case"complete":gh(e),l&&l.call(o);break}}catch(u){Mo(u)}e._state==="closed"?h1(e):e._state==="running"&&(e._state="ready")}function Ff(e,n,r){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:n,value:r});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:n,value:r}],Bu(function(){return bC(e)});return}m1(e,n,r)}}var xC=(function(){function e(r,o){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var l=new wC(this);try{this._cleanup=o.call(void 0,l)}catch(u){l.error(u)}this._state==="initializing"&&(this._state="ready")}var n=e.prototype;return n.unsubscribe=function(){this._state!=="closed"&&(gh(this),h1(this))},Zh(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),wC=(function(){function e(r){this._subscription=r}var n=e.prototype;return n.next=function(o){Ff(this._subscription,"next",o)},n.error=function(o){Ff(this._subscription,"error",o)},n.complete=function(){Ff(this._subscription,"complete")},Zh(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),un=(function(){function e(r){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var n=e.prototype;return n.subscribe=function(o){return(typeof o!="object"||o===null)&&(o={next:o,error:arguments[1],complete:arguments[2]}),new xC(o,this._subscriber)},n.forEach=function(o){var l=this;return new Promise(function(u,c){if(typeof o!="function"){c(new TypeError(o+" is not a function"));return}function h(){p.unsubscribe(),u()}var p=l.subscribe({next:function(g){try{o(g,h)}catch(y){c(y),p.unsubscribe()}},error:c,complete:u})})},n.map=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Os(this);return new u(function(c){return l.subscribe({next:function(h){try{h=o(h)}catch(p){return c.error(p)}c.next(h)},error:function(h){c.error(h)},complete:function(){c.complete()}})})},n.filter=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Os(this);return new u(function(c){return l.subscribe({next:function(h){try{if(!o(h))return}catch(p){return c.error(p)}c.next(h)},error:function(h){c.error(h)},complete:function(){c.complete()}})})},n.reduce=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Os(this),c=arguments.length>1,h=!1,p=arguments[1],g=p;return new u(function(y){return l.subscribe({next:function(v){var b=!h;if(h=!0,!b||c)try{g=o(g,v)}catch(w){return y.error(w)}else g=v},error:function(v){y.error(v)},complete:function(){if(!h&&!c)return y.error(new TypeError("Cannot reduce an empty sequence"));y.next(g),y.complete()}})})},n.concat=function(){for(var o=this,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var h=Os(this);return new h(function(p){var g,y=0;function v(b){g=b.subscribe({next:function(w){p.next(w)},error:function(w){p.error(w)},complete:function(){y===u.length?(g=void 0,p.complete()):v(h.from(u[y++]))}})}return v(o),function(){g&&(g.unsubscribe(),g=void 0)}})},n.flatMap=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Os(this);return new u(function(c){var h=[],p=l.subscribe({next:function(y){if(o)try{y=o(y)}catch(b){return c.error(b)}var v=u.from(y).subscribe({next:function(b){c.next(b)},error:function(b){c.error(b)},complete:function(){var b=h.indexOf(v);b>=0&&h.splice(b,1),g()}});h.push(v)},error:function(y){c.error(y)},complete:function(){g()}});function g(){p.closed&&h.length===0&&c.complete()}return function(){h.forEach(function(y){return y.unsubscribe()}),p.unsubscribe()}})},n[vh]=function(){return this},e.from=function(o){var l=typeof this=="function"?this:e;if(o==null)throw new TypeError(o+" is not an object");var u=Xu(o,vh);if(u){var c=u.call(o);if(Object(c)!==c)throw new TypeError(c+" is not an object");return yC(c)&&c.constructor===l?c:new l(function(h){return c.subscribe(h)})}if(em("iterator")&&(u=Xu(o,gC),u))return new l(function(h){Bu(function(){if(!h.closed){for(var p=pC(u.call(o)),g;!(g=p()).done;){var y=g.value;if(h.next(y),h.closed)return}h.complete()}})});if(Array.isArray(o))return new l(function(h){Bu(function(){if(!h.closed){for(var p=0;p<o.length;++p)if(h.next(o[p]),h.closed)return;h.complete()}})});throw new TypeError(o+" is not observable")},e.of=function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];var c=typeof this=="function"?this:e;return new c(function(h){Bu(function(){if(!h.closed){for(var p=0;p<l.length;++p)if(h.next(l[p]),h.closed)return;h.complete()}})})},Zh(e,null,[{key:f1,get:function(){return this}}]),e})();Jh()&&Object.defineProperty(un,Symbol("extensions"),{value:{symbol:vh,hostReportError:Mo},configurable:!0});function nm(e,n){return new un(function(r){e.subscribe({next:function(o){n(o).then(function(l){return r.next(l)}).catch(function(l){return r.error(l)})},error:function(o){r.error(o)},complete:function(){r.complete()}})})}function Ei(e,n){return new un(function(r){var o=!1,l=new Set,u=function(){var h,p;o=!0;try{for(var g=Pe(l),y=g.next();!y.done;y=g.next()){var v=y.value;try{v.unsubscribe()}catch{}}}catch(b){h={error:b}}finally{try{y&&!y.done&&(p=g.return)&&p.call(g)}finally{if(h)throw h.error}}l.clear()},c=function(h){var p=h.subscribe({next:function(g){o||r.next(g)},error:function(g){o||(o=!0,r.error(g),u())},complete:function(){l.delete(p),!o&&l.size===0&&(r.complete(),u(),o=!0)}});l.add(p)};return c(e),c(n),u})}function fr(e){var n=new Set,r=null;function o(){r?.unsubscribe(),r=null,n.clear()}return new un(function(l){return n.add(l),r===null&&(r=e.subscribe({next:function(u){var c,h,p;try{for(var g=Pe(n),y=g.next();!y.done;y=g.next()){var v=y.value;(p=v.next)===null||p===void 0||p.call(v,u)}}catch(b){c={error:b}}finally{try{y&&!y.done&&(h=g.return)&&h.call(g)}finally{if(c)throw c.error}}},error:function(u){var c,h,p;try{for(var g=Pe(n),y=g.next();!y.done;y=g.next()){var v=y.value;(p=v.error)===null||p===void 0||p.call(v,u)}}catch(b){c={error:b}}finally{try{y&&!y.done&&(h=g.return)&&h.call(g)}finally{if(c)throw c.error}}o()},complete:function(){var u,c,h;try{for(var p=Pe(n),g=p.next();!g.done;g=p.next()){var y=g.value;(h=y.complete)===null||h===void 0||h.call(y)}}catch(v){u={error:v}}finally{try{g&&!g.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}o()}})),function(){n.delete(l),n.size===0&&r&&(r.unsubscribe(),r=null)}})}var zo=function(e,n){return typeof e=="boolean"?e:e?.[n]!==!1},p1=function(e){return zo(e,"attribution")},SC=function(e){return zo(e,"fileDownloads")},v1=function(e){return zo(e,"formInteractions")},g1=function(e){return zo(e,"pageViews")},w0=function(e){return zo(e,"sessions")},EC=function(e){return zo(e,"pageUrlEnrichment")},y1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.networkTracking===!0||typeof e.networkTracking=="object")},b1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},_C=function(e){return typeof e=="boolean"?e:typeof e=="object"&&e.webVitals===!0},x1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions=="object")},TC=function(e){if(b1(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},DC=function(e){if(x1(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.frustrationInteractions=="object")return e.autocapture.frustrationInteractions},CC=function(e){var n;if(y1(e.autocapture)){var r=void 0;return typeof e.autocapture=="object"&&typeof e.autocapture.networkTracking=="object"?r=e.autocapture.networkTracking:e.networkTrackingOptions&&(r=e.networkTrackingOptions),me(me({},r),{captureRules:(n=r?.captureRules)===null||n===void 0?void 0:n.map(function(o){var l,u,c;if(!((l=o.urls)===null||l===void 0)&&l.length&&(!((u=o.hosts)===null||u===void 0)&&u.length)){var h=JSON.stringify(o.hosts),p=JSON.stringify(o.urls);return(c=e.loggerProvider)===null||c===void 0||c.warn("Found network capture rule with both urls='".concat(p,"' and hosts='").concat(h,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),me(me({},o),{hosts:void 0})}return o})})}},kC=function(e){var n=function(){return!1},r=void 0,o,l=e.pageCounter,u=g1(e.defaultTracking);return u&&(n=void 0,o=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(o=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:o,pageCounter:l}},NC=function(e){return p1(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?me({},e.defaultTracking.attribution):{}},AC=function(e){if(v1(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&typeof e.defaultTracking.formInteractions=="object")return e.defaultTracking.formInteractions},Uf=function(e,n){for(var r=0;r<n.length;r++){var o=n[r],l=o.name,u=o.args,c=o.resolve,h=e&&e[l];if(typeof h=="function"){var p=h.apply(e,u);typeof c=="function"&&c(p?.promise)}}return e},qf=function(e){var n=e;return n&&n._q!==void 0},am="2.34.0",w1="amplitude-ts",RC="Web",jC="$remote",MC=(function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(w1,"/").concat(am),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(n){return this.config=n,Promise.resolve(void 0)},e.prototype.execute=function(n){var r,o;return oe(this,void 0,void 0,function(){var l,u,c,h;return ie(this,function(p){return l=new Date().getTime(),u=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1,c=(o=n.event_id)!==null&&o!==void 0?o:u+1,this.config.lastEventId=c,n.time||(this.config.lastEventTime=l),h=me(me(me(me(me(me(me(me({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:l},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:RC}),this.config.trackingOptions.language&&{language:gD()}),this.config.trackingOptions.ipAddress&&{ip:jC}),{insert_id:qa(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),n),{event_id:c,library:this.library,user_agent:this.userAgent}),[2,h]})})},e})(),Cu=1e3,S1=(function(e){Ti(n,e);function n(r){var o=this,l,u,c;try{c=(l=ft())===null||l===void 0?void 0:l.localStorage}catch(h){(u=r?.loggerProvider)===null||u===void 0||u.debug("Failed to access localStorage. error=".concat(JSON.stringify(h))),c=void 0}return o=e.call(this,c)||this,o.loggerProvider=r?.loggerProvider,o}return n.prototype.set=function(r,o){var l;return oe(this,void 0,void 0,function(){var u;return ie(this,function(c){switch(c.label){case 0:return Array.isArray(o)&&o.length>Cu?(u=o.length-Cu,[4,e.prototype.set.call(this,r,o.slice(0,Cu))]):[3,2];case 1:return c.sent(),(l=this.loggerProvider)===null||l===void 0||l.error("Failed to save ".concat(u," events because the queue length exceeded ").concat(Cu,".")),[3,4];case 2:return[4,e.prototype.set.call(this,r,o)];case 3:c.sent(),c.label=4;case 4:return[2]}})})},n})(Gh),OC=(function(e){Ti(n,e);function n(){var r;return e.call(this,(r=ft())===null||r===void 0?void 0:r.sessionStorage)||this}return n})(Gh),LC=(function(e){Ti(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;return o.state={done:4},o.customHeaders=r,o}return n.prototype.send=function(r,o){return oe(this,void 0,void 0,function(){var l=this;return ie(this,function(u){return[2,new Promise(function(c,h){var p,g;typeof XMLHttpRequest>"u"&&h(new Error("XHRTransport is not supported."));var y=new XMLHttpRequest;y.open("POST",r,!0),y.onreadystatechange=function(){if(y.readyState===l.state.done){var _=y.responseText;try{c(l.buildResponse(JSON.parse(_)))}catch{c(l.buildResponse({code:y.status}))}}};var v=me({"Content-Type":"application/json",Accept:"*/*"},l.customHeaders);try{for(var b=Pe(Object.entries(v)),w=b.next();!w.done;w=b.next()){var E=_e(w.value,2),C=E[0],D=E[1];y.setRequestHeader(C,D)}}catch(_){p={error:_}}finally{try{w&&!w.done&&(g=b.return)&&g.call(b)}finally{if(p)throw p.error}}y.send(JSON.stringify(o))})]})})},n})(Yh),IC=(function(e){Ti(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.send=function(r,o){return oe(this,void 0,void 0,function(){var l=this;return ie(this,function(u){return[2,new Promise(function(c,h){var p=ft();if(!p?.navigator.sendBeacon)throw new Error("SendBeaconTransport is not supported");try{var g=JSON.stringify(o),y=p.navigator.sendBeacon(r,JSON.stringify(o));return c(y?l.buildResponse({code:200,events_ingested:o.events.length,payload_size_bytes:g.length,server_upload_time:Date.now()}):l.buildResponse({code:500}))}catch(v){h(v)}})]})})},n})(Yh),zC=function(e,n,r){return r===void 0&&(r=!0),oe(void 0,void 0,void 0,function(){var o,l,u,c,h,p,g,y,v;return ie(this,function(b){switch(b.label){case 0:return o=vD(e),[4,n.getRaw(o)];case 1:return l=b.sent(),l?r?[4,n.remove(o)]:[3,3]:[2,{optOut:!1}];case 2:b.sent(),b.label=3;case 3:return u=_e(l.split("."),6),c=u[0],h=u[1],p=u[2],g=u[3],y=u[4],v=u[5],[2,{deviceId:c,userId:FC(h),sessionId:Bf(g),lastEventId:Bf(v),lastEventTime:Bf(y),optOut:!!p}]}})})},Bf=function(e){var n=parseInt(e,32);if(!isNaN(n))return n},FC=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},wa="[Amplitude]",S0="".concat(wa," Form Started"),UC="".concat(wa," Form Submitted"),qC="".concat(wa," File Downloaded"),E0="session_start",_0="session_end",BC="".concat(wa," File Extension"),PC="".concat(wa," File Name"),HC="".concat(wa," Link ID"),$C="".concat(wa," Link Text"),QC="".concat(wa," Link URL"),Pf="".concat(wa," Form ID"),Hf="".concat(wa," Form Name"),$f="".concat(wa," Form Destination"),Zu="cookie",E1="US",VC=(function(e){Ti(n,e);function n(r,o,l,u,c,h,p,g,y,v,b,w,E,C,D,_,A,N,M,O,I,S,U,F,L,B,K,se,ae,ce,j,Y,le,de,fe,pe,G,X,ue,re){l===void 0&&(l=new Vh),u===void 0&&(u={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),g===void 0&&(g=1e3),y===void 0&&(y=5),v===void 0&&(v=30),b===void 0&&(b=Zu),_===void 0&&(_=new Qh),A===void 0&&(A=Pn.Warn),M===void 0&&(M=!1),O===void 0&&(O=!1),U===void 0&&(U=""),F===void 0&&(F=E1),B===void 0&&(B=1800*1e3),K===void 0&&(K=new S1({loggerProvider:_})),se===void 0&&(se={ipAddress:!0,language:!0,platform:!0}),ae===void 0&&(ae="fetch"),ce===void 0&&(ce=!1),j===void 0&&(j=!0),G===void 0&&(G=!0),X===void 0&&(X=0);var ee=this,ve;ee=e.call(this,{apiKey:r,storageProvider:K,transportProvider:_1(ae)})||this,ee.apiKey=r,ee.appVersion=o,ee.cookieOptions=u,ee.defaultTracking=c,ee.autocapture=h,ee.flushIntervalMillis=g,ee.flushMaxRetries=y,ee.flushQueueSize=v,ee.identityStorage=b,ee.ingestionMetadata=w,ee.instanceName=E,ee.loggerProvider=_,ee.logLevel=A,ee.minIdLength=N,ee.offline=M,ee.partnerId=I,ee.plan=S,ee.serverUrl=U,ee.serverZone=F,ee.sessionTimeout=B,ee.storageProvider=K,ee.trackingOptions=se,ee.transport=ae,ee.useBatch=ce,ee.fetchRemoteConfig=j,ee.networkTrackingOptions=fe,ee.identify=pe,ee.enableDiagnostics=G,ee.diagnosticsSampleRate=X,ee.diagnosticsClient=ue,ee.remoteConfig=re,ee.version=am,ee._optOut=!1,ee._cookieStorage=l,ee.deviceId=p,ee.lastEventId=C,ee.lastEventTime=D,ee.optOut=O,ee.sessionId=L,ee.pageCounter=le,ee.userId=Y,ee.debugLogsEnabled=de,ee.loggerProvider.enable(de?Pn.Debug:ee.logLevel),ee.networkTrackingOptions=fe,ee.identify=pe,ee.enableDiagnostics=G,ee.diagnosticsSampleRate=X,ee.diagnosticsClient=ue;var ge=(ve=re?.fetchRemoteConfig)!==null&&ve!==void 0?ve:j;return ee.remoteConfig=ee.remoteConfig||{},ee.remoteConfig.fetchRemoteConfig=ge,ee.fetchRemoteConfig=ge,ee}return Object.defineProperty(n.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(r){this._cookieStorage!==r&&(this._cookieStorage=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceId",{get:function(){return this._deviceId},set:function(r){this._deviceId!==r&&(this._deviceId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"userId",{get:function(){return this._userId},set:function(r){this._userId!==r&&(this._userId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sessionId",{get:function(){return this._sessionId},set:function(r){this._sessionId!==r&&(this._sessionId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"optOut",{get:function(){return this._optOut},set:function(r){this._optOut!==r&&(this._optOut=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(r){this._lastEventTime!==r&&(this._lastEventTime=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(r){this._lastEventId!==r&&(this._lastEventId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(r){this._pageCounter!==r&&(this._pageCounter=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"debugLogsEnabled",{set:function(r){this._debugLogsEnabled!==r&&(this._debugLogsEnabled=r,this.updateStorage())},enumerable:!1,configurable:!0}),n.prototype.updateStorage=function(){var r={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof Wu&&(r.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(n1(this.apiKey),r)},n})(JT),GC=function(e,n,r,o,l){return n===void 0&&(n={}),oe(void 0,void 0,void 0,function(){var u,c,h,p,g,y,v,b,w,E,C,D,_,A,N,M,O,I,S,U,F,L,B,K,se,ae,ce,j,Y,le,de,fe,pe,G,X,ue,re,ee,ve,ge,Ne,ot,cn,sn,Ea,Zt,Qn,Vn,Rn,sa;return ie(this,function(_t){switch(_t.label){case 0:return u=n.identityStorage||Zu,L={},u===Zu?[3,1]:(h="",[3,5]);case 1:return(K=(B=n.cookieOptions)===null||B===void 0?void 0:B.domain)!==null&&K!==void 0?(p=K,[3,4]):[3,2];case 2:return[4,WC()];case 3:p=_t.sent(),_t.label=4;case 4:h=p,_t.label=5;case 5:return c=me.apply(void 0,[(L.domain=h,L.expiration=365,L.sameSite="Lax",L.secure=!1,L.upgrade=!0,L),n.cookieOptions]),g={duplicateResolverFn:function(Ha){var _a=a1(Ha);if(!_a)return!1;var Pt=JSON.parse(_a);return r1(Pt.cookieDomain,c.domain)},diagnosticsClient:o},y=YC(n.identityStorage,c,g),[4,zC(e,y,(ae=(se=n.cookieOptions)===null||se===void 0?void 0:se.upgrade)!==null&&ae!==void 0?ae:!0)];case 6:return v=_t.sent(),[4,y.get(n1(e))];case 7:return b=_t.sent(),w=Ku(),E=w.ampTimestamp?Number(w.ampTimestamp):void 0,C=E?Date.now()<E:!0,D=(de=(le=(Y=(ce=n.deviceId)!==null&&ce!==void 0?ce:C?(j=w.ampDeviceId)!==null&&j!==void 0?j:w.deviceId:void 0)!==null&&Y!==void 0?Y:b?.deviceId)!==null&&le!==void 0?le:v.deviceId)!==null&&de!==void 0?de:qa(),_=(fe=b?.lastEventId)!==null&&fe!==void 0?fe:v.lastEventId,A=(pe=b?.lastEventTime)!==null&&pe!==void 0?pe:v.lastEventTime,N=(X=(G=n.optOut)!==null&&G!==void 0?G:b?.optOut)!==null&&X!==void 0?X:v.optOut,M=(ue=b?.sessionId)!==null&&ue!==void 0?ue:v.sessionId,O=(ee=(re=n.userId)!==null&&re!==void 0?re:b?.userId)!==null&&ee!==void 0?ee:v.userId,r.previousSessionDeviceId=(ve=b?.deviceId)!==null&&ve!==void 0?ve:v.deviceId,r.previousSessionUserId=(ge=b?.userId)!==null&&ge!==void 0?ge:v.userId,I={ipAddress:(ot=(Ne=n.trackingOptions)===null||Ne===void 0?void 0:Ne.ipAddress)!==null&&ot!==void 0?ot:!0,language:(sn=(cn=n.trackingOptions)===null||cn===void 0?void 0:cn.language)!==null&&sn!==void 0?sn:!0,platform:(Zt=(Ea=n.trackingOptions)===null||Ea===void 0?void 0:Ea.platform)!==null&&Zt!==void 0?Zt:!0},S=b?.pageCounter,U=b?.debugLogsEnabled,n.autocapture!==void 0&&(n.defaultTracking=n.autocapture),F=new VC(e,n.appVersion,y,c,n.defaultTracking,n.autocapture,D,n.flushIntervalMillis,n.flushMaxRetries,n.flushQueueSize,u,n.ingestionMetadata,n.instanceName,_,A,(Qn=l?.loggerProvider)!==null&&Qn!==void 0?Qn:n.loggerProvider,n.logLevel,n.minIdLength,n.offline,N,n.partnerId,n.plan,n.serverUrl,(Vn=l?.serverZone)!==null&&Vn!==void 0?Vn:n.serverZone,M,n.sessionTimeout,n.storageProvider,I,n.transport,n.useBatch,n.fetchRemoteConfig,O,S,U,n.networkTrackingOptions,n.identify,(Rn=l?.enableDiagnostics)!==null&&Rn!==void 0?Rn:n.enableDiagnostics,(sa=l?.diagnosticsSampleRate)!==null&&sa!==void 0?sa:r._diagnosticsSampleRate,o,n.remoteConfig),[4,F.storageProvider.isEnabled()];case 8:return _t.sent()||(F.loggerProvider.warn("Storage provider ".concat(F.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),F.storageProvider=new Vh),[2,F]}})})},YC=function(e,n,r){switch(e===void 0&&(e=Zu),n===void 0&&(n={}),e){case"localStorage":return new S1;case"sessionStorage":return new OC;case"none":return new Vh;default:return new Wu(me(me({},n),{expirationDays:n.expiration}),r)}},KC=function(e){var n,r;return e===void 0&&(e={}),((n=e.remoteConfig)===null||n===void 0?void 0:n.fetchRemoteConfig)===!0?!0:!(((r=e.remoteConfig)===null||r===void 0?void 0:r.fetchRemoteConfig)===!1||e.fetchRemoteConfig===!1)},_1=function(e){var n=typeof e=="object"?e.type:e,r=typeof e=="object"?e.headers:void 0;return n==="xhr"?new LC(r):n==="beacon"?new IC:new OD(r)},WC=function(e){return oe(void 0,void 0,void 0,function(){var n,r,o,l,u,c,c,h,p,g,y;return ie(this,function(v){switch(v.label){case 0:return[4,new Wu().isEnabled()];case 1:if(!v.sent()||typeof location>"u"||!location.hostname)return[2,""];for(n=location.hostname,r=n.split("."),o=[],l=qa(),u="AMP_TLDTEST_".concat(l.substring(0,8)),c=r.length-2;c>=0;--c)o.push(r.slice(c).join("."));c=0,v.label=2;case 2:return c<o.length?(h=o[c],p={domain:"."+h,expirationDays:.003},g=new Wu(p),[4,g.set(u,1)]):[3,7];case 3:return v.sent(),[4,g.get(u)];case 4:return y=v.sent(),y?[4,g.remove(u)]:[3,6];case 5:return v.sent(),[2,"."+h];case 6:return c++,[3,2];case 7:return[2,""]}})})},XC=function(e){var n={};for(var r in e){var o=e[r];o&&(n[r]=o)}return n},ZC="[Amplitude] Page Viewed",JC=function(e){e===void 0&&(e={});var n,r=ft(),o=void 0,l=!1,u,c=e.trackOn,h=e.trackHistoryChanges,p=e.eventType,g=p===void 0?ZC:p,y=function(_){var A=_;try{A=decodeURI(_)}catch(N){o?.error("Malformed URI sequence: ",N)}return A},v=function(){return oe(void 0,void 0,void 0,function(){var _,A,N;return ie(this,function(M){switch(M.label){case 0:return _=y(typeof location<"u"&&location.href||""),N={event_type:g},A=[{}],[4,ek()];case 1:return[2,(N.event_properties=me.apply(void 0,[me.apply(void 0,A.concat([M.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":_,"[Amplitude] Page Path":typeof location<"u"&&y(location.pathname)||"","[Amplitude] Page Title":Xh(Wh),"[Amplitude] Page URL":_.split("?")[0]}]),N)]}})})},b=function(){return typeof c>"u"||typeof c=="function"&&c()},w=typeof location<"u"?location.href:null,E=function(){return oe(void 0,void 0,void 0,function(){var _,A,N,M;return ie(this,function(O){switch(O.label){case 0:return _=location.href,A=nk(h,_,w||"")&&b(),w=_,A?(o?.log("Tracking page view event"),n!=null?[3,1]:[3,3]):[3,4];case 1:return M=(N=n).track,[4,v()];case 2:M.apply(N,[O.sent()]),O.label=3;case 3:O.label=4;case 4:return[2]}})})},C=function(){E()},D={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(_,A){return oe(void 0,void 0,void 0,function(){var N,M;return ie(this,function(O){switch(O.label){case 0:return n=A,u=_,o=_.loggerProvider,o.log("Installing @amplitude/plugin-page-view-tracking-browser"),l=!0,r&&(r.addEventListener("popstate",C),r.history.pushState=new Proxy(r.history.pushState,{apply:function(I,S,U){var F=_e(U,3),L=F[0],B=F[1],K=F[2];I.apply(S,[L,B,K]),l&&E()}})),b()?(o.log("Tracking page view event"),M=(N=n).track,[4,v()]):[3,2];case 1:M.apply(N,[O.sent()]),O.label=2;case 2:return[2]}})})},execute:function(_){return oe(void 0,void 0,void 0,function(){var A;return ie(this,function(N){switch(N.label){case 0:return c==="attribution"&&tk(_)?(o?.log("Enriching campaign event to page view event with campaign parameters"),[4,v()]):[3,2];case 1:A=N.sent(),_.event_type=A.event_type,_.event_properties=me(me({},_.event_properties),A.event_properties),N.label=2;case 2:return u&&_.event_type===g&&(u.pageCounter=u.pageCounter?u.pageCounter+1:1,_.event_properties=me(me({},_.event_properties),{"[Amplitude] Page Counter":u.pageCounter})),[2,_]}})})},teardown:function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(_){return r&&(r.removeEventListener("popstate",C),l=!1),[2]})})}};return D},ek=function(){return oe(void 0,void 0,void 0,function(){var e;return ie(this,function(n){switch(n.label){case 0:return e=XC,[4,new d1().parse()];case 1:return[2,e.apply(void 0,[n.sent()])]}})})},tk=function(e){if(e.event_type==="$identify"&&e.user_properties){var n=e.user_properties,r=n[Vr.SET]||{},o=n[Vr.UNSET]||{},l=et(et([],_e(Object.keys(r)),!1),_e(Object.keys(o)),!1);return Object.keys(lc).every(function(u){return l.includes(u)})}return!1},nk=function(e,n,r){switch(e){case"pathOnly":{if(r=="")return!0;var o=new URL(n),l=new URL(r),u=o.origin+o.pathname,c=l.origin+l.pathname;return u!==c}default:return n!==r}},ak=function(){var e,n=[],r=function(y,v,b){y.addEventListener(v,b),n.push({element:y,type:v,handler:b})},o=function(){n.forEach(function(y){var v=y.element,b=y.type,w=y.handler;v?.removeEventListener(b,w)}),n=[]},l,u="@amplitude/plugin-form-interaction-tracking-browser",c="enrichment",h=function(y,v){return oe(void 0,void 0,void 0,function(){var b,w;return ie(this,function(E){return l=AC(y),b=function(){if(!v){y.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var C=function(_){var A=!1;r(_,"change",function(){var N,M=T0(_);A||v.track(S0,(N={},N[Pf]=yo(_.id),N[Hf]=yo(_.name),N[$f]=M,N)),A=!0}),r(_,"submit",function(N){var M,O,I=T0(_);if(A||v.track(S0,(M={},M[Pf]=yo(_.id),M[Hf]=yo(_.name),M[$f]=I,M)),A=!0,l?.shouldTrackSubmit!==void 0)if(typeof l.shouldTrackSubmit=="function"&&typeof SubmitEvent<"u"&&N instanceof SubmitEvent)try{var S=l.shouldTrackSubmit(N);if(!S)return}catch{y.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else y.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");v.track(UC,(O={},O[Pf]=yo(_.id),O[Hf]=yo(_.name),O[$f]=I,O)),A=!1})},D=Array.from(document.getElementsByTagName("form"));D.forEach(C),typeof MutationObserver<"u"&&(e=new MutationObserver(function(_){_.forEach(function(A){A.addedNodes.forEach(function(N){N.nodeName==="FORM"&&C(N),"querySelectorAll"in N&&typeof N.querySelectorAll=="function"&&Array.from(N.querySelectorAll("form")).map(C)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?b():(w=ft(),w?w.addEventListener("load",b):y.loggerProvider.debug("Form interaction tracking is not installed because global is undefined.")),[2]})})},p=function(y){return oe(void 0,void 0,void 0,function(){return ie(this,function(v){return[2,y]})})},g=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return e?.disconnect(),o(),[2]})})};return{name:u,type:c,setup:h,execute:p,teardown:g}},yo=function(e){if(typeof e=="string")return e},T0=function(e){var n=e.getAttribute("action");try{n=new URL(encodeURI(n??""),window.location.href).href}catch{}return n},rk=function(){var e,n=[],r=function(g,y,v){g.addEventListener(y,v),n.push({element:g,type:y,handler:v})},o=function(){n.forEach(function(g){var y=g.element,v=g.type,b=g.handler;y?.removeEventListener(v,b)}),n=[]},l="@amplitude/plugin-file-download-tracking-browser",u="enrichment",c=function(g,y){return oe(void 0,void 0,void 0,function(){var v,b;return ie(this,function(w){return v=function(){if(!y){g.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var E=function(_){var A;try{A=new URL(_.href,window.location.href)}catch{return}var N=C.exec(A.href),M=N?.[1];M&&r(_,"click",function(){var O;M&&y.track(qC,(O={},O[BC]=M,O[PC]=A.pathname,O[HC]=_.id,O[$C]=_.text,O[QC]=_.href,O))})},C=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,D=Array.from(document.getElementsByTagName("a"));D.forEach(E),typeof MutationObserver<"u"&&(e=new MutationObserver(function(_){_.forEach(function(A){A.addedNodes.forEach(function(N){N.nodeName==="A"&&E(N),"querySelectorAll"in N&&typeof N.querySelectorAll=="function"&&Array.from(N.querySelectorAll("a")).map(E)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?v():(b=ft(),b?b.addEventListener("load",v):g.loggerProvider.debug("File download tracking is not installed because global is undefined.")),[2]})})},h=function(g){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return[2,g]})})},p=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(g){return e?.disconnect(),o(),[2]})})};return{name:l,type:u,setup:c,execute:h,teardown:p}},D0=!1,ik=function(e){if(!(D0||e.defaultTracking!==void 0)){var n=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:
12
+ Set a name for the plugin to prevent it from being added multiple times.`))),n.type=(o=n.type)!==null&&o!==void 0?o:"enrichment",[4,(l=n.setup)===null||l===void 0?void 0:l.call(n,r,this.client)]);case 1:return u.sent(),this.plugins.push(n),[2]}})})},e.prototype.deregister=function(n,r){var o;return oe(this,void 0,void 0,function(){var l,u;return ie(this,function(c){switch(c.label){case 0:return l=this.plugins.findIndex(function(h){return h.name===n}),l===-1?(r.loggerProvider.warn("Plugin with name ".concat(n," does not exist, skipping deregistration")),[2]):(u=this.plugins[l],this.plugins.splice(l,1),[4,(o=u.teardown)===null||o===void 0?void 0:o.call(u)]);case 1:return c.sent(),[2]}})})},e.prototype.reset=function(n){this.applying=!1;var r=this.plugins;r.map(function(o){var l;return(l=o.teardown)===null||l===void 0?void 0:l.call(o)}),this.plugins=[],this.client=n},e.prototype.push=function(n){var r=this;return new Promise(function(o){r.queue.push([n,o]),r.scheduleApply(0)})},e.prototype.scheduleApply=function(n){var r=this;this.applying||(this.applying=!0,setTimeout(function(){r.apply(r.queue.shift()).then(function(){r.applying=!1,r.queue.length>0&&r.scheduleApply(0)})},n))},e.prototype.apply=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c,h,p,w,E,g,y,v,b,w,E,C,D,_,A,N,M,O;return ie(this,function(I){switch(I.label){case 0:if(!n)return[2];r=_e(n,1),o=r[0],l=_e(n,2),u=l[1],this.loggerProvider.log("Timeline.apply: Initial event",o),c=this.plugins.filter(function(S){return S.type==="before"}),I.label=1;case 1:I.trys.push([1,6,7,8]),h=Pe(c),p=h.next(),I.label=2;case 2:return p.done?[3,5]:(w=p.value,w.execute?[4,w.execute(me({},o))]:[3,4]);case 3:if(E=I.sent(),E===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),u({event:o,code:0,message:""}),[2];o=E,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),I.label=4;case 4:return p=h.next(),[3,2];case 5:return[3,8];case 6:return g=I.sent(),A={error:g},[3,8];case 7:try{p&&!p.done&&(N=h.return)&&N.call(h)}finally{if(A)throw A.error}return[7];case 8:y=this.plugins.filter(function(S){return S.type==="enrichment"||S.type===void 0}),I.label=9;case 9:I.trys.push([9,14,15,16]),v=Pe(y),b=v.next(),I.label=10;case 10:return b.done?[3,13]:(w=b.value,w.execute?[4,w.execute(me({},o))]:[3,12]);case 11:if(E=I.sent(),E===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),u({event:o,code:0,message:""}),[2];o=E,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(w.name),"', event: ").concat(JSON.stringify(o))),I.label=12;case 12:return b=v.next(),[3,10];case 13:return[3,16];case 14:return C=I.sent(),M={error:C},[3,16];case 15:try{b&&!b.done&&(O=v.return)&&O.call(v)}finally{if(M)throw M.error}return[7];case 16:return D=this.plugins.filter(function(S){return S.type==="destination"}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(o))),_=D.map(function(S){var U=me({},o);return S.execute(U).catch(function(F){return ko(U,0,String(F))})}),Promise.all(_).then(function(S){var U=_e(S,1),F=U[0],L=F||ko(o,100,"Event not tracked, no destination plugins on the instance");u(L)}),[2]}})})},e.prototype.flush=function(){return oe(this,void 0,void 0,function(){var n,r,o,l=this;return ie(this,function(u){switch(u.label){case 0:return n=this.queue,this.queue=[],[4,Promise.all(n.map(function(c){return l.apply(c)}))];case 1:return u.sent(),r=this.plugins.filter(function(c){return c.type==="destination"}),o=r.map(function(c){return c.flush&&c.flush()}),[4,Promise.all(o)];case 2:return u.sent(),[2]}})})},e.prototype.onIdentityChanged=function(n){this.plugins.forEach(function(r){var o;(o=r.onIdentityChanged)===null||o===void 0||o.call(r,n)})},e.prototype.onSessionIdChanged=function(n){this.plugins.forEach(function(r){var o;(o=r.onSessionIdChanged)===null||o===void 0||o.call(r,n)})},e.prototype.onOptOutChanged=function(n){this.plugins.forEach(function(r){var o;(o=r.onOptOutChanged)===null||o===void 0||o.call(r,n)})},e.prototype.onReset=function(){this.plugins.forEach(function(n){var r;(r=n.onReset)===null||r===void 0||r.call(n)})},e})(),QT=function(e,n,r){var o=typeof e=="string"?{event_type:e}:e;return me(me(me({},o),r),n&&{event_properties:n})},$h=function(e,n){var r=me(me({},n),{event_type:xa.IDENTIFY,user_properties:e.getUserProperties()});return r},VT=function(e,n,r,o){var l,u=me(me({},o),{event_type:xa.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(l={},l[e]=n,l)});return u},GT=function(e,n,r){var o,l=new Yu;l.set(e,n);var u=me(me({},r),{event_type:xa.IDENTIFY,user_properties:l.getUserProperties(),groups:(o={},o[e]=n,o)});return u},YT=function(e,n){return me(me({},n),{event_type:xa.REVENUE,event_properties:e.getEventProperties()})},Cn=function(e){return{promise:e||Promise.resolve()}},KT=(function(){function e(n){n===void 0&&(n="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new $T(this),this.name=n}return e.prototype._init=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){switch(r.label){case 0:return this.config=n,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return r.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c,h,p,g;return ie(this,function(y){switch(y.label){case 0:r=this[n],this[n]=[],y.label=1;case 1:y.trys.push([1,8,9,10]),o=Pe(r),l=o.next(),y.label=2;case 2:return l.done?[3,7]:(u=l.value,c=u(),c&&"promise"in c?[4,c.promise]:[3,4]);case 3:return y.sent(),[3,6];case 4:return[4,c];case 5:y.sent(),y.label=6;case 6:return l=o.next(),[3,2];case 7:return[3,10];case 8:return h=y.sent(),p={error:h},[3,10];case 9:try{l&&!l.done&&(g=o.return)&&g.call(o)}finally{if(p)throw p.error}return[7];case 10:return this[n].length?[4,this.runQueuedFunctions(n)]:[3,12];case 11:y.sent(),y.label=12;case 12:return[2]}})})},e.prototype.track=function(n,r,o){var l=QT(n,r,o);return Cn(this.dispatch(l))},e.prototype.identify=function(n,r){var o=$h(n,r);return Cn(this.dispatch(o))},e.prototype.groupIdentify=function(n,r,o,l){var u=VT(n,r,o,l);return Cn(this.dispatch(u))},e.prototype.setGroup=function(n,r,o){var l=GT(n,r,o);return Cn(this.dispatch(l))},e.prototype.revenue=function(n,r){var o=YT(n,r);return Cn(this.dispatch(o))},e.prototype.add=function(n){return this.isReady?this._addPlugin(n):(this.q.push(this._addPlugin.bind(this,n)),Cn())},e.prototype._addPlugin=function(n){return Cn(this.timeline.register(n,this.config))},e.prototype.remove=function(n){return this.isReady?this._removePlugin(n):(this.q.push(this._removePlugin.bind(this,n)),Cn())},e.prototype._removePlugin=function(n){return Cn(this.timeline.deregister(n,this.config))},e.prototype.dispatchWithCallback=function(n,r){if(!this.isReady)return r(ko(n,0,PT));this.process(n).then(r)},e.prototype.dispatch=function(n){return oe(this,void 0,void 0,function(){var r=this;return ie(this,function(o){return this.isReady?[2,this.process(n)]:[2,new Promise(function(l){r.dispatchQ.push(r.dispatchWithCallback.bind(r,n,l))})]})})},e.prototype.getOperationAppliedUserProperties=function(n){var r={};if(n===void 0)return r;var o={};return Object.keys(n).forEach(function(l){Object.values(Gr).includes(l)||(o[l]=n[l])}),LT.forEach(function(l){if(Object.keys(n).includes(l)){var u=n[l];switch(l){case Gr.CLEAR_ALL:Object.keys(r).forEach(function(c){delete r[c]});break;case Gr.UNSET:Object.keys(u).forEach(function(c){delete r[c]});break;case Gr.SET:Object.assign(r,u);break}}}),Object.assign(r,o),r},e.prototype.process=function(n){return oe(this,void 0,void 0,function(){var r,u,o,l,u;return ie(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),this.config.optOut?[2,ko(n,0,UT)]:(n.event_type===xa.IDENTIFY&&(r=this.getOperationAppliedUserProperties(n.user_properties),this.timeline.onIdentityChanged({userProperties:r})),[4,this.timeline.push(n)]);case 1:return u=c.sent(),u.code===200?this.config.loggerProvider.log(u.message):u.code===100?this.config.loggerProvider.warn(u.message):this.config.loggerProvider.error(u.message),[2,u];case 2:return o=c.sent(),l=String(o),this.config.loggerProvider.error(l),u=ko(n,0,l),[2,u];case 3:return[2]}})})},e.prototype.setOptOut=function(n){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!n));return}this._setOptOut(n)},e.prototype._setOptOut=function(n){this.config.optOut!==n&&(this.timeline.onOptOutChanged(n),this.config.optOut=!!n)},e.prototype.flush=function(){return Cn(this.timeline.flush())},e.prototype.plugin=function(n){var r=this.timeline.plugins.find(function(o){return o.name===n});if(r===void 0){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(n));return}return r},e.prototype.plugins=function(n){return this.timeline.plugins.filter(function(r){return r instanceof n})},e})(),WT=(function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(n){return this.productId=n,this},e.prototype.setQuantity=function(n){return n>0&&(this.quantity=n),this},e.prototype.setPrice=function(n){return this.price=n,this},e.prototype.setRevenueType=function(n){return this.revenueType=n,this},e.prototype.setCurrency=function(n){return this.currency=n,this},e.prototype.setRevenue=function(n){return this.revenue=n,this},e.prototype.setReceipt=function(n){return this.receipt=n,this},e.prototype.setReceiptSig=function(n){return this.receiptSig=n,this},e.prototype.setEventProperties=function(n){return fh(n)&&(this.properties=n),this},e.prototype.getEventProperties=function(){var n=this.properties?me({},this.properties):{};return n[ja.REVENUE_PRODUCT_ID]=this.productId,n[ja.REVENUE_QUANTITY]=this.quantity,n[ja.REVENUE_PRICE]=this.price,n[ja.REVENUE_TYPE]=this.revenueType,n[ja.REVENUE_CURRENCY]=this.currency,n[ja.REVENUE]=this.revenue,n[ja.RECEIPT]=this.receipt,n[ja.RECEIPT_SIG]=this.receiptSig,n},e})(),ja;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"})(ja||(ja={}));var XT=function(e,n){var r=Math.max(n,1);return e.reduce(function(o,l,u){var c=Math.floor(u/r);return o[c]||(o[c]=[]),o[c].push(l),o},[])},Hn;(function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"})(Hn||(Hn={}));var Tu="Amplitude Logger ",Qh=(function(){function e(){this.logLevel=Hn.None}return e.prototype.disable=function(){this.logLevel=Hn.None},e.prototype.enable=function(n){n===void 0&&(n=Hn.Warn),this.logLevel=n},e.prototype.log=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Hn.Verbose||console.log("".concat(Tu,"[Log]: ").concat(n.join(" ")))},e.prototype.warn=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Hn.Warn||console.warn("".concat(Tu,"[Warn]: ").concat(n.join(" ")))},e.prototype.error=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Hn.Error||console.error("".concat(Tu,"[Error]: ").concat(n.join(" ")))},e.prototype.debug=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.logLevel<Hn.Debug||console.log("".concat(Tu,"[Debug]: ").concat(n.join(" ")))},e})(),zu=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:Xb,logLevel:Hn.Warn,loggerProvider:new Qh,offline:!1,optOut:!1,serverUrl:Zb,serverZone:"US",useBatch:!1}},ZT=(function(){function e(n){var r,o,l,u;this._optOut=!1;var c=zu();this.apiKey=n.apiKey,this.flushIntervalMillis=(r=n.flushIntervalMillis)!==null&&r!==void 0?r:c.flushIntervalMillis,this.flushMaxRetries=n.flushMaxRetries||c.flushMaxRetries,this.flushQueueSize=n.flushQueueSize||c.flushQueueSize,this.instanceName=n.instanceName||c.instanceName,this.loggerProvider=n.loggerProvider||c.loggerProvider,this.logLevel=(o=n.logLevel)!==null&&o!==void 0?o:c.logLevel,this.minIdLength=n.minIdLength,this.plan=n.plan,this.ingestionMetadata=n.ingestionMetadata,this.offline=n.offline!==void 0?n.offline:c.offline,this.optOut=(l=n.optOut)!==null&&l!==void 0?l:c.optOut,this.serverUrl=n.serverUrl,this.serverZone=n.serverZone||c.serverZone,this.storageProvider=n.storageProvider,this.transportProvider=n.transportProvider,this.useBatch=(u=n.useBatch)!==null&&u!==void 0?u:c.useBatch,this.loggerProvider.enable(this.logLevel);var h=e1(n.serverUrl,n.serverZone,n.useBatch);this.serverZone=h.serverZone,this.serverUrl=h.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(n){this._optOut=n},enumerable:!1,configurable:!0}),e})(),JT=function(e,n){return e==="EU"?n?DT:_T:n?TT:Zb},e1=function(e,n,r){if(e===void 0&&(e=""),n===void 0&&(n=zu().serverZone),r===void 0&&(r=zu().useBatch),e)return{serverUrl:e,serverZone:void 0};var o=["US","EU"].includes(n)?n:zu().serverZone;return{serverZone:o,serverUrl:JT(o,r)}},eD=(function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(n,r){this.sdk.metrics.histogram[n]=r},e})();function hh(e){return e>=200&&e<300}var Fu=function(e){e===void 0&&(e=0);var n=new Error().stack||"";return n.split(`
13
+ `).slice(2+e).map(function(r){return r.trim()})},Dt=function(e){return function(){var n=me({},e.config),r=n.loggerProvider,o=n.logLevel;return{logger:r,logLevel:o}}},tD=function(e,n){var r,o;n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,"");try{for(var l=Pe(n.split(".")),u=l.next();!u.done;u=l.next()){var c=u.value;if(c in e)e=e[c];else return}}catch(h){r={error:h}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return e},Ct=function(e,n){return function(){var r,o,l={};try{for(var u=Pe(n),c=u.next();!c.done;c=u.next()){var h=c.value;l[h]=tD(e,h)}}catch(p){r={error:p}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return l}},kt=function(e,n,r,o,l){return l===void 0&&(l=null),function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var h=r(),p=h.logger,g=h.logLevel;if(g&&g<Hn.Debug||!g||!p)return e.apply(l,u);var y={type:"invoke public method",name:n,args:u,stacktrace:Fu(1),time:{start:new Date().toISOString()},states:{}};o&&y.states&&(y.states.before=o());var v=e.apply(l,u);return v&&v.promise?v.promise.then(function(){o&&y.states&&(y.states.after=o()),y.time&&(y.time.end=new Date().toISOString()),p.debug(JSON.stringify(y,null,2))}):(o&&y.states&&(y.states.after=o()),y.time&&(y.time.end=new Date().toISOString()),p.debug(JSON.stringify(y,null,2))),v}};function nD(e){return e instanceof Error?e.message:String(e)}function Ms(e){var n="";try{"body"in e&&(n=JSON.stringify(e.body,null,2))}catch{}return n}var aD=(function(){function e(n){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=n?.diagnosticsClient}return e.prototype.setup=function(n){var r;return oe(this,void 0,void 0,function(){var o,l=this;return ie(this,function(u){switch(u.label){case 0:return this.config=n,this.storageKey="".concat(ET,"_").concat(this.config.apiKey.substring(0,10)),[4,(r=this.config.storageProvider)===null||r===void 0?void 0:r.get(this.storageKey)];case 1:return o=u.sent(),o&&o.length>0&&Promise.all(o.map(function(c){return l.execute(c)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(n){var r=this;return n.insert_id||(n.insert_id=Ba()),new Promise(function(o){var l={event:n,attempts:0,callback:function(u){return o(u)},timeout:0};r.queue.push(l),r.schedule(r.config.flushIntervalMillis),r.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(n){var r=this;return n.filter(function(o){return o.attempts+=1,o.attempts<r.config.flushMaxRetries?!0:(r.fulfillRequest([o],500,FT),!1)})},e.prototype.scheduleEvents=function(n){var r=this;n.forEach(function(o){r.schedule(o.timeout===0?r.config.flushIntervalMillis:o.timeout)})},e.prototype.schedule=function(n){var r=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&n>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=n,this.scheduleId=setTimeout(function(){r.queue=r.queue.map(function(o){return o.timeout=0,o}),r.flush(!0)},n);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(n){return n===void 0&&(n=!1),oe(this,void 0,void 0,function(){var r,o,l,u=this;return ie(this,function(c){switch(c.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),r=[],o=[],this.queue.forEach(function(h){return h.timeout===0?r.push(h):o.push(h)}),l=XT(r,this.config.flushQueueSize),[4,l.reduce(function(h,p){return oe(u,void 0,void 0,function(){return ie(this,function(g){switch(g.label){case 0:return[4,h];case 1:return g.sent(),[4,this.send(p,n)];case 2:return[2,g.sent()]}})})},Promise.resolve())]);case 1:return c.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(n,r){var o;return r===void 0&&(r=!0),oe(this,void 0,void 0,function(){var l,u,c,h,p;return ie(this,function(g){switch(g.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(n,400,qT)];l={api_key:this.config.apiKey,events:n.map(function(y){var v=y.event;v.extra;var b=Qu(v,["extra"]);return b}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new eD,g.label=1;case 1:return g.trys.push([1,3,,4]),u=e1(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(u,l)];case 2:return c=g.sent(),c===null?(this.fulfillRequest(n,0,zT),[2]):r?(this.handleResponse(c,n),[3,4]):("body"in c?this.fulfillRequest(n,c.statusCode,"".concat(c.status,": ").concat(Ms(c))):this.fulfillRequest(n,c.statusCode,c.status),[2]);case 3:return h=g.sent(),p=nD(h),this.config.loggerProvider.error(p),(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:n.map(function(y){return y.event.event_type}),message:p,stack_trace:Fu()}),this.handleResponse({status:Pt.Failed,statusCode:0},n),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(n,r){var o;hh(n.statusCode)||(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.unsuccessful",{events:r.map(function(u){return u.event.event_type}),code:n.statusCode,status:n.status,body:Ms(n),stack_trace:Fu()});var l=n.status;switch(l){case Pt.Success:{this.handleSuccessResponse(n,r);break}case Pt.Invalid:{this.handleInvalidResponse(n,r);break}case Pt.PayloadTooLarge:{this.handlePayloadTooLargeResponse(n,r);break}case Pt.RateLimit:{this.handleRateLimitResponse(n,r);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(l,"' provided for ").concat(r.length,' events"}')),this.handleOtherResponse(r);break}}},e.prototype.handleSuccessResponse=function(n,r){this.fulfillRequest(r,n.statusCode,IT)},e.prototype.handleInvalidResponse=function(n,r){var o=this;if(n.body.missingField||n.body.error.startsWith(BT)){this.fulfillRequest(r,n.statusCode,n.body.error);return}var l=tt(tt(tt(tt([],_e(Object.values(n.body.eventsWithInvalidFields)),!1),_e(Object.values(n.body.eventsWithMissingFields)),!1),_e(Object.values(n.body.eventsWithInvalidIdLengths)),!1),_e(n.body.silencedEvents),!1).flat(),u=new Set(l),c=r.filter(function(p,g){if(u.has(g)){o.fulfillRequest([p],n.statusCode,n.body.error);return}return!0});c.length>0&&this.config.loggerProvider.warn(Ms(n));var h=this.removeEventsExceedFlushMaxRetries(c);this.scheduleEvents(h)},e.prototype.handlePayloadTooLargeResponse=function(n,r){if(r.length===1){this.fulfillRequest(r,n.statusCode,n.body.error);return}this.config.loggerProvider.warn(Ms(n)),this.config.flushQueueSize/=2;var o=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(o)},e.prototype.handleRateLimitResponse=function(n,r){var o=this,l=Object.keys(n.body.exceededDailyQuotaUsers),u=Object.keys(n.body.exceededDailyQuotaDevices),c=n.body.throttledEvents,h=new Set(l),p=new Set(u),g=new Set(c),y=r.filter(function(b,w){if(b.event.user_id&&h.has(b.event.user_id)||b.event.device_id&&p.has(b.event.device_id)){o.fulfillRequest([b],n.statusCode,n.body.error);return}return g.has(w)&&(b.timeout=o.throttleTimeout),!0});y.length>0&&this.config.loggerProvider.warn(Ms(n));var v=this.removeEventsExceedFlushMaxRetries(y);this.scheduleEvents(v)},e.prototype.handleOtherResponse=function(n){var r=this,o=n.map(function(u){return u.timeout=u.attempts*r.retryTimeout,u}),l=this.removeEventsExceedFlushMaxRetries(o);this.scheduleEvents(l)},e.prototype.fulfillRequest=function(n,r,o){var l,u,c;hh(r)?(c=this.diagnosticsClient)===null||c===void 0||c.increment("analytics.events.sent",n.length):((l=this.diagnosticsClient)===null||l===void 0||l.increment("analytics.events.dropped",n.length),(u=this.diagnosticsClient)===null||u===void 0||u.recordEvent("analytics.events.dropped",{events:n.map(function(h){return h.event.event_type}),code:r,message:o,stack_trace:Fu()})),this.removeEvents(n),n.forEach(function(h){return h.callback(ko(h.event,r,o))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var n=this.queue.map(function(r){return r.event});this.config.storageProvider.set(this.storageKey,n)}},e.prototype.removeEvents=function(n){this.queue=this.queue.filter(function(r){return!n.some(function(o){return o.event.insert_id===r.event.insert_id})}),this.saveEvents()},e})(),rD=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:iD(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),iD=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},oD=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(n){this.receiver?this.receiver(n):this.queue.length<512&&this.queue.push(n)},e.prototype.setEventReceiver=function(n){this.receiver=n,this.queue.length>0&&(this.queue.forEach(function(r){n(r)}),this.queue=[])},e})(),Qr=function(){return Qr=Object.assign||function(n){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},Qr.apply(this,arguments)};function Uu(e){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&e[n],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function s0(e,n){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),l,u=[],c;try{for(;(n===void 0||n-- >0)&&!(l=o.next()).done;)u.push(l.value)}catch(h){c={error:h}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(c)throw c.error}}return u}var qu=function(e,n){var r,o,l=["string","number","boolean","undefined"],u=typeof e,c=typeof n;if(u!==c)return!1;try{for(var h=Uu(l),p=h.next();!p.done;p=h.next()){var g=p.value;if(g===u)return e===n}}catch(D){r={error:D}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}if(e==null&&n==null)return!0;if(e==null||n==null||e.length!==n.length)return!1;var y=Array.isArray(e),v=Array.isArray(n);if(y!==v)return!1;if(y&&v){for(var b=0;b<e.length;b++)if(!qu(e[b],n[b]))return!1}else{var w=Object.keys(e).sort(),E=Object.keys(n).sort();if(!qu(w,E))return!1;var C=!0;return Object.keys(e).forEach(function(D){qu(e[D],n[D])||(C=!1)}),C}return!0},sD="$set",lD="$unset",uD="$clearAll";Object.entries||(Object.entries=function(e){for(var n=Object.keys(e),r=n.length,o=new Array(r);r--;)o[r]=[n[r],e[n[r]]];return o});var cD=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var n=this,r=Qr({},this.identity.userProperties),o=Qr(Qr({},this.identity),{userProperties:r});return{setUserId:function(l){return o.userId=l,this},setDeviceId:function(l){return o.deviceId=l,this},setUserProperties:function(l){return o.userProperties=l,this},setOptOut:function(l){return o.optOut=l,this},updateUserProperties:function(l){var u,c,h,p,g,y,v=o.userProperties||{};try{for(var b=Uu(Object.entries(l)),w=b.next();!w.done;w=b.next()){var E=s0(w.value,2),C=E[0],D=E[1];switch(C){case sD:try{for(var _=(h=void 0,Uu(Object.entries(D))),A=_.next();!A.done;A=_.next()){var N=s0(A.value,2),M=N[0],O=N[1];v[M]=O}}catch(U){h={error:U}}finally{try{A&&!A.done&&(p=_.return)&&p.call(_)}finally{if(h)throw h.error}}break;case lD:try{for(var I=(g=void 0,Uu(Object.keys(D))),S=I.next();!S.done;S=I.next()){var M=S.value;delete v[M]}}catch(U){g={error:U}}finally{try{S&&!S.done&&(y=I.return)&&y.call(I)}finally{if(g)throw g.error}}break;case uD:v={};break}}}catch(U){u={error:U}}finally{try{w&&!w.done&&(c=b.return)&&c.call(b)}finally{if(u)throw u.error}}return o.userProperties=v,this},commit:function(){return n.setIdentity(o),this}}},e.prototype.getIdentity=function(){return Qr({},this.identity)},e.prototype.setIdentity=function(n){var r=Qr({},this.identity);this.identity=Qr({},n),qu(r,this.identity)||this.listeners.forEach(function(o){o(n)})},e.prototype.addIdentityListener=function(n){this.listeners.add(n)},e.prototype.removeIdentityListener=function(n){this.listeners.delete(n)},e})(),Os=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,dD=(function(){function e(){this.identityStore=new cD,this.eventBridge=new oD,this.applicationContextProvider=new rD}return e.getInstance=function(n){return Os.analyticsConnectorInstances||(Os.analyticsConnectorInstances={}),Os.analyticsConnectorInstances[n]||(Os.analyticsConnectorInstances[n]=new e),Os.analyticsConnectorInstances[n]},e})(),tl=function(e){return e===void 0&&(e=Xb),dD.getInstance(e)},fD=function(e,n){tl(n).identityStore.editIdentity().setUserId(e).commit()},hD=function(e,n){tl(n).identityStore.editIdentity().setDeviceId(e).commit()},mD=(function(){function e(){this.name="identity",this.type="before",this.identityStore=tl().identityStore}return e.prototype.execute=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){return r=n.user_properties,r&&this.identityStore.editIdentity().updateUserProperties(r).commit(),[2,n]})})},e.prototype.setup=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){return n.instanceName&&(this.identityStore=tl(n.instanceName).identityStore),[2]})})},e})(),t1=function(e,n){n===void 0&&(n=Date.now());var r=Date.now(),o=r-n;return o>e},n1=function(e,n,r){return n===void 0&&(n=""),r===void 0&&(r=10),[sc,n,e.substring(0,r)].filter(Boolean).join("_")},pD=function(e){return"".concat(sc.toLowerCase(),"_").concat(e.substring(0,6))},vD=function(){var e,n,r,o;if(typeof navigator>"u")return"";var l=navigator.userLanguage;return(o=(r=(n=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&n!==void 0?n:navigator.language)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:""},Ku=function(){var e,n=ht();if(!(!((e=n?.location)===null||e===void 0)&&e.search))return{};var r=n.location.search.substring(1).split("&").filter(Boolean),o=r.reduce(function(l,u){var c=u.split("=",2),h=l0(c[0]),p=l0(c[1]);return p&&(l[h]=p),l},{});return o},l0=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},mh=function(e,n){return!n||!n.length?!0:n.some(function(r){return typeof r=="string"?e===r:e.match(r)})},Yr=function(e,n){var r=e;try{r=decodeURI(e)}catch(o){n?.error("Malformed URI sequence: ",o)}return r},gD=function(e){var n=0;if(e.length===0)return n;for(var r=0;r<e.length;r++){var o=e.charCodeAt(r);n=(n<<5)-n+o,n|=0}return n},u0=function(e,n){var r=gD(e.toString()),o=Math.abs(r),l=o*31,u=l%1e5;return u/1e5<n},Vh=(function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return[2,!0]})})},e.prototype.get=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){return[2,this.memoryStorage.get(n)]})})},e.prototype.getRaw=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){switch(o.label){case 0:return[4,this.get(n)];case 1:return r=o.sent(),[2,r?JSON.stringify(r):void 0]}})})},e.prototype.set=function(n,r){return oe(this,void 0,void 0,function(){return ie(this,function(o){return this.memoryStorage.set(n,r),[2]})})},e.prototype.remove=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){return this.memoryStorage.delete(n),[2]})})},e.prototype.reset=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return this.memoryStorage.clear(),[2]})})},e})(),Wu=(function(){function e(n,r){r===void 0&&(r={}),this.options=me({},n),this.config=r}return e.prototype.isEnabled=function(){return oe(this,void 0,void 0,function(){var n,r,o,l;return ie(this,function(u){switch(u.label){case 0:if(!ht())return[2,!1];e.testValue=String(Date.now()),n=me(me({},this.options),{expirationDays:.003}),r=new e(n),o="AMP_TEST_".concat(Ba().substring(0,8)),u.label=1;case 1:return u.trys.push([1,4,5,7]),[4,r.set(o,e.testValue)];case 2:return u.sent(),[4,r.get(o)];case 3:return l=u.sent(),[2,l===e.testValue];case 4:return u.sent(),[2,!1];case 5:return[4,r.remove(o)];case 6:return u.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(n){return oe(this,void 0,void 0,function(){var r,o;return ie(this,function(l){switch(l.label){case 0:return[4,this.getRaw(n)];case 1:if(r=l.sent(),!r)return[2,void 0];try{return o=a1(r),o===void 0?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(n,", value: ").concat(r)),[2,void 0]):[2,JSON.parse(o)]}catch{return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(n,", value: ").concat(r)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(n){var r,o,l,u;return oe(this,void 0,void 0,function(){var c,h,p,g,y,v,b,w,E,C,D,_,A=this;return ie(this,function(N){switch(N.label){case 0:c=ht(),h=c,N.label=1;case 1:return N.trys.push([1,4,,5]),p=h?.cookieStore,p?[4,p.getAll(n)]:[3,3];case 2:if(g=N.sent(),g){g.length>1&&((r=this.config.diagnosticsClient)===null||r===void 0||r.recordEvent("cookies.duplicate",{cookies:g.map(function(M){return M.domain})}),(o=this.config.diagnosticsClient)===null||o===void 0||o.increment("cookies.duplicate.occurrence.cookieStore"));try{for(y=Pe(g),v=y.next();!v.done;v=y.next())if(b=v.value,r1(b.domain,this.options.domain))return[2,b.value]}catch(M){D={error:M}}finally{try{v&&!v.done&&(_=y.return)&&_.call(y)}finally{if(D)throw D.error}}}N.label=3;case 3:return[3,5];case 4:return N.sent(),[3,5];case 5:return w=((u=(l=c?.document)===null||l===void 0?void 0:l.cookie.split("; "))!==null&&u!==void 0?u:[]).filter(function(M){return M.indexOf(n+"=")===0}),E=void 0,C=this.config.duplicateResolverFn,typeof C=="function"&&w.length>1&&(E=w.find(function(M){var O;try{var I=C(M.substring(n.length+1));return I||(O=A.config.diagnosticsClient)===null||O===void 0||O.increment("cookies.duplicate.occurrence.document.cookie"),I}catch{return!1}})),E||(E=w[0]),E?[2,E.substring(n.length+1)]:[2,void 0]}})})},e.prototype.set=function(n,r){var o;return oe(this,void 0,void 0,function(){var l,u,c,h,p,g,y;return ie(this,function(v){try{l=(o=this.options.expirationDays)!==null&&o!==void 0?o:0,u=r!==null?l:-1,c=void 0,u&&(h=new Date,h.setTime(h.getTime()+u*24*60*60*1e3),c=h),p="".concat(n,"=").concat(btoa(encodeURIComponent(JSON.stringify(r)))),c&&(p+="; expires=".concat(c.toUTCString())),p+="; path=/",this.options.domain&&(p+="; domain=".concat(this.options.domain)),this.options.secure&&(p+="; Secure"),this.options.sameSite&&(p+="; SameSite=".concat(this.options.sameSite)),g=ht(),g&&(g.document.cookie=p)}catch(b){y=b instanceof Error?b.message:String(b),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(n,". Error: ").concat(y))}return[2]})})},e.prototype.remove=function(n){return oe(this,void 0,void 0,function(){return ie(this,function(r){switch(r.label){case 0:return[4,this.set(n,null)];case 1:return r.sent(),[2]}})})},e.prototype.reset=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return[2]})})},e})(),yD=function(e){try{return decodeURIComponent(atob(e))}catch{return}},bD=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},a1=function(e){var n;return(n=yD(e))!==null&&n!==void 0?n:bD(e)},r1=function(e,n){if(!e||!n)return!1;var r=e.startsWith(".")?e.substring(1):e,o=n.startsWith(".")?n.substring(1):n;return r.toLowerCase()===o.toLowerCase()},c0=function(e,n,r){return n===void 0&&(n=""),r===void 0&&(r=10),[sc,n,e.substring(0,r)].filter(Boolean).join("_")},Gh=(function(){function e(n){this.storage=n}return e.prototype.isEnabled=function(){return oe(this,void 0,void 0,function(){var n,r,o,l;return ie(this,function(u){switch(u.label){case 0:if(!this.storage)return[2,!1];n=String(Date.now()),r=new e(this.storage),o="AMP_TEST",u.label=1;case 1:return u.trys.push([1,4,5,7]),[4,r.set(o,n)];case 2:return u.sent(),[4,r.get(o)];case 3:return l=u.sent(),[2,l===n];case 4:return u.sent(),[2,!1];case 5:return[4,r.remove(o)];case 6:return u.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getRaw(n)];case 1:return r=o.sent(),r?[2,JSON.parse(r)]:[2,void 0];case 2:return o.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(n){var r;return oe(this,void 0,void 0,function(){return ie(this,function(o){return[2,((r=this.storage)===null||r===void 0?void 0:r.getItem(n))||void 0]})})},e.prototype.set=function(n,r){var o;return oe(this,void 0,void 0,function(){return ie(this,function(l){try{(o=this.storage)===null||o===void 0||o.setItem(n,JSON.stringify(r))}catch{}return[2]})})},e.prototype.remove=function(n){var r;return oe(this,void 0,void 0,function(){return ie(this,function(o){try{(r=this.storage)===null||r===void 0||r.removeItem(n)}catch{}return[2]})})},e.prototype.reset=function(){var n;return oe(this,void 0,void 0,function(){return ie(this,function(r){try{(n=this.storage)===null||n===void 0||n.clear()}catch{}return[2]})})},e})(),xD=10,wD=1,We={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},d0={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},f0=(function(){function e(n,r){this.dbPromise=null,this.logger=r,this.dbName="AMP_diagnostics_".concat(n.substring(0,10))}return e.isSupported=function(){var n;return((n=ht())===null||n===void 0?void 0:n.indexedDB)!==void 0},e.prototype.getDB=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var n=this;return new Promise(function(r,o){var l=indexedDB.open(n.dbName,wD);l.onerror=function(){n.dbPromise=null,o(new Error("Failed to open IndexedDB"))},l.onsuccess=function(){var u=l.result;u.onclose=function(){n.dbPromise=null,n.logger.debug("DiagnosticsStorage: DB connection closed.")},u.onerror=function(c){n.logger.debug("DiagnosticsStorage: A global database error occurred.",c),u.close()},r(u)},l.onupgradeneeded=function(u){var c=u.target.result;n.createTables(c)}})},e.prototype.createTables=function(n){if(n.objectStoreNames.contains(We.TAGS)||n.createObjectStore(We.TAGS,{keyPath:"key"}),n.objectStoreNames.contains(We.COUNTERS)||n.createObjectStore(We.COUNTERS,{keyPath:"key"}),n.objectStoreNames.contains(We.HISTOGRAMS)||n.createObjectStore(We.HISTOGRAMS,{keyPath:"key"}),!n.objectStoreNames.contains(We.EVENTS)){var r=n.createObjectStore(We.EVENTS,{keyPath:"id",autoIncrement:!0});r.createIndex("time_idx","time",{unique:!1})}n.objectStoreNames.contains(We.INTERNAL)||n.createObjectStore(We.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),Object.entries(n).length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([We.TAGS],"readwrite"),l=o.objectStore(We.TAGS),[2,new Promise(function(p){var g=Object.entries(n);o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to set tags",y),p()},g.forEach(function(y){var v=_e(y,2),b=v[0],w=v[1],E=l.put({key:b,value:w});E.onerror=function(C){c.logger.debug("DiagnosticsStorage: Failed to set tag",b,w,C)}})})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",u),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),Object.entries(n).length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([We.COUNTERS],"readwrite"),l=o.objectStore(We.COUNTERS),[2,new Promise(function(p){var g=Object.entries(n);o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to increment counters",y),p()},g.forEach(function(y){var v=_e(y,2),b=v[0],w=v[1],E=l.get(b);E.onsuccess=function(){var C=E.result,D=C?C.value:0,_=l.put({key:b,value:D+w});_.onerror=function(A){c.logger.debug("DiagnosticsStorage: Failed to update counter",b,A)}},E.onerror=function(C){c.logger.debug("DiagnosticsStorage: Failed to read existing counter",b,C)}})})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",u),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),Object.entries(n).length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([We.HISTOGRAMS],"readwrite"),l=o.objectStore(We.HISTOGRAMS),[2,new Promise(function(p){var g=Object.entries(n);o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",y),p()},g.forEach(function(y){var v=_e(y,2),b=v[0],w=v[1],E=l.get(b);E.onsuccess=function(){var C=E.result,D;C?D={key:b,count:C.count+w.count,min:Math.min(C.min,w.min),max:Math.max(C.max,w.max),sum:C.sum+w.sum}:D={key:b,count:w.count,min:w.min,max:w.max,sum:w.sum};var _=l.put(D);_.onerror=function(A){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",b,A)}},E.onerror=function(C){c.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",b,C)}})})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",u),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u,c=this;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),n.length===0?[2]:[4,this.getDB()];case 1:return r=h.sent(),o=r.transaction([We.EVENTS],"readwrite"),l=o.objectStore(We.EVENTS),[2,new Promise(function(p){o.oncomplete=function(){p()},o.onabort=function(y){c.logger.debug("DiagnosticsStorage: Failed to add event records",y),p()};var g=l.count();g.onsuccess=function(){var y=g.result,v=Math.max(0,xD-y);v<n.length&&c.logger.debug("DiagnosticsStorage: Only added ".concat(v," of ").concat(n.length," events due to storage limit")),n.slice(0,v).forEach(function(b){var w=l.add(b);w.onerror=function(E){c.logger.debug("DiagnosticsStorage: Failed to add event record",E)}})},g.onerror=function(y){c.logger.debug("DiagnosticsStorage: Failed to count existing events",y)}})];case 2:return u=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",u),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(n,r){return oe(this,void 0,void 0,function(){var o,l,u,c;return ie(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,this.getDB()];case 1:return o=h.sent(),l=o.transaction([We.INTERNAL],"readwrite"),u=l.objectStore(We.INTERNAL),[2,new Promise(function(p,g){l.onabort=function(){return g(new Error("Failed to set internal value"))};var y=u.put({key:n,value:r});y.onsuccess=function(){return p()},y.onerror=function(){return g(new Error("Failed to set internal value"))}})];case 2:return c=h.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",c),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u;return ie(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=c.sent(),o=r.transaction([We.INTERNAL],"readonly"),l=o.objectStore(We.INTERNAL),[2,new Promise(function(h,p){o.onabort=function(){return p(new Error("Failed to get internal value"))};var g=l.get(n);g.onsuccess=function(){return h(g.result)},g.onerror=function(){return p(new Error("Failed to get internal value"))}})];case 2:return u=c.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",u),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return oe(this,void 0,void 0,function(){var n,r;return ie(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getInternal(d0.LAST_FLUSH_TIMESTAMP)];case 1:return n=o.sent(),[2,n?parseInt(n.value,10):void 0];case 2:return r=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",r),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(n){return oe(this,void 0,void 0,function(){var r;return ie(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.setInternal(d0.LAST_FLUSH_TIMESTAMP,n.toString())];case 1:return o.sent(),[3,3];case 2:return r=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",r),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(n,r){return new Promise(function(o,l){var u=n.objectStore(r),c=u.clear();c.onsuccess=function(){return o()},c.onerror=function(){return l(new Error("Failed to clear table ".concat(r)))}})},e.prototype.getAllAndClear=function(){return oe(this,void 0,void 0,function(){var n,r,o,l,u,c,h,p;return ie(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),[4,this.getDB()];case 1:return n=g.sent(),r=n.transaction([We.TAGS,We.COUNTERS,We.HISTOGRAMS,We.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(r,We.TAGS),this.getAllFromStore(r,We.COUNTERS),this.getAllFromStore(r,We.HISTOGRAMS),this.getAllFromStore(r,We.EVENTS)])];case 2:return o=_e.apply(void 0,[g.sent(),4]),l=o[0],u=o[1],c=o[2],h=o[3],[4,Promise.all([this.clearTable(r,We.COUNTERS),this.clearTable(r,We.HISTOGRAMS),this.clearTable(r,We.EVENTS)])];case 3:return g.sent(),[2,{tags:l,counters:u,histogramStats:c,events:h}];case 4:return p=g.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",p),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(n,r){return new Promise(function(o,l){var u=n.objectStore(r),c=u.getAll();c.onsuccess=function(){return o(c.result)},c.onerror=function(){return l(new Error("Failed to get all from ".concat(r)))}})},e})(),SD="__AMPLITUDE_SCRIPT_URL__",ED="sdk.error.uncaught",_D=function(){var e=ht();return e?.[SD]},TD=function(e){var n=ht();if(!(!n||typeof n.addEventListener!="function")){var r=function(u){var c=u.error instanceof Error?u.error:void 0,h=c?.stack,p=h0({filename:u.filename,stack:h});p&&l({type:"error",message:u.message,stack:h,filename:u.filename,errorName:c?.name,metadata:{colno:u.colno,lineno:u.lineno,isTrusted:u.isTrusted,matchReason:p}})},o=function(u){var c,h=u.reason instanceof Error?u.reason:void 0,p=h?.stack,g=DD(p),y=h0({filename:g,stack:p});y&&l({type:"unhandledrejection",message:(c=h?.message)!==null&&c!==void 0?c:CD(u.reason),stack:p,filename:g,errorName:h?.name,metadata:{isTrusted:u.isTrusted,matchReason:y}})},l=function(u){e.recordEvent(ED,me({type:u.type,message:u.message,filename:u.filename,error_name:u.errorName,stack:u.stack},u.metadata))};n.addEventListener("error",r,!0),n.addEventListener("unhandledrejection",o,!0)}},h0=function(e){var n=_D();if(n){if(e.filename&&e.filename.includes(n))return"filename";if(e.stack&&e.stack.includes(n))return"stack"}},DD=function(e){if(e){var n=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return n?n[1]:void 0}},CD=function(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return"[object Object]"}},kD=1e3,Du=300*1e3,ND="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",AD="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",Lf=1e4,RD=10,jD=(function(){function e(n,r,o,l){o===void 0&&(o="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=n,this.logger=r,this.serverUrl=o==="US"?ND:AD,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(l,null,2)),this.config=me({enabled:!0,sampleRate:0},l),this.startTimestamp=Date.now(),this.shouldTrack=u0(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,f0.isSupported()?this.storage=new f0(n,r):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),TD(this))}return e.prototype.isStorageAndTrackEnabled=function(){return!!this.storage&&!!this.shouldTrack},e.prototype.setTag=function(n,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryTags).length>=Lf){this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit");return}this.inMemoryTags[n]=r,this.startTimersIfNeeded()}},e.prototype.increment=function(n,r){if(r===void 0&&(r=1),!!this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryCounters).length>=Lf){this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit");return}this.inMemoryCounters[n]=(this.inMemoryCounters[n]||0)+r,this.startTimersIfNeeded()}},e.prototype.recordHistogram=function(n,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryHistograms).length>=Lf){this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");return}var o=this.inMemoryHistograms[n];o?(o.count+=1,o.min=Math.min(o.min,r),o.max=Math.max(o.max,r),o.sum+=r):this.inMemoryHistograms[n]={count:1,min:r,max:r,sum:r},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(n,r){if(this.isStorageAndTrackEnabled()){if(this.inMemoryEvents.length>=RD){this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit");return}this.inMemoryEvents.push({event_name:n,time:Date.now(),event_properties:r}),this.startTimersIfNeeded()}},e.prototype.startTimersIfNeeded=function(){var n=this;this.saveTimer||(this.saveTimer=setTimeout(function(){n.saveAllDataToStorage().catch(function(r){n.logger.debug("DiagnosticsClient: Failed to save all data to storage",r)}).finally(function(){n.saveTimer=null})},kD)),this.flushTimer||(this.flushTimer=setTimeout(function(){n._flush().catch(function(r){n.logger.debug("DiagnosticsClient: Failed to flush",r)}).finally(function(){n.flushTimer=null})},Du))},e.prototype.saveAllDataToStorage=function(){return oe(this,void 0,void 0,function(){var n,r,o,l;return ie(this,function(u){switch(u.label){case 0:return this.storage?(n=me({},this.inMemoryTags),r=me({},this.inMemoryCounters),o=me({},this.inMemoryHistograms),l=tt([],_e(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(n),this.storage.incrementCounters(r),this.storage.setHistogramStats(o),this.storage.addEventRecords(l)])]):[2];case 1:return u.sent(),[2]}})})},e.prototype._flush=function(){return oe(this,void 0,void 0,function(){var n,r,o,l,u,c,h,p,g,y;return ie(this,function(v){switch(v.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return v.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return n=v.sent(),r=n.tags,o=n.counters,l=n.histogramStats,u=n.events,this.storage.setLastFlushTimestamp(Date.now()),c={},r.forEach(function(b){c[b.key]=b.value}),h={},o.forEach(function(b){h[b.key]=b.value}),p={},l.forEach(function(b){p[b.key]={count:b.count,min:b.min,max:b.max,avg:Math.round(b.sum/b.count*100)/100}}),g=u.map(function(b){return{event_name:b.event_name,time:b.time,event_properties:b.event_properties}}),Object.keys(h).length===0&&Object.keys(p).length===0&&g.length===0?[2]:(y={tags:c,histogram:p,counters:h,events:g},this.fetch(y),[2])}})})},e.prototype.fetch=function(n){return oe(this,void 0,void 0,function(){var r,o;return ie(this,function(l){switch(l.label){case 0:if(l.trys.push([0,2,,3]),!ht())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(n)})];case 1:return r=l.sent(),r.ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return o=l.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",o),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return oe(this,void 0,void 0,function(){var n,r,o;return ie(this,function(l){switch(l.label){case 0:return this.storage?(n=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return r=l.sent()||-1,r===-1?(this.storage.setLastFlushTimestamp(n),this._setFlushTimer(Du),[2]):(o=n-r,o>=Du?(this._flush(),[2]):(this._setFlushTimer(Du-o),[2]))}})})},e.prototype._setFlushTimer=function(n){var r=this;this.flushTimer=setTimeout(function(){r._flush().catch(function(o){r.logger.debug("DiagnosticsClient: Failed to flush",o)}).finally(function(){r.flushTimer=null})},n)},e.prototype._setSampleRate=function(n){this.logger.debug("DiagnosticsClient: Setting sample rate to",n),this.config.sampleRate=n,this.shouldTrack=u0(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e})(),Yh=(function(){function e(){}return e.prototype.send=function(n,r){return Promise.resolve(null)},e.prototype.buildResponse=function(n){var r,o,l,u,c,h,p,g,y,v,b,w,E,C,D,_,A,N,M,O,I,S;if(typeof n!="object")return null;var U=n.code||0,F=this.buildStatus(U);switch(F){case Pt.Success:return{status:F,statusCode:U,body:{eventsIngested:(r=n.events_ingested)!==null&&r!==void 0?r:0,payloadSizeBytes:(o=n.payload_size_bytes)!==null&&o!==void 0?o:0,serverUploadTime:(l=n.server_upload_time)!==null&&l!==void 0?l:0}};case Pt.Invalid:return{status:F,statusCode:U,body:{error:(u=n.error)!==null&&u!==void 0?u:"",missingField:(c=n.missing_field)!==null&&c!==void 0?c:"",eventsWithInvalidFields:(h=n.events_with_invalid_fields)!==null&&h!==void 0?h:{},eventsWithMissingFields:(p=n.events_with_missing_fields)!==null&&p!==void 0?p:{},eventsWithInvalidIdLengths:(g=n.events_with_invalid_id_lengths)!==null&&g!==void 0?g:{},epsThreshold:(y=n.eps_threshold)!==null&&y!==void 0?y:0,exceededDailyQuotaDevices:(v=n.exceeded_daily_quota_devices)!==null&&v!==void 0?v:{},silencedDevices:(b=n.silenced_devices)!==null&&b!==void 0?b:[],silencedEvents:(w=n.silenced_events)!==null&&w!==void 0?w:[],throttledDevices:(E=n.throttled_devices)!==null&&E!==void 0?E:{},throttledEvents:(C=n.throttled_events)!==null&&C!==void 0?C:[]}};case Pt.PayloadTooLarge:return{status:F,statusCode:U,body:{error:(D=n.error)!==null&&D!==void 0?D:""}};case Pt.RateLimit:return{status:F,statusCode:U,body:{error:(_=n.error)!==null&&_!==void 0?_:"",epsThreshold:(A=n.eps_threshold)!==null&&A!==void 0?A:0,throttledDevices:(N=n.throttled_devices)!==null&&N!==void 0?N:{},throttledUsers:(M=n.throttled_users)!==null&&M!==void 0?M:{},exceededDailyQuotaDevices:(O=n.exceeded_daily_quota_devices)!==null&&O!==void 0?O:{},exceededDailyQuotaUsers:(I=n.exceeded_daily_quota_users)!==null&&I!==void 0?I:{},throttledEvents:(S=n.throttled_events)!==null&&S!==void 0?S:[]}};case Pt.Timeout:default:return{status:F,statusCode:U}}},e.prototype.buildStatus=function(n){return hh(n)?Pt.Success:n===429?Pt.RateLimit:n===413?Pt.PayloadTooLarge:n===408?Pt.Timeout:n>=400&&n<500?Pt.Invalid:n>=500?Pt.Failed:Pt.Unknown},e})(),MD=(function(e){Di(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;return o.customHeaders=r,o}return n.prototype.send=function(r,o){return oe(this,void 0,void 0,function(){var l,u,c;return ie(this,function(h){switch(h.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return l={headers:me({"Content-Type":"application/json",Accept:"*/*"},this.customHeaders),body:JSON.stringify(o),method:"POST"},[4,fetch(r,l)];case 1:return u=h.sent(),[4,u.text()];case 2:c=h.sent();try{return[2,this.buildResponse(JSON.parse(c))]}catch{return[2,this.buildResponse({code:u.status})]}return[2]}})})},n})(Yh),OD=(function(){function e(n,r){this.key="AMP_remote_config_".concat(n.substring(0,10)),this.logger=r}return e.prototype.fetchConfig=function(){var n=null,r={remoteConfig:null,lastFetch:new Date};try{n=localStorage.getItem(this.key)}catch(l){return this.logger.debug("Remote config localstorage failed to access: ",l),Promise.resolve(r)}if(n===null)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(r);try{var o=JSON.parse(n);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(o))),Promise.resolve({remoteConfig:o.remoteConfig,lastFetch:new Date(o.lastFetch)})}catch(l){return this.logger.debug("Remote config localstorage failed to parse: ",l),localStorage.removeItem(this.key),Promise.resolve(r)}},e.prototype.setConfig=function(n){try{return localStorage.setItem(this.key,JSON.stringify(n)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(r){this.logger.debug("Remote config localstorage failed to set: ",r)}return Promise.resolve(!1)},e})(),LD="https://sr-client-cfg.amplitude.com/config",ID="https://sr-client-cfg.eu.amplitude.com/config",zD=3,FD=1e3,UD=300*1e3,qD=(function(){function e(n,r,o,l){o===void 0&&(o="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.apiKey=n,this.serverUrl=l||(o==="US"?LD:ID),this.logger=r,this.storage=new OD(n,r)}return e.prototype.subscribe=function(n,r,o){var l=Ba(),u={id:l,key:n,deliveryMode:r,callback:o};return this.callbackInfos.push(u),r==="all"?this.subscribeAll(u):this.subscribeWaitForRemote(u,r.timeout),l},e.prototype.unsubscribe=function(n){var r=this.callbackInfos.findIndex(function(o){return o.id===n});return r===-1?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(n," doesn't exist.")),!1):(this.callbackInfos.splice(r,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(n,".")),!0)},e.prototype.updateConfigs=function(){return oe(this,void 0,void 0,function(){var n,r,o=this;return ie(this,function(l){switch(l.label){case 0:return this.lastSuccessfulFetch&&(n=Date.now()-this.lastSuccessfulFetch,n<UD)?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return r=l.sent(),this.storage.setConfig(r),this.callbackInfos.forEach(function(u){o.sendCallback(u,r,"remote")}),[2]}})})},e.prototype.getOrCreateFetchPromise=function(){var n=this;return this.fetchPromise?this.fetchPromise:(this.fetchPromise=this.fetch().then(function(r){return r.remoteConfig!==null&&(n.lastSuccessfulFetch=Date.now()),r}).finally(function(){n.fetchPromise=null}),this.fetchPromise)},e.prototype.subscribeAll=function(n){return oe(this,void 0,void 0,function(){var r,o,l,u=this;return ie(this,function(c){switch(c.label){case 0:return r=this.getOrCreateFetchPromise().then(function(h){u.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(h))),u.sendCallback(n,h,"remote"),u.storage.setConfig(h)}),o=this.storage.fetchConfig().then(function(h){return h}),[4,Promise.race([r,o])];case 1:return l=c.sent(),l!==void 0&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(l))),l.remoteConfig!==null?this.sendCallback(n,l,"cache"):this.logger.debug("Remote config client skips sending callback because cache is empty (first time user).")),[4,r];case 2:return c.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(n,r){return oe(this,void 0,void 0,function(){var o,l,l;return ie(this,function(u){switch(u.label){case 0:o=new Promise(function(c,h){setTimeout(function(){h("Timeout exceeded")},r)}),u.label=1;case 1:return u.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),o])];case 2:return l=u.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(n,l,"remote"),this.storage.setConfig(l),[3,5];case 3:return u.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return l=u.sent(),l.remoteConfig!==null?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(n,l,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(n,l,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(n,r,o){n.lastCallback=new Date;var l;n.key?l=n.key.split(".").reduce(function(u,c){return u===null?u:c in u?u[c]:null},r.remoteConfig):l=r.remoteConfig,n.callback(l,o,r.lastFetch)},e.prototype.fetch=function(n,r){return n===void 0&&(n=zD),r===void 0&&(r=FD),oe(this,void 0,void 0,function(){var o,l,u,c,h,p,g=this;return ie(this,function(y){switch(y.label){case 0:o=r/n,l={remoteConfig:null,lastFetch:new Date},u=function(v){var b,w,E,C,D,_;return ie(this,function(A){switch(A.label){case 0:b=new AbortController,w=setTimeout(function(){return b.abort()},r),A.label=1;case 1:return A.trys.push([1,7,8,9]),[4,fetch(c.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:b.signal})];case 2:return E=A.sent(),E.ok?[3,4]:[4,E.text()];case 3:return C=A.sent(),c.logger.debug("Remote config client fetch with retry time ".concat(n," failed with ").concat(E.status,": ").concat(C)),[3,6];case 4:return[4,E.json()];case 5:return D=A.sent(),[2,{value:{remoteConfig:D,lastFetch:new Date}}];case 6:return[3,9];case 7:return _=A.sent(),_ instanceof Error&&_.name==="AbortError"?c.logger.debug("Remote config client fetch with retry time ".concat(n," timed out after ").concat(r,"ms")):c.logger.debug("Remote config client fetch with retry time ".concat(n," is rejected because: "),_),[3,9];case 8:return clearTimeout(w),[7];case 9:return v<n-1?[4,new Promise(function(N){return setTimeout(N,g.getJitterDelay(o))})]:[3,11];case 10:A.sent(),A.label=11;case 11:return[2]}})},c=this,h=0,y.label=1;case 1:return h<n?[5,u(h)]:[3,4];case 2:if(p=y.sent(),typeof p=="object")return[2,p.value];y.label=3;case 3:return h++,[3,1];case 4:return[2,l]}})})},e.prototype.getJitterDelay=function(n){return Math.floor(Math.random()*n)},e.prototype.getUrlParams=function(){var n=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(n,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e})(),If=ht(),So=If?.console,Ei={},Gs={},zf=!1;function BD(e){if(!So||typeof So[e]!="function")return!1;if(Gs[e])return!0;var n=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];try{if(Ei[e]&&!zf){zf=!0;var l=Ei[e];l&&l.forEach(function(u){try{u(e,r)}catch{}})}}catch{}return zf=!1,Gs[e].apply(So,r)};return Gs[e]=So[e],So[e]=n,!0}function PD(e,n){var r=BD(e);if(!r)return new Error("Console override failed");Ei[e]?Ei[e].push(n):Ei[e]=[n]}function HD(e){var n,r;try{for(var o=Pe(Object.values(Ei)),l=o.next();!l.done;l=o.next())for(var u=l.value,c=u.length-1;c>=0;c--)if(u[c]===e){u.splice(c,1);break}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function $D(){var e,n;try{for(var r=Pe(Object.entries(Gs)),o=r.next();!o.done;o=r.next()){var l=_e(o.value,2),u=l[0],c=l[1];c&&(So[u]=c)}}catch(h){e={error:h}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}Gs={},Ei={}}var m0={addListener:PD,removeListener:HD,_restoreConsole:$D},QD=null,VD=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],i1="data-amp-track-",GD=["div","span","h1","h2","h3","h4","h5","h6"],YD=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],o1=tt(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],_e(YD),!1),KD=o1,WD=o1,XD=["*"],ZD=1e3,JD=4,eC=50;function tC(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0}function s1(e,n,r){if(e){var o=n.map(p0),l=r.map(p0);l1({json:e,allowlist:o,excludelist:l,ancestors:[]})}}function l1(e){var n,r,o=e.json,l=e.targetObject,u=e.allowlist,c=e.excludelist,h=e.ancestors,p=e.parentObject,g=e.targetKey;l||(l=o);var y=Object.keys(l);try{for(var v=Pe(y),b=v.next();!b.done;b=v.next()){var w=b.value,E=tt(tt([],_e(h),!1),[w],!1);tC(l[w])?(!v0(E,u)||v0(E,c))&&delete l[w]:l1({json:o,targetObject:l[w],allowlist:u,excludelist:c,ancestors:E,parentObject:l,targetKey:w})}}catch(C){n={error:C}}finally{try{b&&!b.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}Object.keys(l).length===0&&p&&g&&delete p[g]}function p0(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(n){return n.replace(/~0/g,"~").replace(/~1/g,"/")})}function ph(e,n,r,o){if(r===void 0&&(r=0),o===void 0&&(o=0),o===n.length)return r===e.length;if(r===e.length){for(;o<n.length&&n[o]==="**";)o++;return o===n.length}var l=n[o];if(l==="**"){if(o+1===n.length)return!0;for(var u=r;u<=e.length;u++)if(ph(e,n,u,o+1))return!0;return!1}else return l==="*"||l===e[r]?ph(e,n,r+1,o+1):!1}function v0(e,n){return n.some(function(r){return ph(e,r)})}var nC=500,u1=100,aC=(function(){function e(n){this.request=n}return e.prototype.headers=function(n){var r,o;n===void 0&&(n=[]);var l=this.request.headers,u={};if(Array.isArray(l))l.forEach(function(v){var b=_e(v,2),w=b[0],E=b[1];u[w]=E});else if(l instanceof Headers)l.forEach(function(v,b){u[b]=v});else if(typeof l=="object"&&l!==null)try{for(var c=Pe(Object.entries(l)),h=c.next();!h.done;h=c.next()){var p=_e(h.value,2),g=p[0],y=p[1];u[g]=y}}catch(v){r={error:v}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return uc(u,{allow:n})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize=="number")return this._bodySize;var n=ht();if(n?.TextEncoder){var r=this.request.body;return this._bodySize=c1(r,u1),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body=="string"?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){return n.length===0?[2,null]:(o=this.body,[2,Kh(o,n,r)])})})},e})(),rC=(function(){function e(n,r){this.bodyRaw=n,this.requestHeaders=r}return e.prototype.headers=function(n){return n===void 0&&(n=[]),uc(this.requestHeaders,{allow:n})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return c1(this.bodyRaw,u1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw=="string"?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){return n.length===0?[2,null]:(o=this.body,[2,Kh(o,n,r)])})})},e})();function c1(e,n){var r,o,l,u=ht(),c=u?.TextEncoder;if(c){var h;if(typeof e=="string")h=e,l=new c().encode(h).length;else if(e instanceof Blob)h=e,l=h.size;else if(e instanceof URLSearchParams)h=e,l=new c().encode(h.toString()).length;else if(ArrayBuffer.isView(e))h=e,l=h.byteLength;else if(e instanceof ArrayBuffer)h=e,l=h.byteLength;else if(e instanceof FormData){var p=e,g=0,y=0;try{for(var v=Pe(p.entries()),b=v.next();!b.done;b=v.next()){var w=_e(b.value,2),E=w[0],C=w[1];if(g+=E.length,typeof C=="string")g+=new c().encode(C).length;else if(C instanceof Blob)g+=C.size;else return;if(++y>=n)return}}catch(D){r={error:D}}finally{try{b&&!b.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}l=g}else if(e instanceof ReadableStream){h=e;return}return l}}var iC=(function(){function e(n){this.response=n}return e.prototype.headers=function(n){var r;if(n===void 0&&(n=[]),this.response.headers instanceof Headers){var o=this.response.headers,l={};return(r=o?.forEach)===null||r===void 0||r.call(o,function(u,c){l[c]=u}),uc(l,{allow:n})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var n,r;if(this._bodySize!==void 0)return this._bodySize;var o=(r=(n=this.response.headers)===null||n===void 0?void 0:n.get)===null||r===void 0?void 0:r.call(n,"content-length"),l=o?parseInt(o,10):void 0;return this._bodySize=l,l},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return oe(this,void 0,void 0,function(){var n,r,o;return ie(this,function(l){switch(l.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),l.label=1;case 1:return l.trys.push([1,3,,4]),n=this.clonedResponse.text(),r=new Promise(function(u){return setTimeout(function(){return u(null)},nC)}),[4,Promise.race([n,r])];case 2:return o=l.sent(),[2,o];case 3:return l.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){switch(l.label){case 0:return n.length===0?[2,null]:[4,this.text()];case 1:return o=l.sent(),[2,Kh(o,n,r)]}})})},e})(),oC=(function(){function e(n,r,o,l){this.statusCode=n,this.headersString=r,this.size=o,this.getJson=l}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(n){var r,o;if(n===void 0&&(n=[]),!this.headersString)return{};var l={},u=this.headersString.split(`\r
14
+ `);try{for(var c=Pe(u),h=c.next();!h.done;h=c.next()){var p=h.value,g=_e(p.split(": "),2),y=g[0],v=g[1];y&&v&&(l[y]=v)}}catch(b){r={error:b}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return uc(l,{allow:n})},e.prototype.json=function(n,r){return n===void 0&&(n=[]),r===void 0&&(r=[]),oe(this,void 0,void 0,function(){var o;return ie(this,function(l){return n.length===0?[2,null]:(o=this.getJson(),o?(s1(o,n,r),[2,o]):[2,null])})})},e})();function Kh(e,n,r){if(!e)return null;try{var o=JSON.parse(e);return s1(o,n,r),o}catch{return null}}var Ys;(function(e){e.REDACT="redact",e.REMOVE="remove"})(Ys||(Ys={}));var g0="[REDACTED]",uc=function(e,n){var r,o,l=n.allow,u=l===void 0?[]:l,c=n.strategy,h=c===void 0?Ys.REMOVE:c,p=tt([],_e(MT),!1),g={},y=function(E){var C=E.toLowerCase();p.find(function(D){return D.toLowerCase()===C})?h===Ys.REDACT&&(g[E]=g0):u.find(function(D){return D.toLowerCase()===C})?g[E]=e[E]:h===Ys.REDACT&&(g[E]=g0)};try{for(var v=Pe(Object.keys(e)),b=v.next();!b.done;b=v.next()){var w=b.value;y(w)}}catch(E){r={error:E}}finally{try{b&&!b.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}return g},sC=(function(){function e(n,r,o,l,u,c,h,p,g,y,v){h===void 0&&(h=0),this.type=n,this.method=r,this.timestamp=o,this.startTime=l,this.url=u,this.requestWrapper=c,this.status=h,this.duration=p,this.responseWrapper=g,this.error=y,this.endTime=v}return e.prototype.toSerializable=function(){var n,r,o,l,u={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:(n=this.requestWrapper)===null||n===void 0?void 0:n.headers(tt([],_e(Gu),!1)),requestBodySize:(r=this.requestWrapper)===null||r===void 0?void 0:r.bodySize,responseHeaders:(o=this.responseWrapper)===null||o===void 0?void 0:o.headers(tt([],_e(Gu),!1)),responseBodySize:(l=this.responseWrapper)===null||l===void 0?void 0:l.bodySize};return Object.fromEntries(Object.entries(u).filter(function(c){var h=_e(c,2);h[0];var p=h[1];return p!==void 0}))},e})();function lC(e){return typeof e=="object"&&e!==null&&"url"in e&&"method"in e}var uC=(function(){function e(n,r){r===void 0&&(r=Ba()),this.callback=n,this.id=r}return e})(),cC=(function(){function e(n){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=n;var r=ht();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var n=ht();return!!n&&!!n.fetch},e.prototype.subscribe=function(n,r){var o,l,u,c,h,p,g,y,v,b;if(this.logger||(this.logger=r),this.eventCallbacks.set(n.id,n),!this.isObserving){var w=(u=(l=(o=this.globalScope)===null||o===void 0?void 0:o.XMLHttpRequest)===null||l===void 0?void 0:l.prototype)===null||u===void 0?void 0:u.open,E=(p=(h=(c=this.globalScope)===null||c===void 0?void 0:c.XMLHttpRequest)===null||h===void 0?void 0:h.prototype)===null||p===void 0?void 0:p.send,C=(v=(y=(g=this.globalScope)===null||g===void 0?void 0:g.XMLHttpRequest)===null||y===void 0?void 0:y.prototype)===null||v===void 0?void 0:v.setRequestHeader;w&&E&&C&&this.observeXhr(w,E,C);var D=(b=this.globalScope)===null||b===void 0?void 0:b.fetch;D&&this.observeFetch(D),this.isObserving=!0}},e.prototype.unsubscribe=function(n){this.eventCallbacks.delete(n.id)},e.prototype.triggerEventCallbacks=function(n){var r=this;this.eventCallbacks.forEach(function(o){var l;try{o.callback(n)}catch(u){(l=r.logger)===null||l===void 0||l.debug("an unexpected error occurred while triggering event callbacks",u)}})},e.prototype.handleNetworkRequestEvent=function(n,r,o,l,u,c,h){var p;if(!(c===void 0||h===void 0)){var g,y="GET";if(lC(r)?(g=r.url,y=r.method):g=(p=r?.toString)===null||p===void 0?void 0:p.call(r),g)try{var v=new URL(g);g="".concat(v.protocol,"//").concat(v.host).concat(v.pathname).concat(v.search).concat(v.hash)}catch{}y=o?.method||y;var b,w;l&&(b=l.status),u&&(w={name:u.name||"UnknownError",message:u.message||"An unknown error occurred"},b=0);var E=Math.floor(performance.now()-h),C=Math.floor(c+E),D=new sC(n,y,c,c,g,o,b,E,l,w,C);this.triggerEventCallbacks(D)}},e.prototype.getTimestamps=function(){var n,r;return{startTime:(n=Date.now)===null||n===void 0?void 0:n.call(Date),durationStart:(r=performance?.now)===null||r===void 0?void 0:r.call(performance)}},e.prototype.observeFetch=function(n){var r=this;!this.globalScope||!n||(this.globalScope.fetch=function(o,l){return oe(r,void 0,void 0,function(){var u,c,h,p,g,y;return ie(this,function(v){switch(v.label){case 0:try{u=this.getTimestamps()}catch(b){(g=this.logger)===null||g===void 0||g.debug("an unexpected error occurred while retrieving timestamps",b)}v.label=1;case 1:return v.trys.push([1,3,,4]),[4,n(o,l)];case 2:return c=v.sent(),[3,4];case 3:return p=v.sent(),h=p,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",o,l?new aC(l):void 0,c?new iC(c):void 0,h,u?.startTime,u?.durationStart)}catch(b){(y=this.logger)===null||y===void 0||y.debug("an unexpected error occurred while handling fetch",b)}if(c)return[2,c];throw h}})})})},e.createXhrJsonParser=function(n,r){return function(){var o,l;try{if(n.responseType==="json"){if(!((o=r.globalScope)===null||o===void 0)&&o.structuredClone)return r.globalScope.structuredClone(n.response)}else if(["text",""].includes(n.responseType))return JSON.parse(n.responseText)}catch(u){return u instanceof Error&&u.name==="InvalidStateError"&&((l=r.logger)===null||l===void 0||l.error("unexpected error when retrieving responseText. responseType='".concat(n.responseType,"'"))),null}return null}},e.prototype.observeXhr=function(n,r,o){if(!(!this.globalScope||!n||!r)){var l=this.globalScope.XMLHttpRequest.prototype,u=this;l.open=function(){for(var c,h,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];var y=this,v=_e(p,2),b=v[0],w=v[1];try{y.$$AmplitudeAnalyticsEvent=me({method:b,url:(c=w?.toString)===null||c===void 0?void 0:c.call(w),headers:{}},u.getTimestamps())}catch(E){(h=u.logger)===null||h===void 0||h.error("an unexpected error occurred while calling xhr open",E)}return n.apply(y,p)},l.send=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];var p=this,g=p,y=e.createXhrJsonParser(p,u),v=c[0],b=g.$$AmplitudeAnalyticsEvent;return g.addEventListener("loadend",function(){var w;try{var E=g.getAllResponseHeaders(),C=g.getResponseHeader("content-length"),D=new oC(g.status,E,C?parseInt(C,10):void 0,y),_=g.$$AmplitudeAnalyticsEvent.headers,A=new rC(v,_);b.status=g.status,u.handleNetworkRequestEvent("xhr",{url:b.url,method:b.method},A,D,void 0,b.startTime,b.durationStart)}catch(N){(w=u.logger)===null||w===void 0||w.error("an unexpected error occurred while handling xhr send",N)}}),r.apply(g,c)},l.setRequestHeader=function(c,h){var p,g=this;try{g.$$AmplitudeAnalyticsEvent.headers[c]=h}catch(y){(p=u.logger)===null||p===void 0||p.error("an unexpected error occurred while calling xhr setRequestHeader",y)}o.apply(g,[c,h])}}},e})(),y0=new cC,d1=(function(){function e(){}return e.prototype.parse=function(){return oe(this,void 0,void 0,function(){return ie(this,function(n){return[2,me(me(me(me({},lc),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var n=Ku(),r=n[CT],o=n[kT],l=n[NT],u=n[AT],c=n[RT],h=n[jT];return{utm_campaign:r,utm_content:o,utm_id:l,utm_medium:u,utm_source:c,utm_term:h}},e.prototype.getReferrer=function(){var n,r,o={referrer:void 0,referring_domain:void 0};try{o.referrer=document.referrer||void 0,o.referring_domain=(r=(n=o.referrer)===null||n===void 0?void 0:n.split("/")[2])!==null&&r!==void 0?r:void 0}catch{}return o},e.prototype.getClickIds=function(){var n,r=Ku();return n={},n[Ky]=r[Ky],n[Wy]=r[Wy],n[Xy]=r[Xy],n[Zy]=r[Zy],n[Jy]=r[Jy],n[e0]=r[e0],n[t0]=r[t0],n[n0]=r[n0],n[a0]=r[a0],n[r0]=r[r0],n[i0]=r[i0],n},e})(),Ks="data-amp-mask",Kr="*****",dC=/\b(?:\d[ -]*?){13,16}\b/,fC=/(\d{3}-?\d{2}-?\d{4})/g,hC=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,Wh=function(e,n){var r,o;if(n===void 0&&(n=[]),typeof e!="string")return"";var l=e;l=l.replace(dC,Kr),l=l.replace(fC,Kr),l=l.replace(hC,Kr);try{for(var u=Pe(n),c=u.next();!c.done;c=u.next()){var h=c.value;try{l=l.replace(h,Kr)}catch{}}}catch(p){r={error:p}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return l},Xh=function(e){if(typeof document>"u"||!document.title)return"";var n=document.querySelector("title");return n&&n.hasAttribute(Ks)?Kr:e?e(document.title):document.title};function mC(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=pC(e))||n){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pC(e,n){if(e){if(typeof e=="string")return b0(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b0(e,n)}}function b0(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=e[r];return o}function x0(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Zh(e,n,r){return n&&x0(e.prototype,n),r&&x0(e,r),e}var Jh=function(){return typeof Symbol=="function"},em=function(e){return Jh()&&!!Symbol[e]},tm=function(e){return em(e)?Symbol[e]:"@@"+e};Jh()&&!em("observable")&&(Symbol.observable=Symbol("observable"));var vC=tm("iterator"),vh=tm("observable"),f1=tm("species");function Xu(e,n){var r=e[n];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function Ls(e){var n=e.constructor;return n!==void 0&&(n=n[f1],n===null&&(n=void 0)),n!==void 0?n:cn}function gC(e){return e instanceof cn}function Mo(e){Mo.log?Mo.log(e):setTimeout(function(){throw e})}function Bu(e){Promise.resolve().then(function(){try{e()}catch(n){Mo(n)}})}function h1(e){var n=e._cleanup;if(n!==void 0&&(e._cleanup=void 0,!!n))try{if(typeof n=="function")n();else{var r=Xu(n,"unsubscribe");r&&r.call(n)}}catch(o){Mo(o)}}function gh(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function yC(e){var n=e._queue;if(n){e._queue=void 0,e._state="ready";for(var r=0;r<n.length&&(m1(e,n[r].type,n[r].value),e._state!=="closed");++r);}}function m1(e,n,r){e._state="running";var o=e._observer;try{var l=Xu(o,n);switch(n){case"next":l&&l.call(o,r);break;case"error":if(gh(e),l)l.call(o,r);else throw r;break;case"complete":gh(e),l&&l.call(o);break}}catch(u){Mo(u)}e._state==="closed"?h1(e):e._state==="running"&&(e._state="ready")}function Ff(e,n,r){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:n,value:r});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:n,value:r}],Bu(function(){return yC(e)});return}m1(e,n,r)}}var bC=(function(){function e(r,o){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var l=new xC(this);try{this._cleanup=o.call(void 0,l)}catch(u){l.error(u)}this._state==="initializing"&&(this._state="ready")}var n=e.prototype;return n.unsubscribe=function(){this._state!=="closed"&&(gh(this),h1(this))},Zh(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),xC=(function(){function e(r){this._subscription=r}var n=e.prototype;return n.next=function(o){Ff(this._subscription,"next",o)},n.error=function(o){Ff(this._subscription,"error",o)},n.complete=function(){Ff(this._subscription,"complete")},Zh(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),cn=(function(){function e(r){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var n=e.prototype;return n.subscribe=function(o){return(typeof o!="object"||o===null)&&(o={next:o,error:arguments[1],complete:arguments[2]}),new bC(o,this._subscriber)},n.forEach=function(o){var l=this;return new Promise(function(u,c){if(typeof o!="function"){c(new TypeError(o+" is not a function"));return}function h(){p.unsubscribe(),u()}var p=l.subscribe({next:function(g){try{o(g,h)}catch(y){c(y),p.unsubscribe()}},error:c,complete:u})})},n.map=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Ls(this);return new u(function(c){return l.subscribe({next:function(h){try{h=o(h)}catch(p){return c.error(p)}c.next(h)},error:function(h){c.error(h)},complete:function(){c.complete()}})})},n.filter=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Ls(this);return new u(function(c){return l.subscribe({next:function(h){try{if(!o(h))return}catch(p){return c.error(p)}c.next(h)},error:function(h){c.error(h)},complete:function(){c.complete()}})})},n.reduce=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Ls(this),c=arguments.length>1,h=!1,p=arguments[1],g=p;return new u(function(y){return l.subscribe({next:function(v){var b=!h;if(h=!0,!b||c)try{g=o(g,v)}catch(w){return y.error(w)}else g=v},error:function(v){y.error(v)},complete:function(){if(!h&&!c)return y.error(new TypeError("Cannot reduce an empty sequence"));y.next(g),y.complete()}})})},n.concat=function(){for(var o=this,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var h=Ls(this);return new h(function(p){var g,y=0;function v(b){g=b.subscribe({next:function(w){p.next(w)},error:function(w){p.error(w)},complete:function(){y===u.length?(g=void 0,p.complete()):v(h.from(u[y++]))}})}return v(o),function(){g&&(g.unsubscribe(),g=void 0)}})},n.flatMap=function(o){var l=this;if(typeof o!="function")throw new TypeError(o+" is not a function");var u=Ls(this);return new u(function(c){var h=[],p=l.subscribe({next:function(y){if(o)try{y=o(y)}catch(b){return c.error(b)}var v=u.from(y).subscribe({next:function(b){c.next(b)},error:function(b){c.error(b)},complete:function(){var b=h.indexOf(v);b>=0&&h.splice(b,1),g()}});h.push(v)},error:function(y){c.error(y)},complete:function(){g()}});function g(){p.closed&&h.length===0&&c.complete()}return function(){h.forEach(function(y){return y.unsubscribe()}),p.unsubscribe()}})},n[vh]=function(){return this},e.from=function(o){var l=typeof this=="function"?this:e;if(o==null)throw new TypeError(o+" is not an object");var u=Xu(o,vh);if(u){var c=u.call(o);if(Object(c)!==c)throw new TypeError(c+" is not an object");return gC(c)&&c.constructor===l?c:new l(function(h){return c.subscribe(h)})}if(em("iterator")&&(u=Xu(o,vC),u))return new l(function(h){Bu(function(){if(!h.closed){for(var p=mC(u.call(o)),g;!(g=p()).done;){var y=g.value;if(h.next(y),h.closed)return}h.complete()}})});if(Array.isArray(o))return new l(function(h){Bu(function(){if(!h.closed){for(var p=0;p<o.length;++p)if(h.next(o[p]),h.closed)return;h.complete()}})});throw new TypeError(o+" is not observable")},e.of=function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];var c=typeof this=="function"?this:e;return new c(function(h){Bu(function(){if(!h.closed){for(var p=0;p<l.length;++p)if(h.next(l[p]),h.closed)return;h.complete()}})})},Zh(e,null,[{key:f1,get:function(){return this}}]),e})();Jh()&&Object.defineProperty(cn,Symbol("extensions"),{value:{symbol:vh,hostReportError:Mo},configurable:!0});function nm(e,n){return new cn(function(r){e.subscribe({next:function(o){n(o).then(function(l){return r.next(l)}).catch(function(l){return r.error(l)})},error:function(o){r.error(o)},complete:function(){r.complete()}})})}function _i(e,n){return new cn(function(r){var o=!1,l=new Set,u=function(){var h,p;o=!0;try{for(var g=Pe(l),y=g.next();!y.done;y=g.next()){var v=y.value;try{v.unsubscribe()}catch{}}}catch(b){h={error:b}}finally{try{y&&!y.done&&(p=g.return)&&p.call(g)}finally{if(h)throw h.error}}l.clear()},c=function(h){var p=h.subscribe({next:function(g){o||r.next(g)},error:function(g){o||(o=!0,r.error(g),u())},complete:function(){l.delete(p),!o&&l.size===0&&(r.complete(),u(),o=!0)}});l.add(p)};return c(e),c(n),u})}function hr(e){var n=new Set,r=null;function o(){r?.unsubscribe(),r=null,n.clear()}return new cn(function(l){return n.add(l),r===null&&(r=e.subscribe({next:function(u){var c,h,p;try{for(var g=Pe(n),y=g.next();!y.done;y=g.next()){var v=y.value;(p=v.next)===null||p===void 0||p.call(v,u)}}catch(b){c={error:b}}finally{try{y&&!y.done&&(h=g.return)&&h.call(g)}finally{if(c)throw c.error}}},error:function(u){var c,h,p;try{for(var g=Pe(n),y=g.next();!y.done;y=g.next()){var v=y.value;(p=v.error)===null||p===void 0||p.call(v,u)}}catch(b){c={error:b}}finally{try{y&&!y.done&&(h=g.return)&&h.call(g)}finally{if(c)throw c.error}}o()},complete:function(){var u,c,h;try{for(var p=Pe(n),g=p.next();!g.done;g=p.next()){var y=g.value;(h=y.complete)===null||h===void 0||h.call(y)}}catch(v){u={error:v}}finally{try{g&&!g.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}o()}})),function(){n.delete(l),n.size===0&&r&&(r.unsubscribe(),r=null)}})}var zo=function(e,n){return typeof e=="boolean"?e:e?.[n]!==!1},p1=function(e){return zo(e,"attribution")},wC=function(e){return zo(e,"fileDownloads")},v1=function(e){return zo(e,"formInteractions")},g1=function(e){return zo(e,"pageViews")},w0=function(e){return zo(e,"sessions")},SC=function(e){return zo(e,"pageUrlEnrichment")},y1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.networkTracking===!0||typeof e.networkTracking=="object")},b1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},EC=function(e){return typeof e=="boolean"?e:typeof e=="object"&&e.webVitals===!0},x1=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions=="object")},_C=function(e){if(b1(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},TC=function(e){if(x1(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.frustrationInteractions=="object")return e.autocapture.frustrationInteractions},DC=function(e){var n;if(y1(e.autocapture)){var r=void 0;return typeof e.autocapture=="object"&&typeof e.autocapture.networkTracking=="object"?r=e.autocapture.networkTracking:e.networkTrackingOptions&&(r=e.networkTrackingOptions),me(me({},r),{captureRules:(n=r?.captureRules)===null||n===void 0?void 0:n.map(function(o){var l,u,c;if(!((l=o.urls)===null||l===void 0)&&l.length&&(!((u=o.hosts)===null||u===void 0)&&u.length)){var h=JSON.stringify(o.hosts),p=JSON.stringify(o.urls);return(c=e.loggerProvider)===null||c===void 0||c.warn("Found network capture rule with both urls='".concat(p,"' and hosts='").concat(h,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),me(me({},o),{hosts:void 0})}return o})})}},CC=function(e){var n=function(){return!1},r=void 0,o,l=e.pageCounter,u=g1(e.defaultTracking);return u&&(n=void 0,o=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(o=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:o,pageCounter:l}},kC=function(e){return p1(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?me({},e.defaultTracking.attribution):{}},NC=function(e){if(v1(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&typeof e.defaultTracking.formInteractions=="object")return e.defaultTracking.formInteractions},Uf=function(e,n){for(var r=0;r<n.length;r++){var o=n[r],l=o.name,u=o.args,c=o.resolve,h=e&&e[l];if(typeof h=="function"){var p=h.apply(e,u);typeof c=="function"&&c(p?.promise)}}return e},qf=function(e){var n=e;return n&&n._q!==void 0},am="2.34.0",w1="amplitude-ts",AC="Web",RC="$remote",jC=(function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(w1,"/").concat(am),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(n){return this.config=n,Promise.resolve(void 0)},e.prototype.execute=function(n){var r,o;return oe(this,void 0,void 0,function(){var l,u,c,h;return ie(this,function(p){return l=new Date().getTime(),u=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1,c=(o=n.event_id)!==null&&o!==void 0?o:u+1,this.config.lastEventId=c,n.time||(this.config.lastEventTime=l),h=me(me(me(me(me(me(me(me({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:l},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:AC}),this.config.trackingOptions.language&&{language:vD()}),this.config.trackingOptions.ipAddress&&{ip:RC}),{insert_id:Ba(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),n),{event_id:c,library:this.library,user_agent:this.userAgent}),[2,h]})})},e})(),Cu=1e3,S1=(function(e){Di(n,e);function n(r){var o=this,l,u,c;try{c=(l=ht())===null||l===void 0?void 0:l.localStorage}catch(h){(u=r?.loggerProvider)===null||u===void 0||u.debug("Failed to access localStorage. error=".concat(JSON.stringify(h))),c=void 0}return o=e.call(this,c)||this,o.loggerProvider=r?.loggerProvider,o}return n.prototype.set=function(r,o){var l;return oe(this,void 0,void 0,function(){var u;return ie(this,function(c){switch(c.label){case 0:return Array.isArray(o)&&o.length>Cu?(u=o.length-Cu,[4,e.prototype.set.call(this,r,o.slice(0,Cu))]):[3,2];case 1:return c.sent(),(l=this.loggerProvider)===null||l===void 0||l.error("Failed to save ".concat(u," events because the queue length exceeded ").concat(Cu,".")),[3,4];case 2:return[4,e.prototype.set.call(this,r,o)];case 3:c.sent(),c.label=4;case 4:return[2]}})})},n})(Gh),MC=(function(e){Di(n,e);function n(){var r;return e.call(this,(r=ht())===null||r===void 0?void 0:r.sessionStorage)||this}return n})(Gh),OC=(function(e){Di(n,e);function n(r){r===void 0&&(r={});var o=e.call(this)||this;return o.state={done:4},o.customHeaders=r,o}return n.prototype.send=function(r,o){return oe(this,void 0,void 0,function(){var l=this;return ie(this,function(u){return[2,new Promise(function(c,h){var p,g;typeof XMLHttpRequest>"u"&&h(new Error("XHRTransport is not supported."));var y=new XMLHttpRequest;y.open("POST",r,!0),y.onreadystatechange=function(){if(y.readyState===l.state.done){var _=y.responseText;try{c(l.buildResponse(JSON.parse(_)))}catch{c(l.buildResponse({code:y.status}))}}};var v=me({"Content-Type":"application/json",Accept:"*/*"},l.customHeaders);try{for(var b=Pe(Object.entries(v)),w=b.next();!w.done;w=b.next()){var E=_e(w.value,2),C=E[0],D=E[1];y.setRequestHeader(C,D)}}catch(_){p={error:_}}finally{try{w&&!w.done&&(g=b.return)&&g.call(b)}finally{if(p)throw p.error}}y.send(JSON.stringify(o))})]})})},n})(Yh),LC=(function(e){Di(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.send=function(r,o){return oe(this,void 0,void 0,function(){var l=this;return ie(this,function(u){return[2,new Promise(function(c,h){var p=ht();if(!p?.navigator.sendBeacon)throw new Error("SendBeaconTransport is not supported");try{var g=JSON.stringify(o),y=p.navigator.sendBeacon(r,JSON.stringify(o));return c(y?l.buildResponse({code:200,events_ingested:o.events.length,payload_size_bytes:g.length,server_upload_time:Date.now()}):l.buildResponse({code:500}))}catch(v){h(v)}})]})})},n})(Yh),IC=function(e,n,r){return r===void 0&&(r=!0),oe(void 0,void 0,void 0,function(){var o,l,u,c,h,p,g,y,v;return ie(this,function(b){switch(b.label){case 0:return o=pD(e),[4,n.getRaw(o)];case 1:return l=b.sent(),l?r?[4,n.remove(o)]:[3,3]:[2,{optOut:!1}];case 2:b.sent(),b.label=3;case 3:return u=_e(l.split("."),6),c=u[0],h=u[1],p=u[2],g=u[3],y=u[4],v=u[5],[2,{deviceId:c,userId:zC(h),sessionId:Bf(g),lastEventId:Bf(v),lastEventTime:Bf(y),optOut:!!p}]}})})},Bf=function(e){var n=parseInt(e,32);if(!isNaN(n))return n},zC=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},Sa="[Amplitude]",S0="".concat(Sa," Form Started"),FC="".concat(Sa," Form Submitted"),UC="".concat(Sa," File Downloaded"),E0="session_start",_0="session_end",qC="".concat(Sa," File Extension"),BC="".concat(Sa," File Name"),PC="".concat(Sa," Link ID"),HC="".concat(Sa," Link Text"),$C="".concat(Sa," Link URL"),Pf="".concat(Sa," Form ID"),Hf="".concat(Sa," Form Name"),$f="".concat(Sa," Form Destination"),Zu="cookie",E1="US",QC=(function(e){Di(n,e);function n(r,o,l,u,c,h,p,g,y,v,b,w,E,C,D,_,A,N,M,O,I,S,U,F,L,B,K,se,ae,ce,j,Y,le,de,fe,pe,G,X,ue,re){l===void 0&&(l=new Vh),u===void 0&&(u={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),g===void 0&&(g=1e3),y===void 0&&(y=5),v===void 0&&(v=30),b===void 0&&(b=Zu),_===void 0&&(_=new Qh),A===void 0&&(A=Hn.Warn),M===void 0&&(M=!1),O===void 0&&(O=!1),U===void 0&&(U=""),F===void 0&&(F=E1),B===void 0&&(B=1800*1e3),K===void 0&&(K=new S1({loggerProvider:_})),se===void 0&&(se={ipAddress:!0,language:!0,platform:!0}),ae===void 0&&(ae="fetch"),ce===void 0&&(ce=!1),j===void 0&&(j=!0),G===void 0&&(G=!0),X===void 0&&(X=0);var ee=this,ve;ee=e.call(this,{apiKey:r,storageProvider:K,transportProvider:_1(ae)})||this,ee.apiKey=r,ee.appVersion=o,ee.cookieOptions=u,ee.defaultTracking=c,ee.autocapture=h,ee.flushIntervalMillis=g,ee.flushMaxRetries=y,ee.flushQueueSize=v,ee.identityStorage=b,ee.ingestionMetadata=w,ee.instanceName=E,ee.loggerProvider=_,ee.logLevel=A,ee.minIdLength=N,ee.offline=M,ee.partnerId=I,ee.plan=S,ee.serverUrl=U,ee.serverZone=F,ee.sessionTimeout=B,ee.storageProvider=K,ee.trackingOptions=se,ee.transport=ae,ee.useBatch=ce,ee.fetchRemoteConfig=j,ee.networkTrackingOptions=fe,ee.identify=pe,ee.enableDiagnostics=G,ee.diagnosticsSampleRate=X,ee.diagnosticsClient=ue,ee.remoteConfig=re,ee.version=am,ee._optOut=!1,ee._cookieStorage=l,ee.deviceId=p,ee.lastEventId=C,ee.lastEventTime=D,ee.optOut=O,ee.sessionId=L,ee.pageCounter=le,ee.userId=Y,ee.debugLogsEnabled=de,ee.loggerProvider.enable(de?Hn.Debug:ee.logLevel),ee.networkTrackingOptions=fe,ee.identify=pe,ee.enableDiagnostics=G,ee.diagnosticsSampleRate=X,ee.diagnosticsClient=ue;var ge=(ve=re?.fetchRemoteConfig)!==null&&ve!==void 0?ve:j;return ee.remoteConfig=ee.remoteConfig||{},ee.remoteConfig.fetchRemoteConfig=ge,ee.fetchRemoteConfig=ge,ee}return Object.defineProperty(n.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(r){this._cookieStorage!==r&&(this._cookieStorage=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceId",{get:function(){return this._deviceId},set:function(r){this._deviceId!==r&&(this._deviceId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"userId",{get:function(){return this._userId},set:function(r){this._userId!==r&&(this._userId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sessionId",{get:function(){return this._sessionId},set:function(r){this._sessionId!==r&&(this._sessionId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"optOut",{get:function(){return this._optOut},set:function(r){this._optOut!==r&&(this._optOut=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(r){this._lastEventTime!==r&&(this._lastEventTime=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(r){this._lastEventId!==r&&(this._lastEventId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(r){this._pageCounter!==r&&(this._pageCounter=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"debugLogsEnabled",{set:function(r){this._debugLogsEnabled!==r&&(this._debugLogsEnabled=r,this.updateStorage())},enumerable:!1,configurable:!0}),n.prototype.updateStorage=function(){var r={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof Wu&&(r.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(n1(this.apiKey),r)},n})(ZT),VC=function(e,n,r,o,l){return n===void 0&&(n={}),oe(void 0,void 0,void 0,function(){var u,c,h,p,g,y,v,b,w,E,C,D,_,A,N,M,O,I,S,U,F,L,B,K,se,ae,ce,j,Y,le,de,fe,pe,G,X,ue,re,ee,ve,ge,Ne,st,dn,ln,_a,Jt,Vn,Gn,jn,la;return ie(this,function(Tt){switch(Tt.label){case 0:return u=n.identityStorage||Zu,L={},u===Zu?[3,1]:(h="",[3,5]);case 1:return(K=(B=n.cookieOptions)===null||B===void 0?void 0:B.domain)!==null&&K!==void 0?(p=K,[3,4]):[3,2];case 2:return[4,KC()];case 3:p=Tt.sent(),Tt.label=4;case 4:h=p,Tt.label=5;case 5:return c=me.apply(void 0,[(L.domain=h,L.expiration=365,L.sameSite="Lax",L.secure=!1,L.upgrade=!0,L),n.cookieOptions]),g={duplicateResolverFn:function($a){var Ta=a1($a);if(!Ta)return!1;var Ht=JSON.parse(Ta);return r1(Ht.cookieDomain,c.domain)},diagnosticsClient:o},y=GC(n.identityStorage,c,g),[4,IC(e,y,(ae=(se=n.cookieOptions)===null||se===void 0?void 0:se.upgrade)!==null&&ae!==void 0?ae:!0)];case 6:return v=Tt.sent(),[4,y.get(n1(e))];case 7:return b=Tt.sent(),w=Ku(),E=w.ampTimestamp?Number(w.ampTimestamp):void 0,C=E?Date.now()<E:!0,D=(de=(le=(Y=(ce=n.deviceId)!==null&&ce!==void 0?ce:C?(j=w.ampDeviceId)!==null&&j!==void 0?j:w.deviceId:void 0)!==null&&Y!==void 0?Y:b?.deviceId)!==null&&le!==void 0?le:v.deviceId)!==null&&de!==void 0?de:Ba(),_=(fe=b?.lastEventId)!==null&&fe!==void 0?fe:v.lastEventId,A=(pe=b?.lastEventTime)!==null&&pe!==void 0?pe:v.lastEventTime,N=(X=(G=n.optOut)!==null&&G!==void 0?G:b?.optOut)!==null&&X!==void 0?X:v.optOut,M=(ue=b?.sessionId)!==null&&ue!==void 0?ue:v.sessionId,O=(ee=(re=n.userId)!==null&&re!==void 0?re:b?.userId)!==null&&ee!==void 0?ee:v.userId,r.previousSessionDeviceId=(ve=b?.deviceId)!==null&&ve!==void 0?ve:v.deviceId,r.previousSessionUserId=(ge=b?.userId)!==null&&ge!==void 0?ge:v.userId,I={ipAddress:(st=(Ne=n.trackingOptions)===null||Ne===void 0?void 0:Ne.ipAddress)!==null&&st!==void 0?st:!0,language:(ln=(dn=n.trackingOptions)===null||dn===void 0?void 0:dn.language)!==null&&ln!==void 0?ln:!0,platform:(Jt=(_a=n.trackingOptions)===null||_a===void 0?void 0:_a.platform)!==null&&Jt!==void 0?Jt:!0},S=b?.pageCounter,U=b?.debugLogsEnabled,n.autocapture!==void 0&&(n.defaultTracking=n.autocapture),F=new QC(e,n.appVersion,y,c,n.defaultTracking,n.autocapture,D,n.flushIntervalMillis,n.flushMaxRetries,n.flushQueueSize,u,n.ingestionMetadata,n.instanceName,_,A,(Vn=l?.loggerProvider)!==null&&Vn!==void 0?Vn:n.loggerProvider,n.logLevel,n.minIdLength,n.offline,N,n.partnerId,n.plan,n.serverUrl,(Gn=l?.serverZone)!==null&&Gn!==void 0?Gn:n.serverZone,M,n.sessionTimeout,n.storageProvider,I,n.transport,n.useBatch,n.fetchRemoteConfig,O,S,U,n.networkTrackingOptions,n.identify,(jn=l?.enableDiagnostics)!==null&&jn!==void 0?jn:n.enableDiagnostics,(la=l?.diagnosticsSampleRate)!==null&&la!==void 0?la:r._diagnosticsSampleRate,o,n.remoteConfig),[4,F.storageProvider.isEnabled()];case 8:return Tt.sent()||(F.loggerProvider.warn("Storage provider ".concat(F.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),F.storageProvider=new Vh),[2,F]}})})},GC=function(e,n,r){switch(e===void 0&&(e=Zu),n===void 0&&(n={}),e){case"localStorage":return new S1;case"sessionStorage":return new MC;case"none":return new Vh;default:return new Wu(me(me({},n),{expirationDays:n.expiration}),r)}},YC=function(e){var n,r;return e===void 0&&(e={}),((n=e.remoteConfig)===null||n===void 0?void 0:n.fetchRemoteConfig)===!0?!0:!(((r=e.remoteConfig)===null||r===void 0?void 0:r.fetchRemoteConfig)===!1||e.fetchRemoteConfig===!1)},_1=function(e){var n=typeof e=="object"?e.type:e,r=typeof e=="object"?e.headers:void 0;return n==="xhr"?new OC(r):n==="beacon"?new LC:new MD(r)},KC=function(e){return oe(void 0,void 0,void 0,function(){var n,r,o,l,u,c,c,h,p,g,y;return ie(this,function(v){switch(v.label){case 0:return[4,new Wu().isEnabled()];case 1:if(!v.sent()||typeof location>"u"||!location.hostname)return[2,""];for(n=location.hostname,r=n.split("."),o=[],l=Ba(),u="AMP_TLDTEST_".concat(l.substring(0,8)),c=r.length-2;c>=0;--c)o.push(r.slice(c).join("."));c=0,v.label=2;case 2:return c<o.length?(h=o[c],p={domain:"."+h,expirationDays:.003},g=new Wu(p),[4,g.set(u,1)]):[3,7];case 3:return v.sent(),[4,g.get(u)];case 4:return y=v.sent(),y?[4,g.remove(u)]:[3,6];case 5:return v.sent(),[2,"."+h];case 6:return c++,[3,2];case 7:return[2,""]}})})},WC=function(e){var n={};for(var r in e){var o=e[r];o&&(n[r]=o)}return n},XC="[Amplitude] Page Viewed",ZC=function(e){e===void 0&&(e={});var n,r=ht(),o=void 0,l=!1,u,c=e.trackOn,h=e.trackHistoryChanges,p=e.eventType,g=p===void 0?XC:p,y=function(_){var A=_;try{A=decodeURI(_)}catch(N){o?.error("Malformed URI sequence: ",N)}return A},v=function(){return oe(void 0,void 0,void 0,function(){var _,A,N;return ie(this,function(M){switch(M.label){case 0:return _=y(typeof location<"u"&&location.href||""),N={event_type:g},A=[{}],[4,JC()];case 1:return[2,(N.event_properties=me.apply(void 0,[me.apply(void 0,A.concat([M.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":_,"[Amplitude] Page Path":typeof location<"u"&&y(location.pathname)||"","[Amplitude] Page Title":Xh(Wh),"[Amplitude] Page URL":_.split("?")[0]}]),N)]}})})},b=function(){return typeof c>"u"||typeof c=="function"&&c()},w=typeof location<"u"?location.href:null,E=function(){return oe(void 0,void 0,void 0,function(){var _,A,N,M;return ie(this,function(O){switch(O.label){case 0:return _=location.href,A=tk(h,_,w||"")&&b(),w=_,A?(o?.log("Tracking page view event"),n!=null?[3,1]:[3,3]):[3,4];case 1:return M=(N=n).track,[4,v()];case 2:M.apply(N,[O.sent()]),O.label=3;case 3:O.label=4;case 4:return[2]}})})},C=function(){E()},D={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(_,A){return oe(void 0,void 0,void 0,function(){var N,M;return ie(this,function(O){switch(O.label){case 0:return n=A,u=_,o=_.loggerProvider,o.log("Installing @amplitude/plugin-page-view-tracking-browser"),l=!0,r&&(r.addEventListener("popstate",C),r.history.pushState=new Proxy(r.history.pushState,{apply:function(I,S,U){var F=_e(U,3),L=F[0],B=F[1],K=F[2];I.apply(S,[L,B,K]),l&&E()}})),b()?(o.log("Tracking page view event"),M=(N=n).track,[4,v()]):[3,2];case 1:M.apply(N,[O.sent()]),O.label=2;case 2:return[2]}})})},execute:function(_){return oe(void 0,void 0,void 0,function(){var A;return ie(this,function(N){switch(N.label){case 0:return c==="attribution"&&ek(_)?(o?.log("Enriching campaign event to page view event with campaign parameters"),[4,v()]):[3,2];case 1:A=N.sent(),_.event_type=A.event_type,_.event_properties=me(me({},_.event_properties),A.event_properties),N.label=2;case 2:return u&&_.event_type===g&&(u.pageCounter=u.pageCounter?u.pageCounter+1:1,_.event_properties=me(me({},_.event_properties),{"[Amplitude] Page Counter":u.pageCounter})),[2,_]}})})},teardown:function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(_){return r&&(r.removeEventListener("popstate",C),l=!1),[2]})})}};return D},JC=function(){return oe(void 0,void 0,void 0,function(){var e;return ie(this,function(n){switch(n.label){case 0:return e=WC,[4,new d1().parse()];case 1:return[2,e.apply(void 0,[n.sent()])]}})})},ek=function(e){if(e.event_type==="$identify"&&e.user_properties){var n=e.user_properties,r=n[Gr.SET]||{},o=n[Gr.UNSET]||{},l=tt(tt([],_e(Object.keys(r)),!1),_e(Object.keys(o)),!1);return Object.keys(lc).every(function(u){return l.includes(u)})}return!1},tk=function(e,n,r){switch(e){case"pathOnly":{if(r=="")return!0;var o=new URL(n),l=new URL(r),u=o.origin+o.pathname,c=l.origin+l.pathname;return u!==c}default:return n!==r}},nk=function(){var e,n=[],r=function(y,v,b){y.addEventListener(v,b),n.push({element:y,type:v,handler:b})},o=function(){n.forEach(function(y){var v=y.element,b=y.type,w=y.handler;v?.removeEventListener(b,w)}),n=[]},l,u="@amplitude/plugin-form-interaction-tracking-browser",c="enrichment",h=function(y,v){return oe(void 0,void 0,void 0,function(){var b,w;return ie(this,function(E){return l=NC(y),b=function(){if(!v){y.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var C=function(_){var A=!1;r(_,"change",function(){var N,M=T0(_);A||v.track(S0,(N={},N[Pf]=yo(_.id),N[Hf]=yo(_.name),N[$f]=M,N)),A=!0}),r(_,"submit",function(N){var M,O,I=T0(_);if(A||v.track(S0,(M={},M[Pf]=yo(_.id),M[Hf]=yo(_.name),M[$f]=I,M)),A=!0,l?.shouldTrackSubmit!==void 0)if(typeof l.shouldTrackSubmit=="function"&&typeof SubmitEvent<"u"&&N instanceof SubmitEvent)try{var S=l.shouldTrackSubmit(N);if(!S)return}catch{y.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else y.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");v.track(FC,(O={},O[Pf]=yo(_.id),O[Hf]=yo(_.name),O[$f]=I,O)),A=!1})},D=Array.from(document.getElementsByTagName("form"));D.forEach(C),typeof MutationObserver<"u"&&(e=new MutationObserver(function(_){_.forEach(function(A){A.addedNodes.forEach(function(N){N.nodeName==="FORM"&&C(N),"querySelectorAll"in N&&typeof N.querySelectorAll=="function"&&Array.from(N.querySelectorAll("form")).map(C)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?b():(w=ht(),w?w.addEventListener("load",b):y.loggerProvider.debug("Form interaction tracking is not installed because global is undefined.")),[2]})})},p=function(y){return oe(void 0,void 0,void 0,function(){return ie(this,function(v){return[2,y]})})},g=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return e?.disconnect(),o(),[2]})})};return{name:u,type:c,setup:h,execute:p,teardown:g}},yo=function(e){if(typeof e=="string")return e},T0=function(e){var n=e.getAttribute("action");try{n=new URL(encodeURI(n??""),window.location.href).href}catch{}return n},ak=function(){var e,n=[],r=function(g,y,v){g.addEventListener(y,v),n.push({element:g,type:y,handler:v})},o=function(){n.forEach(function(g){var y=g.element,v=g.type,b=g.handler;y?.removeEventListener(v,b)}),n=[]},l="@amplitude/plugin-file-download-tracking-browser",u="enrichment",c=function(g,y){return oe(void 0,void 0,void 0,function(){var v,b;return ie(this,function(w){return v=function(){if(!y){g.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var E=function(_){var A;try{A=new URL(_.href,window.location.href)}catch{return}var N=C.exec(A.href),M=N?.[1];M&&r(_,"click",function(){var O;M&&y.track(UC,(O={},O[qC]=M,O[BC]=A.pathname,O[PC]=_.id,O[HC]=_.text,O[$C]=_.href,O))})},C=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,D=Array.from(document.getElementsByTagName("a"));D.forEach(E),typeof MutationObserver<"u"&&(e=new MutationObserver(function(_){_.forEach(function(A){A.addedNodes.forEach(function(N){N.nodeName==="A"&&E(N),"querySelectorAll"in N&&typeof N.querySelectorAll=="function"&&Array.from(N.querySelectorAll("a")).map(E)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?v():(b=ht(),b?b.addEventListener("load",v):g.loggerProvider.debug("File download tracking is not installed because global is undefined.")),[2]})})},h=function(g){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return[2,g]})})},p=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(g){return e?.disconnect(),o(),[2]})})};return{name:l,type:u,setup:c,execute:h,teardown:p}},D0=!1,rk=function(e){if(!(D0||e.defaultTracking!==void 0)){var n=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:
16
16
 
17
17
  amplitude.init(<YOUR_API_KEY>, {
18
18
  defaultTracking: true,
19
19
  });
20
20
 
21
- Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(n),D0=!0}},ok=function(){var e="@amplitude/plugin-network-checker-browser",n="before",r=ft(),o=[],l=function(p,g){r?.addEventListener&&(r?.addEventListener(p,g),o.push({type:p,handler:g}))},u=function(){o.forEach(function(p){var g=p.type,y=p.handler;r?.removeEventListener(g,y)}),o=[]},c=function(p,g){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return typeof navigator>"u"?(p.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),p.offline=!1,[2]):(p.offline=!navigator.onLine,l("online",function(){p.loggerProvider.debug("Network connectivity changed to online."),p.offline=!1,setTimeout(function(){g.flush()},p.flushIntervalMillis)}),l("offline",function(){p.loggerProvider.debug("Network connectivity changed to offline."),p.offline=!0}),[2])})})},h=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(p){return u(),[2]})})};return{name:e,type:n,setup:c,teardown:h}};function T1(e){var n,r,o,l,u,c,h,p,g,y,v;if(!(typeof e!="object"||e===null)&&!Array.isArray(e)){var b=Object.keys(e);try{for(var w=Pe(b),E=w.next();!E.done;E=w.next()){var C=E.value;try{var D=e[C];typeof D?.enabled=="boolean"&&(D.enabled?(delete D.enabled,Object.keys(D).length===0&&(e[C]=!0)):e[C]=!1),T1(D)}catch{}}}catch(B){n={error:B}}finally{try{E&&!E.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{if(!((g=(p=(h=e.autocapture)===null||h===void 0?void 0:h.networkTracking)===null||p===void 0?void 0:p.captureRules)===null||g===void 0)&&g.length)try{for(var _=Pe(e.autocapture.networkTracking.captureRules),A=_.next();!A.done;A=_.next()){var N=A.value;try{for(var M=(u=void 0,Pe(["responseHeaders","requestHeaders"])),O=M.next();!O.done;O=M.next()){var I=O.value,S=(y=N[I])!==null&&y!==void 0?y:{},U=S.captureSafeHeaders,F=S.allowlist;if(!(!U&&!F)){if(F!==void 0&&!Array.isArray(F)){delete N[I];continue}N[I]=et(et([],_e(U?Gu:[]),!1),_e(F??[]),!1)}}}catch(B){u={error:B}}finally{try{O&&!O.done&&(c=M.return)&&c.call(M)}finally{if(u)throw u.error}}}}catch(B){o={error:B}}finally{try{A&&!A.done&&(l=_.return)&&l.call(_)}finally{if(o)throw o.error}}}catch{}var L=(v=e.autocapture)===null||v===void 0?void 0:v.frustrationInteractions;L&&(L.rageClick&&(L.rageClicks=L.rageClick,delete L.rageClick),L.deadClick&&(L.deadClicks=L.deadClick,delete L.deadClick))}}function C0(e,n,r){var o,l,u=[];try{for(var c=Pe(n??[]),h=c.next();!h.done;h=c.next()){var p=h.value;try{u.push(new RegExp(p))}catch(g){r.loggerProvider.warn("Invalid regex pattern: ".concat(p),g)}}}catch(g){o={error:g}}finally{try{h&&!h.done&&(l=c.return)&&l.call(c)}finally{if(o)throw o.error}}return e.concat(u)}function sk(e,n){var r,o,l,u,c,h,p;if(e){T1(e);try{n.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var g=e;if(g&&"autocapture"in g){if(typeof g.autocapture=="boolean"&&(n.autocapture=g.autocapture),typeof g.autocapture=="object"&&g.autocapture!==null){var y=me({},g.autocapture);if(n.autocapture===void 0&&(n.autocapture=g.autocapture),typeof g.autocapture.elementInteractions=="object"&&g.autocapture.elementInteractions!==null&&(!((l=g.autocapture.elementInteractions.pageUrlAllowlistRegex)===null||l===void 0)&&l.length)){y.elementInteractions=me({},g.autocapture.elementInteractions);var v=y.elementInteractions,b=(u=v.pageUrlAllowlist)!==null&&u!==void 0?u:[],w=g.autocapture.elementInteractions.pageUrlAllowlistRegex;v.pageUrlAllowlist=C0(b,w,n),delete v.pageUrlAllowlistRegex}if(typeof g.autocapture.networkTracking=="object"&&g.autocapture.networkTracking!==null&&(!((c=g.autocapture.networkTracking.captureRules)===null||c===void 0)&&c.length)){y.networkTracking=me({},g.autocapture.networkTracking);var E=y.networkTracking,C=(h=E.captureRules)!==null&&h!==void 0?h:[];try{for(var D=Pe(C),_=D.next();!_.done;_=D.next()){var A=_.value;A.urls=C0((p=A.urls)!==null&&p!==void 0?p:[],A.urlsRegex,n),delete A.urlsRegex}}catch(N){r={error:N}}finally{try{_&&!_.done&&(o=D.return)&&o.call(D)}finally{if(r)throw r.error}}}typeof n.autocapture=="boolean"&&(n.autocapture=me({attribution:n.autocapture,fileDownloads:n.autocapture,formInteractions:n.autocapture,pageViews:n.autocapture,sessions:n.autocapture,elementInteractions:n.autocapture,webVitals:n.autocapture,frustrationInteractions:n.autocapture},y)),typeof n.autocapture=="object"&&(n.autocapture=me(me({},n.autocapture),y))}n.defaultTracking=n.autocapture}n.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(n))}catch(N){n.loggerProvider.error("Failed to apply remote configuration because of error: ",N)}}}var D1="1.19.0",lk="@amplitude/plugin-autocapture-browser",uk="@amplitude/plugin-frustration-browser",C1="[Amplitude] Element Clicked",ck="[Amplitude] Dead Click",dk="[Amplitude] Rage Click",fk="[Amplitude] Error Click",hk="[Amplitude] Element Changed",mk="[Amplitude] Element ID",pk="[Amplitude] Element Class",k0="[Amplitude] Element Tag",N0="[Amplitude] Element Text",vk="[Amplitude] Element Hierarchy",gk="[Amplitude] Element Href",yk="[Amplitude] Element Position Left",bk="[Amplitude] Element Position Top",xk="[Amplitude] Element Aria Label",wk="[Amplitude] Element Attributes",Sk="[Amplitude] Element Parent Label",A0="[Amplitude] Page URL",Ek="[Amplitude] Page Title",_k="[Amplitude] Viewport Height",Tk="[Amplitude] Viewport Width",Pu="https://app.amplitude.com",Dk="https://app.eu.amplitude.com",Ck="https://apps.stag2.amplitude.com",kk={US:Pu,EU:Dk,STAGING:Ck},Nk="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",Ak="amp-visual-tagging-selector-highlight",k1="data-amp-mask-attributes",Rk=25,N1=128,jk=["input","select","textarea"],A1=function(e,n){var r,o=(r=window?.getComputedStyle)===null||r===void 0?void 0:r.call(window,e);return o?.getPropertyValue("cursor")==="pointer"&&n==="click"},No=function(e,n,r){return r===void 0&&(r=!1),function(o,l){var u,c,h=e.pageUrlAllowlist,p=e.pageUrlExcludelist,g=e.shouldTrackEventResolver,y=(c=(u=l?.tagName)===null||u===void 0?void 0:u.toLowerCase)===null||c===void 0?void 0:c.call(u);if(!y)return!1;if(g)return g(o,l);if(!mh(window.location.href,h)||p&&p.length>0&&mh(window.location.href,p))return!1;var v=String(l?.getAttribute("type"))||"";if(typeof v=="string")switch(v.toLowerCase()){case"hidden":return!1;case"password":return!1}var b=A1(l,o);if(r&&b)return!0;if(n){var w=n.some(function(E){var C;return!!(!((C=l?.matches)===null||C===void 0)&&C.call(l,E))});if(!w)return!1}switch(y){case"input":case"select":case"textarea":return o==="change"||o==="click";default:return b?!0:o==="click"}}},Mk=function(e){var n,r,o,l=(r=(n=e?.tagName)===null||n===void 0?void 0:n.toLowerCase)===null||r===void 0?void 0:r.call(n),u=e instanceof HTMLElement?((o=e.getAttribute("contenteditable"))===null||o===void 0?void 0:o.toLowerCase())==="true":!1;return!jk.includes(l)&&!u},Ok=function(e){return e?e.split(",").map(function(n){return n.trim()}).filter(function(n){return n.length>0&&n!=="id"&&n!=="class"}):[]},Lk=function(e,n){return Object.entries(e).reduce(function(r,o){var l=_e(o,2),u=l[0],c=l[1];if(u.startsWith(n)){var h=u.replace(n,"");h&&(r[h]=c||"")}return r},{})},Ik=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},R0=function(e){return Object.keys(e).reduce(function(n,r){var o=e[r];return Ik(o)||(n[r]=o),n},{})},rm=function(e,n){return e?n.some(function(r){var o;return(o=e?.matches)===null||o===void 0?void 0:o.call(e,r)})?e:rm(e?.parentElement,n):null},zk=function(e){return new Promise(function(n,r){var o;try{var l=document.createElement("script");l.type="text/javascript",l.async=!0,l.src=e,l.addEventListener("load",function(){n({status:!0})},{once:!0}),l.addEventListener("error",function(){r({status:!1,message:"Failed to load the script ".concat(e)})}),(o=document.head)===null||o===void 0||o.appendChild(l)}catch(u){r(u)}})};function Fk(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var il=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function Uk(e){return e.type==="click"||e.type==="change"}var Ju;(function(e){e[e.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",e[e.MIDDLE=1]="MIDDLE",e[e.RIGHT=2]="RIGHT"})(Ju||(Ju={}));var qk=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",k1,Ys]),Bk=["type"],Pk=["svg","path","g"],Hk=["password","hidden"];function $k(e,n){var r,o,l,u,c,h;if(e===null)return null;var p=String(e.tagName).toLowerCase(),g={tag:p},y=Array.from((u=(l=e.parentElement)===null||l===void 0?void 0:l.children)!==null&&u!==void 0?u:[]);y.length&&(g.index=y.indexOf(e),g.indexOfType=y.filter(function(O){return O.tagName===e.tagName}).indexOf(e));var v=(h=(c=e.previousElementSibling)===null||c===void 0?void 0:c.tagName)===null||h===void 0?void 0:h.toLowerCase();v&&(g.prevSib=String(v));var b=e.getAttribute("id");b&&(g.id=String(b));var w=Array.from(e.classList);w.length&&(g.classes=w);var E={},C=Array.from(e.attributes),D=C.filter(function(O){return!qk.has(O.name)}),_=!Mk(e);if(!Hk.includes(String(e.getAttribute("type")))&&!Pk.includes(p))try{for(var A=Pe(D),N=A.next();!N.done;N=A.next()){var M=N.value;if(!(_&&!Bk.includes(M.name))){if(n.has(M.name)){E[M.name]=Yr;continue}E[M.name]=String(M.value).substring(0,N1)}}}catch(O){r={error:O}}finally{try{N&&!N.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}return Object.keys(E).length&&(g.attrs=E),g}function Qk(e){var n=[];if(!e)return n;n.push(e);for(var r=e.parentElement;r&&r.tagName!=="HTML";)n.push(r),r=r.parentElement;return n}var Vk=function(e,n){try{if(e.sourceType==="DOM_ELEMENT"){var r=document.documentElement;return e.scope&&n&&(r=n.closest(e.scope)),r&&e.selector?r.querySelector(e.selector):r}}catch{return}},Gk=function(e,n,r){e.forEach(function(o){if(typeof o!="string"&&o.actionType==="ATTACH_EVENT_PROPERTY"){var l=r.extractDataFromDataSource(o.dataSource,n.closestTrackedAncestor);n.targetElementProperties[o.destinationKey]=l}})},im=(function(){function e(n,r){var o,l,u=this,c;this.replaceSensitiveString=function(b){return Wh(b,u.additionalMaskTextPatterns)},this.getHierarchy=function(b){var w,E,C,D,_=performance.now(),A=[];if(!b)return[];for(var N=Qk(b),M=new Map,O=N.length-1;O>=0;O--){var I=N[O];if(I){var S=Ok(I.getAttribute(k1)),U=O===N.length-1?[]:(C=M.get(N[O+1]))!==null&&C!==void 0?C:new Set,F=new Set(et(et([],_e(U),!1),_e(S),!1));M.set(I,F)}}A=N.map(function(ce){var j;return $k(ce,(j=M.get(ce))!==null&&j!==void 0?j:new Set)});var L=function(ce){ce?.attrs&&Object.entries(ce.attrs).forEach(function(j){var Y=_e(j,2),le=Y[0],de=Y[1];ce.attrs&&(ce.attrs[le]=u.replaceSensitiveString(de))})};try{for(var B=Pe(A),K=B.next();!K.done;K=B.next()){var se=K.value;L(se)}}catch(ce){w={error:ce}}finally{try{K&&!K.done&&(E=B.return)&&E.call(B)}finally{if(w)throw w.error}}var ae=performance.now();return(D=u.diagnosticsClient)===null||D===void 0||D.recordHistogram("autocapturePlugin.getHierarchy",ae-_),A},this.getNearestLabel=function(b){var w=b.parentElement;if(!w)return"";var E;try{E=w.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{E=null}return E?u.getText(E):u.getNearestLabel(w)},this.getEventProperties=function(b,w,E){var C,D,_,A,N=(_=(D=w?.tagName)===null||D===void 0?void 0:D.toLowerCase)===null||_===void 0?void 0:_.call(D),M=typeof w.getBoundingClientRect=="function"?w.getBoundingClientRect():{left:null,top:null},O=u.getHierarchy(w),I=(A=O[0])===null||A===void 0?void 0:A.attrs,S=u.getNearestLabel(w),U=Lk(I??{},E),F=(C={},C[vk]=O,C[k0]=N,C[N0]=u.getText(w),C[yk]=M.left==null?null:Math.round(M.left),C[bk]=M.top==null?null:Math.round(M.top),C[wk]=U,C[Sk]=S,C[A0]=Gr(window.location.href.split("?")[0]),C[Ek]=Xh(u.replaceSensitiveString),C[_k]=window.innerHeight,C[Tk]=window.innerWidth,C);if(F[mk]=w.getAttribute("id")||"",F[pk]=w.getAttribute("class"),F[xk]=I?.["aria-label"],N==="a"&&b==="click"&&w instanceof HTMLAnchorElement){var L=w.href.substring(0,N1);F[gk]=u.replaceSensitiveString(L)}return R0(F)},this.addTypeAndTimestamp=function(b,w){return{event:b,timestamp:Date.now(),type:w}},this.addAdditionalEventProperties=function(b,w,E,C,D){D===void 0&&(D=!1);var _=u.addTypeAndTimestamp(b,w);if(Uk(_)&&_.event.target!==null){if(D){var A=A1(_.event.target,_.type);if(A)return _.closestTrackedAncestor=_.event.target,_.targetElementProperties=u.getEventProperties(_.type,_.closestTrackedAncestor,C),_}var N=rm(_.event.target,E);return N&&(_.closestTrackedAncestor=N,_.targetElementProperties=u.getEventProperties(_.type,N,C)),_}return _},this.extractDataFromDataSource=function(b,w){if(b.sourceType==="DOM_ELEMENT"){var E=Vk(b,w);return E?b.elementExtractType==="TEXT"?u.getText(E):b.elementExtractType==="ATTRIBUTE"&&b.attribute?E.getAttribute(b.attribute):void 0:void 0}},this.getText=function(b){var w=b.closest("[".concat(Ys,"]"))!==null;if(w)return Yr;var E="";if(!b.querySelector("[".concat(Ys,"], [contenteditable]")))E=b.innerText||"";else{var C=b.cloneNode(!0);C.querySelectorAll("[".concat(Ys,"], [contenteditable]")).forEach(function(D){D.innerText=Yr}),E=C.innerText||""}return u.replaceSensitiveString(E.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(b){var w,E,C;if(!b)return{};var D=(C=(E=b?.tagName)===null||E===void 0?void 0:E.toLowerCase)===null||C===void 0?void 0:C.call(E),_=(w={},w[k0]=D,w[N0]=u.getText(b),w[A0]=window.location.href.split("?")[0],w);return R0(_)},this.diagnosticsClient=r?.diagnosticsClient;var h=(c=n.maskTextRegex)!==null&&c!==void 0?c:[],p=[];try{for(var g=Pe(h),y=g.next();!y.done;y=g.next()){var v=y.value;if(p.length>=Rk)break;if(v instanceof RegExp)p.push(v);else if("pattern"in v&&typeof v.pattern=="string")try{p.push(new RegExp(v.pattern,"i"))}catch{}}}catch(b){o={error:b}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}this.additionalMaskTextPatterns=p}return e})(),Yk=(function(){function e(n){var r=n===void 0?{}:n,o=r.origin,l=o===void 0?Pu:o,u=this;this.endpoint=Pu,this.requestCallbacks={},this.onSelect=function(c){u.notify({action:"element-selected",data:c})},this.onTrack=function(c,h){c==="selector-mode-changed"?u.notify({action:"track-selector-mode-changed",data:h}):c==="selector-moved"&&u.notify({action:"track-selector-moved",data:h})},this.endpoint=l}return e.prototype.notify=function(n){var r,o,l,u;(o=(r=this.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,"Message sent: ",JSON.stringify(n)),(u=(l=window.opener)===null||l===void 0?void 0:l.postMessage)===null||u===void 0||u.call(l,n,this.endpoint)},e.prototype.sendRequest=function(n,r,o){var l=this;o===void 0&&(o={timeout:15e3});var u=Fk(),c={id:u,action:n,args:r},h=new Promise(function(p,g){l.requestCallbacks[u]={resolve:p,reject:g},l.notify(c),o?.timeout>0&&setTimeout(function(){g(new Error("".concat(n," timed out (id: ").concat(u,")"))),delete l.requestCallbacks[u]},o.timeout)});return h},e.prototype.handleResponse=function(n){var r;if(!this.requestCallbacks[n.id]){(r=this.logger)===null||r===void 0||r.warn("No callback found for request id: ".concat(n.id));return}this.requestCallbacks[n.id].resolve(n.responseData),delete this.requestCallbacks[n.id]},e.prototype.setup=function(n){var r=this,o=n===void 0?{dataExtractor:new im({})}:n,l=o.logger,u=o.endpoint,c=o.isElementSelectable,h=o.cssSelectorAllowlist,p=o.actionClickAllowlist,g=o.dataExtractor;this.logger=l,u&&this.endpoint===Pu&&(this.endpoint=u);var y=null;window.addEventListener("message",function(v){var b,w,E,C,D;if((w=(b=r.logger)===null||b===void 0?void 0:b.debug)===null||w===void 0||w.call(b,"Message received: ",JSON.stringify(v)),r.endpoint===v.origin){var _=v?.data,A=_?.action;if(A)if("id"in _)(C=(E=r.logger)===null||E===void 0?void 0:E.debug)===null||C===void 0||C.call(E,"Received Response to previous request: ",JSON.stringify(v)),r.handleResponse(_);else if(A==="ping")r.notify({action:"pong"});else if(A==="initialize-visual-tagging-selector"){var N=_?.data;zk(Nk).then(function(){var M;y=(M=window?.amplitudeVisualTaggingSelector)===null||M===void 0?void 0:M.call(window,{getEventTagProps:g.getEventTagProps,isElementSelectable:function(O){return c?c(N?.actionType||"click",O):!0},onTrack:r.onTrack,onSelect:r.onSelect,visualHighlightClass:Ak,messenger:r,cssSelectorAllowlist:h,actionClickAllowlist:p,extractDataFromDataSource:g.extractDataFromDataSource,dataExtractor:g,diagnostics:{autocapture:{version:D1}}}),r.notify({action:"selector-loaded"})}).catch(function(){var M;(M=r.logger)===null||M===void 0||M.warn("Failed to initialize visual tagging selector")})}else A==="close-visual-tagging-selector"&&((D=y?.close)===null||D===void 0||D.call(y))}}),this.notify({action:"page-loaded"})},e})();function Kk(e){var n=e.amplitude,r=e.allObservables,o=e.shouldTrackEvent,l=e.evaluateTriggers,u=r.clickObservable,c=u.filter(il).filter(function(p){return o("click",p.closestTrackedAncestor)}).map(function(p){return l(p)}),h=c;return h.subscribe(function(p){n?.track(C1,p.targetElementProperties)})}function Wk(e){var n=e.amplitude,r=e.allObservables,o=e.getEventProperties,l=e.shouldTrackEvent,u=e.evaluateTriggers,c=r.changeObservable,h=c.filter(il).filter(function(p){return l("change",p.closestTrackedAncestor)}).map(function(p){return u(p)});return h.subscribe(function(p){n?.track(hk,o("change",p.closestTrackedAncestor))})}function Xk(e){var n=e.amplitude,r=e.allObservables,o=e.options,l=e.getEventProperties,u=e.shouldTrackEvent,c=e.shouldTrackActionClick,h=r.clickObservable,p=r.mutationObservable,g=r.navigateObservable,y=h.filter(function(D){return!u("click",D.closestTrackedAncestor)}).map(function(D){var _=rm(D.event.target,o.actionClickAllowlist);return D.closestTrackedAncestor=_,D.closestTrackedAncestor!==null&&(D.targetElementProperties=l(D.type,D.closestTrackedAncestor)),D}).filter(il).filter(function(D){return c("click",D.closestTrackedAncestor)}),v=g?Ei(p,g):p,b=Ei(y,v),w=null,E=null,C=nm(b,function(D){if(w&&(clearTimeout(w),w=null),D.type==="click")return E=D,w=setTimeout(function(){w=null,E=null},500),Promise.resolve(null);if(E){var _=E;return E=null,Promise.resolve(_)}return Promise.resolve(null)});return C.subscribe(function(D){D&&n?.track(C1,l("click",D.closestTrackedAncestor))})}var Oo=ft(),R1=function(){return new un(function(e){var n=new MutationObserver(function(r){e.next(r)});return document.body&&n.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return n.disconnect()}})},j1=function(e){return e===void 0&&(e="click"),new un(function(n){var r=function(o){n.next(o)};return Oo.document.addEventListener(e,r,{capture:!0}),function(){Oo.document.removeEventListener(e,r,{capture:!0})}})},Zk=function(){return new un(function(e){var n=function(r){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];var u=void 0;Array.isArray(o[0])&&typeof o[0][0]=="string"&&(u=o[0][0]),e.next({kind:"console",message:u})};return m0.addListener("error",n),function(){m0.removeListener(n)}})},Jk=function(){return new un(function(e){var n=function(r){var o={kind:"error"};r.error instanceof Error?o=me(me({},o),{message:r.error.message,stack:r.error.stack,filename:r.filename,lineNumber:r.lineno,columnNumber:r.colno}):typeof r.error=="string"&&(o.message=r.error),e.next(o)};return Oo.addEventListener("error",n),function(){Oo.removeEventListener("error",n)}})},e4=function(){return new un(function(e){var n=function(r){var o={kind:"unhandledrejection"};r.reason instanceof Error?(o.message=r.reason.message,o.stack=r.reason.stack):typeof r.reason=="string"&&(o.message=r.reason),e.next(o)};return Oo.addEventListener("unhandledrejection",n),function(){Oo.removeEventListener("unhandledrejection",n)}})},t4=function(){var e=Ei(Jk(),e4());return Ei(e,Zk())},n4=function(e,n){try{if(n.subprop_key==="[Amplitude] Element Text")return n.subprop_op==="is"&&n.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if(n.subprop_key==="[Amplitude] Element Hierarchy")return n.subprop_op==="autotrack css match"&&!!e.closestTrackedAncestor.closest(n.subprop_value.toString())}catch(r){return console.error("Error matching event to filter",r),!1}return!1},yh={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},j0=function(e){var n,r,o,l,u=Object.values(yh).reduce(function(w,E){return w[E]=new Set,w},{});if(!e)return u;try{for(var c=Pe(e),h=c.next();!h.done;h=c.next()){var p=h.value;try{try{for(var g=(o=void 0,Pe(p.definition)),y=g.next();!y.done;y=g.next()){var v=y.value,b=yh[v.event_type];b&&u[b].add(p.id)}}catch(w){o={error:w}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}}catch(w){console.warn("Skipping Labeled Event due to malformed definition",p?.id,w)}}}catch(w){n={error:w}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return u},M0=function(e){var n,r,o,l,u=new Map;try{for(var c=Pe(e),h=c.next();!h.done;h=c.next()){var p=h.value;try{for(var g=(o=void 0,Pe(p.conditions)),y=g.next();!y.done;y=g.next()){var v=y.value;if(v.type==="LABELED_EVENT"){var b=v.match.eventId,w=u.get(b);w||(w=[],u.set(b,w)),w.push(p)}}}catch(E){o={error:E}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}}}catch(E){n={error:E}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return u},a4=function(e,n){return n.filter(function(r){return r.definition.some(function(o){return yh[o.event_type]===e.type&&o.filters.every(function(l){return n4(e,l)})})})},r4=function(e,n){var r,o,l,u,c=new Set;try{for(var h=Pe(e),p=h.next();!p.done;p=h.next()){var g=p.value,y=n.get(g.id);if(y)try{for(var v=(l=void 0,Pe(y)),b=v.next();!b.done;b=v.next()){var w=b.value;c.add(w)}}catch(E){l={error:E}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(l)throw l.error}}}}catch(E){r={error:E}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}return Array.from(c)},i4=(function(){function e(n,r,o,l){this.groupedLabeledEvents=n,this.labeledEventToTriggerMap=r,this.dataExtractor=o,this.options=l}return e.prototype.evaluate=function(n){var r,o,l=this.options.pageActions;if(!l)return n;var u=a4(n,Array.from(this.groupedLabeledEvents[n.type]).map(function(y){return l.labeledEvents[y]})),c=r4(u,this.labeledEventToTriggerMap);try{for(var h=Pe(c),p=h.next();!p.done;p=h.next()){var g=p.value;Gk(g.actions,n,this.dataExtractor)}}catch(y){r={error:y}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}return n},e.prototype.update=function(n,r,o){this.groupedLabeledEvents=n,this.labeledEventToTriggerMap=r,this.options=o},e})(),o4=function(e,n,r,o){return new i4(e,n,r,o)},ga;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable"})(ga||(ga={}));var s4=function(e,n){var r,o,l,u,c,h,p,g;e===void 0&&(e={}),n?.diagnosticsClient.setTag("plugin.autocapture.version",D1);var y=e.dataAttributePrefix,v=y===void 0?i1:y,b=e.visualTaggingOptions,w=b===void 0?{enabled:!0,messenger:new Yk}:b;e.cssSelectorAllowlist=(r=e.cssSelectorAllowlist)!==null&&r!==void 0?r:GD,e.actionClickAllowlist=(o=e.actionClickAllowlist)!==null&&o!==void 0?o:YD,e.debounceTime=(l=e.debounceTime)!==null&&l!==void 0?l:0,e.pageUrlExcludelist=(u=e.pageUrlExcludelist)===null||u===void 0?void 0:u.reduce(function(L,B){if(typeof B=="string"&&L.push(B),B instanceof RegExp&&L.push(B),typeof B=="object"&&B!==null&&"pattern"in B)try{L.push(new RegExp(B.pattern))}catch(K){return console.warn("Invalid regex pattern: ".concat(B.pattern),K),L}return L},[]);var E=lk,C="enrichment",D=[],_=new im(e,n),A=function(){var L,B=fr(j1().map(function(ce){return _.addAdditionalEventProperties(ce,"click",e.cssSelectorAllowlist,v)})),K=fr(new un(function(ce){var j,Y=function(le){var de=_.addAdditionalEventProperties(le,"change",e.cssSelectorAllowlist,v);ce.next(de)};return(j=ft())===null||j===void 0||j.document.addEventListener("change",Y,{capture:!0}),function(){var le;return(le=ft())===null||le===void 0?void 0:le.document.removeEventListener("change",Y)}})),se;window.navigation&&(se=fr(new un(function(ce){var j=function(Y){var le=_.addAdditionalEventProperties(Y,"navigate",e.cssSelectorAllowlist,v);ce.next(le)};return window.navigation.addEventListener("navigate",j),function(){window.navigation.removeEventListener("navigate",j)}})));var ae=fr(R1().map(function(ce){return _.addAdditionalEventProperties(ce,"mutation",e.cssSelectorAllowlist,v)}));return L={},L[ga.ChangeObservable]=K,L[ga.ClickObservable]=B,L[ga.MutationObservable]=ae,L[ga.NavigateObservable]=se,L},N=j0(Object.values((h=(c=e.pageActions)===null||c===void 0?void 0:c.labeledEvents)!==null&&h!==void 0?h:{})),M=M0((g=(p=e.pageActions)===null||p===void 0?void 0:p.triggers)!==null&&g!==void 0?g:[]),O=o4(N,M,_,e),I=function(L){var B,K;L&&(e.pageActions=me(me({},e.pageActions),L),N=j0(Object.values((B=e.pageActions.labeledEvents)!==null&&B!==void 0?B:{})),M=M0((K=e.pageActions.triggers)!==null&&K!==void 0?K:[]),O.update(N,M,e))},S=function(L,B){return oe(void 0,void 0,void 0,function(){var K,se,ae,ce,j,Y,le,de,fe,pe;return ie(this,function(G){return typeof document>"u"?[2]:(L.fetchRemoteConfig&&(L.remoteConfigClient?L.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",function(X){I(X)}):L.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),K=No(e,e.cssSelectorAllowlist),se=No(e,e.actionClickAllowlist),ae=A(),ce=Kk({allObservables:ae,amplitude:B,shouldTrackEvent:K,evaluateTriggers:O.evaluate.bind(O)}),D.push(ce),j=Wk({allObservables:ae,getEventProperties:function(){for(var X=[],ue=0;ue<arguments.length;ue++)X[ue]=arguments[ue];return _.getEventProperties.apply(_,et(et([],_e(X),!1),[v],!1))},amplitude:B,shouldTrackEvent:K,evaluateTriggers:O.evaluate.bind(O)}),D.push(j),Y=Xk({allObservables:ae,options:e,getEventProperties:function(){for(var X=[],ue=0;ue<arguments.length;ue++)X[ue]=arguments[ue];return _.getEventProperties.apply(_,et(et([],_e(X),!1),[v],!1))},amplitude:B,shouldTrackEvent:K,shouldTrackActionClick:se}),Y&&D.push(Y),(fe=L?.loggerProvider)===null||fe===void 0||fe.log("".concat(E," has been successfully added.")),window.opener&&w.enabled&&(le=e.cssSelectorAllowlist,de=e.actionClickAllowlist,(pe=w.messenger)===null||pe===void 0||pe.setup(me(me({dataExtractor:_,logger:L?.loggerProvider},L?.serverZone&&{endpoint:kk[L.serverZone]}),{isElementSelectable:No(e,et(et([],_e(le),!1),_e(de),!1)),cssSelectorAllowlist:le,actionClickAllowlist:de}))),[2])})})},U=function(L){return oe(void 0,void 0,void 0,function(){return ie(this,function(B){return[2,L]})})},F=function(){return oe(void 0,void 0,void 0,function(){var L,B,K,se,ae;return ie(this,function(ce){try{for(L=Pe(D),B=L.next();!B.done;B=L.next())K=B.value,K.unsubscribe()}catch(j){se={error:j}}finally{try{B&&!B.done&&(ae=L.return)&&ae.call(L)}finally{if(se)throw se.error}}return[2]})})};return{name:E,type:C,setup:S,execute:U,teardown:F}},l4=3e3,u4=["mutation","navigate"];function c4(e){var n=e.amplitude,r=e.allObservables,o=e.getEventProperties,l=e.shouldTrackDeadClick,u=r.clickObservable,c=r.mutationObservable,h=r.navigateObservable,p=u.filter(function(w){return il(w)&&l("click",w.closestTrackedAncestor)&&w.event.target instanceof Element&&w.event.target.closest('a[target="_blank"]')===null&&w.event.button===Ju.LEFT_OR_TOUCH_CONTACT}),g=h?Ei(c,h):c,y=Ei(p,g),v=null,b=nm(y,function(w){return v&&u4.includes(w.type)?(clearTimeout(v),v=null,Promise.resolve(null)):w.type==="click"?v?Promise.resolve(null):new Promise(function(E){v=setTimeout(function(){E(w),v=null},l4)}):Promise.resolve(null)});return b.subscribe(function(w){if(w){var E={"[Amplitude] X":w.event.clientX,"[Amplitude] Y":w.event.clientY};n.track(ck,me(me({},o("click",w.closestTrackedAncestor)),E),{time:w.timestamp})}})}var M1=eC,O1=JD,O0=tC;function L0(e,n){var r,o,l,u,c=n.event,h=c.pageX,p=c.pageY;e.yMin=Math.min((r=e.yMin)!==null&&r!==void 0?r:p,p),e.yMax=Math.max((o=e.yMax)!==null&&o!==void 0?o:p,p),e.xMin=Math.min((l=e.xMin)!==null&&l!==void 0?l:h,h),e.xMax=Math.max((u=e.xMax)!==null&&u!==void 0?u:h,h),e.isOutOfBounds=e.yMax-e.yMin>O0||e.xMax-e.xMin>O0}function I0(e){if(e.length===0)return null;var n=e[0],r=e[e.length-1],o=me({"[Amplitude] Begin Time":new Date(n.timestamp).toISOString(),"[Amplitude] End Time":new Date(r.timestamp).toISOString(),"[Amplitude] Duration":r.timestamp-n.timestamp,"[Amplitude] Clicks":e.map(function(l){return{X:l.event.pageX,Y:l.event.pageY,Time:l.timestamp}}),"[Amplitude] Click Count":e.length},n.targetElementProperties);return{rageClickEvent:o,time:n.timestamp}}function d4(e,n){var r=Math.max(0,e.length-M1+1),o=e[r];return n.timestamp-o.timestamp>=O1}function f4(e,n){return e.length>0&&e[e.length-1].closestTrackedAncestor!==n.closestTrackedAncestor}function h4(e){var n=this,r=e.amplitude,o=e.allObservables,l=e.shouldTrackRageClick,u=o.clickObservable,c=o.selectionObservable,h=[],p={},g=null;function y(E){h=[],p={},E&&(L0(p,E),h.push(E))}var v=nm(u.filter(function(E){return l("click",E.closestTrackedAncestor)}),function(E){return oe(n,void 0,void 0,function(){var C;return ie(this,function(D){return L0(p,E),C=null,h.length===0||f4(h,E)||d4(h,E)||p.isOutOfBounds?(g&&(C=I0(h)),y(E)):h.push(E),g&&(clearTimeout(g.timerId),g.resolve(C),g=null),h.length>=M1?[2,new Promise(function(_){g={resolve:_,timerId:setTimeout(function(){_(I0(h))},O1)}})]:[2,null]})})}),b=c?.subscribe(function(){y()}),w=v.subscribe(function(E){E!==null&&r.track(dk,E.rageClickEvent,{time:E.time})});return{unsubscribe:function(){w.unsubscribe(),b?.unsubscribe()}}}var m4=2e3;function p4(e){var n=e.amplitude,r=e.allObservables,o=e.shouldTrackErrorClick,l=r.clickObservable,u=r.browserErrorObservable,c=l.filter(function(y){return il(y)&&o("click",y.closestTrackedAncestor)&&y.event.target instanceof Element&&y.event.target.closest('a[target="_blank"]')===null&&y.event.button===Ju.LEFT_OR_TOUCH_CONTACT}),h=null,p=null,g=function(){h!==null&&(clearTimeout(h),h=null),p=null};return Ei(c,u).subscribe(function(y){var v;if(y.type==="click"){g(),p=y,h=setTimeout(g,m4);return}y.type==="error"&&p&&(n.track(fk,me((v={},v["[Amplitude] Kind"]=y.event.kind,v["[Amplitude] Message"]=y.event.message,v["[Amplitude] Stack"]=y.event.stack,v["[Amplitude] Filename"]=y.event.filename,v["[Amplitude] Line Number"]=y.event.lineNumber,v["[Amplitude] Column Number"]=y.event.columnNumber,v),p.targetElementProperties)),g())})}function Qf(e,n,r,o){if(!o)return[];var l=e[n];return typeof l=="object"&&l!==null&&"cssSelectorAllowlist"in l&&Array.isArray(l.cssSelectorAllowlist)?l.cssSelectorAllowlist:r}var v4=function(e){var n;e===void 0&&(e={});var r=uk,o="enrichment",l=[],u=e.errorClicks!==!1;e.errorClicks||(u=!1);var c=e.deadClicks!==!1&&e.deadClicks!==null,h=e.rageClicks!==!1&&e.rageClicks!==null,p=Qf(e,"rageClicks",ZD,h),g=Qf(e,"deadClicks",WD,c),y=Qf(e,"errorClicks",XD,u),v=(n=e.dataAttributePrefix)!==null&&n!==void 0?n:i1,b=new im(e),w=et([],_e(new Set(et(et(et([],_e(p),!1),_e(g),!1),_e(y),!1))),!1),E=function(){var A,N=fr(j1("pointerdown").map(function(F){return b.addAdditionalEventProperties(F,"click",w,v,!0)})),M=fr(t4().map(function(F){return b.addTypeAndTimestamp(F,"error")})),O=fr(R1().map(function(F){return b.addAdditionalEventProperties(F,"mutation",w,v)})),I;if(window.navigation){var S=new un(function(F){var L=function(B){F.next(me(me({},B),{type:"navigate"}))};return window.navigation.addEventListener("navigate",L),function(){window.navigation.removeEventListener("navigate",L)}});I=fr(S.map(function(F){return b.addAdditionalEventProperties(F,"navigate",w,v)}))}var U=fr(new un(function(F){var L=function(){var B=document.activeElement;if(B&&(B.tagName==="TEXTAREA"||B.tagName==="INPUT")){var K=void 0,se=void 0;try{if(K=B.selectionStart,se=B.selectionEnd,K===se)return}catch{return}return F.next()}var ae=window.getSelection();if(!(!ae||ae.isCollapsed))return F.next()};return window.document.addEventListener("selectionchange",L),function(){window.document.removeEventListener("selectionchange",L)}}));return A={},A[ga.ClickObservable]=N,A[ga.MutationObservable]=O,A[ga.NavigateObservable]=I,A[ga.BrowserErrorObservable]=M,A[ga.SelectionObservable]=U,A},C=function(A,N){return oe(void 0,void 0,void 0,function(){var M,O,I,S,U,F,L,B;return ie(this,function(K){return typeof document>"u"?[2]:(M=E(),h&&(O=No(e,p),I=h4({allObservables:M,amplitude:N,shouldTrackRageClick:O}),l.push(I)),c&&(S=No(e,g),U=c4({amplitude:N,allObservables:M,getEventProperties:function(se,ae){return b.getEventProperties(se,ae,v)},shouldTrackDeadClick:S}),l.push(U)),u&&(F=No(e,y),L=p4({amplitude:N,allObservables:M,shouldTrackErrorClick:F}),l.push(L)),(B=A?.loggerProvider)===null||B===void 0||B.log("".concat(r," has been successfully added.")),[2])})})},D=function(A){return oe(void 0,void 0,void 0,function(){return ie(this,function(N){return[2,A]})})},_=function(){return oe(void 0,void 0,void 0,function(){var A,N,M,O,I;return ie(this,function(S){try{for(A=Pe(l),N=A.next();!N.done;N=A.next())M=N.value,M.unsubscribe()}catch(U){O={error:U}}finally{try{N&&!N.done&&(I=A.return)&&I.call(A)}finally{if(O)throw O.error}}return[2]})})};return{name:r,type:o,setup:C,execute:D,teardown:_}},g4="@amplitude/plugin-network-capture-browser",L1="[Amplitude] Network Request",I1="500-599";function Hu(e,n){var r=n.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&"),o="^"+r.replace(/\*/g,".*")+"$",l=new RegExp(o);return l.test(e)}function z1(e,n){var r,o,l=n.split(",");try{for(var u=Pe(l),c=u.next();!c.done;c=u.next()){var h=c.value,p=_e(h.split("-").map(Number),2),g=p[0],y=p[1];if(e===g&&y===void 0||e>=g&&e<=y)return!0}}catch(v){r={error:v}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return!1}function y4(e,n,r,o,l){if(!(e.hosts&&!e.hosts.find(function(c){return Hu(n,c)}))&&!(o&&e.urls&&!mh(o,e.urls))&&!(l&&e.methods&&!e.methods.find(function(c){return l.toLowerCase()===c.toLowerCase()||c==="*"}))){if(r||r===0){var u=e.statusCodeRange||I1;if(!z1(r,u))return!1}return!0}}function F1(e){var n;if(e)try{var r=(n=ft())===null||n===void 0?void 0:n.location.href,o=new URL(e,r),l=o.searchParams.toString(),u=o.hash.replace("#",""),c=o.href,h=o.host;o.hash="",o.search="";var p=o.href;return{query:l,fragment:u,href:c,hrefWithoutQueryOrHash:p,host:h}}catch{return}}function b4(e,n){if(e.includes("amplitude.com"))try{var r=n.body;if(typeof r!="string")return!1;var o=JSON.parse(r),l=o.events;if(l.find(function(u){return u.event_type===L1}))return!0}catch{}return!1}function z0(e){if(typeof e!="object"||e===null){if(e)return et([],_e(Gu),!1);if(e===void 0){var n=void 0;return n}return}if(e.length!==0)return e}function F0(e){var n,r;return!(!((n=e?.allowlist)===null||n===void 0)&&n.length)&&!(!((r=e?.blocklist)===null||r===void 0)&&r.length)}function x4(e,n){var r;n===void 0&&(n={});var o=F1(e.url);if(!o)return!1;var l=o.host;if(n.ignoreAmplitudeRequests!==!1&&(Hu(l,"*.amplitude.com")||Hu(l,"amplitude.com"))||!((r=n.ignoreHosts)===null||r===void 0)&&r.find(function(c){return Hu(l,c)})||!n.captureRules&&e.status!==void 0&&!z1(e.status,I1))return!1;if(n.captureRules){var u;if(et([],_e(n.captureRules),!1).reverse().find(function(c){if(u=y4(c,l,e.status,e.url,e.method),u){var h=z0(c.responseHeaders);if(e.responseWrapper&&h){var p=e.responseWrapper.headers(h);p&&(e.responseHeaders=p)}var g=z0(c.requestHeaders);if(e.requestWrapper&&g){var y=e.requestWrapper.headers(g);y&&(e.requestHeaders=y)}e.responseWrapper&&c.responseBody&&!F0(c.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(c.responseBody.allowlist,c.responseBody.blocklist)),e.requestWrapper&&c.requestBody&&!F0(c.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(c.requestBody.allowlist,c.requestBody.blocklist))}return u!==void 0}),!u)return!1}return!(e.requestWrapper&&b4(l,e.requestWrapper))}function w4(e,n,r,o){return oe(this,void 0,void 0,function(){var l,u,c;return ie(this,function(h){switch(h.label){case 0:return n.requestBodyJson||n.responseBodyJson?[4,Promise.all([n.requestBodyJson,n.responseBodyJson])]:[3,2];case 1:if(l=_e.apply(void 0,[h.sent(),2]),u=l[0],c=l[1],u)try{e["[Amplitude] Request Body"]=JSON.stringify(u)}catch(p){o?.debug("Failed to stringify request body",p)}if(c)try{e["[Amplitude] Response Body"]=JSON.stringify(c)}catch{o?.debug("Failed to stringify response body")}h.label=2;case 2:return r?.track(L1,e),[2]}})})}function S4(e){var n=e.allObservables,r=e.networkTrackingOptions,o=e.amplitude,l=e.loggerProvider,u=n.networkObservable,c=u.filter(function(h){return x4(h.event,r)});return c.subscribe(function(h){var p,g,y,v=h.event,b=F1(v.url);if(b){var w=(g=v.responseWrapper)===null||g===void 0?void 0:g.bodySize,E=(y=v.requestWrapper)===null||y===void 0?void 0:y.bodySize,C=(p={},p["[Amplitude] URL"]=b.hrefWithoutQueryOrHash,p["[Amplitude] URL Query"]=b.query,p["[Amplitude] URL Fragment"]=b.fragment,p["[Amplitude] Request Method"]=v.method,p["[Amplitude] Status Code"]=v.status,p["[Amplitude] Start Time"]=v.startTime,p["[Amplitude] Completion Time"]=v.endTime,p["[Amplitude] Duration"]=v.duration,p["[Amplitude] Request Body Size"]=E,p["[Amplitude] Response Body Size"]=w,p["[Amplitude] Request Type"]=v.type,p["[Amplitude] Request Headers"]=v.requestHeaders,p["[Amplitude] Response Headers"]=v.responseHeaders,p);w4(C,v,o,l)}})}var bh;(function(e){e.NetworkObservable="networkObservable"})(bh||(bh={}));var U0,E4=function(e){e===void 0&&(e={});var n=g4,r="enrichment",o,l=function(g,y){var v={event:g,timestamp:Date.now(),type:y};return v},u=function(){var g,y=new un(function(v){var b=new cC(function(w){var E=l(w,"network");v.next(E)});return y0.subscribe(b,o),function(){y0.unsubscribe(b)}});return g={},g[bh.NetworkObservable]=y,g},c=function(g,y){return oe(void 0,void 0,void 0,function(){var v;return ie(this,function(b){return typeof document>"u"?[2]:(v=u(),o=g?.loggerProvider,U0=S4({allObservables:v,networkTrackingOptions:e,amplitude:y,loggerProvider:o}),o?.log("".concat(n," has been successfully added.")),[2])})})},h=function(g){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return[2,g]})})},p=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(g){return U0.unsubscribe(),[2]})})};return{name:n,type:r,setup:c,execute:h,teardown:p}},_4="web-vitals-browser",T4="[Amplitude] Web Vitals";let U1=-1;const Fo=e=>{addEventListener("pageshow",(n=>{n.persisted&&(U1=n.timeStamp,e(n))}),!0)},La=(e,n,r,o)=>{let l,u;return c=>{n.value>=0&&(c||o)&&(u=n.value-(l??0),(u||l===void 0)&&(l=n.value,n.delta=u,n.rating=((h,p)=>h>p[1]?"poor":h>p[0]?"needs-improvement":"good")(n.value,r),e(n)))}},om=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},sm=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ol=()=>sm()?.activationStart??0,Ia=(e,n=-1)=>{const r=sm();let o="navigate";return U1>=0?o="back-forward-cache":r&&(document.prerendering||ol()>0?o="prerender":document.wasDiscarded?o="restore":r.type&&(o=r.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:o}},Vf=new WeakMap;function lm(e,n){return Vf.get(e)||Vf.set(e,new n),Vf.get(e)}class D4{t;i=0;o=[];h(n){if(n.hadRecentInput)return;const r=this.o[0],o=this.o.at(-1);this.i&&r&&o&&n.startTime-o.startTime<1e3&&n.startTime-r.startTime<5e3?(this.i+=n.value,this.o.push(n)):(this.i=n.value,this.o=[n]),this.t?.(n)}}const sl=(e,n,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const o=new PerformanceObserver((l=>{Promise.resolve().then((()=>{n(l.getEntries())}))}));return o.observe({type:e,buffered:!0,...r}),o}}catch{}},um=e=>{let n=!1;return()=>{n||(e(),n=!0)}};let Do=-1;const q1=new Set,q0=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,xh=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const n of q1)n();isFinite(Do)||(Do=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",xh,!0))}},cc=()=>{if(Do<0){const e=ol();Do=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((r=>r.name==="hidden"&&r.startTime>e))[0]?.startTime)??q0(),addEventListener("visibilitychange",xh,!0),addEventListener("prerenderingchange",xh,!0),Fo((()=>{setTimeout((()=>{Do=q0()}))}))}return{get firstHiddenTime(){return Do},onHidden(e){q1.add(e)}}},dc=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},B0=[1800,3e3],B1=(e,n={})=>{dc((()=>{const r=cc();let o,l=Ia("FCP");const u=sl("paint",(c=>{for(const h of c)h.name==="first-contentful-paint"&&(u.disconnect(),h.startTime<r.firstHiddenTime&&(l.value=Math.max(h.startTime-ol(),0),l.entries.push(h),o(!0)))}));u&&(o=La(e,l,B0,n.reportAllChanges),Fo((c=>{l=Ia("FCP"),o=La(e,l,B0,n.reportAllChanges),om((()=>{l.value=performance.now()-c.timeStamp,o(!0)}))})))}))},P0=[.1,.25],C4=(e,n={})=>{const r=cc();B1(um((()=>{let o,l=Ia("CLS",0);const u=lm(n,D4),c=p=>{for(const g of p)u.h(g);u.i>l.value&&(l.value=u.i,l.entries=u.o,o())},h=sl("layout-shift",c);h&&(o=La(e,l,P0,n.reportAllChanges),r.onHidden((()=>{c(h.takeRecords()),o(!0)})),Fo((()=>{u.i=0,l=Ia("CLS",0),o=La(e,l,P0,n.reportAllChanges),om((()=>o()))})),setTimeout(o))})))};let P1=0,Gf=1/0,ku=0;const k4=e=>{for(const n of e)n.interactionId&&(Gf=Math.min(Gf,n.interactionId),ku=Math.max(ku,n.interactionId),P1=ku?(ku-Gf)/7+1:0)};let wh;const H0=()=>wh?P1:performance.interactionCount??0,N4=()=>{"interactionCount"in performance||wh||(wh=sl("event",k4,{type:"event",buffered:!0,durationThreshold:0}))};let $0=0,A4=class{u=[];l=new Map;m;p;v(){$0=H0(),this.u.length=0,this.l.clear()}L(){const n=Math.min(this.u.length-1,Math.floor((H0()-$0)/50));return this.u[n]}h(n){if(this.m?.(n),!n.interactionId&&n.entryType!=="first-input")return;const r=this.u.at(-1);let o=this.l.get(n.interactionId);if(o||this.u.length<10||n.duration>r.P){if(o?n.duration>o.P?(o.entries=[n],o.P=n.duration):n.duration===o.P&&n.startTime===o.entries[0].startTime&&o.entries.push(n):(o={id:n.interactionId,entries:[n],P:n.duration},this.l.set(o.id,o),this.u.push(o)),this.u.sort(((l,u)=>u.P-l.P)),this.u.length>10){const l=this.u.splice(10);for(const u of l)this.l.delete(u.id)}this.p?.(o)}}};const H1=e=>{const n=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=um(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),n((()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})})))},Q0=[200,500],R4=(e,n={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=cc();dc((()=>{N4();let o,l=Ia("INP");const u=lm(n,A4),c=p=>{H1((()=>{for(const y of p)u.h(y);const g=u.L();g&&g.P!==l.value&&(l.value=g.P,l.entries=g.entries,o())}))},h=sl("event",c,{durationThreshold:n.durationThreshold??40});o=La(e,l,Q0,n.reportAllChanges),h&&(h.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{c(h.takeRecords()),o(!0)})),Fo((()=>{u.v(),l=Ia("INP"),o=La(e,l,Q0,n.reportAllChanges)})))}))};let j4=class{m;h(n){this.m?.(n)}};const V0=[2500,4e3],M4=(e,n={})=>{dc((()=>{const r=cc();let o,l=Ia("LCP");const u=lm(n,j4),c=p=>{n.reportAllChanges||(p=p.slice(-1));for(const g of p)u.h(g),g.startTime<r.firstHiddenTime&&(l.value=Math.max(g.startTime-ol(),0),l.entries=[g],o())},h=sl("largest-contentful-paint",c);if(h){o=La(e,l,V0,n.reportAllChanges);const p=um((()=>{c(h.takeRecords()),h.disconnect(),o(!0)})),g=y=>{y.isTrusted&&(H1(p),removeEventListener(y.type,g,{capture:!0}))};for(const y of["keydown","click","visibilitychange"])addEventListener(y,g,{capture:!0});Fo((y=>{l=Ia("LCP"),o=La(e,l,V0,n.reportAllChanges),om((()=>{l.value=performance.now()-y.timeStamp,o(!0)}))}))}}))},G0=[800,1800],Sh=e=>{document.prerendering?dc((()=>Sh(e))):document.readyState!=="complete"?addEventListener("load",(()=>Sh(e)),!0):setTimeout(e)},O4=(e,n={})=>{let r=Ia("TTFB"),o=La(e,r,G0,n.reportAllChanges);Sh((()=>{const l=sm();l&&(r.value=Math.max(l.responseStart-ol(),0),r.entries=[l],o(!0),Fo((()=>{r=Ia("TTFB",0),o=La(e,r,G0,n.reportAllChanges),o(!0)})))}))};function L4(e){var n,r=((n=e.entries[0])===null||n===void 0?void 0:n.startTime)||0;return performance.timeOrigin+r}function Ls(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(L4(e)),navigationStart:Math.floor(performance.timeOrigin)}}var I4=function(){var e=null,n=ft(),r=n?.document,o=n?.location,l=function(h,p){return oe(void 0,void 0,void 0,function(){var g,y;return ie(this,function(v){return r===void 0?[2]:(g=Gr(o?.href||"",h.loggerProvider),y={"[Amplitude] Page Domain":o?.hostname||"","[Amplitude] Page Location":g,"[Amplitude] Page Path":Gr(o?.pathname||"",h.loggerProvider),"[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":Gr(g.split("?")[0],h.loggerProvider)},M4(function(b){y["[Amplitude] LCP"]=Ls(b)}),B1(function(b){y["[Amplitude] FCP"]=Ls(b)}),R4(function(b){y["[Amplitude] INP"]=Ls(b)}),C4(function(b){y["[Amplitude] CLS"]=Ls(b)}),O4(function(b){y["[Amplitude] TTFB"]=Ls(b)}),e=function(){r.visibilityState==="hidden"&&e&&(p.track(T4,y),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e),[2])})})},u=function(h){return oe(void 0,void 0,void 0,function(){return ie(this,function(p){return[2,h]})})},c=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(h){return e&&r?.removeEventListener("visibilitychange",e),[2]})})};return{name:_4,type:"enrichment",setup:l,execute:u,teardown:c}},Y0=function(e){var n=e.split(".");return n.length<=2?e:n.slice(n.length-2,n.length).join(".")},z4=function(e){return Object.values(e).every(function(n){return!n})},F4=function(e,n,r,o,l){l===void 0&&(l=!0),e.referrer;var u=e.referring_domain,c=Qu(e,["referrer","referring_domain"]),h=n||{};h.referrer;var p=h.referring_domain,g=Qu(h,["referrer","referring_domain"]);if(U4(r.excludeReferrers,e.referring_domain))return o.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!l&&z4(e)&&n)return o.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var y=JSON.stringify(c)!==JSON.stringify(g),v=Y0(u||"")!==Y0(p||""),b=!n||y||v;return b?o.debug("This is a new campaign. An $identify event will be sent."):o.debug("This is not a new campaign because it's the same as the previous one."),b},U4=function(e,n){return e===void 0&&(e=[]),n===void 0&&(n=""),e.some(function(r){return r instanceof RegExp?r.test(n):r===n})},q4=function(e,n){var r=me(me({},lc),e),o=Object.entries(r).reduce(function(l,u){var c,h=_e(u,2),p=h[0],g=h[1];return l.setOnce("initial_".concat(p),(c=g??n.initialEmptyValue)!==null&&c!==void 0?c:"EMPTY"),g?l.set(p,g):l.unset(p)},new Yu);return $h(o)},B4=function(e){var n=e;return n?(n.startsWith(".")&&(n=n.substring(1)),[new RegExp("".concat(n.replace(".","\\."),"$"))]):[]},P4=(function(){function e(n,r){var o;this.shouldTrackNewCampaign=!1,this.options=me({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:B4((o=r.cookieOptions)===null||o===void 0?void 0:o.domain)},n),this.storage=r.cookieStorage,this.storageKey=c0(r.apiKey,"MKTG"),this.webExpStorageKey=c0(r.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=lc,this.sessionTimeout=r.sessionTimeout,this.lastEventTime=r.lastEventTime,this.logger=r.loggerProvider,r.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return oe(this,void 0,void 0,function(){var n,r;return ie(this,function(o){switch(o.label){case 0:return[4,this.fetchCampaign()];case 1:return r=_e.apply(void 0,[o.sent(),2]),this.currentCampaign=r[0],this.previousCampaign=r[1],n=this.lastEventTime?t1(this.sessionTimeout,this.lastEventTime):!0,F4(this.currentCampaign,this.previousCampaign,this.options,this.logger,n)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return oe(this,void 0,void 0,function(){var n;return ie(this,function(r){switch(r.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return n=r.sent(),n?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,Promise.all([n||new d1().parse(),this.storage.get(this.storageKey)])];case 4:return[2,r.sent()]}})})},e.prototype.generateCampaignEvent=function(n){this.shouldTrackNewCampaign=!1;var r=q4(this.currentCampaign,this.options);return n&&(r.event_id=n),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e})(),Nu="AMP_CURRENT_PAGE",Au="AMP_PREVIOUS_PAGE",bo="AMP_URL_INFO",Ks;(function(e){e.Direct="direct",e.Internal="internal",e.External="external"})(Ks||(Ks={}));var H4=new Set([ba.IDENTIFY,ba.GROUP_IDENTIFY,ba.REVENUE]),$4=function(e){var n={},r=n.internalDomains,o=r===void 0?[]:r,l=ft(),u=void 0,c=!1,h=void 0,p=!1,g=!1,y=function(C){var D;try{var _=Gr(C,h);D=new URL(_).hostname}catch(A){h?.error("Could not parse URL: ",A)}return D},v=function(C){var D=typeof location<"u"&&location.hostname||"",_=C?y(C):void 0;if(!_)return Ks.Direct;var A=o.some(function(M){return D.indexOf(M)!==-1}),N=o.some(function(M){return _.indexOf(M)!==-1});return D===_||N&&A?Ks.Internal:Ks.External},b=function(){return oe(void 0,void 0,void 0,function(){var C,D,_,A,N;return ie(this,function(M){switch(M.label){case 0:return u&&c?[4,u.get(bo)]:[3,3];case 1:return C=M.sent(),D=Gr(typeof location<"u"&&location.href||""),_=C?.[Nu]||"",A=void 0,D===_?A=C?.[Au]||"":_?A=_:A=document.referrer||"",[4,u.set(bo,(N={},N[Nu]=D,N[Au]=A,N))];case 2:M.sent(),M.label=3;case 3:return[2]}})})},w=function(){b()},E={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(C,D){return oe(void 0,void 0,void 0,function(){return ie(this,function(_){switch(_.label){case 0:return h=C.loggerProvider,h.log("Installing @amplitude/plugin-page-url-enrichment-browser"),g=!0,l?(u=new Gh(l.sessionStorage),[4,u.isEnabled()]):[3,2];case 1:c=_.sent(),l.addEventListener("popstate",w),p||(l.history.pushState=new Proxy(l.history.pushState,{apply:function(A,N,M){var O=_e(M,3),I=O[0],S=O[1],U=O[2];A.apply(N,[I,S,U]),g&&w()}}),l.history.replaceState=new Proxy(l.history.replaceState,{apply:function(A,N,M){var O=_e(M,3),I=O[0],S=O[1],U=O[2];A.apply(N,[I,S,U]),g&&w()}}),p=!0),_.label=2;case 2:return[2]}})})},execute:function(C){return oe(void 0,void 0,void 0,function(){var D,_,A,N,M;return ie(this,function(O){switch(O.label){case 0:return D=Gr(typeof location<"u"&&location.href||""),u&&c?[4,u.get(bo)]:[3,5];case 1:return _=O.sent(),_?.[Nu]?[3,3]:[4,u.set(bo,(M={},M[Nu]=D,M[Au]=document.referrer||"",M))];case 2:O.sent(),O.label=3;case 3:return[4,u.get(bo)];case 4:if(A=O.sent(),N="",A&&(N=A[Au]||""),H4.has(C.event_type))return[2,C];C.event_properties=me(me({},C.event_properties||{}),{"[Amplitude] Page Domain":Is(C,"[Amplitude] Page Domain",typeof location<"u"&&location.hostname||""),"[Amplitude] Page Location":Is(C,"[Amplitude] Page Location",D),"[Amplitude] Page Path":Is(C,"[Amplitude] Page Path",typeof location<"u"&&Gr(location.pathname)||""),"[Amplitude] Page Title":Is(C,"[Amplitude] Page Title",Xh(Wh)),"[Amplitude] Page URL":Is(C,"[Amplitude] Page URL",D.split("?")[0]),"[Amplitude] Previous Page Location":N,"[Amplitude] Previous Page Type":v(N)}),O.label=5;case 5:return[2,C]}})})},teardown:function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(C){switch(C.label){case 0:return l&&(l.removeEventListener("popstate",w),g=!1),u&&c?[4,u.set(bo,{})]:[3,2];case 1:C.sent(),C.label=2;case 2:return[2]}})})}};return E};function Is(e,n,r){return e.event_properties||(e.event_properties={}),e.event_properties[n]===void 0?r:e.event_properties[n]}var Q4=(function(e){Ti(n,e);function n(){var r=e!==null&&e.apply(this,arguments)||this;return r._diagnosticsSampleRate=0,r}return n.prototype.init=function(r,o,l){r===void 0&&(r="");var u,c;return arguments.length>2?(u=o,c=l):typeof o=="string"?(u=o,c=void 0):(u=o?.userId,c=o),Dn(this._init(me(me({},c),{userId:u,apiKey:r})))},n.prototype._init=function(r){var o,l,u,c,h,p,g;return oe(this,void 0,void 0,function(){var y,v,b,w,E,C,D,_,A,N,M,O,I,S,U=this;return ie(this,function(F){switch(F.label){case 0:return this.initializing?[2]:(this.initializing=!0,y=KC(r),v=(o=r.loggerProvider)!==null&&o!==void 0?o:new Qh,b=(l=r.serverZone)!==null&&l!==void 0?l:E1,E=this._diagnosticsSampleRate,C=(u=r.enableDiagnostics)!==null&&u!==void 0?u:!0,y?(w=new BD(r.apiKey,v,b,(c=r.remoteConfig)===null||c===void 0?void 0:c.serverUrl),[4,new Promise(function(L){w?.subscribe("configs.diagnostics.browserSDK","all",function(B,K,se){if(v.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:B,source:K,lastFetch:se},null,2)),B){var ae=B.sampleRate;typeof ae=="number"&&!isNaN(ae)&&(E=ae);var ce=B.enabled;typeof ce=="boolean"&&(C=ce)}L()})})]):[3,2]);case 1:F.sent(),F.label=2;case 2:return D=new MD(r.apiKey,v,b,{enabled:C,sampleRate:E}),D.setTag("library","".concat(w1,"/").concat(am)),typeof navigator<"u"&&D.setTag("user_agent",navigator.userAgent),[4,GC(r.apiKey,r,this,D,{loggerProvider:v,serverZone:b,enableDiagnostics:C,diagnosticsSampleRate:E})];case 3:return _=F.sent(),y&&w?[4,new Promise(function(L){w?.subscribe("configs.analyticsSDK.browserSDK","all",function(B,K,se){_.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:B,source:K,lastFetch:se},null,2)),B&&sk(B,_),L()})})]:[3,5];case 4:F.sent(),F.label=5;case 5:return[4,e.prototype._init.call(this,_)];case 6:return F.sent(),this.logBrowserOptions(_),this.config.remoteConfigClient=w,p1(this.config.defaultTracking)?(A=NC(this.config),this.webAttribution=new P4(A,this.config),[4,this.webAttribution.init()]):[3,8];case 7:F.sent(),F.label=8;case 8:return N=Ku(),M=N.ampTimestamp?Number(N.ampTimestamp):void 0,O=M?Date.now()<M:!0,I=O&&!Number.isNaN(Number(N.ampSessionId))?Number(N.ampSessionId):void 0,this.setSessionId((g=(p=(h=r.sessionId)!==null&&h!==void 0?h:I)!==null&&p!==void 0?p:this.config.sessionId)!==null&&g!==void 0?g:Date.now()),S=el(r.instanceName),S.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===VD?[3,10]:[4,this.add(ok()).promise];case 9:F.sent(),F.label=10;case 10:return[4,this.add(new rD({diagnosticsClient:D})).promise];case 11:return F.sent(),[4,this.add(new MC).promise];case 12:return F.sent(),[4,this.add(new pD).promise];case 13:return F.sent(),ik(this.config),SC(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(rk()).promise]):[3,15];case 14:F.sent(),F.label=15;case 15:return v1(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(ak()).promise]):[3,17];case 16:F.sent(),F.label=17;case 17:return g1(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(JC(kC(this.config))).promise]):[3,19];case 18:F.sent(),F.label=19;case 19:return b1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(s4(TC(this.config),{diagnosticsClient:D})).promise]):[3,21];case 20:F.sent(),F.label=21;case 21:return x1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(v4(DC(this.config))).promise]):[3,23];case 22:F.sent(),F.label=23;case 23:return y1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(E4(CC(this.config))).promise]):[3,25];case 24:F.sent(),F.label=25;case 25:return _C(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(I4()).promise]):[3,27];case 26:F.sent(),F.label=27;case 27:return EC(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add($4()).promise]):[3,29];case 28:F.sent(),F.label=29;case 29:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 30:return F.sent(),S.eventBridge.setEventReceiver(function(L){var B=L.eventProperties||{},K=B.time,se=Qu(B,["time"]),ae=typeof K=="number"?{time:K}:void 0;U.track(L.eventType,se,ae)}),[2]}})})},n.prototype.getUserId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.userId},n.prototype.setUserId=function(r){if(!this.config){this.q.push(this.setUserId.bind(this,r));return}this.config.loggerProvider.debug("function setUserId: ",r),(r!==this.config.userId||r===void 0)&&(this.config.userId=r,this.timeline.onIdentityChanged({userId:r}),hD(r,this.config.instanceName))},n.prototype.getDeviceId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.deviceId},n.prototype.setDeviceId=function(r){if(!this.config){this.q.push(this.setDeviceId.bind(this,r));return}this.config.loggerProvider.debug("function setDeviceId: ",r),r!==this.config.deviceId&&(this.config.deviceId=r,this.timeline.onIdentityChanged({deviceId:r}),mD(r,this.config.instanceName))},n.prototype.reset=function(){this.setDeviceId(qa()),this.setUserId(void 0),this.timeline.onReset()},n.prototype.getIdentity=function(){var r,o;return{deviceId:(r=this.config)===null||r===void 0?void 0:r.deviceId,userId:(o=this.config)===null||o===void 0?void 0:o.userId,userProperties:this.userProperties}},n.prototype.getOptOut=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.optOut},n.prototype.getSessionId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.sessionId},n.prototype.setSessionId=function(r){var o,l=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,r)),Dn(Promise.resolve());if(r===this.config.sessionId)return Dn(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",r);var u=this.getSessionId();u!==r&&this.timeline.onSessionIdChanged(r);var c=this.config.lastEventTime,h=(o=this.config.lastEventId)!==null&&o!==void 0?o:-1;this.config.sessionId=r,this.config.lastEventTime=void 0,this.config.pageCounter=0,w0(this.config.defaultTracking)&&(u&&c&&l.push(this.track(_0,void 0,{device_id:this.previousSessionDeviceId,event_id:++h,session_id:u,time:c+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var p=this.trackCampaignEventIfNeeded(++h,l);return this.config.identify&&l.push(this.track($h(this.config.identify)).promise),w0(this.config.defaultTracking)&&l.push(this.track(E0,void 0,{event_id:p?++h:h,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,Dn(Promise.all(l))},n.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},n.prototype.setTransport=function(r){if(!this.config){this.q.push(this.setTransport.bind(this,r));return}this.config.transportProvider=_1(r)},n.prototype.identify=function(r,o){if(qf(r)){var l=r._q;r._q=[],r=Uf(new Yu,l)}return o?.user_id&&this.setUserId(o.user_id),o?.device_id&&this.setDeviceId(o.device_id),e.prototype.identify.call(this,r,o)},n.prototype.groupIdentify=function(r,o,l,u){if(qf(l)){var c=l._q;l._q=[],l=Uf(new Yu,c)}return e.prototype.groupIdentify.call(this,r,o,l,u)},n.prototype.revenue=function(r,o){if(qf(r)){var l=r._q;r._q=[],r=Uf(new XT,l)}return e.prototype.revenue.call(this,r,o)},n.prototype.trackCampaignEventIfNeeded=function(r,o){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var l=this.webAttribution.generateCampaignEvent(r);return o?o.push(this.track(l).promise):this.track(l),this.config.loggerProvider.log("Tracking attribution."),!0},n.prototype.process=function(r){return oe(this,void 0,void 0,function(){var o,l,u;return ie(this,function(c){return o=Date.now(),l=t1(this.config.sessionTimeout,this.config.lastEventTime),u=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),r.event_type!==E0&&r.event_type!==_0&&(!r.session_id||r.session_id===this.getSessionId())&&(l||u?(this.setSessionId(o),u&&this.config.loggerProvider.log("Created a new session for new campaign.")):l||this.trackCampaignEventIfNeeded()),r.event_type===ba.IDENTIFY&&r.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(r.user_properties)),[2,e.prototype.process.call(this,r)]})})},n.prototype.logBrowserOptions=function(r){try{var o=me(me({},r),{apiKey:r.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(o))}catch(l){this.config.loggerProvider.error("Error logging browser config",l)}},n.prototype._setDiagnosticsSampleRate=function(r){if(!(r>1||r<0)&&!this.config){this._diagnosticsSampleRate=r;return}},n})(WT),V4=function(){var e=new Q4;return{init:Ct(e.init.bind(e),"init",Tt(e),Dt(e,["config"])),add:Ct(e.add.bind(e),"add",Tt(e),Dt(e,["config.apiKey","timeline.plugins"])),remove:Ct(e.remove.bind(e),"remove",Tt(e),Dt(e,["config.apiKey","timeline.plugins"])),track:Ct(e.track.bind(e),"track",Tt(e),Dt(e,["config.apiKey","timeline.queue.length"])),logEvent:Ct(e.logEvent.bind(e),"logEvent",Tt(e),Dt(e,["config.apiKey","timeline.queue.length"])),identify:Ct(e.identify.bind(e),"identify",Tt(e),Dt(e,["config.apiKey","timeline.queue.length"])),groupIdentify:Ct(e.groupIdentify.bind(e),"groupIdentify",Tt(e),Dt(e,["config.apiKey","timeline.queue.length"])),setGroup:Ct(e.setGroup.bind(e),"setGroup",Tt(e),Dt(e,["config.apiKey","timeline.queue.length"])),revenue:Ct(e.revenue.bind(e),"revenue",Tt(e),Dt(e,["config.apiKey","timeline.queue.length"])),flush:Ct(e.flush.bind(e),"flush",Tt(e),Dt(e,["config.apiKey","timeline.queue.length"])),getUserId:Ct(e.getUserId.bind(e),"getUserId",Tt(e),Dt(e,["config","config.userId"])),setUserId:Ct(e.setUserId.bind(e),"setUserId",Tt(e),Dt(e,["config","config.userId"])),getDeviceId:Ct(e.getDeviceId.bind(e),"getDeviceId",Tt(e),Dt(e,["config","config.deviceId"])),setDeviceId:Ct(e.setDeviceId.bind(e),"setDeviceId",Tt(e),Dt(e,["config","config.deviceId"])),reset:Ct(e.reset.bind(e),"reset",Tt(e),Dt(e,["config","config.userId","config.deviceId"])),getSessionId:Ct(e.getSessionId.bind(e),"getSessionId",Tt(e),Dt(e,["config"])),setSessionId:Ct(e.setSessionId.bind(e),"setSessionId",Tt(e),Dt(e,["config"])),extendSession:Ct(e.extendSession.bind(e),"extendSession",Tt(e),Dt(e,["config"])),setOptOut:Ct(e.setOptOut.bind(e),"setOptOut",Tt(e),Dt(e,["config"])),setTransport:Ct(e.setTransport.bind(e),"setTransport",Tt(e),Dt(e,["config"])),getIdentity:Ct(e.getIdentity.bind(e),"getIdentity",Tt(e),Dt(e,["config"])),getOptOut:Ct(e.getOptOut.bind(e),"getOptOut",Tt(e),Dt(e,["config"])),_setDiagnosticsSampleRate:Ct(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",Tt(e),Dt(e,["config"]))}};const $1=V4();var G4=$1.init,Y4=$1.track;const K4="c97dd2acbf306ab7bf54aca0aeb7ffa1",K0="prefect-web-app-loaded";function W4(){return G4(K4,{trackingOptions:{ipAddress:!1,language:!1,platform:!1},autocapture:!1}),!0}function X4(e,n){!e||sessionStorage.getItem(K0)||(Y4("Web App Loaded",n),sessionStorage.setItem(K0,"true"))}function Z4({children:e}){const[n,r]=k.useState(!1),o=k.useRef(!1);k.useEffect(()=>{n||r(W4())},[n]);const[{data:l},{data:u}]=Rb({queries:[{...Wb(),enabled:n},{...Kb(),enabled:n}]});return k.useEffect(()=>{if(!(!n||o.current)&&l&&u){o.current=!0;const h=l.server?.analytics_enabled??!0;X4(h,{environment:"OSS",prefect_version:u})}},[n,l,u]),d.jsx(d.Fragment,{children:e})}const cm=k.createContext(null);function J4(){const e=k.useContext(cm);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function Q1(){return k.useContext(cm)}const Ru="prefect-password";async function W0(e,n){try{return(await fetch(`${n}/admin/version`,{headers:{Authorization:`Basic ${e}`}})).ok}catch{return!1}}function eN({children:e}){const[n,r]=k.useState(!0),[o,l]=k.useState(!1),[u,c]=k.useState(!1);k.useEffect(()=>{const y=()=>{l(!1)};return window.addEventListener("auth:unauthorized",y),()=>window.removeEventListener("auth:unauthorized",y)},[]),k.useEffect(()=>{(async()=>{try{const v=await Js.load(),b=v.auth==="BASIC";if(c(b),!b){l(!0),r(!1);return}const w=localStorage.getItem(Ru);if(w){const E=await W0(w,v.apiUrl);l(E),E||localStorage.removeItem(Ru)}}catch(v){console.error("Failed to initialize auth:",v)}finally{r(!1)}})()},[]);const h=k.useCallback(async y=>{try{const v=await Js.load(),b=btoa(y);return await W0(b,v.apiUrl)?(localStorage.setItem(Ru,b),l(!0),{success:!0}):{success:!1,error:"Invalid credentials"}}catch{return{success:!1,error:"Authentication failed"}}},[]),p=k.useCallback(()=>{localStorage.removeItem(Ru),l(!1)},[]),g={isAuthenticated:o,isLoading:n,authRequired:u,login:h,logout:p};return d.jsx(cm.Provider,{value:g,children:e})}const V1=(...e)=>e.filter((n,r,o)=>!!n&&n.trim()!==""&&o.indexOf(n)===r).join(" ").trim();const tN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const nN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,o)=>o?o.toUpperCase():r.toLowerCase());const X0=e=>{const n=nN(e);return n.charAt(0).toUpperCase()+n.slice(1)};var aN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const rN=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const iN=k.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:u,iconNode:c,...h},p)=>k.createElement("svg",{ref:p,...aN,width:n,height:n,stroke:e,strokeWidth:o?Number(r)*24/Number(n):r,className:V1("lucide",l),...!u&&!rN(h)&&{"aria-hidden":"true"},...h},[...c.map(([g,y])=>k.createElement(g,y)),...Array.isArray(u)?u:[u]]));const we=(e,n)=>{const r=k.forwardRef(({className:o,...l},u)=>k.createElement(iN,{ref:u,iconNode:n,className:V1(`lucide-${tN(X0(e))}`,`lucide-${e}`,o),...l}));return r.displayName=X0(e),r};const oN=[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"6",rx:"2",key:"13squh"}],["path",{d:"M2 2h20",key:"1ennik"}]],sN=we("align-vertical-justify-start",oN);const lN=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],uN=we("ban",lN);const cN=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],dN=we("bot",cN);const fN=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],hN=we("box",fN);const mN=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],G1=we("calendar",mN);const pN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dm=we("check",pN);const vN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ll=we("chevron-down",vN);const gN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Y1=we("chevron-left",gN);const yN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fm=we("chevron-right",yN);const bN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xN=we("chevron-up",bN);const wN=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],SN=we("chevrons-left",wN);const EN=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],_N=we("chevrons-right",EN);const TN=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],DN=we("chevrons-up-down",TN);const CN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],kN=we("circle-alert",CN);const NN=[["path",{d:"M22 12A10 10 0 1 1 12 2",key:"1fm58d"}],["path",{d:"M22 2 12 12",key:"yg2myt"}],["path",{d:"M16 2h6v6",key:"zan5cs"}]],AN=we("circle-arrow-out-up-right",NN);const RN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],jN=we("circle-check",RN);const MN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],ec=we("circle-dot",MN);const ON=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],K1=we("circle-pause",ON);const LN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],IN=we("circle",LN);const zN=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],W1=we("clock",zN);const FN=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],UN=we("cog",FN);const qN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],BN=we("copy",qN);const PN=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],HN=we("cpu",PN);const $N=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],QN=we("crosshair",$N);const VN=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],GN=we("download",VN);const YN=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Z0=we("ellipsis-vertical",YN);const KN=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],WN=we("ellipsis",KN);const XN=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],ZN=we("expand",XN);const JN=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],e3=we("external-link",JN);const t3=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],n3=we("gauge",t3);const a3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],r3=we("image",a3);const i3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],o3=we("info",i3);const s3=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],l3=we("layout-grid",s3);const u3=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],c3=we("list-ordered",u3);const d3=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],f3=we("list-todo",d3);const h3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],m3=we("loader-circle",h3);const p3=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],v3=we("log-out",p3);const g3=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],y3=we("monitor",g3);const b3=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],x3=we("moon",b3);const w3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],S3=we("panel-left",w3);const E3=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],_3=we("pause",E3);const T3=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],D3=we("play",T3);const C3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],k3=we("plus",C3);const N3=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],X1=we("refresh-cw",N3);const A3=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],R3=we("rocket",A3);const j3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Z1=we("search",j3);const M3=[["path",{d:"M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2",key:"4b9dqc"}],["path",{d:"M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2",key:"22nnkd"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m13 6-4 6h6l-4 6",key:"14hqih"}]],O3=we("server-crash",M3);const L3=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],I3=we("server",L3);const z3=[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]],F3=we("shrink",z3);const U3=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],q3=we("sliders-vertical",U3);const B3=[["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}]],P3=we("spline",B3);const H3=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],$3=we("sun",H3);const Q3=[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]],V3=we("text-align-justify",Q3);const G3=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Y3=we("trash-2",G3);const K3=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],W3=we("variable",K3);const X3=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Z3=we("workflow",X3);const J3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hm=we("x",J3);const eA=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],tA=we("zap",eA),pa={AlignJustify:V3,AlignVerticalJustifyStart:sN,Ban:uN,Bot:dN,Box:hN,Calendar:G1,Check:dm,ChevronDown:ll,ChevronLeft:Y1,ChevronRight:fm,ChevronsLeft:SN,ChevronsRight:_N,ChevronsUpDown:DN,Circle:IN,CircleArrowOutUpRight:AN,CircleCheck:jN,Clock:W1,Cog:UN,Copy:BN,Cpu:HN,Crosshair:QN,Download:GN,EllipsisVertical:Z0,Expand:ZN,ExternalLink:e3,Gauge:n3,Image:r3,Info:o3,LayoutGrid:l3,ListOrdered:c3,ListTodo:f3,Loader2:m3,Monitor:y3,Moon:x3,MoreHorizontal:WN,MoreVertical:Z0,PanelLeft:S3,Pause:_3,Play:D3,Plus:k3,RefreshCw:X1,Rocket:R3,Search:Z1,Server:I3,ServerCrash:O3,Shrink:F3,SlidersVertical:q3,Spline:P3,Sun:$3,Trash2:Y3,Variable:W3,Workflow:Z3,X:hm,Zap:tA},vt=({id:e,...n})=>{const r=pa[e];return d.jsx(r,{...n})},mm="-",nA=e=>{const n=rA(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const h=c.split(mm);return h[0]===""&&h.length!==1&&h.shift(),J1(h,n)||aA(c)},getConflictingClassGroupIds:(c,h)=>{const p=r[c]||[];return h&&o[c]?[...p,...o[c]]:p}}},J1=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],o=n.nextPart.get(r),l=o?J1(e.slice(1),o):void 0;if(l)return l;if(n.validators.length===0)return;const u=e.join(mm);return n.validators.find(({validator:c})=>c(u))?.classGroupId},J0=/^\[(.+)\]$/,aA=e=>{if(J0.test(e)){const n=J0.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},rA=e=>{const{theme:n,prefix:r}=e,o={nextPart:new Map,validators:[]};return oA(Object.entries(e.classGroups),r).forEach(([u,c])=>{Eh(c,o,u,n)}),o},Eh=(e,n,r,o)=>{e.forEach(l=>{if(typeof l=="string"){const u=l===""?n:eb(n,l);u.classGroupId=r;return}if(typeof l=="function"){if(iA(l)){Eh(l(o),n,r,o);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([u,c])=>{Eh(c,eb(n,u),r,o)})})},eb=(e,n)=>{let r=e;return n.split(mm).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},iA=e=>e.isThemeGetter,oA=(e,n)=>n?e.map(([r,o])=>{const l=o.map(u=>typeof u=="string"?n+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([c,h])=>[n+c,h])):u);return[r,l]}):e,sA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,o=new Map;const l=(u,c)=>{r.set(u,c),n++,n>e&&(n=0,o=r,r=new Map)};return{get(u){let c=r.get(u);if(c!==void 0)return c;if((c=o.get(u))!==void 0)return l(u,c),c},set(u,c){r.has(u)?r.set(u,c):l(u,c)}}},ex="!",lA=e=>{const{separator:n,experimentalParseClassName:r}=e,o=n.length===1,l=n[0],u=n.length,c=h=>{const p=[];let g=0,y=0,v;for(let D=0;D<h.length;D++){let _=h[D];if(g===0){if(_===l&&(o||h.slice(D,D+u)===n)){p.push(h.slice(y,D)),y=D+u;continue}if(_==="/"){v=D;continue}}_==="["?g++:_==="]"&&g--}const b=p.length===0?h:h.substring(y),w=b.startsWith(ex),E=w?b.substring(1):b,C=v&&v>y?v-y:void 0;return{modifiers:p,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}};return r?h=>r({className:h,parseClassName:c}):c},uA=e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(o=>{o[0]==="["?(n.push(...r.sort(),o),r=[]):r.push(o)}),n.push(...r.sort()),n},cA=e=>({cache:sA(e.cacheSize),parseClassName:lA(e),...nA(e)}),dA=/\s+/,fA=(e,n)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=n,u=[],c=e.trim().split(dA);let h="";for(let p=c.length-1;p>=0;p-=1){const g=c[p],{modifiers:y,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:w}=r(g);let E=!!w,C=o(E?b.substring(0,w):b);if(!C){if(!E){h=g+(h.length>0?" "+h:h);continue}if(C=o(b),!C){h=g+(h.length>0?" "+h:h);continue}E=!1}const D=uA(y).join(":"),_=v?D+ex:D,A=_+C;if(u.includes(A))continue;u.push(A);const N=l(C,E);for(let M=0;M<N.length;++M){const O=N[M];u.push(_+O)}h=g+(h.length>0?" "+h:h)}return h};function hA(){let e=0,n,r,o="";for(;e<arguments.length;)(n=arguments[e++])&&(r=tx(n))&&(o&&(o+=" "),o+=r);return o}const tx=e=>{if(typeof e=="string")return e;let n,r="";for(let o=0;o<e.length;o++)e[o]&&(n=tx(e[o]))&&(r&&(r+=" "),r+=n);return r};function mA(e,...n){let r,o,l,u=c;function c(p){const g=n.reduce((y,v)=>v(y),e());return r=cA(g),o=r.cache.get,l=r.cache.set,u=h,h(p)}function h(p){const g=o(p);if(g)return g;const y=fA(p,r);return l(p,y),y}return function(){return u(hA.apply(null,arguments))}}const bt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},nx=/^\[(?:([a-z-]+):)?(.+)\]$/i,pA=/^\d+\/\d+$/,vA=new Set(["px","full","screen"]),gA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dr=e=>Ao(e)||vA.has(e)||pA.test(e),Pr=e=>Uo(e,"length",NA),Ao=e=>!!e&&!Number.isNaN(Number(e)),Yf=e=>Uo(e,"number",Ao),zs=e=>!!e&&Number.isInteger(Number(e)),SA=e=>e.endsWith("%")&&Ao(e.slice(0,-1)),Oe=e=>nx.test(e),Hr=e=>gA.test(e),EA=new Set(["length","size","percentage"]),_A=e=>Uo(e,EA,ax),TA=e=>Uo(e,"position",ax),DA=new Set(["image","url"]),CA=e=>Uo(e,DA,RA),kA=e=>Uo(e,"",AA),Fs=()=>!0,Uo=(e,n,r)=>{const o=nx.exec(e);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):r(o[2]):!1},NA=e=>yA.test(e)&&!bA.test(e),ax=()=>!1,AA=e=>xA.test(e),RA=e=>wA.test(e),jA=()=>{const e=bt("colors"),n=bt("spacing"),r=bt("blur"),o=bt("brightness"),l=bt("borderColor"),u=bt("borderRadius"),c=bt("borderSpacing"),h=bt("borderWidth"),p=bt("contrast"),g=bt("grayscale"),y=bt("hueRotate"),v=bt("invert"),b=bt("gap"),w=bt("gradientColorStops"),E=bt("gradientColorStopPositions"),C=bt("inset"),D=bt("margin"),_=bt("opacity"),A=bt("padding"),N=bt("saturate"),M=bt("scale"),O=bt("sepia"),I=bt("skew"),S=bt("space"),U=bt("translate"),F=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Oe,n],K=()=>[Oe,n],se=()=>["",dr,Pr],ae=()=>["auto",Ao,Oe],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",Oe],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[Ao,Oe];return{cacheSize:500,separator:":",theme:{colors:[Fs],spacing:[dr,Pr],blur:["none","",Hr,Oe],brightness:pe(),borderColor:[e],borderRadius:["none","","full",Hr,Oe],borderSpacing:K(),borderWidth:se(),contrast:pe(),grayscale:de(),hueRotate:pe(),invert:de(),gap:K(),gradientColorStops:[e],gradientColorStopPositions:[SA,Pr],inset:B(),margin:B(),opacity:pe(),padding:K(),saturate:pe(),scale:pe(),sepia:de(),skew:pe(),space:K(),translate:K()},classGroups:{aspect:[{aspect:["auto","square","video",Oe]}],container:["container"],columns:[{columns:[Hr]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),Oe]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zs,Oe]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Oe]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",zs,Oe]}],"grid-cols":[{"grid-cols":[Fs]}],"col-start-end":[{col:["auto",{span:["full",zs,Oe]},Oe]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[Fs]}],"row-start-end":[{row:["auto",{span:[zs,Oe]},Oe]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Oe]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Oe,n]}],"min-w":[{"min-w":[Oe,n,"min","max","fit"]}],"max-w":[{"max-w":[Oe,n,"none","full","min","max","fit","prose",{screen:[Hr]},Hr]}],h:[{h:[Oe,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Oe,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Oe,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Oe,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Hr,Pr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yf]}],"font-family":[{font:[Fs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Oe]}],"line-clamp":[{"line-clamp":["none",Ao,Yf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dr,Oe]}],"list-image":[{"list-image":["none",Oe]}],"list-style-type":[{list:["none","disc","decimal",Oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dr,Pr]}],"underline-offset":[{"underline-offset":["auto",dr,Oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),TA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},CA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:j()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[dr,Oe]}],"outline-w":[{outline:[dr,Pr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[dr,Pr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Hr,kA]}],"shadow-color":[{shadow:[Fs]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Hr,Oe]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[v]}],saturate:[{saturate:[N]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Oe]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",Oe]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[zs,Oe]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dr,Pr,Yf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},MA=mA(jA);function $(...e){return MA(Bh(e))}const Tn={year:31536e3,day:86400,hour:3600,minute:60};function rx(e){const n=Math.floor(e/Tn.year),r=Math.floor(e%Tn.year/Tn.day),o=Math.floor(e%Tn.year%Tn.day/Tn.hour),l=Math.floor(e%Tn.year%Tn.day%Tn.hour/Tn.minute),u=Math.ceil(e%Tn.year%Tn.day%Tn.hour%Tn.minute);return{years:n,days:r,hours:o,minutes:l,seconds:u}}function ix(e,n=!0){return`${e===1&&!n?"":e}`}function Us(e,n,r=!0){return`${ix(n,r)} ${e}${n!==1?"s":""}`}function qs(e,n,r=!0){return`${ix(n,r)}${e}`}function QL(e,n=!0){const{years:r,days:o,hours:l,minutes:u,seconds:c}=rx(e),h=r?Us("year",r,n):"",p=o?Us("day",o,n):"",g=l?Us("hour",l,n):"",y=u?Us("minute",u,n):"",v=c?Us("second",c,n):"";return[h,p,g,y,v].map(b=>b||"").join(" ").trim()}function ox(e,n=!0){const{years:r,days:o,hours:l,minutes:u,seconds:c}=rx(e),h=qs("y",r,n),p=qs("d",o,n),g=qs("h",l,n),y=qs("m",u,n),v=qs("s",c,n);switch(!0){case(r>0&&o===0):return h;case(r>0&&o>0):return`${h} ${p}`;case(o>0&&l===0):return p;case(o>0&&l>0):return`${p} ${g}`;case(l>0&&u===0):return`${g} ${y}`;case(l>0&&u>0):return`${g} ${y}`;case(u>0&&c===0):return y;case(u>0&&c>0):return`${y} ${v}`;default:return v}}const sx="MMM do, yyyy",lx="hh:mm a",OA=`${sx} 'at' ${lx}`,ux="hh:mm:ss a",cx="hh:mm a",pm="yyyy/MM/dd",LA=`${pm} ${ux}`,IA=`${pm} ${cx}`,zA={date:sx,time:lx,dateTime:OA,timeNumeric:ux,timeNumericShort:cx,dateNumeric:pm,dateTimeNumeric:LA,dateTimeNumericShort:IA};function _h(e){return new Date(e)}function tb(e,n="date"){const r=_h(e);return on(r,zA[n])}function FA(e,n=new Date){const r=_h(e),o=_h(n),l=$s(o,r),u=ic(r,o),c=ox(Math.abs(l));return u?`${c} ago`:`in ${c}`}const dx=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),fx=(e,n,r)=>e===1?n:r||`${n}s`,VL=e=>e.replace(/^[-_]*(.)/,(n,r)=>r.toUpperCase()).replace(/[-_]+(.)/g,(n,r)=>` ${r.toUpperCase()}`);function GL(e){const n=new Set(e);function r(o){return n.has(o)}return{values:e,isValue:r}}const nb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ab=Bh,Di=(e,n)=>r=>{var o;if(n?.variants==null)return ab(e,r?.class,r?.className);const{variants:l,defaultVariants:u}=n,c=Object.keys(l).map(g=>{const y=r?.[g],v=u?.[g];if(y===null)return null;const b=nb(y)||nb(v);return l[g][b]}),h=r&&Object.entries(r).reduce((g,y)=>{let[v,b]=y;return b===void 0||(g[v]=b),g},{}),p=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((g,y)=>{let{class:v,className:b,...w}=y;return Object.entries(w).every(E=>{let[C,D]=E;return Array.isArray(D)?D.includes({...u,...h}[C]):{...u,...h}[C]===D})?[...g,v,b]:g},[]);return ab(e,c,p,r?.class,r?.className)},tl=Di("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),it=k.forwardRef(({className:e,variant:n,size:r,asChild:o=!1,loading:l=!1,children:u,...c},h)=>{const p=o?Xr:"button";return d.jsx(p,{className:$(tl({variant:n,size:r,className:e})),ref:h,disabled:l,...c,children:l?d.jsx(vt,{id:"Loader2",className:"size-4 animate-spin"}):u})});it.displayName="Button";const hx=V.createContext(null);function fc(){const e=V.useContext(hx);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function mx(e,n=500){const[r,o]=k.useState(e);return k.useEffect(()=>{const l=setTimeout(()=>{o(e)},n);return()=>{clearTimeout(l)}},[e,n]),r}const hr=k.forwardRef(({className:e,type:n,...r},o)=>d.jsx("input",{type:n,className:$("flex h-9 w-full rounded-md border border-input bg-card dark:bg-background px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));hr.displayName="Input";const px=k.forwardRef(({className:e,Icon:n,...r},o)=>d.jsxs("div",{className:"relative w-full",children:[d.jsx(n,{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground size-4"}),d.jsx(hr,{className:$("pl-8",e),ref:o,...r})]}));px.displayName="IconInput";const UA=k.forwardRef(({className:e,debounceMs:n=200,onChange:r,value:o,...l},u)=>{const[c,h]=k.useState({value:o}),p=mx(c.value,n);return k.useEffect(()=>{p===c.value&&c.event&&r?.(c.event)},[p,r,c.event,c.value]),k.useEffect(()=>{h({value:o})},[o]),d.jsx(px,{Icon:pa.Search,className:e,ref:u,value:c.value,onChange:g=>h({value:g.target.value,event:g}),...l})});UA.displayName="SearchInput";function qA({className:e,orientation:n="horizontal",decorative:r=!0,...o}){return d.jsx(bE,{"data-slot":"separator-root",decorative:r,orientation:n,className:$("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}function BA({...e}){return d.jsx(Ih,{"data-slot":"sheet",...e})}function PA({...e}){return d.jsx(Uh,{"data-slot":"sheet-portal",...e})}function HA({className:e,...n}){return d.jsx(qh,{"data-slot":"sheet-overlay",className:$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...n})}function $A({className:e,children:n,side:r="right",...o}){return d.jsxs(PA,{children:[d.jsx(HA,{}),d.jsxs(zh,{"data-slot":"sheet-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[n,d.jsxs(Fh,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[d.jsx(hm,{className:"size-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function YL({className:e,...n}){return d.jsx("div",{"data-slot":"sheet-header",className:$("flex flex-col gap-1.5 p-4",e),...n})}function KL({className:e,...n}){return d.jsx(Mb,{"data-slot":"sheet-title",className:$("text-foreground font-semibold",e),...n})}function ke({className:e,...n}){return d.jsx("div",{"data-slot":"skeleton",className:$("bg-muted animate-pulse rounded-md",e),...n})}function Jr({delayDuration:e=0,...n}){return d.jsx(xE,{"data-slot":"tooltip-provider",delayDuration:e,...n})}function za({...e}){return d.jsx(Jr,{children:d.jsx(wE,{"data-slot":"tooltip",...e})})}function Fa({...e}){return d.jsx(SE,{"data-slot":"tooltip-trigger",...e})}function Ua({className:e,sideOffset:n=0,children:r,...o}){return d.jsx(EE,{children:d.jsxs(_E,{"data-slot":"tooltip-content",sideOffset:n,className:$("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",e),...o,children:[r,d.jsx(TE,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Kf=768;function QA(){const[e,n]=k.useState(void 0);return k.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Kf-1}px)`),o=()=>{n(window.innerWidth<Kf)};return r.addEventListener("change",o),n(window.innerWidth<Kf),()=>r.removeEventListener("change",o)},[]),!!e}const VA="16rem",GA="18rem",YA="3rem",KA="b",vx=k.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:o,style:l,children:u,...c},h)=>{const p=QA(),[g,y]=k.useState(!1),[v,b]=k.useState(e),w=n??v,E=k.useCallback(A=>{const N=typeof A=="function"?A(w):A;r?r(N):b(N)},[r,w]),C=k.useCallback(()=>p?y(A=>!A):E(A=>!A),[p,E]);k.useEffect(()=>{const A=N=>{N.key===KA&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),C())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[C]);const D=w?"expanded":"collapsed",_=k.useMemo(()=>({state:D,open:w,setOpen:E,isMobile:p,openMobile:g,setOpenMobile:y,toggleSidebar:C}),[D,w,E,p,g,C]);return d.jsx(hx.Provider,{value:_,children:d.jsx(Jr,{delayDuration:0,children:d.jsx("div",{style:{"--sidebar-width":VA,"--sidebar-width-icon":YA,...l},className:$("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",o),ref:h,...c,children:u})})})});vx.displayName="SidebarProvider";const gx=k.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:o,children:l,...u},c)=>{const{isMobile:h,state:p,openMobile:g,setOpenMobile:y}=fc();return r==="none"?d.jsx("div",{className:$("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",o),ref:c,...u,children:l}):h?d.jsx(BA,{open:g,onOpenChange:y,...u,children:d.jsx($A,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":GA},side:e,children:d.jsx("div",{className:"flex h-full w-full flex-col",children:l})})}):d.jsxs("div",{ref:c,className:"group peer hidden md:block text-sidebar-foreground","data-state":p,"data-collapsible":p==="collapsed"?r:"","data-variant":n,"data-side":e,children:[d.jsx("div",{className:$("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),d.jsx("div",{className:$("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...u,children:d.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:l})})]})});gx.displayName="Sidebar";const WA=k.forwardRef(({className:e,onClick:n,...r},o)=>{const{toggleSidebar:l}=fc();return d.jsxs(it,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:$("size-7",e),onClick:u=>{n?.(u),l()},...r,children:[d.jsx(vt,{id:"PanelLeft"}),d.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});WA.displayName="SidebarTrigger";const XA=k.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:o}=fc();return d.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:$("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});XA.displayName="SidebarRail";const ZA=k.forwardRef(({className:e,...n},r)=>d.jsx("main",{ref:r,className:$("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...n}));ZA.displayName="SidebarInset";const JA=k.forwardRef(({className:e,...n},r)=>d.jsx(hr,{ref:r,"data-sidebar":"input",className:$("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));JA.displayName="SidebarInput";const yx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"header",className:$("flex flex-col gap-2 p-4",e),...n}));yx.displayName="SidebarHeader";const bx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"footer",className:$("flex flex-col gap-2 p-4",e),...n}));bx.displayName="SidebarFooter";const eR=k.forwardRef(({className:e,...n},r)=>d.jsx(qA,{ref:r,"data-sidebar":"separator",className:$("mx-2 w-auto bg-sidebar-border",e),...n}));eR.displayName="SidebarSeparator";const xx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"content",className:$("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));xx.displayName="SidebarContent";const wx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"group",className:$("relative flex w-full min-w-0 flex-col p-4",e),...n}));wx.displayName="SidebarGroup";const tR=k.forwardRef(({className:e,asChild:n=!1,...r},o)=>{const l=n?Xr:"div";return d.jsx(l,{ref:o,"data-sidebar":"group-label",className:$("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});tR.displayName="SidebarGroupLabel";const nR=k.forwardRef(({className:e,asChild:n=!1,...r},o)=>{const l=n?Xr:"button";return d.jsx(l,{ref:o,"data-sidebar":"group-action",className:$("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})});nR.displayName="SidebarGroupAction";const aR=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"group-content",className:$("w-full text-sm",e),...n}));aR.displayName="SidebarGroupContent";const Th=k.forwardRef(({className:e,...n},r)=>d.jsx("ul",{ref:r,"data-sidebar":"menu",className:$("flex w-full min-w-0 flex-col gap-1",e),...n}));Th.displayName="SidebarMenu";const fn=k.forwardRef(({className:e,...n},r)=>d.jsx("li",{ref:r,"data-sidebar":"menu-item",className:$("group/menu-item relative",e),...n}));fn.displayName="SidebarMenuItem";const rR=Di("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),hn=k.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:o="default",tooltip:l,className:u,...c},h)=>{const p=e?Xr:"button",{isMobile:g,state:y}=fc(),v=d.jsx(p,{ref:h,"data-sidebar":"menu-button","data-size":o,"data-active":n,className:$(rR({variant:r,size:o}),u),...c});return l?(typeof l=="string"&&(l={children:l}),d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:v}),d.jsx(Ua,{side:"right",align:"center",hidden:y!=="collapsed"||g,...l})]})):v});hn.displayName="SidebarMenuButton";const iR=k.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...o},l)=>{const u=n?Xr:"button";return d.jsx(u,{ref:l,"data-sidebar":"menu-action",className:$("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o})});iR.displayName="SidebarMenuAction";const oR=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:$("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));oR.displayName="SidebarMenuBadge";const sR=k.forwardRef(({className:e,showIcon:n=!1,...r},o)=>{const l=k.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return d.jsxs("div",{ref:o,"data-sidebar":"menu-skeleton",className:$("rounded-md h-8 flex gap-2 px-2 items-center",e),...r,children:[n&&d.jsx(ke,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),d.jsx(ke,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});sR.displayName="SidebarMenuSkeleton";const lR=k.forwardRef(({className:e,...n},r)=>d.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:$("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));lR.displayName="SidebarMenuSub";const uR=k.forwardRef(({...e},n)=>d.jsx("li",{ref:n,...e}));uR.displayName="SidebarMenuSubItem";const cR=k.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:o,...l},u)=>{const c=e?Xr:"a";return d.jsx(c,{ref:u,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:$("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...l})});cR.displayName="SidebarMenuSubButton";function dR(){const e=Q1(),n=aE(),r=()=>{e?.logout(),n({to:"/login"})},o=e?.authRequired??!1;return d.jsxs(gx,{children:[d.jsx(yx,{children:d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 76 76",className:"size-11","aria-label":"Prefect Logo",children:[d.jsx("title",{children:"Prefect Logo"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M37.987 49.464 15.89 38v22.944l.013-.006L38 72.402V49.457z",clipRule:"evenodd"})]})}),d.jsx(xx,{children:d.jsx(wx,{children:d.jsxs(Th,{children:[d.jsx(fn,{children:d.jsx(Wt,{to:"/dashboard",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Dashboard"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/runs",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Runs"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/flows",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Flows"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/deployments",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Deployments"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/work-pools",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Work Pools"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/blocks",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Blocks"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/variables",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Variables"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/automations",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Automations"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/events",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Event Feed"})})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/concurrency-limits",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Concurrency"})})})})]})})}),d.jsx(bx,{children:d.jsxs(Th,{children:[d.jsx(fn,{children:d.jsx("a",{href:"https://prefect.io/cloud-vs-oss?utm_source=oss&utm_medium=oss&utm_campaign=oss&utm_term=none&utm_content=none",target:"_blank",rel:"noreferrer",children:d.jsx(hn,{asChild:!0,children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{children:"Ready to scale?"}),d.jsx(it,{size:"sm",children:"Upgrade"})]})})})}),d.jsx(fn,{children:d.jsx(hn,{asChild:!0,children:d.jsx("span",{children:"Join the community"})})}),d.jsx(fn,{children:d.jsx(Wt,{to:"/settings",children:({isActive:l})=>d.jsx(hn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Settings"})})})}),o&&d.jsx(fn,{children:d.jsxs(hn,{onClick:r,children:[d.jsx(v3,{className:"h-4 w-4"}),d.jsx("span",{children:"Logout"})]})})]})})]})}var fR=(e,n,r,o,l,u,c,h)=>{let p=document.documentElement,g=["light","dark"];function y(w){(Array.isArray(e)?e:[e]).forEach(E=>{let C=E==="class",D=C&&u?l.map(_=>u[_]||_):l;C?(p.classList.remove(...D),p.classList.add(u&&u[w]?u[w]:w)):p.setAttribute(E,w)}),v(w)}function v(w){h&&g.includes(w)&&(p.style.colorScheme=w)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)y(o);else try{let w=localStorage.getItem(n)||r,E=c&&w==="system"?b():w;y(E)}catch{}},rb=["light","dark"],Sx="(prefers-color-scheme: dark)",hR=typeof window>"u",vm=k.createContext(void 0),mR={setTheme:e=>{},themes:[]},pR=()=>{var e;return(e=k.useContext(vm))!=null?e:mR},vR=e=>k.useContext(vm)?k.createElement(k.Fragment,null,e.children):k.createElement(yR,{...e}),gR=["light","dark"],yR=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=gR,defaultTheme:c=r?"system":"light",attribute:h="data-theme",value:p,children:g,nonce:y,scriptProps:v})=>{let[b,w]=k.useState(()=>xR(l,c)),[E,C]=k.useState(()=>b==="system"?Wf():b),D=p?Object.values(p):u,_=k.useCallback(O=>{let I=O;if(!I)return;O==="system"&&r&&(I=Wf());let S=p?p[I]:I,U=n?wR(y):null,F=document.documentElement,L=B=>{B==="class"?(F.classList.remove(...D),S&&F.classList.add(S)):B.startsWith("data-")&&(S?F.setAttribute(B,S):F.removeAttribute(B))};if(Array.isArray(h)?h.forEach(L):L(h),o){let B=rb.includes(c)?c:null,K=rb.includes(I)?I:B;F.style.colorScheme=K}U?.()},[y]),A=k.useCallback(O=>{let I=typeof O=="function"?O(b):O;w(I);try{localStorage.setItem(l,I)}catch{}},[b]),N=k.useCallback(O=>{let I=Wf(O);C(I),b==="system"&&r&&!e&&_("system")},[b,e]);k.useEffect(()=>{let O=window.matchMedia(Sx);return O.addListener(N),N(O),()=>O.removeListener(N)},[N]),k.useEffect(()=>{let O=I=>{I.key===l&&(I.newValue?w(I.newValue):A(c))};return window.addEventListener("storage",O),()=>window.removeEventListener("storage",O)},[A]),k.useEffect(()=>{_(e??b)},[e,b]);let M=k.useMemo(()=>({theme:b,setTheme:A,forcedTheme:e,resolvedTheme:b==="system"?E:b,themes:r?[...u,"system"]:u,systemTheme:r?E:void 0}),[b,A,e,E,r,u]);return k.createElement(vm.Provider,{value:M},k.createElement(bR,{forcedTheme:e,storageKey:l,attribute:h,enableSystem:r,enableColorScheme:o,defaultTheme:c,value:p,themes:u,nonce:y,scriptProps:v}),g)},bR=k.memo(({forcedTheme:e,storageKey:n,attribute:r,enableSystem:o,enableColorScheme:l,defaultTheme:u,value:c,themes:h,nonce:p,scriptProps:g})=>{let y=JSON.stringify([r,n,u,e,h,c,o,l]).slice(1,-1);return k.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${fR.toString()})(${y})`}})}),xR=(e,n)=>{if(hR)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||n},wR=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},Wf=e=>(e||(e=window.matchMedia(Sx)),e.matches?"dark":"light");function SR(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const ER=e=>{switch(e){case"success":return DR;case"info":return kR;case"warning":return CR;case"error":return NR;default:return null}},_R=Array(12).fill(0),TR=({visible:e,className:n})=>V.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":e},V.createElement("div",{className:"sonner-spinner"},_R.map((r,o)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),DR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),CR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),kR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),NR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),AR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),RR=()=>{const[e,n]=V.useState(document.hidden);return V.useEffect(()=>{const r=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Dh=1;class jR{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;const{message:o,...l}=n,u=typeof n?.id=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:Dh++,c=this.toasts.find(p=>p.id===u),h=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),c?this.toasts=this.toasts.map(p=>p.id===u?(this.publish({...p,...n,id:u,title:o}),{...p,...n,id:u,dismissible:h,title:o}):p):this.addToast({title:o,...l,dismissible:h,id:u}),u},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:n,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const l=Promise.resolve(n instanceof Function?n():n);let u=o!==void 0,c;const h=l.then(async g=>{if(c=["resolve",g],V.isValidElement(g))u=!1,this.create({id:o,type:"default",message:g});else if(OR(g)&&!g.ok){u=!1;const v=typeof r.error=="function"?await r.error(`HTTP error! status: ${g.status}`):r.error,b=typeof r.description=="function"?await r.description(`HTTP error! status: ${g.status}`):r.description,E=typeof v=="object"&&!V.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:b,...E})}else if(g instanceof Error){u=!1;const v=typeof r.error=="function"?await r.error(g):r.error,b=typeof r.description=="function"?await r.description(g):r.description,E=typeof v=="object"&&!V.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:b,...E})}else if(r.success!==void 0){u=!1;const v=typeof r.success=="function"?await r.success(g):r.success,b=typeof r.description=="function"?await r.description(g):r.description,E=typeof v=="object"&&!V.isValidElement(v)?v:{message:v};this.create({id:o,type:"success",description:b,...E})}}).catch(async g=>{if(c=["reject",g],r.error!==void 0){u=!1;const y=typeof r.error=="function"?await r.error(g):r.error,v=typeof r.description=="function"?await r.description(g):r.description,w=typeof y=="object"&&!V.isValidElement(y)?y:{message:y};this.create({id:o,type:"error",description:v,...w})}}).finally(()=>{u&&(this.dismiss(o),o=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((g,y)=>h.then(()=>c[0]==="reject"?y(c[1]):g(c[1])).catch(y));return typeof o!="string"&&typeof o!="number"?{unwrap:p}:Object.assign(o,{unwrap:p})},this.custom=(n,r)=>{const o=r?.id||Dh++;return this.create({jsx:n(o),id:o,...r}),o},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Cn=new jR,MR=(e,n)=>{const r=n?.id||Dh++;return Cn.addToast({title:e,...n,id:r}),r},OR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",LR=MR,IR=()=>Cn.toasts,zR=()=>Cn.getActiveToasts(),WL=Object.assign(LR,{success:Cn.success,info:Cn.info,warning:Cn.warning,error:Cn.error,custom:Cn.custom,message:Cn.message,promise:Cn.promise,dismiss:Cn.dismiss,loading:Cn.loading},{getHistory:IR,getToasts:zR});SR("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ju(e){return e.label!==void 0}const FR=3,UR="24px",qR="16px",ib=4e3,BR=356,PR=14,HR=45,$R=200;function Aa(...e){return e.filter(Boolean).join(" ")}function QR(e){const[n,r]=e.split("-"),o=[];return n&&o.push(n),r&&o.push(r),o}const VR=e=>{var n,r,o,l,u,c,h,p,g;const{invert:y,toast:v,unstyled:b,interacting:w,setHeights:E,visibleToasts:C,heights:D,index:_,toasts:A,expanded:N,removeToast:M,defaultRichColors:O,closeButton:I,style:S,cancelButtonStyle:U,actionButtonStyle:F,className:L="",descriptionClassName:B="",duration:K,position:se,gap:ae,expandByDefault:ce,classNames:j,icons:Y,closeButtonAriaLabel:le="Close toast"}=e,[de,fe]=V.useState(null),[pe,G]=V.useState(null),[X,ue]=V.useState(!1),[re,ee]=V.useState(!1),[ve,ge]=V.useState(!1),[Ne,ot]=V.useState(!1),[cn,sn]=V.useState(!1),[Ea,Zt]=V.useState(0),[Qn,Vn]=V.useState(0),Rn=V.useRef(v.duration||K||ib),sa=V.useRef(null),_t=V.useRef(null),Ha=_===0,_a=_+1<=C,Pt=v.type,la=v.dismissible!==!1,Ht=v.className||"",ei=v.descriptionClassName||"",$a=V.useMemo(()=>D.findIndex(he=>he.toastId===v.id)||0,[D,v.id]),ki=V.useMemo(()=>{var he;return(he=v.closeButton)!=null?he:I},[v.closeButton,I]),Qa=V.useMemo(()=>v.duration||K||ib,[v.duration,K]),ti=V.useRef(0),ua=V.useRef(0),Ni=V.useRef(0),Ta=V.useRef(null),[Va,Jt]=se.split("-"),jn=V.useMemo(()=>D.reduce((he,ht,It)=>It>=$a?he:he+ht.height,0),[D,$a]),Vt=RR(),Ai=v.invert||y,ni=Pt==="loading";ua.current=V.useMemo(()=>$a*ae+jn,[$a,jn]),V.useEffect(()=>{Rn.current=Qa},[Qa]),V.useEffect(()=>{ue(!0)},[]),V.useEffect(()=>{const he=_t.current;if(he){const ht=he.getBoundingClientRect().height;return Vn(ht),E(It=>[{toastId:v.id,height:ht,position:v.position},...It]),()=>E(It=>It.filter(Gt=>Gt.toastId!==v.id))}},[E,v.id]),V.useLayoutEffect(()=>{if(!X)return;const he=_t.current,ht=he.style.height;he.style.height="auto";const It=he.getBoundingClientRect().height;he.style.height=ht,Vn(It),E(Gt=>Gt.find(ct=>ct.toastId===v.id)?Gt.map(ct=>ct.toastId===v.id?{...ct,height:It}:ct):[{toastId:v.id,height:It,position:v.position},...Gt])},[X,v.title,v.description,E,v.id,v.jsx,v.action,v.cancel]);const De=V.useCallback(()=>{ee(!0),Zt(ua.current),E(he=>he.filter(ht=>ht.toastId!==v.id)),setTimeout(()=>{M(v)},$R)},[v,M,E,ua]);V.useEffect(()=>{if(v.promise&&Pt==="loading"||v.duration===1/0||v.type==="loading")return;let he;return N||w||Vt?(()=>{if(Ni.current<ti.current){const Gt=new Date().getTime()-ti.current;Rn.current=Rn.current-Gt}Ni.current=new Date().getTime()})():Rn.current!==1/0&&(ti.current=new Date().getTime(),he=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),De()},Rn.current)),()=>clearTimeout(he)},[N,w,v,Pt,Vt,De]),V.useEffect(()=>{v.delete&&(De(),v.onDismiss==null||v.onDismiss.call(v,v))},[De,v.delete]);function He(){var he;if(Y?.loading){var ht;return V.createElement("div",{className:Aa(j?.loader,v==null||(ht=v.classNames)==null?void 0:ht.loader,"sonner-loader"),"data-visible":Pt==="loading"},Y.loading)}return V.createElement(TR,{className:Aa(j?.loader,v==null||(he=v.classNames)==null?void 0:he.loader),visible:Pt==="loading"})}const Te=v.icon||Y?.[Pt]||ER(Pt);var Ue,wt;return V.createElement("li",{tabIndex:0,ref:_t,className:Aa(L,Ht,j?.toast,v==null||(n=v.classNames)==null?void 0:n.toast,j?.default,j?.[Pt],v==null||(r=v.classNames)==null?void 0:r[Pt]),"data-sonner-toast":"","data-rich-colors":(Ue=v.richColors)!=null?Ue:O,"data-styled":!(v.jsx||v.unstyled||b),"data-mounted":X,"data-promise":!!v.promise,"data-swiped":cn,"data-removed":re,"data-visible":_a,"data-y-position":Va,"data-x-position":Jt,"data-index":_,"data-front":Ha,"data-swiping":ve,"data-dismissible":la,"data-type":Pt,"data-invert":Ai,"data-swipe-out":Ne,"data-swipe-direction":pe,"data-expanded":!!(N||ce&&X),"data-testid":v.testId,style:{"--index":_,"--toasts-before":_,"--z-index":A.length-_,"--offset":`${re?Ea:ua.current}px`,"--initial-height":ce?"auto":`${Qn}px`,...S,...v.style},onDragEnd:()=>{ge(!1),fe(null),Ta.current=null},onPointerDown:he=>{he.button!==2&&(ni||!la||(sa.current=new Date,Zt(ua.current),he.target.setPointerCapture(he.pointerId),he.target.tagName!=="BUTTON"&&(ge(!0),Ta.current={x:he.clientX,y:he.clientY})))},onPointerUp:()=>{var he,ht,It;if(Ne||!la)return;Ta.current=null;const Gt=Number(((he=_t.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Gn=Number(((ht=_t.current)==null?void 0:ht.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ct=new Date().getTime()-((It=sa.current)==null?void 0:It.getTime()),pn=de==="x"?Gt:Gn,ai=Math.abs(pn)/ct;if(Math.abs(pn)>=HR||ai>.11){Zt(ua.current),v.onDismiss==null||v.onDismiss.call(v,v),G(de==="x"?Gt>0?"right":"left":Gn>0?"down":"up"),De(),ot(!0);return}else{var vn,gn;(vn=_t.current)==null||vn.style.setProperty("--swipe-amount-x","0px"),(gn=_t.current)==null||gn.style.setProperty("--swipe-amount-y","0px")}sn(!1),ge(!1),fe(null)},onPointerMove:he=>{var ht,It,Gt;if(!Ta.current||!la||((ht=window.getSelection())==null?void 0:ht.toString().length)>0)return;const ct=he.clientY-Ta.current.y,pn=he.clientX-Ta.current.x;var ai;const vn=(ai=e.swipeDirections)!=null?ai:QR(se);!de&&(Math.abs(pn)>1||Math.abs(ct)>1)&&fe(Math.abs(pn)>Math.abs(ct)?"x":"y");let gn={x:0,y:0};const Ri=ca=>1/(1.5+Math.abs(ca)/20);if(de==="y"){if(vn.includes("top")||vn.includes("bottom"))if(vn.includes("top")&&ct<0||vn.includes("bottom")&&ct>0)gn.y=ct;else{const ca=ct*Ri(ct);gn.y=Math.abs(ca)<Math.abs(ct)?ca:ct}}else if(de==="x"&&(vn.includes("left")||vn.includes("right")))if(vn.includes("left")&&pn<0||vn.includes("right")&&pn>0)gn.x=pn;else{const ca=pn*Ri(pn);gn.x=Math.abs(ca)<Math.abs(pn)?ca:pn}(Math.abs(gn.x)>0||Math.abs(gn.y)>0)&&sn(!0),(It=_t.current)==null||It.style.setProperty("--swipe-amount-x",`${gn.x}px`),(Gt=_t.current)==null||Gt.style.setProperty("--swipe-amount-y",`${gn.y}px`)}},ki&&!v.jsx&&Pt!=="loading"?V.createElement("button",{"aria-label":le,"data-disabled":ni,"data-close-button":!0,onClick:ni||!la?()=>{}:()=>{De(),v.onDismiss==null||v.onDismiss.call(v,v)},className:Aa(j?.closeButton,v==null||(o=v.classNames)==null?void 0:o.closeButton)},(wt=Y?.close)!=null?wt:AR):null,(Pt||v.icon||v.promise)&&v.icon!==null&&(Y?.[Pt]!==null||v.icon)?V.createElement("div",{"data-icon":"",className:Aa(j?.icon,v==null||(l=v.classNames)==null?void 0:l.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||He():null,v.type!=="loading"?Te:null):null,V.createElement("div",{"data-content":"",className:Aa(j?.content,v==null||(u=v.classNames)==null?void 0:u.content)},V.createElement("div",{"data-title":"",className:Aa(j?.title,v==null||(c=v.classNames)==null?void 0:c.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?V.createElement("div",{"data-description":"",className:Aa(B,ei,j?.description,v==null||(h=v.classNames)==null?void 0:h.description)},typeof v.description=="function"?v.description():v.description):null),V.isValidElement(v.cancel)?v.cancel:v.cancel&&ju(v.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||U,onClick:he=>{ju(v.cancel)&&la&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,he),De())},className:Aa(j?.cancelButton,v==null||(p=v.classNames)==null?void 0:p.cancelButton)},v.cancel.label):null,V.isValidElement(v.action)?v.action:v.action&&ju(v.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||F,onClick:he=>{ju(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,he),!he.defaultPrevented&&De())},className:Aa(j?.actionButton,v==null||(g=v.classNames)==null?void 0:g.actionButton)},v.action.label):null)};function ob(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function GR(e,n){const r={};return[e,n].forEach((o,l)=>{const u=l===1,c=u?"--mobile-offset":"--offset",h=u?qR:UR;function p(g){["top","right","bottom","left"].forEach(y=>{r[`${c}-${y}`]=typeof g=="number"?`${g}px`:g})}typeof o=="number"||typeof o=="string"?p(o):typeof o=="object"?["top","right","bottom","left"].forEach(g=>{o[g]===void 0?r[`${c}-${g}`]=h:r[`${c}-${g}`]=typeof o[g]=="number"?`${o[g]}px`:o[g]}):p(h)}),r}const YR=V.forwardRef(function(n,r){const{id:o,invert:l,position:u="bottom-right",hotkey:c=["altKey","KeyT"],expand:h,closeButton:p,className:g,offset:y,mobileOffset:v,theme:b="light",richColors:w,duration:E,style:C,visibleToasts:D=FR,toastOptions:_,dir:A=ob(),gap:N=PR,icons:M,containerAriaLabel:O="Notifications"}=n,[I,S]=V.useState([]),U=V.useMemo(()=>o?I.filter(X=>X.toasterId===o):I.filter(X=>!X.toasterId),[I,o]),F=V.useMemo(()=>Array.from(new Set([u].concat(U.filter(X=>X.position).map(X=>X.position)))),[U,u]),[L,B]=V.useState([]),[K,se]=V.useState(!1),[ae,ce]=V.useState(!1),[j,Y]=V.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=V.useRef(null),de=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),fe=V.useRef(null),pe=V.useRef(!1),G=V.useCallback(X=>{S(ue=>{var re;return(re=ue.find(ee=>ee.id===X.id))!=null&&re.delete||Cn.dismiss(X.id),ue.filter(({id:ee})=>ee!==X.id)})},[]);return V.useEffect(()=>Cn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{S(ue=>ue.map(re=>re.id===X.id?{...re,delete:!0}:re))});return}setTimeout(()=>{rE.flushSync(()=>{S(ue=>{const re=ue.findIndex(ee=>ee.id===X.id);return re!==-1?[...ue.slice(0,re),{...ue[re],...X},...ue.slice(re+1)]:[X,...ue]})})})}),[I]),V.useEffect(()=>{if(b!=="system"){Y(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ue})=>{Y(ue?"dark":"light")})}catch{X.addListener(({matches:re})=>{try{Y(re?"dark":"light")}catch(ee){console.error(ee)}})}},[b]),V.useEffect(()=>{I.length<=1&&se(!1)},[I]),V.useEffect(()=>{const X=ue=>{var re;if(c.every(ge=>ue[ge]||ue.code===ge)){var ve;se(!0),(ve=le.current)==null||ve.focus()}ue.code==="Escape"&&(document.activeElement===le.current||(re=le.current)!=null&&re.contains(document.activeElement))&&se(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[c]),V.useEffect(()=>{if(le.current)return()=>{fe.current&&(fe.current.focus({preventScroll:!0}),fe.current=null,pe.current=!1)}},[le.current]),V.createElement("section",{ref:r,"aria-label":`${O} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((X,ue)=>{var re;const[ee,ve]=X.split("-");return U.length?V.createElement("ol",{key:X,dir:A==="auto"?ob():A,tabIndex:-1,ref:le,className:g,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":ee,"data-x-position":ve,style:{"--front-toast-height":`${((re=L[0])==null?void 0:re.height)||0}px`,"--width":`${BR}px`,"--gap":`${N}px`,...C,...GR(y,v)},onBlur:ge=>{pe.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(pe.current=!1,fe.current&&(fe.current.focus({preventScroll:!0}),fe.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||pe.current||(pe.current=!0,fe.current=ge.relatedTarget)},onMouseEnter:()=>se(!0),onMouseMove:()=>se(!0),onMouseLeave:()=>{ae||se(!1)},onDragEnd:()=>se(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},U.filter(ge=>!ge.position&&ue===0||ge.position===X).map((ge,Ne)=>{var ot,cn;return V.createElement(VR,{key:ge.id,icons:M,index:Ne,toast:ge,defaultRichColors:w,duration:(ot=_?.duration)!=null?ot:E,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:l,visibleToasts:D,closeButton:(cn=_?.closeButton)!=null?cn:p,interacting:ae,position:X,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:G,toasts:U.filter(sn=>sn.position==ge.position),heights:L.filter(sn=>sn.position==ge.position),setHeights:B,expandByDefault:h,gap:N,expanded:K,swipeDirections:n.swipeDirections})})):null}))}),KR=({...e})=>{const{theme:n="system"}=pR();return d.jsx(YR,{theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground font-medium",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground font-medium"}},...e})};function WR(e,n){const[r,o]=k.useState(()=>{if(typeof window<"u")try{const l=localStorage.getItem(e);return l?JSON.parse(l):n}catch(l){return console.log(l),n}else return n});return k.useEffect(()=>{typeof window<"u"&&localStorage.setItem(e,JSON.stringify(r))},[e,r]),[r,o]}const sb=["default","achromatopsia","deuteranopia","deuteranomaly","protanopia","protanomaly","tritanomaly","tritanopia"],XR="prefect-color-mode";function lb(e){return`color-mode-${e}`}function ZR(){const[e,n]=WR(XR,"default"),r=k.useCallback(l=>{sb.forEach(u=>{document.body.classList.remove(lb(u))}),document.body.classList.add(lb(l))},[]),o=k.useCallback(l=>{n(l),r(l)},[n,r]);return k.useEffect(()=>{r(e)},[e,r]),{colorMode:e,setColorMode:o,colorModes:sb}}function JR({children:e,...n}){return d.jsx(vR,{...n,children:e})}function ej({children:e}){return ZR(),d.jsx(JR,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,storageKey:"vite-ui-theme",children:d.jsxs(vx,{children:[d.jsx(dR,{}),d.jsx("main",{className:"flex-1 overflow-auto p-4",children:e}),d.jsx(KR,{})]})})}function Ex(){return d.jsx("div",{className:"flex h-screen w-screen items-center justify-center",children:d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 76 76",className:"size-16 animate-pulse text-foreground","aria-label":"Loading",children:[d.jsx("title",{children:"Loading"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M37.987 49.464 15.89 38v22.944l.013-.006L38 72.402V49.457z",clipRule:"evenodd"})]})})}function Sa({className:e,...n}){return d.jsx("div",{"data-slot":"card",className:$("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function Ci({className:e,...n}){return d.jsx("div",{"data-slot":"card-header",className:$("flex flex-col gap-1.5 px-6",e),...n})}function hc({className:e,...n}){return d.jsx("div",{"data-slot":"card-title",className:$("leading-none font-semibold",e),...n})}function tj({className:e,...n}){return d.jsx("div",{"data-slot":"card-description",className:$("text-muted-foreground text-sm",e),...n})}function Ba({className:e,...n}){return d.jsx("div",{"data-slot":"card-content",className:$("px-6",e),...n})}function XL({className:e,...n}){return d.jsx("div",{"data-slot":"card-footer",className:$("flex items-center px-6",e),...n})}const nj=5e3,aj=6e4;function Xf(e){const n=nj*2**e;return Math.min(n,aj)}function rj(e){switch(e){case"network-error":return"ServerCrash";case"server-error":return"Server";case"client-error":return"Ban";default:return"Server"}}function ij(e){switch(e){case"network-error":return"text-orange-500";case"server-error":return"text-red-500";case"client-error":return"text-yellow-500";default:return"text-muted-foreground"}}function oj({error:e,onRetry:n}){const r=k.useRef(0),[o,l]=k.useState(Xf(0)/1e3),[u,c]=k.useState(!1),h=k.useCallback(()=>{c(!0),n(),r.current+=1;const v=Xf(r.current);l(v/1e3),setTimeout(()=>c(!1),500)},[n]),p=k.useCallback(()=>{c(!0),n(),r.current=0,l(Xf(0)/1e3),setTimeout(()=>c(!1),500)},[n]);k.useEffect(()=>{const v=setInterval(()=>{l(b=>b<=1?(h(),b):b-1)},1e3);return()=>clearInterval(v)},[h]);const g=rj(e.type),y=ij(e.type);return d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background p-4",children:d.jsx(Sa,{className:"w-full max-w-md",children:d.jsxs(Ba,{className:"flex flex-col items-center gap-6 pt-6 text-center",children:[d.jsx("div",{className:`rounded-full bg-muted p-4 ${y}`,children:d.jsx(vt,{id:g,className:"size-12"})}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("h1",{className:"text-2xl font-bold",children:e.message}),e.details&&d.jsx("p",{className:"text-muted-foreground",children:e.details}),e.statusCode&&d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Status code: ",e.statusCode]})]}),d.jsxs("div",{className:"flex flex-col items-center gap-3",children:[d.jsxs(it,{onClick:p,disabled:u,className:"gap-2",children:[d.jsx(vt,{id:"RefreshCw",className:`size-4 ${u?"animate-spin":""}`}),u?"Retrying...":"Retry now"]}),d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Automatically retrying in ",o,"s"]})]}),d.jsxs("div",{className:"border-t pt-4 w-full",children:[d.jsx("p",{className:"text-xs text-muted-foreground",children:"Make sure the Prefect server is running:"}),d.jsx("code",{className:"mt-2 block rounded bg-muted px-3 py-2 text-xs",children:"prefect server start"})]})]})})})}const sj=!1;function lj({error:e,reset:n}){const r=oE(),o=jo(e,"Failed to initialize application"),l=k.useCallback(()=>{Js.reset(),n(),r.invalidate()},[n,r]);return d.jsx(oj,{error:o,onRetry:l})}function uj(){const e=sE({select:l=>l.location}),n=Q1(),r=e.pathname==="/login";if(n){if(n.isLoading)return d.jsx(Ex,{});if(n.authRequired&&!n.isAuthenticated&&!r)return d.jsx(lE,{to:"/login",search:{redirectTo:e.href},replace:!0})}const o=d.jsxs(d.Fragment,{children:[d.jsx(uE,{}),sj]});return r?o:d.jsx(ej,{children:o})}const Fe=iE()({beforeLoad:({context:e,location:n})=>{n.pathname==="/login"||!e.auth||e.auth.isLoading||e.auth.authRequired&&!e.auth.isAuthenticated&&rl({to:"/login",search:{redirectTo:n.href},throw:!0})},component:uj,errorComponent:lj}),cj=()=>Ae(()=>import("./settings-DV4ewZ_4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),dj=Be("/settings")({component:Re(cj,"component"),loader:({context:e})=>Promise.all([e.queryClient.ensureQueryData(Wb()),e.queryClient.ensureQueryData(Kb())]),wrapInSuspense:!0}),Lt=e=>{const n="input"in e?e.input:"input",r="output"in e?e.output:"output",o="schema"in e?e.schema._input:e._input,l="schema"in e?e.schema._output:e._output;return{types:{input:n==="output"?l:o,output:r==="input"?o:l},parse:u=>"schema"in e?e.schema.parse(u):e.parse(u)}},fj=()=>Ae(()=>import("./login-C3PhSGQJ.js"),__vite__mapDeps([8,1,2,4,5,6,7])),hj=xt({redirectTo:ze().optional()}),mj=Be("/login")({validateSearch:Lt(hj),beforeLoad:({context:e,search:n})=>{!e.auth.isLoading&&e.auth.isAuthenticated&&rl({to:n.redirectTo??"/dashboard",throw:!0})},component:Re(fj,"component")}),Qt={all:()=>["deployments"],lists:()=>[...Qt.all(),"list"],"lists-paginate":()=>[...Qt.lists(),"paginate"],"list-paginate":e=>[...Qt["lists-paginate"](),e],"lists-filter":()=>[...Qt.lists(),"filter"],"list-filter":e=>[...Qt["lists-filter"](),e],counts:()=>[...Qt.all(),"counts"],count:e=>[...Qt.counts(),e],details:()=>[...Qt.all(),"details"],detail:e=>[...Qt.details(),e]},gm=(e={page:1,limit:10,sort:"NAME_ASC"})=>be({queryKey:Qt["list-paginate"](e),queryFn:async()=>{const n=await(await ne()).POST("/deployments/paginate",{body:e});if(!n.data)throw new Error("'data' expected");return n.data},placeholderData:qe}),_x=(e={offset:0,sort:"CREATED_DESC"},{enabled:n=!0}={})=>be({queryKey:Qt["list-filter"](e),queryFn:async()=>(await(await ne()).POST("/deployments/filter",{body:e})).data??[],placeholderData:qe,enabled:n}),pj=(e={offset:0,sort:"NAME_ASC"})=>be({queryKey:Qt.count(e),queryFn:async()=>(await(await ne()).POST("/deployments/count",{body:e})).data??0,placeholderData:qe}),ul=e=>be({queryKey:Qt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/deployments/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),ZL=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>{const l=await(await ne()).POST("/deployments/",{body:o});if(!l.data)throw new Error("'data' expected");return l.data},onSettled:async()=>await e.invalidateQueries({queryKey:Qt.lists()})});return{createDeployment:n,...r}},JL=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PATCH("/deployments/{id}",{body:l,params:{path:{id:o}}}),onSettled:async()=>await e.invalidateQueries({queryKey:Qt.all()})});return{updateDeployment:n,...r}},eI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/deployments/{id}",{params:{path:{id:o}}}),onSettled:async()=>await e.invalidateQueries({queryKey:Qt.all()})});return{deleteDeployment:n,...r}},tI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({deployment_id:o,...l})=>(await ne()).POST("/deployments/{id}/schedules",{body:[l],params:{path:{id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Qt.all()})});return{createDeploymentSchedule:n,...r}},nI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({deployment_id:o,schedule_id:l,...u})=>(await ne()).PATCH("/deployments/{id}/schedules/{schedule_id}",{body:u,params:{path:{schedule_id:l,id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Qt.all()})});return{updateDeploymentSchedule:n,...r}},aI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({deployment_id:o,schedule_id:l})=>(await ne()).DELETE("/deployments/{id}/schedules/{schedule_id}",{params:{path:{schedule_id:l,id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Qt.all()})});return{deleteDeploymentSchedule:n,...r}};function Tx(e){return{flows:e.flows,flow_runs:e.flow_runs,task_runs:e.task_runs,deployments:e.deployments,work_pools:e.work_pools,work_pool_queues:e.work_pool_queues}}const at={all:()=>["flowRuns"],lists:()=>[...at.all(),"list"],filter:e=>[...at.lists(),"filter",e],paginate:e=>[...at.lists(),"paginate",e],counts:()=>[...at.all(),"count"],count:e=>[...at.counts(),e],lateness:()=>[...at.all(),"lateness"],latenessWithFilter:e=>[...at.lateness(),e],history:()=>[...at.all(),"history"],historyWithFilter:e=>[...at.history(),e],details:()=>[...at.all(),"details"],detail:e=>[...at.details(),e],input:(e,n)=>[...at.detail(e),"input",n]},mr=(e={sort:"ID_DESC",offset:0},n=3e4)=>be({queryKey:at.filter(e),queryFn:async()=>(await(await ne()).POST("/flow_runs/filter",{body:e})).data??[],staleTime:1e3,refetchInterval:n}),Kr=(e={page:1,sort:"START_TIME_DESC"},n=3e4)=>be({queryKey:at.paginate(e),queryFn:async()=>{const r=await(await ne()).POST("/flow_runs/paginate",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),vj=e=>be({queryKey:at.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/flow_runs/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error(`Received empty response from server for flow run ${e}`);return n.data}}),rI=(e,n)=>be({queryKey:at.input(e,n),queryFn:async()=>(await(await ne()).GET("/flow_runs/{id}/input/{key}",{params:{path:{id:e,key:n}}})).data}),pt=(e={},n=6e4)=>be({queryKey:at.count(e),queryFn:async()=>(await(await ne()).POST("/flow_runs/count",{body:e})).data??0,refetchInterval:n,placeholderData:qe}),Dx=(e={sort:"ID_DESC",offset:0},n=3e4)=>be({queryKey:at.latenessWithFilter(e),queryFn:async()=>(await(await ne()).POST("/flow_runs/lateness",{body:e})).data??null,refetchInterval:n,placeholderData:qe}),gj=(e={sort:"EXPECTED_START_TIME_DESC",limit:1e3,offset:0},n=3e4)=>be({queryKey:at.historyWithFilter(e),queryFn:async()=>(await(await ne()).POST("/ui/flow_runs/history",{body:e})).data??[],placeholderData:qe,staleTime:1e3,refetchInterval:n}),iI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/flow_runs/{id}",{params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:at.lists()})});return{deleteFlowRun:n,...r}},oI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>{const u=await(await ne()).POST("/deployments/{id}/create_flow_run",{body:l,params:{path:{id:o}}});if(!u.data)throw new Error("'data' expected");return u.data},onSuccess:()=>e.invalidateQueries({queryKey:at.lists()})});return{createDeploymentFlowRun:n,...r}},sI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>{const u=await(await ne()).POST("/flow_runs/{id}/set_state",{params:{path:{id:o}},body:l});if(!u.data)throw new Error("'data' expected");return u.data},onMutate:async({id:o,state:l})=>{await e.cancelQueries({queryKey:at.detail(o)});const u=e.getQueryData(at.detail(o));return u?.state&&e.setQueryData(at.detail(o),{...u,state:{id:u.state.id,type:l.type,name:l.name??u.state.name,message:l.message??u.state.message,timestamp:new Date().toISOString(),data:u.state.data,state_details:u.state.state_details}}),{previousFlowRun:u}},onError:(o,{id:l},u)=>{u?.previousFlowRun&&e.setQueryData(at.detail(l),u.previousFlowRun)},onSettled:(o,l,{id:u})=>{Promise.all([e.invalidateQueries({queryKey:at.lists()}),e.invalidateQueries({queryKey:at.detail(u)})])}});return{setFlowRunState:n,...r}},lI=()=>{const e=Le(),{mutate:n,mutateAsync:r,...o}=Ie({mutationFn:async({id:l,runInput:u})=>{const c=await(await ne()).POST("/flow_runs/{id}/resume",{params:{path:{id:l}},body:u?{run_input:u}:void 0});if(!c.data)throw new Error("'data' expected");if(c.data.status!=="ACCEPT"){const h=c.data.details&&"reason"in c.data.details?c.data.details.reason:"Resume request was not accepted";throw new Error(h??"Resume request was not accepted")}return c.data},onSettled:(l,u,{id:c})=>{Promise.all([e.invalidateQueries({queryKey:at.lists()}),e.invalidateQueries({queryKey:at.detail(c)})])}});return{resumeFlowRun:n,resumeFlowRunAsync:r,...o}},kn={all:()=>["flows"],lists:()=>[...kn.all(),"list"],list:e=>[...kn.lists(),e],paginate:e=>[...kn.lists(),"paginate",e],details:()=>[...kn.all(),"detail"],detail:e=>[...kn.details(),e],deploymentsCount:e=>[...kn.all(),"deploymentsCount",[...e].sort()],nextRuns:e=>[...kn.all(),"nextRuns",[...e].sort()]},nl=(e={offset:0,sort:"CREATED_DESC"},{enabled:n=!0}={})=>be({queryKey:kn.list(e),queryFn:async()=>(await(await ne()).POST("/flows/filter",{body:e})).data??[],staleTime:1e3,placeholderData:qe,enabled:n}),yj=(e={page:1,sort:"NAME_ASC"},n=3e4)=>be({queryKey:kn.paginate(e),queryFn:async()=>{const r=await(await ne()).POST("/flows/paginate",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),tc=e=>be({queryKey:kn.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/flows/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),ub=e=>be({queryKey:kn.list(e),queryFn:async()=>(await(await ne()).POST("/flows/count",{body:e})).data??0}),bj=(e,{enabled:n=!0}={})=>be({queryKey:kn.deploymentsCount(e),queryFn:async()=>(await(await ne()).POST("/ui/flows/count-deployments",{body:{flow_ids:e}})).data??{},staleTime:1e3,placeholderData:qe,enabled:n&&e.length>0}),uI=(e,{enabled:n=!0}={})=>be({queryKey:kn.nextRuns(e),queryFn:async()=>(await(await ne()).POST("/ui/flows/next-runs",{body:{flow_ids:e}})).data??{},staleTime:1e3,placeholderData:qe,enabled:n&&e.length>0}),cI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/flows/{id}",{params:{path:{id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:kn.all()})});return{deleteFlow:n,...r}},jt={all:()=>["taskRuns"],lists:()=>[...jt.all(),"list"],list:e=>[...jt.lists(),e],paginate:e=>[...jt.lists(),"paginate",e],counts:()=>[...jt.all(),"count"],count:e=>[...jt.counts(),e],flowRunsCount:e=>[...jt.counts(),"flow-runs",e],details:()=>[...jt.all(),"details"],detail:e=>[...jt.details(),e]},dI=(e={sort:"ID_DESC",offset:0},n=3e4)=>be({queryKey:jt.list(e),queryFn:async()=>(await(await ne()).POST("/task_runs/filter",{body:e})).data??[],staleTime:1e3,refetchInterval:n}),Cx=(e={page:1,sort:"EXPECTED_START_TIME_DESC"},n=3e4)=>be({queryKey:jt.paginate(e),queryFn:async()=>{const r=await(await ne()).POST("/task_runs/paginate",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),Hn=(e={},n)=>be({queryKey:jt.count(e),queryFn:async()=>(await(await ne()).POST("/task_runs/count",{body:e})).data??0,staleTime:1e3,refetchInterval:n}),qo=e=>be({queryKey:jt.flowRunsCount(e),queryFn:async()=>(await(await ne()).POST("/ui/flow_runs/count-task-runs",{body:{flow_run_ids:e}})).data??{}}),fI=e=>be({queryKey:jt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/ui/task_runs/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error(`Received empty response from server for task run ${e}`);return n.data}}),xj=e=>be({queryKey:jt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/ui/task_runs/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error(`Received empty response from server for task run ${e}`);return n.data}}),hI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>{const u=await(await ne()).POST("/task_runs/{id}/set_state",{params:{path:{id:o}},body:l});if(!u.data)throw new Error("'data' expected");return u.data},onMutate:async({id:o,state:l})=>{await e.cancelQueries({queryKey:jt.detail(o)});const u=e.getQueryData(jt.detail(o));return u?.state&&e.setQueryData(jt.detail(o),{...u,state:{id:u.state.id,type:l.type,name:l.name??u.state.name,message:l.message??u.state.message,timestamp:new Date().toISOString(),data:u.state.data,state_details:u.state.state_details}}),{previousTaskRun:u}},onError:(o,{id:l},u)=>{u?.previousTaskRun&&e.setQueryData(jt.detail(l),u.previousTaskRun)},onSettled:(o,l,{id:u})=>{Promise.all([e.invalidateQueries({queryKey:jt.lists()}),e.invalidateQueries({queryKey:jt.detail(u)})])}});return{setTaskRunState:n,...r}},mI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o})=>(await(await ne()).DELETE("/task_runs/{id}",{params:{path:{id:o}}})).data,onSettled:()=>e.invalidateQueries({queryKey:jt.lists()})});return{deleteTaskRun:n,...r}},ym=(e,n=3e4)=>be({queryKey:[...jt.lists(),"history",e],queryFn:async()=>(await(await ne()).POST("/task_runs/history",{body:e})).data??[],staleTime:1e3,refetchInterval:n}),mn={all:()=>["work_pool_queues"],lists:()=>[...mn.all(),"list"],list:e=>[...mn.lists(),e],details:()=>[...mn.all(),"details"],detail:(e,n)=>[...mn.details(),e,n]},nc=e=>be({queryKey:mn.list(e),queryFn:async()=>{const n=await(await ne()).POST("/work_pools/{work_pool_name}/queues/filter",{params:{path:{work_pool_name:e}},body:{offset:0}});if(!n.data)throw new Error("'data' expected");return n.data},refetchInterval:3e4,placeholderData:qe}),wj=(e,n)=>be({queryKey:mn.detail(e,n),queryFn:async()=>{const r=await(await ne()).GET("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:e,name:n}}});if(!r.data)throw new Error("'data' expected");return r.data}}),pI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r})=>(await ne()).PATCH("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}},body:{is_paused:!0}}),onSuccess:(n,{workPoolName:r,queueName:o})=>{e.invalidateQueries({queryKey:mn.list(r)}),e.invalidateQueries({queryKey:mn.detail(r,o)})}})},vI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r})=>(await ne()).PATCH("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}},body:{is_paused:!1}}),onSuccess:(n,{workPoolName:r,queueName:o})=>{e.invalidateQueries({queryKey:mn.list(r)}),e.invalidateQueries({queryKey:mn.detail(r,o)})}})},gI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,workQueueData:r})=>(await ne()).POST("/work_pools/{work_pool_name}/queues",{params:{path:{work_pool_name:n}},body:r}),onSuccess:(n,{workPoolName:r})=>{e.invalidateQueries({queryKey:mn.list(r)})}})},yI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r,workQueueData:o})=>(await ne()).PATCH("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}},body:o}),onSuccess:(n,{workPoolName:r,queueName:o,workQueueData:l})=>{e.invalidateQueries({queryKey:mn.list(r)}),e.invalidateQueries({queryKey:mn.detail(r,o)}),l.name&&l.name!==o&&e.invalidateQueries({queryKey:mn.detail(r,l.name)})}})},bI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r})=>(await ne()).DELETE("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}}}),onSuccess:(n,{workPoolName:r})=>{e.invalidateQueries({queryKey:mn.list(r)})}})},Rt={all:()=>["work-pools"],lists:()=>[...Rt.all(),"list"],list:e=>[...Rt.lists(),e],counts:()=>[...Rt.all(),"counts"],count:e=>[...Rt.counts(),e],details:()=>[...Rt.all(),"details"],detail:e=>[...Rt.details(),e],detailByName:e=>[...Rt.details(),"by-name",e],workersLists:()=>[...Rt.all(),"workers"],workersList:e=>[...Rt.workersLists(),e]},bm=(e={offset:0},{enabled:n=!0}={})=>be({queryKey:Rt.list(e),queryFn:async()=>{const r=await(await ne()).POST("/work_pools/filter",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},enabled:n,placeholderData:qe}),Sj=(e={})=>be({queryKey:Rt.count(e),queryFn:async()=>(await(await ne()).POST("/work_pools/count",{body:e})).data??0,placeholderData:qe}),kx=e=>be({queryKey:Rt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/work_pools/{name}",{params:{path:{name:e}}});if(!n.data)throw new Error("'data' expected");return n.data},placeholderData:qe}),xI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).PATCH("/work_pools/{name}",{params:{path:{name:o}},body:{is_paused:!0}}),onSettled:()=>e.invalidateQueries({queryKey:Rt.all()})});return{pauseWorkPool:n,...r}},wI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).PATCH("/work_pools/{name}",{params:{path:{name:o}},body:{is_paused:!1}}),onSettled:()=>e.invalidateQueries({queryKey:Rt.all()})});return{resumeWorkPool:n,...r}},SI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/work_pools/{name}",{params:{path:{name:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Rt.all()})});return{deleteWorkPool:n,...r}},EI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/work_pools/",{body:o}),onSuccess:()=>{e.invalidateQueries({queryKey:Rt.lists()}),e.invalidateQueries({queryKey:Rt.counts()})}});return{createWorkPool:n,...r}},_I=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({name:o,workPool:l})=>(await ne()).PATCH("/work_pools/{name}",{params:{path:{name:o}},body:l}),onSuccess:(o,{name:l})=>{e.invalidateQueries({queryKey:Rt.lists()}),e.invalidateQueries({queryKey:Rt.detail(l)})}});return{updateWorkPool:n,...r}},xm=e=>be({queryKey:Rt.workersList(e),queryFn:async()=>{const n=await(await ne()).POST("/work_pools/{work_pool_name}/workers/filter",{params:{path:{work_pool_name:e}},body:{offset:0}});if(!n.data)throw new Error("'data' expected");return n.data},refetchInterval:3e4,placeholderData:qe}),TI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({workPoolName:o,workerName:l})=>(await ne()).DELETE("/work_pools/{work_pool_name}/workers/{name}",{params:{path:{work_pool_name:o,name:l}}}),onSuccess:(o,{workPoolName:l})=>{e.invalidateQueries({queryKey:Rt.workersList(l)}),e.invalidateQueries({queryKey:Rt.lists()})}});return{deleteWorker:n,...r}};function Ej({...e}){return d.jsx(DE,{"data-slot":"accordion",...e})}function _j({className:e,...n}){return d.jsx(CE,{"data-slot":"accordion-item",className:$("border-b last:border-b-0",e),...n})}function Tj({className:e,children:n,...r}){return d.jsx(kE,{className:"flex",children:d.jsxs(NE,{"data-slot":"accordion-trigger",className:$("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...r,children:[n,d.jsx(ll,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function Dj({className:e,children:n,...r}){return d.jsx(AE,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:d.jsx("div",{className:$("pt-0 pb-4",e),children:n})})}function Cj(e){return d.jsxs("svg",{viewBox:"0 0 92 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No scheduled or late flow runs",...e,children:[d.jsx("rect",{x:"88.2922",y:"96.4243",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2922 96.4243)",fill:"#FFEAC4"}),d.jsx("rect",{x:"69.6321",y:"22.974",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 69.6321 22.974)",fill:"#2C0C00"}),d.jsx("rect",{x:"88.2922",y:"78.1342",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2922 78.1342)",fill:"#FFEAC4"}),d.jsx("rect",{x:"52.6266",y:"97.3386",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6266 97.3386)",fill:"#FFEAC4"}),d.jsx("rect",{x:"52.6266",y:"42.4686",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6266 42.4686)",fill:"#FFB838"}),d.jsx("rect",{x:"70.9166",y:"60.7586",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9166 60.7586)",fill:"#FFAD1A"}),d.jsx("rect",{x:"53.5411",y:"79.9631",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5411 79.9631)",fill:"#FFEAC4"}),d.jsx("rect",{x:"70.9166",y:"97.3386",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9166 97.3386)",fill:"#FFEAC4"}),d.jsx("rect",{x:"52.6266",y:"115.629",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6266 115.629)",fill:"#FFEAC4"}),d.jsx("rect",{x:"53.5411",y:"61.6732",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5411 61.6732)",fill:"#FFAD1A"}),d.jsx("rect",{x:"70.0022",y:"41.5541",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.0022 41.5541)",fill:"#2C0C00"}),d.jsx("rect",{x:"70.0022",y:"114.714",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.0022 114.714)",fill:"#FFEAC4"}),d.jsx("rect",{x:"70.9166",y:"79.0486",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9166 79.0486)",fill:"#FFEAC4"}),d.jsx("rect",{x:"33.4221",y:"114.714",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4221 114.714)",fill:"#FFEAC4"}),d.jsx("rect",{x:"34.3365",y:"97.3386",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3365 97.3386)",fill:"#FFEAC4"}),d.jsx("rect",{x:"34.3365",y:"79.0486",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3365 79.0486)",fill:"#FFEAC4"}),d.jsx("rect",{x:"34.3365",y:"61.1785",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3365 61.1785)",fill:"#FFAD1A"}),d.jsx("rect",{x:"33.4221",y:"41.5541",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4221 41.5541)",fill:"#2C0C00"}),d.jsx("rect",{x:"33.4221",y:"22.974",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4221 22.974)",fill:"#2C0C00"}),d.jsx("rect",{x:"87.3777",y:"113.8",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.3777 113.8)",fill:"#FFEAC4"}),d.jsx("rect",{x:"87.3777",y:"40.6396",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.3777 40.6396)",fill:"#FFB838"}),d.jsx("rect",{x:"14.2175",y:"113.8",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.2175 113.8)",fill:"#FFEAC4"}),d.jsx("rect",{x:"15.1321",y:"96.4243",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1321 96.4243)",fill:"#FFEAC4"}),d.jsx("rect",{x:"15.1321",y:"78.1342",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1321 78.1342)",fill:"#FFEAC4"}),d.jsx("rect",{x:"15.1321",y:"59.8441",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1321 59.8441)",fill:"#FFAD1A"}),d.jsx("rect",{x:"14.2175",y:"40.6396",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.2175 40.6396)",fill:"#FFB838"}),d.jsx("rect",{x:"88.2922",y:"59.8441",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2922 59.8441)",fill:"#FFAD1A"})]})}function kj(e){return d.jsxs("svg",{viewBox:"0 0 157 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No failed flow runs",...e,children:[d.jsx("rect",{x:"16.2571",y:"88.6859",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 16.2571 88.6859)",fill:"#A4E392"}),d.jsx("rect",{x:"81.3142",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 89.6)",fill:"#306739"}),d.jsx("rect",{x:"117.886",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 117.886 89.6)",fill:"#78D382"}),d.jsx("rect",{x:"15.3428",y:"69.4857",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 15.3428 69.4857)",fill:"#D4F8B5"}),d.jsx("rect",{x:"81.3142",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 71.3143)",fill:"#51A456"}),d.jsx("rect",{x:"117.886",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 117.886 71.3143)",fill:"#78D382"}),d.jsx("rect",{x:"81.3142",y:"53.0286",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 53.0286)",fill:"#78D382"}),d.jsx("rect",{x:"98.6858",y:"33.8286",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 98.6858 33.8286)",fill:"#A4E392"}),d.jsx("rect",{x:"35.4573",y:"89.6002",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 35.4573 89.6002)",fill:"#78D382"}),d.jsx("rect",{x:"99.6001",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 89.6)",fill:"#51A456"}),d.jsx("rect",{x:"135.257",y:"88.6857",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 135.257 88.6857)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 89.6)",fill:"#306739"}),d.jsx("rect",{x:"34.543",y:"70.4",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 34.543 70.4)",fill:"#A4E392"}),d.jsx("rect",{x:"99.6001",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 71.3143)",fill:"#51A456"}),d.jsx("rect",{x:"135.257",y:"70.4",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 135.257 70.4)",fill:"#78D382"}),d.jsx("rect",{x:"97.6287",y:"14.6285",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 97.6287 14.6285)",fill:"#A4E392"}),d.jsx("rect",{x:"61.6287",y:"51.6285",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 61.6287 51.6285)",fill:"#A4E392"}),d.jsx("rect",{x:"80.2571",y:"33.8286",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 80.2571 33.8286)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 71.3143)",fill:"#51A456"}),d.jsx("rect",{x:"35.4573",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 35.4573 107.886)",fill:"#78D382"}),d.jsx("rect",{x:"99.6001",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 107.886)",fill:"#51A456"}),d.jsx("rect",{x:"135.257",y:"106.971",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 135.257 106.971)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 107.886)",fill:"#51A456"}),d.jsx("rect",{x:"34.543",y:"125.257",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 34.543 125.257)",fill:"#A4E392"}),d.jsx("rect",{x:"99.6001",y:"126.171",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 126.171)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"126.171",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 126.171)",fill:"#78D382"}),d.jsx("rect",{x:"16.2571",y:"106.971",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 16.2571 106.971)",fill:"#A4E392"}),d.jsx("rect",{x:"81.3142",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 107.886)",fill:"#51A456"}),d.jsx("rect",{x:"117.886",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 117.886 107.886)",fill:"#78D382"}),d.jsx("rect",{x:"15.3428",y:"124.343",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 15.3428 124.343)",fill:"#D4F8B5"}),d.jsx("rect",{x:"81.3142",y:"126.171",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 126.171)",fill:"#78D382"}),d.jsx("rect",{x:"116.971",y:"125.257",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 116.971 125.257)",fill:"#78D382"})]})}function Nj(e){return d.jsxs("svg",{viewBox:"0 0 111 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No completed flow runs",...e,children:[d.jsx("rect",{x:"54.4553",y:"90.4055",width:"16.461",height:"16.461",rx:"0.7316",transform:"rotate(180 54.4553 90.4055)",fill:"#9B0806"}),d.jsx("rect",{x:"51.7119",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.7119 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"89.2063",y:"88.5764",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 88.5764)",fill:"#FFD3D3"}),d.jsx("rect",{x:"88.2917",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2917 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"53.5408",y:"71.201",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5408 71.201)",fill:"#EB8583"}),d.jsx("rect",{x:"89.2063",y:"70.2865",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 70.2865)",fill:"#EB8583"}),d.jsx("rect",{x:"15.1318",y:"87.6619",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 87.6619)",fill:"#FFD3D3"}),d.jsx("rect",{x:"70.9165",y:"88.5764",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9165 88.5764)",fill:"#EB8583"}),d.jsx("rect",{x:"70.002",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.002 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"106.582",y:"87.6619",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 87.6619)",fill:"#FFD3D3"}),d.jsx("rect",{x:"34.3364",y:"88.5764",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3364 88.5764)",fill:"#FFD3D3"}),d.jsx("rect",{x:"33.4219",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4219 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"15.1318",y:"69.372",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 69.372)",fill:"#FFD3D3"}),d.jsx("rect",{x:"71.8308",y:"71.201",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 71.8308 71.201)",fill:"#9B0806"}),d.jsx("rect",{x:"106.582",y:"69.372",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 69.372)",fill:"#FFD3D3"}),d.jsx("rect",{x:"35.2507",y:"71.201",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 35.2507 71.201)",fill:"#9B0806"}),d.jsx("rect",{x:"15.1318",y:"32.7919",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 32.7919)",fill:"#FFD3D3"}),d.jsx("rect",{x:"70.002",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.002 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"70.9165",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9165 33.7064)",fill:"#EB8583"}),d.jsx("rect",{x:"106.582",y:"32.7919",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 32.7919)",fill:"#FFD3D3"}),d.jsx("rect",{x:"33.4219",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4219 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"34.3364",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3364 33.7064)",fill:"#FFD3D3"}),d.jsx("rect",{x:"15.1318",y:"51.082",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 51.082)",fill:"#FFD3D3"}),d.jsx("rect",{x:"71.8308",y:"52.911",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 71.8308 52.911)",fill:"#EB8583"}),d.jsx("rect",{x:"34.3364",y:"51.9965",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3364 51.9965)",fill:"#EB8583"}),d.jsx("rect",{x:"51.7119",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.7119 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"52.6265",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6265 33.7064)",fill:"#EB8583"}),d.jsx("rect",{x:"88.2917",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2917 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"89.2063",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 33.7064)",fill:"#FFD3D3"}),d.jsx("rect",{x:"53.5408",y:"52.911",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5408 52.911)",fill:"#EB8583"}),d.jsx("rect",{x:"89.2063",y:"51.9965",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 51.9965)",fill:"#9B0806"}),d.jsx("rect",{x:"106.582",y:"51.082",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 51.082)",fill:"#FFD3D3"})]})}function Aj(e){return d.jsxs("svg",{viewBox:"0 0 129 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No running flow runs",...e,children:[d.jsx("rect",{x:"52.4965",y:"88.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.4965 88.7064)",fill:"#080072"}),d.jsx("rect",{x:"50.6675",y:"13.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 50.6675 13.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"89.0764",y:"88.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.0764 88.7064)",fill:"#080072"}),d.jsx("rect",{x:"88.6321",y:"105.632",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.6321 105.632)",fill:"#13A7FF"}),d.jsx("rect",{x:"106.422",y:"105.922",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.422 105.922)",fill:"#8FDDFF"}),d.jsx("rect",{x:"52.4965",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.4965 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"89.0764",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.0764 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"70.7865",y:"88.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 88.7064)",fill:"#13A7FF"}),d.jsx("rect",{x:"68.9575",y:"13.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 68.9575 13.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"87.2175",y:"13.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.2175 13.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"33.292",y:"87.7919",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 87.7919)",fill:"#13A7FF"}),d.jsx("rect",{x:"33.292",y:"105.922",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 105.922)",fill:"#8FDDFF"}),d.jsx("rect",{x:"14.0875",y:"68.5875",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.0875 68.5875)",fill:"#8FDDFF"}),d.jsx("rect",{x:"14.0875",y:"86.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.0875 86.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"71.701",y:"71.3311",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 71.701 71.3311)",fill:"#080072"}),d.jsx("rect",{x:"107.366",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 107.366 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"123.798",y:"68.5875",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 123.798 68.5875)",fill:"#8FDDFF"}),d.jsx("rect",{x:"106.452",y:"87.632",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.452 87.632)",fill:"#13A7FF"}),d.jsx("rect",{x:"123.798",y:"86.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 123.798 86.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"34.2064",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.2064 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"70.7865",y:"106.996",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 106.996)",fill:"#13A7FF"}),d.jsx("rect",{x:"68.9575",y:"123.297",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 68.9575 123.297)",fill:"#8FDDFF"}),d.jsx("rect",{x:"87.2175",y:"123.297",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.2175 123.297)",fill:"#8FDDFF"}),d.jsx("rect",{x:"70.7865",y:"33.8364",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 33.8364)",fill:"#13A7FF"}),d.jsx("rect",{x:"33.292",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 32.9219)",fill:"#8FDDFF"}),d.jsx("rect",{x:"14.0875",y:"50.2975",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.0875 50.2975)",fill:"#8FDDFF"}),d.jsx("rect",{x:"70.7865",y:"52.1265",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 52.1265)",fill:"#13A7FF"}),d.jsx("rect",{x:"33.292",y:"51.212",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 51.212)",fill:"#13A7FF"}),d.jsx("rect",{x:"51.582",y:"106.082",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.582 106.082)",fill:"#13A7FF"}),d.jsx("rect",{x:"50.6675",y:"123.297",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 50.6675 123.297)",fill:"#8FDDFF"}),d.jsx("rect",{x:"51.582",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.582 32.9219)",fill:"#13A7FF"}),d.jsx("rect",{x:"88.162",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.162 32.9219)",fill:"#13A7FF"}),d.jsx("rect",{x:"106.422",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.422 32.9219)",fill:"#8FDDFF"}),d.jsx("rect",{x:"52.4965",y:"52.1265",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.4965 52.1265)",fill:"#080072"}),d.jsx("rect",{x:"89.0764",y:"52.1265",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.0764 52.1265)",fill:"#080072"}),d.jsx("rect",{x:"106.452",y:"51.212",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.452 51.212)",fill:"#13A7FF"}),d.jsx("rect",{x:"123.798",y:"50.2975",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 123.798 50.2975)",fill:"#8FDDFF"})]})}function Rj(e){const n=e.map(r=>r.toLowerCase());return n.includes("failed")||n.includes("crashed")?kj:n.includes("running")||n.includes("pending")||n.includes("cancelling")?Aj:n.includes("completed")?Nj:n.includes("scheduled")||n.includes("paused")?Cj:null}function jj({stateTypes:e}){const n=e.map(u=>u==="SCHEDULED"?"late":u.toLowerCase()),o=new Intl.ListFormat("en",{style:"long",type:"disjunction"}).format(n),l=Rj(e);return d.jsxs("div",{className:"flex flex-col items-center gap-8 my-20",children:[l&&d.jsx(l,{className:"h-32"}),d.jsxs("p",{className:"text-lg text-center max-w-xs",children:["You currently have 0 ",o," runs."]})]})}function Mj({className:e,...n}){return d.jsx(RE,{"data-slot":"checkbox",className:$("peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:d.jsx(jE,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:d.jsx(dm,{className:"size-3.5"})})})}const Oj=Di("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",success:"border-transparent bg-state-completed-600 text-white [a&]:hover:bg-state-completed-700 focus-visible:ring-state-completed-600/20 dark:focus-visible:ring-state-completed-600/40",warning:"border-transparent bg-state-scheduled-600 text-white [a&]:hover:bg-state-scheduled-700 focus-visible:ring-state-scheduled-600/20 dark:focus-visible:ring-state-scheduled-600/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function wm({className:e,variant:n,asChild:r=!1,...o}){const l=r?Xr:"span";return d.jsx(l,{"data-slot":"badge",className:$(Oj({variant:n}),e),...o})}const Nx={COMPLETED:pa.Check,FAILED:pa.X,RUNNING:pa.Play,CANCELLED:pa.Ban,CANCELLING:pa.Ban,CRASHED:pa.ServerCrash,PAUSED:pa.Pause,PENDING:pa.Clock,SCHEDULED:pa.Clock},Lj=Nx,Ij=Di("gap-1",{variants:{state:{COMPLETED:"bg-state-completed-50 text-state-completed-600 hover:bg-state-completed-100",FAILED:"bg-state-failed-50 text-state-failed-700 hover:bg-state-failed-100",RUNNING:"bg-state-running-50 text-state-running-700 hover:bg-state-running-100",CANCELLED:"bg-state-cancelled-50 text-state-cancelled-600 hover:bg-state-cancelled-100",CANCELLING:"bg-state-cancelling-50 text-state-cancelling-600 hover:bg-state-cancelling-100",CRASHED:"bg-state-crashed-50 text-state-crashed-600 hover:bg-state-crashed-100",PAUSED:"bg-state-paused-100 text-state-paused-700 hover:bg-state-paused-200",PENDING:"bg-state-pending-100 text-state-pending-700 hover:bg-state-pending-200",SCHEDULED:"bg-state-scheduled-50 text-state-scheduled-700 hover:bg-state-scheduled-100"}}}),Ax=({type:e,name:n,className:r})=>{const o=Lj[e];return d.jsxs(wm,{className:$(Ij({state:e}),"px-2",r),children:[d.jsx(o,{size:16}),n??dx(e)]})},zj={COMPLETED:"text-state-completed-600",FAILED:"text-state-failed-700",RUNNING:"text-state-running-700",CANCELLED:"text-state-cancelled-600",CANCELLING:"text-state-cancelling-600",CRASHED:"text-state-crashed-600",PAUSED:"text-state-paused-700",PENDING:"text-state-pending-600",SCHEDULED:"text-state-scheduled-700"},DI=({type:e,name:n,className:r,size:o=16})=>{const l=Nx[e],u=n??dx(e);return d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:d.jsx("span",{className:$("inline-flex items-center",zj[e],r),children:d.jsx(l,{size:o})})}),d.jsx(Ua,{children:u})]})};function Fj({...e}){return d.jsx(ME,{"data-slot":"hover-card",...e})}function Uj({...e}){return d.jsx(OE,{"data-slot":"hover-card-trigger",...e})}function qj({className:e,align:n="center",sideOffset:r=4,...o}){return d.jsx(LE,{"data-slot":"hover-card-content",align:n,sideOffset:r,className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 rounded-md border p-4 shadow-md outline-hidden",e),...o})}const cb=({tag:e,variant:n,onRemove:r})=>d.jsxs(wm,{variant:n,className:"ml-1 max-w-20",title:e,children:[d.jsx("span",{className:"truncate",children:e}),r&&d.jsx("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground","aria-label":`Remove ${e} tag`,children:d.jsx(vt,{id:"X",size:14})})]}),Sm=({tags:e=[],variant:n,maxTagsDisplayed:r=2,onTagsChange:o})=>{const l=c=>{o?.(e.filter(h=>h!==c))},u=e.length;return u>r?d.jsxs(Fj,{children:[d.jsx(Uj,{asChild:!0,children:d.jsxs(wm,{variant:n,className:"ml-1 whitespace-nowrap",children:[u," tags"]})}),d.jsx(qj,{className:"flex flex-wrap gap-1",children:e.map(c=>d.jsx(cb,{tag:c,onRemove:o?()=>l(c):void 0},c))})]}):d.jsx(d.Fragment,{children:e.map(c=>d.jsx(cb,{tag:c,onRemove:o?()=>l(c):void 0,variant:n},c))})},Bj=Di("",{variants:{variant:{h1:"text-4xl font-extrabold tracking-tigh",h2:"text-3xl font-semibold tracking-tight",h3:"text-2xl font-semibold tracking-tight",h4:"text-xl font-semibold tracking-tight",bodyLarge:"text-lg",body:"text-base",bodySmall:"text-sm",xsmall:"text-xs"}},defaultVariants:{variant:"body"}}),Pj={h1:"h1",h2:"h2",h3:"h3",h4:"h4",bodyLarge:"p",body:"p",bodySmall:"p",xsmall:"p"};function al({className:e,variant:n="body",fontFamily:r="sans",ref:o,...l}){return k.createElement(Pj[n],{className:$(Bj({variant:n,className:$({"font-sans":r==="sans","font-serif":r==="serif","font-mono":r==="mono"})}),e),ref:o,...l})}al.displayName="Typography";const Hj=({deployment:e})=>d.jsxs(Wt,{className:"flex items-center gap-1",to:"/deployments/deployment/$id",params:{id:e.id},children:[d.jsx(al,{variant:"xsmall",className:"font-medium leading-none",children:"Deployment"}),d.jsx(vt,{id:"Rocket",className:"size-4"}),d.jsx(al,{variant:"xsmall",children:e.name})]});var Zf={exports:{}},db;function $j(){return db||(db=1,(function(e){(function(){var n=Object.assign||function(S){for(var U,F=1;F<arguments.length;F++){U=arguments[F];for(var L in U)D(U,L)&&(S[L]=U[L])}return S},r=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"},o=h(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),l={af:h(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:u("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:n(u(function(S){return["سنة","سنتان","سنوات"][v(S)]},function(S){return["شهر","شهران","أشهر"][v(S)]},function(S){return["أسبوع","أسبوعين","أسابيع"][v(S)]},function(S){return["يوم","يومين","أيام"][v(S)]},function(S){return["ساعة","ساعتين","ساعات"][v(S)]},function(S){return["دقيقة","دقيقتان","دقائق"][v(S)]},function(S){return["ثانية","ثانيتان","ثواني"][v(S)]},function(S){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][v(S)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:y(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:u("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:h(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:u("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:u(function(S){return["rok","roku","roky","let"][w(S)]},function(S){return["měsíc","měsíce","měsíce","měsíců"][w(S)]},function(S){return["týden","týdne","týdny","týdnů"][w(S)]},function(S){return["den","dne","dny","dní"][w(S)]},function(S){return["hodina","hodiny","hodiny","hodin"][w(S)]},function(S){return["minuta","minuty","minuty","minut"][w(S)]},function(S){return["sekunda","sekundy","sekundy","sekund"][w(S)]},function(S){return["milisekunda","milisekundy","milisekundy","milisekund"][w(S)]},","),cy:u("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:h(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:h(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:o,en:h(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:h(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:h(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:h(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:u("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:u("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:h(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:h(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:u(function(S){return"an"+(S>=2?"s":"")},"mois",function(S){return"semaine"+(S>=2?"s":"")},function(S){return"jour"+(S>=2?"s":"")},function(S){return"heure"+(S>=2?"s":"")},function(S){return"minute"+(S>=2?"s":"")},function(S){return"seconde"+(S>=2?"s":"")},function(S){return"milliseconde"+(S>=2?"s":"")},","),gr:o,he:h(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:u(function(S){return S%10===2||S%10===3||S%10===4?"godine":"godina"},function(S){return S===1?"mjesec":S===2||S===3||S===4?"mjeseca":"mjeseci"},function(S){return S%10===1&&S!==11?"tjedan":"tjedna"},c(["dan","dana"]),function(S){return S===1?"sat":S===2||S===3||S===4?"sata":"sati"},function(S){var U=S%10;return(U===2||U===3||U===4)&&(S<10||S>14)?"minute":"minuta"},function(S){var U=S%10;return U===5||Math.floor(S)===S&&S>=10&&S<=19?"sekundi":U===1?"sekunda":U===2||U===3||U===4?"sekunde":"sekundi"},function(S){return S===1?"milisekunda":S%10===2||S%10===3||S%10===4?"milisekunde":"milisekundi"},","),hi:u("साल",c(["महीना","महीने"]),c(["हफ़्ता","हफ्ते"]),"दिन",c(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:u("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:u("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:h(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:h(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:u("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:u("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:h(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:u("년","개월","주일","일","시간","분","초","밀리 초"),ku:u("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:u("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:u(function(S){return S%10===0||S%100>=10&&S%100<=20?"metų":"metai"},function(S){return["mėnuo","mėnesiai","mėnesių"][E(S)]},function(S){return["savaitė","savaitės","savaičių"][E(S)]},function(S){return["diena","dienos","dienų"][E(S)]},function(S){return["valanda","valandos","valandų"][E(S)]},function(S){return["minutė","minutės","minučių"][E(S)]},function(S){return["sekundė","sekundės","sekundžių"][E(S)]},function(S){return["milisekundė","milisekundės","milisekundžių"][E(S)]},","),lv:u(function(S){return C(S)?"gads":"gadi"},function(S){return C(S)?"mēnesis":"mēneši"},function(S){return C(S)?"nedēļa":"nedēļas"},function(S){return C(S)?"diena":"dienas"},function(S){return C(S)?"stunda":"stundas"},function(S){return C(S)?"minūte":"minūtes"},function(S){return C(S)?"sekunde":"sekundes"},function(S){return C(S)?"milisekunde":"milisekundes"},","),mk:h(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:u("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:u(c(["वर्ष","वर्षे"]),c(["महिना","महिने"]),c(["आठवडा","आठवडे"]),"दिवस","तास",c(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:u("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:h(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:h(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:u(function(S){return["rok","roku","lata","lat"][b(S)]},function(S){return["miesiąc","miesiąca","miesiące","miesięcy"][b(S)]},function(S){return["tydzień","tygodnia","tygodnie","tygodni"][b(S)]},function(S){return["dzień","dnia","dni","dni"][b(S)]},function(S){return["godzina","godziny","godziny","godzin"][b(S)]},function(S){return["minuta","minuty","minuty","minut"][b(S)]},function(S){return["sekunda","sekundy","sekundy","sekund"][b(S)]},function(S){return["milisekunda","milisekundy","milisekundy","milisekund"][b(S)]},","),pt:h(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:u(p("an","ani","de ani"),p("lună","luni","de luni"),p("săptămână","săptămâni","de săptămâni"),p("zi","zile","de zile"),p("oră","ore","de ore"),p("minut","minute","de minute"),p("secundă","secunde","de secunde"),p("milisecundă","milisecunde","de milisecunde"),","),ru:y(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:u(c(["vit","vjet"]),"muaj","javë","ditë","orë",function(S){return"minut"+(S===1?"ë":"a")},function(S){return"sekond"+(S===1?"ë":"a")},function(S){return"milisekond"+(S===1?"ë":"a")},","),sr:y(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:y(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:h(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:h(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:y(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:u("سال",c(["مہینہ","مہینے"]),c(["ہفتہ","ہفتے"]),"دن",c(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:u(function(S){return["rok","roky","roky","rokov"][w(S)]},function(S){return["mesiac","mesiace","mesiace","mesiacov"][w(S)]},function(S){return["týždeň","týždne","týždne","týždňov"][w(S)]},function(S){return["deň","dni","dni","dní"][w(S)]},function(S){return["hodina","hodiny","hodiny","hodín"][w(S)]},function(S){return["minúta","minúty","minúty","minút"][w(S)]},function(S){return["sekunda","sekundy","sekundy","sekúnd"][w(S)]},function(S){return["milisekunda","milisekundy","milisekundy","milisekúnd"][w(S)]},","),sl:u(function(S){return S%10===1?"leto":S%100===2?"leti":S%100===3||S%100===4||Math.floor(S)!==S&&S%100<=5?"leta":"let"},function(S){return S%10===1?"mesec":S%100===2||Math.floor(S)!==S&&S%100<=5?"meseca":S%10===3||S%10===4?"mesece":"mesecev"},function(S){return S%10===1?"teden":S%10===2||Math.floor(S)!==S&&S%100<=4?"tedna":S%10===3||S%10===4?"tedne":"tednov"},function(S){return S%100===1?"dan":"dni"},function(S){return S%10===1?"ura":S%100===2?"uri":S%10===3||S%10===4||Math.floor(S)!==S?"ure":"ur"},function(S){return S%10===1?"minuta":S%10===2?"minuti":S%10===3||S%10===4||Math.floor(S)!==S&&S%100<=4?"minute":"minut"},function(S){return S%10===1?"sekunda":S%100===2?"sekundi":S%100===3||S%100===4||Math.floor(S)!==S?"sekunde":"sekund"},function(S){return S%10===1?"milisekunda":S%100===2?"milisekundi":S%100===3||S%100===4||Math.floor(S)!==S?"milisekunde":"milisekund"},","),sv:h(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(h(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:u("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:u("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:u("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:u("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:u("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:u("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:u("年","個月","周","天","小時","分鐘","秒","毫秒")};function u(S,U,F,L,B,K,se,ae,ce){var j={y:S,mo:U,w:F,d:L,h:B,m:K,s:se,ms:ae};return ce&&(j.decimal=ce),j}function c(S){return function(U){return U===1?S[0]:S[1]}}function h(S,U,F,L,B,K,se,ae,ce){return u(c(S),c(U),c(F),c(L),c(B),c(K),c(se),c(ae),ce)}function p(S,U,F){return function(L){if(L===1)return S;if(Math.floor(L)!==L||L===0)return U;var B=L%100;return B>=1&&B<=19?U:F}}function g(S){return function(U){return Math.floor(U)!==U?S[2]:U%100>=5&&U%100<=20||U%10>=5&&U%10<=9||U%10===0?S[0]:U%10===1?S[1]:U>1?S[2]:S[1]}}function y(S,U,F,L,B,K,se,ae){return u(g(S),g(U),g(F),g(L),g(B),g(K),g(se),g(ae),",")}function v(S){return S===2?1:S>2&&S<11?2:0}function b(S){return S===1?0:Math.floor(S)!==S?1:S%10>=2&&S%10<=4&&!(S%100>10&&S%100<20)?2:3}function w(S){return S===1?0:Math.floor(S)!==S?1:S%10>=2&&S%10<=4&&S%100<10?2:3}function E(S){return S===1||S%10===1&&S%100>20?0:Math.floor(S)!==S||S%10>=2&&S%100>20||S%10>=2&&S%100<10?1:2}function C(S){return S%10===1&&S%100!==11}function D(S,U){return Object.prototype.hasOwnProperty.call(S,U)}function _(S){var U=[S.language];if(D(S,"fallbacks"))if(r(S.fallbacks)&&S.fallbacks.length)U=U.concat(S.fallbacks);else throw new Error("fallbacks must be an array with at least one element");for(var F=0;F<U.length;F++){var L=U[F];if(D(S.languages,L))return S.languages[L];if(D(l,L))return l[L]}throw new Error("No language found.")}function A(S,U,F){var L=S.unitName,B=S.unitCount,K=F.spacer,se=F.maxDecimalPoints,ae;D(F,"decimal")?ae=F.decimal:D(U,"decimal")?ae=U.decimal:ae=".";var ce;"digitReplacements"in F?ce=F.digitReplacements:"_digitReplacements"in U&&(ce=U._digitReplacements);var j,Y=se===void 0?B:Math.floor(B*Math.pow(10,se))/Math.pow(10,se),le=Y.toString();if(U._hideCountIf2&&B===2)j="",K="";else if(ce){j="";for(var de=0;de<le.length;de++){var fe=le[de];fe==="."?j+=ae:j+=ce[fe]}}else j=le.replace(".",ae);var pe=U[L],G;return typeof pe=="function"?G=pe(B):G=pe,U._numberFirst?G+K+j:j+K+G}function N(S,U){var F,L,B,K,se=U.units,ae=U.unitMeasures,ce="largest"in U?U.largest:1/0;if(!se.length)return[];var j={};for(K=S,L=0;L<se.length;L++){F=se[L];var Y=ae[F],le=L===se.length-1;B=le?K/Y:Math.floor(K/Y),j[F]=B,K-=B*Y}if(U.round){var de=ce;for(L=0;L<se.length;L++)if(F=se[L],B=j[F],B!==0&&(de--,de===0)){for(var fe=L+1;fe<se.length;fe++){var pe=se[fe],G=j[pe];j[F]+=G*ae[pe]/ae[F],j[pe]=0}break}for(L=se.length-1;L>=0;L--)if(F=se[L],B=j[F],B!==0){var X=Math.round(B);if(j[F]=X,L===0)break;var ue=se[L-1],re=ae[ue],ee=Math.floor(X*ae[F]/re);if(ee)j[ue]+=ee,j[F]=0;else break}}var ve=[];for(L=0;L<se.length&&ve.length<ce;L++)F=se[L],B=j[F],B&&ve.push({unitName:F,unitCount:B});return ve}function M(S,U){var F=_(U);if(!S.length){var L=U.units,B=L[L.length-1];return A({unitName:B,unitCount:0},F,U)}var K=U.conjunction,se=U.serialComma,ae;D(U,"delimiter")?ae=U.delimiter:D(F,"delimiter")?ae=F.delimiter:ae=", ";for(var ce=[],j=0;j<S.length;j++)ce.push(A(S[j],F,U));return!K||S.length===1?ce.join(ae):S.length===2?ce.join(K):ce.slice(0,-1).join(ae)+(se?",":"")+K+ce.slice(-1)}function O(S){var U=function(L,B){L=Math.abs(L);var K=n({},U,B||{}),se=N(L,K);return M(se,K)};return n(U,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},S)}var I=n(O({}),{getSupportedLanguages:function(){var U=[];for(var F in l)D(l,F)&&F!=="gr"&&U.push(F);return U},humanizer:O});e.exports?e.exports=I:this.humanizeDuration=I})()})(Zf)),Zf.exports}var Qj=$j();const Ch=jb(Qj),Vj=({flowRun:e})=>{const{estimated_run_time:n,total_run_time:r}=e,o=n||r,l=Ch(o,{maxDecimalPoints:2,units:["s"]}),u=Ch(o,{maxDecimalPoints:5,units:["s"]});return d.jsx(Jr,{children:d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:d.jsxs("div",{className:"flex gap-2 items-center text-xs font-mono",children:[d.jsx(vt,{id:"Clock",className:"size-4"}),l]})}),d.jsx(Ua,{children:u})]})})};function Rx({...e}){return d.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function jx({className:e,...n}){return d.jsx("ol",{"data-slot":"breadcrumb-list",className:$("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...n})}function kh({className:e,...n}){return d.jsx("li",{"data-slot":"breadcrumb-item",className:$("inline-flex items-center gap-1.5",e),...n})}function Gj({asChild:e,className:n,...r}){const o=e?Xr:"a";return d.jsx(o,{"data-slot":"breadcrumb-link",className:$("hover:text-foreground transition-colors",n),...r})}const fb=cE(Gj);function CI({className:e,...n}){return d.jsx("span",{"data-slot":"breadcrumb-page","aria-disabled":"true","aria-current":"page",className:$("text-foreground font-normal",e),...n})}function Yj({children:e,className:n,...r}){return d.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:$("[&>svg]:size-3.5",n),...r,children:e??d.jsx(IE,{})})}const Kj=({flowRun:e})=>{const{flow:n}=e;return d.jsx("div",{className:"flex items-center",children:d.jsx(Rx,{children:d.jsxs(jx,{children:[n&&d.jsx(kh,{children:d.jsx(fb,{to:"/flows/flow/$id",params:{id:e.flow_id},children:n.name})}),n&&d.jsx(Yj,{children:"/"}),d.jsx(kh,{className:"font-bold text-foreground",children:d.jsx(fb,{to:"/runs/flow-run/$id",params:{id:e.id},children:e.name})})]})})})};function Wj({...e}){return d.jsx(Ih,{"data-slot":"dialog",...e})}function Xj({...e}){return d.jsx(zE,{"data-slot":"dialog-trigger",...e})}function Zj({...e}){return d.jsx(Uh,{"data-slot":"dialog-portal",...e})}function kI({...e}){return d.jsx(Fh,{"data-slot":"dialog-close",...e})}function Jj({className:e,...n}){return d.jsx(qh,{"data-slot":"dialog-overlay",className:$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...n})}function e8({className:e,children:n,...r}){return d.jsxs(Zj,{"data-slot":"dialog-portal",children:[d.jsx(Jj,{}),d.jsxs(zh,{"data-slot":"dialog-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[n,d.jsxs(Fh,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[d.jsx(hm,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function t8({className:e,...n}){return d.jsx("div",{"data-slot":"dialog-header",className:$("flex flex-col gap-2 text-center sm:text-left",e),...n})}function NI({className:e,...n}){return d.jsx("div",{"data-slot":"dialog-footer",className:$("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function n8({className:e,...n}){return d.jsx(Mb,{"data-slot":"dialog-title",className:$("text-lg leading-none font-semibold",e),...n})}function AI({className:e,...n}){return d.jsx(FE,{"data-slot":"dialog-description",className:$("text-muted-foreground text-sm",e),...n})}const a8=k.lazy(()=>Ae(()=>import("./json-input-YKJMJCcT.js"),__vite__mapDeps([9,1,2,10,4,5,6,7])).then(e=>({default:e.JsonInput})));function r8({className:e,...n}){return d.jsx(k.Suspense,{fallback:d.jsx(ke,{className:`min-h-[200px] ${e??""}`}),children:d.jsx(a8,{className:e,...n})})}const i8=({flowRun:e})=>d.jsxs("div",{className:"flex items-center",children:[d.jsx(vt,{id:"SlidersVertical",className:"size-4"}),d.jsx(o8,{flowRun:e})]}),o8=({flowRun:e})=>{const n=e.parameters??{},r=Object.keys(n).length;return d.jsxs(Wj,{children:[d.jsx(Xj,{asChild:!0,children:d.jsxs(it,{variant:"link",size:"sm",disabled:r<1,children:[r," ",fx(r,"Parameter")]})}),d.jsxs(e8,{"aria-describedby":void 0,children:[d.jsx(t8,{children:d.jsxs(n8,{children:["Flow run parameters for ",e.name??"Flow run"]})}),d.jsx(r8,{value:JSON.stringify(n,null,2),disabled:!0})]})]})},s8=({flowRun:e})=>{const{start_time:n,expected_start_time:r,estimated_start_time_delta:o}=e,{text:l,tooltipText:u}=k.useMemo(()=>{let c,h;return n?(c=`${tb(n,"dateTimeNumeric")} ${hb(o)}`,h=new Date(n).toString()):r&&(c=`Scheduled for ${tb(r,"dateTimeNumeric")} ${hb(o)}`,h=new Date(r).toString()),{text:c,tooltipText:h}},[o,r,n]);return d.jsx(Jr,{children:d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,disabled:!l,children:d.jsxs("div",{className:"text-xs font-mono flex gap-2 items-center",children:[d.jsx(vt,{id:"Calendar",className:"size-4"}),l??"No start time"]})}),d.jsx(Ua,{children:u})]})})},hb=e=>!e||e<=60?"":`(${Ch(e,{maxDecimalPoints:0})} late)`,l8=({flowRun:e})=>{const{data:n}=Io(qo([e.id])),r=n[e.id];return r===void 0?null:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(vt,{id:"Spline",className:"size-4"}),d.jsxs(al,{variant:"xsmall",className:Bh(r===0&&"text-muted-foreground"),children:[r," ",fx(r,"Task run")]})]})},u8=({flowRun:e,...n})=>d.jsxs(Sa,{className:c8({state:e.state?.type}),children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsxs("div",{className:"flex items-center gap-2",children:["checked"in n&&"onCheckedChange"in n&&d.jsx(Mj,{checked:n.checked,onCheckedChange:n.onCheckedChange}),d.jsx(Kj,{flowRun:e})]}),d.jsx("div",{children:d.jsx(Sm,{tags:e.tags})})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[e.state&&d.jsx(Ax,{type:e.state.type,name:e.state.name}),d.jsx(s8,{flowRun:e}),d.jsx(i8,{flowRun:e}),e.state?.type!=="SCHEDULED"&&d.jsxs(d.Fragment,{children:[d.jsx(Vj,{flowRun:e}),d.jsx(k.Suspense,{children:d.jsx(l8,{flowRun:e})})]})]}),d.jsx("div",{className:"flex items-center gap-2",children:e.deployment&&d.jsx(Hj,{deployment:e.deployment})})]}),c8=Di("flex flex-col gap-2 p-4 border-l-8",{variants:{state:{COMPLETED:"border-l-green-600",FAILED:"border-l-red-600",RUNNING:"border-l-blue-700",CANCELLED:"border-l-gray-800",CANCELLING:"border-l-gray-800",CRASHED:"border-l-orange-600",PAUSED:"border-l-gray-800",PENDING:"border-l-gray-800",SCHEDULED:"border-l-yellow-700"}}}),Mx=({className:e,...n})=>d.jsx("nav",{"aria-label":"pagination",className:$("mx-auto flex w-full justify-center",e),...n});Mx.displayName="Pagination";const Ox=k.forwardRef(({className:e,...n},r)=>d.jsx("ul",{ref:r,className:$("flex flex-row items-center gap-1",e),...n}));Ox.displayName="PaginationContent";const $u=k.forwardRef(({className:e,...n},r)=>d.jsx("li",{ref:r,className:$("",e),...n}));$u.displayName="PaginationItem";const Lx=({className:e,...n})=>d.jsx(it,{"aria-label":"Go to previous page",size:"default",variant:"ghost",className:$("gap-1 pl-2.5",e),...n,children:d.jsx(vt,{id:"ChevronLeft",className:"size-4"})});Lx.displayName="PaginationPreviousButton";const Ix=({className:e,...n})=>d.jsx(it,{"aria-label":"Go to next page",variant:"ghost",size:"default",className:$("gap-1 pr-2.5",e),...n,children:d.jsx(vt,{id:"ChevronRight",className:"size-4"})});Ix.displayName="PaginationNextButton";const d8=({className:e,...n})=>d.jsx(it,{"aria-label":"Go to first page",variant:"ghost",size:"default",className:$("gap-1 pl-2.5",e),...n,children:d.jsx(vt,{id:"ChevronsLeft",className:"size-4"})});d8.displayName="PaginationFirstButton";const RI=({className:e,...n})=>d.jsx(it,{"aria-label":"Go to last page",variant:"ghost",size:"default",className:$("gap-1 pr-2.5",e),...n,children:d.jsx(vt,{id:"ChevronsRight",className:"size-4"})}),f8=3;function h8({flowId:e,filter:n}){const[r,o]=k.useState(1),l=Le(),u=k.useCallback(w=>({...n,flows:{...n?.flows,operator:"and_",id:{any_:[e]}},page:w,limit:f8,sort:"START_TIME_DESC"}),[n,e]),c=k.useMemo(()=>u(r),[u,r]),{data:h}=Je(Kr(c,3e4)),p=h?.results??[],g=h?.pages??1,y=k.useCallback(w=>{const E=u(w),C=Kr(E,3e4);l.fetchQuery(C).then(D=>{if(!D)return;(D.results??[]).map(A=>A.id).filter(Boolean).forEach(A=>{l.prefetchQuery(qo([A]))})}).catch(()=>{})},[u,l]),v=k.useCallback(()=>{r<g&&y(r+1)},[r,g,y]),b=k.useCallback(()=>{r>1&&y(r-1)},[r,y]);return d.jsxs("div",{className:"space-y-3",children:[p.map(w=>d.jsx(k.Suspense,{fallback:d.jsx(m8,{}),children:d.jsx(u8,{flowRun:w})},w.id)),g>1&&d.jsx(Mx,{className:"justify-start",children:d.jsxs(Ox,{children:[d.jsx($u,{children:d.jsx(Lx,{onClick:()=>o(w=>Math.max(1,w-1)),onMouseEnter:b,disabled:r===1})}),d.jsx($u,{children:d.jsxs(al,{variant:"bodySmall",className:"px-2",children:["Page ",r," of ",g]})}),d.jsx($u,{children:d.jsx(Ix,{onClick:()=>o(w=>Math.min(g,w+1)),onMouseEnter:v,disabled:r===g})})]})})]})}function m8(){return d.jsxs("div",{className:"flex flex-col gap-2 rounded-md border p-4",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx(ke,{className:"h-4 w-32"}),d.jsx(ke,{className:"h-4 w-16"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ke,{className:"h-5 w-20"}),d.jsx(ke,{className:"h-4 w-24"}),d.jsx(ke,{className:"h-4 w-16"})]})]})}const p8=e=>"flow"in e&&e.flow?d.jsx(zx,{...e,flow:e.flow}):d.jsx(k.Suspense,{fallback:d.jsx(ke,{className:"h-4 w-full"}),children:d.jsx(v8,{...e,flowId:e.flowId})}),v8=({flowId:e,className:n,iconSize:r,onClick:o})=>{const{data:l}=Io(tc(e));return d.jsx(zx,{flow:l,className:n,iconSize:r,onClick:o})},zx=({flow:e,className:n,iconSize:r,onClick:o})=>d.jsxs(Wt,{to:"/flows/flow/$id",params:{id:e.id},className:n??"flex items-center gap-1",onClick:o,children:[d.jsx(vt,{id:"Workflow",size:r,className:r?void 0:"size-4"}),e.name]}),g8=({date:e,format:n="relative",showTooltip:r=!0,className:o})=>{if(!e)return d.jsx("span",{className:$("text-muted-foreground",o),children:"Never"});let l;try{if(l=typeof e=="string"?Ph(e):e,!A_(l))return d.jsx("span",{className:$("text-muted-foreground",o),children:"Invalid date"})}catch{return d.jsx("span",{className:$("text-muted-foreground",o),children:"Invalid date"})}const c=(()=>{switch(n){case"relative":return Rf(l,{addSuffix:!0});case"absolute":return on(l,"MMM d, yyyy 'at' h:mm a");case"timestamp":return on(l,"yyyy/MM/dd hh:mm:ss a");case"both":return Rf(l,{addSuffix:!0});default:return Rf(l,{addSuffix:!0})}})(),h=on(l,"MMMM d, yyyy 'at' h:mm:ss a"),p=typeof e=="string"?e:e.toISOString(),g=d.jsx("span",{className:o,children:c});if(r&&(n==="relative"||n==="both"||n==="absolute")){const y=n==="absolute"?p:h;return d.jsx(Jr,{children:d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:g}),d.jsx(Ua,{children:d.jsx("p",{children:y})})]})})}return g};function y8({flow:e,filter:n}){const r=k.useMemo(()=>({...n,flows:{...n.flows??{},operator:"and_",id:{any_:[e.id]}}}),[n,e.id]),{data:o}=Je(pt(r,3e4)),l=k.useMemo(()=>({...r,sort:"START_TIME_DESC",limit:1,offset:0}),[r]),{data:u}=Je(mr(l,3e4)),c=u?.[0];return d.jsxs("div",{className:"flex w-full items-center justify-between gap-4 pr-2",children:[d.jsxs("div",{className:"flex flex-col items-start gap-1",children:[d.jsx(p8,{flow:e,className:"text-sm font-medium text-foreground hover:underline flex items-center gap-1",onClick:h=>h.stopPropagation()}),c?.start_time&&d.jsx(g8,{date:new Date(c.start_time),format:"relative",className:"text-xs text-muted-foreground"})]}),d.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:o??0})]})}function b8({filter:e,stateTypes:n}){const r=k.useMemo(()=>{const y={sort:"START_TIME_DESC",offset:0,...e};return n.length>0&&(y.flow_runs={...y.flow_runs,operator:"and_",state:{operator:"and_",type:{any_:n}}}),y},[e,n]),{data:o,isLoading:l}=Je({...mr(r,3e4),placeholderData:qe}),u=k.useMemo(()=>o?[...new Set(o.map(y=>y.flow_id))]:[],[o]),c=k.useMemo(()=>u.length===0?{offset:0,sort:"UPDATED_DESC"}:{flows:{operator:"and_",id:{any_:u}},offset:0,sort:"UPDATED_DESC"},[u]),{data:h,isLoading:p}=Je(nl(c,{enabled:u.length>0})),g=k.useMemo(()=>{const y=new Map;if(h)for(const v of h)y.set(v.id,v);return y},[h]);return l&&!o?d.jsx(ke,{className:"h-32 w-full"}):!o||o.length===0?d.jsx(jj,{stateTypes:n}):p&&u.length>0?null:d.jsx(Ej,{type:"multiple",className:"w-full",children:u.map(y=>{const v=g.get(y);return v?d.jsxs(_j,{value:y,children:[d.jsx(Tj,{className:"hover:no-underline",children:d.jsx(y8,{flow:v,filter:r})}),d.jsx(Dj,{children:d.jsx(h8,{flowId:y,filter:r})})]},y):null})})}function Em({error:e,onRetry:n,isRetrying:r}){return d.jsx(Sa,{children:d.jsxs(Ba,{className:"flex flex-col items-center justify-center gap-3 py-8 text-center",children:[d.jsx("div",{className:"rounded-full bg-destructive/10 p-2",children:d.jsx(kN,{className:"size-6 text-destructive"})}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("p",{className:"font-medium",children:e.message}),e.details&&d.jsx("p",{className:"text-xs text-muted-foreground max-w-sm",children:e.details})]}),n&&d.jsxs(it,{variant:"outline",onClick:n,disabled:r,className:"gap-2",children:[d.jsx(X1,{className:$("size-3",r&&"animate-spin")}),r?"Retrying...":"Retry"]})]})})}const x8=e=>"deployment"in e&&e.deployment?d.jsx(Fx,{...e,deployment:e.deployment}):d.jsx(k.Suspense,{fallback:d.jsx(ke,{className:"h-4 w-full"}),children:d.jsx(w8,{...e,deploymentId:e.deploymentId})}),w8=({deploymentId:e,className:n,iconSize:r,onClick:o})=>{const{data:l}=Io(ul(e));return d.jsx(Fx,{deployment:l,className:n,iconSize:r,onClick:o})},Fx=({deployment:e,className:n,iconSize:r,onClick:o})=>d.jsxs(Wt,{to:"/deployments/deployment/$id",params:{id:e.id},className:n??"flex items-center gap-1",onClick:o,children:[d.jsx(vt,{id:"Rocket",size:r,className:r?void 0:"size-4"}),e.name]}),S8={light:"",dark:".dark"},Ux=k.createContext(null);function qx(){const e=k.useContext(Ux);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const _m=k.forwardRef(({id:e,className:n,children:r,config:o,...l},u)=>{const c=k.useId(),h=`chart-${e||c.replace(/:/g,"")}`;return d.jsx(Ux.Provider,{value:{config:o},children:d.jsxs("div",{"data-chart":h,ref:u,className:$("flex min-w-0 aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",n),...l,children:[d.jsx(E8,{id:h,config:o}),d.jsx(E_,{minWidth:0,minHeight:0,initialDimension:{width:1,height:1},children:r})]})})});_m.displayName="Chart";const E8=({id:e,config:n})=>{const r=Object.entries(n).filter(([,o])=>o.theme||o.color);return r.length?d.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(S8).map(([o,l])=>`
21
+ Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(n),D0=!0}},ik=function(){var e="@amplitude/plugin-network-checker-browser",n="before",r=ht(),o=[],l=function(p,g){r?.addEventListener&&(r?.addEventListener(p,g),o.push({type:p,handler:g}))},u=function(){o.forEach(function(p){var g=p.type,y=p.handler;r?.removeEventListener(g,y)}),o=[]},c=function(p,g){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return typeof navigator>"u"?(p.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),p.offline=!1,[2]):(p.offline=!navigator.onLine,l("online",function(){p.loggerProvider.debug("Network connectivity changed to online."),p.offline=!1,setTimeout(function(){g.flush()},p.flushIntervalMillis)}),l("offline",function(){p.loggerProvider.debug("Network connectivity changed to offline."),p.offline=!0}),[2])})})},h=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(p){return u(),[2]})})};return{name:e,type:n,setup:c,teardown:h}};function T1(e){var n,r,o,l,u,c,h,p,g,y,v;if(!(typeof e!="object"||e===null)&&!Array.isArray(e)){var b=Object.keys(e);try{for(var w=Pe(b),E=w.next();!E.done;E=w.next()){var C=E.value;try{var D=e[C];typeof D?.enabled=="boolean"&&(D.enabled?(delete D.enabled,Object.keys(D).length===0&&(e[C]=!0)):e[C]=!1),T1(D)}catch{}}}catch(B){n={error:B}}finally{try{E&&!E.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{if(!((g=(p=(h=e.autocapture)===null||h===void 0?void 0:h.networkTracking)===null||p===void 0?void 0:p.captureRules)===null||g===void 0)&&g.length)try{for(var _=Pe(e.autocapture.networkTracking.captureRules),A=_.next();!A.done;A=_.next()){var N=A.value;try{for(var M=(u=void 0,Pe(["responseHeaders","requestHeaders"])),O=M.next();!O.done;O=M.next()){var I=O.value,S=(y=N[I])!==null&&y!==void 0?y:{},U=S.captureSafeHeaders,F=S.allowlist;if(!(!U&&!F)){if(F!==void 0&&!Array.isArray(F)){delete N[I];continue}N[I]=tt(tt([],_e(U?Gu:[]),!1),_e(F??[]),!1)}}}catch(B){u={error:B}}finally{try{O&&!O.done&&(c=M.return)&&c.call(M)}finally{if(u)throw u.error}}}}catch(B){o={error:B}}finally{try{A&&!A.done&&(l=_.return)&&l.call(_)}finally{if(o)throw o.error}}}catch{}var L=(v=e.autocapture)===null||v===void 0?void 0:v.frustrationInteractions;L&&(L.rageClick&&(L.rageClicks=L.rageClick,delete L.rageClick),L.deadClick&&(L.deadClicks=L.deadClick,delete L.deadClick))}}function C0(e,n,r){var o,l,u=[];try{for(var c=Pe(n??[]),h=c.next();!h.done;h=c.next()){var p=h.value;try{u.push(new RegExp(p))}catch(g){r.loggerProvider.warn("Invalid regex pattern: ".concat(p),g)}}}catch(g){o={error:g}}finally{try{h&&!h.done&&(l=c.return)&&l.call(c)}finally{if(o)throw o.error}}return e.concat(u)}function ok(e,n){var r,o,l,u,c,h,p;if(e){T1(e);try{n.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var g=e;if(g&&"autocapture"in g){if(typeof g.autocapture=="boolean"&&(n.autocapture=g.autocapture),typeof g.autocapture=="object"&&g.autocapture!==null){var y=me({},g.autocapture);if(n.autocapture===void 0&&(n.autocapture=g.autocapture),typeof g.autocapture.elementInteractions=="object"&&g.autocapture.elementInteractions!==null&&(!((l=g.autocapture.elementInteractions.pageUrlAllowlistRegex)===null||l===void 0)&&l.length)){y.elementInteractions=me({},g.autocapture.elementInteractions);var v=y.elementInteractions,b=(u=v.pageUrlAllowlist)!==null&&u!==void 0?u:[],w=g.autocapture.elementInteractions.pageUrlAllowlistRegex;v.pageUrlAllowlist=C0(b,w,n),delete v.pageUrlAllowlistRegex}if(typeof g.autocapture.networkTracking=="object"&&g.autocapture.networkTracking!==null&&(!((c=g.autocapture.networkTracking.captureRules)===null||c===void 0)&&c.length)){y.networkTracking=me({},g.autocapture.networkTracking);var E=y.networkTracking,C=(h=E.captureRules)!==null&&h!==void 0?h:[];try{for(var D=Pe(C),_=D.next();!_.done;_=D.next()){var A=_.value;A.urls=C0((p=A.urls)!==null&&p!==void 0?p:[],A.urlsRegex,n),delete A.urlsRegex}}catch(N){r={error:N}}finally{try{_&&!_.done&&(o=D.return)&&o.call(D)}finally{if(r)throw r.error}}}typeof n.autocapture=="boolean"&&(n.autocapture=me({attribution:n.autocapture,fileDownloads:n.autocapture,formInteractions:n.autocapture,pageViews:n.autocapture,sessions:n.autocapture,elementInteractions:n.autocapture,webVitals:n.autocapture,frustrationInteractions:n.autocapture},y)),typeof n.autocapture=="object"&&(n.autocapture=me(me({},n.autocapture),y))}n.defaultTracking=n.autocapture}n.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(n))}catch(N){n.loggerProvider.error("Failed to apply remote configuration because of error: ",N)}}}var D1="1.19.0",sk="@amplitude/plugin-autocapture-browser",lk="@amplitude/plugin-frustration-browser",C1="[Amplitude] Element Clicked",uk="[Amplitude] Dead Click",ck="[Amplitude] Rage Click",dk="[Amplitude] Error Click",fk="[Amplitude] Element Changed",hk="[Amplitude] Element ID",mk="[Amplitude] Element Class",k0="[Amplitude] Element Tag",N0="[Amplitude] Element Text",pk="[Amplitude] Element Hierarchy",vk="[Amplitude] Element Href",gk="[Amplitude] Element Position Left",yk="[Amplitude] Element Position Top",bk="[Amplitude] Element Aria Label",xk="[Amplitude] Element Attributes",wk="[Amplitude] Element Parent Label",A0="[Amplitude] Page URL",Sk="[Amplitude] Page Title",Ek="[Amplitude] Viewport Height",_k="[Amplitude] Viewport Width",Pu="https://app.amplitude.com",Tk="https://app.eu.amplitude.com",Dk="https://apps.stag2.amplitude.com",Ck={US:Pu,EU:Tk,STAGING:Dk},kk="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",Nk="amp-visual-tagging-selector-highlight",k1="data-amp-mask-attributes",Ak=25,N1=128,Rk=["input","select","textarea"],A1=function(e,n){var r,o=(r=window?.getComputedStyle)===null||r===void 0?void 0:r.call(window,e);return o?.getPropertyValue("cursor")==="pointer"&&n==="click"},No=function(e,n,r){return r===void 0&&(r=!1),function(o,l){var u,c,h=e.pageUrlAllowlist,p=e.pageUrlExcludelist,g=e.shouldTrackEventResolver,y=(c=(u=l?.tagName)===null||u===void 0?void 0:u.toLowerCase)===null||c===void 0?void 0:c.call(u);if(!y)return!1;if(g)return g(o,l);if(!mh(window.location.href,h)||p&&p.length>0&&mh(window.location.href,p))return!1;var v=String(l?.getAttribute("type"))||"";if(typeof v=="string")switch(v.toLowerCase()){case"hidden":return!1;case"password":return!1}var b=A1(l,o);if(r&&b)return!0;if(n){var w=n.some(function(E){var C;return!!(!((C=l?.matches)===null||C===void 0)&&C.call(l,E))});if(!w)return!1}switch(y){case"input":case"select":case"textarea":return o==="change"||o==="click";default:return b?!0:o==="click"}}},jk=function(e){var n,r,o,l=(r=(n=e?.tagName)===null||n===void 0?void 0:n.toLowerCase)===null||r===void 0?void 0:r.call(n),u=e instanceof HTMLElement?((o=e.getAttribute("contenteditable"))===null||o===void 0?void 0:o.toLowerCase())==="true":!1;return!Rk.includes(l)&&!u},Mk=function(e){return e?e.split(",").map(function(n){return n.trim()}).filter(function(n){return n.length>0&&n!=="id"&&n!=="class"}):[]},Ok=function(e,n){return Object.entries(e).reduce(function(r,o){var l=_e(o,2),u=l[0],c=l[1];if(u.startsWith(n)){var h=u.replace(n,"");h&&(r[h]=c||"")}return r},{})},Lk=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},R0=function(e){return Object.keys(e).reduce(function(n,r){var o=e[r];return Lk(o)||(n[r]=o),n},{})},rm=function(e,n){return e?n.some(function(r){var o;return(o=e?.matches)===null||o===void 0?void 0:o.call(e,r)})?e:rm(e?.parentElement,n):null},Ik=function(e){return new Promise(function(n,r){var o;try{var l=document.createElement("script");l.type="text/javascript",l.async=!0,l.src=e,l.addEventListener("load",function(){n({status:!0})},{once:!0}),l.addEventListener("error",function(){r({status:!1,message:"Failed to load the script ".concat(e)})}),(o=document.head)===null||o===void 0||o.appendChild(l)}catch(u){r(u)}})};function zk(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var il=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function Fk(e){return e.type==="click"||e.type==="change"}var Ju;(function(e){e[e.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",e[e.MIDDLE=1]="MIDDLE",e[e.RIGHT=2]="RIGHT"})(Ju||(Ju={}));var Uk=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",k1,Ks]),qk=["type"],Bk=["svg","path","g"],Pk=["password","hidden"];function Hk(e,n){var r,o,l,u,c,h;if(e===null)return null;var p=String(e.tagName).toLowerCase(),g={tag:p},y=Array.from((u=(l=e.parentElement)===null||l===void 0?void 0:l.children)!==null&&u!==void 0?u:[]);y.length&&(g.index=y.indexOf(e),g.indexOfType=y.filter(function(O){return O.tagName===e.tagName}).indexOf(e));var v=(h=(c=e.previousElementSibling)===null||c===void 0?void 0:c.tagName)===null||h===void 0?void 0:h.toLowerCase();v&&(g.prevSib=String(v));var b=e.getAttribute("id");b&&(g.id=String(b));var w=Array.from(e.classList);w.length&&(g.classes=w);var E={},C=Array.from(e.attributes),D=C.filter(function(O){return!Uk.has(O.name)}),_=!jk(e);if(!Pk.includes(String(e.getAttribute("type")))&&!Bk.includes(p))try{for(var A=Pe(D),N=A.next();!N.done;N=A.next()){var M=N.value;if(!(_&&!qk.includes(M.name))){if(n.has(M.name)){E[M.name]=Kr;continue}E[M.name]=String(M.value).substring(0,N1)}}}catch(O){r={error:O}}finally{try{N&&!N.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}return Object.keys(E).length&&(g.attrs=E),g}function $k(e){var n=[];if(!e)return n;n.push(e);for(var r=e.parentElement;r&&r.tagName!=="HTML";)n.push(r),r=r.parentElement;return n}var Qk=function(e,n){try{if(e.sourceType==="DOM_ELEMENT"){var r=document.documentElement;return e.scope&&n&&(r=n.closest(e.scope)),r&&e.selector?r.querySelector(e.selector):r}}catch{return}},Vk=function(e,n,r){e.forEach(function(o){if(typeof o!="string"&&o.actionType==="ATTACH_EVENT_PROPERTY"){var l=r.extractDataFromDataSource(o.dataSource,n.closestTrackedAncestor);n.targetElementProperties[o.destinationKey]=l}})},im=(function(){function e(n,r){var o,l,u=this,c;this.replaceSensitiveString=function(b){return Wh(b,u.additionalMaskTextPatterns)},this.getHierarchy=function(b){var w,E,C,D,_=performance.now(),A=[];if(!b)return[];for(var N=$k(b),M=new Map,O=N.length-1;O>=0;O--){var I=N[O];if(I){var S=Mk(I.getAttribute(k1)),U=O===N.length-1?[]:(C=M.get(N[O+1]))!==null&&C!==void 0?C:new Set,F=new Set(tt(tt([],_e(U),!1),_e(S),!1));M.set(I,F)}}A=N.map(function(ce){var j;return Hk(ce,(j=M.get(ce))!==null&&j!==void 0?j:new Set)});var L=function(ce){ce?.attrs&&Object.entries(ce.attrs).forEach(function(j){var Y=_e(j,2),le=Y[0],de=Y[1];ce.attrs&&(ce.attrs[le]=u.replaceSensitiveString(de))})};try{for(var B=Pe(A),K=B.next();!K.done;K=B.next()){var se=K.value;L(se)}}catch(ce){w={error:ce}}finally{try{K&&!K.done&&(E=B.return)&&E.call(B)}finally{if(w)throw w.error}}var ae=performance.now();return(D=u.diagnosticsClient)===null||D===void 0||D.recordHistogram("autocapturePlugin.getHierarchy",ae-_),A},this.getNearestLabel=function(b){var w=b.parentElement;if(!w)return"";var E;try{E=w.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{E=null}return E?u.getText(E):u.getNearestLabel(w)},this.getEventProperties=function(b,w,E){var C,D,_,A,N=(_=(D=w?.tagName)===null||D===void 0?void 0:D.toLowerCase)===null||_===void 0?void 0:_.call(D),M=typeof w.getBoundingClientRect=="function"?w.getBoundingClientRect():{left:null,top:null},O=u.getHierarchy(w),I=(A=O[0])===null||A===void 0?void 0:A.attrs,S=u.getNearestLabel(w),U=Ok(I??{},E),F=(C={},C[pk]=O,C[k0]=N,C[N0]=u.getText(w),C[gk]=M.left==null?null:Math.round(M.left),C[yk]=M.top==null?null:Math.round(M.top),C[xk]=U,C[wk]=S,C[A0]=Yr(window.location.href.split("?")[0]),C[Sk]=Xh(u.replaceSensitiveString),C[Ek]=window.innerHeight,C[_k]=window.innerWidth,C);if(F[hk]=w.getAttribute("id")||"",F[mk]=w.getAttribute("class"),F[bk]=I?.["aria-label"],N==="a"&&b==="click"&&w instanceof HTMLAnchorElement){var L=w.href.substring(0,N1);F[vk]=u.replaceSensitiveString(L)}return R0(F)},this.addTypeAndTimestamp=function(b,w){return{event:b,timestamp:Date.now(),type:w}},this.addAdditionalEventProperties=function(b,w,E,C,D){D===void 0&&(D=!1);var _=u.addTypeAndTimestamp(b,w);if(Fk(_)&&_.event.target!==null){if(D){var A=A1(_.event.target,_.type);if(A)return _.closestTrackedAncestor=_.event.target,_.targetElementProperties=u.getEventProperties(_.type,_.closestTrackedAncestor,C),_}var N=rm(_.event.target,E);return N&&(_.closestTrackedAncestor=N,_.targetElementProperties=u.getEventProperties(_.type,N,C)),_}return _},this.extractDataFromDataSource=function(b,w){if(b.sourceType==="DOM_ELEMENT"){var E=Qk(b,w);return E?b.elementExtractType==="TEXT"?u.getText(E):b.elementExtractType==="ATTRIBUTE"&&b.attribute?E.getAttribute(b.attribute):void 0:void 0}},this.getText=function(b){var w=b.closest("[".concat(Ks,"]"))!==null;if(w)return Kr;var E="";if(!b.querySelector("[".concat(Ks,"], [contenteditable]")))E=b.innerText||"";else{var C=b.cloneNode(!0);C.querySelectorAll("[".concat(Ks,"], [contenteditable]")).forEach(function(D){D.innerText=Kr}),E=C.innerText||""}return u.replaceSensitiveString(E.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(b){var w,E,C;if(!b)return{};var D=(C=(E=b?.tagName)===null||E===void 0?void 0:E.toLowerCase)===null||C===void 0?void 0:C.call(E),_=(w={},w[k0]=D,w[N0]=u.getText(b),w[A0]=window.location.href.split("?")[0],w);return R0(_)},this.diagnosticsClient=r?.diagnosticsClient;var h=(c=n.maskTextRegex)!==null&&c!==void 0?c:[],p=[];try{for(var g=Pe(h),y=g.next();!y.done;y=g.next()){var v=y.value;if(p.length>=Ak)break;if(v instanceof RegExp)p.push(v);else if("pattern"in v&&typeof v.pattern=="string")try{p.push(new RegExp(v.pattern,"i"))}catch{}}}catch(b){o={error:b}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}this.additionalMaskTextPatterns=p}return e})(),Gk=(function(){function e(n){var r=n===void 0?{}:n,o=r.origin,l=o===void 0?Pu:o,u=this;this.endpoint=Pu,this.requestCallbacks={},this.onSelect=function(c){u.notify({action:"element-selected",data:c})},this.onTrack=function(c,h){c==="selector-mode-changed"?u.notify({action:"track-selector-mode-changed",data:h}):c==="selector-moved"&&u.notify({action:"track-selector-moved",data:h})},this.endpoint=l}return e.prototype.notify=function(n){var r,o,l,u;(o=(r=this.logger)===null||r===void 0?void 0:r.debug)===null||o===void 0||o.call(r,"Message sent: ",JSON.stringify(n)),(u=(l=window.opener)===null||l===void 0?void 0:l.postMessage)===null||u===void 0||u.call(l,n,this.endpoint)},e.prototype.sendRequest=function(n,r,o){var l=this;o===void 0&&(o={timeout:15e3});var u=zk(),c={id:u,action:n,args:r},h=new Promise(function(p,g){l.requestCallbacks[u]={resolve:p,reject:g},l.notify(c),o?.timeout>0&&setTimeout(function(){g(new Error("".concat(n," timed out (id: ").concat(u,")"))),delete l.requestCallbacks[u]},o.timeout)});return h},e.prototype.handleResponse=function(n){var r;if(!this.requestCallbacks[n.id]){(r=this.logger)===null||r===void 0||r.warn("No callback found for request id: ".concat(n.id));return}this.requestCallbacks[n.id].resolve(n.responseData),delete this.requestCallbacks[n.id]},e.prototype.setup=function(n){var r=this,o=n===void 0?{dataExtractor:new im({})}:n,l=o.logger,u=o.endpoint,c=o.isElementSelectable,h=o.cssSelectorAllowlist,p=o.actionClickAllowlist,g=o.dataExtractor;this.logger=l,u&&this.endpoint===Pu&&(this.endpoint=u);var y=null;window.addEventListener("message",function(v){var b,w,E,C,D;if((w=(b=r.logger)===null||b===void 0?void 0:b.debug)===null||w===void 0||w.call(b,"Message received: ",JSON.stringify(v)),r.endpoint===v.origin){var _=v?.data,A=_?.action;if(A)if("id"in _)(C=(E=r.logger)===null||E===void 0?void 0:E.debug)===null||C===void 0||C.call(E,"Received Response to previous request: ",JSON.stringify(v)),r.handleResponse(_);else if(A==="ping")r.notify({action:"pong"});else if(A==="initialize-visual-tagging-selector"){var N=_?.data;Ik(kk).then(function(){var M;y=(M=window?.amplitudeVisualTaggingSelector)===null||M===void 0?void 0:M.call(window,{getEventTagProps:g.getEventTagProps,isElementSelectable:function(O){return c?c(N?.actionType||"click",O):!0},onTrack:r.onTrack,onSelect:r.onSelect,visualHighlightClass:Nk,messenger:r,cssSelectorAllowlist:h,actionClickAllowlist:p,extractDataFromDataSource:g.extractDataFromDataSource,dataExtractor:g,diagnostics:{autocapture:{version:D1}}}),r.notify({action:"selector-loaded"})}).catch(function(){var M;(M=r.logger)===null||M===void 0||M.warn("Failed to initialize visual tagging selector")})}else A==="close-visual-tagging-selector"&&((D=y?.close)===null||D===void 0||D.call(y))}}),this.notify({action:"page-loaded"})},e})();function Yk(e){var n=e.amplitude,r=e.allObservables,o=e.shouldTrackEvent,l=e.evaluateTriggers,u=r.clickObservable,c=u.filter(il).filter(function(p){return o("click",p.closestTrackedAncestor)}).map(function(p){return l(p)}),h=c;return h.subscribe(function(p){n?.track(C1,p.targetElementProperties)})}function Kk(e){var n=e.amplitude,r=e.allObservables,o=e.getEventProperties,l=e.shouldTrackEvent,u=e.evaluateTriggers,c=r.changeObservable,h=c.filter(il).filter(function(p){return l("change",p.closestTrackedAncestor)}).map(function(p){return u(p)});return h.subscribe(function(p){n?.track(fk,o("change",p.closestTrackedAncestor))})}function Wk(e){var n=e.amplitude,r=e.allObservables,o=e.options,l=e.getEventProperties,u=e.shouldTrackEvent,c=e.shouldTrackActionClick,h=r.clickObservable,p=r.mutationObservable,g=r.navigateObservable,y=h.filter(function(D){return!u("click",D.closestTrackedAncestor)}).map(function(D){var _=rm(D.event.target,o.actionClickAllowlist);return D.closestTrackedAncestor=_,D.closestTrackedAncestor!==null&&(D.targetElementProperties=l(D.type,D.closestTrackedAncestor)),D}).filter(il).filter(function(D){return c("click",D.closestTrackedAncestor)}),v=g?_i(p,g):p,b=_i(y,v),w=null,E=null,C=nm(b,function(D){if(w&&(clearTimeout(w),w=null),D.type==="click")return E=D,w=setTimeout(function(){w=null,E=null},500),Promise.resolve(null);if(E){var _=E;return E=null,Promise.resolve(_)}return Promise.resolve(null)});return C.subscribe(function(D){D&&n?.track(C1,l("click",D.closestTrackedAncestor))})}var Oo=ht(),R1=function(){return new cn(function(e){var n=new MutationObserver(function(r){e.next(r)});return document.body&&n.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return n.disconnect()}})},j1=function(e){return e===void 0&&(e="click"),new cn(function(n){var r=function(o){n.next(o)};return Oo.document.addEventListener(e,r,{capture:!0}),function(){Oo.document.removeEventListener(e,r,{capture:!0})}})},Xk=function(){return new cn(function(e){var n=function(r){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];var u=void 0;Array.isArray(o[0])&&typeof o[0][0]=="string"&&(u=o[0][0]),e.next({kind:"console",message:u})};return m0.addListener("error",n),function(){m0.removeListener(n)}})},Zk=function(){return new cn(function(e){var n=function(r){var o={kind:"error"};r.error instanceof Error?o=me(me({},o),{message:r.error.message,stack:r.error.stack,filename:r.filename,lineNumber:r.lineno,columnNumber:r.colno}):typeof r.error=="string"&&(o.message=r.error),e.next(o)};return Oo.addEventListener("error",n),function(){Oo.removeEventListener("error",n)}})},Jk=function(){return new cn(function(e){var n=function(r){var o={kind:"unhandledrejection"};r.reason instanceof Error?(o.message=r.reason.message,o.stack=r.reason.stack):typeof r.reason=="string"&&(o.message=r.reason),e.next(o)};return Oo.addEventListener("unhandledrejection",n),function(){Oo.removeEventListener("unhandledrejection",n)}})},e4=function(){var e=_i(Zk(),Jk());return _i(e,Xk())},t4=function(e,n){try{if(n.subprop_key==="[Amplitude] Element Text")return n.subprop_op==="is"&&n.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if(n.subprop_key==="[Amplitude] Element Hierarchy")return n.subprop_op==="autotrack css match"&&!!e.closestTrackedAncestor.closest(n.subprop_value.toString())}catch(r){return console.error("Error matching event to filter",r),!1}return!1},yh={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},j0=function(e){var n,r,o,l,u=Object.values(yh).reduce(function(w,E){return w[E]=new Set,w},{});if(!e)return u;try{for(var c=Pe(e),h=c.next();!h.done;h=c.next()){var p=h.value;try{try{for(var g=(o=void 0,Pe(p.definition)),y=g.next();!y.done;y=g.next()){var v=y.value,b=yh[v.event_type];b&&u[b].add(p.id)}}catch(w){o={error:w}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}}catch(w){console.warn("Skipping Labeled Event due to malformed definition",p?.id,w)}}}catch(w){n={error:w}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return u},M0=function(e){var n,r,o,l,u=new Map;try{for(var c=Pe(e),h=c.next();!h.done;h=c.next()){var p=h.value;try{for(var g=(o=void 0,Pe(p.conditions)),y=g.next();!y.done;y=g.next()){var v=y.value;if(v.type==="LABELED_EVENT"){var b=v.match.eventId,w=u.get(b);w||(w=[],u.set(b,w)),w.push(p)}}}catch(E){o={error:E}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}}}catch(E){n={error:E}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return u},n4=function(e,n){return n.filter(function(r){return r.definition.some(function(o){return yh[o.event_type]===e.type&&o.filters.every(function(l){return t4(e,l)})})})},a4=function(e,n){var r,o,l,u,c=new Set;try{for(var h=Pe(e),p=h.next();!p.done;p=h.next()){var g=p.value,y=n.get(g.id);if(y)try{for(var v=(l=void 0,Pe(y)),b=v.next();!b.done;b=v.next()){var w=b.value;c.add(w)}}catch(E){l={error:E}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(l)throw l.error}}}}catch(E){r={error:E}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}return Array.from(c)},r4=(function(){function e(n,r,o,l){this.groupedLabeledEvents=n,this.labeledEventToTriggerMap=r,this.dataExtractor=o,this.options=l}return e.prototype.evaluate=function(n){var r,o,l=this.options.pageActions;if(!l)return n;var u=n4(n,Array.from(this.groupedLabeledEvents[n.type]).map(function(y){return l.labeledEvents[y]})),c=a4(u,this.labeledEventToTriggerMap);try{for(var h=Pe(c),p=h.next();!p.done;p=h.next()){var g=p.value;Vk(g.actions,n,this.dataExtractor)}}catch(y){r={error:y}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}return n},e.prototype.update=function(n,r,o){this.groupedLabeledEvents=n,this.labeledEventToTriggerMap=r,this.options=o},e})(),i4=function(e,n,r,o){return new r4(e,n,r,o)},ya;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable"})(ya||(ya={}));var o4=function(e,n){var r,o,l,u,c,h,p,g;e===void 0&&(e={}),n?.diagnosticsClient.setTag("plugin.autocapture.version",D1);var y=e.dataAttributePrefix,v=y===void 0?i1:y,b=e.visualTaggingOptions,w=b===void 0?{enabled:!0,messenger:new Gk}:b;e.cssSelectorAllowlist=(r=e.cssSelectorAllowlist)!==null&&r!==void 0?r:VD,e.actionClickAllowlist=(o=e.actionClickAllowlist)!==null&&o!==void 0?o:GD,e.debounceTime=(l=e.debounceTime)!==null&&l!==void 0?l:0,e.pageUrlExcludelist=(u=e.pageUrlExcludelist)===null||u===void 0?void 0:u.reduce(function(L,B){if(typeof B=="string"&&L.push(B),B instanceof RegExp&&L.push(B),typeof B=="object"&&B!==null&&"pattern"in B)try{L.push(new RegExp(B.pattern))}catch(K){return console.warn("Invalid regex pattern: ".concat(B.pattern),K),L}return L},[]);var E=sk,C="enrichment",D=[],_=new im(e,n),A=function(){var L,B=hr(j1().map(function(ce){return _.addAdditionalEventProperties(ce,"click",e.cssSelectorAllowlist,v)})),K=hr(new cn(function(ce){var j,Y=function(le){var de=_.addAdditionalEventProperties(le,"change",e.cssSelectorAllowlist,v);ce.next(de)};return(j=ht())===null||j===void 0||j.document.addEventListener("change",Y,{capture:!0}),function(){var le;return(le=ht())===null||le===void 0?void 0:le.document.removeEventListener("change",Y)}})),se;window.navigation&&(se=hr(new cn(function(ce){var j=function(Y){var le=_.addAdditionalEventProperties(Y,"navigate",e.cssSelectorAllowlist,v);ce.next(le)};return window.navigation.addEventListener("navigate",j),function(){window.navigation.removeEventListener("navigate",j)}})));var ae=hr(R1().map(function(ce){return _.addAdditionalEventProperties(ce,"mutation",e.cssSelectorAllowlist,v)}));return L={},L[ya.ChangeObservable]=K,L[ya.ClickObservable]=B,L[ya.MutationObservable]=ae,L[ya.NavigateObservable]=se,L},N=j0(Object.values((h=(c=e.pageActions)===null||c===void 0?void 0:c.labeledEvents)!==null&&h!==void 0?h:{})),M=M0((g=(p=e.pageActions)===null||p===void 0?void 0:p.triggers)!==null&&g!==void 0?g:[]),O=i4(N,M,_,e),I=function(L){var B,K;L&&(e.pageActions=me(me({},e.pageActions),L),N=j0(Object.values((B=e.pageActions.labeledEvents)!==null&&B!==void 0?B:{})),M=M0((K=e.pageActions.triggers)!==null&&K!==void 0?K:[]),O.update(N,M,e))},S=function(L,B){return oe(void 0,void 0,void 0,function(){var K,se,ae,ce,j,Y,le,de,fe,pe;return ie(this,function(G){return typeof document>"u"?[2]:(L.fetchRemoteConfig&&(L.remoteConfigClient?L.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",function(X){I(X)}):L.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),K=No(e,e.cssSelectorAllowlist),se=No(e,e.actionClickAllowlist),ae=A(),ce=Yk({allObservables:ae,amplitude:B,shouldTrackEvent:K,evaluateTriggers:O.evaluate.bind(O)}),D.push(ce),j=Kk({allObservables:ae,getEventProperties:function(){for(var X=[],ue=0;ue<arguments.length;ue++)X[ue]=arguments[ue];return _.getEventProperties.apply(_,tt(tt([],_e(X),!1),[v],!1))},amplitude:B,shouldTrackEvent:K,evaluateTriggers:O.evaluate.bind(O)}),D.push(j),Y=Wk({allObservables:ae,options:e,getEventProperties:function(){for(var X=[],ue=0;ue<arguments.length;ue++)X[ue]=arguments[ue];return _.getEventProperties.apply(_,tt(tt([],_e(X),!1),[v],!1))},amplitude:B,shouldTrackEvent:K,shouldTrackActionClick:se}),Y&&D.push(Y),(fe=L?.loggerProvider)===null||fe===void 0||fe.log("".concat(E," has been successfully added.")),window.opener&&w.enabled&&(le=e.cssSelectorAllowlist,de=e.actionClickAllowlist,(pe=w.messenger)===null||pe===void 0||pe.setup(me(me({dataExtractor:_,logger:L?.loggerProvider},L?.serverZone&&{endpoint:Ck[L.serverZone]}),{isElementSelectable:No(e,tt(tt([],_e(le),!1),_e(de),!1)),cssSelectorAllowlist:le,actionClickAllowlist:de}))),[2])})})},U=function(L){return oe(void 0,void 0,void 0,function(){return ie(this,function(B){return[2,L]})})},F=function(){return oe(void 0,void 0,void 0,function(){var L,B,K,se,ae;return ie(this,function(ce){try{for(L=Pe(D),B=L.next();!B.done;B=L.next())K=B.value,K.unsubscribe()}catch(j){se={error:j}}finally{try{B&&!B.done&&(ae=L.return)&&ae.call(L)}finally{if(se)throw se.error}}return[2]})})};return{name:E,type:C,setup:S,execute:U,teardown:F}},s4=3e3,l4=["mutation","navigate"];function u4(e){var n=e.amplitude,r=e.allObservables,o=e.getEventProperties,l=e.shouldTrackDeadClick,u=r.clickObservable,c=r.mutationObservable,h=r.navigateObservable,p=u.filter(function(w){return il(w)&&l("click",w.closestTrackedAncestor)&&w.event.target instanceof Element&&w.event.target.closest('a[target="_blank"]')===null&&w.event.button===Ju.LEFT_OR_TOUCH_CONTACT}),g=h?_i(c,h):c,y=_i(p,g),v=null,b=nm(y,function(w){return v&&l4.includes(w.type)?(clearTimeout(v),v=null,Promise.resolve(null)):w.type==="click"?v?Promise.resolve(null):new Promise(function(E){v=setTimeout(function(){E(w),v=null},s4)}):Promise.resolve(null)});return b.subscribe(function(w){if(w){var E={"[Amplitude] X":w.event.clientX,"[Amplitude] Y":w.event.clientY};n.track(uk,me(me({},o("click",w.closestTrackedAncestor)),E),{time:w.timestamp})}})}var M1=JD,O1=ZD,O0=eC;function L0(e,n){var r,o,l,u,c=n.event,h=c.pageX,p=c.pageY;e.yMin=Math.min((r=e.yMin)!==null&&r!==void 0?r:p,p),e.yMax=Math.max((o=e.yMax)!==null&&o!==void 0?o:p,p),e.xMin=Math.min((l=e.xMin)!==null&&l!==void 0?l:h,h),e.xMax=Math.max((u=e.xMax)!==null&&u!==void 0?u:h,h),e.isOutOfBounds=e.yMax-e.yMin>O0||e.xMax-e.xMin>O0}function I0(e){if(e.length===0)return null;var n=e[0],r=e[e.length-1],o=me({"[Amplitude] Begin Time":new Date(n.timestamp).toISOString(),"[Amplitude] End Time":new Date(r.timestamp).toISOString(),"[Amplitude] Duration":r.timestamp-n.timestamp,"[Amplitude] Clicks":e.map(function(l){return{X:l.event.pageX,Y:l.event.pageY,Time:l.timestamp}}),"[Amplitude] Click Count":e.length},n.targetElementProperties);return{rageClickEvent:o,time:n.timestamp}}function c4(e,n){var r=Math.max(0,e.length-M1+1),o=e[r];return n.timestamp-o.timestamp>=O1}function d4(e,n){return e.length>0&&e[e.length-1].closestTrackedAncestor!==n.closestTrackedAncestor}function f4(e){var n=this,r=e.amplitude,o=e.allObservables,l=e.shouldTrackRageClick,u=o.clickObservable,c=o.selectionObservable,h=[],p={},g=null;function y(E){h=[],p={},E&&(L0(p,E),h.push(E))}var v=nm(u.filter(function(E){return l("click",E.closestTrackedAncestor)}),function(E){return oe(n,void 0,void 0,function(){var C;return ie(this,function(D){return L0(p,E),C=null,h.length===0||d4(h,E)||c4(h,E)||p.isOutOfBounds?(g&&(C=I0(h)),y(E)):h.push(E),g&&(clearTimeout(g.timerId),g.resolve(C),g=null),h.length>=M1?[2,new Promise(function(_){g={resolve:_,timerId:setTimeout(function(){_(I0(h))},O1)}})]:[2,null]})})}),b=c?.subscribe(function(){y()}),w=v.subscribe(function(E){E!==null&&r.track(ck,E.rageClickEvent,{time:E.time})});return{unsubscribe:function(){w.unsubscribe(),b?.unsubscribe()}}}var h4=2e3;function m4(e){var n=e.amplitude,r=e.allObservables,o=e.shouldTrackErrorClick,l=r.clickObservable,u=r.browserErrorObservable,c=l.filter(function(y){return il(y)&&o("click",y.closestTrackedAncestor)&&y.event.target instanceof Element&&y.event.target.closest('a[target="_blank"]')===null&&y.event.button===Ju.LEFT_OR_TOUCH_CONTACT}),h=null,p=null,g=function(){h!==null&&(clearTimeout(h),h=null),p=null};return _i(c,u).subscribe(function(y){var v;if(y.type==="click"){g(),p=y,h=setTimeout(g,h4);return}y.type==="error"&&p&&(n.track(dk,me((v={},v["[Amplitude] Kind"]=y.event.kind,v["[Amplitude] Message"]=y.event.message,v["[Amplitude] Stack"]=y.event.stack,v["[Amplitude] Filename"]=y.event.filename,v["[Amplitude] Line Number"]=y.event.lineNumber,v["[Amplitude] Column Number"]=y.event.columnNumber,v),p.targetElementProperties)),g())})}function Qf(e,n,r,o){if(!o)return[];var l=e[n];return typeof l=="object"&&l!==null&&"cssSelectorAllowlist"in l&&Array.isArray(l.cssSelectorAllowlist)?l.cssSelectorAllowlist:r}var p4=function(e){var n;e===void 0&&(e={});var r=lk,o="enrichment",l=[],u=e.errorClicks!==!1;e.errorClicks||(u=!1);var c=e.deadClicks!==!1&&e.deadClicks!==null,h=e.rageClicks!==!1&&e.rageClicks!==null,p=Qf(e,"rageClicks",XD,h),g=Qf(e,"deadClicks",KD,c),y=Qf(e,"errorClicks",WD,u),v=(n=e.dataAttributePrefix)!==null&&n!==void 0?n:i1,b=new im(e),w=tt([],_e(new Set(tt(tt(tt([],_e(p),!1),_e(g),!1),_e(y),!1))),!1),E=function(){var A,N=hr(j1("pointerdown").map(function(F){return b.addAdditionalEventProperties(F,"click",w,v,!0)})),M=hr(e4().map(function(F){return b.addTypeAndTimestamp(F,"error")})),O=hr(R1().map(function(F){return b.addAdditionalEventProperties(F,"mutation",w,v)})),I;if(window.navigation){var S=new cn(function(F){var L=function(B){F.next(me(me({},B),{type:"navigate"}))};return window.navigation.addEventListener("navigate",L),function(){window.navigation.removeEventListener("navigate",L)}});I=hr(S.map(function(F){return b.addAdditionalEventProperties(F,"navigate",w,v)}))}var U=hr(new cn(function(F){var L=function(){var B=document.activeElement;if(B&&(B.tagName==="TEXTAREA"||B.tagName==="INPUT")){var K=void 0,se=void 0;try{if(K=B.selectionStart,se=B.selectionEnd,K===se)return}catch{return}return F.next()}var ae=window.getSelection();if(!(!ae||ae.isCollapsed))return F.next()};return window.document.addEventListener("selectionchange",L),function(){window.document.removeEventListener("selectionchange",L)}}));return A={},A[ya.ClickObservable]=N,A[ya.MutationObservable]=O,A[ya.NavigateObservable]=I,A[ya.BrowserErrorObservable]=M,A[ya.SelectionObservable]=U,A},C=function(A,N){return oe(void 0,void 0,void 0,function(){var M,O,I,S,U,F,L,B;return ie(this,function(K){return typeof document>"u"?[2]:(M=E(),h&&(O=No(e,p),I=f4({allObservables:M,amplitude:N,shouldTrackRageClick:O}),l.push(I)),c&&(S=No(e,g),U=u4({amplitude:N,allObservables:M,getEventProperties:function(se,ae){return b.getEventProperties(se,ae,v)},shouldTrackDeadClick:S}),l.push(U)),u&&(F=No(e,y),L=m4({amplitude:N,allObservables:M,shouldTrackErrorClick:F}),l.push(L)),(B=A?.loggerProvider)===null||B===void 0||B.log("".concat(r," has been successfully added.")),[2])})})},D=function(A){return oe(void 0,void 0,void 0,function(){return ie(this,function(N){return[2,A]})})},_=function(){return oe(void 0,void 0,void 0,function(){var A,N,M,O,I;return ie(this,function(S){try{for(A=Pe(l),N=A.next();!N.done;N=A.next())M=N.value,M.unsubscribe()}catch(U){O={error:U}}finally{try{N&&!N.done&&(I=A.return)&&I.call(A)}finally{if(O)throw O.error}}return[2]})})};return{name:r,type:o,setup:C,execute:D,teardown:_}},v4="@amplitude/plugin-network-capture-browser",L1="[Amplitude] Network Request",I1="500-599";function Hu(e,n){var r=n.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&"),o="^"+r.replace(/\*/g,".*")+"$",l=new RegExp(o);return l.test(e)}function z1(e,n){var r,o,l=n.split(",");try{for(var u=Pe(l),c=u.next();!c.done;c=u.next()){var h=c.value,p=_e(h.split("-").map(Number),2),g=p[0],y=p[1];if(e===g&&y===void 0||e>=g&&e<=y)return!0}}catch(v){r={error:v}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return!1}function g4(e,n,r,o,l){if(!(e.hosts&&!e.hosts.find(function(c){return Hu(n,c)}))&&!(o&&e.urls&&!mh(o,e.urls))&&!(l&&e.methods&&!e.methods.find(function(c){return l.toLowerCase()===c.toLowerCase()||c==="*"}))){if(r||r===0){var u=e.statusCodeRange||I1;if(!z1(r,u))return!1}return!0}}function F1(e){var n;if(e)try{var r=(n=ht())===null||n===void 0?void 0:n.location.href,o=new URL(e,r),l=o.searchParams.toString(),u=o.hash.replace("#",""),c=o.href,h=o.host;o.hash="",o.search="";var p=o.href;return{query:l,fragment:u,href:c,hrefWithoutQueryOrHash:p,host:h}}catch{return}}function y4(e,n){if(e.includes("amplitude.com"))try{var r=n.body;if(typeof r!="string")return!1;var o=JSON.parse(r),l=o.events;if(l.find(function(u){return u.event_type===L1}))return!0}catch{}return!1}function z0(e){if(typeof e!="object"||e===null){if(e)return tt([],_e(Gu),!1);if(e===void 0){var n=void 0;return n}return}if(e.length!==0)return e}function F0(e){var n,r;return!(!((n=e?.allowlist)===null||n===void 0)&&n.length)&&!(!((r=e?.blocklist)===null||r===void 0)&&r.length)}function b4(e,n){var r;n===void 0&&(n={});var o=F1(e.url);if(!o)return!1;var l=o.host;if(n.ignoreAmplitudeRequests!==!1&&(Hu(l,"*.amplitude.com")||Hu(l,"amplitude.com"))||!((r=n.ignoreHosts)===null||r===void 0)&&r.find(function(c){return Hu(l,c)})||!n.captureRules&&e.status!==void 0&&!z1(e.status,I1))return!1;if(n.captureRules){var u;if(tt([],_e(n.captureRules),!1).reverse().find(function(c){if(u=g4(c,l,e.status,e.url,e.method),u){var h=z0(c.responseHeaders);if(e.responseWrapper&&h){var p=e.responseWrapper.headers(h);p&&(e.responseHeaders=p)}var g=z0(c.requestHeaders);if(e.requestWrapper&&g){var y=e.requestWrapper.headers(g);y&&(e.requestHeaders=y)}e.responseWrapper&&c.responseBody&&!F0(c.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(c.responseBody.allowlist,c.responseBody.blocklist)),e.requestWrapper&&c.requestBody&&!F0(c.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(c.requestBody.allowlist,c.requestBody.blocklist))}return u!==void 0}),!u)return!1}return!(e.requestWrapper&&y4(l,e.requestWrapper))}function x4(e,n,r,o){return oe(this,void 0,void 0,function(){var l,u,c;return ie(this,function(h){switch(h.label){case 0:return n.requestBodyJson||n.responseBodyJson?[4,Promise.all([n.requestBodyJson,n.responseBodyJson])]:[3,2];case 1:if(l=_e.apply(void 0,[h.sent(),2]),u=l[0],c=l[1],u)try{e["[Amplitude] Request Body"]=JSON.stringify(u)}catch(p){o?.debug("Failed to stringify request body",p)}if(c)try{e["[Amplitude] Response Body"]=JSON.stringify(c)}catch{o?.debug("Failed to stringify response body")}h.label=2;case 2:return r?.track(L1,e),[2]}})})}function w4(e){var n=e.allObservables,r=e.networkTrackingOptions,o=e.amplitude,l=e.loggerProvider,u=n.networkObservable,c=u.filter(function(h){return b4(h.event,r)});return c.subscribe(function(h){var p,g,y,v=h.event,b=F1(v.url);if(b){var w=(g=v.responseWrapper)===null||g===void 0?void 0:g.bodySize,E=(y=v.requestWrapper)===null||y===void 0?void 0:y.bodySize,C=(p={},p["[Amplitude] URL"]=b.hrefWithoutQueryOrHash,p["[Amplitude] URL Query"]=b.query,p["[Amplitude] URL Fragment"]=b.fragment,p["[Amplitude] Request Method"]=v.method,p["[Amplitude] Status Code"]=v.status,p["[Amplitude] Start Time"]=v.startTime,p["[Amplitude] Completion Time"]=v.endTime,p["[Amplitude] Duration"]=v.duration,p["[Amplitude] Request Body Size"]=E,p["[Amplitude] Response Body Size"]=w,p["[Amplitude] Request Type"]=v.type,p["[Amplitude] Request Headers"]=v.requestHeaders,p["[Amplitude] Response Headers"]=v.responseHeaders,p);x4(C,v,o,l)}})}var bh;(function(e){e.NetworkObservable="networkObservable"})(bh||(bh={}));var U0,S4=function(e){e===void 0&&(e={});var n=v4,r="enrichment",o,l=function(g,y){var v={event:g,timestamp:Date.now(),type:y};return v},u=function(){var g,y=new cn(function(v){var b=new uC(function(w){var E=l(w,"network");v.next(E)});return y0.subscribe(b,o),function(){y0.unsubscribe(b)}});return g={},g[bh.NetworkObservable]=y,g},c=function(g,y){return oe(void 0,void 0,void 0,function(){var v;return ie(this,function(b){return typeof document>"u"?[2]:(v=u(),o=g?.loggerProvider,U0=w4({allObservables:v,networkTrackingOptions:e,amplitude:y,loggerProvider:o}),o?.log("".concat(n," has been successfully added.")),[2])})})},h=function(g){return oe(void 0,void 0,void 0,function(){return ie(this,function(y){return[2,g]})})},p=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(g){return U0.unsubscribe(),[2]})})};return{name:n,type:r,setup:c,execute:h,teardown:p}},E4="web-vitals-browser",_4="[Amplitude] Web Vitals";let U1=-1;const Fo=e=>{addEventListener("pageshow",(n=>{n.persisted&&(U1=n.timeStamp,e(n))}),!0)},Ia=(e,n,r,o)=>{let l,u;return c=>{n.value>=0&&(c||o)&&(u=n.value-(l??0),(u||l===void 0)&&(l=n.value,n.delta=u,n.rating=((h,p)=>h>p[1]?"poor":h>p[0]?"needs-improvement":"good")(n.value,r),e(n)))}},om=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},sm=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},ol=()=>sm()?.activationStart??0,za=(e,n=-1)=>{const r=sm();let o="navigate";return U1>=0?o="back-forward-cache":r&&(document.prerendering||ol()>0?o="prerender":document.wasDiscarded?o="restore":r.type&&(o=r.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:o}},Vf=new WeakMap;function lm(e,n){return Vf.get(e)||Vf.set(e,new n),Vf.get(e)}class T4{t;i=0;o=[];h(n){if(n.hadRecentInput)return;const r=this.o[0],o=this.o.at(-1);this.i&&r&&o&&n.startTime-o.startTime<1e3&&n.startTime-r.startTime<5e3?(this.i+=n.value,this.o.push(n)):(this.i=n.value,this.o=[n]),this.t?.(n)}}const sl=(e,n,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const o=new PerformanceObserver((l=>{Promise.resolve().then((()=>{n(l.getEntries())}))}));return o.observe({type:e,buffered:!0,...r}),o}}catch{}},um=e=>{let n=!1;return()=>{n||(e(),n=!0)}};let Do=-1;const q1=new Set,q0=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,xh=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const n of q1)n();isFinite(Do)||(Do=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",xh,!0))}},cc=()=>{if(Do<0){const e=ol();Do=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((r=>r.name==="hidden"&&r.startTime>e))[0]?.startTime)??q0(),addEventListener("visibilitychange",xh,!0),addEventListener("prerenderingchange",xh,!0),Fo((()=>{setTimeout((()=>{Do=q0()}))}))}return{get firstHiddenTime(){return Do},onHidden(e){q1.add(e)}}},dc=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},B0=[1800,3e3],B1=(e,n={})=>{dc((()=>{const r=cc();let o,l=za("FCP");const u=sl("paint",(c=>{for(const h of c)h.name==="first-contentful-paint"&&(u.disconnect(),h.startTime<r.firstHiddenTime&&(l.value=Math.max(h.startTime-ol(),0),l.entries.push(h),o(!0)))}));u&&(o=Ia(e,l,B0,n.reportAllChanges),Fo((c=>{l=za("FCP"),o=Ia(e,l,B0,n.reportAllChanges),om((()=>{l.value=performance.now()-c.timeStamp,o(!0)}))})))}))},P0=[.1,.25],D4=(e,n={})=>{const r=cc();B1(um((()=>{let o,l=za("CLS",0);const u=lm(n,T4),c=p=>{for(const g of p)u.h(g);u.i>l.value&&(l.value=u.i,l.entries=u.o,o())},h=sl("layout-shift",c);h&&(o=Ia(e,l,P0,n.reportAllChanges),r.onHidden((()=>{c(h.takeRecords()),o(!0)})),Fo((()=>{u.i=0,l=za("CLS",0),o=Ia(e,l,P0,n.reportAllChanges),om((()=>o()))})),setTimeout(o))})))};let P1=0,Gf=1/0,ku=0;const C4=e=>{for(const n of e)n.interactionId&&(Gf=Math.min(Gf,n.interactionId),ku=Math.max(ku,n.interactionId),P1=ku?(ku-Gf)/7+1:0)};let wh;const H0=()=>wh?P1:performance.interactionCount??0,k4=()=>{"interactionCount"in performance||wh||(wh=sl("event",C4,{type:"event",buffered:!0,durationThreshold:0}))};let $0=0,N4=class{u=[];l=new Map;m;p;v(){$0=H0(),this.u.length=0,this.l.clear()}L(){const n=Math.min(this.u.length-1,Math.floor((H0()-$0)/50));return this.u[n]}h(n){if(this.m?.(n),!n.interactionId&&n.entryType!=="first-input")return;const r=this.u.at(-1);let o=this.l.get(n.interactionId);if(o||this.u.length<10||n.duration>r.P){if(o?n.duration>o.P?(o.entries=[n],o.P=n.duration):n.duration===o.P&&n.startTime===o.entries[0].startTime&&o.entries.push(n):(o={id:n.interactionId,entries:[n],P:n.duration},this.l.set(o.id,o),this.u.push(o)),this.u.sort(((l,u)=>u.P-l.P)),this.u.length>10){const l=this.u.splice(10);for(const u of l)this.l.delete(u.id)}this.p?.(o)}}};const H1=e=>{const n=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=um(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),n((()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})})))},Q0=[200,500],A4=(e,n={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=cc();dc((()=>{k4();let o,l=za("INP");const u=lm(n,N4),c=p=>{H1((()=>{for(const y of p)u.h(y);const g=u.L();g&&g.P!==l.value&&(l.value=g.P,l.entries=g.entries,o())}))},h=sl("event",c,{durationThreshold:n.durationThreshold??40});o=Ia(e,l,Q0,n.reportAllChanges),h&&(h.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{c(h.takeRecords()),o(!0)})),Fo((()=>{u.v(),l=za("INP"),o=Ia(e,l,Q0,n.reportAllChanges)})))}))};let R4=class{m;h(n){this.m?.(n)}};const V0=[2500,4e3],j4=(e,n={})=>{dc((()=>{const r=cc();let o,l=za("LCP");const u=lm(n,R4),c=p=>{n.reportAllChanges||(p=p.slice(-1));for(const g of p)u.h(g),g.startTime<r.firstHiddenTime&&(l.value=Math.max(g.startTime-ol(),0),l.entries=[g],o())},h=sl("largest-contentful-paint",c);if(h){o=Ia(e,l,V0,n.reportAllChanges);const p=um((()=>{c(h.takeRecords()),h.disconnect(),o(!0)})),g=y=>{y.isTrusted&&(H1(p),removeEventListener(y.type,g,{capture:!0}))};for(const y of["keydown","click","visibilitychange"])addEventListener(y,g,{capture:!0});Fo((y=>{l=za("LCP"),o=Ia(e,l,V0,n.reportAllChanges),om((()=>{l.value=performance.now()-y.timeStamp,o(!0)}))}))}}))},G0=[800,1800],Sh=e=>{document.prerendering?dc((()=>Sh(e))):document.readyState!=="complete"?addEventListener("load",(()=>Sh(e)),!0):setTimeout(e)},M4=(e,n={})=>{let r=za("TTFB"),o=Ia(e,r,G0,n.reportAllChanges);Sh((()=>{const l=sm();l&&(r.value=Math.max(l.responseStart-ol(),0),r.entries=[l],o(!0),Fo((()=>{r=za("TTFB",0),o=Ia(e,r,G0,n.reportAllChanges),o(!0)})))}))};function O4(e){var n,r=((n=e.entries[0])===null||n===void 0?void 0:n.startTime)||0;return performance.timeOrigin+r}function Is(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(O4(e)),navigationStart:Math.floor(performance.timeOrigin)}}var L4=function(){var e=null,n=ht(),r=n?.document,o=n?.location,l=function(h,p){return oe(void 0,void 0,void 0,function(){var g,y;return ie(this,function(v){return r===void 0?[2]:(g=Yr(o?.href||"",h.loggerProvider),y={"[Amplitude] Page Domain":o?.hostname||"","[Amplitude] Page Location":g,"[Amplitude] Page Path":Yr(o?.pathname||"",h.loggerProvider),"[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":Yr(g.split("?")[0],h.loggerProvider)},j4(function(b){y["[Amplitude] LCP"]=Is(b)}),B1(function(b){y["[Amplitude] FCP"]=Is(b)}),A4(function(b){y["[Amplitude] INP"]=Is(b)}),D4(function(b){y["[Amplitude] CLS"]=Is(b)}),M4(function(b){y["[Amplitude] TTFB"]=Is(b)}),e=function(){r.visibilityState==="hidden"&&e&&(p.track(_4,y),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e),[2])})})},u=function(h){return oe(void 0,void 0,void 0,function(){return ie(this,function(p){return[2,h]})})},c=function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(h){return e&&r?.removeEventListener("visibilitychange",e),[2]})})};return{name:E4,type:"enrichment",setup:l,execute:u,teardown:c}},Y0=function(e){var n=e.split(".");return n.length<=2?e:n.slice(n.length-2,n.length).join(".")},I4=function(e){return Object.values(e).every(function(n){return!n})},z4=function(e,n,r,o,l){l===void 0&&(l=!0),e.referrer;var u=e.referring_domain,c=Qu(e,["referrer","referring_domain"]),h=n||{};h.referrer;var p=h.referring_domain,g=Qu(h,["referrer","referring_domain"]);if(F4(r.excludeReferrers,e.referring_domain))return o.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!l&&I4(e)&&n)return o.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var y=JSON.stringify(c)!==JSON.stringify(g),v=Y0(u||"")!==Y0(p||""),b=!n||y||v;return b?o.debug("This is a new campaign. An $identify event will be sent."):o.debug("This is not a new campaign because it's the same as the previous one."),b},F4=function(e,n){return e===void 0&&(e=[]),n===void 0&&(n=""),e.some(function(r){return r instanceof RegExp?r.test(n):r===n})},U4=function(e,n){var r=me(me({},lc),e),o=Object.entries(r).reduce(function(l,u){var c,h=_e(u,2),p=h[0],g=h[1];return l.setOnce("initial_".concat(p),(c=g??n.initialEmptyValue)!==null&&c!==void 0?c:"EMPTY"),g?l.set(p,g):l.unset(p)},new Yu);return $h(o)},q4=function(e){var n=e;return n?(n.startsWith(".")&&(n=n.substring(1)),[new RegExp("".concat(n.replace(".","\\."),"$"))]):[]},B4=(function(){function e(n,r){var o;this.shouldTrackNewCampaign=!1,this.options=me({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:q4((o=r.cookieOptions)===null||o===void 0?void 0:o.domain)},n),this.storage=r.cookieStorage,this.storageKey=c0(r.apiKey,"MKTG"),this.webExpStorageKey=c0(r.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=lc,this.sessionTimeout=r.sessionTimeout,this.lastEventTime=r.lastEventTime,this.logger=r.loggerProvider,r.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return oe(this,void 0,void 0,function(){var n,r;return ie(this,function(o){switch(o.label){case 0:return[4,this.fetchCampaign()];case 1:return r=_e.apply(void 0,[o.sent(),2]),this.currentCampaign=r[0],this.previousCampaign=r[1],n=this.lastEventTime?t1(this.sessionTimeout,this.lastEventTime):!0,z4(this.currentCampaign,this.previousCampaign,this.options,this.logger,n)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return oe(this,void 0,void 0,function(){var n;return ie(this,function(r){switch(r.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return n=r.sent(),n?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,Promise.all([n||new d1().parse(),this.storage.get(this.storageKey)])];case 4:return[2,r.sent()]}})})},e.prototype.generateCampaignEvent=function(n){this.shouldTrackNewCampaign=!1;var r=U4(this.currentCampaign,this.options);return n&&(r.event_id=n),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e})(),Nu="AMP_CURRENT_PAGE",Au="AMP_PREVIOUS_PAGE",bo="AMP_URL_INFO",Ws;(function(e){e.Direct="direct",e.Internal="internal",e.External="external"})(Ws||(Ws={}));var P4=new Set([xa.IDENTIFY,xa.GROUP_IDENTIFY,xa.REVENUE]),H4=function(e){var n={},r=n.internalDomains,o=r===void 0?[]:r,l=ht(),u=void 0,c=!1,h=void 0,p=!1,g=!1,y=function(C){var D;try{var _=Yr(C,h);D=new URL(_).hostname}catch(A){h?.error("Could not parse URL: ",A)}return D},v=function(C){var D=typeof location<"u"&&location.hostname||"",_=C?y(C):void 0;if(!_)return Ws.Direct;var A=o.some(function(M){return D.indexOf(M)!==-1}),N=o.some(function(M){return _.indexOf(M)!==-1});return D===_||N&&A?Ws.Internal:Ws.External},b=function(){return oe(void 0,void 0,void 0,function(){var C,D,_,A,N;return ie(this,function(M){switch(M.label){case 0:return u&&c?[4,u.get(bo)]:[3,3];case 1:return C=M.sent(),D=Yr(typeof location<"u"&&location.href||""),_=C?.[Nu]||"",A=void 0,D===_?A=C?.[Au]||"":_?A=_:A=document.referrer||"",[4,u.set(bo,(N={},N[Nu]=D,N[Au]=A,N))];case 2:M.sent(),M.label=3;case 3:return[2]}})})},w=function(){b()},E={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(C,D){return oe(void 0,void 0,void 0,function(){return ie(this,function(_){switch(_.label){case 0:return h=C.loggerProvider,h.log("Installing @amplitude/plugin-page-url-enrichment-browser"),g=!0,l?(u=new Gh(l.sessionStorage),[4,u.isEnabled()]):[3,2];case 1:c=_.sent(),l.addEventListener("popstate",w),p||(l.history.pushState=new Proxy(l.history.pushState,{apply:function(A,N,M){var O=_e(M,3),I=O[0],S=O[1],U=O[2];A.apply(N,[I,S,U]),g&&w()}}),l.history.replaceState=new Proxy(l.history.replaceState,{apply:function(A,N,M){var O=_e(M,3),I=O[0],S=O[1],U=O[2];A.apply(N,[I,S,U]),g&&w()}}),p=!0),_.label=2;case 2:return[2]}})})},execute:function(C){return oe(void 0,void 0,void 0,function(){var D,_,A,N,M;return ie(this,function(O){switch(O.label){case 0:return D=Yr(typeof location<"u"&&location.href||""),u&&c?[4,u.get(bo)]:[3,5];case 1:return _=O.sent(),_?.[Nu]?[3,3]:[4,u.set(bo,(M={},M[Nu]=D,M[Au]=document.referrer||"",M))];case 2:O.sent(),O.label=3;case 3:return[4,u.get(bo)];case 4:if(A=O.sent(),N="",A&&(N=A[Au]||""),P4.has(C.event_type))return[2,C];C.event_properties=me(me({},C.event_properties||{}),{"[Amplitude] Page Domain":zs(C,"[Amplitude] Page Domain",typeof location<"u"&&location.hostname||""),"[Amplitude] Page Location":zs(C,"[Amplitude] Page Location",D),"[Amplitude] Page Path":zs(C,"[Amplitude] Page Path",typeof location<"u"&&Yr(location.pathname)||""),"[Amplitude] Page Title":zs(C,"[Amplitude] Page Title",Xh(Wh)),"[Amplitude] Page URL":zs(C,"[Amplitude] Page URL",D.split("?")[0]),"[Amplitude] Previous Page Location":N,"[Amplitude] Previous Page Type":v(N)}),O.label=5;case 5:return[2,C]}})})},teardown:function(){return oe(void 0,void 0,void 0,function(){return ie(this,function(C){switch(C.label){case 0:return l&&(l.removeEventListener("popstate",w),g=!1),u&&c?[4,u.set(bo,{})]:[3,2];case 1:C.sent(),C.label=2;case 2:return[2]}})})}};return E};function zs(e,n,r){return e.event_properties||(e.event_properties={}),e.event_properties[n]===void 0?r:e.event_properties[n]}var $4=(function(e){Di(n,e);function n(){var r=e!==null&&e.apply(this,arguments)||this;return r._diagnosticsSampleRate=0,r}return n.prototype.init=function(r,o,l){r===void 0&&(r="");var u,c;return arguments.length>2?(u=o,c=l):typeof o=="string"?(u=o,c=void 0):(u=o?.userId,c=o),Cn(this._init(me(me({},c),{userId:u,apiKey:r})))},n.prototype._init=function(r){var o,l,u,c,h,p,g;return oe(this,void 0,void 0,function(){var y,v,b,w,E,C,D,_,A,N,M,O,I,S,U=this;return ie(this,function(F){switch(F.label){case 0:return this.initializing?[2]:(this.initializing=!0,y=YC(r),v=(o=r.loggerProvider)!==null&&o!==void 0?o:new Qh,b=(l=r.serverZone)!==null&&l!==void 0?l:E1,E=this._diagnosticsSampleRate,C=(u=r.enableDiagnostics)!==null&&u!==void 0?u:!0,y?(w=new qD(r.apiKey,v,b,(c=r.remoteConfig)===null||c===void 0?void 0:c.serverUrl),[4,new Promise(function(L){w?.subscribe("configs.diagnostics.browserSDK","all",function(B,K,se){if(v.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:B,source:K,lastFetch:se},null,2)),B){var ae=B.sampleRate;typeof ae=="number"&&!isNaN(ae)&&(E=ae);var ce=B.enabled;typeof ce=="boolean"&&(C=ce)}L()})})]):[3,2]);case 1:F.sent(),F.label=2;case 2:return D=new jD(r.apiKey,v,b,{enabled:C,sampleRate:E}),D.setTag("library","".concat(w1,"/").concat(am)),typeof navigator<"u"&&D.setTag("user_agent",navigator.userAgent),[4,VC(r.apiKey,r,this,D,{loggerProvider:v,serverZone:b,enableDiagnostics:C,diagnosticsSampleRate:E})];case 3:return _=F.sent(),y&&w?[4,new Promise(function(L){w?.subscribe("configs.analyticsSDK.browserSDK","all",function(B,K,se){_.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:B,source:K,lastFetch:se},null,2)),B&&ok(B,_),L()})})]:[3,5];case 4:F.sent(),F.label=5;case 5:return[4,e.prototype._init.call(this,_)];case 6:return F.sent(),this.logBrowserOptions(_),this.config.remoteConfigClient=w,p1(this.config.defaultTracking)?(A=kC(this.config),this.webAttribution=new B4(A,this.config),[4,this.webAttribution.init()]):[3,8];case 7:F.sent(),F.label=8;case 8:return N=Ku(),M=N.ampTimestamp?Number(N.ampTimestamp):void 0,O=M?Date.now()<M:!0,I=O&&!Number.isNaN(Number(N.ampSessionId))?Number(N.ampSessionId):void 0,this.setSessionId((g=(p=(h=r.sessionId)!==null&&h!==void 0?h:I)!==null&&p!==void 0?p:this.config.sessionId)!==null&&g!==void 0?g:Date.now()),S=tl(r.instanceName),S.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===QD?[3,10]:[4,this.add(ik()).promise];case 9:F.sent(),F.label=10;case 10:return[4,this.add(new aD({diagnosticsClient:D})).promise];case 11:return F.sent(),[4,this.add(new jC).promise];case 12:return F.sent(),[4,this.add(new mD).promise];case 13:return F.sent(),rk(this.config),wC(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(ak()).promise]):[3,15];case 14:F.sent(),F.label=15;case 15:return v1(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(nk()).promise]):[3,17];case 16:F.sent(),F.label=17;case 17:return g1(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(ZC(CC(this.config))).promise]):[3,19];case 18:F.sent(),F.label=19;case 19:return b1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(o4(_C(this.config),{diagnosticsClient:D})).promise]):[3,21];case 20:F.sent(),F.label=21;case 21:return x1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(p4(TC(this.config))).promise]):[3,23];case 22:F.sent(),F.label=23;case 23:return y1(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(S4(DC(this.config))).promise]):[3,25];case 24:F.sent(),F.label=25;case 25:return EC(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(L4()).promise]):[3,27];case 26:F.sent(),F.label=27;case 27:return SC(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(H4()).promise]):[3,29];case 28:F.sent(),F.label=29;case 29:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 30:return F.sent(),S.eventBridge.setEventReceiver(function(L){var B=L.eventProperties||{},K=B.time,se=Qu(B,["time"]),ae=typeof K=="number"?{time:K}:void 0;U.track(L.eventType,se,ae)}),[2]}})})},n.prototype.getUserId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.userId},n.prototype.setUserId=function(r){if(!this.config){this.q.push(this.setUserId.bind(this,r));return}this.config.loggerProvider.debug("function setUserId: ",r),(r!==this.config.userId||r===void 0)&&(this.config.userId=r,this.timeline.onIdentityChanged({userId:r}),fD(r,this.config.instanceName))},n.prototype.getDeviceId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.deviceId},n.prototype.setDeviceId=function(r){if(!this.config){this.q.push(this.setDeviceId.bind(this,r));return}this.config.loggerProvider.debug("function setDeviceId: ",r),r!==this.config.deviceId&&(this.config.deviceId=r,this.timeline.onIdentityChanged({deviceId:r}),hD(r,this.config.instanceName))},n.prototype.reset=function(){this.setDeviceId(Ba()),this.setUserId(void 0),this.timeline.onReset()},n.prototype.getIdentity=function(){var r,o;return{deviceId:(r=this.config)===null||r===void 0?void 0:r.deviceId,userId:(o=this.config)===null||o===void 0?void 0:o.userId,userProperties:this.userProperties}},n.prototype.getOptOut=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.optOut},n.prototype.getSessionId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.sessionId},n.prototype.setSessionId=function(r){var o,l=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,r)),Cn(Promise.resolve());if(r===this.config.sessionId)return Cn(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",r);var u=this.getSessionId();u!==r&&this.timeline.onSessionIdChanged(r);var c=this.config.lastEventTime,h=(o=this.config.lastEventId)!==null&&o!==void 0?o:-1;this.config.sessionId=r,this.config.lastEventTime=void 0,this.config.pageCounter=0,w0(this.config.defaultTracking)&&(u&&c&&l.push(this.track(_0,void 0,{device_id:this.previousSessionDeviceId,event_id:++h,session_id:u,time:c+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var p=this.trackCampaignEventIfNeeded(++h,l);return this.config.identify&&l.push(this.track($h(this.config.identify)).promise),w0(this.config.defaultTracking)&&l.push(this.track(E0,void 0,{event_id:p?++h:h,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,Cn(Promise.all(l))},n.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},n.prototype.setTransport=function(r){if(!this.config){this.q.push(this.setTransport.bind(this,r));return}this.config.transportProvider=_1(r)},n.prototype.identify=function(r,o){if(qf(r)){var l=r._q;r._q=[],r=Uf(new Yu,l)}return o?.user_id&&this.setUserId(o.user_id),o?.device_id&&this.setDeviceId(o.device_id),e.prototype.identify.call(this,r,o)},n.prototype.groupIdentify=function(r,o,l,u){if(qf(l)){var c=l._q;l._q=[],l=Uf(new Yu,c)}return e.prototype.groupIdentify.call(this,r,o,l,u)},n.prototype.revenue=function(r,o){if(qf(r)){var l=r._q;r._q=[],r=Uf(new WT,l)}return e.prototype.revenue.call(this,r,o)},n.prototype.trackCampaignEventIfNeeded=function(r,o){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var l=this.webAttribution.generateCampaignEvent(r);return o?o.push(this.track(l).promise):this.track(l),this.config.loggerProvider.log("Tracking attribution."),!0},n.prototype.process=function(r){return oe(this,void 0,void 0,function(){var o,l,u;return ie(this,function(c){return o=Date.now(),l=t1(this.config.sessionTimeout,this.config.lastEventTime),u=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),r.event_type!==E0&&r.event_type!==_0&&(!r.session_id||r.session_id===this.getSessionId())&&(l||u?(this.setSessionId(o),u&&this.config.loggerProvider.log("Created a new session for new campaign.")):l||this.trackCampaignEventIfNeeded()),r.event_type===xa.IDENTIFY&&r.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(r.user_properties)),[2,e.prototype.process.call(this,r)]})})},n.prototype.logBrowserOptions=function(r){try{var o=me(me({},r),{apiKey:r.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(o))}catch(l){this.config.loggerProvider.error("Error logging browser config",l)}},n.prototype._setDiagnosticsSampleRate=function(r){if(!(r>1||r<0)&&!this.config){this._diagnosticsSampleRate=r;return}},n})(KT),Q4=function(){var e=new $4;return{init:kt(e.init.bind(e),"init",Dt(e),Ct(e,["config"])),add:kt(e.add.bind(e),"add",Dt(e),Ct(e,["config.apiKey","timeline.plugins"])),remove:kt(e.remove.bind(e),"remove",Dt(e),Ct(e,["config.apiKey","timeline.plugins"])),track:kt(e.track.bind(e),"track",Dt(e),Ct(e,["config.apiKey","timeline.queue.length"])),logEvent:kt(e.logEvent.bind(e),"logEvent",Dt(e),Ct(e,["config.apiKey","timeline.queue.length"])),identify:kt(e.identify.bind(e),"identify",Dt(e),Ct(e,["config.apiKey","timeline.queue.length"])),groupIdentify:kt(e.groupIdentify.bind(e),"groupIdentify",Dt(e),Ct(e,["config.apiKey","timeline.queue.length"])),setGroup:kt(e.setGroup.bind(e),"setGroup",Dt(e),Ct(e,["config.apiKey","timeline.queue.length"])),revenue:kt(e.revenue.bind(e),"revenue",Dt(e),Ct(e,["config.apiKey","timeline.queue.length"])),flush:kt(e.flush.bind(e),"flush",Dt(e),Ct(e,["config.apiKey","timeline.queue.length"])),getUserId:kt(e.getUserId.bind(e),"getUserId",Dt(e),Ct(e,["config","config.userId"])),setUserId:kt(e.setUserId.bind(e),"setUserId",Dt(e),Ct(e,["config","config.userId"])),getDeviceId:kt(e.getDeviceId.bind(e),"getDeviceId",Dt(e),Ct(e,["config","config.deviceId"])),setDeviceId:kt(e.setDeviceId.bind(e),"setDeviceId",Dt(e),Ct(e,["config","config.deviceId"])),reset:kt(e.reset.bind(e),"reset",Dt(e),Ct(e,["config","config.userId","config.deviceId"])),getSessionId:kt(e.getSessionId.bind(e),"getSessionId",Dt(e),Ct(e,["config"])),setSessionId:kt(e.setSessionId.bind(e),"setSessionId",Dt(e),Ct(e,["config"])),extendSession:kt(e.extendSession.bind(e),"extendSession",Dt(e),Ct(e,["config"])),setOptOut:kt(e.setOptOut.bind(e),"setOptOut",Dt(e),Ct(e,["config"])),setTransport:kt(e.setTransport.bind(e),"setTransport",Dt(e),Ct(e,["config"])),getIdentity:kt(e.getIdentity.bind(e),"getIdentity",Dt(e),Ct(e,["config"])),getOptOut:kt(e.getOptOut.bind(e),"getOptOut",Dt(e),Ct(e,["config"])),_setDiagnosticsSampleRate:kt(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",Dt(e),Ct(e,["config"]))}};const $1=Q4();var V4=$1.init,G4=$1.track;const Y4="c97dd2acbf306ab7bf54aca0aeb7ffa1",K0="prefect-web-app-loaded";function K4(){return V4(Y4,{trackingOptions:{ipAddress:!1,language:!1,platform:!1},autocapture:!1}),!0}function W4(e,n){!e||sessionStorage.getItem(K0)||(G4("Web App Loaded",n),sessionStorage.setItem(K0,"true"))}function X4({children:e}){const[n,r]=k.useState(!1),o=k.useRef(!1);k.useEffect(()=>{n||r(K4())},[n]);const[{data:l},{data:u}]=Rb({queries:[{...Wb(),enabled:n},{...Kb(),enabled:n}]});return k.useEffect(()=>{if(!(!n||o.current)&&l&&u){o.current=!0;const h=l.server?.analytics_enabled??!0;W4(h,{environment:"OSS",prefect_version:u})}},[n,l,u]),d.jsx(d.Fragment,{children:e})}const cm=k.createContext(null);function Z4(){const e=k.useContext(cm);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function Q1(){return k.useContext(cm)}const Ru="prefect-password";async function W0(e,n){try{return(await fetch(`${n}/admin/version`,{headers:{Authorization:`Basic ${e}`}})).ok}catch{return!1}}function J4({children:e}){const[n,r]=k.useState(!0),[o,l]=k.useState(!1),[u,c]=k.useState(!1);k.useEffect(()=>{const y=()=>{l(!1)};return window.addEventListener("auth:unauthorized",y),()=>window.removeEventListener("auth:unauthorized",y)},[]),k.useEffect(()=>{(async()=>{try{const v=await el.load(),b=v.auth==="BASIC";if(c(b),!b){l(!0),r(!1);return}const w=localStorage.getItem(Ru);if(w){const E=await W0(w,v.apiUrl);l(E),E||localStorage.removeItem(Ru)}}catch(v){console.error("Failed to initialize auth:",v)}finally{r(!1)}})()},[]);const h=k.useCallback(async y=>{try{const v=await el.load(),b=btoa(y);return await W0(b,v.apiUrl)?(localStorage.setItem(Ru,b),l(!0),{success:!0}):{success:!1,error:"Invalid credentials"}}catch{return{success:!1,error:"Authentication failed"}}},[]),p=k.useCallback(()=>{localStorage.removeItem(Ru),l(!1)},[]),g={isAuthenticated:o,isLoading:n,authRequired:u,login:h,logout:p};return d.jsx(cm.Provider,{value:g,children:e})}const V1=(...e)=>e.filter((n,r,o)=>!!n&&n.trim()!==""&&o.indexOf(n)===r).join(" ").trim();const eN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const tN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,o)=>o?o.toUpperCase():r.toLowerCase());const X0=e=>{const n=tN(e);return n.charAt(0).toUpperCase()+n.slice(1)};var nN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const aN=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const rN=k.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:u,iconNode:c,...h},p)=>k.createElement("svg",{ref:p,...nN,width:n,height:n,stroke:e,strokeWidth:o?Number(r)*24/Number(n):r,className:V1("lucide",l),...!u&&!aN(h)&&{"aria-hidden":"true"},...h},[...c.map(([g,y])=>k.createElement(g,y)),...Array.isArray(u)?u:[u]]));const we=(e,n)=>{const r=k.forwardRef(({className:o,...l},u)=>k.createElement(rN,{ref:u,iconNode:n,className:V1(`lucide-${eN(X0(e))}`,`lucide-${e}`,o),...l}));return r.displayName=X0(e),r};const iN=[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"6",rx:"2",key:"13squh"}],["path",{d:"M2 2h20",key:"1ennik"}]],oN=we("align-vertical-justify-start",iN);const sN=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lN=we("ban",sN);const uN=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],cN=we("bot",uN);const dN=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],fN=we("box",dN);const hN=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],G1=we("calendar",hN);const mN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dm=we("check",mN);const pN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ll=we("chevron-down",pN);const vN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Y1=we("chevron-left",vN);const gN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fm=we("chevron-right",gN);const yN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],bN=we("chevron-up",yN);const xN=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],wN=we("chevrons-left",xN);const SN=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],EN=we("chevrons-right",SN);const _N=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],TN=we("chevrons-up-down",_N);const DN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],CN=we("circle-alert",DN);const kN=[["path",{d:"M22 12A10 10 0 1 1 12 2",key:"1fm58d"}],["path",{d:"M22 2 12 12",key:"yg2myt"}],["path",{d:"M16 2h6v6",key:"zan5cs"}]],NN=we("circle-arrow-out-up-right",kN);const AN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],RN=we("circle-check",AN);const jN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],ec=we("circle-dot",jN);const MN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],K1=we("circle-pause",MN);const ON=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],LN=we("circle",ON);const IN=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],W1=we("clock",IN);const zN=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],FN=we("cog",zN);const UN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],qN=we("copy",UN);const BN=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],PN=we("cpu",BN);const HN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],$N=we("crosshair",HN);const QN=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],VN=we("download",QN);const GN=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Z0=we("ellipsis-vertical",GN);const YN=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],KN=we("ellipsis",YN);const WN=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],XN=we("expand",WN);const ZN=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],JN=we("external-link",ZN);const e3=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],t3=we("gauge",e3);const n3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],a3=we("image",n3);const r3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],i3=we("info",r3);const o3=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],s3=we("layout-grid",o3);const l3=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],u3=we("list-ordered",l3);const c3=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],d3=we("list-todo",c3);const f3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],h3=we("loader-circle",f3);const m3=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],p3=we("log-out",m3);const v3=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],g3=we("monitor",v3);const y3=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],b3=we("moon",y3);const x3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],w3=we("panel-left",x3);const S3=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],E3=we("pause",S3);const _3=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],T3=we("play",_3);const D3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],C3=we("plus",D3);const k3=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],X1=we("refresh-cw",k3);const N3=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],A3=we("rocket",N3);const R3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Z1=we("search",R3);const j3=[["path",{d:"M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2",key:"4b9dqc"}],["path",{d:"M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2",key:"22nnkd"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m13 6-4 6h6l-4 6",key:"14hqih"}]],M3=we("server-crash",j3);const O3=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],L3=we("server",O3);const I3=[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]],z3=we("shrink",I3);const F3=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],U3=we("sliders-vertical",F3);const q3=[["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}]],B3=we("spline",q3);const P3=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],H3=we("sun",P3);const $3=[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]],Q3=we("text-align-justify",$3);const V3=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],G3=we("trash-2",V3);const Y3=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],K3=we("variable",Y3);const W3=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],X3=we("workflow",W3);const Z3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hm=we("x",Z3);const J3=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],eA=we("zap",J3),va={AlignJustify:Q3,AlignVerticalJustifyStart:oN,Ban:lN,Bot:cN,Box:fN,Calendar:G1,Check:dm,ChevronDown:ll,ChevronLeft:Y1,ChevronRight:fm,ChevronsLeft:wN,ChevronsRight:EN,ChevronsUpDown:TN,Circle:LN,CircleArrowOutUpRight:NN,CircleCheck:RN,Clock:W1,Cog:FN,Copy:qN,Cpu:PN,Crosshair:$N,Download:VN,EllipsisVertical:Z0,Expand:XN,ExternalLink:JN,Gauge:t3,Image:a3,Info:i3,LayoutGrid:s3,ListOrdered:u3,ListTodo:d3,Loader2:h3,Monitor:g3,Moon:b3,MoreHorizontal:KN,MoreVertical:Z0,PanelLeft:w3,Pause:E3,Play:T3,Plus:C3,RefreshCw:X1,Rocket:A3,Search:Z1,Server:L3,ServerCrash:M3,Shrink:z3,SlidersVertical:U3,Spline:B3,Sun:H3,Trash2:G3,Variable:K3,Workflow:X3,X:hm,Zap:eA},gt=({id:e,...n})=>{const r=va[e];return d.jsx(r,{...n})},mm="-",tA=e=>{const n=aA(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const h=c.split(mm);return h[0]===""&&h.length!==1&&h.shift(),J1(h,n)||nA(c)},getConflictingClassGroupIds:(c,h)=>{const p=r[c]||[];return h&&o[c]?[...p,...o[c]]:p}}},J1=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],o=n.nextPart.get(r),l=o?J1(e.slice(1),o):void 0;if(l)return l;if(n.validators.length===0)return;const u=e.join(mm);return n.validators.find(({validator:c})=>c(u))?.classGroupId},J0=/^\[(.+)\]$/,nA=e=>{if(J0.test(e)){const n=J0.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},aA=e=>{const{theme:n,prefix:r}=e,o={nextPart:new Map,validators:[]};return iA(Object.entries(e.classGroups),r).forEach(([u,c])=>{Eh(c,o,u,n)}),o},Eh=(e,n,r,o)=>{e.forEach(l=>{if(typeof l=="string"){const u=l===""?n:eb(n,l);u.classGroupId=r;return}if(typeof l=="function"){if(rA(l)){Eh(l(o),n,r,o);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([u,c])=>{Eh(c,eb(n,u),r,o)})})},eb=(e,n)=>{let r=e;return n.split(mm).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},rA=e=>e.isThemeGetter,iA=(e,n)=>n?e.map(([r,o])=>{const l=o.map(u=>typeof u=="string"?n+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([c,h])=>[n+c,h])):u);return[r,l]}):e,oA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,o=new Map;const l=(u,c)=>{r.set(u,c),n++,n>e&&(n=0,o=r,r=new Map)};return{get(u){let c=r.get(u);if(c!==void 0)return c;if((c=o.get(u))!==void 0)return l(u,c),c},set(u,c){r.has(u)?r.set(u,c):l(u,c)}}},ex="!",sA=e=>{const{separator:n,experimentalParseClassName:r}=e,o=n.length===1,l=n[0],u=n.length,c=h=>{const p=[];let g=0,y=0,v;for(let D=0;D<h.length;D++){let _=h[D];if(g===0){if(_===l&&(o||h.slice(D,D+u)===n)){p.push(h.slice(y,D)),y=D+u;continue}if(_==="/"){v=D;continue}}_==="["?g++:_==="]"&&g--}const b=p.length===0?h:h.substring(y),w=b.startsWith(ex),E=w?b.substring(1):b,C=v&&v>y?v-y:void 0;return{modifiers:p,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}};return r?h=>r({className:h,parseClassName:c}):c},lA=e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(o=>{o[0]==="["?(n.push(...r.sort(),o),r=[]):r.push(o)}),n.push(...r.sort()),n},uA=e=>({cache:oA(e.cacheSize),parseClassName:sA(e),...tA(e)}),cA=/\s+/,dA=(e,n)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=n,u=[],c=e.trim().split(cA);let h="";for(let p=c.length-1;p>=0;p-=1){const g=c[p],{modifiers:y,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:w}=r(g);let E=!!w,C=o(E?b.substring(0,w):b);if(!C){if(!E){h=g+(h.length>0?" "+h:h);continue}if(C=o(b),!C){h=g+(h.length>0?" "+h:h);continue}E=!1}const D=lA(y).join(":"),_=v?D+ex:D,A=_+C;if(u.includes(A))continue;u.push(A);const N=l(C,E);for(let M=0;M<N.length;++M){const O=N[M];u.push(_+O)}h=g+(h.length>0?" "+h:h)}return h};function fA(){let e=0,n,r,o="";for(;e<arguments.length;)(n=arguments[e++])&&(r=tx(n))&&(o&&(o+=" "),o+=r);return o}const tx=e=>{if(typeof e=="string")return e;let n,r="";for(let o=0;o<e.length;o++)e[o]&&(n=tx(e[o]))&&(r&&(r+=" "),r+=n);return r};function hA(e,...n){let r,o,l,u=c;function c(p){const g=n.reduce((y,v)=>v(y),e());return r=uA(g),o=r.cache.get,l=r.cache.set,u=h,h(p)}function h(p){const g=o(p);if(g)return g;const y=dA(p,r);return l(p,y),y}return function(){return u(fA.apply(null,arguments))}}const xt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},nx=/^\[(?:([a-z-]+):)?(.+)\]$/i,mA=/^\d+\/\d+$/,pA=new Set(["px","full","screen"]),vA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fr=e=>Ao(e)||pA.has(e)||mA.test(e),Hr=e=>Uo(e,"length",kA),Ao=e=>!!e&&!Number.isNaN(Number(e)),Yf=e=>Uo(e,"number",Ao),Fs=e=>!!e&&Number.isInteger(Number(e)),wA=e=>e.endsWith("%")&&Ao(e.slice(0,-1)),Oe=e=>nx.test(e),$r=e=>vA.test(e),SA=new Set(["length","size","percentage"]),EA=e=>Uo(e,SA,ax),_A=e=>Uo(e,"position",ax),TA=new Set(["image","url"]),DA=e=>Uo(e,TA,AA),CA=e=>Uo(e,"",NA),Us=()=>!0,Uo=(e,n,r)=>{const o=nx.exec(e);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):r(o[2]):!1},kA=e=>gA.test(e)&&!yA.test(e),ax=()=>!1,NA=e=>bA.test(e),AA=e=>xA.test(e),RA=()=>{const e=xt("colors"),n=xt("spacing"),r=xt("blur"),o=xt("brightness"),l=xt("borderColor"),u=xt("borderRadius"),c=xt("borderSpacing"),h=xt("borderWidth"),p=xt("contrast"),g=xt("grayscale"),y=xt("hueRotate"),v=xt("invert"),b=xt("gap"),w=xt("gradientColorStops"),E=xt("gradientColorStopPositions"),C=xt("inset"),D=xt("margin"),_=xt("opacity"),A=xt("padding"),N=xt("saturate"),M=xt("scale"),O=xt("sepia"),I=xt("skew"),S=xt("space"),U=xt("translate"),F=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Oe,n],K=()=>[Oe,n],se=()=>["",fr,Hr],ae=()=>["auto",Ao,Oe],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",Oe],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[Ao,Oe];return{cacheSize:500,separator:":",theme:{colors:[Us],spacing:[fr,Hr],blur:["none","",$r,Oe],brightness:pe(),borderColor:[e],borderRadius:["none","","full",$r,Oe],borderSpacing:K(),borderWidth:se(),contrast:pe(),grayscale:de(),hueRotate:pe(),invert:de(),gap:K(),gradientColorStops:[e],gradientColorStopPositions:[wA,Hr],inset:B(),margin:B(),opacity:pe(),padding:K(),saturate:pe(),scale:pe(),sepia:de(),skew:pe(),space:K(),translate:K()},classGroups:{aspect:[{aspect:["auto","square","video",Oe]}],container:["container"],columns:[{columns:[$r]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),Oe]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fs,Oe]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Oe]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Fs,Oe]}],"grid-cols":[{"grid-cols":[Us]}],"col-start-end":[{col:["auto",{span:["full",Fs,Oe]},Oe]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[Us]}],"row-start-end":[{row:["auto",{span:[Fs,Oe]},Oe]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Oe]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[D]}],mx:[{mx:[D]}],my:[{my:[D]}],ms:[{ms:[D]}],me:[{me:[D]}],mt:[{mt:[D]}],mr:[{mr:[D]}],mb:[{mb:[D]}],ml:[{ml:[D]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Oe,n]}],"min-w":[{"min-w":[Oe,n,"min","max","fit"]}],"max-w":[{"max-w":[Oe,n,"none","full","min","max","fit","prose",{screen:[$r]},$r]}],h:[{h:[Oe,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Oe,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Oe,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Oe,n,"auto","min","max","fit"]}],"font-size":[{text:["base",$r,Hr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yf]}],"font-family":[{font:[Us]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Oe]}],"line-clamp":[{"line-clamp":["none",Ao,Yf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fr,Oe]}],"list-image":[{"list-image":["none",Oe]}],"list-style-type":[{list:["none","disc","decimal",Oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fr,Hr]}],"underline-offset":[{"underline-offset":["auto",fr,Oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),_A]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",EA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},DA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:j()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[fr,Oe]}],"outline-w":[{outline:[fr,Hr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[fr,Hr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$r,CA]}],"shadow-color":[{shadow:[Us]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",$r,Oe]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[v]}],saturate:[{saturate:[N]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Oe]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",Oe]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Fs,Oe]}],"translate-x":[{"translate-x":[U]}],"translate-y":[{"translate-y":[U]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[fr,Hr,Yf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jA=hA(RA);function $(...e){return jA(Bh(e))}const Dn={year:31536e3,day:86400,hour:3600,minute:60};function rx(e){const n=Math.floor(e/Dn.year),r=Math.floor(e%Dn.year/Dn.day),o=Math.floor(e%Dn.year%Dn.day/Dn.hour),l=Math.floor(e%Dn.year%Dn.day%Dn.hour/Dn.minute),u=Math.ceil(e%Dn.year%Dn.day%Dn.hour%Dn.minute);return{years:n,days:r,hours:o,minutes:l,seconds:u}}function ix(e,n=!0){return`${e===1&&!n?"":e}`}function qs(e,n,r=!0){return`${ix(n,r)} ${e}${n!==1?"s":""}`}function Bs(e,n,r=!0){return`${ix(n,r)}${e}`}function PL(e,n=!0){const{years:r,days:o,hours:l,minutes:u,seconds:c}=rx(e),h=r?qs("year",r,n):"",p=o?qs("day",o,n):"",g=l?qs("hour",l,n):"",y=u?qs("minute",u,n):"",v=c?qs("second",c,n):"";return[h,p,g,y,v].map(b=>b||"").join(" ").trim()}function ox(e,n=!0){const{years:r,days:o,hours:l,minutes:u,seconds:c}=rx(e),h=Bs("y",r,n),p=Bs("d",o,n),g=Bs("h",l,n),y=Bs("m",u,n),v=Bs("s",c,n);switch(!0){case(r>0&&o===0):return h;case(r>0&&o>0):return`${h} ${p}`;case(o>0&&l===0):return p;case(o>0&&l>0):return`${p} ${g}`;case(l>0&&u===0):return`${g} ${y}`;case(l>0&&u>0):return`${g} ${y}`;case(u>0&&c===0):return y;case(u>0&&c>0):return`${y} ${v}`;default:return v}}const sx="MMM do, yyyy",lx="hh:mm a",MA=`${sx} 'at' ${lx}`,ux="hh:mm:ss a",cx="hh:mm a",pm="yyyy/MM/dd",OA=`${pm} ${ux}`,LA=`${pm} ${cx}`,IA={date:sx,time:lx,dateTime:MA,timeNumeric:ux,timeNumericShort:cx,dateNumeric:pm,dateTimeNumeric:OA,dateTimeNumericShort:LA};function _h(e){return new Date(e)}function tb(e,n="date"){const r=_h(e);return sn(r,IA[n])}function zA(e,n=new Date){const r=_h(e),o=_h(n),l=Qs(o,r),u=ic(r,o),c=ox(Math.abs(l));return u?`${c} ago`:`in ${c}`}const dx=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),fx=(e,n,r)=>e===1?n:r||`${n}s`,HL=e=>e.replace(/^[-_]*(.)/,(n,r)=>r.toUpperCase()).replace(/[-_]+(.)/g,(n,r)=>` ${r.toUpperCase()}`);function $L(e){const n=new Set(e);function r(o){return n.has(o)}return{values:e,isValue:r}}const nb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ab=Bh,qo=(e,n)=>r=>{var o;if(n?.variants==null)return ab(e,r?.class,r?.className);const{variants:l,defaultVariants:u}=n,c=Object.keys(l).map(g=>{const y=r?.[g],v=u?.[g];if(y===null)return null;const b=nb(y)||nb(v);return l[g][b]}),h=r&&Object.entries(r).reduce((g,y)=>{let[v,b]=y;return b===void 0||(g[v]=b),g},{}),p=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((g,y)=>{let{class:v,className:b,...w}=y;return Object.entries(w).every(E=>{let[C,D]=E;return Array.isArray(D)?D.includes({...u,...h}[C]):{...u,...h}[C]===D})?[...g,v,b]:g},[]);return ab(e,c,p,r?.class,r?.className)},nl=qo("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),ot=k.forwardRef(({className:e,variant:n,size:r,asChild:o=!1,loading:l=!1,children:u,...c},h)=>{const p=o?Zr:"button";return d.jsx(p,{className:$(nl({variant:n,size:r,className:e})),ref:h,disabled:l,...c,children:l?d.jsx(gt,{id:"Loader2",className:"size-4 animate-spin"}):u})});ot.displayName="Button";const hx=V.createContext(null);function fc(){const e=V.useContext(hx);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function mx(e,n=500){const[r,o]=k.useState(e);return k.useEffect(()=>{const l=setTimeout(()=>{o(e)},n);return()=>{clearTimeout(l)}},[e,n]),r}const mr=k.forwardRef(({className:e,type:n,...r},o)=>d.jsx("input",{type:n,className:$("flex h-9 w-full rounded-md border border-input bg-card dark:bg-background px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));mr.displayName="Input";const px=k.forwardRef(({className:e,Icon:n,...r},o)=>d.jsxs("div",{className:"relative w-full",children:[d.jsx(n,{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground size-4"}),d.jsx(mr,{className:$("pl-8",e),ref:o,...r})]}));px.displayName="IconInput";const FA=k.forwardRef(({className:e,debounceMs:n=200,onChange:r,value:o,...l},u)=>{const[c,h]=k.useState({value:o}),p=mx(c.value,n);return k.useEffect(()=>{p===c.value&&c.event&&r?.(c.event)},[p,r,c.event,c.value]),k.useEffect(()=>{h({value:o})},[o]),d.jsx(px,{Icon:va.Search,className:e,ref:u,value:c.value,onChange:g=>h({value:g.target.value,event:g}),...l})});FA.displayName="SearchInput";function UA({className:e,orientation:n="horizontal",decorative:r=!0,...o}){return d.jsx(yE,{"data-slot":"separator-root",decorative:r,orientation:n,className:$("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...o})}function qA({...e}){return d.jsx(Ih,{"data-slot":"sheet",...e})}function BA({...e}){return d.jsx(Uh,{"data-slot":"sheet-portal",...e})}function PA({className:e,...n}){return d.jsx(qh,{"data-slot":"sheet-overlay",className:$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...n})}function HA({className:e,children:n,side:r="right",...o}){return d.jsxs(BA,{children:[d.jsx(PA,{}),d.jsxs(zh,{"data-slot":"sheet-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[n,d.jsxs(Fh,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[d.jsx(hm,{className:"size-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function QL({className:e,...n}){return d.jsx("div",{"data-slot":"sheet-header",className:$("flex flex-col gap-1.5 p-4",e),...n})}function VL({className:e,...n}){return d.jsx(Mb,{"data-slot":"sheet-title",className:$("text-foreground font-semibold",e),...n})}function ke({className:e,...n}){return d.jsx("div",{"data-slot":"skeleton",className:$("bg-muted animate-pulse rounded-md",e),...n})}function ei({delayDuration:e=0,...n}){return d.jsx(bE,{"data-slot":"tooltip-provider",delayDuration:e,...n})}function Fa({...e}){return d.jsx(ei,{children:d.jsx(xE,{"data-slot":"tooltip",...e})})}function Ua({...e}){return d.jsx(wE,{"data-slot":"tooltip-trigger",...e})}function qa({className:e,sideOffset:n=0,children:r,...o}){return d.jsx(SE,{children:d.jsxs(EE,{"data-slot":"tooltip-content",sideOffset:n,className:$("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",e),...o,children:[r,d.jsx(_E,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Kf=768;function $A(){const[e,n]=k.useState(void 0);return k.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Kf-1}px)`),o=()=>{n(window.innerWidth<Kf)};return r.addEventListener("change",o),n(window.innerWidth<Kf),()=>r.removeEventListener("change",o)},[]),!!e}const QA="16rem",VA="18rem",GA="3rem",YA="b",vx=k.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:o,style:l,children:u,...c},h)=>{const p=$A(),[g,y]=k.useState(!1),[v,b]=k.useState(e),w=n??v,E=k.useCallback(A=>{const N=typeof A=="function"?A(w):A;r?r(N):b(N)},[r,w]),C=k.useCallback(()=>p?y(A=>!A):E(A=>!A),[p,E]);k.useEffect(()=>{const A=N=>{N.key===YA&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),C())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[C]);const D=w?"expanded":"collapsed",_=k.useMemo(()=>({state:D,open:w,setOpen:E,isMobile:p,openMobile:g,setOpenMobile:y,toggleSidebar:C}),[D,w,E,p,g,C]);return d.jsx(hx.Provider,{value:_,children:d.jsx(ei,{delayDuration:0,children:d.jsx("div",{style:{"--sidebar-width":QA,"--sidebar-width-icon":GA,...l},className:$("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",o),ref:h,...c,children:u})})})});vx.displayName="SidebarProvider";const gx=k.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:o,children:l,...u},c)=>{const{isMobile:h,state:p,openMobile:g,setOpenMobile:y}=fc();return r==="none"?d.jsx("div",{className:$("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",o),ref:c,...u,children:l}):h?d.jsx(qA,{open:g,onOpenChange:y,...u,children:d.jsx(HA,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":VA},side:e,children:d.jsx("div",{className:"flex h-full w-full flex-col",children:l})})}):d.jsxs("div",{ref:c,className:"group peer hidden md:block text-sidebar-foreground","data-state":p,"data-collapsible":p==="collapsed"?r:"","data-variant":n,"data-side":e,children:[d.jsx("div",{className:$("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),d.jsx("div",{className:$("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...u,children:d.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:l})})]})});gx.displayName="Sidebar";const KA=k.forwardRef(({className:e,onClick:n,...r},o)=>{const{toggleSidebar:l}=fc();return d.jsxs(ot,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:$("size-7",e),onClick:u=>{n?.(u),l()},...r,children:[d.jsx(gt,{id:"PanelLeft"}),d.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});KA.displayName="SidebarTrigger";const WA=k.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:o}=fc();return d.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:$("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});WA.displayName="SidebarRail";const XA=k.forwardRef(({className:e,...n},r)=>d.jsx("main",{ref:r,className:$("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...n}));XA.displayName="SidebarInset";const ZA=k.forwardRef(({className:e,...n},r)=>d.jsx(mr,{ref:r,"data-sidebar":"input",className:$("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));ZA.displayName="SidebarInput";const yx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"header",className:$("flex flex-col gap-2 p-4",e),...n}));yx.displayName="SidebarHeader";const bx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"footer",className:$("flex flex-col gap-2 p-4",e),...n}));bx.displayName="SidebarFooter";const JA=k.forwardRef(({className:e,...n},r)=>d.jsx(UA,{ref:r,"data-sidebar":"separator",className:$("mx-2 w-auto bg-sidebar-border",e),...n}));JA.displayName="SidebarSeparator";const xx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"content",className:$("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));xx.displayName="SidebarContent";const wx=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"group",className:$("relative flex w-full min-w-0 flex-col p-4",e),...n}));wx.displayName="SidebarGroup";const eR=k.forwardRef(({className:e,asChild:n=!1,...r},o)=>{const l=n?Zr:"div";return d.jsx(l,{ref:o,"data-sidebar":"group-label",className:$("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});eR.displayName="SidebarGroupLabel";const tR=k.forwardRef(({className:e,asChild:n=!1,...r},o)=>{const l=n?Zr:"button";return d.jsx(l,{ref:o,"data-sidebar":"group-action",className:$("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})});tR.displayName="SidebarGroupAction";const nR=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"group-content",className:$("w-full text-sm",e),...n}));nR.displayName="SidebarGroupContent";const Th=k.forwardRef(({className:e,...n},r)=>d.jsx("ul",{ref:r,"data-sidebar":"menu",className:$("flex w-full min-w-0 flex-col gap-1",e),...n}));Th.displayName="SidebarMenu";const hn=k.forwardRef(({className:e,...n},r)=>d.jsx("li",{ref:r,"data-sidebar":"menu-item",className:$("group/menu-item relative",e),...n}));hn.displayName="SidebarMenuItem";const aR=qo("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),mn=k.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:o="default",tooltip:l,className:u,...c},h)=>{const p=e?Zr:"button",{isMobile:g,state:y}=fc(),v=d.jsx(p,{ref:h,"data-sidebar":"menu-button","data-size":o,"data-active":n,className:$(aR({variant:r,size:o}),u),...c});return l?(typeof l=="string"&&(l={children:l}),d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:v}),d.jsx(qa,{side:"right",align:"center",hidden:y!=="collapsed"||g,...l})]})):v});mn.displayName="SidebarMenuButton";const rR=k.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...o},l)=>{const u=n?Zr:"button";return d.jsx(u,{ref:l,"data-sidebar":"menu-action",className:$("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o})});rR.displayName="SidebarMenuAction";const iR=k.forwardRef(({className:e,...n},r)=>d.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:$("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));iR.displayName="SidebarMenuBadge";const oR=k.forwardRef(({className:e,showIcon:n=!1,...r},o)=>{const l=k.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return d.jsxs("div",{ref:o,"data-sidebar":"menu-skeleton",className:$("rounded-md h-8 flex gap-2 px-2 items-center",e),...r,children:[n&&d.jsx(ke,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),d.jsx(ke,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});oR.displayName="SidebarMenuSkeleton";const sR=k.forwardRef(({className:e,...n},r)=>d.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:$("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));sR.displayName="SidebarMenuSub";const lR=k.forwardRef(({...e},n)=>d.jsx("li",{ref:n,...e}));lR.displayName="SidebarMenuSubItem";const uR=k.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:o,...l},u)=>{const c=e?Zr:"a";return d.jsx(c,{ref:u,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:$("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...l})});uR.displayName="SidebarMenuSubButton";function cR(){const e=Q1(),n=nE(),r=()=>{e?.logout(),n({to:"/login"})},o=e?.authRequired??!1;return d.jsxs(gx,{children:[d.jsx(yx,{children:d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 76 76",className:"size-11","aria-label":"Prefect Logo",children:[d.jsx("title",{children:"Prefect Logo"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M37.987 49.464 15.89 38v22.944l.013-.006L38 72.402V49.457z",clipRule:"evenodd"})]})}),d.jsx(xx,{children:d.jsx(wx,{children:d.jsxs(Th,{children:[d.jsx(hn,{children:d.jsx(Xt,{to:"/dashboard",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Dashboard"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/runs",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Runs"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/flows",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Flows"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/deployments",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Deployments"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/work-pools",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Work Pools"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/blocks",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Blocks"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/variables",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Variables"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/automations",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Automations"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/events",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Event Feed"})})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/concurrency-limits",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Concurrency"})})})})]})})}),d.jsx(bx,{children:d.jsxs(Th,{children:[d.jsx(hn,{children:d.jsx("a",{href:"https://prefect.io/cloud-vs-oss?utm_source=oss&utm_medium=oss&utm_campaign=oss&utm_term=none&utm_content=none",target:"_blank",rel:"noreferrer",children:d.jsx(mn,{asChild:!0,children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{children:"Ready to scale?"}),d.jsx(ot,{size:"sm",children:"Upgrade"})]})})})}),d.jsx(hn,{children:d.jsx(mn,{asChild:!0,children:d.jsx("span",{children:"Join the community"})})}),d.jsx(hn,{children:d.jsx(Xt,{to:"/settings",children:({isActive:l})=>d.jsx(mn,{asChild:!0,isActive:l,children:d.jsx("span",{children:"Settings"})})})}),o&&d.jsx(hn,{children:d.jsxs(mn,{onClick:r,children:[d.jsx(p3,{className:"h-4 w-4"}),d.jsx("span",{children:"Logout"})]})})]})})]})}var dR=(e,n,r,o,l,u,c,h)=>{let p=document.documentElement,g=["light","dark"];function y(w){(Array.isArray(e)?e:[e]).forEach(E=>{let C=E==="class",D=C&&u?l.map(_=>u[_]||_):l;C?(p.classList.remove(...D),p.classList.add(u&&u[w]?u[w]:w)):p.setAttribute(E,w)}),v(w)}function v(w){h&&g.includes(w)&&(p.style.colorScheme=w)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)y(o);else try{let w=localStorage.getItem(n)||r,E=c&&w==="system"?b():w;y(E)}catch{}},rb=["light","dark"],Sx="(prefers-color-scheme: dark)",fR=typeof window>"u",vm=k.createContext(void 0),hR={setTheme:e=>{},themes:[]},mR=()=>{var e;return(e=k.useContext(vm))!=null?e:hR},pR=e=>k.useContext(vm)?k.createElement(k.Fragment,null,e.children):k.createElement(gR,{...e}),vR=["light","dark"],gR=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=vR,defaultTheme:c=r?"system":"light",attribute:h="data-theme",value:p,children:g,nonce:y,scriptProps:v})=>{let[b,w]=k.useState(()=>bR(l,c)),[E,C]=k.useState(()=>b==="system"?Wf():b),D=p?Object.values(p):u,_=k.useCallback(O=>{let I=O;if(!I)return;O==="system"&&r&&(I=Wf());let S=p?p[I]:I,U=n?xR(y):null,F=document.documentElement,L=B=>{B==="class"?(F.classList.remove(...D),S&&F.classList.add(S)):B.startsWith("data-")&&(S?F.setAttribute(B,S):F.removeAttribute(B))};if(Array.isArray(h)?h.forEach(L):L(h),o){let B=rb.includes(c)?c:null,K=rb.includes(I)?I:B;F.style.colorScheme=K}U?.()},[y]),A=k.useCallback(O=>{let I=typeof O=="function"?O(b):O;w(I);try{localStorage.setItem(l,I)}catch{}},[b]),N=k.useCallback(O=>{let I=Wf(O);C(I),b==="system"&&r&&!e&&_("system")},[b,e]);k.useEffect(()=>{let O=window.matchMedia(Sx);return O.addListener(N),N(O),()=>O.removeListener(N)},[N]),k.useEffect(()=>{let O=I=>{I.key===l&&(I.newValue?w(I.newValue):A(c))};return window.addEventListener("storage",O),()=>window.removeEventListener("storage",O)},[A]),k.useEffect(()=>{_(e??b)},[e,b]);let M=k.useMemo(()=>({theme:b,setTheme:A,forcedTheme:e,resolvedTheme:b==="system"?E:b,themes:r?[...u,"system"]:u,systemTheme:r?E:void 0}),[b,A,e,E,r,u]);return k.createElement(vm.Provider,{value:M},k.createElement(yR,{forcedTheme:e,storageKey:l,attribute:h,enableSystem:r,enableColorScheme:o,defaultTheme:c,value:p,themes:u,nonce:y,scriptProps:v}),g)},yR=k.memo(({forcedTheme:e,storageKey:n,attribute:r,enableSystem:o,enableColorScheme:l,defaultTheme:u,value:c,themes:h,nonce:p,scriptProps:g})=>{let y=JSON.stringify([r,n,u,e,h,c,o,l]).slice(1,-1);return k.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${dR.toString()})(${y})`}})}),bR=(e,n)=>{if(fR)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||n},xR=e=>{let n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(n)},1)}},Wf=e=>(e||(e=window.matchMedia(Sx)),e.matches?"dark":"light");function wR(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const SR=e=>{switch(e){case"success":return TR;case"info":return CR;case"warning":return DR;case"error":return kR;default:return null}},ER=Array(12).fill(0),_R=({visible:e,className:n})=>V.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":e},V.createElement("div",{className:"sonner-spinner"},ER.map((r,o)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),TR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),DR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),CR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),kR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),NR=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),AR=()=>{const[e,n]=V.useState(document.hidden);return V.useEffect(()=>{const r=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Dh=1;class RR{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;const{message:o,...l}=n,u=typeof n?.id=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:Dh++,c=this.toasts.find(p=>p.id===u),h=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),c?this.toasts=this.toasts.map(p=>p.id===u?(this.publish({...p,...n,id:u,title:o}),{...p,...n,id:u,dismissible:h,title:o}):p):this.addToast({title:o,...l,dismissible:h,id:u}),u},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:n,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const l=Promise.resolve(n instanceof Function?n():n);let u=o!==void 0,c;const h=l.then(async g=>{if(c=["resolve",g],V.isValidElement(g))u=!1,this.create({id:o,type:"default",message:g});else if(MR(g)&&!g.ok){u=!1;const v=typeof r.error=="function"?await r.error(`HTTP error! status: ${g.status}`):r.error,b=typeof r.description=="function"?await r.description(`HTTP error! status: ${g.status}`):r.description,E=typeof v=="object"&&!V.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:b,...E})}else if(g instanceof Error){u=!1;const v=typeof r.error=="function"?await r.error(g):r.error,b=typeof r.description=="function"?await r.description(g):r.description,E=typeof v=="object"&&!V.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:b,...E})}else if(r.success!==void 0){u=!1;const v=typeof r.success=="function"?await r.success(g):r.success,b=typeof r.description=="function"?await r.description(g):r.description,E=typeof v=="object"&&!V.isValidElement(v)?v:{message:v};this.create({id:o,type:"success",description:b,...E})}}).catch(async g=>{if(c=["reject",g],r.error!==void 0){u=!1;const y=typeof r.error=="function"?await r.error(g):r.error,v=typeof r.description=="function"?await r.description(g):r.description,w=typeof y=="object"&&!V.isValidElement(y)?y:{message:y};this.create({id:o,type:"error",description:v,...w})}}).finally(()=>{u&&(this.dismiss(o),o=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((g,y)=>h.then(()=>c[0]==="reject"?y(c[1]):g(c[1])).catch(y));return typeof o!="string"&&typeof o!="number"?{unwrap:p}:Object.assign(o,{unwrap:p})},this.custom=(n,r)=>{const o=r?.id||Dh++;return this.create({jsx:n(o),id:o,...r}),o},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const kn=new RR,jR=(e,n)=>{const r=n?.id||Dh++;return kn.addToast({title:e,...n,id:r}),r},MR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",OR=jR,LR=()=>kn.toasts,IR=()=>kn.getActiveToasts(),GL=Object.assign(OR,{success:kn.success,info:kn.info,warning:kn.warning,error:kn.error,custom:kn.custom,message:kn.message,promise:kn.promise,dismiss:kn.dismiss,loading:kn.loading},{getHistory:LR,getToasts:IR});wR("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ju(e){return e.label!==void 0}const zR=3,FR="24px",UR="16px",ib=4e3,qR=356,BR=14,PR=45,HR=200;function Ra(...e){return e.filter(Boolean).join(" ")}function $R(e){const[n,r]=e.split("-"),o=[];return n&&o.push(n),r&&o.push(r),o}const QR=e=>{var n,r,o,l,u,c,h,p,g;const{invert:y,toast:v,unstyled:b,interacting:w,setHeights:E,visibleToasts:C,heights:D,index:_,toasts:A,expanded:N,removeToast:M,defaultRichColors:O,closeButton:I,style:S,cancelButtonStyle:U,actionButtonStyle:F,className:L="",descriptionClassName:B="",duration:K,position:se,gap:ae,expandByDefault:ce,classNames:j,icons:Y,closeButtonAriaLabel:le="Close toast"}=e,[de,fe]=V.useState(null),[pe,G]=V.useState(null),[X,ue]=V.useState(!1),[re,ee]=V.useState(!1),[ve,ge]=V.useState(!1),[Ne,st]=V.useState(!1),[dn,ln]=V.useState(!1),[_a,Jt]=V.useState(0),[Vn,Gn]=V.useState(0),jn=V.useRef(v.duration||K||ib),la=V.useRef(null),Tt=V.useRef(null),$a=_===0,Ta=_+1<=C,Ht=v.type,ua=v.dismissible!==!1,$t=v.className||"",ti=v.descriptionClassName||"",Qa=V.useMemo(()=>D.findIndex(he=>he.toastId===v.id)||0,[D,v.id]),ki=V.useMemo(()=>{var he;return(he=v.closeButton)!=null?he:I},[v.closeButton,I]),Va=V.useMemo(()=>v.duration||K||ib,[v.duration,K]),ni=V.useRef(0),ca=V.useRef(0),Ni=V.useRef(0),Da=V.useRef(null),[Ga,en]=se.split("-"),Mn=V.useMemo(()=>D.reduce((he,mt,zt)=>zt>=Qa?he:he+mt.height,0),[D,Qa]),Gt=AR(),Ai=v.invert||y,ai=Ht==="loading";ca.current=V.useMemo(()=>Qa*ae+Mn,[Qa,Mn]),V.useEffect(()=>{jn.current=Va},[Va]),V.useEffect(()=>{ue(!0)},[]),V.useEffect(()=>{const he=Tt.current;if(he){const mt=he.getBoundingClientRect().height;return Gn(mt),E(zt=>[{toastId:v.id,height:mt,position:v.position},...zt]),()=>E(zt=>zt.filter(Yt=>Yt.toastId!==v.id))}},[E,v.id]),V.useLayoutEffect(()=>{if(!X)return;const he=Tt.current,mt=he.style.height;he.style.height="auto";const zt=he.getBoundingClientRect().height;he.style.height=mt,Gn(zt),E(Yt=>Yt.find(dt=>dt.toastId===v.id)?Yt.map(dt=>dt.toastId===v.id?{...dt,height:zt}:dt):[{toastId:v.id,height:zt,position:v.position},...Yt])},[X,v.title,v.description,E,v.id,v.jsx,v.action,v.cancel]);const De=V.useCallback(()=>{ee(!0),Jt(ca.current),E(he=>he.filter(mt=>mt.toastId!==v.id)),setTimeout(()=>{M(v)},HR)},[v,M,E,ca]);V.useEffect(()=>{if(v.promise&&Ht==="loading"||v.duration===1/0||v.type==="loading")return;let he;return N||w||Gt?(()=>{if(Ni.current<ni.current){const Yt=new Date().getTime()-ni.current;jn.current=jn.current-Yt}Ni.current=new Date().getTime()})():jn.current!==1/0&&(ni.current=new Date().getTime(),he=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),De()},jn.current)),()=>clearTimeout(he)},[N,w,v,Ht,Gt,De]),V.useEffect(()=>{v.delete&&(De(),v.onDismiss==null||v.onDismiss.call(v,v))},[De,v.delete]);function He(){var he;if(Y?.loading){var mt;return V.createElement("div",{className:Ra(j?.loader,v==null||(mt=v.classNames)==null?void 0:mt.loader,"sonner-loader"),"data-visible":Ht==="loading"},Y.loading)}return V.createElement(_R,{className:Ra(j?.loader,v==null||(he=v.classNames)==null?void 0:he.loader),visible:Ht==="loading"})}const Te=v.icon||Y?.[Ht]||SR(Ht);var Ue,St;return V.createElement("li",{tabIndex:0,ref:Tt,className:Ra(L,$t,j?.toast,v==null||(n=v.classNames)==null?void 0:n.toast,j?.default,j?.[Ht],v==null||(r=v.classNames)==null?void 0:r[Ht]),"data-sonner-toast":"","data-rich-colors":(Ue=v.richColors)!=null?Ue:O,"data-styled":!(v.jsx||v.unstyled||b),"data-mounted":X,"data-promise":!!v.promise,"data-swiped":dn,"data-removed":re,"data-visible":Ta,"data-y-position":Ga,"data-x-position":en,"data-index":_,"data-front":$a,"data-swiping":ve,"data-dismissible":ua,"data-type":Ht,"data-invert":Ai,"data-swipe-out":Ne,"data-swipe-direction":pe,"data-expanded":!!(N||ce&&X),"data-testid":v.testId,style:{"--index":_,"--toasts-before":_,"--z-index":A.length-_,"--offset":`${re?_a:ca.current}px`,"--initial-height":ce?"auto":`${Vn}px`,...S,...v.style},onDragEnd:()=>{ge(!1),fe(null),Da.current=null},onPointerDown:he=>{he.button!==2&&(ai||!ua||(la.current=new Date,Jt(ca.current),he.target.setPointerCapture(he.pointerId),he.target.tagName!=="BUTTON"&&(ge(!0),Da.current={x:he.clientX,y:he.clientY})))},onPointerUp:()=>{var he,mt,zt;if(Ne||!ua)return;Da.current=null;const Yt=Number(((he=Tt.current)==null?void 0:he.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Yn=Number(((mt=Tt.current)==null?void 0:mt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),dt=new Date().getTime()-((zt=la.current)==null?void 0:zt.getTime()),vn=de==="x"?Yt:Yn,ri=Math.abs(vn)/dt;if(Math.abs(vn)>=PR||ri>.11){Jt(ca.current),v.onDismiss==null||v.onDismiss.call(v,v),G(de==="x"?Yt>0?"right":"left":Yn>0?"down":"up"),De(),st(!0);return}else{var gn,yn;(gn=Tt.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(yn=Tt.current)==null||yn.style.setProperty("--swipe-amount-y","0px")}ln(!1),ge(!1),fe(null)},onPointerMove:he=>{var mt,zt,Yt;if(!Da.current||!ua||((mt=window.getSelection())==null?void 0:mt.toString().length)>0)return;const dt=he.clientY-Da.current.y,vn=he.clientX-Da.current.x;var ri;const gn=(ri=e.swipeDirections)!=null?ri:$R(se);!de&&(Math.abs(vn)>1||Math.abs(dt)>1)&&fe(Math.abs(vn)>Math.abs(dt)?"x":"y");let yn={x:0,y:0};const Ri=da=>1/(1.5+Math.abs(da)/20);if(de==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&dt<0||gn.includes("bottom")&&dt>0)yn.y=dt;else{const da=dt*Ri(dt);yn.y=Math.abs(da)<Math.abs(dt)?da:dt}}else if(de==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&vn<0||gn.includes("right")&&vn>0)yn.x=vn;else{const da=vn*Ri(vn);yn.x=Math.abs(da)<Math.abs(vn)?da:vn}(Math.abs(yn.x)>0||Math.abs(yn.y)>0)&&ln(!0),(zt=Tt.current)==null||zt.style.setProperty("--swipe-amount-x",`${yn.x}px`),(Yt=Tt.current)==null||Yt.style.setProperty("--swipe-amount-y",`${yn.y}px`)}},ki&&!v.jsx&&Ht!=="loading"?V.createElement("button",{"aria-label":le,"data-disabled":ai,"data-close-button":!0,onClick:ai||!ua?()=>{}:()=>{De(),v.onDismiss==null||v.onDismiss.call(v,v)},className:Ra(j?.closeButton,v==null||(o=v.classNames)==null?void 0:o.closeButton)},(St=Y?.close)!=null?St:NR):null,(Ht||v.icon||v.promise)&&v.icon!==null&&(Y?.[Ht]!==null||v.icon)?V.createElement("div",{"data-icon":"",className:Ra(j?.icon,v==null||(l=v.classNames)==null?void 0:l.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||He():null,v.type!=="loading"?Te:null):null,V.createElement("div",{"data-content":"",className:Ra(j?.content,v==null||(u=v.classNames)==null?void 0:u.content)},V.createElement("div",{"data-title":"",className:Ra(j?.title,v==null||(c=v.classNames)==null?void 0:c.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?V.createElement("div",{"data-description":"",className:Ra(B,ti,j?.description,v==null||(h=v.classNames)==null?void 0:h.description)},typeof v.description=="function"?v.description():v.description):null),V.isValidElement(v.cancel)?v.cancel:v.cancel&&ju(v.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||U,onClick:he=>{ju(v.cancel)&&ua&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,he),De())},className:Ra(j?.cancelButton,v==null||(p=v.classNames)==null?void 0:p.cancelButton)},v.cancel.label):null,V.isValidElement(v.action)?v.action:v.action&&ju(v.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||F,onClick:he=>{ju(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,he),!he.defaultPrevented&&De())},className:Ra(j?.actionButton,v==null||(g=v.classNames)==null?void 0:g.actionButton)},v.action.label):null)};function ob(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function VR(e,n){const r={};return[e,n].forEach((o,l)=>{const u=l===1,c=u?"--mobile-offset":"--offset",h=u?UR:FR;function p(g){["top","right","bottom","left"].forEach(y=>{r[`${c}-${y}`]=typeof g=="number"?`${g}px`:g})}typeof o=="number"||typeof o=="string"?p(o):typeof o=="object"?["top","right","bottom","left"].forEach(g=>{o[g]===void 0?r[`${c}-${g}`]=h:r[`${c}-${g}`]=typeof o[g]=="number"?`${o[g]}px`:o[g]}):p(h)}),r}const GR=V.forwardRef(function(n,r){const{id:o,invert:l,position:u="bottom-right",hotkey:c=["altKey","KeyT"],expand:h,closeButton:p,className:g,offset:y,mobileOffset:v,theme:b="light",richColors:w,duration:E,style:C,visibleToasts:D=zR,toastOptions:_,dir:A=ob(),gap:N=BR,icons:M,containerAriaLabel:O="Notifications"}=n,[I,S]=V.useState([]),U=V.useMemo(()=>o?I.filter(X=>X.toasterId===o):I.filter(X=>!X.toasterId),[I,o]),F=V.useMemo(()=>Array.from(new Set([u].concat(U.filter(X=>X.position).map(X=>X.position)))),[U,u]),[L,B]=V.useState([]),[K,se]=V.useState(!1),[ae,ce]=V.useState(!1),[j,Y]=V.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),le=V.useRef(null),de=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),fe=V.useRef(null),pe=V.useRef(!1),G=V.useCallback(X=>{S(ue=>{var re;return(re=ue.find(ee=>ee.id===X.id))!=null&&re.delete||kn.dismiss(X.id),ue.filter(({id:ee})=>ee!==X.id)})},[]);return V.useEffect(()=>kn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{S(ue=>ue.map(re=>re.id===X.id?{...re,delete:!0}:re))});return}setTimeout(()=>{aE.flushSync(()=>{S(ue=>{const re=ue.findIndex(ee=>ee.id===X.id);return re!==-1?[...ue.slice(0,re),{...ue[re],...X},...ue.slice(re+1)]:[X,...ue]})})})}),[I]),V.useEffect(()=>{if(b!=="system"){Y(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ue})=>{Y(ue?"dark":"light")})}catch{X.addListener(({matches:re})=>{try{Y(re?"dark":"light")}catch(ee){console.error(ee)}})}},[b]),V.useEffect(()=>{I.length<=1&&se(!1)},[I]),V.useEffect(()=>{const X=ue=>{var re;if(c.every(ge=>ue[ge]||ue.code===ge)){var ve;se(!0),(ve=le.current)==null||ve.focus()}ue.code==="Escape"&&(document.activeElement===le.current||(re=le.current)!=null&&re.contains(document.activeElement))&&se(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[c]),V.useEffect(()=>{if(le.current)return()=>{fe.current&&(fe.current.focus({preventScroll:!0}),fe.current=null,pe.current=!1)}},[le.current]),V.createElement("section",{ref:r,"aria-label":`${O} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((X,ue)=>{var re;const[ee,ve]=X.split("-");return U.length?V.createElement("ol",{key:X,dir:A==="auto"?ob():A,tabIndex:-1,ref:le,className:g,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":ee,"data-x-position":ve,style:{"--front-toast-height":`${((re=L[0])==null?void 0:re.height)||0}px`,"--width":`${qR}px`,"--gap":`${N}px`,...C,...VR(y,v)},onBlur:ge=>{pe.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(pe.current=!1,fe.current&&(fe.current.focus({preventScroll:!0}),fe.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||pe.current||(pe.current=!0,fe.current=ge.relatedTarget)},onMouseEnter:()=>se(!0),onMouseMove:()=>se(!0),onMouseLeave:()=>{ae||se(!1)},onDragEnd:()=>se(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},U.filter(ge=>!ge.position&&ue===0||ge.position===X).map((ge,Ne)=>{var st,dn;return V.createElement(QR,{key:ge.id,icons:M,index:Ne,toast:ge,defaultRichColors:w,duration:(st=_?.duration)!=null?st:E,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:l,visibleToasts:D,closeButton:(dn=_?.closeButton)!=null?dn:p,interacting:ae,position:X,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:G,toasts:U.filter(ln=>ln.position==ge.position),heights:L.filter(ln=>ln.position==ge.position),setHeights:B,expandByDefault:h,gap:N,expanded:K,swipeDirections:n.swipeDirections})})):null}))}),YR=({...e})=>{const{theme:n="system"}=mR();return d.jsx(GR,{theme:n,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground font-medium",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground font-medium"}},...e})};function KR(e,n){const[r,o]=k.useState(()=>{if(typeof window<"u")try{const l=localStorage.getItem(e);return l?JSON.parse(l):n}catch(l){return console.log(l),n}else return n});return k.useEffect(()=>{typeof window<"u"&&localStorage.setItem(e,JSON.stringify(r))},[e,r]),[r,o]}const sb=["default","achromatopsia","deuteranopia","deuteranomaly","protanopia","protanomaly","tritanomaly","tritanopia"],WR="prefect-color-mode";function lb(e){return`color-mode-${e}`}function XR(){const[e,n]=KR(WR,"default"),r=k.useCallback(l=>{sb.forEach(u=>{document.body.classList.remove(lb(u))}),document.body.classList.add(lb(l))},[]),o=k.useCallback(l=>{n(l),r(l)},[n,r]);return k.useEffect(()=>{r(e)},[e,r]),{colorMode:e,setColorMode:o,colorModes:sb}}function ZR({children:e,...n}){return d.jsx(pR,{...n,children:e})}function JR({children:e}){return XR(),d.jsx(ZR,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,storageKey:"vite-ui-theme",children:d.jsxs(vx,{children:[d.jsx(cR,{}),d.jsx("main",{className:"flex-1 overflow-auto p-4",children:e}),d.jsx(YR,{})]})})}function Ke(){return d.jsx("div",{className:"flex h-screen w-screen items-center justify-center",children:d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 76 76",className:"size-16 animate-pulse text-foreground","aria-label":"Loading",children:[d.jsx("title",{children:"Loading"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.89 15.07 38 26.543v22.935l22.104-11.47.007.004V15.068l-.003.001L38 3.598z",clipRule:"evenodd"}),d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M37.987 49.464 15.89 38v22.944l.013-.006L38 72.402V49.457z",clipRule:"evenodd"})]})})}function Ea({className:e,...n}){return d.jsx("div",{"data-slot":"card",className:$("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function Ci({className:e,...n}){return d.jsx("div",{"data-slot":"card-header",className:$("flex flex-col gap-1.5 px-6",e),...n})}function hc({className:e,...n}){return d.jsx("div",{"data-slot":"card-title",className:$("leading-none font-semibold",e),...n})}function ej({className:e,...n}){return d.jsx("div",{"data-slot":"card-description",className:$("text-muted-foreground text-sm",e),...n})}function Pa({className:e,...n}){return d.jsx("div",{"data-slot":"card-content",className:$("px-6",e),...n})}function YL({className:e,...n}){return d.jsx("div",{"data-slot":"card-footer",className:$("flex items-center px-6",e),...n})}const tj=5e3,nj=6e4;function Xf(e){const n=tj*2**e;return Math.min(n,nj)}function aj(e){switch(e){case"network-error":return"ServerCrash";case"server-error":return"Server";case"client-error":return"Ban";default:return"Server"}}function rj(e){switch(e){case"network-error":return"text-orange-500";case"server-error":return"text-red-500";case"client-error":return"text-yellow-500";default:return"text-muted-foreground"}}function ij({error:e,onRetry:n}){const r=k.useRef(0),[o,l]=k.useState(Xf(0)/1e3),[u,c]=k.useState(!1),h=k.useCallback(()=>{c(!0),n(),r.current+=1;const v=Xf(r.current);l(v/1e3),setTimeout(()=>c(!1),500)},[n]),p=k.useCallback(()=>{c(!0),n(),r.current=0,l(Xf(0)/1e3),setTimeout(()=>c(!1),500)},[n]);k.useEffect(()=>{const v=setInterval(()=>{l(b=>b<=1?(h(),b):b-1)},1e3);return()=>clearInterval(v)},[h]);const g=aj(e.type),y=rj(e.type);return d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background p-4",children:d.jsx(Ea,{className:"w-full max-w-md",children:d.jsxs(Pa,{className:"flex flex-col items-center gap-6 pt-6 text-center",children:[d.jsx("div",{className:`rounded-full bg-muted p-4 ${y}`,children:d.jsx(gt,{id:g,className:"size-12"})}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("h1",{className:"text-2xl font-bold",children:e.message}),e.details&&d.jsx("p",{className:"text-muted-foreground",children:e.details}),e.statusCode&&d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Status code: ",e.statusCode]})]}),d.jsxs("div",{className:"flex flex-col items-center gap-3",children:[d.jsxs(ot,{onClick:p,disabled:u,className:"gap-2",children:[d.jsx(gt,{id:"RefreshCw",className:`size-4 ${u?"animate-spin":""}`}),u?"Retrying...":"Retry now"]}),d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Automatically retrying in ",o,"s"]})]}),d.jsxs("div",{className:"border-t pt-4 w-full",children:[d.jsx("p",{className:"text-xs text-muted-foreground",children:"Make sure the Prefect server is running:"}),d.jsx("code",{className:"mt-2 block rounded bg-muted px-3 py-2 text-xs",children:"prefect server start"})]})]})})})}const oj=!1;function sj({error:e,reset:n}){const r=iE(),o=jo(e,"Failed to initialize application"),l=k.useCallback(()=>{el.reset(),n(),r.invalidate()},[n,r]);return d.jsx(ij,{error:o,onRetry:l})}function lj(){const e=oE({select:l=>l.location}),n=Q1(),r=e.pathname==="/login";if(n){if(n.isLoading)return d.jsx(Ke,{});if(n.authRequired&&!n.isAuthenticated&&!r)return d.jsx(sE,{to:"/login",search:{redirectTo:e.href},replace:!0})}const o=d.jsxs(d.Fragment,{children:[d.jsx(lE,{}),oj]});return r?o:d.jsx(JR,{children:o})}const Fe=rE()({beforeLoad:({context:e,location:n})=>{n.pathname==="/login"||!e.auth||e.auth.isLoading||e.auth.authRequired&&!e.auth.isAuthenticated&&rl({to:"/login",search:{redirectTo:n.href},throw:!0})},component:lj,errorComponent:sj}),uj=()=>Ae(()=>import("./settings-Dm6yMLix.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),cj=Be("/settings")({component:Re(uj,"component"),loader:({context:e})=>Promise.all([e.queryClient.ensureQueryData(Wb()),e.queryClient.ensureQueryData(Kb())]),wrapInSuspense:!0,pendingComponent:Ke}),It=e=>{const n="input"in e?e.input:"input",r="output"in e?e.output:"output",o="schema"in e?e.schema._input:e._input,l="schema"in e?e.schema._output:e._output;return{types:{input:n==="output"?l:o,output:r==="input"?o:l},parse:u=>"schema"in e?e.schema.parse(u):e.parse(u)}},dj=()=>Ae(()=>import("./login-DR_xuMmg.js"),__vite__mapDeps([8,1,2,4,5,6,7])),fj=wt({redirectTo:ze().optional()}),hj=Be("/login")({validateSearch:It(fj),beforeLoad:({context:e,search:n})=>{!e.auth.isLoading&&e.auth.isAuthenticated&&rl({to:n.redirectTo??"/dashboard",throw:!0})},component:Re(dj,"component")}),Vt={all:()=>["deployments"],lists:()=>[...Vt.all(),"list"],"lists-paginate":()=>[...Vt.lists(),"paginate"],"list-paginate":e=>[...Vt["lists-paginate"](),e],"lists-filter":()=>[...Vt.lists(),"filter"],"list-filter":e=>[...Vt["lists-filter"](),e],counts:()=>[...Vt.all(),"counts"],count:e=>[...Vt.counts(),e],details:()=>[...Vt.all(),"details"],detail:e=>[...Vt.details(),e]},gm=(e={page:1,limit:10,sort:"NAME_ASC"})=>be({queryKey:Vt["list-paginate"](e),queryFn:async()=>{const n=await(await ne()).POST("/deployments/paginate",{body:e});if(!n.data)throw new Error("'data' expected");return n.data},placeholderData:qe}),Ex=(e={offset:0,sort:"CREATED_DESC"},{enabled:n=!0}={})=>be({queryKey:Vt["list-filter"](e),queryFn:async()=>(await(await ne()).POST("/deployments/filter",{body:e})).data??[],placeholderData:qe,enabled:n}),mj=(e={offset:0,sort:"NAME_ASC"})=>be({queryKey:Vt.count(e),queryFn:async()=>(await(await ne()).POST("/deployments/count",{body:e})).data??0,placeholderData:qe}),ul=e=>be({queryKey:Vt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/deployments/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),KL=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>{const l=await(await ne()).POST("/deployments/",{body:o});if(!l.data)throw new Error("'data' expected");return l.data},onSettled:async()=>await e.invalidateQueries({queryKey:Vt.lists()})});return{createDeployment:n,...r}},WL=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PATCH("/deployments/{id}",{body:l,params:{path:{id:o}}}),onSettled:async()=>await e.invalidateQueries({queryKey:Vt.all()})});return{updateDeployment:n,...r}},XL=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/deployments/{id}",{params:{path:{id:o}}}),onSettled:async()=>await e.invalidateQueries({queryKey:Vt.all()})});return{deleteDeployment:n,...r}},ZL=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({deployment_id:o,...l})=>(await ne()).POST("/deployments/{id}/schedules",{body:[l],params:{path:{id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Vt.all()})});return{createDeploymentSchedule:n,...r}},JL=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({deployment_id:o,schedule_id:l,...u})=>(await ne()).PATCH("/deployments/{id}/schedules/{schedule_id}",{body:u,params:{path:{schedule_id:l,id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Vt.all()})});return{updateDeploymentSchedule:n,...r}},eI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({deployment_id:o,schedule_id:l})=>(await ne()).DELETE("/deployments/{id}/schedules/{schedule_id}",{params:{path:{schedule_id:l,id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Vt.all()})});return{deleteDeploymentSchedule:n,...r}};function _x(e){return{flows:e.flows,flow_runs:e.flow_runs,task_runs:e.task_runs,deployments:e.deployments,work_pools:e.work_pools,work_pool_queues:e.work_pool_queues}}const rt={all:()=>["flowRuns"],lists:()=>[...rt.all(),"list"],filter:e=>[...rt.lists(),"filter",e],paginate:e=>[...rt.lists(),"paginate",e],counts:()=>[...rt.all(),"count"],count:e=>[...rt.counts(),e],lateness:()=>[...rt.all(),"lateness"],latenessWithFilter:e=>[...rt.lateness(),e],history:()=>[...rt.all(),"history"],historyWithFilter:e=>[...rt.history(),e],details:()=>[...rt.all(),"details"],detail:e=>[...rt.details(),e],input:(e,n)=>[...rt.detail(e),"input",n]},pr=(e={sort:"ID_DESC",offset:0},n=3e4)=>be({queryKey:rt.filter(e),queryFn:async()=>(await(await ne()).POST("/flow_runs/filter",{body:e})).data??[],staleTime:1e3,refetchInterval:n}),Wr=(e={page:1,sort:"START_TIME_DESC"},n=3e4)=>be({queryKey:rt.paginate(e),queryFn:async()=>{const r=await(await ne()).POST("/flow_runs/paginate",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),pj=e=>be({queryKey:rt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/flow_runs/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error(`Received empty response from server for flow run ${e}`);return n.data}}),tI=(e,n)=>be({queryKey:rt.input(e,n),queryFn:async()=>(await(await ne()).GET("/flow_runs/{id}/input/{key}",{params:{path:{id:e,key:n}}})).data}),vt=(e={},n=6e4)=>be({queryKey:rt.count(e),queryFn:async()=>(await(await ne()).POST("/flow_runs/count",{body:e})).data??0,refetchInterval:n,placeholderData:qe}),Tx=(e={sort:"ID_DESC",offset:0},n=3e4)=>be({queryKey:rt.latenessWithFilter(e),queryFn:async()=>(await(await ne()).POST("/flow_runs/lateness",{body:e})).data??null,refetchInterval:n,placeholderData:qe}),vj=(e={sort:"EXPECTED_START_TIME_DESC",limit:1e3,offset:0},n=3e4)=>be({queryKey:rt.historyWithFilter(e),queryFn:async()=>(await(await ne()).POST("/ui/flow_runs/history",{body:e})).data??[],placeholderData:qe,staleTime:1e3,refetchInterval:n}),nI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/flow_runs/{id}",{params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:rt.lists()})});return{deleteFlowRun:n,...r}},aI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>{const u=await(await ne()).POST("/deployments/{id}/create_flow_run",{body:l,params:{path:{id:o}}});if(!u.data)throw new Error("'data' expected");return u.data},onSuccess:()=>e.invalidateQueries({queryKey:rt.lists()})});return{createDeploymentFlowRun:n,...r}},rI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>{const u=await(await ne()).POST("/flow_runs/{id}/set_state",{params:{path:{id:o}},body:l});if(!u.data)throw new Error("'data' expected");return u.data},onMutate:async({id:o,state:l})=>{await e.cancelQueries({queryKey:rt.detail(o)});const u=e.getQueryData(rt.detail(o));return u?.state&&e.setQueryData(rt.detail(o),{...u,state:{id:u.state.id,type:l.type,name:l.name??u.state.name,message:l.message??u.state.message,timestamp:new Date().toISOString(),data:u.state.data,state_details:u.state.state_details}}),{previousFlowRun:u}},onError:(o,{id:l},u)=>{u?.previousFlowRun&&e.setQueryData(rt.detail(l),u.previousFlowRun)},onSettled:(o,l,{id:u})=>{Promise.all([e.invalidateQueries({queryKey:rt.lists()}),e.invalidateQueries({queryKey:rt.detail(u)})])}});return{setFlowRunState:n,...r}},iI=()=>{const e=Le(),{mutate:n,mutateAsync:r,...o}=Ie({mutationFn:async({id:l,runInput:u})=>{const c=await(await ne()).POST("/flow_runs/{id}/resume",{params:{path:{id:l}},body:u?{run_input:u}:void 0});if(!c.data)throw new Error("'data' expected");if(c.data.status!=="ACCEPT"){const h=c.data.details&&"reason"in c.data.details?c.data.details.reason:"Resume request was not accepted";throw new Error(h??"Resume request was not accepted")}return c.data},onSettled:(l,u,{id:c})=>{Promise.all([e.invalidateQueries({queryKey:rt.lists()}),e.invalidateQueries({queryKey:rt.detail(c)})])}});return{resumeFlowRun:n,resumeFlowRunAsync:r,...o}},Nn={all:()=>["flows"],lists:()=>[...Nn.all(),"list"],list:e=>[...Nn.lists(),e],paginate:e=>[...Nn.lists(),"paginate",e],details:()=>[...Nn.all(),"detail"],detail:e=>[...Nn.details(),e],deploymentsCount:e=>[...Nn.all(),"deploymentsCount",[...e].sort()],nextRuns:e=>[...Nn.all(),"nextRuns",[...e].sort()]},al=(e={offset:0,sort:"CREATED_DESC"},{enabled:n=!0}={})=>be({queryKey:Nn.list(e),queryFn:async()=>(await(await ne()).POST("/flows/filter",{body:e})).data??[],staleTime:1e3,placeholderData:qe,enabled:n}),gj=(e={page:1,sort:"NAME_ASC"},n=3e4)=>be({queryKey:Nn.paginate(e),queryFn:async()=>{const r=await(await ne()).POST("/flows/paginate",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),tc=e=>be({queryKey:Nn.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/flows/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),ub=e=>be({queryKey:Nn.list(e),queryFn:async()=>(await(await ne()).POST("/flows/count",{body:e})).data??0}),yj=(e,{enabled:n=!0}={})=>be({queryKey:Nn.deploymentsCount(e),queryFn:async()=>(await(await ne()).POST("/ui/flows/count-deployments",{body:{flow_ids:e}})).data??{},staleTime:1e3,placeholderData:qe,enabled:n&&e.length>0}),oI=(e,{enabled:n=!0}={})=>be({queryKey:Nn.nextRuns(e),queryFn:async()=>(await(await ne()).POST("/ui/flows/next-runs",{body:{flow_ids:e}})).data??{},staleTime:1e3,placeholderData:qe,enabled:n&&e.length>0}),sI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/flows/{id}",{params:{path:{id:o}}}),onSettled:()=>e.invalidateQueries({queryKey:Nn.all()})});return{deleteFlow:n,...r}},Mt={all:()=>["taskRuns"],lists:()=>[...Mt.all(),"list"],list:e=>[...Mt.lists(),e],paginate:e=>[...Mt.lists(),"paginate",e],counts:()=>[...Mt.all(),"count"],count:e=>[...Mt.counts(),e],flowRunsCount:e=>[...Mt.counts(),"flow-runs",e],details:()=>[...Mt.all(),"details"],detail:e=>[...Mt.details(),e]},lI=(e={sort:"ID_DESC",offset:0},n=3e4)=>be({queryKey:Mt.list(e),queryFn:async()=>(await(await ne()).POST("/task_runs/filter",{body:e})).data??[],staleTime:1e3,refetchInterval:n}),Dx=(e={page:1,sort:"EXPECTED_START_TIME_DESC"},n=3e4)=>be({queryKey:Mt.paginate(e),queryFn:async()=>{const r=await(await ne()).POST("/task_runs/paginate",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),$n=(e={},n)=>be({queryKey:Mt.count(e),queryFn:async()=>(await(await ne()).POST("/task_runs/count",{body:e})).data??0,staleTime:1e3,refetchInterval:n}),Bo=e=>be({queryKey:Mt.flowRunsCount(e),queryFn:async()=>(await(await ne()).POST("/ui/flow_runs/count-task-runs",{body:{flow_run_ids:e}})).data??{}}),uI=e=>be({queryKey:Mt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/ui/task_runs/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error(`Received empty response from server for task run ${e}`);return n.data}}),bj=e=>be({queryKey:Mt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/ui/task_runs/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error(`Received empty response from server for task run ${e}`);return n.data}}),cI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>{const u=await(await ne()).POST("/task_runs/{id}/set_state",{params:{path:{id:o}},body:l});if(!u.data)throw new Error("'data' expected");return u.data},onMutate:async({id:o,state:l})=>{await e.cancelQueries({queryKey:Mt.detail(o)});const u=e.getQueryData(Mt.detail(o));return u?.state&&e.setQueryData(Mt.detail(o),{...u,state:{id:u.state.id,type:l.type,name:l.name??u.state.name,message:l.message??u.state.message,timestamp:new Date().toISOString(),data:u.state.data,state_details:u.state.state_details}}),{previousTaskRun:u}},onError:(o,{id:l},u)=>{u?.previousTaskRun&&e.setQueryData(Mt.detail(l),u.previousTaskRun)},onSettled:(o,l,{id:u})=>{Promise.all([e.invalidateQueries({queryKey:Mt.lists()}),e.invalidateQueries({queryKey:Mt.detail(u)})])}});return{setTaskRunState:n,...r}},dI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o})=>(await(await ne()).DELETE("/task_runs/{id}",{params:{path:{id:o}}})).data,onSettled:()=>e.invalidateQueries({queryKey:Mt.lists()})});return{deleteTaskRun:n,...r}},ym=(e,n=3e4)=>be({queryKey:[...Mt.lists(),"history",e],queryFn:async()=>(await(await ne()).POST("/task_runs/history",{body:e})).data??[],staleTime:1e3,refetchInterval:n}),pn={all:()=>["work_pool_queues"],lists:()=>[...pn.all(),"list"],list:e=>[...pn.lists(),e],details:()=>[...pn.all(),"details"],detail:(e,n)=>[...pn.details(),e,n]},nc=e=>be({queryKey:pn.list(e),queryFn:async()=>{const n=await(await ne()).POST("/work_pools/{work_pool_name}/queues/filter",{params:{path:{work_pool_name:e}},body:{offset:0}});if(!n.data)throw new Error("'data' expected");return n.data},refetchInterval:3e4,placeholderData:qe}),xj=(e,n)=>be({queryKey:pn.detail(e,n),queryFn:async()=>{const r=await(await ne()).GET("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:e,name:n}}});if(!r.data)throw new Error("'data' expected");return r.data}}),fI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r})=>(await ne()).PATCH("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}},body:{is_paused:!0}}),onSuccess:(n,{workPoolName:r,queueName:o})=>{e.invalidateQueries({queryKey:pn.list(r)}),e.invalidateQueries({queryKey:pn.detail(r,o)})}})},hI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r})=>(await ne()).PATCH("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}},body:{is_paused:!1}}),onSuccess:(n,{workPoolName:r,queueName:o})=>{e.invalidateQueries({queryKey:pn.list(r)}),e.invalidateQueries({queryKey:pn.detail(r,o)})}})},mI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,workQueueData:r})=>(await ne()).POST("/work_pools/{work_pool_name}/queues",{params:{path:{work_pool_name:n}},body:r}),onSuccess:(n,{workPoolName:r})=>{e.invalidateQueries({queryKey:pn.list(r)})}})},pI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r,workQueueData:o})=>(await ne()).PATCH("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}},body:o}),onSuccess:(n,{workPoolName:r,queueName:o,workQueueData:l})=>{e.invalidateQueries({queryKey:pn.list(r)}),e.invalidateQueries({queryKey:pn.detail(r,o)}),l.name&&l.name!==o&&e.invalidateQueries({queryKey:pn.detail(r,l.name)})}})},vI=()=>{const e=Le();return Ie({mutationFn:async({workPoolName:n,queueName:r})=>(await ne()).DELETE("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:n,name:r}}}),onSuccess:(n,{workPoolName:r})=>{e.invalidateQueries({queryKey:pn.list(r)})}})},jt={all:()=>["work-pools"],lists:()=>[...jt.all(),"list"],list:e=>[...jt.lists(),e],counts:()=>[...jt.all(),"counts"],count:e=>[...jt.counts(),e],details:()=>[...jt.all(),"details"],detail:e=>[...jt.details(),e],detailByName:e=>[...jt.details(),"by-name",e],workersLists:()=>[...jt.all(),"workers"],workersList:e=>[...jt.workersLists(),e]},bm=(e={offset:0},{enabled:n=!0}={})=>be({queryKey:jt.list(e),queryFn:async()=>{const r=await(await ne()).POST("/work_pools/filter",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},enabled:n,placeholderData:qe}),wj=(e={})=>be({queryKey:jt.count(e),queryFn:async()=>(await(await ne()).POST("/work_pools/count",{body:e})).data??0,placeholderData:qe}),Cx=e=>be({queryKey:jt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/work_pools/{name}",{params:{path:{name:e}}});if(!n.data)throw new Error("'data' expected");return n.data},placeholderData:qe}),gI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).PATCH("/work_pools/{name}",{params:{path:{name:o}},body:{is_paused:!0}}),onSettled:()=>e.invalidateQueries({queryKey:jt.all()})});return{pauseWorkPool:n,...r}},yI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).PATCH("/work_pools/{name}",{params:{path:{name:o}},body:{is_paused:!1}}),onSettled:()=>e.invalidateQueries({queryKey:jt.all()})});return{resumeWorkPool:n,...r}},bI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/work_pools/{name}",{params:{path:{name:o}}}),onSettled:()=>e.invalidateQueries({queryKey:jt.all()})});return{deleteWorkPool:n,...r}},xI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/work_pools/",{body:o}),onSuccess:()=>{e.invalidateQueries({queryKey:jt.lists()}),e.invalidateQueries({queryKey:jt.counts()})}});return{createWorkPool:n,...r}},wI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({name:o,workPool:l})=>(await ne()).PATCH("/work_pools/{name}",{params:{path:{name:o}},body:l}),onSuccess:(o,{name:l})=>{e.invalidateQueries({queryKey:jt.lists()}),e.invalidateQueries({queryKey:jt.detail(l)})}});return{updateWorkPool:n,...r}},xm=e=>be({queryKey:jt.workersList(e),queryFn:async()=>{const n=await(await ne()).POST("/work_pools/{work_pool_name}/workers/filter",{params:{path:{work_pool_name:e}},body:{offset:0}});if(!n.data)throw new Error("'data' expected");return n.data},refetchInterval:3e4,placeholderData:qe}),SI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({workPoolName:o,workerName:l})=>(await ne()).DELETE("/work_pools/{work_pool_name}/workers/{name}",{params:{path:{work_pool_name:o,name:l}}}),onSuccess:(o,{workPoolName:l})=>{e.invalidateQueries({queryKey:jt.workersList(l)}),e.invalidateQueries({queryKey:jt.lists()})}});return{deleteWorker:n,...r}};function Sj({...e}){return d.jsx(TE,{"data-slot":"accordion",...e})}function Ej({className:e,...n}){return d.jsx(DE,{"data-slot":"accordion-item",className:$("border-b last:border-b-0",e),...n})}function _j({className:e,children:n,...r}){return d.jsx(CE,{className:"flex",children:d.jsxs(kE,{"data-slot":"accordion-trigger",className:$("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...r,children:[n,d.jsx(ll,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function Tj({className:e,children:n,...r}){return d.jsx(NE,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:d.jsx("div",{className:$("pt-0 pb-4",e),children:n})})}function Dj(e){return d.jsxs("svg",{viewBox:"0 0 92 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No scheduled or late flow runs",...e,children:[d.jsx("rect",{x:"88.2922",y:"96.4243",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2922 96.4243)",fill:"#FFEAC4"}),d.jsx("rect",{x:"69.6321",y:"22.974",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 69.6321 22.974)",fill:"#2C0C00"}),d.jsx("rect",{x:"88.2922",y:"78.1342",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2922 78.1342)",fill:"#FFEAC4"}),d.jsx("rect",{x:"52.6266",y:"97.3386",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6266 97.3386)",fill:"#FFEAC4"}),d.jsx("rect",{x:"52.6266",y:"42.4686",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6266 42.4686)",fill:"#FFB838"}),d.jsx("rect",{x:"70.9166",y:"60.7586",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9166 60.7586)",fill:"#FFAD1A"}),d.jsx("rect",{x:"53.5411",y:"79.9631",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5411 79.9631)",fill:"#FFEAC4"}),d.jsx("rect",{x:"70.9166",y:"97.3386",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9166 97.3386)",fill:"#FFEAC4"}),d.jsx("rect",{x:"52.6266",y:"115.629",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6266 115.629)",fill:"#FFEAC4"}),d.jsx("rect",{x:"53.5411",y:"61.6732",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5411 61.6732)",fill:"#FFAD1A"}),d.jsx("rect",{x:"70.0022",y:"41.5541",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.0022 41.5541)",fill:"#2C0C00"}),d.jsx("rect",{x:"70.0022",y:"114.714",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.0022 114.714)",fill:"#FFEAC4"}),d.jsx("rect",{x:"70.9166",y:"79.0486",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9166 79.0486)",fill:"#FFEAC4"}),d.jsx("rect",{x:"33.4221",y:"114.714",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4221 114.714)",fill:"#FFEAC4"}),d.jsx("rect",{x:"34.3365",y:"97.3386",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3365 97.3386)",fill:"#FFEAC4"}),d.jsx("rect",{x:"34.3365",y:"79.0486",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3365 79.0486)",fill:"#FFEAC4"}),d.jsx("rect",{x:"34.3365",y:"61.1785",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3365 61.1785)",fill:"#FFAD1A"}),d.jsx("rect",{x:"33.4221",y:"41.5541",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4221 41.5541)",fill:"#2C0C00"}),d.jsx("rect",{x:"33.4221",y:"22.974",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4221 22.974)",fill:"#2C0C00"}),d.jsx("rect",{x:"87.3777",y:"113.8",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.3777 113.8)",fill:"#FFEAC4"}),d.jsx("rect",{x:"87.3777",y:"40.6396",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.3777 40.6396)",fill:"#FFB838"}),d.jsx("rect",{x:"14.2175",y:"113.8",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.2175 113.8)",fill:"#FFEAC4"}),d.jsx("rect",{x:"15.1321",y:"96.4243",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1321 96.4243)",fill:"#FFEAC4"}),d.jsx("rect",{x:"15.1321",y:"78.1342",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1321 78.1342)",fill:"#FFEAC4"}),d.jsx("rect",{x:"15.1321",y:"59.8441",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1321 59.8441)",fill:"#FFAD1A"}),d.jsx("rect",{x:"14.2175",y:"40.6396",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.2175 40.6396)",fill:"#FFB838"}),d.jsx("rect",{x:"88.2922",y:"59.8441",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2922 59.8441)",fill:"#FFAD1A"})]})}function Cj(e){return d.jsxs("svg",{viewBox:"0 0 157 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No failed flow runs",...e,children:[d.jsx("rect",{x:"16.2571",y:"88.6859",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 16.2571 88.6859)",fill:"#A4E392"}),d.jsx("rect",{x:"81.3142",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 89.6)",fill:"#306739"}),d.jsx("rect",{x:"117.886",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 117.886 89.6)",fill:"#78D382"}),d.jsx("rect",{x:"15.3428",y:"69.4857",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 15.3428 69.4857)",fill:"#D4F8B5"}),d.jsx("rect",{x:"81.3142",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 71.3143)",fill:"#51A456"}),d.jsx("rect",{x:"117.886",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 117.886 71.3143)",fill:"#78D382"}),d.jsx("rect",{x:"81.3142",y:"53.0286",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 53.0286)",fill:"#78D382"}),d.jsx("rect",{x:"98.6858",y:"33.8286",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 98.6858 33.8286)",fill:"#A4E392"}),d.jsx("rect",{x:"35.4573",y:"89.6002",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 35.4573 89.6002)",fill:"#78D382"}),d.jsx("rect",{x:"99.6001",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 89.6)",fill:"#51A456"}),d.jsx("rect",{x:"135.257",y:"88.6857",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 135.257 88.6857)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"89.6",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 89.6)",fill:"#306739"}),d.jsx("rect",{x:"34.543",y:"70.4",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 34.543 70.4)",fill:"#A4E392"}),d.jsx("rect",{x:"99.6001",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 71.3143)",fill:"#51A456"}),d.jsx("rect",{x:"135.257",y:"70.4",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 135.257 70.4)",fill:"#78D382"}),d.jsx("rect",{x:"97.6287",y:"14.6285",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 97.6287 14.6285)",fill:"#A4E392"}),d.jsx("rect",{x:"61.6287",y:"51.6285",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 61.6287 51.6285)",fill:"#A4E392"}),d.jsx("rect",{x:"80.2571",y:"33.8286",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 80.2571 33.8286)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"71.3143",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 71.3143)",fill:"#51A456"}),d.jsx("rect",{x:"35.4573",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 35.4573 107.886)",fill:"#78D382"}),d.jsx("rect",{x:"99.6001",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 107.886)",fill:"#51A456"}),d.jsx("rect",{x:"135.257",y:"106.971",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 135.257 106.971)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 107.886)",fill:"#51A456"}),d.jsx("rect",{x:"34.543",y:"125.257",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 34.543 125.257)",fill:"#A4E392"}),d.jsx("rect",{x:"99.6001",y:"126.171",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 99.6001 126.171)",fill:"#78D382"}),d.jsx("rect",{x:"63.0286",y:"126.171",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 63.0286 126.171)",fill:"#78D382"}),d.jsx("rect",{x:"16.2571",y:"106.971",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 16.2571 106.971)",fill:"#A4E392"}),d.jsx("rect",{x:"81.3142",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 107.886)",fill:"#51A456"}),d.jsx("rect",{x:"117.886",y:"107.886",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 117.886 107.886)",fill:"#78D382"}),d.jsx("rect",{x:"15.3428",y:"124.343",width:"10.9714",height:"10.9714",rx:"2.92571",transform:"rotate(180 15.3428 124.343)",fill:"#D4F8B5"}),d.jsx("rect",{x:"81.3142",y:"126.171",width:"14.6286",height:"14.6286",rx:"1.46286",transform:"rotate(180 81.3142 126.171)",fill:"#78D382"}),d.jsx("rect",{x:"116.971",y:"125.257",width:"12.8",height:"12.8",rx:"2.19428",transform:"rotate(180 116.971 125.257)",fill:"#78D382"})]})}function kj(e){return d.jsxs("svg",{viewBox:"0 0 111 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No completed flow runs",...e,children:[d.jsx("rect",{x:"54.4553",y:"90.4055",width:"16.461",height:"16.461",rx:"0.7316",transform:"rotate(180 54.4553 90.4055)",fill:"#9B0806"}),d.jsx("rect",{x:"51.7119",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.7119 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"89.2063",y:"88.5764",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 88.5764)",fill:"#FFD3D3"}),d.jsx("rect",{x:"88.2917",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2917 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"53.5408",y:"71.201",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5408 71.201)",fill:"#EB8583"}),d.jsx("rect",{x:"89.2063",y:"70.2865",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 70.2865)",fill:"#EB8583"}),d.jsx("rect",{x:"15.1318",y:"87.6619",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 87.6619)",fill:"#FFD3D3"}),d.jsx("rect",{x:"70.9165",y:"88.5764",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9165 88.5764)",fill:"#EB8583"}),d.jsx("rect",{x:"70.002",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.002 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"106.582",y:"87.6619",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 87.6619)",fill:"#FFD3D3"}),d.jsx("rect",{x:"34.3364",y:"88.5764",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3364 88.5764)",fill:"#FFD3D3"}),d.jsx("rect",{x:"33.4219",y:"14.502",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4219 14.502)",fill:"#FFD3D3"}),d.jsx("rect",{x:"15.1318",y:"69.372",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 69.372)",fill:"#FFD3D3"}),d.jsx("rect",{x:"71.8308",y:"71.201",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 71.8308 71.201)",fill:"#9B0806"}),d.jsx("rect",{x:"106.582",y:"69.372",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 69.372)",fill:"#FFD3D3"}),d.jsx("rect",{x:"35.2507",y:"71.201",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 35.2507 71.201)",fill:"#9B0806"}),d.jsx("rect",{x:"15.1318",y:"32.7919",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 32.7919)",fill:"#FFD3D3"}),d.jsx("rect",{x:"70.002",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 70.002 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"70.9165",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.9165 33.7064)",fill:"#EB8583"}),d.jsx("rect",{x:"106.582",y:"32.7919",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 32.7919)",fill:"#FFD3D3"}),d.jsx("rect",{x:"33.4219",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.4219 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"34.3364",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3364 33.7064)",fill:"#FFD3D3"}),d.jsx("rect",{x:"15.1318",y:"51.082",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 15.1318 51.082)",fill:"#FFD3D3"}),d.jsx("rect",{x:"71.8308",y:"52.911",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 71.8308 52.911)",fill:"#EB8583"}),d.jsx("rect",{x:"34.3364",y:"51.9965",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.3364 51.9965)",fill:"#EB8583"}),d.jsx("rect",{x:"51.7119",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.7119 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"52.6265",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.6265 33.7064)",fill:"#EB8583"}),d.jsx("rect",{x:"88.2917",y:"105.952",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.2917 105.952)",fill:"#FFD3D3"}),d.jsx("rect",{x:"89.2063",y:"33.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 33.7064)",fill:"#FFD3D3"}),d.jsx("rect",{x:"53.5408",y:"52.911",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 53.5408 52.911)",fill:"#EB8583"}),d.jsx("rect",{x:"89.2063",y:"51.9965",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.2063 51.9965)",fill:"#9B0806"}),d.jsx("rect",{x:"106.582",y:"51.082",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.582 51.082)",fill:"#FFD3D3"})]})}function Nj(e){return d.jsxs("svg",{viewBox:"0 0 129 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"No running flow runs",...e,children:[d.jsx("rect",{x:"52.4965",y:"88.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.4965 88.7064)",fill:"#080072"}),d.jsx("rect",{x:"50.6675",y:"13.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 50.6675 13.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"89.0764",y:"88.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.0764 88.7064)",fill:"#080072"}),d.jsx("rect",{x:"88.6321",y:"105.632",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.6321 105.632)",fill:"#13A7FF"}),d.jsx("rect",{x:"106.422",y:"105.922",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.422 105.922)",fill:"#8FDDFF"}),d.jsx("rect",{x:"52.4965",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.4965 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"89.0764",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.0764 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"70.7865",y:"88.7064",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 88.7064)",fill:"#13A7FF"}),d.jsx("rect",{x:"68.9575",y:"13.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 68.9575 13.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"87.2175",y:"13.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.2175 13.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"33.292",y:"87.7919",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 87.7919)",fill:"#13A7FF"}),d.jsx("rect",{x:"33.292",y:"105.922",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 105.922)",fill:"#8FDDFF"}),d.jsx("rect",{x:"14.0875",y:"68.5875",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.0875 68.5875)",fill:"#8FDDFF"}),d.jsx("rect",{x:"14.0875",y:"86.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.0875 86.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"71.701",y:"71.3311",width:"14.632",height:"14.632",rx:"1.4632",transform:"rotate(180 71.701 71.3311)",fill:"#080072"}),d.jsx("rect",{x:"107.366",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 107.366 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"123.798",y:"68.5875",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 123.798 68.5875)",fill:"#8FDDFF"}),d.jsx("rect",{x:"106.452",y:"87.632",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.452 87.632)",fill:"#13A7FF"}),d.jsx("rect",{x:"123.798",y:"86.7175",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 123.798 86.7175)",fill:"#8FDDFF"}),d.jsx("rect",{x:"34.2064",y:"70.4165",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 34.2064 70.4165)",fill:"#13A7FF"}),d.jsx("rect",{x:"70.7865",y:"106.996",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 106.996)",fill:"#13A7FF"}),d.jsx("rect",{x:"68.9575",y:"123.297",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 68.9575 123.297)",fill:"#8FDDFF"}),d.jsx("rect",{x:"87.2175",y:"123.297",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 87.2175 123.297)",fill:"#8FDDFF"}),d.jsx("rect",{x:"70.7865",y:"33.8364",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 33.8364)",fill:"#13A7FF"}),d.jsx("rect",{x:"33.292",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 32.9219)",fill:"#8FDDFF"}),d.jsx("rect",{x:"14.0875",y:"50.2975",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 14.0875 50.2975)",fill:"#8FDDFF"}),d.jsx("rect",{x:"70.7865",y:"52.1265",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 70.7865 52.1265)",fill:"#13A7FF"}),d.jsx("rect",{x:"33.292",y:"51.212",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 33.292 51.212)",fill:"#13A7FF"}),d.jsx("rect",{x:"51.582",y:"106.082",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.582 106.082)",fill:"#13A7FF"}),d.jsx("rect",{x:"50.6675",y:"123.297",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 50.6675 123.297)",fill:"#8FDDFF"}),d.jsx("rect",{x:"51.582",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 51.582 32.9219)",fill:"#13A7FF"}),d.jsx("rect",{x:"88.162",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 88.162 32.9219)",fill:"#13A7FF"}),d.jsx("rect",{x:"106.422",y:"32.9219",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.422 32.9219)",fill:"#8FDDFF"}),d.jsx("rect",{x:"52.4965",y:"52.1265",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 52.4965 52.1265)",fill:"#080072"}),d.jsx("rect",{x:"89.0764",y:"52.1265",width:"12.803",height:"12.803",rx:"2.1948",transform:"rotate(180 89.0764 52.1265)",fill:"#080072"}),d.jsx("rect",{x:"106.452",y:"51.212",width:"10.974",height:"10.974",rx:"2.9264",transform:"rotate(180 106.452 51.212)",fill:"#13A7FF"}),d.jsx("rect",{x:"123.798",y:"50.2975",width:"9.145",height:"9.145",rx:"3.658",transform:"rotate(180 123.798 50.2975)",fill:"#8FDDFF"})]})}function Aj(e){const n=e.map(r=>r.toLowerCase());return n.includes("failed")||n.includes("crashed")?Cj:n.includes("running")||n.includes("pending")||n.includes("cancelling")?Nj:n.includes("completed")?kj:n.includes("scheduled")||n.includes("paused")?Dj:null}function Rj({stateTypes:e}){const n=e.map(u=>u==="SCHEDULED"?"late":u.toLowerCase()),o=new Intl.ListFormat("en",{style:"long",type:"disjunction"}).format(n),l=Aj(e);return d.jsxs("div",{className:"flex flex-col items-center gap-8 my-20",children:[l&&d.jsx(l,{className:"h-32"}),d.jsxs("p",{className:"text-lg text-center max-w-xs",children:["You currently have 0 ",o," runs."]})]})}function jj({className:e,...n}){return d.jsx(AE,{"data-slot":"checkbox",className:$("peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:d.jsx(RE,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:d.jsx(dm,{className:"size-3.5"})})})}const Mj=qo("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",success:"border-transparent bg-state-completed-600 text-white [a&]:hover:bg-state-completed-700 focus-visible:ring-state-completed-600/20 dark:focus-visible:ring-state-completed-600/40",warning:"border-transparent bg-state-scheduled-600 text-white [a&]:hover:bg-state-scheduled-700 focus-visible:ring-state-scheduled-600/20 dark:focus-visible:ring-state-scheduled-600/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function wm({className:e,variant:n,asChild:r=!1,...o}){const l=r?Zr:"span";return d.jsx(l,{"data-slot":"badge",className:$(Mj({variant:n}),e),...o})}const kx={COMPLETED:va.Check,FAILED:va.X,RUNNING:va.Play,CANCELLED:va.Ban,CANCELLING:va.Ban,CRASHED:va.ServerCrash,PAUSED:va.Pause,PENDING:va.Clock,SCHEDULED:va.Clock},Oj=kx,Lj=qo("gap-1",{variants:{state:{COMPLETED:"bg-state-completed-50 text-state-completed-600 hover:bg-state-completed-100",FAILED:"bg-state-failed-50 text-state-failed-700 hover:bg-state-failed-100",RUNNING:"bg-state-running-50 text-state-running-700 hover:bg-state-running-100",CANCELLED:"bg-state-cancelled-50 text-state-cancelled-600 hover:bg-state-cancelled-100",CANCELLING:"bg-state-cancelling-50 text-state-cancelling-600 hover:bg-state-cancelling-100",CRASHED:"bg-state-crashed-50 text-state-crashed-600 hover:bg-state-crashed-100",PAUSED:"bg-state-paused-100 text-state-paused-700 hover:bg-state-paused-200",PENDING:"bg-state-pending-100 text-state-pending-700 hover:bg-state-pending-200",SCHEDULED:"bg-state-scheduled-50 text-state-scheduled-700 hover:bg-state-scheduled-100"}}}),Nx=({type:e,name:n,className:r})=>{const o=Oj[e];return d.jsxs(wm,{className:$(Lj({state:e}),"px-2",r),children:[d.jsx(o,{size:16}),n??dx(e)]})},Ij={COMPLETED:"text-state-completed-600",FAILED:"text-state-failed-700",RUNNING:"text-state-running-700",CANCELLED:"text-state-cancelled-600",CANCELLING:"text-state-cancelling-600",CRASHED:"text-state-crashed-600",PAUSED:"text-state-paused-700",PENDING:"text-state-pending-600",SCHEDULED:"text-state-scheduled-700"},EI=({type:e,name:n,className:r,size:o=16})=>{const l=kx[e],u=n??dx(e);return d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:d.jsx("span",{className:$("inline-flex items-center",Ij[e],r),children:d.jsx(l,{size:o})})}),d.jsx(qa,{children:u})]})};function zj({...e}){return d.jsx(jE,{"data-slot":"hover-card",...e})}function Fj({...e}){return d.jsx(ME,{"data-slot":"hover-card-trigger",...e})}function Uj({className:e,align:n="center",sideOffset:r=4,...o}){return d.jsx(OE,{"data-slot":"hover-card-content",align:n,sideOffset:r,className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 rounded-md border p-4 shadow-md outline-hidden",e),...o})}const cb=({tag:e,variant:n,onRemove:r})=>d.jsxs(wm,{variant:n,className:"ml-1 max-w-20",title:e,children:[d.jsx("span",{className:"truncate",children:e}),r&&d.jsx("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground","aria-label":`Remove ${e} tag`,children:d.jsx(gt,{id:"X",size:14})})]}),Sm=({tags:e=[],variant:n,maxTagsDisplayed:r=2,onTagsChange:o})=>{const l=c=>{o?.(e.filter(h=>h!==c))},u=e.length;return u>r?d.jsxs(zj,{children:[d.jsx(Fj,{asChild:!0,children:d.jsxs(wm,{variant:n,className:"ml-1 whitespace-nowrap",children:[u," tags"]})}),d.jsx(Uj,{className:"flex flex-wrap gap-1",children:e.map(c=>d.jsx(cb,{tag:c,onRemove:o?()=>l(c):void 0},c))})]}):d.jsx(d.Fragment,{children:e.map(c=>d.jsx(cb,{tag:c,onRemove:o?()=>l(c):void 0,variant:n},c))})},qj=({deployment:e})=>d.jsxs(Xt,{className:"flex items-center gap-1",to:"/deployments/deployment/$id",params:{id:e.id},children:[d.jsx("p",{className:"text-xs font-medium leading-none",children:"Deployment"}),d.jsx(gt,{id:"Rocket",className:"size-4"}),d.jsx("p",{className:"text-xs",children:e.name})]});var Zf={exports:{}},db;function Bj(){return db||(db=1,(function(e){(function(){var n=Object.assign||function(S){for(var U,F=1;F<arguments.length;F++){U=arguments[F];for(var L in U)D(U,L)&&(S[L]=U[L])}return S},r=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"},o=h(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),l={af:h(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:u("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:n(u(function(S){return["سنة","سنتان","سنوات"][v(S)]},function(S){return["شهر","شهران","أشهر"][v(S)]},function(S){return["أسبوع","أسبوعين","أسابيع"][v(S)]},function(S){return["يوم","يومين","أيام"][v(S)]},function(S){return["ساعة","ساعتين","ساعات"][v(S)]},function(S){return["دقيقة","دقيقتان","دقائق"][v(S)]},function(S){return["ثانية","ثانيتان","ثواني"][v(S)]},function(S){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][v(S)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:y(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:u("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:h(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:u("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:u(function(S){return["rok","roku","roky","let"][w(S)]},function(S){return["měsíc","měsíce","měsíce","měsíců"][w(S)]},function(S){return["týden","týdne","týdny","týdnů"][w(S)]},function(S){return["den","dne","dny","dní"][w(S)]},function(S){return["hodina","hodiny","hodiny","hodin"][w(S)]},function(S){return["minuta","minuty","minuty","minut"][w(S)]},function(S){return["sekunda","sekundy","sekundy","sekund"][w(S)]},function(S){return["milisekunda","milisekundy","milisekundy","milisekund"][w(S)]},","),cy:u("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:h(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:h(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:o,en:h(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:h(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:h(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:h(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:u("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:u("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:h(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:h(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:u(function(S){return"an"+(S>=2?"s":"")},"mois",function(S){return"semaine"+(S>=2?"s":"")},function(S){return"jour"+(S>=2?"s":"")},function(S){return"heure"+(S>=2?"s":"")},function(S){return"minute"+(S>=2?"s":"")},function(S){return"seconde"+(S>=2?"s":"")},function(S){return"milliseconde"+(S>=2?"s":"")},","),gr:o,he:h(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:u(function(S){return S%10===2||S%10===3||S%10===4?"godine":"godina"},function(S){return S===1?"mjesec":S===2||S===3||S===4?"mjeseca":"mjeseci"},function(S){return S%10===1&&S!==11?"tjedan":"tjedna"},c(["dan","dana"]),function(S){return S===1?"sat":S===2||S===3||S===4?"sata":"sati"},function(S){var U=S%10;return(U===2||U===3||U===4)&&(S<10||S>14)?"minute":"minuta"},function(S){var U=S%10;return U===5||Math.floor(S)===S&&S>=10&&S<=19?"sekundi":U===1?"sekunda":U===2||U===3||U===4?"sekunde":"sekundi"},function(S){return S===1?"milisekunda":S%10===2||S%10===3||S%10===4?"milisekunde":"milisekundi"},","),hi:u("साल",c(["महीना","महीने"]),c(["हफ़्ता","हफ्ते"]),"दिन",c(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:u("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:u("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:h(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:h(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:u("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:u("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:h(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:u("년","개월","주일","일","시간","분","초","밀리 초"),ku:u("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:u("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:u(function(S){return S%10===0||S%100>=10&&S%100<=20?"metų":"metai"},function(S){return["mėnuo","mėnesiai","mėnesių"][E(S)]},function(S){return["savaitė","savaitės","savaičių"][E(S)]},function(S){return["diena","dienos","dienų"][E(S)]},function(S){return["valanda","valandos","valandų"][E(S)]},function(S){return["minutė","minutės","minučių"][E(S)]},function(S){return["sekundė","sekundės","sekundžių"][E(S)]},function(S){return["milisekundė","milisekundės","milisekundžių"][E(S)]},","),lv:u(function(S){return C(S)?"gads":"gadi"},function(S){return C(S)?"mēnesis":"mēneši"},function(S){return C(S)?"nedēļa":"nedēļas"},function(S){return C(S)?"diena":"dienas"},function(S){return C(S)?"stunda":"stundas"},function(S){return C(S)?"minūte":"minūtes"},function(S){return C(S)?"sekunde":"sekundes"},function(S){return C(S)?"milisekunde":"milisekundes"},","),mk:h(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:u("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:u(c(["वर्ष","वर्षे"]),c(["महिना","महिने"]),c(["आठवडा","आठवडे"]),"दिवस","तास",c(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:u("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:h(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:h(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:u(function(S){return["rok","roku","lata","lat"][b(S)]},function(S){return["miesiąc","miesiąca","miesiące","miesięcy"][b(S)]},function(S){return["tydzień","tygodnia","tygodnie","tygodni"][b(S)]},function(S){return["dzień","dnia","dni","dni"][b(S)]},function(S){return["godzina","godziny","godziny","godzin"][b(S)]},function(S){return["minuta","minuty","minuty","minut"][b(S)]},function(S){return["sekunda","sekundy","sekundy","sekund"][b(S)]},function(S){return["milisekunda","milisekundy","milisekundy","milisekund"][b(S)]},","),pt:h(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:u(p("an","ani","de ani"),p("lună","luni","de luni"),p("săptămână","săptămâni","de săptămâni"),p("zi","zile","de zile"),p("oră","ore","de ore"),p("minut","minute","de minute"),p("secundă","secunde","de secunde"),p("milisecundă","milisecunde","de milisecunde"),","),ru:y(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:u(c(["vit","vjet"]),"muaj","javë","ditë","orë",function(S){return"minut"+(S===1?"ë":"a")},function(S){return"sekond"+(S===1?"ë":"a")},function(S){return"milisekond"+(S===1?"ë":"a")},","),sr:y(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:y(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:h(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:h(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:y(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:u("سال",c(["مہینہ","مہینے"]),c(["ہفتہ","ہفتے"]),"دن",c(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:u(function(S){return["rok","roky","roky","rokov"][w(S)]},function(S){return["mesiac","mesiace","mesiace","mesiacov"][w(S)]},function(S){return["týždeň","týždne","týždne","týždňov"][w(S)]},function(S){return["deň","dni","dni","dní"][w(S)]},function(S){return["hodina","hodiny","hodiny","hodín"][w(S)]},function(S){return["minúta","minúty","minúty","minút"][w(S)]},function(S){return["sekunda","sekundy","sekundy","sekúnd"][w(S)]},function(S){return["milisekunda","milisekundy","milisekundy","milisekúnd"][w(S)]},","),sl:u(function(S){return S%10===1?"leto":S%100===2?"leti":S%100===3||S%100===4||Math.floor(S)!==S&&S%100<=5?"leta":"let"},function(S){return S%10===1?"mesec":S%100===2||Math.floor(S)!==S&&S%100<=5?"meseca":S%10===3||S%10===4?"mesece":"mesecev"},function(S){return S%10===1?"teden":S%10===2||Math.floor(S)!==S&&S%100<=4?"tedna":S%10===3||S%10===4?"tedne":"tednov"},function(S){return S%100===1?"dan":"dni"},function(S){return S%10===1?"ura":S%100===2?"uri":S%10===3||S%10===4||Math.floor(S)!==S?"ure":"ur"},function(S){return S%10===1?"minuta":S%10===2?"minuti":S%10===3||S%10===4||Math.floor(S)!==S&&S%100<=4?"minute":"minut"},function(S){return S%10===1?"sekunda":S%100===2?"sekundi":S%100===3||S%100===4||Math.floor(S)!==S?"sekunde":"sekund"},function(S){return S%10===1?"milisekunda":S%100===2?"milisekundi":S%100===3||S%100===4||Math.floor(S)!==S?"milisekunde":"milisekund"},","),sv:h(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(h(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:u("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:u("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:u("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:u("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:u("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:u("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:u("年","個月","周","天","小時","分鐘","秒","毫秒")};function u(S,U,F,L,B,K,se,ae,ce){var j={y:S,mo:U,w:F,d:L,h:B,m:K,s:se,ms:ae};return ce&&(j.decimal=ce),j}function c(S){return function(U){return U===1?S[0]:S[1]}}function h(S,U,F,L,B,K,se,ae,ce){return u(c(S),c(U),c(F),c(L),c(B),c(K),c(se),c(ae),ce)}function p(S,U,F){return function(L){if(L===1)return S;if(Math.floor(L)!==L||L===0)return U;var B=L%100;return B>=1&&B<=19?U:F}}function g(S){return function(U){return Math.floor(U)!==U?S[2]:U%100>=5&&U%100<=20||U%10>=5&&U%10<=9||U%10===0?S[0]:U%10===1?S[1]:U>1?S[2]:S[1]}}function y(S,U,F,L,B,K,se,ae){return u(g(S),g(U),g(F),g(L),g(B),g(K),g(se),g(ae),",")}function v(S){return S===2?1:S>2&&S<11?2:0}function b(S){return S===1?0:Math.floor(S)!==S?1:S%10>=2&&S%10<=4&&!(S%100>10&&S%100<20)?2:3}function w(S){return S===1?0:Math.floor(S)!==S?1:S%10>=2&&S%10<=4&&S%100<10?2:3}function E(S){return S===1||S%10===1&&S%100>20?0:Math.floor(S)!==S||S%10>=2&&S%100>20||S%10>=2&&S%100<10?1:2}function C(S){return S%10===1&&S%100!==11}function D(S,U){return Object.prototype.hasOwnProperty.call(S,U)}function _(S){var U=[S.language];if(D(S,"fallbacks"))if(r(S.fallbacks)&&S.fallbacks.length)U=U.concat(S.fallbacks);else throw new Error("fallbacks must be an array with at least one element");for(var F=0;F<U.length;F++){var L=U[F];if(D(S.languages,L))return S.languages[L];if(D(l,L))return l[L]}throw new Error("No language found.")}function A(S,U,F){var L=S.unitName,B=S.unitCount,K=F.spacer,se=F.maxDecimalPoints,ae;D(F,"decimal")?ae=F.decimal:D(U,"decimal")?ae=U.decimal:ae=".";var ce;"digitReplacements"in F?ce=F.digitReplacements:"_digitReplacements"in U&&(ce=U._digitReplacements);var j,Y=se===void 0?B:Math.floor(B*Math.pow(10,se))/Math.pow(10,se),le=Y.toString();if(U._hideCountIf2&&B===2)j="",K="";else if(ce){j="";for(var de=0;de<le.length;de++){var fe=le[de];fe==="."?j+=ae:j+=ce[fe]}}else j=le.replace(".",ae);var pe=U[L],G;return typeof pe=="function"?G=pe(B):G=pe,U._numberFirst?G+K+j:j+K+G}function N(S,U){var F,L,B,K,se=U.units,ae=U.unitMeasures,ce="largest"in U?U.largest:1/0;if(!se.length)return[];var j={};for(K=S,L=0;L<se.length;L++){F=se[L];var Y=ae[F],le=L===se.length-1;B=le?K/Y:Math.floor(K/Y),j[F]=B,K-=B*Y}if(U.round){var de=ce;for(L=0;L<se.length;L++)if(F=se[L],B=j[F],B!==0&&(de--,de===0)){for(var fe=L+1;fe<se.length;fe++){var pe=se[fe],G=j[pe];j[F]+=G*ae[pe]/ae[F],j[pe]=0}break}for(L=se.length-1;L>=0;L--)if(F=se[L],B=j[F],B!==0){var X=Math.round(B);if(j[F]=X,L===0)break;var ue=se[L-1],re=ae[ue],ee=Math.floor(X*ae[F]/re);if(ee)j[ue]+=ee,j[F]=0;else break}}var ve=[];for(L=0;L<se.length&&ve.length<ce;L++)F=se[L],B=j[F],B&&ve.push({unitName:F,unitCount:B});return ve}function M(S,U){var F=_(U);if(!S.length){var L=U.units,B=L[L.length-1];return A({unitName:B,unitCount:0},F,U)}var K=U.conjunction,se=U.serialComma,ae;D(U,"delimiter")?ae=U.delimiter:D(F,"delimiter")?ae=F.delimiter:ae=", ";for(var ce=[],j=0;j<S.length;j++)ce.push(A(S[j],F,U));return!K||S.length===1?ce.join(ae):S.length===2?ce.join(K):ce.slice(0,-1).join(ae)+(se?",":"")+K+ce.slice(-1)}function O(S){var U=function(L,B){L=Math.abs(L);var K=n({},U,B||{}),se=N(L,K);return M(se,K)};return n(U,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},S)}var I=n(O({}),{getSupportedLanguages:function(){var U=[];for(var F in l)D(l,F)&&F!=="gr"&&U.push(F);return U},humanizer:O});e.exports?e.exports=I:this.humanizeDuration=I})()})(Zf)),Zf.exports}var Pj=Bj();const Ch=jb(Pj),Hj=({flowRun:e})=>{const{estimated_run_time:n,total_run_time:r}=e,o=n||r,l=Ch(o,{maxDecimalPoints:2,units:["s"]}),u=Ch(o,{maxDecimalPoints:5,units:["s"]});return d.jsx(ei,{children:d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:d.jsxs("div",{className:"flex gap-2 items-center text-xs font-mono",children:[d.jsx(gt,{id:"Clock",className:"size-4"}),l]})}),d.jsx(qa,{children:u})]})})};function Ax({...e}){return d.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Rx({className:e,...n}){return d.jsx("ol",{"data-slot":"breadcrumb-list",className:$("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...n})}function kh({className:e,...n}){return d.jsx("li",{"data-slot":"breadcrumb-item",className:$("inline-flex items-center gap-1.5",e),...n})}function $j({asChild:e,className:n,...r}){const o=e?Zr:"a";return d.jsx(o,{"data-slot":"breadcrumb-link",className:$("hover:text-foreground transition-colors",n),...r})}const fb=uE($j);function _I({className:e,...n}){return d.jsx("span",{"data-slot":"breadcrumb-page","aria-disabled":"true","aria-current":"page",className:$("text-foreground font-normal",e),...n})}function Qj({children:e,className:n,...r}){return d.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:$("[&>svg]:size-3.5",n),...r,children:e??d.jsx(LE,{})})}const Vj=({flowRun:e})=>{const{flow:n}=e;return d.jsx("div",{className:"flex items-center",children:d.jsx(Ax,{children:d.jsxs(Rx,{children:[n&&d.jsx(kh,{children:d.jsx(fb,{to:"/flows/flow/$id",params:{id:e.flow_id},children:n.name})}),n&&d.jsx(Qj,{children:"/"}),d.jsx(kh,{className:"font-bold text-foreground",children:d.jsx(fb,{to:"/runs/flow-run/$id",params:{id:e.id},children:e.name})})]})})})};function Gj({...e}){return d.jsx(Ih,{"data-slot":"dialog",...e})}function Yj({...e}){return d.jsx(IE,{"data-slot":"dialog-trigger",...e})}function Kj({...e}){return d.jsx(Uh,{"data-slot":"dialog-portal",...e})}function TI({...e}){return d.jsx(Fh,{"data-slot":"dialog-close",...e})}function Wj({className:e,...n}){return d.jsx(qh,{"data-slot":"dialog-overlay",className:$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...n})}function Xj({className:e,children:n,...r}){return d.jsxs(Kj,{"data-slot":"dialog-portal",children:[d.jsx(Wj,{}),d.jsxs(zh,{"data-slot":"dialog-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[n,d.jsxs(Fh,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[d.jsx(hm,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Zj({className:e,...n}){return d.jsx("div",{"data-slot":"dialog-header",className:$("flex flex-col gap-2 text-center sm:text-left",e),...n})}function DI({className:e,...n}){return d.jsx("div",{"data-slot":"dialog-footer",className:$("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function Jj({className:e,...n}){return d.jsx(Mb,{"data-slot":"dialog-title",className:$("text-lg leading-none font-semibold",e),...n})}function CI({className:e,...n}){return d.jsx(zE,{"data-slot":"dialog-description",className:$("text-muted-foreground text-sm",e),...n})}const e8=k.lazy(()=>Ae(()=>import("./json-input-iUzf6BvZ.js"),__vite__mapDeps([9,1,2,10,4,5,6,7])).then(e=>({default:e.JsonInput})));function t8({className:e,...n}){return d.jsx(k.Suspense,{fallback:d.jsx(ke,{className:`min-h-[200px] ${e??""}`}),children:d.jsx(e8,{className:e,...n})})}const n8=({flowRun:e})=>d.jsxs("div",{className:"flex items-center",children:[d.jsx(gt,{id:"SlidersVertical",className:"size-4"}),d.jsx(a8,{flowRun:e})]}),a8=({flowRun:e})=>{const n=e.parameters??{},r=Object.keys(n).length;return d.jsxs(Gj,{children:[d.jsx(Yj,{asChild:!0,children:d.jsxs(ot,{variant:"link",size:"sm",disabled:r<1,children:[r," ",fx(r,"Parameter")]})}),d.jsxs(Xj,{"aria-describedby":void 0,children:[d.jsx(Zj,{children:d.jsxs(Jj,{children:["Flow run parameters for ",e.name??"Flow run"]})}),d.jsx(t8,{value:JSON.stringify(n,null,2),disabled:!0})]})]})},r8=({flowRun:e})=>{const{start_time:n,expected_start_time:r,estimated_start_time_delta:o}=e,{text:l,tooltipText:u}=k.useMemo(()=>{let c,h;return n?(c=`${tb(n,"dateTimeNumeric")} ${hb(o)}`,h=new Date(n).toString()):r&&(c=`Scheduled for ${tb(r,"dateTimeNumeric")} ${hb(o)}`,h=new Date(r).toString()),{text:c,tooltipText:h}},[o,r,n]);return d.jsx(ei,{children:d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,disabled:!l,children:d.jsxs("div",{className:"text-xs font-mono flex gap-2 items-center",children:[d.jsx(gt,{id:"Calendar",className:"size-4"}),l??"No start time"]})}),d.jsx(qa,{children:u})]})})},hb=e=>!e||e<=60?"":`(${Ch(e,{maxDecimalPoints:0})} late)`,i8=({flowRun:e})=>{const{data:n}=Io(Bo([e.id])),r=n[e.id];return r===void 0?null:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(gt,{id:"Spline",className:"size-4"}),d.jsxs("p",{className:Bh("text-xs",r===0&&"text-muted-foreground"),children:[r," ",fx(r,"Task run")]})]})},o8=({flowRun:e,...n})=>d.jsxs(Ea,{className:s8({state:e.state?.type}),children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsxs("div",{className:"flex items-center gap-2",children:["checked"in n&&"onCheckedChange"in n&&d.jsx(jj,{checked:n.checked,onCheckedChange:n.onCheckedChange}),d.jsx(Vj,{flowRun:e})]}),d.jsx("div",{children:d.jsx(Sm,{tags:e.tags})})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[e.state&&d.jsx(Nx,{type:e.state.type,name:e.state.name}),d.jsx(r8,{flowRun:e}),d.jsx(n8,{flowRun:e}),e.state?.type!=="SCHEDULED"&&d.jsxs(d.Fragment,{children:[d.jsx(Hj,{flowRun:e}),d.jsx(k.Suspense,{children:d.jsx(i8,{flowRun:e})})]})]}),d.jsx("div",{className:"flex items-center gap-2",children:e.deployment&&d.jsx(qj,{deployment:e.deployment})})]}),s8=qo("flex flex-col gap-2 p-4 border-l-8",{variants:{state:{COMPLETED:"border-l-green-600",FAILED:"border-l-red-600",RUNNING:"border-l-blue-700",CANCELLED:"border-l-gray-800",CANCELLING:"border-l-gray-800",CRASHED:"border-l-orange-600",PAUSED:"border-l-gray-800",PENDING:"border-l-gray-800",SCHEDULED:"border-l-yellow-700"}}}),jx=({className:e,...n})=>d.jsx("nav",{"aria-label":"pagination",className:$("mx-auto flex w-full justify-center",e),...n});jx.displayName="Pagination";const Mx=k.forwardRef(({className:e,...n},r)=>d.jsx("ul",{ref:r,className:$("flex flex-row items-center gap-1",e),...n}));Mx.displayName="PaginationContent";const $u=k.forwardRef(({className:e,...n},r)=>d.jsx("li",{ref:r,className:$("",e),...n}));$u.displayName="PaginationItem";const Ox=({className:e,...n})=>d.jsx(ot,{"aria-label":"Go to previous page",size:"default",variant:"ghost",className:$("gap-1 pl-2.5",e),...n,children:d.jsx(gt,{id:"ChevronLeft",className:"size-4"})});Ox.displayName="PaginationPreviousButton";const Lx=({className:e,...n})=>d.jsx(ot,{"aria-label":"Go to next page",variant:"ghost",size:"default",className:$("gap-1 pr-2.5",e),...n,children:d.jsx(gt,{id:"ChevronRight",className:"size-4"})});Lx.displayName="PaginationNextButton";const l8=({className:e,...n})=>d.jsx(ot,{"aria-label":"Go to first page",variant:"ghost",size:"default",className:$("gap-1 pl-2.5",e),...n,children:d.jsx(gt,{id:"ChevronsLeft",className:"size-4"})});l8.displayName="PaginationFirstButton";const kI=({className:e,...n})=>d.jsx(ot,{"aria-label":"Go to last page",variant:"ghost",size:"default",className:$("gap-1 pr-2.5",e),...n,children:d.jsx(gt,{id:"ChevronsRight",className:"size-4"})}),u8=3;function c8({flowId:e,filter:n}){const[r,o]=k.useState(1),l=Le(),u=k.useCallback(w=>({...n,flows:{...n?.flows,operator:"and_",id:{any_:[e]}},page:w,limit:u8,sort:"START_TIME_DESC"}),[n,e]),c=k.useMemo(()=>u(r),[u,r]),{data:h}=et(Wr(c,3e4)),p=h?.results??[],g=h?.pages??1,y=k.useCallback(w=>{const E=u(w),C=Wr(E,3e4);l.fetchQuery(C).then(D=>{if(!D)return;(D.results??[]).map(A=>A.id).filter(Boolean).forEach(A=>{l.prefetchQuery(Bo([A]))})}).catch(()=>{})},[u,l]),v=k.useCallback(()=>{r<g&&y(r+1)},[r,g,y]),b=k.useCallback(()=>{r>1&&y(r-1)},[r,y]);return d.jsxs("div",{className:"space-y-3",children:[p.map(w=>d.jsx(k.Suspense,{fallback:d.jsx(d8,{}),children:d.jsx(o8,{flowRun:w})},w.id)),g>1&&d.jsx(jx,{className:"justify-start",children:d.jsxs(Mx,{children:[d.jsx($u,{children:d.jsx(Ox,{onClick:()=>o(w=>Math.max(1,w-1)),onMouseEnter:b,disabled:r===1})}),d.jsx($u,{children:d.jsxs("p",{className:"text-sm px-2",children:["Page ",r," of ",g]})}),d.jsx($u,{children:d.jsx(Lx,{onClick:()=>o(w=>Math.min(g,w+1)),onMouseEnter:v,disabled:r===g})})]})})]})}function d8(){return d.jsxs("div",{className:"flex flex-col gap-2 rounded-md border p-4",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx(ke,{className:"h-4 w-32"}),d.jsx(ke,{className:"h-4 w-16"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ke,{className:"h-5 w-20"}),d.jsx(ke,{className:"h-4 w-24"}),d.jsx(ke,{className:"h-4 w-16"})]})]})}const f8=e=>"flow"in e&&e.flow?d.jsx(Ix,{...e,flow:e.flow}):d.jsx(k.Suspense,{fallback:d.jsx(ke,{className:"h-4 w-full"}),children:d.jsx(h8,{...e,flowId:e.flowId})}),h8=({flowId:e,className:n,iconSize:r,onClick:o})=>{const{data:l}=Io(tc(e));return d.jsx(Ix,{flow:l,className:n,iconSize:r,onClick:o})},Ix=({flow:e,className:n,iconSize:r,onClick:o})=>d.jsxs(Xt,{to:"/flows/flow/$id",params:{id:e.id},className:n??"flex items-center gap-1",onClick:o,children:[d.jsx(gt,{id:"Workflow",size:r,className:r?void 0:"size-4"}),e.name]}),m8=({date:e,format:n="relative",showTooltip:r=!0,className:o})=>{if(!e)return d.jsx("span",{className:$("text-muted-foreground",o),children:"Never"});let l;try{if(l=typeof e=="string"?Ph(e):e,!N_(l))return d.jsx("span",{className:$("text-muted-foreground",o),children:"Invalid date"})}catch{return d.jsx("span",{className:$("text-muted-foreground",o),children:"Invalid date"})}const c=(()=>{switch(n){case"relative":return Rf(l,{addSuffix:!0});case"absolute":return sn(l,"MMM d, yyyy 'at' h:mm a");case"timestamp":return sn(l,"yyyy/MM/dd hh:mm:ss a");case"both":return Rf(l,{addSuffix:!0});default:return Rf(l,{addSuffix:!0})}})(),h=sn(l,"MMMM d, yyyy 'at' h:mm:ss a"),p=typeof e=="string"?e:e.toISOString(),g=d.jsx("span",{className:o,children:c});if(r&&(n==="relative"||n==="both"||n==="absolute")){const y=n==="absolute"?p:h;return d.jsx(ei,{children:d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:g}),d.jsx(qa,{children:d.jsx("p",{children:y})})]})})}return g};function p8({flow:e,filter:n}){const r=k.useMemo(()=>({...n,flows:{...n.flows??{},operator:"and_",id:{any_:[e.id]}}}),[n,e.id]),{data:o}=et(vt(r,3e4)),l=k.useMemo(()=>({...r,sort:"START_TIME_DESC",limit:1,offset:0}),[r]),{data:u}=et(pr(l,3e4)),c=u?.[0];return d.jsxs("div",{className:"flex w-full items-center justify-between gap-4 pr-2",children:[d.jsxs("div",{className:"flex flex-col items-start gap-1",children:[d.jsx(f8,{flow:e,className:"text-sm font-medium text-foreground hover:underline flex items-center gap-1",onClick:h=>h.stopPropagation()}),c?.start_time&&d.jsx(m8,{date:new Date(c.start_time),format:"relative",className:"text-xs text-muted-foreground"})]}),d.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:o??0})]})}function v8({filter:e,stateTypes:n}){const r=k.useMemo(()=>{const y={sort:"START_TIME_DESC",offset:0,...e};return n.length>0&&(y.flow_runs={...y.flow_runs,operator:"and_",state:{operator:"and_",type:{any_:n}}}),y},[e,n]),{data:o,isLoading:l}=et({...pr(r,3e4),placeholderData:qe}),u=k.useMemo(()=>o?[...new Set(o.map(y=>y.flow_id))]:[],[o]),c=k.useMemo(()=>u.length===0?{offset:0,sort:"UPDATED_DESC"}:{flows:{operator:"and_",id:{any_:u}},offset:0,sort:"UPDATED_DESC"},[u]),{data:h,isLoading:p}=et(al(c,{enabled:u.length>0})),g=k.useMemo(()=>{const y=new Map;if(h)for(const v of h)y.set(v.id,v);return y},[h]);return l&&!o?d.jsx(ke,{className:"h-32 w-full"}):!o||o.length===0?d.jsx(Rj,{stateTypes:n}):p&&u.length>0?null:d.jsx(Sj,{type:"multiple",className:"w-full",children:u.map(y=>{const v=g.get(y);return v?d.jsxs(Ej,{value:y,children:[d.jsx(_j,{className:"hover:no-underline",children:d.jsx(p8,{flow:v,filter:r})}),d.jsx(Tj,{children:d.jsx(c8,{flowId:y,filter:r})})]},y):null})})}function Em({error:e,onRetry:n,isRetrying:r}){return d.jsx(Ea,{children:d.jsxs(Pa,{className:"flex flex-col items-center justify-center gap-3 py-8 text-center",children:[d.jsx("div",{className:"rounded-full bg-destructive/10 p-2",children:d.jsx(CN,{className:"size-6 text-destructive"})}),d.jsxs("div",{className:"space-y-1",children:[d.jsx("p",{className:"font-medium",children:e.message}),e.details&&d.jsx("p",{className:"text-xs text-muted-foreground max-w-sm",children:e.details})]}),n&&d.jsxs(ot,{variant:"outline",onClick:n,disabled:r,className:"gap-2",children:[d.jsx(X1,{className:$("size-3",r&&"animate-spin")}),r?"Retrying...":"Retry"]})]})})}const g8=e=>"deployment"in e&&e.deployment?d.jsx(zx,{...e,deployment:e.deployment}):d.jsx(k.Suspense,{fallback:d.jsx(ke,{className:"h-4 w-full"}),children:d.jsx(y8,{...e,deploymentId:e.deploymentId})}),y8=({deploymentId:e,className:n,iconSize:r,onClick:o})=>{const{data:l}=Io(ul(e));return d.jsx(zx,{deployment:l,className:n,iconSize:r,onClick:o})},zx=({deployment:e,className:n,iconSize:r,onClick:o})=>d.jsxs(Xt,{to:"/deployments/deployment/$id",params:{id:e.id},className:n??"flex items-center gap-1",onClick:o,children:[d.jsx(gt,{id:"Rocket",size:r,className:r?void 0:"size-4"}),e.name]}),b8={light:"",dark:".dark"},Fx=k.createContext(null);function Ux(){const e=k.useContext(Fx);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const _m=k.forwardRef(({id:e,className:n,children:r,config:o,...l},u)=>{const c=k.useId(),h=`chart-${e||c.replace(/:/g,"")}`;return d.jsx(Fx.Provider,{value:{config:o},children:d.jsxs("div",{"data-chart":h,ref:u,className:$("flex min-w-0 aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",n),...l,children:[d.jsx(x8,{id:h,config:o}),d.jsx(S_,{minWidth:0,minHeight:0,initialDimension:{width:1,height:1},children:r})]})})});_m.displayName="Chart";const x8=({id:e,config:n})=>{const r=Object.entries(n).filter(([,o])=>o.theme||o.color);return r.length?d.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(b8).map(([o,l])=>`
22
22
  ${l} [data-chart=${e}] {
23
23
  ${r.map(([u,c])=>{const h=c.theme?.[o]||c.color;return h?` --color-${u}: ${h};`:null}).join(`
24
24
  `)}
25
25
  }
26
26
  `).join(`
27
- `)}}):null},_8=__,T8=k.forwardRef(({active:e,payload:n,className:r,indicator:o="dot",hideLabel:l=!1,hideIndicator:u=!1,label:c,labelFormatter:h,labelClassName:p,formatter:g,color:y,nameKey:v,labelKey:b},w)=>{const{config:E}=qx(),C=k.useMemo(()=>{if(l||!n?.length)return null;const[_]=n,A=`${b||_.dataKey||_.name||"value"}`,N=Nh(E,_,A),M=!b&&typeof c=="string"?E[c]?.label||c:N?.label;return h?d.jsx("div",{className:$("font-medium",p),children:h(M,n)}):M?d.jsx("div",{className:$("font-medium",p),children:M}):null},[c,h,n,l,p,E,b]);if(!e||!n?.length)return null;const D=n.length===1&&o!=="dot";return d.jsxs("div",{ref:w,className:$("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[D?null:C,d.jsx("div",{className:"grid gap-1.5",children:n.map((_,A)=>{const N=`${v||_.name||_.dataKey||"value"}`,M=Nh(E,_,N),O=y||_.payload.fill||_.color;return d.jsx("div",{className:$("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",o==="dot"&&"items-center"),children:g&&_?.value!==void 0&&_.name?g(_.value,_.name,_,A,_.payload):d.jsxs(d.Fragment,{children:[M?.icon?d.jsx(M.icon,{}):!u&&d.jsx("div",{className:$("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"size-2.5":o==="dot","w-1":o==="line","w-0 border-[1.5px] border-dashed bg-transparent":o==="dashed","my-0.5":D&&o==="dashed"}),style:{"--color-bg":O,"--color-border":O}}),d.jsxs("div",{className:$("flex flex-1 justify-between leading-none",D?"items-end":"items-center"),children:[d.jsxs("div",{className:"grid gap-1.5",children:[D?C:null,d.jsx("span",{className:"text-muted-foreground",children:M?.label||_.name})]}),_.value&&d.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:_.value.toLocaleString()})]})]})},_.dataKey)})})]})});T8.displayName="ChartTooltip";const D8=k.forwardRef(({className:e,hideIcon:n=!1,payload:r,verticalAlign:o="bottom",nameKey:l},u)=>{const{config:c}=qx();return r?.length?d.jsx("div",{ref:u,className:$("flex items-center justify-center gap-4",o==="top"?"pb-3":"pt-3",e),children:r.map(h=>{const p=`${l||h.dataKey||"value"}`,g=Nh(c,h,p);return d.jsxs("div",{className:$("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[g?.icon&&!n?d.jsx(g.icon,{}):d.jsx("div",{className:"size-2 shrink-0 rounded-[2px]",style:{backgroundColor:h.color}}),g?.label]},h.value)})}):null});D8.displayName="ChartLegend";function Nh(e,n,r){if(typeof n!="object"||n===null)return;const o="payload"in n&&typeof n.payload=="object"&&n.payload!==null?n.payload:void 0;let l=r;return r in n&&typeof n[r]=="string"?l=n[r]:o&&r in o&&typeof o[r]=="string"&&(l=o[r]),l in e?e[l]:e[r]}const Bx=k.createContext({takeCurrentHolder:()=>{},releaseCurrentHolder:()=>{}});function C8(e,n,r,o){if(!n||!r)return[];if(e.length>o)throw new Error(`Number of flow runs (${e.length}) is greater than the number of buckets (${o})`);const u=(r.getTime()-n.getTime())/o,c=new Array(o).fill(null),h=c.length-1,p=r.getTime()>Date.now(),g=p?1:-1,y=p?e.sort((b,w)=>{const E=b.start_time?new Date(b.start_time):b.expected_start_time?new Date(b.expected_start_time):null,C=w.start_time?new Date(w.start_time):w.expected_start_time?new Date(w.expected_start_time):null;return!E||!C?0:E.getTime()-C.getTime()}):e;function v(b){return b<0?null:c[b]?v(b+g):b}for(const b of y){const w=b.start_time?new Date(b.start_time):b.expected_start_time?new Date(b.expected_start_time):null;if(!w)continue;const E=Math.min(Math.floor((w.getTime()-n.getTime())/u),h),C=v(E);C!==null&&(c[C]=b)}return c}const k8=Di("gap-1 z-1",{variants:{state:{COMPLETED:"fill-state-completed-600",FAILED:"fill-state-failed-700",RUNNING:"fill-state-running-700",CANCELLED:"fill-state-cancelled-500",CANCELLING:"fill-state-cancelling-600",CRASHED:"fill-state-crashed-600",PAUSED:"fill-state-paused-600",PENDING:"fill-state-pending-500",SCHEDULED:"fill-state-scheduled-600",NONE:"fill-state-cancelled-100"}},defaultVariants:{state:"NONE"}}),N8=e=>{const{x:r=0,y:o=0,width:l=0,height:u=8,radius:c=[0,0,0,0],role:h,flowRun:p}=e,g=Math.max(u,8),y=o+(u-g);return d.jsx("g",{role:h,children:d.jsx("rect",{"data-testid":`bar-rect-${p?.id}`,x:r,y,width:l,height:g,rx:c[0],ry:c[0],className:k8({state:p?.state_type})})})},A8=(e,n=void 0,r=200)=>{const[o,l]=k.useState(n),[u,c]=k.useState(n),{currentHolder:h,takeCurrentHolder:p,releaseCurrentHolder:g}=k.useContext(Bx);return k.useEffect(()=>{if(h&&e!==h)c(!1);else if(o)e&&p(e),c(!0);else{const y=setTimeout(()=>{c(void 0),e&&g(e)},r);return()=>clearTimeout(y)}},[o,r,e,h,p,g]),[u,l]},R8=({children:e})=>{const[n,r]=k.useState(void 0),o=k.useCallback(u=>{r(u)},[]),l=k.useCallback(u=>{n===u&&r(void 0)},[n]);return d.jsx(Bx.Provider,{value:{currentHolder:n,takeCurrentHolder:o,releaseCurrentHolder:l},children:e})},Tm=({chartId:e,enrichedFlowRuns:n,startDate:r,endDate:o,barWidth:l=8,numberOfBars:u,className:c})=>{const[h,p]=A8(e),g=n.slice(0,u),y=C8(g,r,o,u),v=k.useMemo(()=>g.reduce((E,C)=>{const D=C.total_run_time??0;return D>E?D:E},0),[g]),b=k.useMemo(()=>{const E=T_();return E.domain([0,v]),E.range([0,1]),E},[v]),w=y.map((E,C)=>{const D=E?.total_run_time??0;return{value:v>0?b(D)*v:0,id:E?.id??`empty-${C}`,stateType:E?.state_type,flowRun:E}});return d.jsx(_m,{config:{inactivity:{color:"hsl(210 40% 45%)"}},className:$("relative",c,h&&"z-20"),children:d.jsxs(D_,{data:w,margin:{top:0,right:0,bottom:0,left:0},barSize:l,onMouseMove:()=>{p(!0)},onMouseLeave:()=>{p(void 0)},children:[d.jsx(_8,{content:d.jsx(Px,{}),isAnimationActive:!1,allowEscapeViewBox:{x:!0,y:!0},active:h,wrapperStyle:{pointerEvents:"auto"}}),d.jsx(C_,{dataKey:"value",shape:d.jsx(N8,{}),radius:[5,5,5,5],onMouseEnter:()=>p(!0),onMouseLeave:()=>p(void 0),isAnimationActive:!1,children:w.map(E=>d.jsx(k_,{role:"graphics-symbol"},`cell-${E.id}`))})]})})};Tm.displayName="FlowRunActivityBarChart";const Px=({payload:e,active:n})=>{if(!n||!e||!e.length)return null;const o=e[0]?.payload;if(!o||typeof o!="object"||!("flowRun"in o))return null;const l=o.flowRun;if(!l||!l.id)return null;const u=l.flow,c=l.deployment,h=l.start_time?new Date(l.start_time):l.expected_start_time?new Date(l.expected_start_time):null;return d.jsxs(Sa,{children:[d.jsxs(Ci,{children:[d.jsxs(hc,{className:"flex items-center gap-1",children:[u?.id&&d.jsxs(d.Fragment,{children:[d.jsx(Wt,{to:"/flows/flow/$id",params:{id:u.id},className:"text-base font-medium",children:u.name}),d.jsx(fm,{className:"size-4"})]}),d.jsx(Wt,{to:"/runs/flow-run/$id",params:{id:l.id},className:"text-base font-medium",children:l.name})]}),l.state&&d.jsx(tj,{children:d.jsx(Ax,{type:l.state.type,name:l.state.name})})]}),d.jsxs(Ba,{className:"flex flex-col gap-1",children:[c?.id&&d.jsx(x8,{deployment:c,className:"flex items-center gap-1 text-sm font-medium whitespace-nowrap"}),d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(W1,{className:"size-4"}),d.jsx("p",{className:"text-sm whitespace-nowrap",children:R_(0,l.total_run_time*1e3,{addSuffix:!1})})]}),h&&d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(G1,{className:"size-4"}),d.jsx("p",{className:"text-sm",children:on(h,"yyyy/MM/dd hh:mm a")})]}),d.jsx("div",{children:d.jsx(Sm,{tags:l.tags??[],maxTagsDisplayed:5})})]})]})};Px.displayName="FlowRunTooltip";function j8(){return d.jsxs(Sa,{children:[d.jsxs(Ci,{className:"flex flex-row items-center justify-between",children:[d.jsx(ke,{className:"h-6 w-24"}),d.jsx(ke,{className:"h-4 w-16"})]}),d.jsxs(Ba,{className:"space-y-2",children:[d.jsx(ke,{className:"h-24 w-full"}),d.jsx("div",{className:"flex justify-between w-full gap-2",children:[1,2,3,4,5].map(e=>d.jsx(ke,{className:"h-10 flex-1"},e))}),d.jsx(ke,{className:"h-32 w-full"})]})]})}function M8({className:e,...n}){return d.jsx(UE,{"data-slot":"tabs",className:$("flex flex-col gap-2",e),...n})}function O8({className:e,...n}){return d.jsx(qE,{"data-slot":"tabs-list",className:$("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",e),...n})}function L8({className:e,...n}){return d.jsx(BE,{"data-slot":"tabs-trigger",className:$("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function jI({className:e,...n}){return d.jsx(PE,{"data-slot":"tabs-content",className:$("flex-1 outline-none",e),...n})}const I8=[["FAILED","CRASHED"],["RUNNING","PENDING","CANCELLING"],["COMPLETED"],["SCHEDULED","PAUSED"],["CANCELLED"]],z8={COMPLETED:"bg-state-completed-600",FAILED:"bg-state-failed-600",RUNNING:"bg-state-running-700",CANCELLED:"bg-state-cancelled-500",CRASHED:"bg-state-crashed-600",PAUSED:"bg-state-paused-500",PENDING:"bg-state-pending-500",SCHEDULED:"bg-state-scheduled-700",CANCELLING:"bg-state-cancelling-500"},F8=({states:e,count:n})=>d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"h-1 w-4 rounded-full grid auto-cols-fr grid-flow-col overflow-hidden",children:e.map(r=>d.jsx("span",{className:z8[r]},r))}),n]}),U8=({stateCounts:e,selectedStates:n,onStateChange:r})=>{const o=l=>{r(l.split("-").map(u=>u))};return d.jsx("div",{className:"space-y-2",children:d.jsx(M8,{value:n.join("-"),onValueChange:o,children:d.jsx(O8,{className:"flex justify-between w-full h-auto",children:I8.map(l=>d.jsx(L8,{value:l.join("-"),"aria-label":`${l.join("-").toLowerCase()} runs`,className:"flex flex-col items-center gap-1",children:d.jsx(F8,{states:l,count:l.reduce((u,c)=>u+e[c],0)})},l.join("-")))})})})},mb=8,q8=4;function B8({filter:e,selectedStates:n,onStateChange:r}){const[o,l]=k.useState(0),u=mx(o,150),[c,h]=k.useState(["FAILED","CRASHED"]),p=n??c,g=r??h,y=k.useCallback(ve=>{if(!ve)return;const ge=()=>{const ot=ve.getBoundingClientRect().width;l(Math.floor(ot/(mb+q8)))};ge();const Ne=new ResizeObserver(ge);return Ne.observe(ve),()=>Ne.disconnect()},[]),v=k.useMemo(()=>{const ve={sort:"START_TIME_DESC",offset:0},ge={operator:"and_"};return e?.startDate&&e?.endDate&&(ge.start_time={after_:e.startDate,before_:e.endDate}),e?.tags&&e.tags.length>0&&(ge.tags={operator:"and_",all_:e.tags}),e?.hideSubflows&&(ge.parent_task_run_id={operator:"and_",is_null_:!0}),Object.keys(ge).length>1&&(ve.flow_runs=ge),ve},[e?.startDate,e?.endDate,e?.tags,e?.hideSubflows]),b=Je({...mr(v,3e4),placeholderData:qe}),w=k.useMemo(()=>Tx(v),[v]),E=Je({...pt(w,3e4),placeholderData:qe}),C=Je({...pt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}},3e4),placeholderData:qe}),D=Je({...pt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["RUNNING","PENDING","CANCELLING"]}}}},3e4),placeholderData:qe}),_=Je({...pt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["COMPLETED"]}}}},3e4),placeholderData:qe}),A=Je({...pt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["SCHEDULED","PAUSED"]}}}},3e4),placeholderData:qe}),N=Je({...pt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["CANCELLED"]}}}},3e4),placeholderData:qe}),M=b.data??[],O=E.data??0,I=C.data??0,S=D.data??0,U=_.data??0,F=A.data??0,L=N.data??0,B=k.useMemo(()=>({FAILED:I,CRASHED:0,RUNNING:S,PENDING:0,CANCELLING:0,COMPLETED:U,SCHEDULED:F,PAUSED:0,CANCELLED:L}),[I,S,U,F,L]),{flowIds:K,deploymentIds:se}=k.useMemo(()=>{const ve=[...new Set(M.map(Ne=>Ne.flow_id))],ge=[...new Set(M.map(Ne=>Ne.deployment_id).filter(Ne=>!!Ne))];return{flowIds:ve,deploymentIds:ge}},[M]),{data:ae,isLoading:ce}=Je({...nl({flows:{operator:"and_",id:{any_:K}},offset:0,sort:"CREATED_DESC"}),enabled:K.length>0,placeholderData:qe}),{data:j,isLoading:Y}=Je({..._x({deployments:{operator:"and_",id:{any_:se}},offset:0,sort:"CREATED_DESC"}),enabled:se.length>0,placeholderData:qe}),le=k.useMemo(()=>M.map(ve=>{const ge=ae?.find(ot=>ot.id===ve.flow_id),Ne=j?.find(ot=>ot.id===ve.deployment_id);return{...ve,flow:ge,deployment:Ne}}),[M,ae,j]),{startDate:de,endDate:fe}=k.useMemo(()=>{if(e?.startDate&&e?.endDate)return{startDate:new Date(e.startDate),endDate:new Date(e.endDate)};const ve=new Date,ge=new Date;return ge.setDate(ge.getDate()-7),{startDate:ge,endDate:ve}},[e?.startDate,e?.endDate]),pe=[b,E,C,D,_,A,N],G=pe.find(ve=>ve.isError);if(G)return d.jsx(Em,{error:jo(G.error,"Failed to load flow runs"),onRetry:()=>{pe.filter(ve=>ve.isError).forEach(ve=>{ve.refetch()})},isRetrying:pe.some(ve=>ve.isRefetching)});if(pe.some(ve=>ve.isLoading&&ve.data===void 0))return d.jsx(j8,{});const re=M.length>0&&(ce&&K.length>0||Y&&se.length>0),ee=u||o;return d.jsxs(Sa,{children:[d.jsxs(Ci,{className:"flex flex-row items-center justify-between",children:[d.jsx(hc,{children:"Flow Runs"}),O>0&&d.jsxs("span",{className:"text-sm text-muted-foreground",children:[O," total"]})]}),d.jsx(Ba,{className:"space-y-2",children:re||ee===0?d.jsx("div",{className:"w-full",ref:y,children:d.jsx(ke,{className:"h-24 w-full"})}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-full",ref:y,children:d.jsx(Tm,{enrichedFlowRuns:le,startDate:de,endDate:fe,numberOfBars:ee,barWidth:mb,className:"h-24 w-full"})}),d.jsx(U8,{stateCounts:B,selectedStates:p,onStateChange:g}),d.jsx(b8,{filter:v,stateTypes:p})]})})]})}const P8={"artifacts-guide":"https://docs.prefect.io/v3/develop/artifacts","getting-started":"https://docs.prefect.io/v3/get-started/quickstart#open-source","automations-guide":"https://docs.prefect.io/v3/automate/events/automations-triggers","blocks-guide":"https://docs.prefect.io/v3/develop/blocks","deployments-guide":"https://docs.prefect.io/v3/deploy/index","flows-guide":"https://docs.prefect.io/v3/develop/flows","global-concurrency-guide":"https://docs.prefect.io/v3/develop/global-concurrency-limits","integrations-guide":"https://docs.prefect.io/integrations/integrations","task-concurrency-guide":"https://docs.prefect.io/v3/develop/task-run-limits","variables-guide":"https://docs.prefect.io/latest/guides/variables/","work-pools-guide":"https://docs.prefect.io/latest/deploy/infrastructure-concepts/work-pools"},H8=({id:e,label:n="View Docs"})=>d.jsx("a",{href:P8[e],target:"_blank",rel:"noreferrer",children:d.jsxs(it,{variant:"outline",children:[n," ",d.jsx(vt,{id:"ExternalLink",className:"size-4 ml-2"})]})}),$8=({id:e})=>d.jsx(vt,{id:e,className:"size-12 text-muted-foreground mb-8"}),Q8=({children:e})=>d.jsx("h3",{className:"text-2xl font-bold",children:e}),V8=({children:e})=>d.jsx("p",{className:"text-md text-muted-foreground",children:e}),G8=({children:e})=>d.jsx("div",{className:"flex gap-2 mt-4",children:e}),Y8=({children:e})=>d.jsx(Sa,{children:d.jsx(Ba,{className:"flex flex-col gap-2 items-center justify-center py-16",children:e})}),K8=()=>d.jsxs(Y8,{children:[d.jsx($8,{id:"Workflow"}),d.jsx(Q8,{children:"Run a task or flow to get started"}),d.jsx(V8,{children:"Runs store the state history for each execution of a task or flow."}),d.jsx(G8,{children:d.jsx(H8,{id:"getting-started"})})]});function W8(){return d.jsxs(Sa,{children:[d.jsx(Ci,{className:"flex flex-row items-center justify-between",children:d.jsx(ke,{className:"h-6 w-24"})}),d.jsx(Ba,{children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"grid gap-1",children:[d.jsx(ke,{className:"h-5 w-20"}),d.jsx(ke,{className:"h-4 w-32"}),d.jsx(ke,{className:"h-4 w-28"})]}),d.jsx(ke,{className:"h-16 w-full"})]})})]})}function Hx(e){const n=new Date,r=e?.startDate?new Date(e.startDate):new Date(n.getTime()-1440*60*1e3),o=e?.endDate?new Date(e.endDate):n,l=r.toISOString(),u=o.toISOString(),c=Math.floor((o.getTime()-r.getTime())/1e3),h=Math.max(1,Math.floor(c/20)),p={history_start:l,history_end:u,history_interval_seconds:h,flow_runs:{operator:"and_"},task_runs:{operator:"and_",start_time:{after_:l,before_:u}}};return e?.tags&&e.tags.length>0&&(p.flow_runs={operator:"and_",...p.flow_runs,tags:{operator:"and_",any_:e.tags}}),e?.hideSubflows&&(p.flow_runs={operator:"and_",...p.flow_runs,parent_task_run_id:{operator:"and_",is_null_:!0}}),p}const X8={completed:{label:"Completed",color:"hsl(142.1 76.2% 36.3%)"},failed:{label:"Failed",color:"hsl(0 84.2% 60.2%)"}},Z8=e=>{const n=[];let r=0,o=0;for(const l of e){let u=0,c=0;for(const h of l.states)h.state_type==="COMPLETED"?u+=h.count_runs:(h.state_type==="FAILED"||h.state_type==="CRASHED")&&(c+=h.count_runs);r+=u,o+=c,n.push({timestamp:l.interval_start,completed:r,failed:o})}return n};function J8({filter:e}){const n=k.useMemo(()=>Hx(e),[e]),{data:r,isLoading:o}=Je({...ym(n,3e4),placeholderData:qe}),l=k.useMemo(()=>r?Z8(r):[],[r]);if(o&&!r)return null;const u=l.some(c=>c.failed>0);return d.jsx("div",{className:"h-16 w-[calc(100%+3rem)] -mx-6",children:d.jsx(_m,{config:X8,className:"h-full w-full",children:d.jsxs(N_,{data:l,margin:{top:0,right:0,bottom:0,left:0},children:[d.jsxs("defs",{children:[d.jsxs("linearGradient",{id:"completedGradient",x1:"0",y1:"1",x2:"0",y2:"0",children:[d.jsx("stop",{offset:"0%",stopColor:"var(--color-completed)",stopOpacity:0}),d.jsx("stop",{offset:"100%",stopColor:"var(--color-completed)",stopOpacity:.3})]}),d.jsxs("linearGradient",{id:"failedGradient",x1:"0",y1:"1",x2:"0",y2:"0",children:[d.jsx("stop",{offset:"0%",stopColor:"var(--color-failed)",stopOpacity:0}),d.jsx("stop",{offset:"100%",stopColor:"var(--color-failed)",stopOpacity:.3})]})]}),u&&d.jsx(Iy,{type:"monotone",dataKey:"failed",stroke:"var(--color-failed)",strokeWidth:2,activeDot:!1,fill:"url(#failedGradient)",dot:!1,isAnimationActive:!1}),d.jsx(Iy,{type:"monotone",dataKey:"completed",stroke:"var(--color-completed)",strokeWidth:2,activeDot:!1,fill:"url(#completedGradient)",dot:!1,isAnimationActive:!1})]})})})}function eM(e){const n={operator:"and_",subflow_runs:{exists_:!1}};e?.startDate&&e?.endDate&&(n.start_time={after_:e.startDate,before_:e.endDate});const r={task_runs:n};if(e?.tags&&e.tags.length>0||e?.hideSubflows){const o={operator:"and_"};e?.tags&&e.tags.length>0&&(o.tags={operator:"and_",any_:e.tags}),e?.hideSubflows&&(o.parent_task_run_id={operator:"and_",is_null_:!0}),r.flow_runs=o}return r}function tM({filter:e}){const n=k.useMemo(()=>eM(e),[e]),r=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED","RUNNING"]}}}}),[n]),o=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}),[n]),l=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}}),[n]),u=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["RUNNING"]}}}}),[n]),c=Je({...Hn(r,3e4),placeholderData:qe}),h=Je({...Hn(o,3e4),placeholderData:qe}),p=Je({...Hn(l,3e4),placeholderData:qe}),g=Je({...Hn(u,3e4),placeholderData:qe}),y=[c,h,p,g],v=y.find(N=>N.isError);if(v)return d.jsx(Em,{error:jo(v.error,"Failed to load task runs"),onRetry:()=>{y.filter(N=>N.isError).forEach(N=>{N.refetch()})},isRetrying:y.some(N=>N.isRefetching)});if(y.some(N=>N.isLoading&&N.data===void 0))return d.jsx(W8,{});const w=c.data??0,E=h.data??0,C=p.data??0,D=g.data??0,_=w-D,A=_>0?C/_*100:0;return d.jsxs(Sa,{children:[d.jsx(Ci,{className:"flex flex-row items-center justify-between",children:d.jsx(hc,{children:"Task Runs"})}),d.jsx(Ba,{children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"grid gap-1",children:[d.jsx("div",{className:"inline-flex items-end gap-1 text-base",children:d.jsx("span",{className:"font-semibold",children:w})}),D>0&&d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:D}),d.jsx("span",{className:"text-muted-foreground",children:"Running"})]}),d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:E}),d.jsx("span",{className:"text-muted-foreground",children:"Completed"})]}),C>0&&d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:C}),d.jsx("span",{className:"text-muted-foreground",children:"Failed"}),d.jsxs("span",{className:"text-muted-foreground",children:[A.toFixed(1),"%"]})]})]}),d.jsx(J8,{filter:e})]})})]})}const nM=({workPoolName:e})=>d.jsxs(Wt,{to:"/work-pools/work-pool/$workPoolName",params:{workPoolName:e},className:"flex items-center gap-1",children:[d.jsx(vt,{id:"Cpu",className:"size-4"}),e]}),aM={READY:ec,PAUSED:K1,NOT_READY:ec},rM={READY:"text-green-600",PAUSED:"text-muted-foreground",NOT_READY:"text-red-600"},iM=(e,n)=>{switch(e){case"READY":return"Work queue has at least one actively polling worker ready to execute work.";case"PAUSED":return"Work queue is paused. No work will be executed.";case"NOT_READY":return"Work queue does not have any actively polling workers ready to execute work."}},oM=e=>e.is_paused?"PAUSED":e.status?.toUpperCase()??"READY",sM=({queue:e,className:n})=>{const r=oM(e),o=iM(r),l=aM[r],u=rM[r],c=r==="READY"||r==="NOT_READY",h=d.jsx(l,{className:$("h-3 w-3",u,n),fill:c?"currentColor":"none"});return d.jsx(Jr,{children:d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:h}),d.jsx(Ua,{children:d.jsx("p",{children:o})})]})})},lM={READY:ec,PAUSED:K1,NOT_READY:ec},uM={READY:"text-green-600",PAUSED:"text-yellow-600",NOT_READY:"text-red-600"},cM=e=>{switch(e){case"READY":return"Work pool is ready and accepting work";case"PAUSED":return"Work pool is paused";case"NOT_READY":return"Work pool is not ready"}},dM=({status:e,showTooltip:n=!0,className:r})=>{const o=cM(e),l=lM[e],u=uM[e],c=e==="READY"||e==="NOT_READY",h=d.jsx(l,{className:$("h-3 w-3",u,r),fill:c?"currentColor":"none"});return n?d.jsx(Jr,{children:d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:h}),d.jsx(Ua,{children:d.jsx("p",{children:o})})]})}):h};function fM({interval:e=1e3}={}){const[n,r]=k.useState(()=>new Date);return k.useEffect(()=>{const o=setInterval(()=>{r(new Date)},e);return()=>clearInterval(o)},[e]),n}function hM(){return d.jsxs(Sa,{children:[d.jsx(Ci,{children:d.jsx(ke,{className:"h-6 w-32 mb-4"})}),d.jsx(Ba,{children:d.jsx("div",{className:"flex flex-col gap-4",children:[1,2].map(e=>d.jsxs("div",{className:"rounded-xl border border-border p-3 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ke,{className:"h-5 w-32"}),d.jsx(ke,{className:"h-5 w-5 rounded-full"})]}),d.jsx("div",{className:"grid grid-cols-4 gap-2",children:[1,2,3,4].map(n=>d.jsxs("div",{className:"flex flex-col items-center space-y-1",children:[d.jsx(ke,{className:"h-3 w-16"}),d.jsx(ke,{className:"h-4 w-12"})]},n))})]},e))})})]})}const mM=({filter:e})=>{const n=Je(bm({offset:0}));if(n.isError)return d.jsx(Em,{error:jo(n.error,"Failed to load work pools"),onRetry:()=>{n.refetch()},isRetrying:n.isRefetching});if(n.isLoading)return d.jsx(hM,{});const r=n.data??[],o=r.filter(u=>!u.is_paused),l=r&&o.length===0;return d.jsxs(Sa,{children:[d.jsx(Ci,{children:d.jsx(hc,{className:"mb-4",children:"Active Work Pools"})}),d.jsxs(Ba,{children:[d.jsx("div",{className:"flex flex-col gap-4",children:o.map(u=>d.jsx(pM,{workPool:u,filter:e},u.id))}),l&&d.jsxs("div",{className:"my-8 text-center text-sm text-muted-foreground",children:[d.jsx("p",{children:"No active work pools"}),d.jsx(Wt,{to:"/work-pools",className:"text-primary underline-offset-4 hover:underline",children:"View all work pools"})]})]})]})},pM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>n?.startDate&&n?.endDate?{sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",start_time:{after_:n.startDate,before_:n.endDate}}}:void 0,[n?.startDate,n?.endDate,e.id]);return d.jsxs("div",{className:"rounded-xl border border-border",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-4 border-b border-border p-3",children:[d.jsxs("div",{className:"flex flex-grow items-center gap-2",children:[d.jsx(nM,{workPoolName:e.name}),d.jsx(dM,{status:e.status??"READY"})]}),d.jsx(SM,{workPool:e,filter:n}),d.jsx(wM,{workPool:e,filter:r})]}),d.jsxs("dl",{className:"grid grid-cols-2 gap-y-2 p-3 sm:grid-cols-4",children:[d.jsx(Mu,{label:"Polled",children:d.jsx(vM,{workPool:e})}),d.jsx(Mu,{label:"Work Queues",children:d.jsx(gM,{workPool:e})}),d.jsx(Mu,{label:"Late runs",children:d.jsxs("div",{className:"inline-flex items-center gap-1",children:[d.jsx(bM,{workPool:e,filter:r}),d.jsx(xM,{workPool:e,filter:r})]})}),d.jsx(Mu,{label:"Completed",children:d.jsx(yM,{workPool:e,filter:r})})]})]})},Mu=({label:e,children:n})=>d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsx("dt",{className:"text-xs text-muted-foreground",children:e}),d.jsx("dd",{className:"mt-1",children:n})]}),vM=({workPool:e})=>{const n=fM({interval:1e3}),{data:r}=Je(xm(e.name));if(!r)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});const o=r.length>0?Ub(r.filter(u=>u.last_heartbeat_time).map(u=>new Date(u.last_heartbeat_time))):null;if(!o)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"N/A"});const l=FA(o,n);return d.jsx("span",{className:"text-sm",children:l})},pb=50,gM=({workPool:e})=>{const{data:n}=Je(nc(e.name));if(!n)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});const r=n.length>pb,o=r?n.slice(0,pb):n;return n.length===0?d.jsx("span",{className:"text-sm text-muted-foreground",children:"N/A"}):r?d.jsx("span",{className:"text-xs text-muted-foreground",children:"Too many to show here."}):d.jsx("div",{className:"flex min-h-[1.5rem] flex-wrap items-center gap-1",children:o.map(l=>d.jsx(sM,{queue:l},l.id))})},yM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>{const E=n?.flow_runs?.start_time;if(!n||!E?.after_||!E?.before_)return null;const C=new Date(E.after_),D=new Date(E.before_),_=$s(D,C);return{...n,sort:n.sort??"ID_DESC",flow_runs:{...n.flow_runs,operator:n.flow_runs?.operator??"and_",start_time:{after_:uh(C,_).toISOString(),before_:uh(D,_).toISOString()}}}},[n]),o=k.useMemo(()=>({...n,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}}),[n,e.id]),l=k.useMemo(()=>({...n,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}),[n,e.id]),u=k.useMemo(()=>r?{...r,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...r?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}}:null,[r,e.id]),c=k.useMemo(()=>r?{...r,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...r?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}:null,[r,e.id]),{data:h}=Je(pt(o,3e4)),{data:p}=Je(pt(l,3e4)),{data:g}=Je({...pt(u??o,3e4),enabled:u!==null}),{data:y}=Je({...pt(c??l,3e4),enabled:c!==null});if(h===void 0||p===void 0)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});if(!h||h===0)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"N/A"});const v=p/h,b=Math.round((v+Number.EPSILON)*1e4)/100;let w=null;if(g&&g>0&&y!==void 0){const E=y/g,C=Math.round((E+Number.EPSILON)*1e4)/100;C!==b&&(w={change:Math.abs(b-C).toFixed(1),direction:b>C?"+":"-"})}return d.jsxs("span",{className:"inline-flex items-center gap-1",children:[d.jsxs("span",{className:"text-sm",children:[b,"%"]}),w&&d.jsx(Jr,{children:d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:d.jsxs("span",{className:$("cursor-help whitespace-nowrap text-xs",w.direction==="+"?"text-green-600":"text-red-600"),children:[w.direction,w.change]})}),d.jsx(Ua,{children:d.jsxs("p",{children:[w.direction,w.change,"% change over time period"]})})]})})]})},bM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>({...n,work_pools:{operator:"and_",name:{any_:[e.name]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",name:{any_:["Late"]}}}}),[n,e.name]),{data:o}=Je(pt(r,3e4));if(o===void 0)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});const l=o??0;return d.jsx("span",{className:$("text-sm",l<1&&"text-muted-foreground"),children:l})},xM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>({...n,sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[e.id]}}}),[n,e.id]),{data:o}=Je(Dx(r,3e4));if(o===void 0||!o)return null;const l=ox(Math.round(o));return d.jsxs("span",{className:"whitespace-nowrap text-xs text-muted-foreground",children:["(",l," avg.)"]})},wM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>({...n,work_pools:{operator:"and_",name:{any_:[e.name]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}}),[n,e.name]),{data:o}=Je(pt(r,3e4));return d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:o!==void 0?o.toLocaleString():"—"}),d.jsx("span",{className:"text-muted-foreground",children:"total"})]})},SM=({workPool:e,filter:n})=>{const o=k.useMemo(()=>n?.startDate&&n?.endDate?{limit:24,sort:"START_TIME_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",start_time:{after_:n.startDate,before_:n.endDate}}}:void 0,[n?.startDate,n?.endDate,e.id]),{data:l}=Je({...mr(o??{sort:"ID_DESC",offset:0},3e4),enabled:!!o}),u=Rb({queries:(l??[]).map(y=>({queryKey:["flowRunEnrichment",y.id,y.deployment_id,y.flow_id],queryFn:async()=>{const v=await ne(),[b,w]=await Promise.all([y.deployment_id?v.GET("/deployments/{id}",{params:{path:{id:y.deployment_id}}}):Promise.resolve({data:null}),y.flow_id?v.GET("/flows/{id}",{params:{path:{id:y.flow_id}}}):Promise.resolve({data:null})]);return{deployment:b.data??null,flow:w.data??null}},staleTime:3e4}))}),c=u.every(y=>y.data);if(!n?.startDate||!n?.endDate)return d.jsx("div",{className:"h-8 w-48 shrink-0"});if(l&&l.length>0&&!c)return d.jsx("div",{className:"h-8 w-48 shrink-0"});const h=(l??[]).map((y,v)=>{const b=u[v]?.data;return{...y,deployment:b?.deployment??void 0,flow:b?.flow??void 0}}),p=new Date(n.startDate),g=new Date(n.endDate);return d.jsx("div",{className:"h-8 w-48 shrink-0 flex items-end",children:d.jsx(Tm,{chartId:`work-pool-${e.id}`,enrichedFlowRuns:h,startDate:p,endDate:g,barWidth:6,numberOfBars:24,className:"h-full w-full"})})};var vb=1,EM=.9,_M=.8,TM=.17,Jf=.1,eh=.999,DM=.9999,CM=.99,kM=/[\\\/_+.#"@\[\(\{&]/,NM=/[\\\/_+.#"@\[\(\{&]/g,AM=/[\s-]/,$x=/[\s-]/g;function Ah(e,n,r,o,l,u,c){if(u===n.length)return l===e.length?vb:CM;var h=`${l},${u}`;if(c[h]!==void 0)return c[h];for(var p=o.charAt(u),g=r.indexOf(p,l),y=0,v,b,w,E;g>=0;)v=Ah(e,n,r,o,g+1,u+1,c),v>y&&(g===l?v*=vb:kM.test(e.charAt(g-1))?(v*=_M,w=e.slice(l,g-1).match(NM),w&&l>0&&(v*=Math.pow(eh,w.length))):AM.test(e.charAt(g-1))?(v*=EM,E=e.slice(l,g-1).match($x),E&&l>0&&(v*=Math.pow(eh,E.length))):(v*=TM,l>0&&(v*=Math.pow(eh,g-l))),e.charAt(g)!==n.charAt(u)&&(v*=DM)),(v<Jf&&r.charAt(g-1)===o.charAt(u+1)||o.charAt(u+1)===o.charAt(u)&&r.charAt(g-1)!==o.charAt(u))&&(b=Ah(e,n,r,o,g+1,u+2,c),b*Jf>v&&(v=b*Jf)),v>y&&(y=v),g=r.indexOf(p,g+1);return c[h]=y,y}function gb(e){return e.toLowerCase().replace($x," ")}function RM(e,n,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Ah(e,n,gb(e),gb(n),0,0,{})}var Bs='[cmdk-group=""]',th='[cmdk-group-items=""]',jM='[cmdk-group-heading=""]',Qx='[cmdk-item=""]',yb=`${Qx}:not([aria-disabled="true"])`,Rh="cmdk-item-select",Eo="data-value",MM=(e,n,r)=>RM(e,n,r),Vx=k.createContext(void 0),cl=()=>k.useContext(Vx),Gx=k.createContext(void 0),Dm=()=>k.useContext(Gx),Yx=k.createContext(void 0),Kx=k.forwardRef((e,n)=>{let r=_o(()=>{var G,X;return{search:"",value:(X=(G=e.value)!=null?G:e.defaultValue)!=null?X:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=_o(()=>new Set),l=_o(()=>new Map),u=_o(()=>new Map),c=_o(()=>new Set),h=Wx(e),{label:p,children:g,value:y,onValueChange:v,filter:b,shouldFilter:w,loop:E,disablePointerSelection:C=!1,vimBindings:D=!0,..._}=e,A=Co(),N=Co(),M=Co(),O=k.useRef(null),I=$M();_i(()=>{if(y!==void 0){let G=y.trim();r.current.value=G,S.emit()}},[y]),_i(()=>{I(6,se)},[]);let S=k.useMemo(()=>({subscribe:G=>(c.current.add(G),()=>c.current.delete(G)),snapshot:()=>r.current,setState:(G,X,ue)=>{var re,ee,ve,ge;if(!Object.is(r.current[G],X)){if(r.current[G]=X,G==="search")K(),L(),I(1,B);else if(G==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ne=document.getElementById(M);Ne?Ne.focus():(re=document.getElementById(A))==null||re.focus()}if(I(7,()=>{var Ne;r.current.selectedItemId=(Ne=ae())==null?void 0:Ne.id,S.emit()}),ue||I(5,se),((ee=h.current)==null?void 0:ee.value)!==void 0){let Ne=X??"";(ge=(ve=h.current).onValueChange)==null||ge.call(ve,Ne);return}}S.emit()}},emit:()=>{c.current.forEach(G=>G())}}),[]),U=k.useMemo(()=>({value:(G,X,ue)=>{var re;X!==((re=u.current.get(G))==null?void 0:re.value)&&(u.current.set(G,{value:X,keywords:ue}),r.current.filtered.items.set(G,F(X,ue)),I(2,()=>{L(),S.emit()}))},item:(G,X)=>(o.current.add(G),X&&(l.current.has(X)?l.current.get(X).add(G):l.current.set(X,new Set([G]))),I(3,()=>{K(),L(),r.current.value||B(),S.emit()}),()=>{u.current.delete(G),o.current.delete(G),r.current.filtered.items.delete(G);let ue=ae();I(4,()=>{K(),ue?.getAttribute("id")===G&&B(),S.emit()})}),group:G=>(l.current.has(G)||l.current.set(G,new Set),()=>{u.current.delete(G),l.current.delete(G)}),filter:()=>h.current.shouldFilter,label:p||e["aria-label"],getDisablePointerSelection:()=>h.current.disablePointerSelection,listId:A,inputId:M,labelId:N,listInnerRef:O}),[]);function F(G,X){var ue,re;let ee=(re=(ue=h.current)==null?void 0:ue.filter)!=null?re:MM;return G?ee(G,r.current.search,X):0}function L(){if(!r.current.search||h.current.shouldFilter===!1)return;let G=r.current.filtered.items,X=[];r.current.filtered.groups.forEach(re=>{let ee=l.current.get(re),ve=0;ee.forEach(ge=>{let Ne=G.get(ge);ve=Math.max(Ne,ve)}),X.push([re,ve])});let ue=O.current;ce().sort((re,ee)=>{var ve,ge;let Ne=re.getAttribute("id"),ot=ee.getAttribute("id");return((ve=G.get(ot))!=null?ve:0)-((ge=G.get(Ne))!=null?ge:0)}).forEach(re=>{let ee=re.closest(th);ee?ee.appendChild(re.parentElement===ee?re:re.closest(`${th} > *`)):ue.appendChild(re.parentElement===ue?re:re.closest(`${th} > *`))}),X.sort((re,ee)=>ee[1]-re[1]).forEach(re=>{var ee;let ve=(ee=O.current)==null?void 0:ee.querySelector(`${Bs}[${Eo}="${encodeURIComponent(re[0])}"]`);ve?.parentElement.appendChild(ve)})}function B(){let G=ce().find(ue=>ue.getAttribute("aria-disabled")!=="true"),X=G?.getAttribute(Eo);S.setState("value",X||void 0)}function K(){var G,X,ue,re;if(!r.current.search||h.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let ee=0;for(let ve of o.current){let ge=(X=(G=u.current.get(ve))==null?void 0:G.value)!=null?X:"",Ne=(re=(ue=u.current.get(ve))==null?void 0:ue.keywords)!=null?re:[],ot=F(ge,Ne);r.current.filtered.items.set(ve,ot),ot>0&&ee++}for(let[ve,ge]of l.current)for(let Ne of ge)if(r.current.filtered.items.get(Ne)>0){r.current.filtered.groups.add(ve);break}r.current.filtered.count=ee}function se(){var G,X,ue;let re=ae();re&&(((G=re.parentElement)==null?void 0:G.firstChild)===re&&((ue=(X=re.closest(Bs))==null?void 0:X.querySelector(jM))==null||ue.scrollIntoView({block:"nearest"})),re.scrollIntoView({block:"nearest"}))}function ae(){var G;return(G=O.current)==null?void 0:G.querySelector(`${Qx}[aria-selected="true"]`)}function ce(){var G;return Array.from(((G=O.current)==null?void 0:G.querySelectorAll(yb))||[])}function j(G){let X=ce()[G];X&&S.setState("value",X.getAttribute(Eo))}function Y(G){var X;let ue=ae(),re=ce(),ee=re.findIndex(ge=>ge===ue),ve=re[ee+G];(X=h.current)!=null&&X.loop&&(ve=ee+G<0?re[re.length-1]:ee+G===re.length?re[0]:re[ee+G]),ve&&S.setState("value",ve.getAttribute(Eo))}function le(G){let X=ae(),ue=X?.closest(Bs),re;for(;ue&&!re;)ue=G>0?PM(ue,Bs):HM(ue,Bs),re=ue?.querySelector(yb);re?S.setState("value",re.getAttribute(Eo)):Y(G)}let de=()=>j(ce().length-1),fe=G=>{G.preventDefault(),G.metaKey?de():G.altKey?le(1):Y(1)},pe=G=>{G.preventDefault(),G.metaKey?j(0):G.altKey?le(-1):Y(-1)};return k.createElement(Zr.div,{ref:n,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:G=>{var X;(X=_.onKeyDown)==null||X.call(_,G);let ue=G.nativeEvent.isComposing||G.keyCode===229;if(!(G.defaultPrevented||ue))switch(G.key){case"n":case"j":{D&&G.ctrlKey&&fe(G);break}case"ArrowDown":{fe(G);break}case"p":case"k":{D&&G.ctrlKey&&pe(G);break}case"ArrowUp":{pe(G);break}case"Home":{G.preventDefault(),j(0);break}case"End":{G.preventDefault(),de();break}case"Enter":{G.preventDefault();let re=ae();if(re){let ee=new Event(Rh);re.dispatchEvent(ee)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:VM},p),mc(e,G=>k.createElement(Gx.Provider,{value:S},k.createElement(Vx.Provider,{value:U},G))))}),OM=k.forwardRef((e,n)=>{var r,o;let l=Co(),u=k.useRef(null),c=k.useContext(Yx),h=cl(),p=Wx(e),g=(o=(r=p.current)==null?void 0:r.forceMount)!=null?o:c?.forceMount;_i(()=>{if(!g)return h.item(l,c?.id)},[g]);let y=Xx(l,u,[e.value,e.children,u],e.keywords),v=Dm(),b=Wr(I=>I.value&&I.value===y.current),w=Wr(I=>g||h.filter()===!1?!0:I.search?I.filtered.items.get(l)>0:!0);k.useEffect(()=>{let I=u.current;if(!(!I||e.disabled))return I.addEventListener(Rh,E),()=>I.removeEventListener(Rh,E)},[w,e.onSelect,e.disabled]);function E(){var I,S;C(),(S=(I=p.current).onSelect)==null||S.call(I,y.current)}function C(){v.setState("value",y.current,!0)}if(!w)return null;let{disabled:D,value:_,onSelect:A,forceMount:N,keywords:M,...O}=e;return k.createElement(Zr.div,{ref:Ws(u,n),...O,id:l,"cmdk-item":"",role:"option","aria-disabled":!!D,"aria-selected":!!b,"data-disabled":!!D,"data-selected":!!b,onPointerMove:D||h.getDisablePointerSelection()?void 0:C,onClick:D?void 0:E},e.children)}),LM=k.forwardRef((e,n)=>{let{heading:r,children:o,forceMount:l,...u}=e,c=Co(),h=k.useRef(null),p=k.useRef(null),g=Co(),y=cl(),v=Wr(w=>l||y.filter()===!1?!0:w.search?w.filtered.groups.has(c):!0);_i(()=>y.group(c),[]),Xx(c,h,[e.value,e.heading,p]);let b=k.useMemo(()=>({id:c,forceMount:l}),[l]);return k.createElement(Zr.div,{ref:Ws(h,n),...u,"cmdk-group":"",role:"presentation",hidden:v?void 0:!0},r&&k.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:g},r),mc(e,w=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?g:void 0},k.createElement(Yx.Provider,{value:b},w))))}),IM=k.forwardRef((e,n)=>{let{alwaysRender:r,...o}=e,l=k.useRef(null),u=Wr(c=>!c.search);return!r&&!u?null:k.createElement(Zr.div,{ref:Ws(l,n),...o,"cmdk-separator":"",role:"separator"})}),zM=k.forwardRef((e,n)=>{let{onValueChange:r,...o}=e,l=e.value!=null,u=Dm(),c=Wr(g=>g.search),h=Wr(g=>g.selectedItemId),p=cl();return k.useEffect(()=>{e.value!=null&&u.setState("search",e.value)},[e.value]),k.createElement(Zr.input,{ref:n,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":h,id:p.inputId,type:"text",value:l?e.value:c,onChange:g=>{l||u.setState("search",g.target.value),r?.(g.target.value)}})}),FM=k.forwardRef((e,n)=>{let{children:r,label:o="Suggestions",...l}=e,u=k.useRef(null),c=k.useRef(null),h=Wr(g=>g.selectedItemId),p=cl();return k.useEffect(()=>{if(c.current&&u.current){let g=c.current,y=u.current,v,b=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let w=g.offsetHeight;y.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return b.observe(g),()=>{cancelAnimationFrame(v),b.unobserve(g)}}},[]),k.createElement(Zr.div,{ref:Ws(u,n),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":h,"aria-label":o,id:p.listId},mc(e,g=>k.createElement("div",{ref:Ws(c,p.listInnerRef),"cmdk-list-sizer":""},g)))}),UM=k.forwardRef((e,n)=>{let{open:r,onOpenChange:o,overlayClassName:l,contentClassName:u,container:c,...h}=e;return k.createElement(Ih,{open:r,onOpenChange:o},k.createElement(Uh,{container:c},k.createElement(qh,{"cmdk-overlay":"",className:l}),k.createElement(zh,{"aria-label":e.label,"cmdk-dialog":"",className:u},k.createElement(Kx,{ref:n,...h}))))}),qM=k.forwardRef((e,n)=>Wr(r=>r.filtered.count===0)?k.createElement(Zr.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),BM=k.forwardRef((e,n)=>{let{progress:r,children:o,label:l="Loading...",...u}=e;return k.createElement(Zr.div,{ref:n,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},mc(e,c=>k.createElement("div",{"aria-hidden":!0},c)))}),An=Object.assign(Kx,{List:FM,Item:OM,Input:zM,Group:LM,Separator:IM,Dialog:UM,Empty:qM,Loading:BM});function PM(e,n){let r=e.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function HM(e,n){let r=e.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function Wx(e){let n=k.useRef(e);return _i(()=>{n.current=e}),n}var _i=typeof window>"u"?k.useEffect:k.useLayoutEffect;function _o(e){let n=k.useRef();return n.current===void 0&&(n.current=e()),n}function Wr(e){let n=Dm(),r=()=>e(n.snapshot());return k.useSyncExternalStore(n.subscribe,r,r)}function Xx(e,n,r,o=[]){let l=k.useRef(),u=cl();return _i(()=>{var c;let h=(()=>{var g;for(let y of r){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(g=y.current.textContent)==null?void 0:g.trim():l.current}})(),p=o.map(g=>g.trim());u.value(e,h,p),(c=n.current)==null||c.setAttribute(Eo,h),l.current=h}),l}var $M=()=>{let[e,n]=k.useState(),r=_o(()=>new Map);return _i(()=>{r.current.forEach(o=>o()),r.current=new Map},[e]),(o,l)=>{r.current.set(o,l),n({})}};function QM(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function mc({asChild:e,children:n},r){return e&&k.isValidElement(n)?k.cloneElement(QM(n),{ref:n.ref},r(n.props.children)):r(n)}var VM={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Zx=k.forwardRef(({className:e,...n},r)=>d.jsx(An,{ref:r,className:$("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...n}));Zx.displayName=An.displayName;const Jx=k.forwardRef(({className:e,...n},r)=>d.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[d.jsx(Z1,{className:"mr-2 size-4 shrink-0 opacity-50"}),d.jsx(An.Input,{ref:r,className:$("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...n})]}));Jx.displayName=An.Input.displayName;const ew=k.forwardRef(({className:e,...n},r)=>d.jsx(An.List,{ref:r,className:$("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...n}));ew.displayName=An.List.displayName;const tw=k.forwardRef((e,n)=>d.jsx(An.Empty,{ref:n,className:"py-6 text-center text-sm",...e}));tw.displayName=An.Empty.displayName;const nw=k.forwardRef(({className:e,...n},r)=>d.jsx(An.Group,{ref:r,className:$("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...n}));nw.displayName=An.Group.displayName;const GM=k.forwardRef(({className:e,...n},r)=>d.jsx(An.Separator,{ref:r,className:$("-mx-1 h-px bg-border",e),...n}));GM.displayName=An.Separator.displayName;const aw=k.forwardRef(({className:e,...n},r)=>d.jsx(An.Item,{ref:r,className:$("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...n}));aw.displayName=An.Item.displayName;function Cm({...e}){return d.jsx(HE,{"data-slot":"popover",...e})}function km({...e}){return d.jsx($E,{"data-slot":"popover-trigger",...e})}function Nm({className:e,align:n="center",sideOffset:r=4,fullWidth:o=!1,...l}){return d.jsx(QE,{children:d.jsx(VE,{"data-slot":"popover-content",align:n,sideOffset:r,className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-hidden",o&&"w-[var(--radix-popover-trigger-width)] max-h-[var(--radix-popover-content-available-height)]",e),...l})})}function MI({...e}){return d.jsx(GE,{"data-slot":"popover-anchor",...e})}const Am=k.createContext(null),YM=({children:e})=>{const[n,r]=k.useState(!1);return d.jsx(Am.Provider,{value:{open:n,setOpen:r},children:d.jsx(Cm,{open:n,onOpenChange:r,children:e})})},KM=({"aria-label":e,selected:n=!1,id:r,children:o})=>{const l=k.use(Am);if(!l)throw new Error("'ComboboxTrigger' must be a child of `Combobox`");const{open:u}=l;return d.jsx(km,{asChild:!0,className:"w-full",children:d.jsxs(it,{"aria-label":e,"aria-expanded":u,"aria-haspopup":"listbox",variant:"outline",className:$("w-full justify-between bg-card dark:bg-background",n&&"text-muted-foreground"),id:r,children:[o,d.jsx(vt,{id:"ChevronsUpDown",className:"size-4 opacity-50"})]})})},WM=({children:e})=>d.jsx(Nm,{fullWidth:!0,children:d.jsx(Zx,{shouldFilter:!1,children:e})}),XM=({value:e,onValueChange:n,placeholder:r,onKeyDown:o})=>d.jsx(Jx,{value:e,onValueChange:n,placeholder:r,className:"h-9",onKeyDown:o}),ZM=({children:e})=>d.jsx(ew,{children:e}),JM=({children:e})=>d.jsx(tw,{children:e}),e6=({heading:e,children:n})=>d.jsx(nw,{heading:e,children:n}),Ou=({"aria-label":e,disabled:n=!1,onSelect:r,closeOnSelect:o=!0,selected:l=!1,value:u,children:c})=>{const h=k.use(Am);if(!h)throw new Error("'ComboboxCommandItem' must be a child of `Combobox`");const{setOpen:p}=h;return d.jsxs(aw,{disabled:n,"aria-label":e,value:u,onSelect:()=>{o&&p(!1),r&&u&&r(u)},children:[c,d.jsx(vt,{id:"Check",className:$("ml-auto",l?"opacity-100":"opacity-0")})]})};function rw({value:e=[],onChange:n,placeholder:r="All tags",id:o}){const[l,u]=k.useState(""),{data:c}=Je(Kr({page:1,limit:100,sort:"START_TIME_DESC"})),h=k.useMemo(()=>{const v=new Set;return(c?.results??[]).forEach(b=>{(b.tags??[]).forEach(w=>{v.add(w)})}),Array.from(v).sort((b,w)=>b.localeCompare(w))},[c?.results]),p=v=>{const w=e.includes(v)?e.filter(E=>E!==v):[...e,v];n?.(w)},g=k.useCallback(v=>{v&&(e.includes(v)||n?.([...e,v]))},[n,e]);k.useEffect(()=>{const v=l.trim();if(v.endsWith(",")){const b=v.replace(/,+$/,"").trim();b&&g(b),u("")}},[l,g]);const y=d.jsx("span",{className:"text-muted-foreground",children:e.length?"Edit tags":r});return d.jsx("div",{className:"w-full",children:d.jsxs(YM,{children:[d.jsx(KM,{"aria-label":"Flow run tags",id:o,selected:e.length===0,children:e.length>0?d.jsx("div",{className:"flex items-center gap-1 overflow-hidden",children:d.jsx(Sm,{tags:e,variant:"secondary",maxTagsDisplayed:3})}):y}),d.jsxs(WM,{children:[d.jsx(XM,{value:l,onValueChange:u,placeholder:"Search or enter new tag",onKeyDown:v=>{const b=l.trim();v.key==="Enter"&&b?(v.preventDefault(),g(b),u("")):v.key==="Backspace"&&!l&&e.length>0&&n?.(e.slice(0,-1))}}),d.jsxs(ZM,{children:[h.length>0?d.jsx(JM,{children:"No tags found"}):null,d.jsxs(e6,{children:[e.length>0&&d.jsxs("div",{children:[e.map(v=>d.jsxs(Ou,{value:`selected-${v}`,onSelect:()=>p(v),closeOnSelect:!1,children:[d.jsx("button",{type:"button","aria-label":`Remove ${v} tag`,className:"text-muted-foreground hover:text-foreground",onClick:b=>{b.preventDefault(),b.stopPropagation(),n?.(e.filter(w=>w!==v))},children:d.jsx(vt,{id:"X",className:"size-3"})}),d.jsx("span",{children:v})]},`selected-${v}`)),d.jsx(Ou,{value:"__clear__",onSelect:()=>n?.([]),closeOnSelect:!1,children:"Clear all tags"})]}),l.trim()&&!e.includes(l.trim())&&d.jsxs(Ou,{value:`__add__:${l.trim()}`,onSelect:()=>g(l.trim()),closeOnSelect:!1,children:['Add "',l.trim(),'"']}),h.filter(v=>!e.includes(v)).filter(v=>{const b=l.trim().toLowerCase();return b?v.toLowerCase().includes(b):!0}).map(v=>d.jsx(Ou,{value:v,selected:e.includes(v),onSelect:()=>p(v),closeOnSelect:!1,children:v},v))]})]})]})]})})}rw.displayName="FlowRunTagsSelect";function t6(){const e=new Date;return e.setMilliseconds(0),e}function iw(e){switch(e){case"second":return 1;case"minute":return Zs;case"hour":return Ro;case"day":return gr}}function jh(e){if(!e)return null;switch(e.type){case"range":{const n=$s(e.endDate,e.startDate);return{startDate:e.startDate,endDate:e.endDate,timeSpanInSeconds:n}}case"span":{const n=t6(),r=Xs(n,e.seconds),[o,l]=[n,r].sort((c,h)=>c.getTime()-h.getTime()),u=Math.abs(e.seconds);return{startDate:o,endDate:l,timeSpanInSeconds:u}}case"around":{const n=Math.abs(e.quantity*iw(e.unit)),r=uh(e.date,n),o=Xs(e.date,n),l=$s(o,r);return{startDate:r,endDate:o,timeSpanInSeconds:l}}case"period":{const n=j_(),r=M_(),o=$s(r,n);return{startDate:n,endDate:r,timeSpanInSeconds:o}}default:return null}}function n6(e,n,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(n).split(/\s/g).slice(2).join(" ")}const a6={},Ps={};function wi(e,n){try{const o=(a6[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(n).split("GMT")[1];return o in Ps?Ps[o]:bb(o,o.split(":"))}catch{if(e in Ps)return Ps[e];const r=e?.match(r6);return r?bb(e,r.slice(1)):NaN}}const r6=/([+-]\d\d):?(\d\d)?/;function bb(e,n){const r=+(n[0]||0),o=+(n[1]||0),l=+(n[2]||0)/60;return Ps[e]=r*60+o>0?r*60+o+l:r*60-o-l}class Oa extends Date{constructor(...n){super(),n.length>1&&typeof n[n.length-1]=="string"&&(this.timeZone=n.pop()),this.internal=new Date,isNaN(wi(this.timeZone,this))?this.setTime(NaN):n.length?typeof n[0]=="number"&&(n.length===1||n.length===2&&typeof n[1]!="number")?this.setTime(n[0]):typeof n[0]=="string"?this.setTime(+new Date(n[0])):n[0]instanceof Date?this.setTime(+n[0]):(this.setTime(+new Date(...n)),ow(this),Mh(this)):this.setTime(Date.now())}static tz(n,...r){return r.length?new Oa(...r,n):new Oa(Date.now(),n)}withTimeZone(n){return new Oa(+this,n)}getTimezoneOffset(){const n=-wi(this.timeZone,this);return n>0?Math.floor(n):Math.ceil(n)}setTime(n){return Date.prototype.setTime.apply(this,arguments),Mh(this),+this}[Symbol.for("constructDateFrom")](n){return new Oa(+new Date(n),this.timeZone)}}const xb=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!xb.test(e))return;const n=e.replace(xb,"$1UTC");Oa.prototype[n]&&(e.startsWith("get")?Oa.prototype[e]=function(){return this.internal[n]()}:(Oa.prototype[e]=function(){return Date.prototype[n].apply(this.internal,arguments),i6(this),+this},Oa.prototype[n]=function(){return Date.prototype[n].apply(this,arguments),Mh(this),+this}))});function Mh(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-wi(e.timeZone,e)*60))}function i6(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),ow(e)}function ow(e){const n=wi(e.timeZone,e),r=n>0?Math.floor(n):Math.ceil(n),o=new Date(+e);o.setUTCHours(o.getUTCHours()-1);const l=-new Date(+e).getTimezoneOffset(),u=-new Date(+o).getTimezoneOffset(),c=l-u,h=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();c&&h&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+c);const p=l-r;p&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const g=new Date(+e);g.setUTCSeconds(0);const y=l>0?g.getSeconds():(g.getSeconds()-60)%60,v=Math.round(-(wi(e.timeZone,e)*60))%60;(v||y)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+v),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+v+y));const b=wi(e.timeZone,e),w=b>0?Math.floor(b):Math.ceil(b),C=-new Date(+e).getTimezoneOffset()-w,D=w!==r,_=C-p;if(D&&_){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+_);const A=wi(e.timeZone,e),N=A>0?Math.floor(A):Math.ceil(A),M=w-N;M&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+M),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+M))}}class ln extends Oa{static tz(n,...r){return r.length?new ln(...r,n):new ln(Date.now(),n)}toISOString(){const[n,r,o]=this.tzComponents(),l=`${n}${r}:${o}`;return this.internal.toISOString().slice(0,-1)+l}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[n,r,o,l]=this.internal.toUTCString().split(" ");return`${n?.slice(0,-1)} ${o} ${r} ${l}`}toTimeString(){const n=this.internal.toUTCString().split(" ")[4],[r,o,l]=this.tzComponents();return`${n} GMT${r}${o}${l} (${n6(this.timeZone,this)})`}toLocaleString(n,r){return Date.prototype.toLocaleString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(n,r){return Date.prototype.toLocaleDateString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(n,r){return Date.prototype.toLocaleTimeString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const n=this.getTimezoneOffset(),r=n>0?"-":"+",o=String(Math.floor(Math.abs(n)/60)).padStart(2,"0"),l=String(Math.abs(n)%60).padStart(2,"0");return[r,o,l]}withTimeZone(n){return new ln(+this,n)}[Symbol.for("constructDateFrom")](n){return new ln(+new Date(n),this.timeZone)}}const wb=5,o6=4;function s6(e,n){const r=n.startOfMonth(e),o=r.getDay()>0?r.getDay():7,l=n.addDays(e,-o+1),u=n.addDays(l,wb*7-1);return n.getMonth(e)===n.getMonth(u)?wb:o6}function sw(e,n){const r=n.startOfMonth(e),o=r.getDay();return o===1?r:o===0?n.addDays(r,-6):n.addDays(r,-1*(o-1))}function l6(e,n){const r=sw(e,n),o=s6(e,n);return n.addDays(r,o*7-1)}const lw={...As,labels:{labelDayButton:(e,n,r,o)=>{let l;o&&typeof o.format=="function"?l=o.format.bind(o):l=(c,h)=>on(c,h,{locale:As,...r});let u=l(e,"PPPP");return n.today&&(u=`Today, ${u}`),n.selected&&(u=`${u}, selected`),u},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,n,r)=>{let o;return r&&typeof r.format=="function"?o=r.format.bind(r):o=(l,u)=>on(l,u,{locale:As,...n}),o(e,"LLLL yyyy")},labelGridcell:(e,n,r,o)=>{let l;o&&typeof o.format=="function"?l=o.format.bind(o):l=(c,h)=>on(c,h,{locale:As,...r});let u=l(e,"PPPP");return n?.today&&(u=`Today, ${u}`),u},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,n,r)=>{let o;return r&&typeof r.format=="function"?o=r.format.bind(r):o=(l,u)=>on(l,u,{locale:As,...n}),o(e,"cccc")}}};class $n{constructor(n,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?ln.tz(this.options.timeZone):new this.Date,this.newDate=(o,l,u)=>this.overrides?.newDate?this.overrides.newDate(o,l,u):this.options.timeZone?new ln(o,l,u,this.options.timeZone):new Date(o,l,u),this.addDays=(o,l)=>this.overrides?.addDays?this.overrides.addDays(o,l):ch(o,l),this.addMonths=(o,l)=>this.overrides?.addMonths?this.overrides.addMonths(o,l):O_(o,l),this.addWeeks=(o,l)=>this.overrides?.addWeeks?this.overrides.addWeeks(o,l):L_(o,l),this.addYears=(o,l)=>this.overrides?.addYears?this.overrides.addYears(o,l):I_(o,l),this.differenceInCalendarDays=(o,l)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(o,l):qb(o,l),this.differenceInCalendarMonths=(o,l)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(o,l):Bb(o,l),this.eachMonthOfInterval=o=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(o):z_(o),this.eachYearOfInterval=o=>{const l=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(o):F_(o),u=new Set(l.map(h=>this.getYear(h)));if(u.size===l.length)return l;const c=[];return u.forEach(h=>{c.push(new Date(h,0,1))}),c},this.endOfBroadcastWeek=o=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(o):l6(o,this),this.endOfISOWeek=o=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(o):U_(o),this.endOfMonth=o=>this.overrides?.endOfMonth?this.overrides.endOfMonth(o):q_(o),this.endOfWeek=(o,l)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(o,l):B_(o,this.options),this.endOfYear=o=>this.overrides?.endOfYear?this.overrides.endOfYear(o):P_(o),this.format=(o,l,u)=>{const c=this.overrides?.format?this.overrides.format(o,l,this.options):on(o,l,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(c):c},this.getISOWeek=o=>this.overrides?.getISOWeek?this.overrides.getISOWeek(o):Pb(o),this.getMonth=(o,l)=>this.overrides?.getMonth?this.overrides.getMonth(o,this.options):H_(o,this.options),this.getYear=(o,l)=>this.overrides?.getYear?this.overrides.getYear(o,this.options):$_(o,this.options),this.getWeek=(o,l)=>this.overrides?.getWeek?this.overrides.getWeek(o,this.options):Hb(o,this.options),this.isAfter=(o,l)=>this.overrides?.isAfter?this.overrides.isAfter(o,l):Hh(o,l),this.isBefore=(o,l)=>this.overrides?.isBefore?this.overrides.isBefore(o,l):ic(o,l),this.isDate=o=>this.overrides?.isDate?this.overrides.isDate(o):Q_(o),this.isSameDay=(o,l)=>this.overrides?.isSameDay?this.overrides.isSameDay(o,l):$b(o,l),this.isSameMonth=(o,l)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(o,l):V_(o,l),this.isSameYear=(o,l)=>this.overrides?.isSameYear?this.overrides.isSameYear(o,l):wo(o,l),this.max=o=>this.overrides?.max?this.overrides.max(o):Ub(o),this.min=o=>this.overrides?.min?this.overrides.min(o):G_(o),this.setMonth=(o,l)=>this.overrides?.setMonth?this.overrides.setMonth(o,l):Y_(o,l),this.setYear=(o,l)=>this.overrides?.setYear?this.overrides.setYear(o,l):K_(o,l),this.startOfBroadcastWeek=(o,l)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(o,this):sw(o,this),this.startOfDay=o=>this.overrides?.startOfDay?this.overrides.startOfDay(o):Qs(o),this.startOfISOWeek=o=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(o):W_(o),this.startOfMonth=o=>this.overrides?.startOfMonth?this.overrides.startOfMonth(o):X_(o),this.startOfWeek=(o,l)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(o,this.options):Z_(o,this.options),this.startOfYear=o=>this.overrides?.startOfYear?this.overrides.startOfYear(o):J_(o),this.options={locale:lw,...n},this.overrides=r}getDigitMap(){const{numerals:n="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:n}),o={};for(let l=0;l<10;l++)o[l.toString()]=r.format(l);return o}replaceDigits(n){const r=this.getDigitMap();return n.replace(/\d/g,o=>r[o]||o)}formatNumber(n){return this.replaceDigits(n.toString())}getMonthYearOrder(){const n=this.options.locale?.code;return n&&$n.yearFirstLocales.has(n)?"year-first":"month-first"}formatMonthYear(n){const{locale:r,timeZone:o,numerals:l}=this.options,u=r?.code;if(u&&$n.yearFirstLocales.has(u))try{return new Intl.DateTimeFormat(u,{month:"long",year:"numeric",timeZone:o,numberingSystem:l}).format(n)}catch{}const c=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(n,c)}}$n.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Pa=new $n;class uw{constructor(n,r,o=Pa){this.date=n,this.displayMonth=r,this.outside=!!(r&&!o.isSameMonth(n,r)),this.dateLib=o,this.isoDate=o.format(n,"yyyy-MM-dd"),this.displayMonthId=o.format(r,"yyyy-MM"),this.dateMonthId=o.format(n,"yyyy-MM")}isEqualTo(n){return this.dateLib.isSameDay(n.date,this.date)&&this.dateLib.isSameMonth(n.displayMonth,this.displayMonth)}}class u6{constructor(n,r){this.date=n,this.weeks=r}}class c6{constructor(n,r){this.days=r,this.weekNumber=n}}function d6(e){return V.createElement("button",{...e})}function f6(e){return V.createElement("span",{...e})}function h6(e){const{size:n=24,orientation:r="left",className:o}=e;return V.createElement("svg",{className:o,width:n,height:n,viewBox:"0 0 24 24"},r==="up"&&V.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),r==="down"&&V.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),r==="left"&&V.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),r==="right"&&V.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function m6(e){const{day:n,modifiers:r,...o}=e;return V.createElement("td",{...o})}function p6(e){const{day:n,modifiers:r,...o}=e,l=V.useRef(null);return V.useEffect(()=>{r.focused&&l.current?.focus()},[r.focused]),V.createElement("button",{ref:l,...o})}var Se;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Se||(Se={}));var kt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(kt||(kt={}));var ya;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(ya||(ya={}));var qn;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(qn||(qn={}));function v6(e){const{options:n,className:r,components:o,classNames:l,...u}=e,c=[l[Se.Dropdown],r].join(" "),h=n?.find(({value:p})=>p===u.value);return V.createElement("span",{"data-disabled":u.disabled,className:l[Se.DropdownRoot]},V.createElement(o.Select,{className:c,...u},n?.map(({value:p,label:g,disabled:y})=>V.createElement(o.Option,{key:p,value:p,disabled:y},g))),V.createElement("span",{className:l[Se.CaptionLabel],"aria-hidden":!0},h?.label,V.createElement(o.Chevron,{orientation:"down",size:18,className:l[Se.Chevron]})))}function g6(e){return V.createElement("div",{...e})}function y6(e){return V.createElement("div",{...e})}function b6(e){const{calendarMonth:n,displayIndex:r,...o}=e;return V.createElement("div",{...o},e.children)}function x6(e){const{calendarMonth:n,displayIndex:r,...o}=e;return V.createElement("div",{...o})}function w6(e){return V.createElement("table",{...e})}function S6(e){return V.createElement("div",{...e})}const cw=k.createContext(void 0);function dl(){const e=k.useContext(cw);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function E6(e){const{components:n}=dl();return V.createElement(n.Dropdown,{...e})}function _6(e){const{onPreviousClick:n,onNextClick:r,previousMonth:o,nextMonth:l,...u}=e,{components:c,classNames:h,labels:{labelPrevious:p,labelNext:g}}=dl(),y=k.useCallback(b=>{l&&r?.(b)},[l,r]),v=k.useCallback(b=>{o&&n?.(b)},[o,n]);return V.createElement("nav",{...u},V.createElement(c.PreviousMonthButton,{type:"button",className:h[Se.PreviousMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":p(o),onClick:v},V.createElement(c.Chevron,{disabled:o?void 0:!0,className:h[Se.Chevron],orientation:"left"})),V.createElement(c.NextMonthButton,{type:"button",className:h[Se.NextMonthButton],tabIndex:l?void 0:-1,"aria-disabled":l?void 0:!0,"aria-label":g(l),onClick:y},V.createElement(c.Chevron,{disabled:l?void 0:!0,orientation:"right",className:h[Se.Chevron]})))}function T6(e){const{components:n}=dl();return V.createElement(n.Button,{...e})}function D6(e){return V.createElement("option",{...e})}function C6(e){const{components:n}=dl();return V.createElement(n.Button,{...e})}function k6(e){const{rootRef:n,...r}=e;return V.createElement("div",{...r,ref:n})}function N6(e){return V.createElement("select",{...e})}function A6(e){const{week:n,...r}=e;return V.createElement("tr",{...r})}function R6(e){return V.createElement("th",{...e})}function j6(e){return V.createElement("thead",{"aria-hidden":!0},V.createElement("tr",{...e}))}function M6(e){const{week:n,...r}=e;return V.createElement("th",{...r})}function O6(e){return V.createElement("th",{...e})}function L6(e){return V.createElement("tbody",{...e})}function I6(e){const{components:n}=dl();return V.createElement(n.Dropdown,{...e})}const z6=Object.freeze(Object.defineProperty({__proto__:null,Button:d6,CaptionLabel:f6,Chevron:h6,Day:m6,DayButton:p6,Dropdown:v6,DropdownNav:g6,Footer:y6,Month:b6,MonthCaption:x6,MonthGrid:w6,Months:S6,MonthsDropdown:E6,Nav:_6,NextMonthButton:T6,Option:D6,PreviousMonthButton:C6,Root:k6,Select:N6,Week:A6,WeekNumber:M6,WeekNumberHeader:O6,Weekday:R6,Weekdays:j6,Weeks:L6,YearsDropdown:I6},Symbol.toStringTag,{value:"Module"}));function pr(e,n,r=!1,o=Pa){let{from:l,to:u}=e;const{differenceInCalendarDays:c,isSameDay:h}=o;return l&&u?(c(u,l)<0&&([l,u]=[u,l]),c(n,l)>=(r?1:0)&&c(u,n)>=(r?1:0)):!r&&u?h(u,n):!r&&l?h(l,n):!1}function Rm(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function pc(e){return!!(e&&typeof e=="object"&&"from"in e)}function jm(e){return!!(e&&typeof e=="object"&&"after"in e)}function Mm(e){return!!(e&&typeof e=="object"&&"before"in e)}function dw(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function fw(e,n){return Array.isArray(e)&&e.every(n.isDate)}function vr(e,n,r=Pa){const o=Array.isArray(n)?n:[n],{isSameDay:l,differenceInCalendarDays:u,isAfter:c}=r;return o.some(h=>{if(typeof h=="boolean")return h;if(r.isDate(h))return l(e,h);if(fw(h,r))return h.some(p=>l(e,p));if(pc(h))return pr(h,e,!1,r);if(dw(h))return Array.isArray(h.dayOfWeek)?h.dayOfWeek.includes(e.getDay()):h.dayOfWeek===e.getDay();if(Rm(h)){const p=u(h.before,e),g=u(h.after,e),y=p>0,v=g<0;return c(h.before,h.after)?v&&y:y||v}return jm(h)?u(e,h.after)>0:Mm(h)?u(h.before,e)>0:typeof h=="function"?h(e):!1})}function F6(e,n,r,o,l){const{disabled:u,hidden:c,modifiers:h,showOutsideDays:p,broadcastCalendar:g,today:y=l.today()}=n,{isSameDay:v,isSameMonth:b,startOfMonth:w,isBefore:E,endOfMonth:C,isAfter:D}=l,_=r&&w(r),A=o&&C(o),N={[kt.focused]:[],[kt.outside]:[],[kt.disabled]:[],[kt.hidden]:[],[kt.today]:[]},M={};for(const O of e){const{date:I,displayMonth:S}=O,U=!!(S&&!b(I,S)),F=!!(_&&E(I,_)),L=!!(A&&D(I,A)),B=!!(u&&vr(I,u,l)),K=!!(c&&vr(I,c,l))||F||L||!g&&!p&&U||g&&p===!1&&U,se=v(I,y);U&&N.outside.push(O),B&&N.disabled.push(O),K&&N.hidden.push(O),se&&N.today.push(O),h&&Object.keys(h).forEach(ae=>{const ce=h?.[ae];ce&&vr(I,ce,l)&&(M[ae]?M[ae].push(O):M[ae]=[O])})}return O=>{const I={[kt.focused]:!1,[kt.disabled]:!1,[kt.hidden]:!1,[kt.outside]:!1,[kt.today]:!1},S={};for(const U in N){const F=N[U];I[U]=F.some(L=>L===O)}for(const U in M)S[U]=M[U].some(F=>F===O);return{...I,...S}}}function U6(e,n,r={}){return Object.entries(e).filter(([,l])=>l===!0).reduce((l,[u])=>(r[u]?l.push(r[u]):n[kt[u]]?l.push(n[kt[u]]):n[ya[u]]&&l.push(n[ya[u]]),l),[n[Se.Day]])}function q6(e){return{...z6,...e}}function B6(e){const n={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([r,o])=>{r.startsWith("data-")&&(n[r]=o)}),n}function Om(){const e={};for(const n in Se)e[Se[n]]=`rdp-${Se[n]}`;for(const n in kt)e[kt[n]]=`rdp-${kt[n]}`;for(const n in ya)e[ya[n]]=`rdp-${ya[n]}`;for(const n in qn)e[qn[n]]=`rdp-${qn[n]}`;return e}function hw(e,n,r){return(r??new $n(n)).formatMonthYear(e)}const P6=hw;function H6(e,n,r){return(r??new $n(n)).format(e,"d")}function $6(e,n=Pa){return n.format(e,"LLLL")}function Q6(e,n,r){return(r??new $n(n)).format(e,"cccccc")}function V6(e,n=Pa){return e<10?n.formatNumber(`0${e.toLocaleString()}`):n.formatNumber(`${e.toLocaleString()}`)}function G6(){return""}function mw(e,n=Pa){return n.format(e,"yyyy")}const Y6=mw,K6=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:hw,formatDay:H6,formatMonthCaption:P6,formatMonthDropdown:$6,formatWeekNumber:V6,formatWeekNumberHeader:G6,formatWeekdayName:Q6,formatYearCaption:Y6,formatYearDropdown:mw},Symbol.toStringTag,{value:"Module"}));function W6(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...K6,...e}}function Lm(e,n,r,o){let l=(o??new $n(r)).format(e,"PPPP");return n.today&&(l=`Today, ${l}`),n.selected&&(l=`${l}, selected`),l}const X6=Lm;function Im(e,n,r){return(r??new $n(n)).formatMonthYear(e)}const Z6=Im;function pw(e,n,r,o){let l=(o??new $n(r)).format(e,"PPPP");return n?.today&&(l=`Today, ${l}`),l}function vw(e){return"Choose the Month"}function gw(){return""}const J6="Go to the Next Month";function yw(e,n){return J6}function bw(e){return"Go to the Previous Month"}function xw(e,n,r){return(r??new $n(n)).format(e,"cccc")}function ww(e,n){return`Week ${e}`}function Sw(e){return"Week Number"}function Ew(e){return"Choose the Year"}const eO=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Z6,labelDay:X6,labelDayButton:Lm,labelGrid:Im,labelGridcell:pw,labelMonthDropdown:vw,labelNav:gw,labelNext:yw,labelPrevious:bw,labelWeekNumber:ww,labelWeekNumberHeader:Sw,labelWeekday:xw,labelYearDropdown:Ew},Symbol.toStringTag,{value:"Module"})),ma=(e,n,r)=>n||(r?typeof r=="function"?r:(...o)=>r:e);function tO(e,n){const r=n.locale?.labels??{};return{...eO,...e??{},labelDayButton:ma(Lm,e?.labelDayButton,r.labelDayButton),labelMonthDropdown:ma(vw,e?.labelMonthDropdown,r.labelMonthDropdown),labelNext:ma(yw,e?.labelNext,r.labelNext),labelPrevious:ma(bw,e?.labelPrevious,r.labelPrevious),labelWeekNumber:ma(ww,e?.labelWeekNumber,r.labelWeekNumber),labelYearDropdown:ma(Ew,e?.labelYearDropdown,r.labelYearDropdown),labelGrid:ma(Im,e?.labelGrid,r.labelGrid),labelGridcell:ma(pw,e?.labelGridcell,r.labelGridcell),labelNav:ma(gw,e?.labelNav,r.labelNav),labelWeekNumberHeader:ma(Sw,e?.labelWeekNumberHeader,r.labelWeekNumberHeader),labelWeekday:ma(xw,e?.labelWeekday,r.labelWeekday)}}function nO(e,n,r,o,l){const{startOfMonth:u,startOfYear:c,endOfYear:h,eachMonthOfInterval:p,getMonth:g}=l;return p({start:c(e),end:h(e)}).map(b=>{const w=o.formatMonthDropdown(b,l),E=g(b),C=n&&b<u(n)||r&&b>u(r)||!1;return{value:E,label:w,disabled:C}})}function aO(e,n={},r={}){let o={...n?.[Se.Day]};return Object.entries(e).filter(([,l])=>l===!0).forEach(([l])=>{o={...o,...r?.[l]}}),o}function rO(e,n,r,o){const l=o??e.today(),u=r?e.startOfBroadcastWeek(l,e):n?e.startOfISOWeek(l):e.startOfWeek(l),c=[];for(let h=0;h<7;h++){const p=e.addDays(u,h);c.push(p)}return c}function iO(e,n,r,o,l=!1){if(!e||!n)return;const{startOfYear:u,endOfYear:c,eachYearOfInterval:h,getYear:p}=o,g=u(e),y=c(n),v=h({start:g,end:y});return l&&v.reverse(),v.map(b=>{const w=r.formatYearDropdown(b,o);return{value:p(b),label:w,disabled:!1}})}function oO(e,n={}){const{weekStartsOn:r,locale:o}=n,l=r??o?.options?.weekStartsOn??0,u=h=>{const p=typeof h=="number"||typeof h=="string"?new Date(h):h;return new ln(p.getFullYear(),p.getMonth(),p.getDate(),12,0,0,e)},c=h=>{const p=u(h);return new Date(p.getFullYear(),p.getMonth(),p.getDate(),0,0,0,0)};return{today:()=>u(ln.tz(e)),newDate:(h,p,g)=>new ln(h,p,g,12,0,0,e),startOfDay:h=>u(h),startOfWeek:(h,p)=>{const g=u(h),y=p?.weekStartsOn??l,v=(g.getDay()-y+7)%7;return g.setDate(g.getDate()-v),g},startOfISOWeek:h=>{const p=u(h),g=(p.getDay()-1+7)%7;return p.setDate(p.getDate()-g),p},startOfMonth:h=>{const p=u(h);return p.setDate(1),p},startOfYear:h=>{const p=u(h);return p.setMonth(0,1),p},endOfWeek:(h,p)=>{const g=u(h),b=(((p?.weekStartsOn??l)+6)%7-g.getDay()+7)%7;return g.setDate(g.getDate()+b),g},endOfISOWeek:h=>{const p=u(h),g=(7-p.getDay())%7;return p.setDate(p.getDate()+g),p},endOfMonth:h=>{const p=u(h);return p.setMonth(p.getMonth()+1,0),p},endOfYear:h=>{const p=u(h);return p.setMonth(11,31),p},eachMonthOfInterval:h=>{const p=u(h.start),g=u(h.end),y=[],v=new ln(p.getFullYear(),p.getMonth(),1,12,0,0,e),b=g.getFullYear()*12+g.getMonth();for(;v.getFullYear()*12+v.getMonth()<=b;)y.push(new ln(v,e)),v.setMonth(v.getMonth()+1,1);return y},addDays:(h,p)=>{const g=u(h);return g.setDate(g.getDate()+p),g},addWeeks:(h,p)=>{const g=u(h);return g.setDate(g.getDate()+p*7),g},addMonths:(h,p)=>{const g=u(h);return g.setMonth(g.getMonth()+p),g},addYears:(h,p)=>{const g=u(h);return g.setFullYear(g.getFullYear()+p),g},eachYearOfInterval:h=>{const p=u(h.start),g=u(h.end),y=[],v=new ln(p.getFullYear(),0,1,12,0,0,e);for(;v.getFullYear()<=g.getFullYear();)y.push(new ln(v,e)),v.setFullYear(v.getFullYear()+1,0,1);return y},getWeek:(h,p)=>{const g=c(h);return Hb(g,{weekStartsOn:p?.weekStartsOn??l,firstWeekContainsDate:p?.firstWeekContainsDate??o?.options?.firstWeekContainsDate??1})},getISOWeek:h=>{const p=c(h);return Pb(p)},differenceInCalendarDays:(h,p)=>{const g=c(h),y=c(p);return qb(g,y)},differenceInCalendarMonths:(h,p)=>{const g=c(h),y=c(p);return Bb(g,y)}}}const fl=e=>e instanceof HTMLElement?e:null,nh=e=>[...e.querySelectorAll("[data-animated-month]")??[]],sO=e=>fl(e.querySelector("[data-animated-month]")),ah=e=>fl(e.querySelector("[data-animated-caption]")),rh=e=>fl(e.querySelector("[data-animated-weeks]")),lO=e=>fl(e.querySelector("[data-animated-nav]")),uO=e=>fl(e.querySelector("[data-animated-weekdays]"));function cO(e,n,{classNames:r,months:o,focused:l,dateLib:u}){const c=k.useRef(null),h=k.useRef(o),p=k.useRef(!1);k.useLayoutEffect(()=>{const g=h.current;if(h.current=o,!n||!e.current||!(e.current instanceof HTMLElement)||o.length===0||g.length===0||o.length!==g.length)return;const y=u.isSameMonth(o[0].date,g[0].date),v=u.isAfter(o[0].date,g[0].date),b=v?r[qn.caption_after_enter]:r[qn.caption_before_enter],w=v?r[qn.weeks_after_enter]:r[qn.weeks_before_enter],E=c.current,C=e.current.cloneNode(!0);if(C instanceof HTMLElement?(nh(C).forEach(N=>{if(!(N instanceof HTMLElement))return;const M=sO(N);M&&N.contains(M)&&N.removeChild(M);const O=ah(N);O&&O.classList.remove(b);const I=rh(N);I&&I.classList.remove(w)}),c.current=C):c.current=null,p.current||y||l)return;const D=E instanceof HTMLElement?nh(E):[],_=nh(e.current);if(_?.every(A=>A instanceof HTMLElement)&&D&&D.every(A=>A instanceof HTMLElement)){p.current=!0,e.current.style.isolation="isolate";const A=lO(e.current);A&&(A.style.zIndex="1"),_.forEach((N,M)=>{const O=D[M];if(!O)return;N.style.position="relative",N.style.overflow="hidden";const I=ah(N);I&&I.classList.add(b);const S=rh(N);S&&S.classList.add(w);const U=()=>{p.current=!1,e.current&&(e.current.style.isolation=""),A&&(A.style.zIndex=""),I&&I.classList.remove(b),S&&S.classList.remove(w),N.style.position="",N.style.overflow="",N.contains(O)&&N.removeChild(O)};O.style.pointerEvents="none",O.style.position="absolute",O.style.overflow="hidden",O.setAttribute("aria-hidden","true");const F=uO(O);F&&(F.style.opacity="0");const L=ah(O);L&&(L.classList.add(v?r[qn.caption_before_exit]:r[qn.caption_after_exit]),L.addEventListener("animationend",U));const B=rh(O);B&&B.classList.add(v?r[qn.weeks_before_exit]:r[qn.weeks_after_exit]),N.insertBefore(O,N.firstChild)})}})}function dO(e,n,r,o){const l=e[0],u=e[e.length-1],{ISOWeek:c,fixedWeeks:h,broadcastCalendar:p}=r??{},{addDays:g,differenceInCalendarDays:y,differenceInCalendarMonths:v,endOfBroadcastWeek:b,endOfISOWeek:w,endOfMonth:E,endOfWeek:C,isAfter:D,startOfBroadcastWeek:_,startOfISOWeek:A,startOfWeek:N}=o,M=p?_(l,o):c?A(l):N(l),O=p?b(u):c?w(E(u)):C(E(u)),I=n&&(p?b(n):c?w(n):C(n)),S=I&&D(O,I)?I:O,U=y(S,M),F=v(u,l)+1,L=[];for(let se=0;se<=U;se++){const ae=g(M,se);L.push(ae)}const K=(p?35:42)*F;if(h&&L.length<K){const se=K-L.length;for(let ae=0;ae<se;ae++){const ce=g(L[L.length-1],1);L.push(ce)}}return L}function fO(e){const n=[];return e.reduce((r,o)=>{const l=o.weeks.reduce((u,c)=>u.concat(c.days.slice()),n.slice());return r.concat(l.slice())},n.slice())}function hO(e,n,r,o){const{numberOfMonths:l=1}=r,u=[];for(let c=0;c<l;c++){const h=o.addMonths(e,c);if(n&&h>n)break;u.push(h)}return u}function Sb(e,n,r,o){const{month:l,defaultMonth:u,today:c=o.today(),numberOfMonths:h=1}=e;let p=l||u||c;const{differenceInCalendarMonths:g,addMonths:y,startOfMonth:v}=o;if(r&&g(r,p)<h-1){const b=-1*(h-1);p=y(r,b)}return n&&g(p,n)<0&&(p=n),v(p)}function mO(e,n,r,o){const{addDays:l,endOfBroadcastWeek:u,endOfISOWeek:c,endOfMonth:h,endOfWeek:p,getISOWeek:g,getWeek:y,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:w}=o,E=e.reduce((C,D)=>{const _=r.broadcastCalendar?v(D,o):r.ISOWeek?b(D):w(D),A=r.broadcastCalendar?u(D):r.ISOWeek?c(h(D)):p(h(D)),N=n.filter(S=>S>=_&&S<=A),M=r.broadcastCalendar?35:42;if(r.fixedWeeks&&N.length<M){const S=n.filter(U=>{const F=M-N.length;return U>A&&U<=l(A,F)});N.push(...S)}const O=N.reduce((S,U)=>{const F=r.ISOWeek?g(U):y(U),L=S.find(K=>K.weekNumber===F),B=new uw(U,D,o);return L?L.days.push(B):S.push(new c6(F,[B])),S},[]),I=new u6(D,O);return C.push(I),C},[]);return r.reverseMonths?E.reverse():E}function pO(e,n){let{startMonth:r,endMonth:o}=e;const{startOfYear:l,startOfDay:u,startOfMonth:c,endOfMonth:h,addYears:p,endOfYear:g,newDate:y,today:v}=n,{fromYear:b,toYear:w,fromMonth:E,toMonth:C}=e;!r&&E&&(r=E),!r&&b&&(r=n.newDate(b,0,1)),!o&&C&&(o=C),!o&&w&&(o=y(w,11,31));const D=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return r?r=c(r):b?r=y(b,0,1):!r&&D&&(r=l(p(e.today??v(),-100))),o?o=h(o):w?o=y(w,11,31):!o&&D&&(o=g(e.today??v())),[r&&u(r),o&&u(o)]}function vO(e,n,r,o){if(r.disableNavigation)return;const{pagedNavigation:l,numberOfMonths:u=1}=r,{startOfMonth:c,addMonths:h,differenceInCalendarMonths:p}=o,g=l?u:1,y=c(e);if(!n)return h(y,g);if(!(p(n,e)<u))return h(y,g)}function gO(e,n,r,o){if(r.disableNavigation)return;const{pagedNavigation:l,numberOfMonths:u}=r,{startOfMonth:c,addMonths:h,differenceInCalendarMonths:p}=o,g=l?u??1:1,y=c(e);if(!n)return h(y,-g);if(!(p(y,n)<=0))return h(y,-g)}function yO(e){const n=[];return e.reduce((r,o)=>r.concat(o.weeks.slice()),n.slice())}function vc(e,n){const[r,o]=k.useState(e);return[n===void 0?r:n,o]}function bO(e,n){const[r,o]=pO(e,n),{startOfMonth:l,endOfMonth:u}=n,c=Sb(e,r,o,n),[h,p]=vc(c,e.month?c:void 0);k.useEffect(()=>{const M=Sb(e,r,o,n);p(M)},[e.timeZone]);const{months:g,weeks:y,days:v,previousMonth:b,nextMonth:w}=k.useMemo(()=>{const M=hO(h,o,{numberOfMonths:e.numberOfMonths},n),O=dO(M,e.endMonth?u(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},n),I=mO(M,O,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},n),S=yO(I),U=fO(I),F=gO(h,r,e,n),L=vO(h,o,e,n);return{months:I,weeks:S,days:U,previousMonth:F,nextMonth:L}},[n,h.getTime(),o?.getTime(),r?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:E,onMonthChange:C}=e,D=M=>y.some(O=>O.days.some(I=>I.isEqualTo(M))),_=M=>{if(E)return;let O=l(M);r&&O<l(r)&&(O=l(r)),o&&O>l(o)&&(O=l(o)),p(O),C?.(O)};return{months:g,weeks:y,days:v,navStart:r,navEnd:o,previousMonth:b,nextMonth:w,goToMonth:_,goToDay:M=>{D(M)||_(M.date)}}}var ja;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ja||(ja={}));function Eb(e){return!e[kt.disabled]&&!e[kt.hidden]&&!e[kt.outside]}function xO(e,n,r,o){let l,u=-1;for(const c of e){const h=n(c);Eb(h)&&(h[kt.focused]&&u<ja.FocusedModifier?(l=c,u=ja.FocusedModifier):o?.isEqualTo(c)&&u<ja.LastFocused?(l=c,u=ja.LastFocused):r(c.date)&&u<ja.Selected?(l=c,u=ja.Selected):h[kt.today]&&u<ja.Today&&(l=c,u=ja.Today))}return l||(l=e.find(c=>Eb(n(c)))),l}function wO(e,n,r,o,l,u,c){const{ISOWeek:h,broadcastCalendar:p}=u,{addDays:g,addMonths:y,addWeeks:v,addYears:b,endOfBroadcastWeek:w,endOfISOWeek:E,endOfWeek:C,max:D,min:_,startOfBroadcastWeek:A,startOfISOWeek:N,startOfWeek:M}=c;let I={day:g,week:v,month:y,year:b,startOfWeek:S=>p?A(S,c):h?N(S):M(S),endOfWeek:S=>p?w(S):h?E(S):C(S)}[e](r,n==="after"?1:-1);return n==="before"&&o?I=D([o,I]):n==="after"&&l&&(I=_([l,I])),I}function _w(e,n,r,o,l,u,c,h=0){if(h>365)return;const p=wO(e,n,r.date,o,l,u,c),g=!!(u.disabled&&vr(p,u.disabled,c)),y=!!(u.hidden&&vr(p,u.hidden,c)),v=p,b=new uw(p,v,c);return!g&&!y?b:_w(e,n,b,o,l,u,c,h+1)}function SO(e,n,r,o,l){const{autoFocus:u}=e,[c,h]=k.useState(),p=xO(n.days,r,o||(()=>!1),c),[g,y]=k.useState(u?p:void 0);return{isFocusTarget:C=>!!p?.isEqualTo(C),setFocused:y,focused:g,blur:()=>{h(g),y(void 0)},moveFocus:(C,D)=>{if(!g)return;const _=_w(C,D,g,n.navStart,n.navEnd,e,l);_&&(e.disableNavigation&&!n.days.some(N=>N.isEqualTo(_))||(n.goToDay(_),y(_)))}}}function EO(e,n){const{selected:r,required:o,onSelect:l}=e,[u,c]=vc(r,l?r:void 0),h=l?r:u,{isSameDay:p}=n,g=w=>h?.some(E=>p(E,w))??!1,{min:y,max:v}=e;return{selected:h,select:(w,E,C)=>{let D=[...h??[]];if(g(w)){if(h?.length===y||o&&h?.length===1)return;D=h?.filter(_=>!p(_,w))}else h?.length===v?D=[w]:D=[...D,w];return l||c(D),l?.(D,w,E,C),D},isSelected:g}}function _O(e,n,r=0,o=0,l=!1,u=Pa){const{from:c,to:h}=n||{},{isSameDay:p,isAfter:g,isBefore:y}=u;let v;if(!c&&!h)v={from:e,to:r>0?void 0:e};else if(c&&!h)p(c,e)?r===0?v={from:c,to:e}:l?v={from:c,to:void 0}:v=void 0:y(e,c)?v={from:e,to:c}:v={from:c,to:e};else if(c&&h)if(p(c,e)&&p(h,e))l?v={from:c,to:h}:v=void 0;else if(p(c,e))v={from:c,to:r>0?void 0:e};else if(p(h,e))v={from:e,to:r>0?void 0:e};else if(y(e,c))v={from:e,to:h};else if(g(e,c))v={from:c,to:e};else if(g(e,h))v={from:c,to:e};else throw new Error("Invalid range");if(v?.from&&v?.to){const b=u.differenceInCalendarDays(v.to,v.from);o>0&&b>o?v={from:e,to:void 0}:r>1&&b<r&&(v={from:e,to:void 0})}return v}function TO(e,n,r=Pa){const o=Array.isArray(n)?n:[n];let l=e.from;const u=r.differenceInCalendarDays(e.to,e.from),c=Math.min(u,6);for(let h=0;h<=c;h++){if(o.includes(l.getDay()))return!0;l=r.addDays(l,1)}return!1}function _b(e,n,r=Pa){return pr(e,n.from,!1,r)||pr(e,n.to,!1,r)||pr(n,e.from,!1,r)||pr(n,e.to,!1,r)}function DO(e,n,r=Pa){const o=Array.isArray(n)?n:[n];if(o.filter(h=>typeof h!="function").some(h=>typeof h=="boolean"?h:r.isDate(h)?pr(e,h,!1,r):fw(h,r)?h.some(p=>pr(e,p,!1,r)):pc(h)?h.from&&h.to?_b(e,{from:h.from,to:h.to},r):!1:dw(h)?TO(e,h.dayOfWeek,r):Rm(h)?r.isAfter(h.before,h.after)?_b(e,{from:r.addDays(h.after,1),to:r.addDays(h.before,-1)},r):vr(e.from,h,r)||vr(e.to,h,r):jm(h)||Mm(h)?vr(e.from,h,r)||vr(e.to,h,r):!1))return!0;const c=o.filter(h=>typeof h=="function");if(c.length){let h=e.from;const p=r.differenceInCalendarDays(e.to,e.from);for(let g=0;g<=p;g++){if(c.some(y=>y(h)))return!0;h=r.addDays(h,1)}}return!1}function CO(e,n){const{disabled:r,excludeDisabled:o,selected:l,required:u,onSelect:c}=e,[h,p]=vc(l,c?l:void 0),g=c?l:h;return{selected:g,select:(b,w,E)=>{const{min:C,max:D}=e,_=b?_O(b,g,C,D,u,n):void 0;return o&&r&&_?.from&&_.to&&DO({from:_.from,to:_.to},r,n)&&(_.from=b,_.to=void 0),c||p(_),c?.(_,b,w,E),_},isSelected:b=>g&&pr(g,b,!1,n)}}function kO(e,n){const{selected:r,required:o,onSelect:l}=e,[u,c]=vc(r,l?r:void 0),h=l?r:u,{isSameDay:p}=n;return{selected:h,select:(v,b,w)=>{let E=v;return!o&&h&&h&&p(v,h)&&(E=void 0),l||c(E),l?.(E,v,b,w),E},isSelected:v=>h?p(h,v):!1}}function NO(e,n){const r=kO(e,n),o=EO(e,n),l=CO(e,n);switch(e.mode){case"single":return r;case"multiple":return o;case"range":return l;default:return}}function ra(e,n){return e instanceof ln&&e.timeZone===n?e:new ln(e,n)}function xo(e,n,r){return ra(e,n)}function Tb(e,n,r){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?xo(e,n):Array.isArray(e)?e.map(o=>o instanceof Date?xo(o,n):o):pc(e)?{...e,from:e.from?ra(e.from,n):e.from,to:e.to?ra(e.to,n):e.to}:Rm(e)?{before:xo(e.before,n),after:xo(e.after,n)}:jm(e)?{after:xo(e.after,n)}:Mm(e)?{before:xo(e.before,n)}:e}function ih(e,n,r){return e&&(Array.isArray(e)?e.map(o=>Tb(o,n)):Tb(e,n))}function AO(e){let n=e;const r=n.timeZone;if(r&&(n={...e,timeZone:r},n.today&&(n.today=ra(n.today,r)),n.month&&(n.month=ra(n.month,r)),n.defaultMonth&&(n.defaultMonth=ra(n.defaultMonth,r)),n.startMonth&&(n.startMonth=ra(n.startMonth,r)),n.endMonth&&(n.endMonth=ra(n.endMonth,r)),n.mode==="single"&&n.selected?n.selected=ra(n.selected,r):n.mode==="multiple"&&n.selected?n.selected=n.selected?.map(De=>ra(De,r)):n.mode==="range"&&n.selected&&(n.selected={from:n.selected.from?ra(n.selected.from,r):n.selected.from,to:n.selected.to?ra(n.selected.to,r):n.selected.to}),n.disabled!==void 0&&(n.disabled=ih(n.disabled,r)),n.hidden!==void 0&&(n.hidden=ih(n.hidden,r)),n.modifiers)){const De={};Object.keys(n.modifiers).forEach(He=>{De[He]=ih(n.modifiers?.[He],r)}),n.modifiers=De}const{components:o,formatters:l,labels:u,dateLib:c,locale:h,classNames:p}=k.useMemo(()=>{const De={...lw,...n.locale},He=n.broadcastCalendar?1:n.weekStartsOn,Te=n.noonSafe&&n.timeZone?oO(n.timeZone,{weekStartsOn:He,locale:De}):void 0,Ue=n.dateLib&&Te?{...Te,...n.dateLib}:n.dateLib??Te,wt=new $n({locale:De,weekStartsOn:He,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},Ue);return{dateLib:wt,components:q6(n.components),formatters:W6(n.formatters),labels:tO(n.labels,wt.options),locale:De,classNames:{...Om(),...n.classNames}}},[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.noonSafe,n.components,n.formatters,n.labels,n.classNames]);n.today||(n={...n,today:c.today()});const{captionLayout:g,mode:y,navLayout:v,numberOfMonths:b=1,onDayBlur:w,onDayClick:E,onDayFocus:C,onDayKeyDown:D,onDayMouseEnter:_,onDayMouseLeave:A,onNextClick:N,onPrevClick:M,showWeekNumber:O,styles:I}=n,{formatCaption:S,formatDay:U,formatMonthDropdown:F,formatWeekNumber:L,formatWeekNumberHeader:B,formatWeekdayName:K,formatYearDropdown:se}=l,ae=bO(n,c),{days:ce,months:j,navStart:Y,navEnd:le,previousMonth:de,nextMonth:fe,goToMonth:pe}=ae,G=F6(ce,n,Y,le,c),{isSelected:X,select:ue,selected:re}=NO(n,c)??{},{blur:ee,focused:ve,isFocusTarget:ge,moveFocus:Ne,setFocused:ot}=SO(n,ae,G,X??(()=>!1),c),{labelDayButton:cn,labelGridcell:sn,labelGrid:Ea,labelMonthDropdown:Zt,labelNav:Qn,labelPrevious:Vn,labelNext:Rn,labelWeekday:sa,labelWeekNumber:_t,labelWeekNumberHeader:Ha,labelYearDropdown:_a}=u,Pt=k.useMemo(()=>rO(c,n.ISOWeek,n.broadcastCalendar,n.today),[c,n.ISOWeek,n.broadcastCalendar,n.today]),la=y!==void 0||E!==void 0,Ht=k.useCallback(()=>{de&&(pe(de),M?.(de))},[de,pe,M]),ei=k.useCallback(()=>{fe&&(pe(fe),N?.(fe))},[pe,fe,N]),$a=k.useCallback((De,He)=>Te=>{Te.preventDefault(),Te.stopPropagation(),ot(De),!He.disabled&&(ue?.(De.date,He,Te),E?.(De.date,He,Te))},[ue,E,ot]),ki=k.useCallback((De,He)=>Te=>{ot(De),C?.(De.date,He,Te)},[C,ot]),Qa=k.useCallback((De,He)=>Te=>{ee(),w?.(De.date,He,Te)},[ee,w]),ti=k.useCallback((De,He)=>Te=>{const Ue={ArrowLeft:[Te.shiftKey?"month":"day",n.dir==="rtl"?"after":"before"],ArrowRight:[Te.shiftKey?"month":"day",n.dir==="rtl"?"before":"after"],ArrowDown:[Te.shiftKey?"year":"week","after"],ArrowUp:[Te.shiftKey?"year":"week","before"],PageUp:[Te.shiftKey?"year":"month","before"],PageDown:[Te.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ue[Te.key]){Te.preventDefault(),Te.stopPropagation();const[wt,he]=Ue[Te.key];Ne(wt,he)}D?.(De.date,He,Te)},[Ne,D,n.dir]),ua=k.useCallback((De,He)=>Te=>{_?.(De.date,He,Te)},[_]),Ni=k.useCallback((De,He)=>Te=>{A?.(De.date,He,Te)},[A]),Ta=k.useCallback(De=>He=>{const Te=Number(He.target.value),Ue=c.setMonth(c.startOfMonth(De),Te);pe(Ue)},[c,pe]),Va=k.useCallback(De=>He=>{const Te=Number(He.target.value),Ue=c.setYear(c.startOfMonth(De),Te);pe(Ue)},[c,pe]),{className:Jt,style:jn}=k.useMemo(()=>({className:[p[Se.Root],n.className].filter(Boolean).join(" "),style:{...I?.[Se.Root],...n.style}}),[p,n.className,n.style,I]),Vt=B6(n),Ai=k.useRef(null);cO(Ai,!!n.animate,{classNames:p,months:j,focused:ve,dateLib:c});const ni={dayPickerProps:n,selected:re,select:ue,isSelected:X,months:j,nextMonth:fe,previousMonth:de,goToMonth:pe,getModifiers:G,components:o,classNames:p,styles:I,labels:u,formatters:l};return V.createElement(cw.Provider,{value:ni},V.createElement(o.Root,{rootRef:n.animate?Ai:void 0,className:Jt,style:jn,dir:n.dir,id:n.id,lang:n.lang,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],...Vt},V.createElement(o.Months,{className:p[Se.Months],style:I?.[Se.Months]},!n.hideNavigation&&!v&&V.createElement(o.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Se.Nav],style:I?.[Se.Nav],"aria-label":Qn(),onPreviousClick:Ht,onNextClick:ei,previousMonth:de,nextMonth:fe}),j.map((De,He)=>V.createElement(o.Month,{"data-animated-month":n.animate?"true":void 0,className:p[Se.Month],style:I?.[Se.Month],key:He,displayIndex:He,calendarMonth:De},v==="around"&&!n.hideNavigation&&He===0&&V.createElement(o.PreviousMonthButton,{type:"button",className:p[Se.PreviousMonthButton],tabIndex:de?void 0:-1,"aria-disabled":de?void 0:!0,"aria-label":Vn(de),onClick:Ht,"data-animated-button":n.animate?"true":void 0},V.createElement(o.Chevron,{disabled:de?void 0:!0,className:p[Se.Chevron],orientation:n.dir==="rtl"?"right":"left"})),V.createElement(o.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:p[Se.MonthCaption],style:I?.[Se.MonthCaption],calendarMonth:De,displayIndex:He},g?.startsWith("dropdown")?V.createElement(o.DropdownNav,{className:p[Se.Dropdowns],style:I?.[Se.Dropdowns]},(()=>{const Te=g==="dropdown"||g==="dropdown-months"?V.createElement(o.MonthsDropdown,{key:"month",className:p[Se.MonthsDropdown],"aria-label":Zt(),classNames:p,components:o,disabled:!!n.disableNavigation,onChange:Ta(De.date),options:nO(De.date,Y,le,l,c),style:I?.[Se.Dropdown],value:c.getMonth(De.date)}):V.createElement("span",{key:"month"},F(De.date,c)),Ue=g==="dropdown"||g==="dropdown-years"?V.createElement(o.YearsDropdown,{key:"year",className:p[Se.YearsDropdown],"aria-label":_a(c.options),classNames:p,components:o,disabled:!!n.disableNavigation,onChange:Va(De.date),options:iO(Y,le,l,c,!!n.reverseYears),style:I?.[Se.Dropdown],value:c.getYear(De.date)}):V.createElement("span",{key:"year"},se(De.date,c));return c.getMonthYearOrder()==="year-first"?[Ue,Te]:[Te,Ue]})(),V.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},S(De.date,c.options,c))):V.createElement(o.CaptionLabel,{className:p[Se.CaptionLabel],role:"status","aria-live":"polite"},S(De.date,c.options,c))),v==="around"&&!n.hideNavigation&&He===b-1&&V.createElement(o.NextMonthButton,{type:"button",className:p[Se.NextMonthButton],tabIndex:fe?void 0:-1,"aria-disabled":fe?void 0:!0,"aria-label":Rn(fe),onClick:ei,"data-animated-button":n.animate?"true":void 0},V.createElement(o.Chevron,{disabled:fe?void 0:!0,className:p[Se.Chevron],orientation:n.dir==="rtl"?"left":"right"})),He===b-1&&v==="after"&&!n.hideNavigation&&V.createElement(o.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Se.Nav],style:I?.[Se.Nav],"aria-label":Qn(),onPreviousClick:Ht,onNextClick:ei,previousMonth:de,nextMonth:fe}),V.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":y==="multiple"||y==="range","aria-label":Ea(De.date,c.options,c)||void 0,className:p[Se.MonthGrid],style:I?.[Se.MonthGrid]},!n.hideWeekdays&&V.createElement(o.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:p[Se.Weekdays],style:I?.[Se.Weekdays]},O&&V.createElement(o.WeekNumberHeader,{"aria-label":Ha(c.options),className:p[Se.WeekNumberHeader],style:I?.[Se.WeekNumberHeader],scope:"col"},B()),Pt.map(Te=>V.createElement(o.Weekday,{"aria-label":sa(Te,c.options,c),className:p[Se.Weekday],key:String(Te),style:I?.[Se.Weekday],scope:"col"},K(Te,c.options,c)))),V.createElement(o.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:p[Se.Weeks],style:I?.[Se.Weeks]},De.weeks.map(Te=>V.createElement(o.Week,{className:p[Se.Week],key:Te.weekNumber,style:I?.[Se.Week],week:Te},O&&V.createElement(o.WeekNumber,{week:Te,style:I?.[Se.WeekNumber],"aria-label":_t(Te.weekNumber,{locale:h}),className:p[Se.WeekNumber],scope:"row",role:"rowheader"},L(Te.weekNumber,c)),Te.days.map(Ue=>{const{date:wt}=Ue,he=G(Ue);if(he[kt.focused]=!he.hidden&&!!ve?.isEqualTo(Ue),he[ya.selected]=X?.(wt)||he.selected,pc(re)){const{from:Gn,to:ct}=re;he[ya.range_start]=!!(Gn&&ct&&c.isSameDay(wt,Gn)),he[ya.range_end]=!!(Gn&&ct&&c.isSameDay(wt,ct)),he[ya.range_middle]=pr(re,wt,!0,c)}const ht=aO(he,I,n.modifiersStyles),It=U6(he,p,n.modifiersClassNames),Gt=!la&&!he.hidden?sn(wt,he,c.options,c):void 0;return V.createElement(o.Day,{key:`${Ue.isoDate}_${Ue.displayMonthId}`,day:Ue,modifiers:he,className:It.join(" "),style:ht,role:"gridcell","aria-selected":he.selected||void 0,"aria-label":Gt,"data-day":Ue.isoDate,"data-month":Ue.outside?Ue.dateMonthId:void 0,"data-selected":he.selected||void 0,"data-disabled":he.disabled||void 0,"data-hidden":he.hidden||void 0,"data-outside":Ue.outside||void 0,"data-focused":he.focused||void 0,"data-today":he.today||void 0},!he.hidden&&la?V.createElement(o.DayButton,{className:p[Se.DayButton],style:I?.[Se.DayButton],type:"button",day:Ue,modifiers:he,disabled:!he.focused&&he.disabled||void 0,"aria-disabled":he.focused&&he.disabled||void 0,tabIndex:ge(Ue)?0:-1,"aria-label":cn(wt,he,c.options,c),onClick:$a(Ue,he),onBlur:Qa(Ue,he),onFocus:ki(Ue,he),onKeyDown:ti(Ue,he),onMouseEnter:ua(Ue,he),onMouseLeave:Ni(Ue,he)},U(wt,c.options,c)):!he.hidden&&U(Ue.date,c.options,c))})))))))),n.footer&&V.createElement(o.Footer,{className:p[Se.Footer],style:I?.[Se.Footer],role:"status","aria-live":"polite"},n.footer)))}function Tw({className:e,classNames:n,showOutsideDays:r=!0,captionLayout:o="label",buttonVariant:l="ghost",formatters:u,components:c,...h}){const p=Om();return d.jsx(AO,{showOutsideDays:r,className:$("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:o,formatters:{formatMonthDropdown:g=>g.toLocaleString("default",{month:"short"}),...u},classNames:{root:$("w-fit",p.root),months:$("flex gap-4 flex-col md:flex-row relative",p.months),month:$("flex flex-col w-full gap-4",p.month),nav:$("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",p.nav),button_previous:$(tl({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",p.button_previous),button_next:$(tl({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",p.button_next),month_caption:$("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",p.month_caption),dropdowns:$("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",p.dropdowns),dropdown_root:$("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",p.dropdown_root),dropdown:$("absolute bg-popover inset-0 opacity-0",p.dropdown),caption_label:$("select-none font-medium",o==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",p.caption_label),table:"w-full border-collapse",weekdays:$("flex",p.weekdays),weekday:$("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",p.weekday),week:$("flex w-full mt-2",p.week),week_number_header:$("select-none w-(--cell-size)",p.week_number_header),week_number:$("text-[0.8rem] select-none text-muted-foreground",p.week_number),day:$("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",p.day),range_start:$("rounded-l-md bg-accent",p.range_start),range_middle:$("rounded-none",p.range_middle),range_end:$("rounded-r-md bg-accent",p.range_end),today:$("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",p.today),outside:$("text-muted-foreground aria-selected:text-muted-foreground",p.outside),disabled:$("text-muted-foreground opacity-50",p.disabled),hidden:$("invisible",p.hidden),...n},components:{Root:({className:g,rootRef:y,...v})=>d.jsx("div",{"data-slot":"calendar",ref:y,className:$(g),...v}),Chevron:({className:g,orientation:y,...v})=>y==="left"?d.jsx(Y1,{className:$("size-4",g),...v}):y==="right"?d.jsx(fm,{className:$("size-4",g),...v}):d.jsx(ll,{className:$("size-4",g),...v}),DayButton:RO,WeekNumber:({children:g,...y})=>d.jsx("td",{...y,children:d.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:g})}),...c},...h})}function RO({className:e,day:n,modifiers:r,...o}){const l=Om(),u=k.useRef(null);return k.useEffect(()=>{r.focused&&u.current?.focus()},[r.focused]),d.jsx(it,{ref:u,variant:"ghost",size:"icon","data-day":n.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:$("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",l.day,e),...o})}function oh({className:e,children:n,...r}){return d.jsxs(YE,{"data-slot":"scroll-area",className:$("relative",e),...r,children:[d.jsx(KE,{"data-slot":"scroll-area-viewport",className:"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1",children:n}),d.jsx(Oh,{}),d.jsx(WE,{})]})}function Oh({className:e,orientation:n="vertical",...r}){return d.jsx(XE,{"data-slot":"scroll-area-scrollbar",orientation:n,className:$("flex touch-none p-px transition-colors select-none",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:d.jsx(ZE,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const jO=e=>e?Ph(e):void 0;function MO({value:e,onValueChange:n,id:r,defaultMonth:o}){const[l,u]=k.useState(jO(e));function c(g){u(g),n(g?eT(g):void 0)}const h=Array.from({length:12},(g,y)=>y+1),p=(g,y)=>{if(l){const v=new Date(l);if(g==="hour")v.setHours(Number.parseInt(y,10)%12+(v.getHours()>=12?12:0));else if(g==="minute")v.setMinutes(Number.parseInt(y,10));else if(g==="ampm"){const b=v.getHours();v.setHours(y==="PM"?b+12:b-12)}c(v)}};return d.jsxs(Cm,{children:[d.jsx(km,{asChild:!0,children:d.jsxs(it,{variant:"outline",className:$("w-full justify-start text-left font-normal bg-card dark:bg-background",!l&&"text-muted-foreground"),id:r,children:[d.jsx(Ob,{className:"mr-2 h-4 w-4"}),l?on(l,"MM/dd/yyyy hh:mm aa"):d.jsx("span",{children:"MM/DD/YYYY hh:mm aa"})]})}),d.jsx(Nm,{className:"w-auto p-0",children:d.jsxs("div",{className:"sm:flex",children:[d.jsx(Tw,{mode:"single",selected:l,onSelect:c,defaultMonth:o,initialFocus:!0}),d.jsxs("div",{className:"flex flex-col sm:flex-row sm:h-[300px] divide-y sm:divide-y-0 sm:divide-x",children:[d.jsxs(oh,{className:"w-64 sm:w-auto",children:[d.jsx("div",{className:"flex sm:flex-col p-2",children:h.reverse().map(g=>d.jsx(it,{size:"icon",variant:l&&l.getHours()%12===g%12?"default":"ghost",className:"sm:w-full shrink-0 aspect-square",onClick:()=>p("hour",g.toString()),children:g},g))}),d.jsx(Oh,{orientation:"horizontal",className:"sm:hidden"})]}),d.jsxs(oh,{className:"w-64 sm:w-auto",children:[d.jsx("div",{className:"flex sm:flex-col p-2",children:Array.from({length:12},(g,y)=>y*5).map(g=>d.jsx(it,{size:"icon",variant:l&&l.getMinutes()===g?"default":"ghost",className:"sm:w-full shrink-0 aspect-square",onClick:()=>p("minute",g.toString()),children:g},g))}),d.jsx(Oh,{orientation:"horizontal",className:"sm:hidden"})]}),d.jsx(oh,{className:"",children:d.jsx("div",{className:"flex sm:flex-col p-2",children:["AM","PM"].map(g=>d.jsx(it,{size:"icon",variant:l&&(g==="AM"&&l.getHours()<12||g==="PM"&&l.getHours()>=12)?"default":"ghost",className:"sm:w-full shrink-0 aspect-square",onClick:()=>p("ampm",g),children:g},g))})})]})]})})]})}function OO({...e}){return d.jsx(JE,{"data-slot":"select",...e})}function OI({...e}){return d.jsx(d_,{"data-slot":"select-group",...e})}function LO({...e}){return d.jsx(n_,{"data-slot":"select-value",...e})}function IO({className:e,children:n,...r}){return d.jsxs(e_,{"data-slot":"select-trigger",className:$("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-card dark:bg-background px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,d.jsx(t_,{asChild:!0,children:d.jsx(ll,{className:"size-4 opacity-50"})})]})}function zO({className:e,children:n,position:r="popper",...o}){return d.jsx(a_,{children:d.jsxs(r_,{"data-slot":"select-content",className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[d.jsx(FO,{}),d.jsx(i_,{className:$("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:n}),d.jsx(UO,{})]})})}function LI({className:e,...n}){return d.jsx(f_,{"data-slot":"select-label",className:$("px-2 py-1.5 text-sm font-medium",e),...n})}function Lu({className:e,children:n,...r}){return d.jsxs(o_,{"data-slot":"select-item",className:$("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(s_,{children:d.jsx(dm,{className:"size-4"})})}),d.jsx(l_,{children:n})]})}function FO({className:e,...n}){return d.jsx(u_,{"data-slot":"select-scroll-up-button",className:$("flex cursor-default items-center justify-center py-1",e),...n,children:d.jsx(xN,{className:"size-4"})})}function UO({className:e,...n}){return d.jsx(c_,{"data-slot":"select-scroll-down-button",className:$("flex cursor-default items-center justify-center py-1",e),...n,children:d.jsx(ll,{className:"size-4"})})}const Dw=gr*7,Cw=gr*30;function kw(e){return Qs(e).getTime()===e.getTime()}function qO(e){return Iu(e).getTime()===e.getTime()}function zm({startDate:e,endDate:n}){return kw(e)&&qO(n)}function BO({startDate:e,endDate:n}){return zm({startDate:e,endDate:n})&&$b(e,n)}function PO({seconds:e}){const n=Math.abs(e);if(n===Dw)return"Past 7 days";if(n===Cw)return"Past 30 days";const r={months:Math.floor(n/dh),weeks:Math.floor(n%dh/Vu),days:Math.floor(n%Vu/gr),hours:Math.floor(n%gr/Ro),minutes:Math.floor(n%Ro/Zs),seconds:Math.floor(n%Zs)},o=[];return Object.entries(r).forEach(([u,c])=>{if(!c)return;const h=u.slice(0,-1);o.push(c===1?h:`${c} ${h}${c>1?"s":""}`)}),`${e<0?"Past":"Next"} ${o.join(" ")}`}function HO({startDate:e,endDate:n}){const r="MMM do",o="MMM do, yyyy",l="hh:mm a",u=`${r} 'at' ${l}`,c=`${o} 'at' ${l}`;if(BO({startDate:e,endDate:n})){const g=wo(e,new Date)?r:o;return on(e,g)}if(zm({startDate:e,endDate:n})){const g=wo(e,new Date)?r:o,y=wo(n,new Date)?r:o;return`${on(e,g)} - ${on(n,y)}`}const h=wo(e,new Date)?u:c,p=wo(n,new Date)?u:c;return`${on(e,h)} - ${on(n,p)}`}function $O({date:e,quantity:n,unit:r}){const o="MMM do, yyyy",u=kw(e)?o:`${o} 'at' hh:mm a`,c=n===1?r:`${r}s`;return`${n} ${c} around ${on(e,u)}`}function QO({period:e}){return e}function VO(e){if(!e)return null;switch(e.type){case"span":return PO(e);case"range":return HO(e);case"around":return $O(e);case"period":return QO(e);default:return null}}function GO({value:e,onValueChange:n,placeholder:r="Select a time span",maxSpanInSeconds:o,clearable:l,disabled:u,min:c,minReason:h,max:p,maxReason:g,className:y,id:v}){const[b,w]=k.useState(!1),[E,C]=k.useState(null),D=k.useMemo(()=>VO(e)??r,[e,r]),_=D===r;function A(L){n(L),w(!1),C(null)}function N(){n(null)}const M=k.useCallback(()=>jh(e)?.timeSpanInSeconds??0,[e]),O=k.useCallback(L=>{const B=jh(e);if(!B)return null;const{startDate:K,endDate:se}=B;if(zm({startDate:K,endDate:se})){const ae=Math.ceil(Math.abs(L)/gr),ce=L<0?-ae:ae;return{startDate:ch(K,ce),endDate:ch(se,ce)}}return{startDate:Xs(K,L),endDate:Xs(se,L)}},[e]),I=k.useMemo(()=>{const L=M(),B=O(L*-1);return!B||!L||u?!0:c?ic(B.startDate,c):!1},[u,c,M,O]),S=k.useMemo(()=>{const L=M(),B=O(L);return!B||!L||u?!0:p?Hh(B.endDate,p):!1},[u,p,M,O]);function U(){const L=M(),B=O(L*-1);B&&A({type:"range",startDate:B.startDate,endDate:B.endDate})}function F(){const L=M(),B=O(L);B&&A({type:"range",startDate:B.startDate,endDate:B.endDate})}return d.jsxs("div",{className:$("flex items-center",y),children:[d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:d.jsx(it,{variant:"outline",size:"icon",className:"-ml-px bg-card dark:bg-background",onClick:U,disabled:I,"aria-label":"Previous range",children:d.jsx(vt,{id:"ChevronLeft",className:"size-4"})})}),h&&I?d.jsx(Ua,{children:h}):null]}),d.jsxs(Cm,{open:b,onOpenChange:L=>{L||C(null),w(L)},children:[d.jsx(km,{asChild:!0,children:d.jsxs(it,{id:v,variant:"outline",className:$("rounded-none border-x-0 min-w-64 flex-1 justify-start text-left font-normal bg-card dark:bg-background",_&&"text-muted-foreground"),disabled:u,children:[d.jsx(Ob,{className:"mr-2 h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:D}),d.jsx(vt,{id:"ChevronDown",className:"ml-auto size-4 shrink-0"})]})}),d.jsx(Nm,{className:"w-auto p-0",align:"start",onOpenAutoFocus:L=>L.preventDefault(),onMouseDown:L=>L.stopPropagation(),children:d.jsxs("div",{className:"w-[22rem] max-w-[90vw]",children:[E===null&&d.jsx(YO,{onApply:A,onSetMode:C}),E==="span"&&d.jsx(KO,{maxSpanInSeconds:o,min:c,max:p,onApply:A}),E==="around"&&d.jsx(WO,{onApply:A}),E==="range"&&d.jsx(XO,{onApply:A})]})})]}),e&&l&&!u?d.jsx(it,{variant:"outline",size:"icon",className:"rounded-none -ml-px bg-card dark:bg-background",onClick:N,"aria-label":"Clear date range",children:d.jsx(vt,{id:"X",className:"size-4"})}):null,d.jsxs(za,{children:[d.jsx(Fa,{asChild:!0,children:d.jsx(it,{variant:"outline",size:"icon",className:"-ml-px bg-card dark:bg-background",onClick:F,disabled:S,"aria-label":"Next range",children:d.jsx(vt,{id:"ChevronRight",className:"size-4"})})}),g&&S?d.jsx(Ua,{children:g}):null]})]})}function YO({onApply:e,onSetMode:n}){const r=[{label:"Past hour",onClick:()=>e({type:"span",seconds:Ro*-1})},{label:"Past day",onClick:()=>e({type:"span",seconds:gr*-1})},{label:"Past 7 days",onClick:()=>e({type:"span",seconds:Dw*-1})},{label:"Past 30 days",onClick:()=>e({type:"span",seconds:Cw*-1})},{label:"Today",onClick:()=>e({type:"period",period:"Today"})},{label:"Relative time",onClick:()=>n("span")},{label:"Around a time",onClick:()=>n("around")},{label:"Date range",onClick:()=>n("range")}];return d.jsx("div",{className:"p-1",children:r.map((o,l)=>d.jsx(it,{variant:"ghost",className:$("w-full justify-between font-normal",l===3&&"border-b rounded-none border-border"),onClick:o.onClick,children:d.jsx("span",{children:o.label})},o.label))})}function KO({maxSpanInSeconds:e,min:n,max:r,onApply:o}){const[l,u]=k.useState(""),c=k.useCallback((p,g)=>g===1?p:`${p}s`,[]),h=k.useMemo(()=>{const[p=""]=l.match(/\d+/)??[],[g=""]=l.match(/[a-zA-Z]+/)??[],[y=""]=l.match(/[+-]+/)??[],v=Number.parseInt(p,10),b=Number.isNaN(v)?1:v,w=[{label:`Past ${b} ${c("minute",b)}`,unit:"minute",quantity:b,value:b*Zs*-1},{label:`Past ${b} ${c("hour",b)}`,unit:"hour",quantity:b,value:b*Ro*-1},{label:`Past ${b} ${c("day",b)}`,unit:"day",quantity:b,value:b*gr*-1},{label:`Past ${b} ${c("week",b)}`,unit:"week",quantity:b,value:b*Vu*-1},{label:`Next ${b} ${c("minute",b)}`,unit:"minute",quantity:b,value:b*Zs},{label:`Next ${b} ${c("hour",b)}`,unit:"hour",quantity:b,value:b*Ro},{label:`Next ${b} ${c("day",b)}`,unit:"day",quantity:b,value:b*gr},{label:`Next ${b} ${c("week",b)}`,unit:"week",quantity:b,value:b*Vu}],E=new Date,C=e??dh*2;return w.filter(D=>{const _=Xs(E,D.value);if(n&&ic(_,n)||r&&Hh(_,r))return!1;const A=Math.abs(D.value)<C,N=c(D.unit,b).includes(g),M=(D.value>0?"+":"-").includes(y);return A&&N&&M})},[l,e,n,r,c]);return d.jsxs("div",{children:[d.jsx("div",{className:"p-2",children:d.jsx(hr,{placeholder:"Relative time (15m, 1h, 1d, 1w)",value:l,onChange:p=>u(p.target.value),autoFocus:!0})}),d.jsx("div",{className:"max-h-64 overflow-auto",children:h.map(p=>d.jsxs(it,{variant:"ghost",className:"w-full justify-between font-normal",onClick:()=>o({type:"span",seconds:p.value}),children:[d.jsx("span",{children:p.label}),d.jsx("span",{className:"text-muted-foreground font-mono",children:(p.value>0?"+":"-")+`${p.quantity}${p.unit.slice(0,1)}`})]},p.label))})]})}function WO({onApply:e}){const[n,r]=k.useState(void 0),[o,l]=k.useState(15),[u,c]=k.useState("second");function h(){if(!n||!o)return e(null);e({type:"around",date:Ph(n),quantity:o,unit:u})}return d.jsxs("div",{className:"p-2 space-y-3",children:[d.jsx(MO,{value:n,onValueChange:r}),d.jsxs("div",{className:"grid grid-cols-[1fr_8rem] gap-2 max-w-[322px]",children:[d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"inline-flex items-center px-3 border border-r-0 border-input rounded-l-md text-sm font-mono",children:"±"}),d.jsx(hr,{type:"number",min:1,value:o,onChange:p=>l(Number(p.target.value)),className:"rounded-l-none"})]}),d.jsxs(OO,{value:u,onValueChange:p=>c(p),children:[d.jsx(IO,{children:d.jsx(LO,{})}),d.jsxs(zO,{children:[d.jsx(Lu,{value:"second",children:"Seconds"}),d.jsx(Lu,{value:"minute",children:"Minutes"}),d.jsx(Lu,{value:"hour",children:"Hours"}),d.jsx(Lu,{value:"day",children:"Days"})]})]})]}),d.jsxs("div",{className:"flex gap-2 justify-end",children:[d.jsx(it,{variant:"ghost",onClick:()=>e(null),children:"Cancel"}),d.jsx(it,{onClick:h,children:"Apply"})]})]})}function XO({onApply:e}){const[n,r]=k.useState({}),o=k.useMemo(()=>n.from?{from:n.from,to:n.to}:void 0,[n.from,n.to]);function l(y,v){const[b,w,E]=v.split("-").map(D=>Number(D)),C=new Date(y??new Date);return C.setFullYear(b),C.setMonth(w-1),C.setDate(E),C}function u(y,v){const[b,w]=v.split(":").map(C=>Number(C)),E=new Date(y??new Date);return E.setHours(b),E.setMinutes(w),E.setSeconds(0),E.setMilliseconds(0),E}function c(y){if(!y)return"";const v=y.getFullYear(),b=String(y.getMonth()+1).padStart(2,"0"),w=String(y.getDate()).padStart(2,"0");return`${v}-${b}-${w}`}function h(y){if(!y)return"";const v=String(y.getHours()).padStart(2,"0"),b=String(y.getMinutes()).padStart(2,"0");return`${v}:${b}`}function p(y){if(!y){r({});return}r(v=>{const b=v.from,w=v.to,E=y.from?(()=>{const D=b??void 0;if(!D)return Qs(y.from);const _=y.from;return new Date(_.getFullYear(),_.getMonth(),_.getDate(),D.getHours(),D.getMinutes(),0,0)})():void 0,C=y.to?(()=>{const D=w??void 0;if(!D)return Iu(y.to);const _=y.to;return new Date(_.getFullYear(),_.getMonth(),_.getDate(),D.getHours(),D.getMinutes(),0,0)})():void 0;return{from:E,to:C}})}function g(){n.from&&n.to?e({type:"range",startDate:n.from,endDate:n.to}):e(null)}return d.jsxs("div",{className:"p-2 space-y-3",children:[d.jsx(Tw,{mode:"range",selected:o,onSelect:p,initialFocus:!0,classNames:{root:"mx-auto"}}),d.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[d.jsxs("div",{className:"grid grid-cols-[auto,1fr,auto,1fr] items-center gap-2",children:[d.jsxs("div",{className:"col-span-4 flex items-center justify-between text-sm text-muted-foreground",children:[d.jsx("span",{children:"From"}),d.jsx(it,{variant:"ghost",size:"sm",onClick:()=>r(y=>({...y,from:Fy(new Date)})),children:"Now"})]}),d.jsx(hr,{type:"date",value:c(n.from),onChange:y=>r(v=>({...v,from:l(v.from??Qs(new Date),y.target.value||c(v.from))}))}),d.jsx(hr,{type:"time",step:60,value:h(n.from),onChange:y=>r(v=>({...v,from:u(v.from??Qs(new Date),y.target.value||h(v.from))}))})]}),d.jsxs("div",{className:"grid grid-cols-[auto,1fr,auto,1fr] items-center gap-2",children:[d.jsxs("div",{className:"col-span-4 flex items-center justify-between text-sm text-muted-foreground",children:[d.jsx("span",{children:"To"}),d.jsx(it,{variant:"ghost",size:"sm",onClick:()=>r(y=>({...y,to:Fy(new Date)})),children:"Now"})]}),d.jsx(hr,{type:"date",value:c(n.to),onChange:y=>r(v=>({...v,to:l(v.to??Iu(new Date),y.target.value||c(v.to))}))}),d.jsx(hr,{type:"time",step:60,value:h(n.to),onChange:y=>r(v=>({...v,to:u(v.to??Iu(new Date),y.target.value||h(v.to))}))})]})]}),d.jsxs("div",{className:"flex gap-2 justify-end",children:[d.jsx(it,{variant:"ghost",onClick:()=>e(null),children:"Cancel"}),d.jsx(it,{onClick:g,disabled:!n.from||!n.to,children:"Apply"})]})]})}function ZO({className:e,...n}){return d.jsx(h_,{"data-slot":"label",className:$("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}const JO=({children:e,className:n})=>d.jsx("div",{className:$("min-h-screen bg-background",n),children:d.jsx("div",{className:"w-full",children:d.jsx("div",{className:"flex flex-col lg:flex-row lg:gap-8",children:e})})}),e5=({children:e,className:n})=>d.jsx("header",{className:$("w-full",n),children:e}),t5=({children:e,className:n})=>d.jsx("div",{className:$("flex-1 w-full",n),children:e});function n5({className:e,...n}){return d.jsx(m_,{"data-slot":"switch",className:$("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:d.jsx(p_,{"data-slot":"switch-thumb",className:$("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}function a5(){return d.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm",children:[d.jsxs("div",{className:"flex flex-row items-center justify-between p-6 pb-2",children:[d.jsx(ke,{className:"h-6 w-24"}),d.jsx(ke,{className:"h-4 w-16"})]}),d.jsxs("div",{className:"p-6 pt-0 space-y-2",children:[d.jsx(ke,{className:"h-24 w-full"}),d.jsx("div",{className:"flex justify-between w-full gap-2",children:[1,2,3,4,5].map(e=>d.jsx(ke,{className:"h-10 flex-1"},e))}),d.jsx(ke,{className:"h-32 w-full"})]})]})}function r5(){return d.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm",children:[d.jsx("div",{className:"flex flex-row items-center justify-between p-6 pb-2",children:d.jsx(ke,{className:"h-6 w-24"})}),d.jsxs("div",{className:"p-6 pt-0 space-y-4",children:[d.jsxs("div",{className:"grid gap-1",children:[d.jsx(ke,{className:"h-5 w-20"}),d.jsx(ke,{className:"h-4 w-32"}),d.jsx(ke,{className:"h-4 w-28"})]}),d.jsx(ke,{className:"h-16 w-full"})]})]})}function i5(){return d.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm",children:[d.jsx("div",{className:"p-6",children:d.jsx(ke,{className:"h-6 w-32 mb-4"})}),d.jsx("div",{className:"p-6 pt-0 space-y-4",children:d.jsxs("div",{className:"rounded-xl border p-3 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ke,{className:"h-5 w-32"}),d.jsx(ke,{className:"h-5 w-5 rounded-full"})]}),d.jsx("div",{className:"grid grid-cols-4 gap-2",children:[1,2,3,4].map(e=>d.jsxs("div",{className:"space-y-1",children:[d.jsx(ke,{className:"h-3 w-16"}),d.jsx(ke,{className:"h-4 w-12"})]},e))})]})})]})}const o5=["FAILED-CRASHED","RUNNING-PENDING-CANCELLING","COMPLETED","SCHEDULED-PAUSED","CANCELLED"],s5=xt({hideSubflows:Ib().optional().catch(!1),tags:xa(ze()).optional().catch(void 0),tab:rt(o5).optional().catch(void 0),from:ze().datetime().optional().catch(void 0),to:ze().datetime().optional().catch(void 0),rangeType:rt(["span","range","around","period"]).optional().default("span").catch("span"),seconds:Et().optional().default(-86400).catch(-86400),start:ze().datetime().optional(),end:ze().datetime().optional(),aroundDate:ze().datetime().optional(),aroundQuantity:Et().optional(),aroundUnit:rt(["second","minute","hour","day"]).optional(),period:rt(["Today"]).optional()});function sh(e){const n=new Date(e);return n.setSeconds(0,0),n}function gc(e){if(e.from&&e.to)return{from:e.from,to:e.to};switch(e.rangeType){case"span":{const o=sh(new Date),l=e.seconds??-86400,u=new Date(o.getTime()+l*1e3),[c,h]=[o,u].sort((p,g)=>p.getTime()-g.getTime());return{from:c.toISOString(),to:h.toISOString()}}case"range":{if(e.start&&e.end)return{from:e.start,to:e.end};break}case"around":{if(e.aroundDate&&e.aroundQuantity&&e.aroundUnit){const o=new Date(e.aroundDate),l={second:1,minute:60,hour:3600,day:86400}[e.aroundUnit],u=e.aroundQuantity*l,c=new Date(o.getTime()-u*1e3),h=new Date(o.getTime()+u*1e3);return{from:c.toISOString(),to:h.toISOString()}}break}case"period":{const o=sh(new Date),l=new Date(o);l.setHours(0,0,0,0);const u=new Date(o);return u.setHours(23,59,59,999),{from:l.toISOString(),to:u.toISOString()}}}const n=sh(new Date);return{from:new Date(n.getTime()-86400*1e3).toISOString(),to:n.toISOString()}}function l5(e){const{from:n,to:r}=gc(e),{tags:o,hideSubflows:l}=e,u={sort:"START_TIME_DESC",offset:0},c={operator:"and_"};return c.start_time={after_:n,before_:r},o&&o.length>0&&(c.tags={operator:"and_",all_:o}),l&&(c.parent_task_run_id={operator:"and_",is_null_:!0}),u.flow_runs=c,u}function u5(e){const{from:n,to:r}=gc(e),{tags:o,hideSubflows:l}=e,u={operator:"and_",subflow_runs:{exists_:!1},start_time:{after_:n,before_:r}};let c;(o&&o.length>0||l)&&(c={operator:"and_"},o&&o.length>0&&(c.tags={operator:"and_",any_:o}),l&&(c.parent_task_run_id={operator:"and_",is_null_:!0}));const h={task_runs:u,...c&&{flow_runs:c}};return{total:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED","RUNNING"]}}}},completed:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["COMPLETED"]}}}},failed:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}},running:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["RUNNING"]}}}}}}const Db=[["FAILED","CRASHED"],["RUNNING","PENDING","CANCELLING"],["COMPLETED"],["SCHEDULED","PAUSED"],["CANCELLED"]],Lh=Be("/dashboard")({validateSearch:Lt(s5),component:d5,pendingComponent:Ex,pendingMs:400,pendingMinMs:400,loaderDeps:({search:e})=>e,loader:async({deps:e,context:{queryClient:n}})=>{if(await n.ensureQueryData(pt({},3e4))===0)return;const o=l5(e),{from:l,to:u}=gc(e),[c,h]=await Promise.all([n.ensureQueryData(mr(o)),n.ensureQueryData(bm({offset:0}))]),p=[...new Set(c.map(D=>D.flow_id).filter(D=>!!D))],g=[...new Set(c.map(D=>D.deployment_id).filter(D=>!!D))];p.length>0&&n.prefetchQuery(nl({flows:{operator:"and_",id:{any_:p}},offset:0,sort:"CREATED_DESC"})),g.length>0&&n.prefetchQuery(_x({deployments:{operator:"and_",id:{any_:g}},offset:0,sort:"CREATED_DESC"}));const y=Hx({startDate:l,endDate:u,tags:e.tags,hideSubflows:e.hideSubflows});n.prefetchQuery(ym(y,3e4));const v=Tx(o);n.prefetchQuery(pt(v,3e4)),Db.forEach(D=>{n.prefetchQuery(pt({...v,flow_runs:{...v.flow_runs,operator:v.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:[...D]}}}},3e4))});const b=Db[0],w={...o,flow_runs:{...o.flow_runs,operator:"and_",state:{operator:"and_",type:{any_:[...b]}}}};n.fetchQuery(mr(w,3e4)).then(D=>{if(!D||D.length===0)return;D.slice(0,3).map(N=>N.id).filter(Boolean).forEach(N=>{n.prefetchQuery(qo([N]))});const A=[...new Set(D.map(N=>N.flow_id).filter(N=>!!N))];A.length>0&&(n.prefetchQuery(nl({flows:{operator:"and_",id:{any_:A}},offset:0,sort:"UPDATED_DESC"})),A.forEach(N=>{const M={...w,flows:{...w.flows??{},operator:"and_",id:{any_:[N]}}};n.prefetchQuery(pt(M,3e4));const O={...M,sort:"START_TIME_DESC",limit:1,offset:0};n.prefetchQuery(mr(O,3e4))}))}).catch(()=>{});const E=u5(e);n.prefetchQuery(Hn(E.total,3e4)),n.prefetchQuery(Hn(E.completed,3e4)),n.prefetchQuery(Hn(E.failed,3e4)),n.prefetchQuery(Hn(E.running,3e4)),h.filter(D=>!D.is_paused).forEach(D=>{n.prefetchQuery(xm(D.name)),n.prefetchQuery(nc(D.name));const _={sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u}}},A={limit:24,sort:"START_TIME_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u}}};n.prefetchQuery(mr(A,3e4));const N={..._,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}};n.prefetchQuery(pt(N,3e4));const M={..._,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",type:{any_:["COMPLETED"]}}}};n.prefetchQuery(pt(M,3e4));const O={..._,work_pools:{operator:"and_",name:{any_:[D.name]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",name:{any_:["Late"]}}}};n.prefetchQuery(pt(O,3e4));const I={sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u}}};n.prefetchQuery(Dx(I,3e4));const S={..._,work_pools:{operator:"and_",name:{any_:[D.name]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}};n.prefetchQuery(pt(S,3e4))})},wrapInSuspense:!0});function c5(e,n){const r={...e};for(const o of n)delete r[o];return r}function d5(){const e=Lh.useSearch(),n=Lh.useNavigate(),{data:r}=Io(pt({},3e4)),o=r===0,l=e.hideSubflows??!1,u=e.tags??[],c=k.useMemo(()=>{switch(e.rangeType){case"span":return{type:"span",seconds:e.seconds??-86400};case"range":return e.start&&e.end?{type:"range",startDate:new Date(e.start),endDate:new Date(e.end)}:{type:"span",seconds:-86400};case"around":return e.aroundDate&&e.aroundQuantity&&e.aroundUnit?{type:"around",date:new Date(e.aroundDate),quantity:e.aroundQuantity,unit:e.aroundUnit}:{type:"span",seconds:-86400};case"period":return{type:"period",period:e.period??"Today"};default:return{type:"span",seconds:-86400}}},[e.rangeType,e.seconds,e.start,e.end,e.aroundDate,e.aroundQuantity,e.aroundUnit,e.period]),h=k.useCallback(E=>{n({to:".",search:C=>({...C,hideSubflows:E}),replace:!0})},[n]),p=k.useCallback(E=>{n({to:".",search:C=>({...C,tags:E.length?E:void 0}),replace:!0})},[n]),g=k.useMemo(()=>(e.tab??"FAILED-CRASHED").split("-"),[e.tab]),y=k.useCallback(E=>{const C=E.join("-");n({to:".",search:D=>({...D,tab:C==="FAILED-CRASHED"?void 0:C}),replace:!0})},[n]),v=k.useCallback(E=>{n({to:".",search:C=>{if(!E)return c5(C,["rangeType","seconds","start","end","aroundDate","aroundQuantity","aroundUnit","period","from","to"]);let D,_;switch(E.type){case"span":{const A=new Date,N=new Date(A.getTime()+E.seconds*1e3),[M,O]=[A,N].sort((I,S)=>I.getTime()-S.getTime());return D=M.toISOString(),_=O.toISOString(),{...C,rangeType:"span",seconds:E.seconds,from:D,to:_}}case"range":return D=E.startDate.toISOString(),_=E.endDate.toISOString(),{...C,rangeType:"range",start:D,end:_,from:D,to:_};case"around":{const A=E.date,N={second:1,minute:60,hour:3600,day:86400}[E.unit],M=E.quantity*N,O=new Date(A.getTime()-M*1e3),I=new Date(A.getTime()+M*1e3);return D=O.toISOString(),_=I.toISOString(),{...C,rangeType:"around",aroundDate:A.toISOString(),aroundQuantity:E.quantity,aroundUnit:E.unit,from:D,to:_}}case"period":{const A=new Date,N=new Date(A);N.setHours(0,0,0,0);const M=new Date(A);return M.setHours(23,59,59,999),D=N.toISOString(),_=M.toISOString(),{...C,rangeType:"period",period:E.period,from:D,to:_}}}},replace:!0})},[n]),{from:b,to:w}=gc(e);return d.jsx(R8,{children:d.jsx(JO,{children:d.jsxs(t5,{children:[d.jsx(e5,{className:"pb-4 md:pb-6",children:d.jsxs("div",{className:"flex flex-col space-y-4 md:space-y-0 md:flex-row md:items-center md:justify-between",children:[d.jsx("div",{children:d.jsx(Rx,{children:d.jsx(jx,{children:d.jsx(kh,{className:"text-xl font-semibold",children:"Dashboard"})})})}),!o&&d.jsx("div",{className:"flex flex-col w-full max-w-full gap-2 md:w-auto md:inline-flex md:flex-row items-center",children:d.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[d.jsxs("div",{className:"pr-2 w-full md:w-auto flex items-center gap-2",children:[d.jsx(n5,{id:"hide-subflows",checked:l,onCheckedChange:h}),d.jsx(ZO,{htmlFor:"hide-subflows",children:"Hide subflows"})]}),d.jsx("div",{className:"min-w-0 w-60",children:d.jsx(rw,{value:u,onChange:p,placeholder:"All tags"})}),d.jsx("div",{className:"min-w-0",children:d.jsx(GO,{value:c,onValueChange:v,placeholder:"Select a time span"})})]})})]})}),o?d.jsx(K8,{}):d.jsxs("div",{className:"grid grid-cols-1 gap-4 items-start xl:grid-cols-2",children:[d.jsx("div",{className:"space-y-4",children:d.jsx(k.Suspense,{fallback:d.jsx(a5,{}),children:d.jsx(B8,{filter:{startDate:b,endDate:w,tags:e.tags,hideSubflows:e.hideSubflows},selectedStates:g,onStateChange:y})})}),d.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[d.jsx(k.Suspense,{fallback:d.jsx(r5,{}),children:d.jsx(tM,{filter:{startDate:b,endDate:w,tags:e.tags,hideSubflows:e.hideSubflows}})}),d.jsx(k.Suspense,{fallback:d.jsx(i5,{}),children:d.jsx(mM,{filter:{startDate:b,endDate:w}})})]})]})]})})})}const f5=()=>Ae(()=>import("./index-zRh33zZ_.js"),[]),h5=Be("/")({component:Re(f5,"component"),beforeLoad:({location:e})=>{e.pathname==="/"&&rl({to:"/dashboard",throw:!0})}}),m5=()=>Ae(()=>import("./index-q5Y3hlDT.js"),__vite__mapDeps([11,1,2,12,13,4,5,6,7])),p5=()=>Ae(()=>import("./index-Cx1qEoCK.js"),__vite__mapDeps([14,1,2,13,15,4,7,5,6])),v5=Be("/work-pools/")({component:Re(p5,"component"),errorComponent:Re(m5,"errorComponent"),loader:({context:e})=>{e.queryClient.ensureQueryData(Sj()),e.queryClient.ensureQueryData(bm({limit:200,offset:0}))},wrapInSuspense:!0}),Ma={all:()=>["variables"],lists:()=>[...Ma.all(),"list"],"lists-filter":()=>[...Ma.lists(),"filter"],"list-filter":e=>[...Ma["lists-filter"](),e],counts:()=>[...Ma.all(),"counts"],count:e=>[...Ma.counts(),e]},g5=(e={offset:0,limit:10,sort:"CREATED_DESC"})=>be({queryKey:Ma["list-filter"](e),queryFn:async()=>(await(await ne()).POST("/variables/filter",{body:e})).data??[],placeholderData:qe}),Cb=e=>be({queryKey:Ma.count(e),queryFn:async()=>(await(await ne()).POST("/variables/count",{body:e})).data??0,placeholderData:qe}),II=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/variables/",{body:o}),onSettled:async()=>await e.invalidateQueries({queryKey:Ma.all()})});return{createVariable:n,...r}},zI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>{const{id:l,...u}=o;return(await ne()).PATCH("/variables/{id}",{params:{path:{id:l}},body:u})},onSettled:async()=>await e.invalidateQueries({queryKey:Ma.all()})});return{updateVariable:n,...r}},FI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>await(await ne()).DELETE("/variables/{id}",{params:{path:{id:o}}}),onSettled:async()=>await e.invalidateQueries({queryKey:Ma.all()})});return{deleteVariable:n,...r}},y5=()=>Ae(()=>import("./index-DfKXdmko.js"),__vite__mapDeps([16,1,2,12,17,4,5,6,7])),b5=()=>Ae(()=>import("./index-C5RMFRyZ.js"),__vite__mapDeps([18,1,2,19,20,21,15,4,22,17,23,6,24,5,7])),x5=xt({offset:Et().int().nonnegative().optional().default(0).catch(0),limit:Et().int().positive().optional().default(10).catch(10),sort:rt(["CREATED_DESC","UPDATED_DESC","NAME_ASC","NAME_DESC"]).optional().default("CREATED_DESC").catch("CREATED_DESC"),name:ze().optional().catch(void 0),tags:xa(ze()).optional().catch(void 0)}),w5=e=>({offset:e?.offset??0,limit:e?.limit??10,sort:e?.sort??"CREATED_DESC",variables:{operator:"and_",...e?.name&&{name:{like_:e.name}},...e?.tags?.length&&{tags:{operator:"and_",all_:e.tags}}}}),S5=Be("/variables/")({validateSearch:Lt(x5),component:Re(b5,"component"),errorComponent:Re(y5,"errorComponent"),loaderDeps:({search:e})=>w5(e),loader:({deps:e,context:n})=>{n.queryClient.prefetchQuery(g5(e)),n.queryClient.prefetchQuery(Cb(e)),n.queryClient.prefetchQuery(Cb())},wrapInSuspense:!0}),ac=["Scheduled","Late","Resuming","AwaitingRetry","AwaitingConcurrencySlot","Pending","Paused","Suspended","Running","Retrying","Completed","Cached","Cancelled","Cancelling","Crashed","Failed","TimedOut"],kb=ac.filter(e=>e!=="Scheduled"),UI=["Pending","Paused","Suspended","Running","Retrying","Completed","Cancelled","Cancelling","Crashed","Failed","TimedOut"],qI={Scheduled:"SCHEDULED",Late:"SCHEDULED",Resuming:"SCHEDULED",AwaitingRetry:"SCHEDULED",AwaitingConcurrencySlot:"SCHEDULED",Pending:"PENDING",Paused:"PAUSED",Suspended:"PAUSED",Running:"RUNNING",Retrying:"RUNNING",Completed:"COMPLETED",Cached:"COMPLETED",Cancelled:"CANCELLED",Cancelling:"CANCELLING",Crashed:"CRASHED",Failed:"FAILED",TimedOut:"FAILED"},Nw=3600,Fm=86400,Aw=Fm,Rw=Fm*7,jw=Fm*30,E5=["past-hour","past-24-hours","past-7-days","past-30-days","today"];function _5(e){if(e.start&&e.end)return{type:"range",startDate:new Date(e.start),endDate:new Date(e.end)};switch(e.range){case"past-hour":return{type:"span",seconds:-Nw};case"past-24-hours":return{type:"span",seconds:-Aw};case"past-7-days":return{type:"span",seconds:-Rw};case"past-30-days":return{type:"span",seconds:-jw};case"today":return{type:"period",period:"Today"};default:return null}}function BI(e){if(!e)return{};switch(e.type){case"span":{const n=Math.abs(e.seconds);if(n===Nw)return{range:"past-hour"};if(n===Aw)return{range:"past-24-hours"};if(n===Rw)return{range:"past-7-days"};if(n===jw)return{range:"past-30-days"};const r=new Date,o=new Date(r.getTime()+e.seconds*1e3),l=r,[u,c]=e.seconds<0?[o,l]:[l,o];return{start:u.toISOString(),end:c.toISOString()}}case"period":return e.period==="Today"?{range:"today"}:{};case"range":return{start:e.startDate.toISOString(),end:e.endDate.toISOString()};case"around":{const n=iw(e.unit),r=Math.abs(e.quantity*n),o=new Date(e.date.getTime()-r*1e3),l=new Date(e.date.getTime()+r*1e3);return{start:o.toISOString(),end:l.toISOString()}}default:return{}}}const rc=["START_TIME_ASC","START_TIME_DESC","NAME_ASC","NAME_DESC"];function PI({...e}){return d.jsx(v_,{"data-slot":"alert-dialog",...e})}function T5({...e}){return d.jsx(w_,{"data-slot":"alert-dialog-portal",...e})}function D5({className:e,...n}){return d.jsx(S_,{"data-slot":"alert-dialog-overlay",className:$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...n})}function HI({className:e,...n}){return d.jsxs(T5,{children:[d.jsx(D5,{}),d.jsx(g_,{"data-slot":"alert-dialog-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n})]})}function $I({className:e,...n}){return d.jsx("div",{"data-slot":"alert-dialog-header",className:$("flex flex-col gap-2 text-center sm:text-left",e),...n})}function QI({className:e,...n}){return d.jsx("div",{"data-slot":"alert-dialog-footer",className:$("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function VI({className:e,...n}){return d.jsx(y_,{"data-slot":"alert-dialog-title",className:$("text-lg font-semibold",e),...n})}function GI({className:e,...n}){return d.jsx(b_,{"data-slot":"alert-dialog-description",className:$("text-muted-foreground text-sm",e),...n})}C5.displayName=Lb.displayName;function C5({className:e,variant:n="destructive",...r}){return d.jsx(Lb,{className:$(tl({variant:n}),e),...r})}function YI({className:e,...n}){return d.jsx(x_,{className:$(tl({variant:"outline"}),e),...n})}const k5=["EXPECTED_START_TIME_DESC","EXPECTED_START_TIME_ASC"],N5=()=>Ae(()=>import("./index-DiVKp6rW.js"),__vite__mapDeps([25,1,2,26,27,28,15,4,29,30,31,32,5,33,21,23,6,24,7])),A5=xt({tab:rt(["flow-runs","task-runs"]).optional().default("flow-runs"),page:Et().int().positive().optional().default(1).catch(1),limit:Et().int().positive().optional().catch(void 0),sort:rt(rc).optional().default("START_TIME_DESC"),"hide-subflows":Ib().optional().default(!1),"flow-run-search":ze().optional().default(""),state:ze().optional().default(""),flows:ze().optional().default(""),deployments:ze().optional().default(""),"work-pools":ze().optional().default(""),tags:ze().optional().default(""),range:rt(E5).optional(),start:ze().optional(),end:ze().optional(),"task-runs-page":Et().int().positive().optional().default(1).catch(1),"task-runs-limit":Et().int().positive().optional().catch(void 0),"task-runs-sort":rt(k5).optional().default("EXPECTED_START_TIME_DESC"),"task-run-search":ze().optional().default("")}),Um=e=>e?e.split(",").filter(n=>ac.includes(n)):[],qm=e=>{if(!e)return;const n={range:e.range,start:e.start,end:e.end},r=_5(n);if(!r)return;const o=jh(r);if(o)return{after_:o.startDate.toISOString(),before_:o.endDate.toISOString()}},Bm=e=>e?e.split(",").filter(n=>n.trim().length>0):[],Pm=e=>e?e.split(",").filter(n=>n.trim().length>0):[],Mw=e=>e?e.split(",").filter(n=>n.trim().length>0):[],Hm=e=>e?e.split(",").filter(n=>n.trim().length>0):[],R5=e=>{const n=e?.["hide-subflows"],r=e?.["flow-run-search"],o=Um(e?.state??""),l=Bm(e?.flows??""),u=Pm(e?.deployments??""),c=Mw(e?.["work-pools"]??""),h=Hm(e?.tags??""),p=qm(e),g=o.length>0?o:void 0,y=l.length>0?l:void 0,v=u.length>0?u:void 0,b=c.length>0?c:void 0,E=n||r||g||y||v||h.length>0||p?{operator:"and_",...n&&{parent_task_run_id:{operator:"and_",is_null_:!0}},...r&&{name:{like_:r}},...g&&{state:{operator:"and_",name:{any_:g}}},...h.length>0&&{tags:{operator:"and_",any_:h}},...p&&{expected_start_time:p}}:void 0,C=y?{operator:"and_",id:{any_:y}}:void 0,D=v?{operator:"and_",id:{any_:v}}:void 0,_=b?{operator:"and_",name:{any_:b}}:void 0;return{page:e?.page??1,limit:e?.limit??100,sort:e?.sort??"START_TIME_DESC",flow_runs:E,flows:C,deployments:D,work_pools:_}},j5=e=>{const n=e?.["task-run-search"],r=Um(e?.state??""),o=Bm(e?.flows??""),l=Pm(e?.deployments??""),u=Hm(e?.tags??""),c=qm(e),h=n?{operator:"and_",name:{like_:n}}:void 0,p=r.length>0?r:void 0,y=p||u.length>0||c?{operator:"and_",...p&&{state:{operator:"and_",name:{any_:p}}},...u.length>0&&{tags:{operator:"and_",any_:u}},...c&&{expected_start_time:c}}:void 0,v=o.length>0?o:void 0,b=v?{operator:"and_",id:{any_:v}}:void 0,w=l.length>0?l:void 0,E=w?{operator:"and_",id:{any_:w}}:void 0;return{page:e?.["task-runs-page"]??1,limit:e?.["task-runs-limit"]??100,sort:e?.["task-runs-sort"]??"EXPECTED_START_TIME_DESC",task_runs:h,flow_runs:y,flows:b,deployments:E}},M5=e=>{const n=e?.["hide-subflows"],r=Um(e?.state??""),o=Bm(e?.flows??""),l=Pm(e?.deployments??""),u=Mw(e?.["work-pools"]??""),c=Hm(e?.tags??""),h=qm(e),p=r.length>0?r:void 0,g=o.length>0?o:void 0,y=l.length>0?l:void 0,v=u.length>0?u:void 0;return{sort:"EXPECTED_START_TIME_DESC",limit:1e3,offset:0,flow_runs:n||p||c.length>0||h?{operator:"and_",...n&&{parent_task_run_id:{operator:"and_",is_null_:!0}},...p&&{state:{operator:"and_",name:{any_:p}}},...c.length>0&&{tags:{operator:"and_",any_:c}},...h&&{expected_start_time:h}}:void 0,flows:g?{operator:"and_",id:{any_:g}}:void 0,deployments:y?{operator:"and_",id:{any_:y}}:void 0,work_pools:v?{operator:"and_",name:{any_:v}}:void 0}},O5=Be("/runs/")({validateSearch:Lt(A5),component:Re(N5,"component"),loaderDeps:({search:e})=>({flowRunsDeps:R5(e),taskRunsDeps:j5(e),historyDeps:M5(e)}),loader:({deps:e,context:n})=>{n.queryClient.prefetchQuery(pt()),n.queryClient.prefetchQuery(Hn()),n.queryClient.prefetchQuery(Kr(e.flowRunsDeps,3e4)),n.queryClient.prefetchQuery(Cx(e.taskRunsDeps,3e4)),n.queryClient.prefetchQuery(gj(e.historyDeps,3e4)),(async()=>{const o=(await n.queryClient.ensureQueryData(Kr(e.flowRunsDeps,3e4)))?.results?.map(l=>l.id)??[];o.length>0&&n.queryClient.prefetchQuery(qo(o))})()},wrapInSuspense:!0}),L5=()=>Ae(()=>import("./index-D9cOtoSU.js"),__vite__mapDeps([34,1,2,12,6,4,5,7])),I5=()=>Ae(()=>import("./index-D0R9_LIL.js"),__vite__mapDeps([35,1,2,19,20,21,15,4,7,6,5])),z5=xt({name:ze().optional(),page:Et().int().positive().optional().default(1).catch(1),limit:Et().int().positive().max(100).optional().default(10).catch(10),tags:xa(ze()).optional(),sort:rt(["CREATED_DESC","UPDATED_DESC","NAME_ASC","NAME_DESC"]).optional().default("NAME_ASC")}).optional().default({}),F5=e=>{const n=!!e?.name,r=!!e?.tags?.length;return!n&&!r?{page:e?.page??1,limit:e?.limit??10,sort:e?.sort??"NAME_ASC"}:{page:e?.page??1,limit:e?.limit??10,sort:e?.sort??"NAME_ASC",flows:{operator:"and_",...n&&{name:{like_:e?.name}},...r&&{tags:{operator:"and_",all_:e?.tags}}}}},U5=Be("/flows/")({validateSearch:Lt(z5),component:Re(I5,"component"),errorComponent:Re(L5,"errorComponent"),loaderDeps:({search:e})=>F5(e),loader:({deps:e,context:n})=>{n.queryClient.prefetchQuery(yj(e,3e4)),n.queryClient.prefetchQuery(ub({offset:0,sort:e.sort,flows:e.flows??void 0})),n.queryClient.prefetchQuery(ub({offset:0,sort:"NAME_ASC"}))},wrapInSuspense:!0}),Ow=["prefect.log.write"],Nb=1e3;function q5(e){const n=new Date(e);return n.setSeconds(0,0),n}function Lw(e){if(e.rangeType==="range"&&e.start&&e.end)return{from:e.start,to:e.end};const n=q5(new Date),r=e.seconds??-86400,o=new Date(n.getTime()+r*1e3),[l,u]=[n,o].sort((c,h)=>c.getTime()-h.getTime());return{from:l.toISOString(),to:u.toISOString()}}function B5(e,n){const r=typeof e=="string"?new Date(e):e,o=typeof n=="string"?new Date(n):n,u=Math.abs(o.getTime()-r.getTime())/1e3/60,c=u/60;return u<=Nb?"minute":c<=Nb?"hour":"day"}function P5(e){const{from:n,to:r}=Lw(e),o={occurred:{since:n,until:r},order:e.order??"DESC"};e.resource&&e.resource.length>0&&(o.any_resource={id_prefix:e.resource});const l={exclude_prefix:Ow};return e.event&&e.event.length>0&&(l.prefix=e.event),o.event=l,{filter:o,limit:50}}function H5(e){const{from:n,to:r}=Lw(e),o=B5(n,r),l={occurred:{since:n,until:r},order:e.order??"DESC"};e.resource&&e.resource.length>0&&(l.any_resource={id_prefix:e.resource});const u={exclude_prefix:Ow};return e.event&&e.event.length>0&&(u.prefix=e.event),l.event=u,{filter:l,time_unit:o,time_interval:1}}const Bn={all:()=>["events"],lists:()=>[...Bn.all(),"list"],"lists-filter":()=>[...Bn.lists(),"filter"],"list-filter":e=>[...Bn["lists-filter"](),e],counts:()=>[...Bn.all(),"counts"],count:(e,n)=>[...Bn.counts(),e,n],history:()=>[...Bn.all(),"history"],historyFilter:e=>[...Bn.history(),e],detail:(e,n)=>[...Bn.all(),"detail",e,n?.toISOString()]},$5=(e,n=6e4)=>be({queryKey:Bn["list-filter"](e),queryFn:async()=>{const r=await(await ne()).POST("/events/filter",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),KI=(e,n,r=6e4)=>be({queryKey:Bn.count(e,n),queryFn:async()=>(await(await ne()).POST("/events/count-by/{countable}",{params:{path:{countable:e}},body:n})).data??[],refetchInterval:r}),Q5=(e,n=6e4)=>be({queryKey:Bn.historyFilter(e),queryFn:async()=>(await(await ne()).POST("/events/count-by/{countable}",{params:{path:{countable:"time"}},body:e})).data??[],placeholderData:qe,staleTime:1e3,refetchInterval:n}),WI=e=>be({queryKey:[...Bn.lists(),"next",e],queryFn:async()=>{const r=new URL(e).searchParams.get("page-token");if(!r)throw new Error("'page-token' query parameter expected in next_page URL");const o=await(await ne()).GET("/events/filter/next",{params:{query:{"page-token":r}}});if(!o.data)throw new Error("'data' expected");return o.data},staleTime:Number.POSITIVE_INFINITY}),Iw=(e,n)=>be({queryKey:Bn.detail(e,n),queryFn:async()=>{const r=new Date(n);r.setHours(0,0,0,0);const o=new Date(r);o.setDate(o.getDate()+1);const l={filter:{id:{id:[e]},occurred:{since:r.toISOString(),until:o.toISOString()},order:"DESC"},limit:1},u=await(await ne()).POST("/events/filter",{body:l});if(!u.data?.events?.[0])throw new Error("Event not found");return u.data.events[0]},staleTime:6e4}),V5=()=>Ae(()=>import("./index-VNFzALsC.js"),__vite__mapDeps([36,1,2,5,7,4,37,38,39,6])),G5=xt({resource:xa(ze()).optional(),event:xa(ze()).optional(),rangeType:rt(["span","range"]).optional().default("span"),seconds:Et().optional().default(-86400),start:ze().optional(),end:ze().optional(),order:rt(["ASC","DESC"]).optional()});function Y5(){return d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx(ke,{className:"h-8 w-48"}),d.jsxs("div",{className:"flex flex-wrap gap-4",children:[d.jsx(ke,{className:"h-10 w-48"}),d.jsx(ke,{className:"h-10 w-48"}),d.jsx(ke,{className:"h-10 w-48"})]}),d.jsx(ke,{className:"h-32 w-full"}),d.jsx(ke,{className:"h-64 w-full"})]})}const K5=Be("/events/")({validateSearch:Lt(G5),loaderDeps:({search:e})=>e,wrapInSuspense:!0,pendingComponent:Y5,loader:({deps:e,context:{queryClient:n}})=>{const r=P5(e),o=H5(e);n.prefetchQuery($5(r)),n.prefetchQuery(Q5(o))},component:Re(V5,"component")}),W5=()=>Ae(()=>import("./index-BO60ehN6.js"),__vite__mapDeps([40,1,2,41,12,4,5,6,7])),X5=()=>Ae(()=>import("./index-DP8W-xJo.js"),__vite__mapDeps([42,1,2,43,44,31,19,20,30,45,46,7,4,22,47,21,15,41,5,6])),Z5=xt({page:Et().int().positive().optional().default(1).catch(1),limit:Et().int().positive().optional().default(10).catch(10),sort:rt(["NAME_ASC","NAME_DESC","CREATED_DESC","UPDATED_DESC"]).optional().default("NAME_ASC").catch("NAME_ASC"),flowOrDeploymentName:ze().optional().catch(""),tags:xa(ze()).optional().catch([])}),J5=e=>({page:e?.page??1,limit:e?.limit??10,sort:e?.sort??"NAME_ASC",deployments:{operator:"and_",flow_or_deployment_name:{like_:e?.flowOrDeploymentName??""},tags:{operator:"and_",all_:e?.tags??[]}}}),e9=Be("/deployments/")({validateSearch:Lt(Z5),component:Re(X5,"component"),errorComponent:Re(W5,"errorComponent"),loaderDeps:({search:e})=>J5(e),loader:async({deps:e,context:n})=>{const r=n.queryClient.ensureQueryData(pj()),o=await n.queryClient.ensureQueryData(gm(e)),l=o?.results??[],u=[...new Set(l.map(h=>h.flow_id))],c=n.queryClient.ensureQueryData(nl({flows:{operator:"and_",id:{any_:u}},offset:0,sort:"NAME_ASC"}));return{deploymentsCountResult:r,deploymentsPaginateResult:o,flowsFilterResult:c}},wrapInSuspense:!0}),Lo={all:()=>["global-concurrency-limits"],lists:()=>[...Lo.all(),"list"],list:e=>[...Lo.lists(),e]},zw=(e={offset:0})=>be({queryKey:Lo.list(e),queryFn:async()=>(await(await ne()).POST("/v2/concurrency_limits/filter",{body:e})).data??[]}),XI=(e={offset:0})=>Io(zw(e)),ZI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/v2/concurrency_limits/{id_or_name}",{params:{path:{id_or_name:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:Lo.lists()})});return{deleteGlobalConcurrencyLimit:n,...r}},JI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/v2/concurrency_limits/",{body:o}),onSuccess:()=>e.invalidateQueries({queryKey:Lo.lists()})});return{createGlobalConcurrencyLimit:n,...r}},ez=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id_or_name:o,...l})=>(await ne()).PATCH("/v2/concurrency_limits/{id_or_name}",{body:l,params:{path:{id_or_name:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:Lo.lists()})});return{updateGlobalConcurrencyLimit:n,...r}},oa={all:()=>["task-run-concurrency-limits"],lists:()=>[...oa.all(),"list"],list:e=>[...oa.lists(),e],details:()=>[...oa.all(),"details"],detail:e=>[...oa.details(),e],activeTaskRuns:()=>[...oa.details(),"active-task-runs"],activeTaskRun:e=>[...oa.activeTaskRuns(),e]},Fw=(e={offset:0})=>be({queryKey:oa.list(e),queryFn:async()=>(await(await ne()).POST("/concurrency_limits/filter",{body:e})).data??[],refetchInterval:3e4}),Uw=async e=>{const n=await(await ne()).GET("/concurrency_limits/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data},tz=e=>be({queryKey:oa.detail(e),queryFn:()=>Uw(e)}),nz=(e={offset:0})=>Io(Fw(e)),az=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/concurrency_limits/{id}",{params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:oa.lists()})});return{deleteTaskRunConcurrencyLimit:n,...r}},rz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/concurrency_limits/",{body:o}),onSuccess:()=>e.invalidateQueries({queryKey:oa.lists()})});return{createTaskRunConcurrencyLimit:n,...r}},iz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/concurrency_limits/tag/{tag}/reset",{params:{path:{tag:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:oa.all()})});return{resetTaskRunConcurrencyLimitTag:n,...r}},t9=async e=>{const n=await(await ne()).POST("/task_runs/filter",{body:{task_runs:{id:{any_:e},operator:"or_"},sort:"NAME_DESC",offset:0}});if(!n.data)throw new Error("'data' expected");const r=[],o=[];for(const v of n.data)v.flow_run_id?r.push(v):o.push(v);const l=o.map(v=>({taskRun:v,flowRun:null,flow:null}));if(r.length===0)return l;const u=r.map(v=>v.flow_run_id),c=await(await ne()).POST("/flow_runs/filter",{body:{flow_runs:{id:{any_:u},operator:"or_"},sort:"NAME_DESC",offset:0}});if(!c.data)throw new Error("'data' expected");if(!c.data.every(v=>v.flow_id===c.data[0].flow_id))throw new Error("Flow runs has mismatching 'flow_id'");const p=c.data[0].flow_id,g=await(await ne()).GET("/flows/{id}",{params:{path:{id:p}}});if(!g.data)throw new Error("'data' expected");return[...r.map(v=>{const b=c.data.find(w=>w.id===v.flow_run_id);if(!b)throw new Error('"Expected to find flowRun');return{taskRun:v,flowRun:b,flow:g.data}}),...l]},n9=e=>be({queryKey:oa.activeTaskRun(e),queryFn:async()=>{const n=await Uw(e);if(!n.active_slots)throw new Error("'active_slots' expected");const r=t9(n.active_slots);return{taskRunConcurrencyLimit:n,activeTaskRunsPromise:r}}}),a9=()=>Ae(()=>import("./index-D6G96ToY.js"),__vite__mapDeps([48,1,2,19,20,15,4,24,6,23,49,5,7])),r9=xt({search:ze().optional(),tab:rt(["global","task-run"]).default("global")}),i9=Be("/concurrency-limits/")({validateSearch:Lt(r9),component:Re(a9,"component"),wrapInSuspense:!0,loader:({context:e})=>Promise.all([e.queryClient.ensureQueryData(zw()),e.queryClient.ensureQueryData(Fw())])}),Xt={all:()=>["block-documents"],lists:()=>[...Xt.all(),"list"],listFilters:()=>[...Xt.lists(),"filter"],listFilter:e=>[...Xt.listFilters(),e],counts:()=>[...Xt.all(),"count"],countAll:()=>[...Xt.counts(),"all"],countFilter:e=>[...Xt.counts(),e],details:()=>[...Xt.all(),"details"],detail:e=>[...Xt.details(),e]},o9=(e={offset:0,sort:"BLOCK_TYPE_AND_NAME_ASC",include_secrets:!1},{enabled:n=!0}={})=>be({queryKey:Xt.listFilter(e),queryFn:async()=>{const r=await(await ne()).POST("/block_documents/filter",{body:e});if(!r.data)throw new Error("'data' exoected");return r.data},placeholderData:qe,enabled:n}),s9=(e={offset:0,sort:"BLOCK_TYPE_AND_NAME_ASC",include_secrets:!1})=>be({queryKey:Xt.countFilter(e),queryFn:async()=>(await(await ne()).POST("/block_documents/count",{body:e})).data??0}),l9=()=>be({queryKey:Xt.countAll(),queryFn:async()=>(await(await ne()).POST("/block_documents/count")).data??0}),qw=e=>be({queryKey:Xt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/block_documents/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error('Expecting "data"');return n.data}}),oz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/block_documents/{id}",{params:{path:{id:o}}}),onSettled:()=>Promise.all([e.invalidateQueries({queryKey:Xt.lists()}),e.invalidateQueries({queryKey:Xt.counts()})])});return{deleteBlockDocument:n,...r}},sz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>{const l=await(await ne()).POST("/block_documents/",{body:o});if(!l.data)throw new Error("'data' expected");return l.data},onSuccess:()=>{e.invalidateQueries({queryKey:Xt.lists()}),e.invalidateQueries({queryKey:Xt.counts()})}});return{createBlockDocument:n,...r}},lz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PATCH("/block_documents/{id}",{body:l,params:{path:{id:o}}}),onSuccess:(o,{id:l})=>{e.invalidateQueries({queryKey:Xt.lists()}),e.invalidateQueries({queryKey:Xt.detail(l)})}});return{updateBlockDocument:n,...r}},Qr={all:()=>["block-types"],lists:()=>[...Qr.all(),"list"],listFilters:()=>[...Qr.lists(),"filter"],listFilter:e=>[...Qr.listFilters(),e],details:()=>[...Qr.all(),"detail"],detailsSlug:()=>[...Qr.details(),"slug"],detailSlug:e=>[...Qr.detailsSlug(),e]},Bw=(e={offset:0})=>be({queryKey:Qr.listFilter(e),queryFn:async()=>{const n=await(await ne()).POST("/block_types/filter",{body:e});if(!n.data)throw new Error("'data' expected");return n.data}}),Pw=e=>be({queryKey:Qr.detailSlug(e),queryFn:async()=>{const n=await(await ne()).GET("/block_types/slug/{slug}",{params:{path:{slug:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),u9=()=>Ae(()=>import("./index-DEpWUeaO.js"),__vite__mapDeps([50,1,2,51,15,4,31,19,20,30,52,53,5,6,7])),c9=xt({blockName:ze().optional(),blockTypes:xa(ze()).optional(),page:Et().int().positive().optional().default(1).catch(1),limit:Et().int().positive().optional().default(10).catch(10)}),d9=Be("/blocks/")({validateSearch:Lt(c9),component:Re(u9,"component"),loaderDeps:({search:{blockName:e,blockTypes:n,page:r,limit:o}})=>({blockName:e,blockTypes:n,page:r,limit:o}),loader:({deps:e,context:{queryClient:n}})=>{const r={block_types:{slug:{any_:e.blockTypes}},block_documents:{is_anonymous:{eq_:!1},operator:"or_",name:{like_:e.blockName}},limit:e.limit,offset:e.page,include_secrets:!1,sort:"NAME_ASC"};return Promise.all([n.ensureQueryData(Bw()),n.ensureQueryData(l9()),n.ensureQueryData(o9(r)),n.ensureQueryData(s9(r))])},wrapInSuspense:!0}),Nn={all:()=>["automations"],lists:()=>[...Nn.all(),"list"],filters:()=>[...Nn.lists(),"filter"],filter:e=>[...Nn.filters(),e],relates:()=>[...Nn.lists(),"relates"],relate:e=>[...Nn.relates(),e],details:()=>[...Nn.all(),"details"],detail:e=>[...Nn.details(),e]},f9=(e={sort:"CREATED_DESC",offset:0})=>be({queryKey:Nn.filter(e),queryFn:async()=>{const n=await(await ne()).POST("/automations/filter",{body:e});if(!n.data)throw new Error("'data' expected");return n.data}}),Hw=e=>be({queryKey:Nn.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/automations/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),h9=e=>be({queryKey:Nn.relate(e),queryFn:async()=>(await(await ne()).GET("/automations/related-to/{resource_id}",{params:{path:{resource_id:e}}})).data??[]}),uz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/automations/{id}",{params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:Nn.lists()})});return{deleteAutomation:n,...r}},cz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/automations/",{body:o}),onSuccess:()=>e.invalidateQueries({queryKey:Nn.lists()})});return{createAutomation:n,...r}},dz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PATCH("/automations/{id}",{body:l,params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:Nn.all()})});return{updateAutomation:n,...r}},fz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PUT("/automations/{id}",{body:l,params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:Nn.all()})});return{replaceAutomation:n,...r}},hz=()=>{const{mutateAsync:e,...n}=Ie({mutationFn:async r=>{const o=await ET(),l=await fetch(`${o}/automations/templates/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(l.ok)return{valid:!0};try{const u=await l.json();if(u?.error)return{valid:!1,error:`Error on line ${u.error.line}: ${u.error.message}`}}catch{}return{valid:!1,error:"Template validation failed"}}});return{validateTemplate:e,...n}},m9=()=>Ae(()=>import("./index-BIBIJufF.js"),__vite__mapDeps([54,1,2,55,12,4,5,6,7])),p9=()=>Ae(()=>import("./index-BS7fbJ2s.js"),__vite__mapDeps([56,1,2,30,57,58,47,15,4,31,55,5,6,7])),v9=Be("/automations/")({component:Re(p9,"component"),errorComponent:Re(m9,"errorComponent"),loader:({context:e})=>e.queryClient.ensureQueryData(f9()),wrapInSuspense:!0}),ia={all:()=>["artifacts"],lists:()=>[...ia.all(),"list"],"lists-filter":()=>[...ia.lists(),"filter"],"list-filter":e=>[...ia["lists-filter"](),e],counts:()=>[...ia.all(),"counts"],count:e=>[...ia.counts(),e],details:()=>[...ia.all(),"details"],detail:e=>[...ia.details(),e],"task-run-result":e=>[...ia.all(),"task-run-result",e]},yc=(e={offset:0,sort:"ID_DESC"})=>be({queryKey:ia["list-filter"](e),queryFn:async()=>(await(await ne()).POST("/artifacts/filter",{body:e})).data??[],placeholderData:qe}),g9=(e={offset:0,sort:"ID_DESC"})=>be({queryKey:ia.count(e),queryFn:async()=>(await(await ne()).POST("/artifacts/count",{body:e})).data??0,placeholderData:0}),y9=e=>be({queryKey:ia.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/artifacts/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),mz=e=>be({queryKey:ia["task-run-result"](e),queryFn:async()=>(await(await ne()).POST("/artifacts/filter",{body:{artifacts:{operator:"and_",task_run_id:{any_:[e]},type:{any_:["result"]}},sort:"CREATED_DESC",offset:0,limit:1}})).data?.[0]??null}),b9=()=>Ae(()=>import("./index-WIq8QUNT.js"),__vite__mapDeps([59,1,2,60,61,62,4,63,5,6,7])),x9=xt({type:ze().optional().catch(""),name:ze().optional().catch("")}),w9=e=>({artifacts:{operator:"and_",type:{any_:e?.type&&e?.type!=="all"?[e.type]:void 0},key:{like_:e?.name??""}},sort:"CREATED_DESC",offset:0}),S9=Be("/artifacts/")({validateSearch:Lt(x9),component:Re(b9,"component"),loaderDeps:({search:e})=>w9(e),loader:async({deps:e,context:n})=>{const[r,o]=await Promise.all([n.queryClient.ensureQueryData(g9(e)),n.queryClient.ensureQueryData(yc(e))]);return{artifactsCount:r,artifactsList:o}},wrapInSuspense:!0}),$w={all:()=>["collections"],workPoolTypes:()=>[...$w.all(),"work-pool-types"]},E9=()=>be({queryKey:$w.workPoolTypes(),queryFn:async()=>{const e=await(await ne()).GET("/collections/views/{view}",{params:{path:{view:"aggregate-worker-metadata"}}});if(!e.data)throw new Error("'data' expected");return e.data}}),_9=()=>Ae(()=>import("./create-BrNwbpVu.js"),__vite__mapDeps([64,1,2,23,6,24,4,65,66,67,63,62,68,15,7,69,70,52,5,3])),T9=Be("/work-pools/create")({component:Re(_9,"component"),loader:({context:{queryClient:e}})=>{e.prefetchQuery(E9())},wrapInSuspense:!0}),D9=()=>Ae(()=>import("./catalog-CPzaK8QS.js"),__vite__mapDeps([71,1,2,52,61,4,5,6,7])),C9=xt({blockName:ze().optional()}),k9=Be("/blocks/catalog")({validateSearch:Lt(C9),component:Re(D9,"component"),loaderDeps:({search:{blockName:e}})=>({blockName:e}),loader:({deps:e,context:{queryClient:n}})=>n.ensureQueryData(Bw({block_types:{name:{like_:e.blockName}},offset:0})),wrapInSuspense:!0}),N9=()=>Ae(()=>import("./create-DWgkh2HT.js"),__vite__mapDeps([72,1,2,73,6,74,23,24,4,65,66,75,3,37,21,76,5,7])),A9=xt({actions:zb(Fb()).optional(),eventId:ze().optional(),eventDate:ze().optional()});function R9(e){const[n,r,o]=e.split("-").map(Number);return new Date(n,r-1,o)}const j9=Be("/automations/create")({component:Re(N9,"component"),validateSearch:Lt(A9),loaderDeps:({search:e})=>({eventId:e.eventId,eventDate:e.eventDate}),loader:({deps:e,context:{queryClient:n}})=>{if(e.eventId&&e.eventDate){const r=R9(e.eventDate);n.prefetchQuery(Iw(e.eventId,r))}},wrapInSuspense:!0}),M9=()=>Ae(()=>import("./work-pool._workPoolName-BwIVfCIe.js"),__vite__mapDeps([77,1,2,43,44,31,19,20,30,45,46,7,4,22,47,21,15,28,78,23,6,24,66,5])),O9=xt({tab:rt(["Details","Runs","Work Queues","Workers","Deployments"]).default("Runs")}),L9=Be("/work-pools/work-pool/$workPoolName")({validateSearch:Lt(O9),component:Re(M9,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(kx(e.workPoolName));return n.prefetchQuery(nc(e.workPoolName)),n.prefetchQuery(xm(e.workPoolName)),n.ensureQueryData(nc(e.workPoolName)).then(o=>Promise.all(o.map(l=>n.prefetchQuery(pt({work_pools:{operator:"and_",name:{any_:[e.workPoolName]}},work_pool_queues:{operator:"and_",name:{any_:[l.name]}},flow_runs:{operator:"and_",state:{operator:"and_",name:{any_:["Late"]}}}},3e4))))),n.ensureQueryData(Kr({page:1,limit:10,sort:"START_TIME_DESC",work_pools:{operator:"and_",name:{any_:[e.workPoolName]}}})).then(o=>Promise.all((o.results??[]).map(l=>n.prefetchQuery(qo([l.id]))))),n.prefetchQuery(pt({work_pools:{operator:"and_",name:{any_:[e.workPoolName]}}})),n.prefetchQuery(gm({page:1,limit:50,sort:"CREATED_DESC",work_pools:{operator:"and_",name:{any_:[e.workPoolName]}}})),{workPool:r}},wrapInSuspense:!0}),Hs={all:()=>["logs"],lists:()=>[...Hs.all(),"list"],list:e=>[...Hs.lists(),e],infiniteLists:()=>[...Hs.lists(),"infinite"],infiniteList:e=>[...Hs.infiniteLists(),e]},Qw=e=>dE({queryKey:Hs.infiniteList(e),queryFn:async({pageParam:n={offset:0}})=>(await(await ne()).POST("/logs/filter",{body:{...e,offset:n.offset}})).data??[],initialPageParam:{offset:0},getNextPageParam:(n,r)=>{if(n.length!==0)return{offset:r.reduce((o,l)=>o+l.length,0)}},placeholderData:qe}),I9=()=>Ae(()=>import("./task-run._id-CQGeAiBh.js"),__vite__mapDeps([79,1,2,12,6,4,5,7])),z9=()=>Ae(()=>import("./task-run._id-cqXH0PMU.js"),__vite__mapDeps([80,1,2,60,61,62,4,81,7,75,30,31,15,53,6,5])),F9=xt({tab:rt(["Logs","Artifacts","TaskInputs","Details"]).default("Logs").catch("Logs")}),U9=Be("/runs/task-run/$id")({validateSearch:Lt(F9),component:Re(z9,"component"),loader:async({params:e,context:{queryClient:n}})=>{n.prefetchInfiniteQuery(Qw({limit:50,sort:"TIMESTAMP_ASC",logs:{operator:"and_",level:{ge_:0},task_run_id:{any_:[e.id]}}})),n.prefetchQuery(yc({artifacts:{operator:"and_",task_run_id:{any_:[e.id]},type:{not_any_:["result"]}},sort:"ID_DESC",offset:0})),await n.ensureQueryData(xj(e.id))},wrapInSuspense:!0,errorComponent:Re(I9,"errorComponent")}),q9=()=>Ae(()=>import("./flow-run._id-ZTkjj6bM.js"),__vite__mapDeps([82,1,2,6,4,5,7])),B9=()=>Ae(()=>import("./flow-run._id-BKv9Meqc.js"),__vite__mapDeps([83,1,2,12,6,4,5,7])),P9=()=>Ae(()=>import("./flow-run._id-DCYAnq0D.js"),__vite__mapDeps([84,1,2,81,7,4,75,60,61,62,85,67,23,6,63,68,15,24,30,31,27,28,33,21,5])),H9=xt({tab:rt(["Logs","TaskRuns","SubflowRuns","Artifacts","Details","Parameters","JobVariables"]).default("Logs").catch("Logs")}),$9=Be("/runs/flow-run/$id")({validateSearch:Lt(H9),component:Re(P9,"component"),loader:async({params:e,context:{queryClient:n}})=>{n.prefetchInfiniteQuery(Qw({limit:50,sort:"TIMESTAMP_ASC",logs:{operator:"and_",level:{ge_:0},flow_run_id:{any_:[e.id]}}})),n.prefetchQuery(yc({artifacts:{operator:"and_",flow_run_id:{any_:[e.id]},type:{not_any_:["result"]}},sort:"ID_DESC",offset:0})),n.prefetchQuery(Cx({page:1,sort:"EXPECTED_START_TIME_DESC",flow_runs:{operator:"and_",id:{any_:[e.id]}}}));try{await n.ensureQueryData(vj(e.id))}catch(r){throw r instanceof Error&&/not found/i.test(r.message)?fE():r}},wrapInSuspense:!0,errorComponent:Re(B9,"errorComponent"),notFoundComponent:Re(q9,"notFoundComponent")});function Q9(e,n){return{flows:{operator:"and_",id:{any_:[e]}},flow_runs:{operator:"and_",start_time:{is_null_:!1}},offset:0,limit:n,sort:"START_TIME_DESC"}}function V9(e){return{flows:{operator:"and_",id:{any_:[e]}},flow_runs:{operator:"and_",start_time:{is_null_:!1}}}}function bc(e){return{task_runs:{operator:"and_",subflow_runs:{exists_:!1}},flows:{operator:"and_",id:{any_:[e]}}}}function G9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED","RUNNING"]}}}}}function Y9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}}function K9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}}}function W9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["RUNNING"]}}}}}function X9(){const e=new Date;return e.setMinutes(0,0,0),e}function Z9(e){const n=X9(),r=new Date(n.getTime()-10080*60*1e3),o=r.toISOString(),l=n.toISOString(),u=Math.floor((n.getTime()-r.getTime())/1e3),c=Math.max(1,Math.floor(u/20));return{history_start:o,history_end:l,history_interval_seconds:c,flows:{operator:"and_",id:{any_:[e]}},task_runs:{operator:"and_",start_time:{after_:o,before_:l}}}}const J9=()=>Ae(()=>import("./flow._id-DhrxqQmD.js"),__vite__mapDeps([86,1,2,27,28,15,4,29,30,31,19,20,21,45,46,7,22,47,5,53,6])),e7=xt({tab:rt(["runs","deployments","details"]).optional().default("runs"),"runs.page":Et().int().positive().optional().default(1),"runs.limit":Et().int().positive().max(100).optional().default(10),"runs.sort":rt(rc).optional().default("START_TIME_DESC"),"runs.flowRuns.nameLike":ze().optional().default(""),"runs.flowRuns.state.name":xa(ze()).optional(),type:rt(["span","range"]).optional(),seconds:Et().int().positive().optional(),startDateTime:zy().optional(),endDateTime:zy().optional(),"deployments.page":Et().int().positive().optional().default(1),"deployments.limit":Et().int().positive().optional().default(10),"deployments.nameLike":ze().optional(),"deployments.tags":xa(ze()).optional(),"deployments.sort":rt(["CREATED_DESC","UPDATED_DESC","NAME_ASC","NAME_DESC"]).optional().default("NAME_ASC")}).optional().default({}),Ab=(e,n)=>{const r=e["runs.flowRuns.nameLike"],o=e["runs.flowRuns.state.name"]??[],u=r||o.length>0?{operator:"and_",...r&&{name:{like_:r}},...o.length>0&&{state:{operator:"and_",name:{any_:o}}}}:void 0;return{page:e["runs.page"],limit:e["runs.limit"],sort:e["runs.sort"],flow_runs:u,flows:{operator:"and_",id:{any_:[n]}}}},t7=Be("/flows/flow/$id")({component:Re(J9,"component"),validateSearch:Lt(e7),loaderDeps:({search:e})=>({flowRunsDeps:e}),loader:({params:{id:e},context:n,deps:r})=>(n.queryClient.prefetchQuery(tc(e)),n.queryClient.prefetchQuery(Kr(Ab(r.flowRunsDeps,e),3e4)),n.queryClient.prefetchQuery(gm({sort:r.flowRunsDeps["deployments.sort"],page:r.flowRunsDeps["deployments.page"],limit:r.flowRunsDeps["deployments.limit"],flows:{operator:"and_",id:{any_:[e]}},deployments:{operator:"and_",flow_or_deployment_name:{like_:r.flowRunsDeps["deployments.nameLike"]},tags:{operator:"and_",all_:r.flowRunsDeps["deployments.tags"]||[]}}})),n.queryClient.prefetchQuery(bj([e])),n.queryClient.prefetchQuery(mr(Q9(e,60),3e4)),n.queryClient.prefetchQuery(pt(V9(e),3e4)),n.queryClient.prefetchQuery(Hn(G9(e),3e4)),n.queryClient.prefetchQuery(Hn(Y9(e),3e4)),n.queryClient.prefetchQuery(Hn(K9(e),3e4)),n.queryClient.prefetchQuery(Hn(W9(e),3e4)),n.queryClient.prefetchQuery(ym(Z9(e),3e4)),(async()=>{const u=(await n.queryClient.ensureQueryData(Kr(Ab(r.flowRunsDeps,e),3e4)))?.results?.map(c=>c.id)??[];u.length>0&&n.queryClient.prefetchQuery(qo(u))})(),n.queryClient.ensureQueryData(tc(e))),wrapInSuspense:!0}),n7=Be("/flow-runs/task-run/$id")({beforeLoad:({params:e,search:n})=>{rl({to:"/runs/task-run/$id",params:{id:e.id},search:n,throw:!0})}}),a7=Be("/flow-runs/flow-run/$id")({beforeLoad:({params:e,search:n})=>{rl({to:"/runs/flow-run/$id",params:{id:e.id},search:n,throw:!0})}}),va={all:()=>["work-queues"],lists:()=>[...va.all(),"list"],filters:()=>[...va.lists(),"filter"],filter:e=>[...va.filters(),e],workPoolFilters:(e,n)=>[...va.filters(),e,{...n}],details:()=>[...va.all(),"details"],detail:(e,n)=>[...va.details(),e,n],detailById:e=>[...va.details(),"by-id",e]},pz=(e={offset:0},{enabled:n=!0}={})=>be({queryKey:va.filter(e),queryFn:async()=>{const r=await(await ne()).POST("/work_queues/filter",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},enabled:n}),r7=({filter:e={offset:0},work_pool_name:n})=>be({queryKey:va.workPoolFilters(n??"",e),queryFn:async()=>{const r=await(await ne()).POST("/work_pools/{work_pool_name}/queues/filter",{params:{path:{work_pool_name:n??""}},body:e});if(!r.data)throw new Error("'data' expected");return r.data},enabled:!!n}),i7=(e,n)=>be({queryKey:va.detail(e,n),queryFn:async()=>{const r=await(await ne()).GET("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:e,name:n}}});if(!r.data)throw new Error("'data' expected");return r.data}}),vz=e=>be({queryKey:va.detailById(e),queryFn:async()=>{const n=await(await ne()).GET("/work_queues/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),o7=()=>Ae(()=>import("./deployment._id-DXrb6frJ.js"),__vite__mapDeps([87,1,2,12,6,4,5,7])),s7=()=>Ae(()=>import("./deployment._id-5rPcPD0T.js"),__vite__mapDeps([88,1,2,30,15,4,61,26,27,28,29,31,19,20,89,58,47,23,6,7,5,46,24,68,44])),l7=xt({tab:rt(["Runs","Upcoming","Parameters","Configuration","Description"]).default("Runs"),runs:xt({flowRuns:xt({name:ze().optional(),state:xa(rt(ac)).optional().default(kb).catch(kb)}).optional(),page:Et().int().positive().optional().default(1).catch(1),limit:Et().int().positive().optional().default(10).catch(10),sort:rt(rc).optional().default("START_TIME_DESC").catch("START_TIME_DESC")}).optional(),upcoming:xt({flowRuns:xt({name:ze().optional(),state:xa(rt(ac)).optional().default(["Scheduled"]).catch(["Scheduled"])}).optional(),page:Et().int().positive().optional().default(1).catch(1),limit:Et().int().positive().optional().default(5).catch(5),sort:rt(rc).optional().default("START_TIME_ASC").catch("START_TIME_ASC")}).optional()}),u7=Be("/deployments/deployment/$id")({validateSearch:Lt(l7),component:Re(s7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(ul(e.id));n.prefetchQuery(h9(`prefect.deployment.${e.id}`)),n.prefetchQuery(tc(r.flow_id)),r.work_pool_name&&r.work_queue_name&&n.prefetchQuery(i7(r.work_pool_name,r.work_queue_name))},wrapInSuspense:!0,errorComponent:Re(o7,"errorComponent")}),c7=()=>Ae(()=>import("./concurrency-limit._id-BFfR6_U0.js"),__vite__mapDeps([90,1,2,7,4,49,15,6,5])),d7=xt({tab:rt(["active-task-runs"]).default("active-task-runs")}),f7=Be("/concurrency-limits/concurrency-limit/$id")({validateSearch:Lt(d7),component:Re(c7,"component"),wrapInSuspense:!0,loader:({context:e,params:n})=>e.queryClient.ensureQueryData(n9(n.id))}),h7=()=>Ae(()=>import("./catalog_._slug-60h4tERz.js"),__vite__mapDeps([91,1,2,52,92,61,4,5,6,7])),m7=Be("/blocks/catalog_/$slug")({component:Re(h7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(Pw(e.slug)),wrapInSuspense:!0}),p7=()=>Ae(()=>import("./block._id-DFR6zmOy.js"),__vite__mapDeps([93,1,2,51,15,4,31,94,52,61,30,92,5,6,7])),v7=Be("/blocks/block/$id")({component:Re(p7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(qw(e.id)),wrapInSuspense:!0}),g7=()=>Ae(()=>import("./automation._id-CMiura1b.js"),__vite__mapDeps([95,1,2,30,57,58,47,15,4,31,5,6,7])),y7=Be("/automations/automation/$id")({component:Re(g7,"component"),loader:({context:e,params:n})=>e.queryClient.ensureQueryData(Hw(n.id)),wrapInSuspense:!0}),b7=()=>Ae(()=>import("./key._key-CX8FwfwL.js"),__vite__mapDeps([96,1,2,97,61,4,5,6,7])),x7=e=>({artifacts:{operator:"and_",key:{like_:e}},sort:"CREATED_DESC",offset:0}),w7=Be("/artifacts/key/$key")({component:Re(b7,"component"),loader:async({context:e,params:n})=>{const{key:r}=n;return{artifacts:await e.queryClient.ensureQueryData(yc(x7(r)))}},wrapInSuspense:!0}),S7=()=>Ae(()=>import("./artifact._id-BBhuX3px.js"),__vite__mapDeps([98,1,2,97,61,10,20,85,4,5,6,7])),E7=Be("/artifacts/artifact/$id")({component:Re(S7,"component"),loader:async({context:e,params:n})=>{const{id:r}=n;return{artifact:await e.queryClient.ensureQueryData(y9(r))}}}),_7=()=>Ae(()=>import("./work-pool_._workPoolName.edit-j7cjgoJp.js"),__vite__mapDeps([99,1,2,6,23,24,4,66,69,67,63,62,68,15,7,70,52,5])),T7=Be("/work-pools/work-pool_/$workPoolName/edit")({component:Re(_7,"component"),loader:async({context:e,params:n})=>{const{workPoolName:r}=n;return e.queryClient.ensureQueryData(kx(r))},wrapInSuspense:!0}),D7=()=>Ae(()=>import("./event._eventDate._eventId-CKTuT_8S.js"),__vite__mapDeps([100,1,2,73,6,24,4,3,76,15,38,39,7,5])),C7=xt({tab:rt(["details","raw"]).optional().default("details")});function k7(e){const[n,r,o]=e.split("-").map(Number);return new Date(n,r-1,o)}const N7=Be("/events/event/$eventDate/$eventId")({validateSearch:Lt(C7),component:Re(D7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=k7(e.eventDate);await n.ensureQueryData(Iw(e.eventId,r))},wrapInSuspense:!0}),A7=()=>Ae(()=>import("./deployment_._id.run-CnacOmhY.js"),__vite__mapDeps([101,1,2,67,23,6,63,62,4,68,15,7,24,66,21,102,5,89,58,47])),R7=xt({parameters:zb(Fb()).optional()}).optional(),j7=Be("/deployments/deployment_/$id/run")({validateSearch:Lt(R7),component:Re(A7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(ul(e.id));r.work_pool_name&&n.prefetchQuery(r7({work_pool_name:r.work_pool_name}))},wrapInSuspense:!0}),M7=()=>Ae(()=>import("./deployment_._id.edit-Daq0J0Ow.js"),__vite__mapDeps([103,1,2,102,104,67,23,6,63,62,4,68,15,7,24,21,5])),O7=Be("/deployments/deployment_/$id/edit")({component:Re(M7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(ul(e.id)),wrapInSuspense:!0}),L7=()=>Ae(()=>import("./deployment_._id.duplicate-D7YLydeq.js"),__vite__mapDeps([105,1,2,102,104,67,23,6,63,62,4,68,15,7,24,21,5])),I7=Be("/deployments/deployment_/$id/duplicate")({component:Re(L7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(ul(e.id)),wrapInSuspense:!0}),To={all:()=>["block-schemas"],lists:()=>[...To.all(),"list"],listFilters:()=>[...To.lists(),"filter"],listFilter:e=>[...To.lists(),"filter",e],details:()=>[...To.all(),"detail"],detail:e=>[...To.details(),e]},z7=(e={offset:0})=>be({queryKey:To.listFilter(e),queryFn:async()=>(await(await ne()).POST("/block_schemas/filter",{body:e})).data??[]}),F7=()=>Ae(()=>import("./catalog_._slug_.create-CgKL4TS2.js"),__vite__mapDeps([106,1,2,23,6,94,52,61,67,63,62,4,68,15,7,24,5])),U7=Be("/blocks/catalog_/$slug_/create")({component:Re(F7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(Pw(e.slug));n.ensureQueryData(z7({block_schemas:{block_type_id:{any_:[r.id]},operator:"and_"},offset:0}))},wrapInSuspense:!0}),q7=()=>Ae(()=>import("./block_._id.edit-C4SmoQ4y.js"),__vite__mapDeps([107,1,2,94,52,61,67,23,6,63,62,4,68,15,7,24,5])),B7=Be("/blocks/block_/$id/edit")({component:Re(q7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(qw(e.id)),wrapInSuspense:!0}),P7=()=>Ae(()=>import("./automation_._id.edit-Cbfcwa-K.js"),__vite__mapDeps([108,1,2,74,23,6,24,4,65,73,66,75,3,37,21,5,7])),H7=Be("/automations/automation_/$id/edit")({component:Re(P7,"component"),loader:({context:e,params:n})=>e.queryClient.ensureQueryData(Hw(n.id)),wrapInSuspense:!0}),$7=()=>Ae(()=>import("./work-pool_._workPoolName.queue._workQueueName-BlFjSdoB.js"),__vite__mapDeps([109,1,2,78,15,4,23,6,24,66,30,28,5,7])),Q7=xt({queueTab:rt(["Details","Upcoming Runs","Runs"]).default("Upcoming Runs")}),V7=Be("/work-pools/work-pool_/$workPoolName/queue/$workQueueName")({validateSearch:Lt(Q7),component:Re($7,"component"),loader:async({params:e,context:{queryClient:n}})=>({queue:await n.ensureQueryData(wj(e.workPoolName,e.workQueueName))}),wrapInSuspense:!0}),G7=dj.update({id:"/settings",path:"/settings",getParentRoute:()=>Fe}),Y7=mj.update({id:"/login",path:"/login",getParentRoute:()=>Fe}),K7=Lh.update({id:"/dashboard",path:"/dashboard",getParentRoute:()=>Fe}),W7=h5.update({id:"/",path:"/",getParentRoute:()=>Fe}),X7=v5.update({id:"/work-pools/",path:"/work-pools/",getParentRoute:()=>Fe}),Z7=S5.update({id:"/variables/",path:"/variables/",getParentRoute:()=>Fe}),J7=O5.update({id:"/runs/",path:"/runs/",getParentRoute:()=>Fe}),eL=U5.update({id:"/flows/",path:"/flows/",getParentRoute:()=>Fe}),tL=K5.update({id:"/events/",path:"/events/",getParentRoute:()=>Fe}),nL=e9.update({id:"/deployments/",path:"/deployments/",getParentRoute:()=>Fe}),aL=i9.update({id:"/concurrency-limits/",path:"/concurrency-limits/",getParentRoute:()=>Fe}),rL=d9.update({id:"/blocks/",path:"/blocks/",getParentRoute:()=>Fe}),iL=v9.update({id:"/automations/",path:"/automations/",getParentRoute:()=>Fe}),oL=S9.update({id:"/artifacts/",path:"/artifacts/",getParentRoute:()=>Fe}),sL=T9.update({id:"/work-pools/create",path:"/work-pools/create",getParentRoute:()=>Fe}),lL=k9.update({id:"/blocks/catalog",path:"/blocks/catalog",getParentRoute:()=>Fe}),uL=j9.update({id:"/automations/create",path:"/automations/create",getParentRoute:()=>Fe}),cL=L9.update({id:"/work-pools/work-pool/$workPoolName",path:"/work-pools/work-pool/$workPoolName",getParentRoute:()=>Fe}),dL=U9.update({id:"/runs/task-run/$id",path:"/runs/task-run/$id",getParentRoute:()=>Fe}),fL=$9.update({id:"/runs/flow-run/$id",path:"/runs/flow-run/$id",getParentRoute:()=>Fe}),hL=t7.update({id:"/flows/flow/$id",path:"/flows/flow/$id",getParentRoute:()=>Fe}),mL=n7.update({id:"/flow-runs/task-run/$id",path:"/flow-runs/task-run/$id",getParentRoute:()=>Fe}),pL=a7.update({id:"/flow-runs/flow-run/$id",path:"/flow-runs/flow-run/$id",getParentRoute:()=>Fe}),vL=u7.update({id:"/deployments/deployment/$id",path:"/deployments/deployment/$id",getParentRoute:()=>Fe}),gL=f7.update({id:"/concurrency-limits/concurrency-limit/$id",path:"/concurrency-limits/concurrency-limit/$id",getParentRoute:()=>Fe}),yL=m7.update({id:"/blocks/catalog_/$slug",path:"/blocks/catalog/$slug",getParentRoute:()=>Fe}),bL=v7.update({id:"/blocks/block/$id",path:"/blocks/block/$id",getParentRoute:()=>Fe}),xL=y7.update({id:"/automations/automation/$id",path:"/automations/automation/$id",getParentRoute:()=>Fe}),wL=w7.update({id:"/artifacts/key/$key",path:"/artifacts/key/$key",getParentRoute:()=>Fe}),SL=E7.update({id:"/artifacts/artifact/$id",path:"/artifacts/artifact/$id",getParentRoute:()=>Fe}),EL=T7.update({id:"/work-pools/work-pool_/$workPoolName/edit",path:"/work-pools/work-pool/$workPoolName/edit",getParentRoute:()=>Fe}),_L=N7.update({id:"/events/event/$eventDate/$eventId",path:"/events/event/$eventDate/$eventId",getParentRoute:()=>Fe}),TL=j7.update({id:"/deployments/deployment_/$id/run",path:"/deployments/deployment/$id/run",getParentRoute:()=>Fe}),DL=O7.update({id:"/deployments/deployment_/$id/edit",path:"/deployments/deployment/$id/edit",getParentRoute:()=>Fe}),CL=I7.update({id:"/deployments/deployment_/$id/duplicate",path:"/deployments/deployment/$id/duplicate",getParentRoute:()=>Fe}),kL=U7.update({id:"/blocks/catalog_/$slug_/create",path:"/blocks/catalog/$slug/create",getParentRoute:()=>Fe}),NL=B7.update({id:"/blocks/block_/$id/edit",path:"/blocks/block/$id/edit",getParentRoute:()=>Fe}),AL=H7.update({id:"/automations/automation_/$id/edit",path:"/automations/automation/$id/edit",getParentRoute:()=>Fe}),RL=V7.update({id:"/work-pools/work-pool_/$workPoolName/queue/$workQueueName",path:"/work-pools/work-pool/$workPoolName/queue/$workQueueName",getParentRoute:()=>Fe}),jL={IndexRoute:W7,DashboardRoute:K7,LoginRoute:Y7,SettingsRoute:G7,AutomationsCreateRoute:uL,BlocksCatalogRoute:lL,WorkPoolsCreateRoute:sL,ArtifactsIndexRoute:oL,AutomationsIndexRoute:iL,BlocksIndexRoute:rL,ConcurrencyLimitsIndexRoute:aL,DeploymentsIndexRoute:nL,EventsIndexRoute:tL,FlowsIndexRoute:eL,RunsIndexRoute:J7,VariablesIndexRoute:Z7,WorkPoolsIndexRoute:X7,ArtifactsArtifactIdRoute:SL,ArtifactsKeyKeyRoute:wL,AutomationsAutomationIdRoute:xL,BlocksBlockIdRoute:bL,BlocksCatalogSlugRoute:yL,ConcurrencyLimitsConcurrencyLimitIdRoute:gL,DeploymentsDeploymentIdRoute:vL,FlowRunsFlowRunIdRoute:pL,FlowRunsTaskRunIdRoute:mL,FlowsFlowIdRoute:hL,RunsFlowRunIdRoute:fL,RunsTaskRunIdRoute:dL,WorkPoolsWorkPoolWorkPoolNameRoute:cL,AutomationsAutomationIdEditRoute:AL,BlocksBlockIdEditRoute:NL,BlocksCatalogSlugCreateRoute:kL,DeploymentsDeploymentIdDuplicateRoute:CL,DeploymentsDeploymentIdEditRoute:DL,DeploymentsDeploymentIdRunRoute:TL,EventsEventEventDateEventIdRoute:_L,WorkPoolsWorkPoolWorkPoolNameEditRoute:EL,WorkPoolsWorkPoolWorkPoolNameQueueWorkQueueNameRoute:RL},ML=Fe._addFileChildren(jL)._addFileTypes(),$m=new hE,OL=mE({routeTree:ML,context:{queryClient:$m,auth:void 0},defaultPreload:"intent",defaultPreloadStaleTime:0});function LL(){const e=J4();return d.jsx(vE,{router:OL,context:{queryClient:$m,auth:e}})}const IL=()=>d.jsxs(pE,{client:$m,children:[d.jsx(Z4,{children:d.jsx(eN,{children:d.jsx(LL,{})})}),d.jsx(uT,{})]}),lh=document.getElementById("root");lh&&!lh.innerHTML&&oT.createRoot(lh).render(d.jsx(k.StrictMode,{children:d.jsx(IL,{})}));export{Sm as $,xI as A,Rx as B,Sa as C,H8 as D,Y8 as E,wI as F,n5 as G,wm as H,vt as I,SI as J,fM as K,r8 as L,xm as M,FA as N,dM as O,Ex as P,Sj as Q,mj as R,OO as S,bm as T,fx as U,UA as V,nM as W,Fj as X,Uj as Y,qj as Z,FI as _,IO as a,_m as a$,II as a0,zI as a1,Wj as a2,e8 as a3,t8 as a4,n8 as a5,AI as a6,NI as a7,kI as a8,S5 as a9,M8 as aA,O8 as aB,L8 as aC,jI as aD,ac as aE,O5 as aF,pt as aG,Hn as aH,Kr as aI,Cx as aJ,gj as aK,qo as aL,jh as aM,k5 as aN,E5 as aO,rc as aP,tb as aQ,mr as aR,DI as aS,uI as aT,bj as aU,Tm as aV,cI as aW,U5 as aX,ub as aY,yj as aZ,$ as a_,g5 as aa,Cb as ab,_5 as ac,GO as ad,BI as ae,nl as af,YM as ag,KM as ah,WM as ai,XM as aj,ZM as ak,JM as al,e6 as am,Ou as an,Mj as ao,al as ap,mI as aq,vj as ar,tc as as,fm as at,Ax as au,Ch as av,W1 as aw,G1 as ax,WR as ay,UI as az,LO as b,WN as b$,_8 as b0,ll as b1,KI as b2,$5 as b3,WI as b4,Lw as b5,P5 as b6,H5 as b7,Q5 as b8,ke as b9,tj as bA,E9 as bB,VL as bC,EI as bD,P8 as bE,Yj as bF,k9 as bG,CI as bH,cz as bI,j9 as bJ,Iw as bK,we as bL,BN as bM,_3 as bN,qA as bO,g8 as bP,mx as bQ,Y3 as bR,tA as bS,Z0 as bT,za as bU,Fa as bV,Ua as bW,Jr as bX,Z1 as bY,k3 as bZ,TI as b_,Mx as ba,Ox as bb,$u as bc,Lx as bd,Ix as be,K5 as bf,e9 as bg,pj as bh,gm as bi,ez as bj,JI as bk,Xj as bl,ZI as bm,XI as bn,rz as bo,nz as bp,Bw as bq,cb as br,l9 as bs,o9 as bt,d9 as bu,f9 as bv,fb as bw,S9 as bx,g9 as by,yc as bz,zO as c,u7 as c$,L9 as c0,kx as c1,Rt as c2,JO as c3,t5 as c4,e5 as c5,nc as c6,R8 as c7,p8 as c8,l3 as c9,jt as cA,at as cB,ia as cC,$9 as cD,Di as cE,d8 as cF,RI as cG,eI as cH,ym as cI,G9 as cJ,Y9 as cK,K9 as cL,W9 as cM,Z9 as cN,Q9 as cO,V9 as cP,t7 as cQ,u8 as cR,tI as cS,nI as cT,Cm as cU,km as cV,Nm as cW,Tw as cX,aI as cY,JL as cZ,h9 as c_,mz as ca,Qw as cb,xj as cc,hI as cd,U9 as ce,Ae as cf,kN as cg,X1 as ch,sI as ci,PI as cj,HI as ck,$I as cl,VI as cm,GI as cn,QI as co,YI as cp,C5 as cq,ox as cr,lI as cs,rI as ct,ul as cu,ne as cv,kb as cw,qI as cx,iI as cy,Hs as cz,OI as d,KL as d$,_x as d0,oI as d1,n9 as d2,f7 as d3,az as d4,iz as d5,IN as d6,pz as d7,tz as d8,qw as d9,dI as dA,y9 as dB,E7 as dC,_I as dD,T7 as dE,N7 as dF,Ej as dG,_j as dH,Tj as dI,Dj as dJ,j7 as dK,r7 as dL,O7 as dM,zw as dN,ZL as dO,I7 as dP,U7 as dQ,lz as dR,B7 as dS,fz as dT,H7 as dU,V7 as dV,wj as dW,mn as dX,BA as dY,$A as dZ,YL as d_,Hw as da,vz as db,oz as dc,QL as dd,dz as de,uz as df,i7 as dg,GL as dh,Pw as di,z7 as dj,sz as dk,MO as dl,s9 as dm,LI as dn,hz as dp,XL as dq,gI as dr,yI as ds,bI as dt,pI as du,vI as dv,m7 as dw,v7 as dx,y7 as dy,w7 as dz,Lu as e,MI as e0,oh as e1,fI as e2,dx as f,jx as g,kh as h,ZO as i,Wb as j,Kb as k,J4 as l,Ci as m,hc as n,Ba as o,hr as p,it as q,Q1 as r,jo as s,$8 as t,ZR as u,Q8 as v,V8 as w,G8 as x,WL as y,pR as z};
28
- //# sourceMappingURL=index-V_xTKaEb.js.map
27
+ `)}}):null},w8=E_,S8=k.forwardRef(({active:e,payload:n,className:r,indicator:o="dot",hideLabel:l=!1,hideIndicator:u=!1,label:c,labelFormatter:h,labelClassName:p,formatter:g,color:y,nameKey:v,labelKey:b},w)=>{const{config:E}=Ux(),C=k.useMemo(()=>{if(l||!n?.length)return null;const[_]=n,A=`${b||_.dataKey||_.name||"value"}`,N=Nh(E,_,A),M=!b&&typeof c=="string"?E[c]?.label||c:N?.label;return h?d.jsx("div",{className:$("font-medium",p),children:h(M,n)}):M?d.jsx("div",{className:$("font-medium",p),children:M}):null},[c,h,n,l,p,E,b]);if(!e||!n?.length)return null;const D=n.length===1&&o!=="dot";return d.jsxs("div",{ref:w,className:$("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[D?null:C,d.jsx("div",{className:"grid gap-1.5",children:n.map((_,A)=>{const N=`${v||_.name||_.dataKey||"value"}`,M=Nh(E,_,N),O=y||_.payload.fill||_.color;return d.jsx("div",{className:$("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",o==="dot"&&"items-center"),children:g&&_?.value!==void 0&&_.name?g(_.value,_.name,_,A,_.payload):d.jsxs(d.Fragment,{children:[M?.icon?d.jsx(M.icon,{}):!u&&d.jsx("div",{className:$("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"size-2.5":o==="dot","w-1":o==="line","w-0 border-[1.5px] border-dashed bg-transparent":o==="dashed","my-0.5":D&&o==="dashed"}),style:{"--color-bg":O,"--color-border":O}}),d.jsxs("div",{className:$("flex flex-1 justify-between leading-none",D?"items-end":"items-center"),children:[d.jsxs("div",{className:"grid gap-1.5",children:[D?C:null,d.jsx("span",{className:"text-muted-foreground",children:M?.label||_.name})]}),_.value&&d.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:_.value.toLocaleString()})]})]})},_.dataKey)})})]})});S8.displayName="ChartTooltip";const E8=k.forwardRef(({className:e,hideIcon:n=!1,payload:r,verticalAlign:o="bottom",nameKey:l},u)=>{const{config:c}=Ux();return r?.length?d.jsx("div",{ref:u,className:$("flex items-center justify-center gap-4",o==="top"?"pb-3":"pt-3",e),children:r.map(h=>{const p=`${l||h.dataKey||"value"}`,g=Nh(c,h,p);return d.jsxs("div",{className:$("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[g?.icon&&!n?d.jsx(g.icon,{}):d.jsx("div",{className:"size-2 shrink-0 rounded-[2px]",style:{backgroundColor:h.color}}),g?.label]},h.value)})}):null});E8.displayName="ChartLegend";function Nh(e,n,r){if(typeof n!="object"||n===null)return;const o="payload"in n&&typeof n.payload=="object"&&n.payload!==null?n.payload:void 0;let l=r;return r in n&&typeof n[r]=="string"?l=n[r]:o&&r in o&&typeof o[r]=="string"&&(l=o[r]),l in e?e[l]:e[r]}const qx=k.createContext({takeCurrentHolder:()=>{},releaseCurrentHolder:()=>{}});function _8(e,n,r,o){if(!n||!r)return[];if(e.length>o)throw new Error(`Number of flow runs (${e.length}) is greater than the number of buckets (${o})`);const u=(r.getTime()-n.getTime())/o,c=new Array(o).fill(null),h=c.length-1,p=r.getTime()>Date.now(),g=p?1:-1,y=p?e.sort((b,w)=>{const E=b.start_time?new Date(b.start_time):b.expected_start_time?new Date(b.expected_start_time):null,C=w.start_time?new Date(w.start_time):w.expected_start_time?new Date(w.expected_start_time):null;return!E||!C?0:E.getTime()-C.getTime()}):e;function v(b){return b<0?null:c[b]?v(b+g):b}for(const b of y){const w=b.start_time?new Date(b.start_time):b.expected_start_time?new Date(b.expected_start_time):null;if(!w)continue;const E=Math.min(Math.floor((w.getTime()-n.getTime())/u),h),C=v(E);C!==null&&(c[C]=b)}return c}const T8=qo("gap-1 z-1",{variants:{state:{COMPLETED:"fill-state-completed-600",FAILED:"fill-state-failed-700",RUNNING:"fill-state-running-700",CANCELLED:"fill-state-cancelled-500",CANCELLING:"fill-state-cancelling-600",CRASHED:"fill-state-crashed-600",PAUSED:"fill-state-paused-600",PENDING:"fill-state-pending-500",SCHEDULED:"fill-state-scheduled-600",NONE:"fill-state-cancelled-100"}},defaultVariants:{state:"NONE"}}),D8=e=>{const{x:r=0,y:o=0,width:l=0,height:u=8,radius:c=[0,0,0,0],role:h,flowRun:p}=e,g=Math.max(u,8),y=o+(u-g);return d.jsx("g",{role:h,children:d.jsx("rect",{"data-testid":`bar-rect-${p?.id}`,x:r,y,width:l,height:g,rx:c[0],ry:c[0],className:T8({state:p?.state_type})})})},C8=(e,n=void 0,r=200)=>{const[o,l]=k.useState(n),[u,c]=k.useState(n),{currentHolder:h,takeCurrentHolder:p,releaseCurrentHolder:g}=k.useContext(qx);return k.useEffect(()=>{if(h&&e!==h)c(!1);else if(o)e&&p(e),c(!0);else{const y=setTimeout(()=>{c(void 0),e&&g(e)},r);return()=>clearTimeout(y)}},[o,r,e,h,p,g]),[u,l]},k8=({children:e})=>{const[n,r]=k.useState(void 0),o=k.useCallback(u=>{r(u)},[]),l=k.useCallback(u=>{n===u&&r(void 0)},[n]);return d.jsx(qx.Provider,{value:{currentHolder:n,takeCurrentHolder:o,releaseCurrentHolder:l},children:e})},Tm=({chartId:e,enrichedFlowRuns:n,startDate:r,endDate:o,barWidth:l=8,numberOfBars:u,className:c})=>{const[h,p]=C8(e),g=n.slice(0,u),y=_8(g,r,o,u),v=k.useMemo(()=>g.reduce((E,C)=>{const D=C.total_run_time??0;return D>E?D:E},0),[g]),b=k.useMemo(()=>{const E=__();return E.domain([0,v]),E.range([0,1]),E},[v]),w=y.map((E,C)=>{const D=E?.total_run_time??0;return{value:v>0?b(D)*v:0,id:E?.id??`empty-${C}`,stateType:E?.state_type,flowRun:E}});return d.jsx(_m,{config:{inactivity:{color:"hsl(210 40% 45%)"}},className:$("relative",c,h&&"z-20"),children:d.jsxs(T_,{data:w,margin:{top:0,right:0,bottom:0,left:0},barSize:l,onMouseMove:()=>{p(!0)},onMouseLeave:()=>{p(void 0)},children:[d.jsx(w8,{content:d.jsx(Bx,{}),isAnimationActive:!1,allowEscapeViewBox:{x:!0,y:!0},active:h,wrapperStyle:{pointerEvents:"auto"}}),d.jsx(D_,{dataKey:"value",shape:d.jsx(D8,{}),radius:[5,5,5,5],onMouseEnter:()=>p(!0),onMouseLeave:()=>p(void 0),isAnimationActive:!1,children:w.map(E=>d.jsx(C_,{role:"graphics-symbol"},`cell-${E.id}`))})]})})};Tm.displayName="FlowRunActivityBarChart";const Bx=({payload:e,active:n})=>{if(!n||!e||!e.length)return null;const o=e[0]?.payload;if(!o||typeof o!="object"||!("flowRun"in o))return null;const l=o.flowRun;if(!l||!l.id)return null;const u=l.flow,c=l.deployment,h=l.start_time?new Date(l.start_time):l.expected_start_time?new Date(l.expected_start_time):null;return d.jsxs(Ea,{children:[d.jsxs(Ci,{children:[d.jsxs(hc,{className:"flex items-center gap-1",children:[u?.id&&d.jsxs(d.Fragment,{children:[d.jsx(Xt,{to:"/flows/flow/$id",params:{id:u.id},className:"text-base font-medium",children:u.name}),d.jsx(fm,{className:"size-4"})]}),d.jsx(Xt,{to:"/runs/flow-run/$id",params:{id:l.id},className:"text-base font-medium",children:l.name})]}),l.state&&d.jsx(ej,{children:d.jsx(Nx,{type:l.state.type,name:l.state.name})})]}),d.jsxs(Pa,{className:"flex flex-col gap-1",children:[c?.id&&d.jsx(g8,{deployment:c,className:"flex items-center gap-1 text-sm font-medium whitespace-nowrap"}),d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(W1,{className:"size-4"}),d.jsx("p",{className:"text-sm whitespace-nowrap",children:A_(0,l.total_run_time*1e3,{addSuffix:!1})})]}),h&&d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(G1,{className:"size-4"}),d.jsx("p",{className:"text-sm",children:sn(h,"yyyy/MM/dd hh:mm a")})]}),d.jsx("div",{children:d.jsx(Sm,{tags:l.tags??[],maxTagsDisplayed:5})})]})]})};Bx.displayName="FlowRunTooltip";function N8(){return d.jsxs(Ea,{children:[d.jsxs(Ci,{className:"flex flex-row items-center justify-between",children:[d.jsx(ke,{className:"h-6 w-24"}),d.jsx(ke,{className:"h-4 w-16"})]}),d.jsxs(Pa,{className:"space-y-2",children:[d.jsx(ke,{className:"h-24 w-full"}),d.jsx("div",{className:"flex justify-between w-full gap-2",children:[1,2,3,4,5].map(e=>d.jsx(ke,{className:"h-10 flex-1"},e))}),d.jsx(ke,{className:"h-32 w-full"})]})]})}function A8({className:e,...n}){return d.jsx(FE,{"data-slot":"tabs",className:$("flex flex-col gap-2",e),...n})}function R8({className:e,...n}){return d.jsx(UE,{"data-slot":"tabs-list",className:$("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-1",e),...n})}function j8({className:e,...n}){return d.jsx(qE,{"data-slot":"tabs-trigger",className:$("data-[state=active]:bg-background data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex flex-1 items-center justify-center gap-1.5 rounded-md px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function NI({className:e,...n}){return d.jsx(BE,{"data-slot":"tabs-content",className:$("flex-1 outline-none",e),...n})}const M8=[["FAILED","CRASHED"],["RUNNING","PENDING","CANCELLING"],["COMPLETED"],["SCHEDULED","PAUSED"],["CANCELLED"]],O8={COMPLETED:"bg-state-completed-600",FAILED:"bg-state-failed-600",RUNNING:"bg-state-running-700",CANCELLED:"bg-state-cancelled-500",CRASHED:"bg-state-crashed-600",PAUSED:"bg-state-paused-500",PENDING:"bg-state-pending-500",SCHEDULED:"bg-state-scheduled-700",CANCELLING:"bg-state-cancelling-500"},L8=({states:e,count:n})=>d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"h-1 w-4 rounded-full grid auto-cols-fr grid-flow-col overflow-hidden",children:e.map(r=>d.jsx("span",{className:O8[r]},r))}),n]}),I8=({stateCounts:e,selectedStates:n,onStateChange:r})=>{const o=l=>{r(l.split("-").map(u=>u))};return d.jsx("div",{className:"space-y-2",children:d.jsx(A8,{value:n.join("-"),onValueChange:o,children:d.jsx(R8,{className:"flex justify-between w-full h-auto",children:M8.map(l=>d.jsx(j8,{value:l.join("-"),"aria-label":`${l.join("-").toLowerCase()} runs`,className:"flex flex-col items-center gap-1",children:d.jsx(L8,{states:l,count:l.reduce((u,c)=>u+e[c],0)})},l.join("-")))})})})},mb=8,z8=4;function F8({filter:e,selectedStates:n,onStateChange:r}){const[o,l]=k.useState(0),u=mx(o,150),[c,h]=k.useState(["FAILED","CRASHED"]),p=n??c,g=r??h,y=k.useCallback(ve=>{if(!ve)return;const ge=()=>{const st=ve.getBoundingClientRect().width;l(Math.floor(st/(mb+z8)))};ge();const Ne=new ResizeObserver(ge);return Ne.observe(ve),()=>Ne.disconnect()},[]),v=k.useMemo(()=>{const ve={sort:"START_TIME_DESC",offset:0},ge={operator:"and_"};return e?.startDate&&e?.endDate&&(ge.start_time={after_:e.startDate,before_:e.endDate}),e?.tags&&e.tags.length>0&&(ge.tags={operator:"and_",all_:e.tags}),e?.hideSubflows&&(ge.parent_task_run_id={operator:"and_",is_null_:!0}),Object.keys(ge).length>1&&(ve.flow_runs=ge),ve},[e?.startDate,e?.endDate,e?.tags,e?.hideSubflows]),b=et({...pr(v,3e4),placeholderData:qe}),w=k.useMemo(()=>_x(v),[v]),E=et({...vt(w,3e4),placeholderData:qe}),C=et({...vt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}},3e4),placeholderData:qe}),D=et({...vt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["RUNNING","PENDING","CANCELLING"]}}}},3e4),placeholderData:qe}),_=et({...vt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["COMPLETED"]}}}},3e4),placeholderData:qe}),A=et({...vt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["SCHEDULED","PAUSED"]}}}},3e4),placeholderData:qe}),N=et({...vt({...w,flow_runs:{...w.flow_runs,operator:w.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:["CANCELLED"]}}}},3e4),placeholderData:qe}),M=b.data??[],O=E.data??0,I=C.data??0,S=D.data??0,U=_.data??0,F=A.data??0,L=N.data??0,B=k.useMemo(()=>({FAILED:I,CRASHED:0,RUNNING:S,PENDING:0,CANCELLING:0,COMPLETED:U,SCHEDULED:F,PAUSED:0,CANCELLED:L}),[I,S,U,F,L]),{flowIds:K,deploymentIds:se}=k.useMemo(()=>{const ve=[...new Set(M.map(Ne=>Ne.flow_id))],ge=[...new Set(M.map(Ne=>Ne.deployment_id).filter(Ne=>!!Ne))];return{flowIds:ve,deploymentIds:ge}},[M]),{data:ae,isLoading:ce}=et({...al({flows:{operator:"and_",id:{any_:K}},offset:0,sort:"CREATED_DESC"}),enabled:K.length>0,placeholderData:qe}),{data:j,isLoading:Y}=et({...Ex({deployments:{operator:"and_",id:{any_:se}},offset:0,sort:"CREATED_DESC"}),enabled:se.length>0,placeholderData:qe}),le=k.useMemo(()=>M.map(ve=>{const ge=ae?.find(st=>st.id===ve.flow_id),Ne=j?.find(st=>st.id===ve.deployment_id);return{...ve,flow:ge,deployment:Ne}}),[M,ae,j]),{startDate:de,endDate:fe}=k.useMemo(()=>{if(e?.startDate&&e?.endDate)return{startDate:new Date(e.startDate),endDate:new Date(e.endDate)};const ve=new Date,ge=new Date;return ge.setDate(ge.getDate()-7),{startDate:ge,endDate:ve}},[e?.startDate,e?.endDate]),pe=[b,E,C,D,_,A,N],G=pe.find(ve=>ve.isError);if(G)return d.jsx(Em,{error:jo(G.error,"Failed to load flow runs"),onRetry:()=>{pe.filter(ve=>ve.isError).forEach(ve=>{ve.refetch()})},isRetrying:pe.some(ve=>ve.isRefetching)});if(pe.some(ve=>ve.isLoading&&ve.data===void 0))return d.jsx(N8,{});const re=M.length>0&&(ce&&K.length>0||Y&&se.length>0),ee=u||o;return d.jsxs(Ea,{children:[d.jsxs(Ci,{className:"flex flex-row items-center justify-between",children:[d.jsx(hc,{children:"Flow Runs"}),O>0&&d.jsxs("span",{className:"text-sm text-muted-foreground",children:[O," total"]})]}),d.jsx(Pa,{className:"space-y-2",children:re||ee===0?d.jsx("div",{className:"w-full",ref:y,children:d.jsx(ke,{className:"h-24 w-full"})}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-full",ref:y,children:d.jsx(Tm,{enrichedFlowRuns:le,startDate:de,endDate:fe,numberOfBars:ee,barWidth:mb,className:"h-24 w-full"})}),d.jsx(I8,{stateCounts:B,selectedStates:p,onStateChange:g}),d.jsx(v8,{filter:v,stateTypes:p})]})})]})}const U8={"artifacts-guide":"https://docs.prefect.io/v3/develop/artifacts","getting-started":"https://docs.prefect.io/v3/get-started/quickstart#open-source","automations-guide":"https://docs.prefect.io/v3/automate/events/automations-triggers","blocks-guide":"https://docs.prefect.io/v3/develop/blocks","deployments-guide":"https://docs.prefect.io/v3/deploy/index","flows-guide":"https://docs.prefect.io/v3/develop/flows","global-concurrency-guide":"https://docs.prefect.io/v3/develop/global-concurrency-limits","integrations-guide":"https://docs.prefect.io/integrations/integrations","task-concurrency-guide":"https://docs.prefect.io/v3/develop/task-run-limits","variables-guide":"https://docs.prefect.io/latest/guides/variables/","work-pools-guide":"https://docs.prefect.io/latest/deploy/infrastructure-concepts/work-pools"},q8=({id:e,label:n="View Docs"})=>d.jsx("a",{href:U8[e],target:"_blank",rel:"noreferrer",children:d.jsxs(ot,{variant:"outline",children:[n," ",d.jsx(gt,{id:"ExternalLink",className:"size-4 ml-2"})]})}),B8=({id:e})=>d.jsx(gt,{id:e,className:"size-12 text-muted-foreground mb-8"}),P8=({children:e})=>d.jsx("h3",{className:"text-2xl font-bold",children:e}),H8=({children:e})=>d.jsx("p",{className:"text-md text-muted-foreground",children:e}),$8=({children:e})=>d.jsx("div",{className:"flex gap-2 mt-4",children:e}),Q8=({children:e})=>d.jsx(Ea,{children:d.jsx(Pa,{className:"flex flex-col gap-2 items-center justify-center py-16",children:e})}),V8=()=>d.jsxs(Q8,{children:[d.jsx(B8,{id:"Workflow"}),d.jsx(P8,{children:"Run a task or flow to get started"}),d.jsx(H8,{children:"Runs store the state history for each execution of a task or flow."}),d.jsx($8,{children:d.jsx(q8,{id:"getting-started"})})]});function G8(){return d.jsxs(Ea,{children:[d.jsx(Ci,{className:"flex flex-row items-center justify-between",children:d.jsx(ke,{className:"h-6 w-24"})}),d.jsx(Pa,{children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"grid gap-1",children:[d.jsx(ke,{className:"h-5 w-20"}),d.jsx(ke,{className:"h-4 w-32"}),d.jsx(ke,{className:"h-4 w-28"})]}),d.jsx(ke,{className:"h-16 w-full"})]})})]})}function Px(e){const n=new Date,r=e?.startDate?new Date(e.startDate):new Date(n.getTime()-1440*60*1e3),o=e?.endDate?new Date(e.endDate):n,l=r.toISOString(),u=o.toISOString(),c=Math.floor((o.getTime()-r.getTime())/1e3),h=Math.max(1,Math.floor(c/20)),p={history_start:l,history_end:u,history_interval_seconds:h,flow_runs:{operator:"and_"},task_runs:{operator:"and_",start_time:{after_:l,before_:u}}};return e?.tags&&e.tags.length>0&&(p.flow_runs={operator:"and_",...p.flow_runs,tags:{operator:"and_",any_:e.tags}}),e?.hideSubflows&&(p.flow_runs={operator:"and_",...p.flow_runs,parent_task_run_id:{operator:"and_",is_null_:!0}}),p}const Y8={completed:{label:"Completed",color:"hsl(142.1 76.2% 36.3%)"},failed:{label:"Failed",color:"hsl(0 84.2% 60.2%)"}},K8=e=>{const n=[];let r=0,o=0;for(const l of e){let u=0,c=0;for(const h of l.states)h.state_type==="COMPLETED"?u+=h.count_runs:(h.state_type==="FAILED"||h.state_type==="CRASHED")&&(c+=h.count_runs);r+=u,o+=c,n.push({timestamp:l.interval_start,completed:r,failed:o})}return n};function W8({filter:e}){const n=k.useMemo(()=>Px(e),[e]),{data:r,isLoading:o}=et({...ym(n,3e4),placeholderData:qe}),l=k.useMemo(()=>r?K8(r):[],[r]);if(o&&!r)return null;const u=l.some(c=>c.failed>0);return d.jsx("div",{className:"h-16 w-[calc(100%+3rem)] -mx-6",children:d.jsx(_m,{config:Y8,className:"h-full w-full",children:d.jsxs(k_,{data:l,margin:{top:0,right:0,bottom:0,left:0},children:[d.jsxs("defs",{children:[d.jsxs("linearGradient",{id:"completedGradient",x1:"0",y1:"1",x2:"0",y2:"0",children:[d.jsx("stop",{offset:"0%",stopColor:"var(--color-completed)",stopOpacity:0}),d.jsx("stop",{offset:"100%",stopColor:"var(--color-completed)",stopOpacity:.3})]}),d.jsxs("linearGradient",{id:"failedGradient",x1:"0",y1:"1",x2:"0",y2:"0",children:[d.jsx("stop",{offset:"0%",stopColor:"var(--color-failed)",stopOpacity:0}),d.jsx("stop",{offset:"100%",stopColor:"var(--color-failed)",stopOpacity:.3})]})]}),u&&d.jsx(Iy,{type:"monotone",dataKey:"failed",stroke:"var(--color-failed)",strokeWidth:2,activeDot:!1,fill:"url(#failedGradient)",dot:!1,isAnimationActive:!1}),d.jsx(Iy,{type:"monotone",dataKey:"completed",stroke:"var(--color-completed)",strokeWidth:2,activeDot:!1,fill:"url(#completedGradient)",dot:!1,isAnimationActive:!1})]})})})}function X8(e){const n={operator:"and_",subflow_runs:{exists_:!1}};e?.startDate&&e?.endDate&&(n.start_time={after_:e.startDate,before_:e.endDate});const r={task_runs:n};if(e?.tags&&e.tags.length>0||e?.hideSubflows){const o={operator:"and_"};e?.tags&&e.tags.length>0&&(o.tags={operator:"and_",any_:e.tags}),e?.hideSubflows&&(o.parent_task_run_id={operator:"and_",is_null_:!0}),r.flow_runs=o}return r}function Z8({filter:e}){const n=k.useMemo(()=>X8(e),[e]),r=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED","RUNNING"]}}}}),[n]),o=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}),[n]),l=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}}),[n]),u=k.useMemo(()=>({...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["RUNNING"]}}}}),[n]),c=et({...$n(r,3e4),placeholderData:qe}),h=et({...$n(o,3e4),placeholderData:qe}),p=et({...$n(l,3e4),placeholderData:qe}),g=et({...$n(u,3e4),placeholderData:qe}),y=[c,h,p,g],v=y.find(N=>N.isError);if(v)return d.jsx(Em,{error:jo(v.error,"Failed to load task runs"),onRetry:()=>{y.filter(N=>N.isError).forEach(N=>{N.refetch()})},isRetrying:y.some(N=>N.isRefetching)});if(y.some(N=>N.isLoading&&N.data===void 0))return d.jsx(G8,{});const w=c.data??0,E=h.data??0,C=p.data??0,D=g.data??0,_=w-D,A=_>0?C/_*100:0;return d.jsxs(Ea,{children:[d.jsx(Ci,{className:"flex flex-row items-center justify-between",children:d.jsx(hc,{children:"Task Runs"})}),d.jsx(Pa,{children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"grid gap-1",children:[d.jsx("div",{className:"inline-flex items-end gap-1 text-base",children:d.jsx("span",{className:"font-semibold",children:w})}),D>0&&d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:D}),d.jsx("span",{className:"text-muted-foreground",children:"Running"})]}),d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:E}),d.jsx("span",{className:"text-muted-foreground",children:"Completed"})]}),C>0&&d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:C}),d.jsx("span",{className:"text-muted-foreground",children:"Failed"}),d.jsxs("span",{className:"text-muted-foreground",children:[A.toFixed(1),"%"]})]})]}),d.jsx(W8,{filter:e})]})})]})}const J8=({workPoolName:e})=>d.jsxs(Xt,{to:"/work-pools/work-pool/$workPoolName",params:{workPoolName:e},className:"flex items-center gap-1",children:[d.jsx(gt,{id:"Cpu",className:"size-4"}),e]}),eM={READY:ec,PAUSED:K1,NOT_READY:ec},tM={READY:"text-green-600",PAUSED:"text-muted-foreground",NOT_READY:"text-red-600"},nM=(e,n)=>{switch(e){case"READY":return"Work queue has at least one actively polling worker ready to execute work.";case"PAUSED":return"Work queue is paused. No work will be executed.";case"NOT_READY":return"Work queue does not have any actively polling workers ready to execute work."}},aM=e=>e.is_paused?"PAUSED":e.status?.toUpperCase()??"READY",rM=({queue:e,className:n})=>{const r=aM(e),o=nM(r),l=eM[r],u=tM[r],c=r==="READY"||r==="NOT_READY",h=d.jsx(l,{className:$("h-3 w-3",u,n),fill:c?"currentColor":"none"});return d.jsx(ei,{children:d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:h}),d.jsx(qa,{children:d.jsx("p",{children:o})})]})})},iM={READY:ec,PAUSED:K1,NOT_READY:ec},oM={READY:"text-green-600",PAUSED:"text-yellow-600",NOT_READY:"text-red-600"},sM=e=>{switch(e){case"READY":return"Work pool is ready and accepting work";case"PAUSED":return"Work pool is paused";case"NOT_READY":return"Work pool is not ready"}},lM=({status:e,showTooltip:n=!0,className:r})=>{const o=sM(e),l=iM[e],u=oM[e],c=e==="READY"||e==="NOT_READY",h=d.jsx(l,{className:$("h-3 w-3",u,r),fill:c?"currentColor":"none"});return n?d.jsx(ei,{children:d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:h}),d.jsx(qa,{children:d.jsx("p",{children:o})})]})}):h};function uM({interval:e=1e3}={}){const[n,r]=k.useState(()=>new Date);return k.useEffect(()=>{const o=setInterval(()=>{r(new Date)},e);return()=>clearInterval(o)},[e]),n}function cM(){return d.jsxs(Ea,{children:[d.jsx(Ci,{children:d.jsx(ke,{className:"h-6 w-32 mb-4"})}),d.jsx(Pa,{children:d.jsx("div",{className:"flex flex-col gap-4",children:[1,2].map(e=>d.jsxs("div",{className:"rounded-xl border border-border p-3 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ke,{className:"h-5 w-32"}),d.jsx(ke,{className:"h-5 w-5 rounded-full"})]}),d.jsx("div",{className:"grid grid-cols-4 gap-2",children:[1,2,3,4].map(n=>d.jsxs("div",{className:"flex flex-col items-center space-y-1",children:[d.jsx(ke,{className:"h-3 w-16"}),d.jsx(ke,{className:"h-4 w-12"})]},n))})]},e))})})]})}const dM=({filter:e})=>{const n=et(bm({offset:0}));if(n.isError)return d.jsx(Em,{error:jo(n.error,"Failed to load work pools"),onRetry:()=>{n.refetch()},isRetrying:n.isRefetching});if(n.isLoading)return d.jsx(cM,{});const r=n.data??[],o=r.filter(u=>!u.is_paused),l=r&&o.length===0;return d.jsxs(Ea,{children:[d.jsx(Ci,{children:d.jsx(hc,{className:"mb-4",children:"Active Work Pools"})}),d.jsxs(Pa,{children:[d.jsx("div",{className:"flex flex-col gap-4",children:o.map(u=>d.jsx(fM,{workPool:u,filter:e},u.id))}),l&&d.jsxs("div",{className:"my-8 text-center text-sm text-muted-foreground",children:[d.jsx("p",{children:"No active work pools"}),d.jsx(Xt,{to:"/work-pools",className:"text-primary underline-offset-4 hover:underline",children:"View all work pools"})]})]})]})},fM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>n?.startDate&&n?.endDate?{sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",start_time:{after_:n.startDate,before_:n.endDate}}}:void 0,[n?.startDate,n?.endDate,e.id]);return d.jsxs("div",{className:"rounded-xl border border-border",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-4 border-b border-border p-3",children:[d.jsxs("div",{className:"flex flex-grow items-center gap-2",children:[d.jsx(J8,{workPoolName:e.name}),d.jsx(lM,{status:e.status??"READY"})]}),d.jsx(bM,{workPool:e,filter:n}),d.jsx(yM,{workPool:e,filter:r})]}),d.jsxs("dl",{className:"grid grid-cols-2 gap-y-2 p-3 sm:grid-cols-4",children:[d.jsx(Mu,{label:"Polled",children:d.jsx(hM,{workPool:e})}),d.jsx(Mu,{label:"Work Queues",children:d.jsx(mM,{workPool:e})}),d.jsx(Mu,{label:"Late runs",children:d.jsxs("div",{className:"inline-flex items-center gap-1",children:[d.jsx(vM,{workPool:e,filter:r}),d.jsx(gM,{workPool:e,filter:r})]})}),d.jsx(Mu,{label:"Completed",children:d.jsx(pM,{workPool:e,filter:r})})]})]})},Mu=({label:e,children:n})=>d.jsxs("div",{className:"flex flex-col items-center",children:[d.jsx("dt",{className:"text-xs text-muted-foreground",children:e}),d.jsx("dd",{className:"mt-1",children:n})]}),hM=({workPool:e})=>{const n=uM({interval:1e3}),{data:r}=et(xm(e.name));if(!r)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});const o=r.length>0?Ub(r.filter(u=>u.last_heartbeat_time).map(u=>new Date(u.last_heartbeat_time))):null;if(!o)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"N/A"});const l=zA(o,n);return d.jsx("span",{className:"text-sm",children:l})},pb=50,mM=({workPool:e})=>{const{data:n}=et(nc(e.name));if(!n)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});const r=n.length>pb,o=r?n.slice(0,pb):n;return n.length===0?d.jsx("span",{className:"text-sm text-muted-foreground",children:"N/A"}):r?d.jsx("span",{className:"text-xs text-muted-foreground",children:"Too many to show here."}):d.jsx("div",{className:"flex min-h-[1.5rem] flex-wrap items-center gap-1",children:o.map(l=>d.jsx(rM,{queue:l},l.id))})},pM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>{const E=n?.flow_runs?.start_time;if(!n||!E?.after_||!E?.before_)return null;const C=new Date(E.after_),D=new Date(E.before_),_=Qs(D,C);return{...n,sort:n.sort??"ID_DESC",flow_runs:{...n.flow_runs,operator:n.flow_runs?.operator??"and_",start_time:{after_:uh(C,_).toISOString(),before_:uh(D,_).toISOString()}}}},[n]),o=k.useMemo(()=>({...n,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}}),[n,e.id]),l=k.useMemo(()=>({...n,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}),[n,e.id]),u=k.useMemo(()=>r?{...r,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...r?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}}:null,[r,e.id]),c=k.useMemo(()=>r?{...r,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",...r?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}:null,[r,e.id]),{data:h}=et(vt(o,3e4)),{data:p}=et(vt(l,3e4)),{data:g}=et({...vt(u??o,3e4),enabled:u!==null}),{data:y}=et({...vt(c??l,3e4),enabled:c!==null});if(h===void 0||p===void 0)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});if(!h||h===0)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"N/A"});const v=p/h,b=Math.round((v+Number.EPSILON)*1e4)/100;let w=null;if(g&&g>0&&y!==void 0){const E=y/g,C=Math.round((E+Number.EPSILON)*1e4)/100;C!==b&&(w={change:Math.abs(b-C).toFixed(1),direction:b>C?"+":"-"})}return d.jsxs("span",{className:"inline-flex items-center gap-1",children:[d.jsxs("span",{className:"text-sm",children:[b,"%"]}),w&&d.jsx(ei,{children:d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:d.jsxs("span",{className:$("cursor-help whitespace-nowrap text-xs",w.direction==="+"?"text-green-600":"text-red-600"),children:[w.direction,w.change]})}),d.jsx(qa,{children:d.jsxs("p",{children:[w.direction,w.change,"% change over time period"]})})]})})]})},vM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>({...n,work_pools:{operator:"and_",name:{any_:[e.name]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",name:{any_:["Late"]}}}}),[n,e.name]),{data:o}=et(vt(r,3e4));if(o===void 0)return d.jsx("span",{className:"text-sm text-muted-foreground",children:"—"});const l=o??0;return d.jsx("span",{className:$("text-sm",l<1&&"text-muted-foreground"),children:l})},gM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>({...n,sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[e.id]}}}),[n,e.id]),{data:o}=et(Tx(r,3e4));if(o===void 0||!o)return null;const l=ox(Math.round(o));return d.jsxs("span",{className:"whitespace-nowrap text-xs text-muted-foreground",children:["(",l," avg.)"]})},yM=({workPool:e,filter:n})=>{const r=k.useMemo(()=>({...n,work_pools:{operator:"and_",name:{any_:[e.name]}},flow_runs:{operator:"and_",...n?.flow_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}}),[n,e.name]),{data:o}=et(vt(r,3e4));return d.jsxs("div",{className:"inline-flex items-end gap-1 text-sm",children:[d.jsx("span",{className:"font-semibold",children:o!==void 0?o.toLocaleString():"—"}),d.jsx("span",{className:"text-muted-foreground",children:"total"})]})},bM=({workPool:e,filter:n})=>{const o=k.useMemo(()=>n?.startDate&&n?.endDate?{limit:24,sort:"START_TIME_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[e.id]}},flow_runs:{operator:"and_",start_time:{after_:n.startDate,before_:n.endDate}}}:void 0,[n?.startDate,n?.endDate,e.id]),{data:l}=et({...pr(o??{sort:"ID_DESC",offset:0},3e4),enabled:!!o}),u=Rb({queries:(l??[]).map(y=>({queryKey:["flowRunEnrichment",y.id,y.deployment_id,y.flow_id],queryFn:async()=>{const v=await ne(),[b,w]=await Promise.all([y.deployment_id?v.GET("/deployments/{id}",{params:{path:{id:y.deployment_id}}}):Promise.resolve({data:null}),y.flow_id?v.GET("/flows/{id}",{params:{path:{id:y.flow_id}}}):Promise.resolve({data:null})]);return{deployment:b.data??null,flow:w.data??null}},staleTime:3e4}))}),c=u.every(y=>y.data);if(!n?.startDate||!n?.endDate)return d.jsx("div",{className:"h-8 w-48 shrink-0"});if(l&&l.length>0&&!c)return d.jsx("div",{className:"h-8 w-48 shrink-0"});const h=(l??[]).map((y,v)=>{const b=u[v]?.data;return{...y,deployment:b?.deployment??void 0,flow:b?.flow??void 0}}),p=new Date(n.startDate),g=new Date(n.endDate);return d.jsx("div",{className:"h-8 w-48 shrink-0 flex items-end",children:d.jsx(Tm,{chartId:`work-pool-${e.id}`,enrichedFlowRuns:h,startDate:p,endDate:g,barWidth:6,numberOfBars:24,className:"h-full w-full"})})};var vb=1,xM=.9,wM=.8,SM=.17,Jf=.1,eh=.999,EM=.9999,_M=.99,TM=/[\\\/_+.#"@\[\(\{&]/,DM=/[\\\/_+.#"@\[\(\{&]/g,CM=/[\s-]/,Hx=/[\s-]/g;function Ah(e,n,r,o,l,u,c){if(u===n.length)return l===e.length?vb:_M;var h=`${l},${u}`;if(c[h]!==void 0)return c[h];for(var p=o.charAt(u),g=r.indexOf(p,l),y=0,v,b,w,E;g>=0;)v=Ah(e,n,r,o,g+1,u+1,c),v>y&&(g===l?v*=vb:TM.test(e.charAt(g-1))?(v*=wM,w=e.slice(l,g-1).match(DM),w&&l>0&&(v*=Math.pow(eh,w.length))):CM.test(e.charAt(g-1))?(v*=xM,E=e.slice(l,g-1).match(Hx),E&&l>0&&(v*=Math.pow(eh,E.length))):(v*=SM,l>0&&(v*=Math.pow(eh,g-l))),e.charAt(g)!==n.charAt(u)&&(v*=EM)),(v<Jf&&r.charAt(g-1)===o.charAt(u+1)||o.charAt(u+1)===o.charAt(u)&&r.charAt(g-1)!==o.charAt(u))&&(b=Ah(e,n,r,o,g+1,u+2,c),b*Jf>v&&(v=b*Jf)),v>y&&(y=v),g=r.indexOf(p,g+1);return c[h]=y,y}function gb(e){return e.toLowerCase().replace(Hx," ")}function kM(e,n,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Ah(e,n,gb(e),gb(n),0,0,{})}var Ps='[cmdk-group=""]',th='[cmdk-group-items=""]',NM='[cmdk-group-heading=""]',$x='[cmdk-item=""]',yb=`${$x}:not([aria-disabled="true"])`,Rh="cmdk-item-select",Eo="data-value",AM=(e,n,r)=>kM(e,n,r),Qx=k.createContext(void 0),cl=()=>k.useContext(Qx),Vx=k.createContext(void 0),Dm=()=>k.useContext(Vx),Gx=k.createContext(void 0),Yx=k.forwardRef((e,n)=>{let r=_o(()=>{var G,X;return{search:"",value:(X=(G=e.value)!=null?G:e.defaultValue)!=null?X:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=_o(()=>new Set),l=_o(()=>new Map),u=_o(()=>new Map),c=_o(()=>new Set),h=Kx(e),{label:p,children:g,value:y,onValueChange:v,filter:b,shouldFilter:w,loop:E,disablePointerSelection:C=!1,vimBindings:D=!0,..._}=e,A=Co(),N=Co(),M=Co(),O=k.useRef(null),I=BM();Ti(()=>{if(y!==void 0){let G=y.trim();r.current.value=G,S.emit()}},[y]),Ti(()=>{I(6,se)},[]);let S=k.useMemo(()=>({subscribe:G=>(c.current.add(G),()=>c.current.delete(G)),snapshot:()=>r.current,setState:(G,X,ue)=>{var re,ee,ve,ge;if(!Object.is(r.current[G],X)){if(r.current[G]=X,G==="search")K(),L(),I(1,B);else if(G==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ne=document.getElementById(M);Ne?Ne.focus():(re=document.getElementById(A))==null||re.focus()}if(I(7,()=>{var Ne;r.current.selectedItemId=(Ne=ae())==null?void 0:Ne.id,S.emit()}),ue||I(5,se),((ee=h.current)==null?void 0:ee.value)!==void 0){let Ne=X??"";(ge=(ve=h.current).onValueChange)==null||ge.call(ve,Ne);return}}S.emit()}},emit:()=>{c.current.forEach(G=>G())}}),[]),U=k.useMemo(()=>({value:(G,X,ue)=>{var re;X!==((re=u.current.get(G))==null?void 0:re.value)&&(u.current.set(G,{value:X,keywords:ue}),r.current.filtered.items.set(G,F(X,ue)),I(2,()=>{L(),S.emit()}))},item:(G,X)=>(o.current.add(G),X&&(l.current.has(X)?l.current.get(X).add(G):l.current.set(X,new Set([G]))),I(3,()=>{K(),L(),r.current.value||B(),S.emit()}),()=>{u.current.delete(G),o.current.delete(G),r.current.filtered.items.delete(G);let ue=ae();I(4,()=>{K(),ue?.getAttribute("id")===G&&B(),S.emit()})}),group:G=>(l.current.has(G)||l.current.set(G,new Set),()=>{u.current.delete(G),l.current.delete(G)}),filter:()=>h.current.shouldFilter,label:p||e["aria-label"],getDisablePointerSelection:()=>h.current.disablePointerSelection,listId:A,inputId:M,labelId:N,listInnerRef:O}),[]);function F(G,X){var ue,re;let ee=(re=(ue=h.current)==null?void 0:ue.filter)!=null?re:AM;return G?ee(G,r.current.search,X):0}function L(){if(!r.current.search||h.current.shouldFilter===!1)return;let G=r.current.filtered.items,X=[];r.current.filtered.groups.forEach(re=>{let ee=l.current.get(re),ve=0;ee.forEach(ge=>{let Ne=G.get(ge);ve=Math.max(Ne,ve)}),X.push([re,ve])});let ue=O.current;ce().sort((re,ee)=>{var ve,ge;let Ne=re.getAttribute("id"),st=ee.getAttribute("id");return((ve=G.get(st))!=null?ve:0)-((ge=G.get(Ne))!=null?ge:0)}).forEach(re=>{let ee=re.closest(th);ee?ee.appendChild(re.parentElement===ee?re:re.closest(`${th} > *`)):ue.appendChild(re.parentElement===ue?re:re.closest(`${th} > *`))}),X.sort((re,ee)=>ee[1]-re[1]).forEach(re=>{var ee;let ve=(ee=O.current)==null?void 0:ee.querySelector(`${Ps}[${Eo}="${encodeURIComponent(re[0])}"]`);ve?.parentElement.appendChild(ve)})}function B(){let G=ce().find(ue=>ue.getAttribute("aria-disabled")!=="true"),X=G?.getAttribute(Eo);S.setState("value",X||void 0)}function K(){var G,X,ue,re;if(!r.current.search||h.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let ee=0;for(let ve of o.current){let ge=(X=(G=u.current.get(ve))==null?void 0:G.value)!=null?X:"",Ne=(re=(ue=u.current.get(ve))==null?void 0:ue.keywords)!=null?re:[],st=F(ge,Ne);r.current.filtered.items.set(ve,st),st>0&&ee++}for(let[ve,ge]of l.current)for(let Ne of ge)if(r.current.filtered.items.get(Ne)>0){r.current.filtered.groups.add(ve);break}r.current.filtered.count=ee}function se(){var G,X,ue;let re=ae();re&&(((G=re.parentElement)==null?void 0:G.firstChild)===re&&((ue=(X=re.closest(Ps))==null?void 0:X.querySelector(NM))==null||ue.scrollIntoView({block:"nearest"})),re.scrollIntoView({block:"nearest"}))}function ae(){var G;return(G=O.current)==null?void 0:G.querySelector(`${$x}[aria-selected="true"]`)}function ce(){var G;return Array.from(((G=O.current)==null?void 0:G.querySelectorAll(yb))||[])}function j(G){let X=ce()[G];X&&S.setState("value",X.getAttribute(Eo))}function Y(G){var X;let ue=ae(),re=ce(),ee=re.findIndex(ge=>ge===ue),ve=re[ee+G];(X=h.current)!=null&&X.loop&&(ve=ee+G<0?re[re.length-1]:ee+G===re.length?re[0]:re[ee+G]),ve&&S.setState("value",ve.getAttribute(Eo))}function le(G){let X=ae(),ue=X?.closest(Ps),re;for(;ue&&!re;)ue=G>0?UM(ue,Ps):qM(ue,Ps),re=ue?.querySelector(yb);re?S.setState("value",re.getAttribute(Eo)):Y(G)}let de=()=>j(ce().length-1),fe=G=>{G.preventDefault(),G.metaKey?de():G.altKey?le(1):Y(1)},pe=G=>{G.preventDefault(),G.metaKey?j(0):G.altKey?le(-1):Y(-1)};return k.createElement(Jr.div,{ref:n,tabIndex:-1,..._,"cmdk-root":"",onKeyDown:G=>{var X;(X=_.onKeyDown)==null||X.call(_,G);let ue=G.nativeEvent.isComposing||G.keyCode===229;if(!(G.defaultPrevented||ue))switch(G.key){case"n":case"j":{D&&G.ctrlKey&&fe(G);break}case"ArrowDown":{fe(G);break}case"p":case"k":{D&&G.ctrlKey&&pe(G);break}case"ArrowUp":{pe(G);break}case"Home":{G.preventDefault(),j(0);break}case"End":{G.preventDefault(),de();break}case"Enter":{G.preventDefault();let re=ae();if(re){let ee=new Event(Rh);re.dispatchEvent(ee)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:U.inputId,id:U.labelId,style:HM},p),mc(e,G=>k.createElement(Vx.Provider,{value:S},k.createElement(Qx.Provider,{value:U},G))))}),RM=k.forwardRef((e,n)=>{var r,o;let l=Co(),u=k.useRef(null),c=k.useContext(Gx),h=cl(),p=Kx(e),g=(o=(r=p.current)==null?void 0:r.forceMount)!=null?o:c?.forceMount;Ti(()=>{if(!g)return h.item(l,c?.id)},[g]);let y=Wx(l,u,[e.value,e.children,u],e.keywords),v=Dm(),b=Xr(I=>I.value&&I.value===y.current),w=Xr(I=>g||h.filter()===!1?!0:I.search?I.filtered.items.get(l)>0:!0);k.useEffect(()=>{let I=u.current;if(!(!I||e.disabled))return I.addEventListener(Rh,E),()=>I.removeEventListener(Rh,E)},[w,e.onSelect,e.disabled]);function E(){var I,S;C(),(S=(I=p.current).onSelect)==null||S.call(I,y.current)}function C(){v.setState("value",y.current,!0)}if(!w)return null;let{disabled:D,value:_,onSelect:A,forceMount:N,keywords:M,...O}=e;return k.createElement(Jr.div,{ref:Xs(u,n),...O,id:l,"cmdk-item":"",role:"option","aria-disabled":!!D,"aria-selected":!!b,"data-disabled":!!D,"data-selected":!!b,onPointerMove:D||h.getDisablePointerSelection()?void 0:C,onClick:D?void 0:E},e.children)}),jM=k.forwardRef((e,n)=>{let{heading:r,children:o,forceMount:l,...u}=e,c=Co(),h=k.useRef(null),p=k.useRef(null),g=Co(),y=cl(),v=Xr(w=>l||y.filter()===!1?!0:w.search?w.filtered.groups.has(c):!0);Ti(()=>y.group(c),[]),Wx(c,h,[e.value,e.heading,p]);let b=k.useMemo(()=>({id:c,forceMount:l}),[l]);return k.createElement(Jr.div,{ref:Xs(h,n),...u,"cmdk-group":"",role:"presentation",hidden:v?void 0:!0},r&&k.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:g},r),mc(e,w=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?g:void 0},k.createElement(Gx.Provider,{value:b},w))))}),MM=k.forwardRef((e,n)=>{let{alwaysRender:r,...o}=e,l=k.useRef(null),u=Xr(c=>!c.search);return!r&&!u?null:k.createElement(Jr.div,{ref:Xs(l,n),...o,"cmdk-separator":"",role:"separator"})}),OM=k.forwardRef((e,n)=>{let{onValueChange:r,...o}=e,l=e.value!=null,u=Dm(),c=Xr(g=>g.search),h=Xr(g=>g.selectedItemId),p=cl();return k.useEffect(()=>{e.value!=null&&u.setState("search",e.value)},[e.value]),k.createElement(Jr.input,{ref:n,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":h,id:p.inputId,type:"text",value:l?e.value:c,onChange:g=>{l||u.setState("search",g.target.value),r?.(g.target.value)}})}),LM=k.forwardRef((e,n)=>{let{children:r,label:o="Suggestions",...l}=e,u=k.useRef(null),c=k.useRef(null),h=Xr(g=>g.selectedItemId),p=cl();return k.useEffect(()=>{if(c.current&&u.current){let g=c.current,y=u.current,v,b=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let w=g.offsetHeight;y.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return b.observe(g),()=>{cancelAnimationFrame(v),b.unobserve(g)}}},[]),k.createElement(Jr.div,{ref:Xs(u,n),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":h,"aria-label":o,id:p.listId},mc(e,g=>k.createElement("div",{ref:Xs(c,p.listInnerRef),"cmdk-list-sizer":""},g)))}),IM=k.forwardRef((e,n)=>{let{open:r,onOpenChange:o,overlayClassName:l,contentClassName:u,container:c,...h}=e;return k.createElement(Ih,{open:r,onOpenChange:o},k.createElement(Uh,{container:c},k.createElement(qh,{"cmdk-overlay":"",className:l}),k.createElement(zh,{"aria-label":e.label,"cmdk-dialog":"",className:u},k.createElement(Yx,{ref:n,...h}))))}),zM=k.forwardRef((e,n)=>Xr(r=>r.filtered.count===0)?k.createElement(Jr.div,{ref:n,...e,"cmdk-empty":"",role:"presentation"}):null),FM=k.forwardRef((e,n)=>{let{progress:r,children:o,label:l="Loading...",...u}=e;return k.createElement(Jr.div,{ref:n,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},mc(e,c=>k.createElement("div",{"aria-hidden":!0},c)))}),Rn=Object.assign(Yx,{List:LM,Item:RM,Input:OM,Group:jM,Separator:MM,Dialog:IM,Empty:zM,Loading:FM});function UM(e,n){let r=e.nextElementSibling;for(;r;){if(r.matches(n))return r;r=r.nextElementSibling}}function qM(e,n){let r=e.previousElementSibling;for(;r;){if(r.matches(n))return r;r=r.previousElementSibling}}function Kx(e){let n=k.useRef(e);return Ti(()=>{n.current=e}),n}var Ti=typeof window>"u"?k.useEffect:k.useLayoutEffect;function _o(e){let n=k.useRef();return n.current===void 0&&(n.current=e()),n}function Xr(e){let n=Dm(),r=()=>e(n.snapshot());return k.useSyncExternalStore(n.subscribe,r,r)}function Wx(e,n,r,o=[]){let l=k.useRef(),u=cl();return Ti(()=>{var c;let h=(()=>{var g;for(let y of r){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(g=y.current.textContent)==null?void 0:g.trim():l.current}})(),p=o.map(g=>g.trim());u.value(e,h,p),(c=n.current)==null||c.setAttribute(Eo,h),l.current=h}),l}var BM=()=>{let[e,n]=k.useState(),r=_o(()=>new Map);return Ti(()=>{r.current.forEach(o=>o()),r.current=new Map},[e]),(o,l)=>{r.current.set(o,l),n({})}};function PM(e){let n=e.type;return typeof n=="function"?n(e.props):"render"in n?n.render(e.props):e}function mc({asChild:e,children:n},r){return e&&k.isValidElement(n)?k.cloneElement(PM(n),{ref:n.ref},r(n.props.children)):r(n)}var HM={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Xx=k.forwardRef(({className:e,...n},r)=>d.jsx(Rn,{ref:r,className:$("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...n}));Xx.displayName=Rn.displayName;const Zx=k.forwardRef(({className:e,...n},r)=>d.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[d.jsx(Z1,{className:"mr-2 size-4 shrink-0 opacity-50"}),d.jsx(Rn.Input,{ref:r,className:$("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...n})]}));Zx.displayName=Rn.Input.displayName;const Jx=k.forwardRef(({className:e,...n},r)=>d.jsx(Rn.List,{ref:r,className:$("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...n}));Jx.displayName=Rn.List.displayName;const ew=k.forwardRef((e,n)=>d.jsx(Rn.Empty,{ref:n,className:"py-6 text-center text-sm",...e}));ew.displayName=Rn.Empty.displayName;const tw=k.forwardRef(({className:e,...n},r)=>d.jsx(Rn.Group,{ref:r,className:$("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...n}));tw.displayName=Rn.Group.displayName;const $M=k.forwardRef(({className:e,...n},r)=>d.jsx(Rn.Separator,{ref:r,className:$("-mx-1 h-px bg-border",e),...n}));$M.displayName=Rn.Separator.displayName;const nw=k.forwardRef(({className:e,...n},r)=>d.jsx(Rn.Item,{ref:r,className:$("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...n}));nw.displayName=Rn.Item.displayName;function Cm({...e}){return d.jsx(PE,{"data-slot":"popover",...e})}function km({...e}){return d.jsx(HE,{"data-slot":"popover-trigger",...e})}function Nm({className:e,align:n="center",sideOffset:r=4,fullWidth:o=!1,...l}){return d.jsx($E,{children:d.jsx(QE,{"data-slot":"popover-content",align:n,sideOffset:r,className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-hidden",o&&"w-[var(--radix-popover-trigger-width)] max-h-[var(--radix-popover-content-available-height)]",e),...l})})}function AI({...e}){return d.jsx(VE,{"data-slot":"popover-anchor",...e})}const Am=k.createContext(null),QM=({children:e})=>{const[n,r]=k.useState(!1);return d.jsx(Am.Provider,{value:{open:n,setOpen:r},children:d.jsx(Cm,{open:n,onOpenChange:r,children:e})})},VM=({"aria-label":e,selected:n=!1,id:r,children:o})=>{const l=k.use(Am);if(!l)throw new Error("'ComboboxTrigger' must be a child of `Combobox`");const{open:u}=l;return d.jsx(km,{asChild:!0,className:"w-full",children:d.jsxs(ot,{"aria-label":e,"aria-expanded":u,"aria-haspopup":"listbox",variant:"outline",className:$("w-full justify-between bg-card dark:bg-background",n&&"text-muted-foreground"),id:r,children:[o,d.jsx(gt,{id:"ChevronsUpDown",className:"size-4 opacity-50"})]})})},GM=({children:e})=>d.jsx(Nm,{fullWidth:!0,children:d.jsx(Xx,{shouldFilter:!1,children:e})}),YM=({value:e,onValueChange:n,placeholder:r,onKeyDown:o})=>d.jsx(Zx,{value:e,onValueChange:n,placeholder:r,className:"h-9",onKeyDown:o}),KM=({children:e})=>d.jsx(Jx,{children:e}),WM=({children:e})=>d.jsx(ew,{children:e}),XM=({heading:e,children:n})=>d.jsx(tw,{heading:e,children:n}),Ou=({"aria-label":e,disabled:n=!1,onSelect:r,closeOnSelect:o=!0,selected:l=!1,value:u,children:c})=>{const h=k.use(Am);if(!h)throw new Error("'ComboboxCommandItem' must be a child of `Combobox`");const{setOpen:p}=h;return d.jsxs(nw,{disabled:n,"aria-label":e,value:u,onSelect:()=>{o&&p(!1),r&&u&&r(u)},children:[c,d.jsx(gt,{id:"Check",className:$("ml-auto",l?"opacity-100":"opacity-0")})]})};function aw({value:e=[],onChange:n,placeholder:r="All tags",id:o}){const[l,u]=k.useState(""),{data:c}=et(Wr({page:1,limit:100,sort:"START_TIME_DESC"})),h=k.useMemo(()=>{const v=new Set;return(c?.results??[]).forEach(b=>{(b.tags??[]).forEach(w=>{v.add(w)})}),Array.from(v).sort((b,w)=>b.localeCompare(w))},[c?.results]),p=v=>{const w=e.includes(v)?e.filter(E=>E!==v):[...e,v];n?.(w)},g=k.useCallback(v=>{v&&(e.includes(v)||n?.([...e,v]))},[n,e]);k.useEffect(()=>{const v=l.trim();if(v.endsWith(",")){const b=v.replace(/,+$/,"").trim();b&&g(b),u("")}},[l,g]);const y=d.jsx("span",{className:"text-muted-foreground",children:e.length?"Edit tags":r});return d.jsx("div",{className:"w-full",children:d.jsxs(QM,{children:[d.jsx(VM,{"aria-label":"Flow run tags",id:o,selected:e.length===0,children:e.length>0?d.jsx("div",{className:"flex items-center gap-1 overflow-hidden",children:d.jsx(Sm,{tags:e,variant:"secondary",maxTagsDisplayed:3})}):y}),d.jsxs(GM,{children:[d.jsx(YM,{value:l,onValueChange:u,placeholder:"Search or enter new tag",onKeyDown:v=>{const b=l.trim();v.key==="Enter"&&b?(v.preventDefault(),g(b),u("")):v.key==="Backspace"&&!l&&e.length>0&&n?.(e.slice(0,-1))}}),d.jsxs(KM,{children:[h.length>0?d.jsx(WM,{children:"No tags found"}):null,d.jsxs(XM,{children:[e.length>0&&d.jsxs("div",{children:[e.map(v=>d.jsxs(Ou,{value:`selected-${v}`,onSelect:()=>p(v),closeOnSelect:!1,children:[d.jsx("button",{type:"button","aria-label":`Remove ${v} tag`,className:"text-muted-foreground hover:text-foreground",onClick:b=>{b.preventDefault(),b.stopPropagation(),n?.(e.filter(w=>w!==v))},children:d.jsx(gt,{id:"X",className:"size-3"})}),d.jsx("span",{children:v})]},`selected-${v}`)),d.jsx(Ou,{value:"__clear__",onSelect:()=>n?.([]),closeOnSelect:!1,children:"Clear all tags"})]}),l.trim()&&!e.includes(l.trim())&&d.jsxs(Ou,{value:`__add__:${l.trim()}`,onSelect:()=>g(l.trim()),closeOnSelect:!1,children:['Add "',l.trim(),'"']}),h.filter(v=>!e.includes(v)).filter(v=>{const b=l.trim().toLowerCase();return b?v.toLowerCase().includes(b):!0}).map(v=>d.jsx(Ou,{value:v,selected:e.includes(v),onSelect:()=>p(v),closeOnSelect:!1,children:v},v))]})]})]})]})})}aw.displayName="FlowRunTagsSelect";function ZM(){const e=new Date;return e.setMilliseconds(0),e}function rw(e){switch(e){case"second":return 1;case"minute":return Js;case"hour":return Ro;case"day":return yr}}function jh(e){if(!e)return null;switch(e.type){case"range":{const n=Qs(e.endDate,e.startDate);return{startDate:e.startDate,endDate:e.endDate,timeSpanInSeconds:n}}case"span":{const n=ZM(),r=Zs(n,e.seconds),[o,l]=[n,r].sort((c,h)=>c.getTime()-h.getTime()),u=Math.abs(e.seconds);return{startDate:o,endDate:l,timeSpanInSeconds:u}}case"around":{const n=Math.abs(e.quantity*rw(e.unit)),r=uh(e.date,n),o=Zs(e.date,n),l=Qs(o,r);return{startDate:r,endDate:o,timeSpanInSeconds:l}}case"period":{const n=R_(),r=j_(),o=Qs(r,n);return{startDate:n,endDate:r,timeSpanInSeconds:o}}default:return null}}function JM(e,n,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(n).split(/\s/g).slice(2).join(" ")}const e6={},Hs={};function Si(e,n){try{const o=(e6[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(n).split("GMT")[1];return o in Hs?Hs[o]:bb(o,o.split(":"))}catch{if(e in Hs)return Hs[e];const r=e?.match(t6);return r?bb(e,r.slice(1)):NaN}}const t6=/([+-]\d\d):?(\d\d)?/;function bb(e,n){const r=+(n[0]||0),o=+(n[1]||0),l=+(n[2]||0)/60;return Hs[e]=r*60+o>0?r*60+o+l:r*60-o-l}class La extends Date{constructor(...n){super(),n.length>1&&typeof n[n.length-1]=="string"&&(this.timeZone=n.pop()),this.internal=new Date,isNaN(Si(this.timeZone,this))?this.setTime(NaN):n.length?typeof n[0]=="number"&&(n.length===1||n.length===2&&typeof n[1]!="number")?this.setTime(n[0]):typeof n[0]=="string"?this.setTime(+new Date(n[0])):n[0]instanceof Date?this.setTime(+n[0]):(this.setTime(+new Date(...n)),iw(this),Mh(this)):this.setTime(Date.now())}static tz(n,...r){return r.length?new La(...r,n):new La(Date.now(),n)}withTimeZone(n){return new La(+this,n)}getTimezoneOffset(){const n=-Si(this.timeZone,this);return n>0?Math.floor(n):Math.ceil(n)}setTime(n){return Date.prototype.setTime.apply(this,arguments),Mh(this),+this}[Symbol.for("constructDateFrom")](n){return new La(+new Date(n),this.timeZone)}}const xb=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!xb.test(e))return;const n=e.replace(xb,"$1UTC");La.prototype[n]&&(e.startsWith("get")?La.prototype[e]=function(){return this.internal[n]()}:(La.prototype[e]=function(){return Date.prototype[n].apply(this.internal,arguments),n6(this),+this},La.prototype[n]=function(){return Date.prototype[n].apply(this,arguments),Mh(this),+this}))});function Mh(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Si(e.timeZone,e)*60))}function n6(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),iw(e)}function iw(e){const n=Si(e.timeZone,e),r=n>0?Math.floor(n):Math.ceil(n),o=new Date(+e);o.setUTCHours(o.getUTCHours()-1);const l=-new Date(+e).getTimezoneOffset(),u=-new Date(+o).getTimezoneOffset(),c=l-u,h=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();c&&h&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+c);const p=l-r;p&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const g=new Date(+e);g.setUTCSeconds(0);const y=l>0?g.getSeconds():(g.getSeconds()-60)%60,v=Math.round(-(Si(e.timeZone,e)*60))%60;(v||y)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+v),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+v+y));const b=Si(e.timeZone,e),w=b>0?Math.floor(b):Math.ceil(b),C=-new Date(+e).getTimezoneOffset()-w,D=w!==r,_=C-p;if(D&&_){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+_);const A=Si(e.timeZone,e),N=A>0?Math.floor(A):Math.ceil(A),M=w-N;M&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+M),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+M))}}class un extends La{static tz(n,...r){return r.length?new un(...r,n):new un(Date.now(),n)}toISOString(){const[n,r,o]=this.tzComponents(),l=`${n}${r}:${o}`;return this.internal.toISOString().slice(0,-1)+l}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[n,r,o,l]=this.internal.toUTCString().split(" ");return`${n?.slice(0,-1)} ${o} ${r} ${l}`}toTimeString(){const n=this.internal.toUTCString().split(" ")[4],[r,o,l]=this.tzComponents();return`${n} GMT${r}${o}${l} (${JM(this.timeZone,this)})`}toLocaleString(n,r){return Date.prototype.toLocaleString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(n,r){return Date.prototype.toLocaleDateString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(n,r){return Date.prototype.toLocaleTimeString.call(this,n,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const n=this.getTimezoneOffset(),r=n>0?"-":"+",o=String(Math.floor(Math.abs(n)/60)).padStart(2,"0"),l=String(Math.abs(n)%60).padStart(2,"0");return[r,o,l]}withTimeZone(n){return new un(+this,n)}[Symbol.for("constructDateFrom")](n){return new un(+new Date(n),this.timeZone)}}const wb=5,a6=4;function r6(e,n){const r=n.startOfMonth(e),o=r.getDay()>0?r.getDay():7,l=n.addDays(e,-o+1),u=n.addDays(l,wb*7-1);return n.getMonth(e)===n.getMonth(u)?wb:a6}function ow(e,n){const r=n.startOfMonth(e),o=r.getDay();return o===1?r:o===0?n.addDays(r,-6):n.addDays(r,-1*(o-1))}function i6(e,n){const r=ow(e,n),o=r6(e,n);return n.addDays(r,o*7-1)}const sw={...Rs,labels:{labelDayButton:(e,n,r,o)=>{let l;o&&typeof o.format=="function"?l=o.format.bind(o):l=(c,h)=>sn(c,h,{locale:Rs,...r});let u=l(e,"PPPP");return n.today&&(u=`Today, ${u}`),n.selected&&(u=`${u}, selected`),u},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,n,r)=>{let o;return r&&typeof r.format=="function"?o=r.format.bind(r):o=(l,u)=>sn(l,u,{locale:Rs,...n}),o(e,"LLLL yyyy")},labelGridcell:(e,n,r,o)=>{let l;o&&typeof o.format=="function"?l=o.format.bind(o):l=(c,h)=>sn(c,h,{locale:Rs,...r});let u=l(e,"PPPP");return n?.today&&(u=`Today, ${u}`),u},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,n,r)=>{let o;return r&&typeof r.format=="function"?o=r.format.bind(r):o=(l,u)=>sn(l,u,{locale:Rs,...n}),o(e,"cccc")}}};class Qn{constructor(n,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?un.tz(this.options.timeZone):new this.Date,this.newDate=(o,l,u)=>this.overrides?.newDate?this.overrides.newDate(o,l,u):this.options.timeZone?new un(o,l,u,this.options.timeZone):new Date(o,l,u),this.addDays=(o,l)=>this.overrides?.addDays?this.overrides.addDays(o,l):ch(o,l),this.addMonths=(o,l)=>this.overrides?.addMonths?this.overrides.addMonths(o,l):M_(o,l),this.addWeeks=(o,l)=>this.overrides?.addWeeks?this.overrides.addWeeks(o,l):O_(o,l),this.addYears=(o,l)=>this.overrides?.addYears?this.overrides.addYears(o,l):L_(o,l),this.differenceInCalendarDays=(o,l)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(o,l):qb(o,l),this.differenceInCalendarMonths=(o,l)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(o,l):Bb(o,l),this.eachMonthOfInterval=o=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(o):I_(o),this.eachYearOfInterval=o=>{const l=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(o):z_(o),u=new Set(l.map(h=>this.getYear(h)));if(u.size===l.length)return l;const c=[];return u.forEach(h=>{c.push(new Date(h,0,1))}),c},this.endOfBroadcastWeek=o=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(o):i6(o,this),this.endOfISOWeek=o=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(o):F_(o),this.endOfMonth=o=>this.overrides?.endOfMonth?this.overrides.endOfMonth(o):U_(o),this.endOfWeek=(o,l)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(o,l):q_(o,this.options),this.endOfYear=o=>this.overrides?.endOfYear?this.overrides.endOfYear(o):B_(o),this.format=(o,l,u)=>{const c=this.overrides?.format?this.overrides.format(o,l,this.options):sn(o,l,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(c):c},this.getISOWeek=o=>this.overrides?.getISOWeek?this.overrides.getISOWeek(o):Pb(o),this.getMonth=(o,l)=>this.overrides?.getMonth?this.overrides.getMonth(o,this.options):P_(o,this.options),this.getYear=(o,l)=>this.overrides?.getYear?this.overrides.getYear(o,this.options):H_(o,this.options),this.getWeek=(o,l)=>this.overrides?.getWeek?this.overrides.getWeek(o,this.options):Hb(o,this.options),this.isAfter=(o,l)=>this.overrides?.isAfter?this.overrides.isAfter(o,l):Hh(o,l),this.isBefore=(o,l)=>this.overrides?.isBefore?this.overrides.isBefore(o,l):ic(o,l),this.isDate=o=>this.overrides?.isDate?this.overrides.isDate(o):$_(o),this.isSameDay=(o,l)=>this.overrides?.isSameDay?this.overrides.isSameDay(o,l):$b(o,l),this.isSameMonth=(o,l)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(o,l):Q_(o,l),this.isSameYear=(o,l)=>this.overrides?.isSameYear?this.overrides.isSameYear(o,l):wo(o,l),this.max=o=>this.overrides?.max?this.overrides.max(o):Ub(o),this.min=o=>this.overrides?.min?this.overrides.min(o):V_(o),this.setMonth=(o,l)=>this.overrides?.setMonth?this.overrides.setMonth(o,l):G_(o,l),this.setYear=(o,l)=>this.overrides?.setYear?this.overrides.setYear(o,l):Y_(o,l),this.startOfBroadcastWeek=(o,l)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(o,this):ow(o,this),this.startOfDay=o=>this.overrides?.startOfDay?this.overrides.startOfDay(o):Vs(o),this.startOfISOWeek=o=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(o):K_(o),this.startOfMonth=o=>this.overrides?.startOfMonth?this.overrides.startOfMonth(o):W_(o),this.startOfWeek=(o,l)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(o,this.options):X_(o,this.options),this.startOfYear=o=>this.overrides?.startOfYear?this.overrides.startOfYear(o):Z_(o),this.options={locale:sw,...n},this.overrides=r}getDigitMap(){const{numerals:n="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:n}),o={};for(let l=0;l<10;l++)o[l.toString()]=r.format(l);return o}replaceDigits(n){const r=this.getDigitMap();return n.replace(/\d/g,o=>r[o]||o)}formatNumber(n){return this.replaceDigits(n.toString())}getMonthYearOrder(){const n=this.options.locale?.code;return n&&Qn.yearFirstLocales.has(n)?"year-first":"month-first"}formatMonthYear(n){const{locale:r,timeZone:o,numerals:l}=this.options,u=r?.code;if(u&&Qn.yearFirstLocales.has(u))try{return new Intl.DateTimeFormat(u,{month:"long",year:"numeric",timeZone:o,numberingSystem:l}).format(n)}catch{}const c=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(n,c)}}Qn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Ha=new Qn;class lw{constructor(n,r,o=Ha){this.date=n,this.displayMonth=r,this.outside=!!(r&&!o.isSameMonth(n,r)),this.dateLib=o,this.isoDate=o.format(n,"yyyy-MM-dd"),this.displayMonthId=o.format(r,"yyyy-MM"),this.dateMonthId=o.format(n,"yyyy-MM")}isEqualTo(n){return this.dateLib.isSameDay(n.date,this.date)&&this.dateLib.isSameMonth(n.displayMonth,this.displayMonth)}}class o6{constructor(n,r){this.date=n,this.weeks=r}}class s6{constructor(n,r){this.days=r,this.weekNumber=n}}function l6(e){return V.createElement("button",{...e})}function u6(e){return V.createElement("span",{...e})}function c6(e){const{size:n=24,orientation:r="left",className:o}=e;return V.createElement("svg",{className:o,width:n,height:n,viewBox:"0 0 24 24"},r==="up"&&V.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),r==="down"&&V.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),r==="left"&&V.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),r==="right"&&V.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function d6(e){const{day:n,modifiers:r,...o}=e;return V.createElement("td",{...o})}function f6(e){const{day:n,modifiers:r,...o}=e,l=V.useRef(null);return V.useEffect(()=>{r.focused&&l.current?.focus()},[r.focused]),V.createElement("button",{ref:l,...o})}var Se;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Se||(Se={}));var Nt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Nt||(Nt={}));var ba;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(ba||(ba={}));var Bn;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Bn||(Bn={}));function h6(e){const{options:n,className:r,components:o,classNames:l,...u}=e,c=[l[Se.Dropdown],r].join(" "),h=n?.find(({value:p})=>p===u.value);return V.createElement("span",{"data-disabled":u.disabled,className:l[Se.DropdownRoot]},V.createElement(o.Select,{className:c,...u},n?.map(({value:p,label:g,disabled:y})=>V.createElement(o.Option,{key:p,value:p,disabled:y},g))),V.createElement("span",{className:l[Se.CaptionLabel],"aria-hidden":!0},h?.label,V.createElement(o.Chevron,{orientation:"down",size:18,className:l[Se.Chevron]})))}function m6(e){return V.createElement("div",{...e})}function p6(e){return V.createElement("div",{...e})}function v6(e){const{calendarMonth:n,displayIndex:r,...o}=e;return V.createElement("div",{...o},e.children)}function g6(e){const{calendarMonth:n,displayIndex:r,...o}=e;return V.createElement("div",{...o})}function y6(e){return V.createElement("table",{...e})}function b6(e){return V.createElement("div",{...e})}const uw=k.createContext(void 0);function dl(){const e=k.useContext(uw);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function x6(e){const{components:n}=dl();return V.createElement(n.Dropdown,{...e})}function w6(e){const{onPreviousClick:n,onNextClick:r,previousMonth:o,nextMonth:l,...u}=e,{components:c,classNames:h,labels:{labelPrevious:p,labelNext:g}}=dl(),y=k.useCallback(b=>{l&&r?.(b)},[l,r]),v=k.useCallback(b=>{o&&n?.(b)},[o,n]);return V.createElement("nav",{...u},V.createElement(c.PreviousMonthButton,{type:"button",className:h[Se.PreviousMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":p(o),onClick:v},V.createElement(c.Chevron,{disabled:o?void 0:!0,className:h[Se.Chevron],orientation:"left"})),V.createElement(c.NextMonthButton,{type:"button",className:h[Se.NextMonthButton],tabIndex:l?void 0:-1,"aria-disabled":l?void 0:!0,"aria-label":g(l),onClick:y},V.createElement(c.Chevron,{disabled:l?void 0:!0,orientation:"right",className:h[Se.Chevron]})))}function S6(e){const{components:n}=dl();return V.createElement(n.Button,{...e})}function E6(e){return V.createElement("option",{...e})}function _6(e){const{components:n}=dl();return V.createElement(n.Button,{...e})}function T6(e){const{rootRef:n,...r}=e;return V.createElement("div",{...r,ref:n})}function D6(e){return V.createElement("select",{...e})}function C6(e){const{week:n,...r}=e;return V.createElement("tr",{...r})}function k6(e){return V.createElement("th",{...e})}function N6(e){return V.createElement("thead",{"aria-hidden":!0},V.createElement("tr",{...e}))}function A6(e){const{week:n,...r}=e;return V.createElement("th",{...r})}function R6(e){return V.createElement("th",{...e})}function j6(e){return V.createElement("tbody",{...e})}function M6(e){const{components:n}=dl();return V.createElement(n.Dropdown,{...e})}const O6=Object.freeze(Object.defineProperty({__proto__:null,Button:l6,CaptionLabel:u6,Chevron:c6,Day:d6,DayButton:f6,Dropdown:h6,DropdownNav:m6,Footer:p6,Month:v6,MonthCaption:g6,MonthGrid:y6,Months:b6,MonthsDropdown:x6,Nav:w6,NextMonthButton:S6,Option:E6,PreviousMonthButton:_6,Root:T6,Select:D6,Week:C6,WeekNumber:A6,WeekNumberHeader:R6,Weekday:k6,Weekdays:N6,Weeks:j6,YearsDropdown:M6},Symbol.toStringTag,{value:"Module"}));function vr(e,n,r=!1,o=Ha){let{from:l,to:u}=e;const{differenceInCalendarDays:c,isSameDay:h}=o;return l&&u?(c(u,l)<0&&([l,u]=[u,l]),c(n,l)>=(r?1:0)&&c(u,n)>=(r?1:0)):!r&&u?h(u,n):!r&&l?h(l,n):!1}function Rm(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function pc(e){return!!(e&&typeof e=="object"&&"from"in e)}function jm(e){return!!(e&&typeof e=="object"&&"after"in e)}function Mm(e){return!!(e&&typeof e=="object"&&"before"in e)}function cw(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function dw(e,n){return Array.isArray(e)&&e.every(n.isDate)}function gr(e,n,r=Ha){const o=Array.isArray(n)?n:[n],{isSameDay:l,differenceInCalendarDays:u,isAfter:c}=r;return o.some(h=>{if(typeof h=="boolean")return h;if(r.isDate(h))return l(e,h);if(dw(h,r))return h.some(p=>l(e,p));if(pc(h))return vr(h,e,!1,r);if(cw(h))return Array.isArray(h.dayOfWeek)?h.dayOfWeek.includes(e.getDay()):h.dayOfWeek===e.getDay();if(Rm(h)){const p=u(h.before,e),g=u(h.after,e),y=p>0,v=g<0;return c(h.before,h.after)?v&&y:y||v}return jm(h)?u(e,h.after)>0:Mm(h)?u(h.before,e)>0:typeof h=="function"?h(e):!1})}function L6(e,n,r,o,l){const{disabled:u,hidden:c,modifiers:h,showOutsideDays:p,broadcastCalendar:g,today:y=l.today()}=n,{isSameDay:v,isSameMonth:b,startOfMonth:w,isBefore:E,endOfMonth:C,isAfter:D}=l,_=r&&w(r),A=o&&C(o),N={[Nt.focused]:[],[Nt.outside]:[],[Nt.disabled]:[],[Nt.hidden]:[],[Nt.today]:[]},M={};for(const O of e){const{date:I,displayMonth:S}=O,U=!!(S&&!b(I,S)),F=!!(_&&E(I,_)),L=!!(A&&D(I,A)),B=!!(u&&gr(I,u,l)),K=!!(c&&gr(I,c,l))||F||L||!g&&!p&&U||g&&p===!1&&U,se=v(I,y);U&&N.outside.push(O),B&&N.disabled.push(O),K&&N.hidden.push(O),se&&N.today.push(O),h&&Object.keys(h).forEach(ae=>{const ce=h?.[ae];ce&&gr(I,ce,l)&&(M[ae]?M[ae].push(O):M[ae]=[O])})}return O=>{const I={[Nt.focused]:!1,[Nt.disabled]:!1,[Nt.hidden]:!1,[Nt.outside]:!1,[Nt.today]:!1},S={};for(const U in N){const F=N[U];I[U]=F.some(L=>L===O)}for(const U in M)S[U]=M[U].some(F=>F===O);return{...I,...S}}}function I6(e,n,r={}){return Object.entries(e).filter(([,l])=>l===!0).reduce((l,[u])=>(r[u]?l.push(r[u]):n[Nt[u]]?l.push(n[Nt[u]]):n[ba[u]]&&l.push(n[ba[u]]),l),[n[Se.Day]])}function z6(e){return{...O6,...e}}function F6(e){const n={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([r,o])=>{r.startsWith("data-")&&(n[r]=o)}),n}function Om(){const e={};for(const n in Se)e[Se[n]]=`rdp-${Se[n]}`;for(const n in Nt)e[Nt[n]]=`rdp-${Nt[n]}`;for(const n in ba)e[ba[n]]=`rdp-${ba[n]}`;for(const n in Bn)e[Bn[n]]=`rdp-${Bn[n]}`;return e}function fw(e,n,r){return(r??new Qn(n)).formatMonthYear(e)}const U6=fw;function q6(e,n,r){return(r??new Qn(n)).format(e,"d")}function B6(e,n=Ha){return n.format(e,"LLLL")}function P6(e,n,r){return(r??new Qn(n)).format(e,"cccccc")}function H6(e,n=Ha){return e<10?n.formatNumber(`0${e.toLocaleString()}`):n.formatNumber(`${e.toLocaleString()}`)}function $6(){return""}function hw(e,n=Ha){return n.format(e,"yyyy")}const Q6=hw,V6=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:fw,formatDay:q6,formatMonthCaption:U6,formatMonthDropdown:B6,formatWeekNumber:H6,formatWeekNumberHeader:$6,formatWeekdayName:P6,formatYearCaption:Q6,formatYearDropdown:hw},Symbol.toStringTag,{value:"Module"}));function G6(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...V6,...e}}function Lm(e,n,r,o){let l=(o??new Qn(r)).format(e,"PPPP");return n.today&&(l=`Today, ${l}`),n.selected&&(l=`${l}, selected`),l}const Y6=Lm;function Im(e,n,r){return(r??new Qn(n)).formatMonthYear(e)}const K6=Im;function mw(e,n,r,o){let l=(o??new Qn(r)).format(e,"PPPP");return n?.today&&(l=`Today, ${l}`),l}function pw(e){return"Choose the Month"}function vw(){return""}const W6="Go to the Next Month";function gw(e,n){return W6}function yw(e){return"Go to the Previous Month"}function bw(e,n,r){return(r??new Qn(n)).format(e,"cccc")}function xw(e,n){return`Week ${e}`}function ww(e){return"Week Number"}function Sw(e){return"Choose the Year"}const X6=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:K6,labelDay:Y6,labelDayButton:Lm,labelGrid:Im,labelGridcell:mw,labelMonthDropdown:pw,labelNav:vw,labelNext:gw,labelPrevious:yw,labelWeekNumber:xw,labelWeekNumberHeader:ww,labelWeekday:bw,labelYearDropdown:Sw},Symbol.toStringTag,{value:"Module"})),pa=(e,n,r)=>n||(r?typeof r=="function"?r:(...o)=>r:e);function Z6(e,n){const r=n.locale?.labels??{};return{...X6,...e??{},labelDayButton:pa(Lm,e?.labelDayButton,r.labelDayButton),labelMonthDropdown:pa(pw,e?.labelMonthDropdown,r.labelMonthDropdown),labelNext:pa(gw,e?.labelNext,r.labelNext),labelPrevious:pa(yw,e?.labelPrevious,r.labelPrevious),labelWeekNumber:pa(xw,e?.labelWeekNumber,r.labelWeekNumber),labelYearDropdown:pa(Sw,e?.labelYearDropdown,r.labelYearDropdown),labelGrid:pa(Im,e?.labelGrid,r.labelGrid),labelGridcell:pa(mw,e?.labelGridcell,r.labelGridcell),labelNav:pa(vw,e?.labelNav,r.labelNav),labelWeekNumberHeader:pa(ww,e?.labelWeekNumberHeader,r.labelWeekNumberHeader),labelWeekday:pa(bw,e?.labelWeekday,r.labelWeekday)}}function J6(e,n,r,o,l){const{startOfMonth:u,startOfYear:c,endOfYear:h,eachMonthOfInterval:p,getMonth:g}=l;return p({start:c(e),end:h(e)}).map(b=>{const w=o.formatMonthDropdown(b,l),E=g(b),C=n&&b<u(n)||r&&b>u(r)||!1;return{value:E,label:w,disabled:C}})}function eO(e,n={},r={}){let o={...n?.[Se.Day]};return Object.entries(e).filter(([,l])=>l===!0).forEach(([l])=>{o={...o,...r?.[l]}}),o}function tO(e,n,r,o){const l=o??e.today(),u=r?e.startOfBroadcastWeek(l,e):n?e.startOfISOWeek(l):e.startOfWeek(l),c=[];for(let h=0;h<7;h++){const p=e.addDays(u,h);c.push(p)}return c}function nO(e,n,r,o,l=!1){if(!e||!n)return;const{startOfYear:u,endOfYear:c,eachYearOfInterval:h,getYear:p}=o,g=u(e),y=c(n),v=h({start:g,end:y});return l&&v.reverse(),v.map(b=>{const w=r.formatYearDropdown(b,o);return{value:p(b),label:w,disabled:!1}})}function aO(e,n={}){const{weekStartsOn:r,locale:o}=n,l=r??o?.options?.weekStartsOn??0,u=h=>{const p=typeof h=="number"||typeof h=="string"?new Date(h):h;return new un(p.getFullYear(),p.getMonth(),p.getDate(),12,0,0,e)},c=h=>{const p=u(h);return new Date(p.getFullYear(),p.getMonth(),p.getDate(),0,0,0,0)};return{today:()=>u(un.tz(e)),newDate:(h,p,g)=>new un(h,p,g,12,0,0,e),startOfDay:h=>u(h),startOfWeek:(h,p)=>{const g=u(h),y=p?.weekStartsOn??l,v=(g.getDay()-y+7)%7;return g.setDate(g.getDate()-v),g},startOfISOWeek:h=>{const p=u(h),g=(p.getDay()-1+7)%7;return p.setDate(p.getDate()-g),p},startOfMonth:h=>{const p=u(h);return p.setDate(1),p},startOfYear:h=>{const p=u(h);return p.setMonth(0,1),p},endOfWeek:(h,p)=>{const g=u(h),b=(((p?.weekStartsOn??l)+6)%7-g.getDay()+7)%7;return g.setDate(g.getDate()+b),g},endOfISOWeek:h=>{const p=u(h),g=(7-p.getDay())%7;return p.setDate(p.getDate()+g),p},endOfMonth:h=>{const p=u(h);return p.setMonth(p.getMonth()+1,0),p},endOfYear:h=>{const p=u(h);return p.setMonth(11,31),p},eachMonthOfInterval:h=>{const p=u(h.start),g=u(h.end),y=[],v=new un(p.getFullYear(),p.getMonth(),1,12,0,0,e),b=g.getFullYear()*12+g.getMonth();for(;v.getFullYear()*12+v.getMonth()<=b;)y.push(new un(v,e)),v.setMonth(v.getMonth()+1,1);return y},addDays:(h,p)=>{const g=u(h);return g.setDate(g.getDate()+p),g},addWeeks:(h,p)=>{const g=u(h);return g.setDate(g.getDate()+p*7),g},addMonths:(h,p)=>{const g=u(h);return g.setMonth(g.getMonth()+p),g},addYears:(h,p)=>{const g=u(h);return g.setFullYear(g.getFullYear()+p),g},eachYearOfInterval:h=>{const p=u(h.start),g=u(h.end),y=[],v=new un(p.getFullYear(),0,1,12,0,0,e);for(;v.getFullYear()<=g.getFullYear();)y.push(new un(v,e)),v.setFullYear(v.getFullYear()+1,0,1);return y},getWeek:(h,p)=>{const g=c(h);return Hb(g,{weekStartsOn:p?.weekStartsOn??l,firstWeekContainsDate:p?.firstWeekContainsDate??o?.options?.firstWeekContainsDate??1})},getISOWeek:h=>{const p=c(h);return Pb(p)},differenceInCalendarDays:(h,p)=>{const g=c(h),y=c(p);return qb(g,y)},differenceInCalendarMonths:(h,p)=>{const g=c(h),y=c(p);return Bb(g,y)}}}const fl=e=>e instanceof HTMLElement?e:null,nh=e=>[...e.querySelectorAll("[data-animated-month]")??[]],rO=e=>fl(e.querySelector("[data-animated-month]")),ah=e=>fl(e.querySelector("[data-animated-caption]")),rh=e=>fl(e.querySelector("[data-animated-weeks]")),iO=e=>fl(e.querySelector("[data-animated-nav]")),oO=e=>fl(e.querySelector("[data-animated-weekdays]"));function sO(e,n,{classNames:r,months:o,focused:l,dateLib:u}){const c=k.useRef(null),h=k.useRef(o),p=k.useRef(!1);k.useLayoutEffect(()=>{const g=h.current;if(h.current=o,!n||!e.current||!(e.current instanceof HTMLElement)||o.length===0||g.length===0||o.length!==g.length)return;const y=u.isSameMonth(o[0].date,g[0].date),v=u.isAfter(o[0].date,g[0].date),b=v?r[Bn.caption_after_enter]:r[Bn.caption_before_enter],w=v?r[Bn.weeks_after_enter]:r[Bn.weeks_before_enter],E=c.current,C=e.current.cloneNode(!0);if(C instanceof HTMLElement?(nh(C).forEach(N=>{if(!(N instanceof HTMLElement))return;const M=rO(N);M&&N.contains(M)&&N.removeChild(M);const O=ah(N);O&&O.classList.remove(b);const I=rh(N);I&&I.classList.remove(w)}),c.current=C):c.current=null,p.current||y||l)return;const D=E instanceof HTMLElement?nh(E):[],_=nh(e.current);if(_?.every(A=>A instanceof HTMLElement)&&D&&D.every(A=>A instanceof HTMLElement)){p.current=!0,e.current.style.isolation="isolate";const A=iO(e.current);A&&(A.style.zIndex="1"),_.forEach((N,M)=>{const O=D[M];if(!O)return;N.style.position="relative",N.style.overflow="hidden";const I=ah(N);I&&I.classList.add(b);const S=rh(N);S&&S.classList.add(w);const U=()=>{p.current=!1,e.current&&(e.current.style.isolation=""),A&&(A.style.zIndex=""),I&&I.classList.remove(b),S&&S.classList.remove(w),N.style.position="",N.style.overflow="",N.contains(O)&&N.removeChild(O)};O.style.pointerEvents="none",O.style.position="absolute",O.style.overflow="hidden",O.setAttribute("aria-hidden","true");const F=oO(O);F&&(F.style.opacity="0");const L=ah(O);L&&(L.classList.add(v?r[Bn.caption_before_exit]:r[Bn.caption_after_exit]),L.addEventListener("animationend",U));const B=rh(O);B&&B.classList.add(v?r[Bn.weeks_before_exit]:r[Bn.weeks_after_exit]),N.insertBefore(O,N.firstChild)})}})}function lO(e,n,r,o){const l=e[0],u=e[e.length-1],{ISOWeek:c,fixedWeeks:h,broadcastCalendar:p}=r??{},{addDays:g,differenceInCalendarDays:y,differenceInCalendarMonths:v,endOfBroadcastWeek:b,endOfISOWeek:w,endOfMonth:E,endOfWeek:C,isAfter:D,startOfBroadcastWeek:_,startOfISOWeek:A,startOfWeek:N}=o,M=p?_(l,o):c?A(l):N(l),O=p?b(u):c?w(E(u)):C(E(u)),I=n&&(p?b(n):c?w(n):C(n)),S=I&&D(O,I)?I:O,U=y(S,M),F=v(u,l)+1,L=[];for(let se=0;se<=U;se++){const ae=g(M,se);L.push(ae)}const K=(p?35:42)*F;if(h&&L.length<K){const se=K-L.length;for(let ae=0;ae<se;ae++){const ce=g(L[L.length-1],1);L.push(ce)}}return L}function uO(e){const n=[];return e.reduce((r,o)=>{const l=o.weeks.reduce((u,c)=>u.concat(c.days.slice()),n.slice());return r.concat(l.slice())},n.slice())}function cO(e,n,r,o){const{numberOfMonths:l=1}=r,u=[];for(let c=0;c<l;c++){const h=o.addMonths(e,c);if(n&&h>n)break;u.push(h)}return u}function Sb(e,n,r,o){const{month:l,defaultMonth:u,today:c=o.today(),numberOfMonths:h=1}=e;let p=l||u||c;const{differenceInCalendarMonths:g,addMonths:y,startOfMonth:v}=o;if(r&&g(r,p)<h-1){const b=-1*(h-1);p=y(r,b)}return n&&g(p,n)<0&&(p=n),v(p)}function dO(e,n,r,o){const{addDays:l,endOfBroadcastWeek:u,endOfISOWeek:c,endOfMonth:h,endOfWeek:p,getISOWeek:g,getWeek:y,startOfBroadcastWeek:v,startOfISOWeek:b,startOfWeek:w}=o,E=e.reduce((C,D)=>{const _=r.broadcastCalendar?v(D,o):r.ISOWeek?b(D):w(D),A=r.broadcastCalendar?u(D):r.ISOWeek?c(h(D)):p(h(D)),N=n.filter(S=>S>=_&&S<=A),M=r.broadcastCalendar?35:42;if(r.fixedWeeks&&N.length<M){const S=n.filter(U=>{const F=M-N.length;return U>A&&U<=l(A,F)});N.push(...S)}const O=N.reduce((S,U)=>{const F=r.ISOWeek?g(U):y(U),L=S.find(K=>K.weekNumber===F),B=new lw(U,D,o);return L?L.days.push(B):S.push(new s6(F,[B])),S},[]),I=new o6(D,O);return C.push(I),C},[]);return r.reverseMonths?E.reverse():E}function fO(e,n){let{startMonth:r,endMonth:o}=e;const{startOfYear:l,startOfDay:u,startOfMonth:c,endOfMonth:h,addYears:p,endOfYear:g,newDate:y,today:v}=n,{fromYear:b,toYear:w,fromMonth:E,toMonth:C}=e;!r&&E&&(r=E),!r&&b&&(r=n.newDate(b,0,1)),!o&&C&&(o=C),!o&&w&&(o=y(w,11,31));const D=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return r?r=c(r):b?r=y(b,0,1):!r&&D&&(r=l(p(e.today??v(),-100))),o?o=h(o):w?o=y(w,11,31):!o&&D&&(o=g(e.today??v())),[r&&u(r),o&&u(o)]}function hO(e,n,r,o){if(r.disableNavigation)return;const{pagedNavigation:l,numberOfMonths:u=1}=r,{startOfMonth:c,addMonths:h,differenceInCalendarMonths:p}=o,g=l?u:1,y=c(e);if(!n)return h(y,g);if(!(p(n,e)<u))return h(y,g)}function mO(e,n,r,o){if(r.disableNavigation)return;const{pagedNavigation:l,numberOfMonths:u}=r,{startOfMonth:c,addMonths:h,differenceInCalendarMonths:p}=o,g=l?u??1:1,y=c(e);if(!n)return h(y,-g);if(!(p(y,n)<=0))return h(y,-g)}function pO(e){const n=[];return e.reduce((r,o)=>r.concat(o.weeks.slice()),n.slice())}function vc(e,n){const[r,o]=k.useState(e);return[n===void 0?r:n,o]}function vO(e,n){const[r,o]=fO(e,n),{startOfMonth:l,endOfMonth:u}=n,c=Sb(e,r,o,n),[h,p]=vc(c,e.month?c:void 0);k.useEffect(()=>{const M=Sb(e,r,o,n);p(M)},[e.timeZone]);const{months:g,weeks:y,days:v,previousMonth:b,nextMonth:w}=k.useMemo(()=>{const M=cO(h,o,{numberOfMonths:e.numberOfMonths},n),O=lO(M,e.endMonth?u(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},n),I=dO(M,O,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},n),S=pO(I),U=uO(I),F=mO(h,r,e,n),L=hO(h,o,e,n);return{months:I,weeks:S,days:U,previousMonth:F,nextMonth:L}},[n,h.getTime(),o?.getTime(),r?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:E,onMonthChange:C}=e,D=M=>y.some(O=>O.days.some(I=>I.isEqualTo(M))),_=M=>{if(E)return;let O=l(M);r&&O<l(r)&&(O=l(r)),o&&O>l(o)&&(O=l(o)),p(O),C?.(O)};return{months:g,weeks:y,days:v,navStart:r,navEnd:o,previousMonth:b,nextMonth:w,goToMonth:_,goToDay:M=>{D(M)||_(M.date)}}}var Ma;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Ma||(Ma={}));function Eb(e){return!e[Nt.disabled]&&!e[Nt.hidden]&&!e[Nt.outside]}function gO(e,n,r,o){let l,u=-1;for(const c of e){const h=n(c);Eb(h)&&(h[Nt.focused]&&u<Ma.FocusedModifier?(l=c,u=Ma.FocusedModifier):o?.isEqualTo(c)&&u<Ma.LastFocused?(l=c,u=Ma.LastFocused):r(c.date)&&u<Ma.Selected?(l=c,u=Ma.Selected):h[Nt.today]&&u<Ma.Today&&(l=c,u=Ma.Today))}return l||(l=e.find(c=>Eb(n(c)))),l}function yO(e,n,r,o,l,u,c){const{ISOWeek:h,broadcastCalendar:p}=u,{addDays:g,addMonths:y,addWeeks:v,addYears:b,endOfBroadcastWeek:w,endOfISOWeek:E,endOfWeek:C,max:D,min:_,startOfBroadcastWeek:A,startOfISOWeek:N,startOfWeek:M}=c;let I={day:g,week:v,month:y,year:b,startOfWeek:S=>p?A(S,c):h?N(S):M(S),endOfWeek:S=>p?w(S):h?E(S):C(S)}[e](r,n==="after"?1:-1);return n==="before"&&o?I=D([o,I]):n==="after"&&l&&(I=_([l,I])),I}function Ew(e,n,r,o,l,u,c,h=0){if(h>365)return;const p=yO(e,n,r.date,o,l,u,c),g=!!(u.disabled&&gr(p,u.disabled,c)),y=!!(u.hidden&&gr(p,u.hidden,c)),v=p,b=new lw(p,v,c);return!g&&!y?b:Ew(e,n,b,o,l,u,c,h+1)}function bO(e,n,r,o,l){const{autoFocus:u}=e,[c,h]=k.useState(),p=gO(n.days,r,o||(()=>!1),c),[g,y]=k.useState(u?p:void 0);return{isFocusTarget:C=>!!p?.isEqualTo(C),setFocused:y,focused:g,blur:()=>{h(g),y(void 0)},moveFocus:(C,D)=>{if(!g)return;const _=Ew(C,D,g,n.navStart,n.navEnd,e,l);_&&(e.disableNavigation&&!n.days.some(N=>N.isEqualTo(_))||(n.goToDay(_),y(_)))}}}function xO(e,n){const{selected:r,required:o,onSelect:l}=e,[u,c]=vc(r,l?r:void 0),h=l?r:u,{isSameDay:p}=n,g=w=>h?.some(E=>p(E,w))??!1,{min:y,max:v}=e;return{selected:h,select:(w,E,C)=>{let D=[...h??[]];if(g(w)){if(h?.length===y||o&&h?.length===1)return;D=h?.filter(_=>!p(_,w))}else h?.length===v?D=[w]:D=[...D,w];return l||c(D),l?.(D,w,E,C),D},isSelected:g}}function wO(e,n,r=0,o=0,l=!1,u=Ha){const{from:c,to:h}=n||{},{isSameDay:p,isAfter:g,isBefore:y}=u;let v;if(!c&&!h)v={from:e,to:r>0?void 0:e};else if(c&&!h)p(c,e)?r===0?v={from:c,to:e}:l?v={from:c,to:void 0}:v=void 0:y(e,c)?v={from:e,to:c}:v={from:c,to:e};else if(c&&h)if(p(c,e)&&p(h,e))l?v={from:c,to:h}:v=void 0;else if(p(c,e))v={from:c,to:r>0?void 0:e};else if(p(h,e))v={from:e,to:r>0?void 0:e};else if(y(e,c))v={from:e,to:h};else if(g(e,c))v={from:c,to:e};else if(g(e,h))v={from:c,to:e};else throw new Error("Invalid range");if(v?.from&&v?.to){const b=u.differenceInCalendarDays(v.to,v.from);o>0&&b>o?v={from:e,to:void 0}:r>1&&b<r&&(v={from:e,to:void 0})}return v}function SO(e,n,r=Ha){const o=Array.isArray(n)?n:[n];let l=e.from;const u=r.differenceInCalendarDays(e.to,e.from),c=Math.min(u,6);for(let h=0;h<=c;h++){if(o.includes(l.getDay()))return!0;l=r.addDays(l,1)}return!1}function _b(e,n,r=Ha){return vr(e,n.from,!1,r)||vr(e,n.to,!1,r)||vr(n,e.from,!1,r)||vr(n,e.to,!1,r)}function EO(e,n,r=Ha){const o=Array.isArray(n)?n:[n];if(o.filter(h=>typeof h!="function").some(h=>typeof h=="boolean"?h:r.isDate(h)?vr(e,h,!1,r):dw(h,r)?h.some(p=>vr(e,p,!1,r)):pc(h)?h.from&&h.to?_b(e,{from:h.from,to:h.to},r):!1:cw(h)?SO(e,h.dayOfWeek,r):Rm(h)?r.isAfter(h.before,h.after)?_b(e,{from:r.addDays(h.after,1),to:r.addDays(h.before,-1)},r):gr(e.from,h,r)||gr(e.to,h,r):jm(h)||Mm(h)?gr(e.from,h,r)||gr(e.to,h,r):!1))return!0;const c=o.filter(h=>typeof h=="function");if(c.length){let h=e.from;const p=r.differenceInCalendarDays(e.to,e.from);for(let g=0;g<=p;g++){if(c.some(y=>y(h)))return!0;h=r.addDays(h,1)}}return!1}function _O(e,n){const{disabled:r,excludeDisabled:o,selected:l,required:u,onSelect:c}=e,[h,p]=vc(l,c?l:void 0),g=c?l:h;return{selected:g,select:(b,w,E)=>{const{min:C,max:D}=e,_=b?wO(b,g,C,D,u,n):void 0;return o&&r&&_?.from&&_.to&&EO({from:_.from,to:_.to},r,n)&&(_.from=b,_.to=void 0),c||p(_),c?.(_,b,w,E),_},isSelected:b=>g&&vr(g,b,!1,n)}}function TO(e,n){const{selected:r,required:o,onSelect:l}=e,[u,c]=vc(r,l?r:void 0),h=l?r:u,{isSameDay:p}=n;return{selected:h,select:(v,b,w)=>{let E=v;return!o&&h&&h&&p(v,h)&&(E=void 0),l||c(E),l?.(E,v,b,w),E},isSelected:v=>h?p(h,v):!1}}function DO(e,n){const r=TO(e,n),o=xO(e,n),l=_O(e,n);switch(e.mode){case"single":return r;case"multiple":return o;case"range":return l;default:return}}function ia(e,n){return e instanceof un&&e.timeZone===n?e:new un(e,n)}function xo(e,n,r){return ia(e,n)}function Tb(e,n,r){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?xo(e,n):Array.isArray(e)?e.map(o=>o instanceof Date?xo(o,n):o):pc(e)?{...e,from:e.from?ia(e.from,n):e.from,to:e.to?ia(e.to,n):e.to}:Rm(e)?{before:xo(e.before,n),after:xo(e.after,n)}:jm(e)?{after:xo(e.after,n)}:Mm(e)?{before:xo(e.before,n)}:e}function ih(e,n,r){return e&&(Array.isArray(e)?e.map(o=>Tb(o,n)):Tb(e,n))}function CO(e){let n=e;const r=n.timeZone;if(r&&(n={...e,timeZone:r},n.today&&(n.today=ia(n.today,r)),n.month&&(n.month=ia(n.month,r)),n.defaultMonth&&(n.defaultMonth=ia(n.defaultMonth,r)),n.startMonth&&(n.startMonth=ia(n.startMonth,r)),n.endMonth&&(n.endMonth=ia(n.endMonth,r)),n.mode==="single"&&n.selected?n.selected=ia(n.selected,r):n.mode==="multiple"&&n.selected?n.selected=n.selected?.map(De=>ia(De,r)):n.mode==="range"&&n.selected&&(n.selected={from:n.selected.from?ia(n.selected.from,r):n.selected.from,to:n.selected.to?ia(n.selected.to,r):n.selected.to}),n.disabled!==void 0&&(n.disabled=ih(n.disabled,r)),n.hidden!==void 0&&(n.hidden=ih(n.hidden,r)),n.modifiers)){const De={};Object.keys(n.modifiers).forEach(He=>{De[He]=ih(n.modifiers?.[He],r)}),n.modifiers=De}const{components:o,formatters:l,labels:u,dateLib:c,locale:h,classNames:p}=k.useMemo(()=>{const De={...sw,...n.locale},He=n.broadcastCalendar?1:n.weekStartsOn,Te=n.noonSafe&&n.timeZone?aO(n.timeZone,{weekStartsOn:He,locale:De}):void 0,Ue=n.dateLib&&Te?{...Te,...n.dateLib}:n.dateLib??Te,St=new Qn({locale:De,weekStartsOn:He,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},Ue);return{dateLib:St,components:z6(n.components),formatters:G6(n.formatters),labels:Z6(n.labels,St.options),locale:De,classNames:{...Om(),...n.classNames}}},[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.noonSafe,n.components,n.formatters,n.labels,n.classNames]);n.today||(n={...n,today:c.today()});const{captionLayout:g,mode:y,navLayout:v,numberOfMonths:b=1,onDayBlur:w,onDayClick:E,onDayFocus:C,onDayKeyDown:D,onDayMouseEnter:_,onDayMouseLeave:A,onNextClick:N,onPrevClick:M,showWeekNumber:O,styles:I}=n,{formatCaption:S,formatDay:U,formatMonthDropdown:F,formatWeekNumber:L,formatWeekNumberHeader:B,formatWeekdayName:K,formatYearDropdown:se}=l,ae=vO(n,c),{days:ce,months:j,navStart:Y,navEnd:le,previousMonth:de,nextMonth:fe,goToMonth:pe}=ae,G=L6(ce,n,Y,le,c),{isSelected:X,select:ue,selected:re}=DO(n,c)??{},{blur:ee,focused:ve,isFocusTarget:ge,moveFocus:Ne,setFocused:st}=bO(n,ae,G,X??(()=>!1),c),{labelDayButton:dn,labelGridcell:ln,labelGrid:_a,labelMonthDropdown:Jt,labelNav:Vn,labelPrevious:Gn,labelNext:jn,labelWeekday:la,labelWeekNumber:Tt,labelWeekNumberHeader:$a,labelYearDropdown:Ta}=u,Ht=k.useMemo(()=>tO(c,n.ISOWeek,n.broadcastCalendar,n.today),[c,n.ISOWeek,n.broadcastCalendar,n.today]),ua=y!==void 0||E!==void 0,$t=k.useCallback(()=>{de&&(pe(de),M?.(de))},[de,pe,M]),ti=k.useCallback(()=>{fe&&(pe(fe),N?.(fe))},[pe,fe,N]),Qa=k.useCallback((De,He)=>Te=>{Te.preventDefault(),Te.stopPropagation(),st(De),!He.disabled&&(ue?.(De.date,He,Te),E?.(De.date,He,Te))},[ue,E,st]),ki=k.useCallback((De,He)=>Te=>{st(De),C?.(De.date,He,Te)},[C,st]),Va=k.useCallback((De,He)=>Te=>{ee(),w?.(De.date,He,Te)},[ee,w]),ni=k.useCallback((De,He)=>Te=>{const Ue={ArrowLeft:[Te.shiftKey?"month":"day",n.dir==="rtl"?"after":"before"],ArrowRight:[Te.shiftKey?"month":"day",n.dir==="rtl"?"before":"after"],ArrowDown:[Te.shiftKey?"year":"week","after"],ArrowUp:[Te.shiftKey?"year":"week","before"],PageUp:[Te.shiftKey?"year":"month","before"],PageDown:[Te.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ue[Te.key]){Te.preventDefault(),Te.stopPropagation();const[St,he]=Ue[Te.key];Ne(St,he)}D?.(De.date,He,Te)},[Ne,D,n.dir]),ca=k.useCallback((De,He)=>Te=>{_?.(De.date,He,Te)},[_]),Ni=k.useCallback((De,He)=>Te=>{A?.(De.date,He,Te)},[A]),Da=k.useCallback(De=>He=>{const Te=Number(He.target.value),Ue=c.setMonth(c.startOfMonth(De),Te);pe(Ue)},[c,pe]),Ga=k.useCallback(De=>He=>{const Te=Number(He.target.value),Ue=c.setYear(c.startOfMonth(De),Te);pe(Ue)},[c,pe]),{className:en,style:Mn}=k.useMemo(()=>({className:[p[Se.Root],n.className].filter(Boolean).join(" "),style:{...I?.[Se.Root],...n.style}}),[p,n.className,n.style,I]),Gt=F6(n),Ai=k.useRef(null);sO(Ai,!!n.animate,{classNames:p,months:j,focused:ve,dateLib:c});const ai={dayPickerProps:n,selected:re,select:ue,isSelected:X,months:j,nextMonth:fe,previousMonth:de,goToMonth:pe,getModifiers:G,components:o,classNames:p,styles:I,labels:u,formatters:l};return V.createElement(uw.Provider,{value:ai},V.createElement(o.Root,{rootRef:n.animate?Ai:void 0,className:en,style:Mn,dir:n.dir,id:n.id,lang:n.lang,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],...Gt},V.createElement(o.Months,{className:p[Se.Months],style:I?.[Se.Months]},!n.hideNavigation&&!v&&V.createElement(o.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Se.Nav],style:I?.[Se.Nav],"aria-label":Vn(),onPreviousClick:$t,onNextClick:ti,previousMonth:de,nextMonth:fe}),j.map((De,He)=>V.createElement(o.Month,{"data-animated-month":n.animate?"true":void 0,className:p[Se.Month],style:I?.[Se.Month],key:He,displayIndex:He,calendarMonth:De},v==="around"&&!n.hideNavigation&&He===0&&V.createElement(o.PreviousMonthButton,{type:"button",className:p[Se.PreviousMonthButton],tabIndex:de?void 0:-1,"aria-disabled":de?void 0:!0,"aria-label":Gn(de),onClick:$t,"data-animated-button":n.animate?"true":void 0},V.createElement(o.Chevron,{disabled:de?void 0:!0,className:p[Se.Chevron],orientation:n.dir==="rtl"?"right":"left"})),V.createElement(o.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:p[Se.MonthCaption],style:I?.[Se.MonthCaption],calendarMonth:De,displayIndex:He},g?.startsWith("dropdown")?V.createElement(o.DropdownNav,{className:p[Se.Dropdowns],style:I?.[Se.Dropdowns]},(()=>{const Te=g==="dropdown"||g==="dropdown-months"?V.createElement(o.MonthsDropdown,{key:"month",className:p[Se.MonthsDropdown],"aria-label":Jt(),classNames:p,components:o,disabled:!!n.disableNavigation,onChange:Da(De.date),options:J6(De.date,Y,le,l,c),style:I?.[Se.Dropdown],value:c.getMonth(De.date)}):V.createElement("span",{key:"month"},F(De.date,c)),Ue=g==="dropdown"||g==="dropdown-years"?V.createElement(o.YearsDropdown,{key:"year",className:p[Se.YearsDropdown],"aria-label":Ta(c.options),classNames:p,components:o,disabled:!!n.disableNavigation,onChange:Ga(De.date),options:nO(Y,le,l,c,!!n.reverseYears),style:I?.[Se.Dropdown],value:c.getYear(De.date)}):V.createElement("span",{key:"year"},se(De.date,c));return c.getMonthYearOrder()==="year-first"?[Ue,Te]:[Te,Ue]})(),V.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},S(De.date,c.options,c))):V.createElement(o.CaptionLabel,{className:p[Se.CaptionLabel],role:"status","aria-live":"polite"},S(De.date,c.options,c))),v==="around"&&!n.hideNavigation&&He===b-1&&V.createElement(o.NextMonthButton,{type:"button",className:p[Se.NextMonthButton],tabIndex:fe?void 0:-1,"aria-disabled":fe?void 0:!0,"aria-label":jn(fe),onClick:ti,"data-animated-button":n.animate?"true":void 0},V.createElement(o.Chevron,{disabled:fe?void 0:!0,className:p[Se.Chevron],orientation:n.dir==="rtl"?"left":"right"})),He===b-1&&v==="after"&&!n.hideNavigation&&V.createElement(o.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Se.Nav],style:I?.[Se.Nav],"aria-label":Vn(),onPreviousClick:$t,onNextClick:ti,previousMonth:de,nextMonth:fe}),V.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":y==="multiple"||y==="range","aria-label":_a(De.date,c.options,c)||void 0,className:p[Se.MonthGrid],style:I?.[Se.MonthGrid]},!n.hideWeekdays&&V.createElement(o.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:p[Se.Weekdays],style:I?.[Se.Weekdays]},O&&V.createElement(o.WeekNumberHeader,{"aria-label":$a(c.options),className:p[Se.WeekNumberHeader],style:I?.[Se.WeekNumberHeader],scope:"col"},B()),Ht.map(Te=>V.createElement(o.Weekday,{"aria-label":la(Te,c.options,c),className:p[Se.Weekday],key:String(Te),style:I?.[Se.Weekday],scope:"col"},K(Te,c.options,c)))),V.createElement(o.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:p[Se.Weeks],style:I?.[Se.Weeks]},De.weeks.map(Te=>V.createElement(o.Week,{className:p[Se.Week],key:Te.weekNumber,style:I?.[Se.Week],week:Te},O&&V.createElement(o.WeekNumber,{week:Te,style:I?.[Se.WeekNumber],"aria-label":Tt(Te.weekNumber,{locale:h}),className:p[Se.WeekNumber],scope:"row",role:"rowheader"},L(Te.weekNumber,c)),Te.days.map(Ue=>{const{date:St}=Ue,he=G(Ue);if(he[Nt.focused]=!he.hidden&&!!ve?.isEqualTo(Ue),he[ba.selected]=X?.(St)||he.selected,pc(re)){const{from:Yn,to:dt}=re;he[ba.range_start]=!!(Yn&&dt&&c.isSameDay(St,Yn)),he[ba.range_end]=!!(Yn&&dt&&c.isSameDay(St,dt)),he[ba.range_middle]=vr(re,St,!0,c)}const mt=eO(he,I,n.modifiersStyles),zt=I6(he,p,n.modifiersClassNames),Yt=!ua&&!he.hidden?ln(St,he,c.options,c):void 0;return V.createElement(o.Day,{key:`${Ue.isoDate}_${Ue.displayMonthId}`,day:Ue,modifiers:he,className:zt.join(" "),style:mt,role:"gridcell","aria-selected":he.selected||void 0,"aria-label":Yt,"data-day":Ue.isoDate,"data-month":Ue.outside?Ue.dateMonthId:void 0,"data-selected":he.selected||void 0,"data-disabled":he.disabled||void 0,"data-hidden":he.hidden||void 0,"data-outside":Ue.outside||void 0,"data-focused":he.focused||void 0,"data-today":he.today||void 0},!he.hidden&&ua?V.createElement(o.DayButton,{className:p[Se.DayButton],style:I?.[Se.DayButton],type:"button",day:Ue,modifiers:he,disabled:!he.focused&&he.disabled||void 0,"aria-disabled":he.focused&&he.disabled||void 0,tabIndex:ge(Ue)?0:-1,"aria-label":dn(St,he,c.options,c),onClick:Qa(Ue,he),onBlur:Va(Ue,he),onFocus:ki(Ue,he),onKeyDown:ni(Ue,he),onMouseEnter:ca(Ue,he),onMouseLeave:Ni(Ue,he)},U(St,c.options,c)):!he.hidden&&U(Ue.date,c.options,c))})))))))),n.footer&&V.createElement(o.Footer,{className:p[Se.Footer],style:I?.[Se.Footer],role:"status","aria-live":"polite"},n.footer)))}function _w({className:e,classNames:n,showOutsideDays:r=!0,captionLayout:o="label",buttonVariant:l="ghost",formatters:u,components:c,...h}){const p=Om();return d.jsx(CO,{showOutsideDays:r,className:$("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:o,formatters:{formatMonthDropdown:g=>g.toLocaleString("default",{month:"short"}),...u},classNames:{root:$("w-fit",p.root),months:$("flex gap-4 flex-col md:flex-row relative",p.months),month:$("flex flex-col w-full gap-4",p.month),nav:$("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",p.nav),button_previous:$(nl({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",p.button_previous),button_next:$(nl({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",p.button_next),month_caption:$("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",p.month_caption),dropdowns:$("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",p.dropdowns),dropdown_root:$("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",p.dropdown_root),dropdown:$("absolute bg-popover inset-0 opacity-0",p.dropdown),caption_label:$("select-none font-medium",o==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",p.caption_label),table:"w-full border-collapse",weekdays:$("flex",p.weekdays),weekday:$("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",p.weekday),week:$("flex w-full mt-2",p.week),week_number_header:$("select-none w-(--cell-size)",p.week_number_header),week_number:$("text-[0.8rem] select-none text-muted-foreground",p.week_number),day:$("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",p.day),range_start:$("rounded-l-md bg-accent",p.range_start),range_middle:$("rounded-none",p.range_middle),range_end:$("rounded-r-md bg-accent",p.range_end),today:$("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",p.today),outside:$("text-muted-foreground aria-selected:text-muted-foreground",p.outside),disabled:$("text-muted-foreground opacity-50",p.disabled),hidden:$("invisible",p.hidden),...n},components:{Root:({className:g,rootRef:y,...v})=>d.jsx("div",{"data-slot":"calendar",ref:y,className:$(g),...v}),Chevron:({className:g,orientation:y,...v})=>y==="left"?d.jsx(Y1,{className:$("size-4",g),...v}):y==="right"?d.jsx(fm,{className:$("size-4",g),...v}):d.jsx(ll,{className:$("size-4",g),...v}),DayButton:kO,WeekNumber:({children:g,...y})=>d.jsx("td",{...y,children:d.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:g})}),...c},...h})}function kO({className:e,day:n,modifiers:r,...o}){const l=Om(),u=k.useRef(null);return k.useEffect(()=>{r.focused&&u.current?.focus()},[r.focused]),d.jsx(ot,{ref:u,variant:"ghost",size:"icon","data-day":n.date.toLocaleDateString(),"data-selected-single":r.selected&&!r.range_start&&!r.range_end&&!r.range_middle,"data-range-start":r.range_start,"data-range-end":r.range_end,"data-range-middle":r.range_middle,className:$("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",l.day,e),...o})}function oh({className:e,children:n,...r}){return d.jsxs(GE,{"data-slot":"scroll-area",className:$("relative",e),...r,children:[d.jsx(YE,{"data-slot":"scroll-area-viewport",className:"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1",children:n}),d.jsx(Oh,{}),d.jsx(KE,{})]})}function Oh({className:e,orientation:n="vertical",...r}){return d.jsx(WE,{"data-slot":"scroll-area-scrollbar",orientation:n,className:$("flex touch-none p-px transition-colors select-none",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:d.jsx(XE,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const NO=e=>e?Ph(e):void 0;function AO({value:e,onValueChange:n,id:r,defaultMonth:o}){const[l,u]=k.useState(NO(e));function c(g){u(g),n(g?J_(g):void 0)}const h=Array.from({length:12},(g,y)=>y+1),p=(g,y)=>{if(l){const v=new Date(l);if(g==="hour")v.setHours(Number.parseInt(y,10)%12+(v.getHours()>=12?12:0));else if(g==="minute")v.setMinutes(Number.parseInt(y,10));else if(g==="ampm"){const b=v.getHours();v.setHours(y==="PM"?b+12:b-12)}c(v)}};return d.jsxs(Cm,{children:[d.jsx(km,{asChild:!0,children:d.jsxs(ot,{variant:"outline",className:$("w-full justify-start text-left font-normal bg-card dark:bg-background",!l&&"text-muted-foreground"),id:r,children:[d.jsx(Ob,{className:"mr-2 h-4 w-4"}),l?sn(l,"MM/dd/yyyy hh:mm aa"):d.jsx("span",{children:"MM/DD/YYYY hh:mm aa"})]})}),d.jsx(Nm,{className:"w-auto p-0",children:d.jsxs("div",{className:"sm:flex",children:[d.jsx(_w,{mode:"single",selected:l,onSelect:c,defaultMonth:o,initialFocus:!0}),d.jsxs("div",{className:"flex flex-col sm:flex-row sm:h-[300px] divide-y sm:divide-y-0 sm:divide-x",children:[d.jsxs(oh,{className:"w-64 sm:w-auto",children:[d.jsx("div",{className:"flex sm:flex-col p-2",children:h.reverse().map(g=>d.jsx(ot,{size:"icon",variant:l&&l.getHours()%12===g%12?"default":"ghost",className:"sm:w-full shrink-0 aspect-square",onClick:()=>p("hour",g.toString()),children:g},g))}),d.jsx(Oh,{orientation:"horizontal",className:"sm:hidden"})]}),d.jsxs(oh,{className:"w-64 sm:w-auto",children:[d.jsx("div",{className:"flex sm:flex-col p-2",children:Array.from({length:12},(g,y)=>y*5).map(g=>d.jsx(ot,{size:"icon",variant:l&&l.getMinutes()===g?"default":"ghost",className:"sm:w-full shrink-0 aspect-square",onClick:()=>p("minute",g.toString()),children:g},g))}),d.jsx(Oh,{orientation:"horizontal",className:"sm:hidden"})]}),d.jsx(oh,{className:"",children:d.jsx("div",{className:"flex sm:flex-col p-2",children:["AM","PM"].map(g=>d.jsx(ot,{size:"icon",variant:l&&(g==="AM"&&l.getHours()<12||g==="PM"&&l.getHours()>=12)?"default":"ghost",className:"sm:w-full shrink-0 aspect-square",onClick:()=>p("ampm",g),children:g},g))})})]})]})})]})}function RO({...e}){return d.jsx(ZE,{"data-slot":"select",...e})}function RI({...e}){return d.jsx(c_,{"data-slot":"select-group",...e})}function jO({...e}){return d.jsx(t_,{"data-slot":"select-value",...e})}function MO({className:e,children:n,...r}){return d.jsxs(JE,{"data-slot":"select-trigger",className:$("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-card dark:bg-background px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,d.jsx(e_,{asChild:!0,children:d.jsx(ll,{className:"size-4 opacity-50"})})]})}function OO({className:e,children:n,position:r="popper",...o}){return d.jsx(n_,{children:d.jsxs(a_,{"data-slot":"select-content",className:$("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[d.jsx(LO,{}),d.jsx(r_,{className:$("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:n}),d.jsx(IO,{})]})})}function jI({className:e,...n}){return d.jsx(d_,{"data-slot":"select-label",className:$("px-2 py-1.5 text-sm font-medium",e),...n})}function Lu({className:e,children:n,...r}){return d.jsxs(i_,{"data-slot":"select-item",className:$("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(o_,{children:d.jsx(dm,{className:"size-4"})})}),d.jsx(s_,{children:n})]})}function LO({className:e,...n}){return d.jsx(l_,{"data-slot":"select-scroll-up-button",className:$("flex cursor-default items-center justify-center py-1",e),...n,children:d.jsx(bN,{className:"size-4"})})}function IO({className:e,...n}){return d.jsx(u_,{"data-slot":"select-scroll-down-button",className:$("flex cursor-default items-center justify-center py-1",e),...n,children:d.jsx(ll,{className:"size-4"})})}const Tw=yr*7,Dw=yr*30;function Cw(e){return Vs(e).getTime()===e.getTime()}function zO(e){return Iu(e).getTime()===e.getTime()}function zm({startDate:e,endDate:n}){return Cw(e)&&zO(n)}function FO({startDate:e,endDate:n}){return zm({startDate:e,endDate:n})&&$b(e,n)}function UO({seconds:e}){const n=Math.abs(e);if(n===Tw)return"Past 7 days";if(n===Dw)return"Past 30 days";const r={months:Math.floor(n/dh),weeks:Math.floor(n%dh/Vu),days:Math.floor(n%Vu/yr),hours:Math.floor(n%yr/Ro),minutes:Math.floor(n%Ro/Js),seconds:Math.floor(n%Js)},o=[];return Object.entries(r).forEach(([u,c])=>{if(!c)return;const h=u.slice(0,-1);o.push(c===1?h:`${c} ${h}${c>1?"s":""}`)}),`${e<0?"Past":"Next"} ${o.join(" ")}`}function qO({startDate:e,endDate:n}){const r="MMM do",o="MMM do, yyyy",l="hh:mm a",u=`${r} 'at' ${l}`,c=`${o} 'at' ${l}`;if(FO({startDate:e,endDate:n})){const g=wo(e,new Date)?r:o;return sn(e,g)}if(zm({startDate:e,endDate:n})){const g=wo(e,new Date)?r:o,y=wo(n,new Date)?r:o;return`${sn(e,g)} - ${sn(n,y)}`}const h=wo(e,new Date)?u:c,p=wo(n,new Date)?u:c;return`${sn(e,h)} - ${sn(n,p)}`}function BO({date:e,quantity:n,unit:r}){const o="MMM do, yyyy",u=Cw(e)?o:`${o} 'at' hh:mm a`,c=n===1?r:`${r}s`;return`${n} ${c} around ${sn(e,u)}`}function PO({period:e}){return e}function HO(e){if(!e)return null;switch(e.type){case"span":return UO(e);case"range":return qO(e);case"around":return BO(e);case"period":return PO(e);default:return null}}function $O({value:e,onValueChange:n,placeholder:r="Select a time span",maxSpanInSeconds:o,clearable:l,disabled:u,min:c,minReason:h,max:p,maxReason:g,className:y,id:v}){const[b,w]=k.useState(!1),[E,C]=k.useState(null),D=k.useMemo(()=>HO(e)??r,[e,r]),_=D===r;function A(L){n(L),w(!1),C(null)}function N(){n(null)}const M=k.useCallback(()=>jh(e)?.timeSpanInSeconds??0,[e]),O=k.useCallback(L=>{const B=jh(e);if(!B)return null;const{startDate:K,endDate:se}=B;if(zm({startDate:K,endDate:se})){const ae=Math.ceil(Math.abs(L)/yr),ce=L<0?-ae:ae;return{startDate:ch(K,ce),endDate:ch(se,ce)}}return{startDate:Zs(K,L),endDate:Zs(se,L)}},[e]),I=k.useMemo(()=>{const L=M(),B=O(L*-1);return!B||!L||u?!0:c?ic(B.startDate,c):!1},[u,c,M,O]),S=k.useMemo(()=>{const L=M(),B=O(L);return!B||!L||u?!0:p?Hh(B.endDate,p):!1},[u,p,M,O]);function U(){const L=M(),B=O(L*-1);B&&A({type:"range",startDate:B.startDate,endDate:B.endDate})}function F(){const L=M(),B=O(L);B&&A({type:"range",startDate:B.startDate,endDate:B.endDate})}return d.jsxs("div",{className:$("flex items-center",y),children:[d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:d.jsx(ot,{variant:"outline",size:"icon",className:"-ml-px bg-card dark:bg-background",onClick:U,disabled:I,"aria-label":"Previous range",children:d.jsx(gt,{id:"ChevronLeft",className:"size-4"})})}),h&&I?d.jsx(qa,{children:h}):null]}),d.jsxs(Cm,{open:b,onOpenChange:L=>{L||C(null),w(L)},children:[d.jsx(km,{asChild:!0,children:d.jsxs(ot,{id:v,variant:"outline",className:$("rounded-none border-x-0 min-w-64 flex-1 justify-start text-left font-normal bg-card dark:bg-background",_&&"text-muted-foreground"),disabled:u,children:[d.jsx(Ob,{className:"mr-2 h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:D}),d.jsx(gt,{id:"ChevronDown",className:"ml-auto size-4 shrink-0"})]})}),d.jsx(Nm,{className:"w-auto p-0",align:"start",onOpenAutoFocus:L=>L.preventDefault(),onMouseDown:L=>L.stopPropagation(),children:d.jsxs("div",{className:"w-[22rem] max-w-[90vw]",children:[E===null&&d.jsx(QO,{onApply:A,onSetMode:C}),E==="span"&&d.jsx(VO,{maxSpanInSeconds:o,min:c,max:p,onApply:A}),E==="around"&&d.jsx(GO,{onApply:A}),E==="range"&&d.jsx(YO,{onApply:A})]})})]}),e&&l&&!u?d.jsx(ot,{variant:"outline",size:"icon",className:"rounded-none -ml-px bg-card dark:bg-background",onClick:N,"aria-label":"Clear date range",children:d.jsx(gt,{id:"X",className:"size-4"})}):null,d.jsxs(Fa,{children:[d.jsx(Ua,{asChild:!0,children:d.jsx(ot,{variant:"outline",size:"icon",className:"-ml-px bg-card dark:bg-background",onClick:F,disabled:S,"aria-label":"Next range",children:d.jsx(gt,{id:"ChevronRight",className:"size-4"})})}),g&&S?d.jsx(qa,{children:g}):null]})]})}function QO({onApply:e,onSetMode:n}){const r=[{label:"Past hour",onClick:()=>e({type:"span",seconds:Ro*-1})},{label:"Past day",onClick:()=>e({type:"span",seconds:yr*-1})},{label:"Past 7 days",onClick:()=>e({type:"span",seconds:Tw*-1})},{label:"Past 30 days",onClick:()=>e({type:"span",seconds:Dw*-1})},{label:"Today",onClick:()=>e({type:"period",period:"Today"})},{label:"Relative time",onClick:()=>n("span")},{label:"Around a time",onClick:()=>n("around")},{label:"Date range",onClick:()=>n("range")}];return d.jsx("div",{className:"p-1",children:r.map((o,l)=>d.jsx(ot,{variant:"ghost",className:$("w-full justify-between font-normal",l===3&&"border-b rounded-none border-border"),onClick:o.onClick,children:d.jsx("span",{children:o.label})},o.label))})}function VO({maxSpanInSeconds:e,min:n,max:r,onApply:o}){const[l,u]=k.useState(""),c=k.useCallback((p,g)=>g===1?p:`${p}s`,[]),h=k.useMemo(()=>{const[p=""]=l.match(/\d+/)??[],[g=""]=l.match(/[a-zA-Z]+/)??[],[y=""]=l.match(/[+-]+/)??[],v=Number.parseInt(p,10),b=Number.isNaN(v)?1:v,w=[{label:`Past ${b} ${c("minute",b)}`,unit:"minute",quantity:b,value:b*Js*-1},{label:`Past ${b} ${c("hour",b)}`,unit:"hour",quantity:b,value:b*Ro*-1},{label:`Past ${b} ${c("day",b)}`,unit:"day",quantity:b,value:b*yr*-1},{label:`Past ${b} ${c("week",b)}`,unit:"week",quantity:b,value:b*Vu*-1},{label:`Next ${b} ${c("minute",b)}`,unit:"minute",quantity:b,value:b*Js},{label:`Next ${b} ${c("hour",b)}`,unit:"hour",quantity:b,value:b*Ro},{label:`Next ${b} ${c("day",b)}`,unit:"day",quantity:b,value:b*yr},{label:`Next ${b} ${c("week",b)}`,unit:"week",quantity:b,value:b*Vu}],E=new Date,C=e??dh*2;return w.filter(D=>{const _=Zs(E,D.value);if(n&&ic(_,n)||r&&Hh(_,r))return!1;const A=Math.abs(D.value)<C,N=c(D.unit,b).includes(g),M=(D.value>0?"+":"-").includes(y);return A&&N&&M})},[l,e,n,r,c]);return d.jsxs("div",{children:[d.jsx("div",{className:"p-2",children:d.jsx(mr,{placeholder:"Relative time (15m, 1h, 1d, 1w)",value:l,onChange:p=>u(p.target.value),autoFocus:!0})}),d.jsx("div",{className:"max-h-64 overflow-auto",children:h.map(p=>d.jsxs(ot,{variant:"ghost",className:"w-full justify-between font-normal",onClick:()=>o({type:"span",seconds:p.value}),children:[d.jsx("span",{children:p.label}),d.jsx("span",{className:"text-muted-foreground font-mono",children:(p.value>0?"+":"-")+`${p.quantity}${p.unit.slice(0,1)}`})]},p.label))})]})}function GO({onApply:e}){const[n,r]=k.useState(void 0),[o,l]=k.useState(15),[u,c]=k.useState("second");function h(){if(!n||!o)return e(null);e({type:"around",date:Ph(n),quantity:o,unit:u})}return d.jsxs("div",{className:"p-2 space-y-3",children:[d.jsx(AO,{value:n,onValueChange:r}),d.jsxs("div",{className:"grid grid-cols-[1fr_8rem] gap-2 max-w-[322px]",children:[d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"inline-flex items-center px-3 border border-r-0 border-input rounded-l-md text-sm font-mono",children:"±"}),d.jsx(mr,{type:"number",min:1,value:o,onChange:p=>l(Number(p.target.value)),className:"rounded-l-none"})]}),d.jsxs(RO,{value:u,onValueChange:p=>c(p),children:[d.jsx(MO,{children:d.jsx(jO,{})}),d.jsxs(OO,{children:[d.jsx(Lu,{value:"second",children:"Seconds"}),d.jsx(Lu,{value:"minute",children:"Minutes"}),d.jsx(Lu,{value:"hour",children:"Hours"}),d.jsx(Lu,{value:"day",children:"Days"})]})]})]}),d.jsxs("div",{className:"flex gap-2 justify-end",children:[d.jsx(ot,{variant:"ghost",onClick:()=>e(null),children:"Cancel"}),d.jsx(ot,{onClick:h,children:"Apply"})]})]})}function YO({onApply:e}){const[n,r]=k.useState({}),o=k.useMemo(()=>n.from?{from:n.from,to:n.to}:void 0,[n.from,n.to]);function l(y,v){const[b,w,E]=v.split("-").map(D=>Number(D)),C=new Date(y??new Date);return C.setFullYear(b),C.setMonth(w-1),C.setDate(E),C}function u(y,v){const[b,w]=v.split(":").map(C=>Number(C)),E=new Date(y??new Date);return E.setHours(b),E.setMinutes(w),E.setSeconds(0),E.setMilliseconds(0),E}function c(y){if(!y)return"";const v=y.getFullYear(),b=String(y.getMonth()+1).padStart(2,"0"),w=String(y.getDate()).padStart(2,"0");return`${v}-${b}-${w}`}function h(y){if(!y)return"";const v=String(y.getHours()).padStart(2,"0"),b=String(y.getMinutes()).padStart(2,"0");return`${v}:${b}`}function p(y){if(!y){r({});return}r(v=>{const b=v.from,w=v.to,E=y.from?(()=>{const D=b??void 0;if(!D)return Vs(y.from);const _=y.from;return new Date(_.getFullYear(),_.getMonth(),_.getDate(),D.getHours(),D.getMinutes(),0,0)})():void 0,C=y.to?(()=>{const D=w??void 0;if(!D)return Iu(y.to);const _=y.to;return new Date(_.getFullYear(),_.getMonth(),_.getDate(),D.getHours(),D.getMinutes(),0,0)})():void 0;return{from:E,to:C}})}function g(){n.from&&n.to?e({type:"range",startDate:n.from,endDate:n.to}):e(null)}return d.jsxs("div",{className:"p-2 space-y-3",children:[d.jsx(_w,{mode:"range",selected:o,onSelect:p,initialFocus:!0,classNames:{root:"mx-auto"}}),d.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[d.jsxs("div",{className:"grid grid-cols-[auto,1fr,auto,1fr] items-center gap-2",children:[d.jsxs("div",{className:"col-span-4 flex items-center justify-between text-sm text-muted-foreground",children:[d.jsx("span",{children:"From"}),d.jsx(ot,{variant:"ghost",size:"sm",onClick:()=>r(y=>({...y,from:Fy(new Date)})),children:"Now"})]}),d.jsx(mr,{type:"date",value:c(n.from),onChange:y=>r(v=>({...v,from:l(v.from??Vs(new Date),y.target.value||c(v.from))}))}),d.jsx(mr,{type:"time",step:60,value:h(n.from),onChange:y=>r(v=>({...v,from:u(v.from??Vs(new Date),y.target.value||h(v.from))}))})]}),d.jsxs("div",{className:"grid grid-cols-[auto,1fr,auto,1fr] items-center gap-2",children:[d.jsxs("div",{className:"col-span-4 flex items-center justify-between text-sm text-muted-foreground",children:[d.jsx("span",{children:"To"}),d.jsx(ot,{variant:"ghost",size:"sm",onClick:()=>r(y=>({...y,to:Fy(new Date)})),children:"Now"})]}),d.jsx(mr,{type:"date",value:c(n.to),onChange:y=>r(v=>({...v,to:l(v.to??Iu(new Date),y.target.value||c(v.to))}))}),d.jsx(mr,{type:"time",step:60,value:h(n.to),onChange:y=>r(v=>({...v,to:u(v.to??Iu(new Date),y.target.value||h(v.to))}))})]})]}),d.jsxs("div",{className:"flex gap-2 justify-end",children:[d.jsx(ot,{variant:"ghost",onClick:()=>e(null),children:"Cancel"}),d.jsx(ot,{onClick:g,disabled:!n.from||!n.to,children:"Apply"})]})]})}function KO({className:e,...n}){return d.jsx(f_,{"data-slot":"label",className:$("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...n})}const WO=({children:e,className:n})=>d.jsx("div",{className:$("min-h-screen bg-background",n),children:d.jsx("div",{className:"w-full",children:d.jsx("div",{className:"flex flex-col lg:flex-row lg:gap-8",children:e})})}),XO=({children:e,className:n})=>d.jsx("header",{className:$("w-full",n),children:e}),ZO=({children:e,className:n})=>d.jsx("div",{className:$("flex-1 w-full",n),children:e});function JO({className:e,...n}){return d.jsx(h_,{"data-slot":"switch",className:$("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:d.jsx(m_,{"data-slot":"switch-thumb",className:$("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}function e5(){return d.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm",children:[d.jsxs("div",{className:"flex flex-row items-center justify-between p-6 pb-2",children:[d.jsx(ke,{className:"h-6 w-24"}),d.jsx(ke,{className:"h-4 w-16"})]}),d.jsxs("div",{className:"p-6 pt-0 space-y-2",children:[d.jsx(ke,{className:"h-24 w-full"}),d.jsx("div",{className:"flex justify-between w-full gap-2",children:[1,2,3,4,5].map(e=>d.jsx(ke,{className:"h-10 flex-1"},e))}),d.jsx(ke,{className:"h-32 w-full"})]})]})}function t5(){return d.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm",children:[d.jsx("div",{className:"flex flex-row items-center justify-between p-6 pb-2",children:d.jsx(ke,{className:"h-6 w-24"})}),d.jsxs("div",{className:"p-6 pt-0 space-y-4",children:[d.jsxs("div",{className:"grid gap-1",children:[d.jsx(ke,{className:"h-5 w-20"}),d.jsx(ke,{className:"h-4 w-32"}),d.jsx(ke,{className:"h-4 w-28"})]}),d.jsx(ke,{className:"h-16 w-full"})]})]})}function n5(){return d.jsxs("div",{className:"rounded-lg border bg-card text-card-foreground shadow-sm",children:[d.jsx("div",{className:"p-6",children:d.jsx(ke,{className:"h-6 w-32 mb-4"})}),d.jsx("div",{className:"p-6 pt-0 space-y-4",children:d.jsxs("div",{className:"rounded-xl border p-3 space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(ke,{className:"h-5 w-32"}),d.jsx(ke,{className:"h-5 w-5 rounded-full"})]}),d.jsx("div",{className:"grid grid-cols-4 gap-2",children:[1,2,3,4].map(e=>d.jsxs("div",{className:"space-y-1",children:[d.jsx(ke,{className:"h-3 w-16"}),d.jsx(ke,{className:"h-4 w-12"})]},e))})]})})]})}const a5=["FAILED-CRASHED","RUNNING-PENDING-CANCELLING","COMPLETED","SCHEDULED-PAUSED","CANCELLED"],r5=wt({hideSubflows:Ib().optional().catch(!1),tags:wa(ze()).optional().catch(void 0),tab:it(a5).optional().catch(void 0),from:ze().datetime().optional().catch(void 0),to:ze().datetime().optional().catch(void 0),rangeType:it(["span","range","around","period"]).optional().default("span").catch("span"),seconds:_t().optional().default(-86400).catch(-86400),start:ze().datetime().optional(),end:ze().datetime().optional(),aroundDate:ze().datetime().optional(),aroundQuantity:_t().optional(),aroundUnit:it(["second","minute","hour","day"]).optional(),period:it(["Today"]).optional()});function sh(e){const n=new Date(e);return n.setSeconds(0,0),n}function gc(e){if(e.from&&e.to)return{from:e.from,to:e.to};switch(e.rangeType){case"span":{const o=sh(new Date),l=e.seconds??-86400,u=new Date(o.getTime()+l*1e3),[c,h]=[o,u].sort((p,g)=>p.getTime()-g.getTime());return{from:c.toISOString(),to:h.toISOString()}}case"range":{if(e.start&&e.end)return{from:e.start,to:e.end};break}case"around":{if(e.aroundDate&&e.aroundQuantity&&e.aroundUnit){const o=new Date(e.aroundDate),l={second:1,minute:60,hour:3600,day:86400}[e.aroundUnit],u=e.aroundQuantity*l,c=new Date(o.getTime()-u*1e3),h=new Date(o.getTime()+u*1e3);return{from:c.toISOString(),to:h.toISOString()}}break}case"period":{const o=sh(new Date),l=new Date(o);l.setHours(0,0,0,0);const u=new Date(o);return u.setHours(23,59,59,999),{from:l.toISOString(),to:u.toISOString()}}}const n=sh(new Date);return{from:new Date(n.getTime()-86400*1e3).toISOString(),to:n.toISOString()}}function i5(e){const{from:n,to:r}=gc(e),{tags:o,hideSubflows:l}=e,u={sort:"START_TIME_DESC",offset:0},c={operator:"and_"};return c.start_time={after_:n,before_:r},o&&o.length>0&&(c.tags={operator:"and_",all_:o}),l&&(c.parent_task_run_id={operator:"and_",is_null_:!0}),u.flow_runs=c,u}function o5(e){const{from:n,to:r}=gc(e),{tags:o,hideSubflows:l}=e,u={operator:"and_",subflow_runs:{exists_:!1},start_time:{after_:n,before_:r}};let c;(o&&o.length>0||l)&&(c={operator:"and_"},o&&o.length>0&&(c.tags={operator:"and_",any_:o}),l&&(c.parent_task_run_id={operator:"and_",is_null_:!0}));const h={task_runs:u,...c&&{flow_runs:c}};return{total:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED","RUNNING"]}}}},completed:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["COMPLETED"]}}}},failed:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}},running:{...h,task_runs:{...u,state:{operator:"and_",type:{any_:["RUNNING"]}}}}}}const Db=[["FAILED","CRASHED"],["RUNNING","PENDING","CANCELLING"],["COMPLETED"],["SCHEDULED","PAUSED"],["CANCELLED"]],Lh=Be("/dashboard")({validateSearch:It(r5),component:l5,pendingComponent:Ke,pendingMs:400,pendingMinMs:400,loaderDeps:({search:e})=>e,loader:async({deps:e,context:{queryClient:n}})=>{if(await n.ensureQueryData(vt({},3e4))===0)return;const o=i5(e),{from:l,to:u}=gc(e),[c,h]=await Promise.all([n.ensureQueryData(pr(o)),n.ensureQueryData(bm({offset:0}))]),p=[...new Set(c.map(D=>D.flow_id).filter(D=>!!D))],g=[...new Set(c.map(D=>D.deployment_id).filter(D=>!!D))];p.length>0&&n.prefetchQuery(al({flows:{operator:"and_",id:{any_:p}},offset:0,sort:"CREATED_DESC"})),g.length>0&&n.prefetchQuery(Ex({deployments:{operator:"and_",id:{any_:g}},offset:0,sort:"CREATED_DESC"}));const y=Px({startDate:l,endDate:u,tags:e.tags,hideSubflows:e.hideSubflows});n.prefetchQuery(ym(y,3e4));const v=_x(o);n.prefetchQuery(vt(v,3e4)),Db.forEach(D=>{n.prefetchQuery(vt({...v,flow_runs:{...v.flow_runs,operator:v.flow_runs?.operator??"and_",state:{operator:"and_",type:{any_:[...D]}}}},3e4))});const b=Db[0],w={...o,flow_runs:{...o.flow_runs,operator:"and_",state:{operator:"and_",type:{any_:[...b]}}}};n.fetchQuery(pr(w,3e4)).then(D=>{if(!D||D.length===0)return;D.slice(0,3).map(N=>N.id).filter(Boolean).forEach(N=>{n.prefetchQuery(Bo([N]))});const A=[...new Set(D.map(N=>N.flow_id).filter(N=>!!N))];A.length>0&&(n.prefetchQuery(al({flows:{operator:"and_",id:{any_:A}},offset:0,sort:"UPDATED_DESC"})),A.forEach(N=>{const M={...w,flows:{...w.flows??{},operator:"and_",id:{any_:[N]}}};n.prefetchQuery(vt(M,3e4));const O={...M,sort:"START_TIME_DESC",limit:1,offset:0};n.prefetchQuery(pr(O,3e4))}))}).catch(()=>{});const E=o5(e);n.prefetchQuery($n(E.total,3e4)),n.prefetchQuery($n(E.completed,3e4)),n.prefetchQuery($n(E.failed,3e4)),n.prefetchQuery($n(E.running,3e4)),h.filter(D=>!D.is_paused).forEach(D=>{n.prefetchQuery(xm(D.name)),n.prefetchQuery(nc(D.name));const _={sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u}}},A={limit:24,sort:"START_TIME_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u}}};n.prefetchQuery(pr(A,3e4));const N={..._,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}};n.prefetchQuery(vt(N,3e4));const M={..._,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",type:{any_:["COMPLETED"]}}}};n.prefetchQuery(vt(M,3e4));const O={..._,work_pools:{operator:"and_",name:{any_:[D.name]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",name:{any_:["Late"]}}}};n.prefetchQuery(vt(O,3e4));const I={sort:"ID_DESC",offset:0,work_pools:{operator:"and_",id:{any_:[D.id]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u}}};n.prefetchQuery(Tx(I,3e4));const S={..._,work_pools:{operator:"and_",name:{any_:[D.name]}},flow_runs:{operator:"and_",start_time:{after_:l,before_:u},state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED"]}}}};n.prefetchQuery(vt(S,3e4))})},wrapInSuspense:!0});function s5(e,n){const r={...e};for(const o of n)delete r[o];return r}function l5(){const e=Lh.useSearch(),n=Lh.useNavigate(),{data:r}=Io(vt({},3e4)),o=r===0,l=e.hideSubflows??!1,u=e.tags??[],c=k.useMemo(()=>{switch(e.rangeType){case"span":return{type:"span",seconds:e.seconds??-86400};case"range":return e.start&&e.end?{type:"range",startDate:new Date(e.start),endDate:new Date(e.end)}:{type:"span",seconds:-86400};case"around":return e.aroundDate&&e.aroundQuantity&&e.aroundUnit?{type:"around",date:new Date(e.aroundDate),quantity:e.aroundQuantity,unit:e.aroundUnit}:{type:"span",seconds:-86400};case"period":return{type:"period",period:e.period??"Today"};default:return{type:"span",seconds:-86400}}},[e.rangeType,e.seconds,e.start,e.end,e.aroundDate,e.aroundQuantity,e.aroundUnit,e.period]),h=k.useCallback(E=>{n({to:".",search:C=>({...C,hideSubflows:E}),replace:!0})},[n]),p=k.useCallback(E=>{n({to:".",search:C=>({...C,tags:E.length?E:void 0}),replace:!0})},[n]),g=k.useMemo(()=>(e.tab??"FAILED-CRASHED").split("-"),[e.tab]),y=k.useCallback(E=>{const C=E.join("-");n({to:".",search:D=>({...D,tab:C==="FAILED-CRASHED"?void 0:C}),replace:!0})},[n]),v=k.useCallback(E=>{n({to:".",search:C=>{if(!E)return s5(C,["rangeType","seconds","start","end","aroundDate","aroundQuantity","aroundUnit","period","from","to"]);let D,_;switch(E.type){case"span":{const A=new Date,N=new Date(A.getTime()+E.seconds*1e3),[M,O]=[A,N].sort((I,S)=>I.getTime()-S.getTime());return D=M.toISOString(),_=O.toISOString(),{...C,rangeType:"span",seconds:E.seconds,from:D,to:_}}case"range":return D=E.startDate.toISOString(),_=E.endDate.toISOString(),{...C,rangeType:"range",start:D,end:_,from:D,to:_};case"around":{const A=E.date,N={second:1,minute:60,hour:3600,day:86400}[E.unit],M=E.quantity*N,O=new Date(A.getTime()-M*1e3),I=new Date(A.getTime()+M*1e3);return D=O.toISOString(),_=I.toISOString(),{...C,rangeType:"around",aroundDate:A.toISOString(),aroundQuantity:E.quantity,aroundUnit:E.unit,from:D,to:_}}case"period":{const A=new Date,N=new Date(A);N.setHours(0,0,0,0);const M=new Date(A);return M.setHours(23,59,59,999),D=N.toISOString(),_=M.toISOString(),{...C,rangeType:"period",period:E.period,from:D,to:_}}}},replace:!0})},[n]),{from:b,to:w}=gc(e);return d.jsx(k8,{children:d.jsx(WO,{children:d.jsxs(ZO,{children:[d.jsx(XO,{className:"pb-4 md:pb-6",children:d.jsxs("div",{className:"flex flex-col space-y-4 md:space-y-0 md:flex-row md:items-center md:justify-between",children:[d.jsx("div",{children:d.jsx(Ax,{children:d.jsx(Rx,{children:d.jsx(kh,{className:"text-xl font-semibold",children:"Dashboard"})})})}),!o&&d.jsx("div",{className:"flex flex-col w-full max-w-full gap-2 md:w-auto md:inline-flex md:flex-row items-center",children:d.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[d.jsxs("div",{className:"pr-2 w-full md:w-auto flex items-center gap-2",children:[d.jsx(JO,{id:"hide-subflows",checked:l,onCheckedChange:h}),d.jsx(KO,{htmlFor:"hide-subflows",children:"Hide subflows"})]}),d.jsx("div",{className:"min-w-0 w-60",children:d.jsx(aw,{value:u,onChange:p,placeholder:"All tags"})}),d.jsx("div",{className:"min-w-0",children:d.jsx($O,{value:c,onValueChange:v,placeholder:"Select a time span"})})]})})]})}),o?d.jsx(V8,{}):d.jsxs("div",{className:"grid grid-cols-1 gap-4 items-start xl:grid-cols-2",children:[d.jsx("div",{className:"space-y-4",children:d.jsx(k.Suspense,{fallback:d.jsx(e5,{}),children:d.jsx(F8,{filter:{startDate:b,endDate:w,tags:e.tags,hideSubflows:e.hideSubflows},selectedStates:g,onStateChange:y})})}),d.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[d.jsx(k.Suspense,{fallback:d.jsx(t5,{}),children:d.jsx(Z8,{filter:{startDate:b,endDate:w,tags:e.tags,hideSubflows:e.hideSubflows}})}),d.jsx(k.Suspense,{fallback:d.jsx(n5,{}),children:d.jsx(dM,{filter:{startDate:b,endDate:w}})})]})]})]})})})}const u5=()=>Ae(()=>import("./index-zRh33zZ_.js"),[]),c5=Be("/")({component:Re(u5,"component"),beforeLoad:({location:e})=>{e.pathname==="/"&&rl({to:"/dashboard",throw:!0})}}),d5=()=>Ae(()=>import("./index-mYcm9Rkr.js"),__vite__mapDeps([11,1,2,12,13,4,5,6,7])),f5=()=>Ae(()=>import("./index-D73a_nGu.js"),__vite__mapDeps([14,1,2,13,15,4,7,5,6])),h5=Be("/work-pools/")({component:Re(f5,"component"),errorComponent:Re(d5,"errorComponent"),loader:({context:e})=>{e.queryClient.ensureQueryData(wj()),e.queryClient.ensureQueryData(bm({limit:200,offset:0}))},wrapInSuspense:!0,pendingComponent:Ke}),Oa={all:()=>["variables"],lists:()=>[...Oa.all(),"list"],"lists-filter":()=>[...Oa.lists(),"filter"],"list-filter":e=>[...Oa["lists-filter"](),e],counts:()=>[...Oa.all(),"counts"],count:e=>[...Oa.counts(),e]},m5=(e={offset:0,limit:10,sort:"CREATED_DESC"})=>be({queryKey:Oa["list-filter"](e),queryFn:async()=>(await(await ne()).POST("/variables/filter",{body:e})).data??[],placeholderData:qe}),Cb=e=>be({queryKey:Oa.count(e),queryFn:async()=>(await(await ne()).POST("/variables/count",{body:e})).data??0,placeholderData:qe}),MI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/variables/",{body:o}),onSettled:async()=>await e.invalidateQueries({queryKey:Oa.all()})});return{createVariable:n,...r}},OI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>{const{id:l,...u}=o;return(await ne()).PATCH("/variables/{id}",{params:{path:{id:l}},body:u})},onSettled:async()=>await e.invalidateQueries({queryKey:Oa.all()})});return{updateVariable:n,...r}},LI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>await(await ne()).DELETE("/variables/{id}",{params:{path:{id:o}}}),onSettled:async()=>await e.invalidateQueries({queryKey:Oa.all()})});return{deleteVariable:n,...r}},p5=()=>Ae(()=>import("./index-C6LgWyJb.js"),__vite__mapDeps([16,1,2,12,17,4,5,6,7])),v5=()=>Ae(()=>import("./index-Clbms0kg.js"),__vite__mapDeps([18,1,2,19,20,21,15,4,22,17,23,6,24,5,7])),g5=wt({offset:_t().int().nonnegative().optional().default(0).catch(0),limit:_t().int().positive().optional().default(10).catch(10),sort:it(["CREATED_DESC","UPDATED_DESC","NAME_ASC","NAME_DESC"]).optional().default("CREATED_DESC").catch("CREATED_DESC"),name:ze().optional().catch(void 0),tags:wa(ze()).optional().catch(void 0)}),y5=e=>({offset:e?.offset??0,limit:e?.limit??10,sort:e?.sort??"CREATED_DESC",variables:{operator:"and_",...e?.name&&{name:{like_:e.name}},...e?.tags?.length&&{tags:{operator:"and_",all_:e.tags}}}}),b5=Be("/variables/")({validateSearch:It(g5),component:Re(v5,"component"),errorComponent:Re(p5,"errorComponent"),loaderDeps:({search:e})=>y5(e),loader:({deps:e,context:n})=>{n.queryClient.prefetchQuery(m5(e)),n.queryClient.prefetchQuery(Cb(e)),n.queryClient.prefetchQuery(Cb())},wrapInSuspense:!0,pendingComponent:Ke}),ac=["Scheduled","Late","Resuming","AwaitingRetry","AwaitingConcurrencySlot","Pending","Paused","Suspended","Running","Retrying","Completed","Cached","Cancelled","Cancelling","Crashed","Failed","TimedOut"],kb=ac.filter(e=>e!=="Scheduled"),II=["Pending","Paused","Suspended","Running","Retrying","Completed","Cancelled","Cancelling","Crashed","Failed","TimedOut"],zI={Scheduled:"SCHEDULED",Late:"SCHEDULED",Resuming:"SCHEDULED",AwaitingRetry:"SCHEDULED",AwaitingConcurrencySlot:"SCHEDULED",Pending:"PENDING",Paused:"PAUSED",Suspended:"PAUSED",Running:"RUNNING",Retrying:"RUNNING",Completed:"COMPLETED",Cached:"COMPLETED",Cancelled:"CANCELLED",Cancelling:"CANCELLING",Crashed:"CRASHED",Failed:"FAILED",TimedOut:"FAILED"},kw=3600,Fm=86400,Nw=Fm,Aw=Fm*7,Rw=Fm*30,x5=["past-hour","past-24-hours","past-7-days","past-30-days","today"];function w5(e){if(e.start&&e.end)return{type:"range",startDate:new Date(e.start),endDate:new Date(e.end)};switch(e.range){case"past-hour":return{type:"span",seconds:-kw};case"past-24-hours":return{type:"span",seconds:-Nw};case"past-7-days":return{type:"span",seconds:-Aw};case"past-30-days":return{type:"span",seconds:-Rw};case"today":return{type:"period",period:"Today"};default:return null}}function FI(e){if(!e)return{};switch(e.type){case"span":{const n=Math.abs(e.seconds);if(n===kw)return{range:"past-hour"};if(n===Nw)return{range:"past-24-hours"};if(n===Aw)return{range:"past-7-days"};if(n===Rw)return{range:"past-30-days"};const r=new Date,o=new Date(r.getTime()+e.seconds*1e3),l=r,[u,c]=e.seconds<0?[o,l]:[l,o];return{start:u.toISOString(),end:c.toISOString()}}case"period":return e.period==="Today"?{range:"today"}:{};case"range":return{start:e.startDate.toISOString(),end:e.endDate.toISOString()};case"around":{const n=rw(e.unit),r=Math.abs(e.quantity*n),o=new Date(e.date.getTime()-r*1e3),l=new Date(e.date.getTime()+r*1e3);return{start:o.toISOString(),end:l.toISOString()}}default:return{}}}const rc=["START_TIME_ASC","START_TIME_DESC","NAME_ASC","NAME_DESC"];function UI({...e}){return d.jsx(p_,{"data-slot":"alert-dialog",...e})}function S5({...e}){return d.jsx(x_,{"data-slot":"alert-dialog-portal",...e})}function E5({className:e,...n}){return d.jsx(w_,{"data-slot":"alert-dialog-overlay",className:$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...n})}function qI({className:e,...n}){return d.jsxs(S5,{children:[d.jsx(E5,{}),d.jsx(v_,{"data-slot":"alert-dialog-content",className:$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...n})]})}function BI({className:e,...n}){return d.jsx("div",{"data-slot":"alert-dialog-header",className:$("flex flex-col gap-2 text-center sm:text-left",e),...n})}function PI({className:e,...n}){return d.jsx("div",{"data-slot":"alert-dialog-footer",className:$("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n})}function HI({className:e,...n}){return d.jsx(g_,{"data-slot":"alert-dialog-title",className:$("text-lg font-semibold",e),...n})}function $I({className:e,...n}){return d.jsx(y_,{"data-slot":"alert-dialog-description",className:$("text-muted-foreground text-sm",e),...n})}_5.displayName=Lb.displayName;function _5({className:e,variant:n="destructive",...r}){return d.jsx(Lb,{className:$(nl({variant:n}),e),...r})}function QI({className:e,...n}){return d.jsx(b_,{className:$(nl({variant:"outline"}),e),...n})}const T5=["EXPECTED_START_TIME_DESC","EXPECTED_START_TIME_ASC"],D5=()=>Ae(()=>import("./index-D13YFoYA.js"),__vite__mapDeps([25,1,2,26,27,28,15,4,29,30,31,32,5,33,21,23,6,24,7])),C5=wt({tab:it(["flow-runs","task-runs"]).optional().default("flow-runs"),page:_t().int().positive().optional().default(1).catch(1),limit:_t().int().positive().optional().catch(void 0),sort:it(rc).optional().default("START_TIME_DESC"),"hide-subflows":Ib().optional().default(!1),"flow-run-search":ze().optional().default(""),state:ze().optional().default(""),flows:ze().optional().default(""),deployments:ze().optional().default(""),"work-pools":ze().optional().default(""),tags:ze().optional().default(""),range:it(x5).optional(),start:ze().optional(),end:ze().optional(),"task-runs-page":_t().int().positive().optional().default(1).catch(1),"task-runs-limit":_t().int().positive().optional().catch(void 0),"task-runs-sort":it(T5).optional().default("EXPECTED_START_TIME_DESC"),"task-run-search":ze().optional().default("")}),Um=e=>e?e.split(",").filter(n=>ac.includes(n)):[],qm=e=>{if(!e)return;const n={range:e.range,start:e.start,end:e.end},r=w5(n);if(!r)return;const o=jh(r);if(o)return{after_:o.startDate.toISOString(),before_:o.endDate.toISOString()}},Bm=e=>e?e.split(",").filter(n=>n.trim().length>0):[],Pm=e=>e?e.split(",").filter(n=>n.trim().length>0):[],jw=e=>e?e.split(",").filter(n=>n.trim().length>0):[],Hm=e=>e?e.split(",").filter(n=>n.trim().length>0):[],k5=e=>{const n=e?.["hide-subflows"],r=e?.["flow-run-search"],o=Um(e?.state??""),l=Bm(e?.flows??""),u=Pm(e?.deployments??""),c=jw(e?.["work-pools"]??""),h=Hm(e?.tags??""),p=qm(e),g=o.length>0?o:void 0,y=l.length>0?l:void 0,v=u.length>0?u:void 0,b=c.length>0?c:void 0,E=n||r||g||y||v||h.length>0||p?{operator:"and_",...n&&{parent_task_run_id:{operator:"and_",is_null_:!0}},...r&&{name:{like_:r}},...g&&{state:{operator:"and_",name:{any_:g}}},...h.length>0&&{tags:{operator:"and_",any_:h}},...p&&{expected_start_time:p}}:void 0,C=y?{operator:"and_",id:{any_:y}}:void 0,D=v?{operator:"and_",id:{any_:v}}:void 0,_=b?{operator:"and_",name:{any_:b}}:void 0;return{page:e?.page??1,limit:e?.limit??100,sort:e?.sort??"START_TIME_DESC",flow_runs:E,flows:C,deployments:D,work_pools:_}},N5=e=>{const n=e?.["task-run-search"],r=Um(e?.state??""),o=Bm(e?.flows??""),l=Pm(e?.deployments??""),u=Hm(e?.tags??""),c=qm(e),h=n?{operator:"and_",name:{like_:n}}:void 0,p=r.length>0?r:void 0,y=p||u.length>0||c?{operator:"and_",...p&&{state:{operator:"and_",name:{any_:p}}},...u.length>0&&{tags:{operator:"and_",any_:u}},...c&&{expected_start_time:c}}:void 0,v=o.length>0?o:void 0,b=v?{operator:"and_",id:{any_:v}}:void 0,w=l.length>0?l:void 0,E=w?{operator:"and_",id:{any_:w}}:void 0;return{page:e?.["task-runs-page"]??1,limit:e?.["task-runs-limit"]??100,sort:e?.["task-runs-sort"]??"EXPECTED_START_TIME_DESC",task_runs:h,flow_runs:y,flows:b,deployments:E}},A5=e=>{const n=e?.["hide-subflows"],r=Um(e?.state??""),o=Bm(e?.flows??""),l=Pm(e?.deployments??""),u=jw(e?.["work-pools"]??""),c=Hm(e?.tags??""),h=qm(e),p=r.length>0?r:void 0,g=o.length>0?o:void 0,y=l.length>0?l:void 0,v=u.length>0?u:void 0;return{sort:"EXPECTED_START_TIME_DESC",limit:1e3,offset:0,flow_runs:n||p||c.length>0||h?{operator:"and_",...n&&{parent_task_run_id:{operator:"and_",is_null_:!0}},...p&&{state:{operator:"and_",name:{any_:p}}},...c.length>0&&{tags:{operator:"and_",any_:c}},...h&&{expected_start_time:h}}:void 0,flows:g?{operator:"and_",id:{any_:g}}:void 0,deployments:y?{operator:"and_",id:{any_:y}}:void 0,work_pools:v?{operator:"and_",name:{any_:v}}:void 0}},R5=Be("/runs/")({validateSearch:It(C5),component:Re(D5,"component"),loaderDeps:({search:e})=>({flowRunsDeps:k5(e),taskRunsDeps:N5(e),historyDeps:A5(e)}),loader:({deps:e,context:n})=>{n.queryClient.prefetchQuery(vt()),n.queryClient.prefetchQuery($n()),n.queryClient.prefetchQuery(Wr(e.flowRunsDeps,3e4)),n.queryClient.prefetchQuery(Dx(e.taskRunsDeps,3e4)),n.queryClient.prefetchQuery(vj(e.historyDeps,3e4)),(async()=>{const o=(await n.queryClient.ensureQueryData(Wr(e.flowRunsDeps,3e4)))?.results?.map(l=>l.id)??[];o.length>0&&n.queryClient.prefetchQuery(Bo(o))})()},wrapInSuspense:!0,pendingComponent:Ke}),j5=()=>Ae(()=>import("./index-yavn_NBp.js"),__vite__mapDeps([34,1,2,12,6,4,5,7])),M5=()=>Ae(()=>import("./index-BO4Qqsm8.js"),__vite__mapDeps([35,1,2,19,20,21,15,4,7,6,5])),O5=wt({name:ze().optional(),page:_t().int().positive().optional().default(1).catch(1),limit:_t().int().positive().max(100).optional().default(10).catch(10),tags:wa(ze()).optional(),sort:it(["CREATED_DESC","UPDATED_DESC","NAME_ASC","NAME_DESC"]).optional().default("NAME_ASC")}).optional().default({}),L5=e=>{const n=!!e?.name,r=!!e?.tags?.length;return!n&&!r?{page:e?.page??1,limit:e?.limit??10,sort:e?.sort??"NAME_ASC"}:{page:e?.page??1,limit:e?.limit??10,sort:e?.sort??"NAME_ASC",flows:{operator:"and_",...n&&{name:{like_:e?.name}},...r&&{tags:{operator:"and_",all_:e?.tags}}}}},I5=Be("/flows/")({validateSearch:It(O5),component:Re(M5,"component"),errorComponent:Re(j5,"errorComponent"),loaderDeps:({search:e})=>L5(e),loader:({deps:e,context:n})=>{n.queryClient.prefetchQuery(gj(e,3e4)),n.queryClient.prefetchQuery(ub({offset:0,sort:e.sort,flows:e.flows??void 0})),n.queryClient.prefetchQuery(ub({offset:0,sort:"NAME_ASC"}))},wrapInSuspense:!0,pendingComponent:Ke}),Mw=["prefect.log.write"],Nb=1e3;function z5(e){const n=new Date(e);return n.setSeconds(0,0),n}function Ow(e){if(e.rangeType==="range"&&e.start&&e.end)return{from:e.start,to:e.end};const n=z5(new Date),r=e.seconds??-86400,o=new Date(n.getTime()+r*1e3),[l,u]=[n,o].sort((c,h)=>c.getTime()-h.getTime());return{from:l.toISOString(),to:u.toISOString()}}function F5(e,n){const r=typeof e=="string"?new Date(e):e,o=typeof n=="string"?new Date(n):n,u=Math.abs(o.getTime()-r.getTime())/1e3/60,c=u/60;return u<=Nb?"minute":c<=Nb?"hour":"day"}function U5(e){const{from:n,to:r}=Ow(e),o={occurred:{since:n,until:r},order:e.order??"DESC"};e.resource&&e.resource.length>0&&(o.any_resource={id_prefix:e.resource});const l={exclude_prefix:Mw};return e.event&&e.event.length>0&&(l.prefix=e.event),o.event=l,{filter:o,limit:50}}function q5(e){const{from:n,to:r}=Ow(e),o=F5(n,r),l={occurred:{since:n,until:r},order:e.order??"DESC"};e.resource&&e.resource.length>0&&(l.any_resource={id_prefix:e.resource});const u={exclude_prefix:Mw};return e.event&&e.event.length>0&&(u.prefix=e.event),l.event=u,{filter:l,time_unit:o,time_interval:1}}const Pn={all:()=>["events"],lists:()=>[...Pn.all(),"list"],"lists-filter":()=>[...Pn.lists(),"filter"],"list-filter":e=>[...Pn["lists-filter"](),e],counts:()=>[...Pn.all(),"counts"],count:(e,n)=>[...Pn.counts(),e,n],history:()=>[...Pn.all(),"history"],historyFilter:e=>[...Pn.history(),e],detail:(e,n)=>[...Pn.all(),"detail",e,n?.toISOString()]},B5=(e,n=6e4)=>be({queryKey:Pn["list-filter"](e),queryFn:async()=>{const r=await(await ne()).POST("/events/filter",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},placeholderData:qe,staleTime:1e3,refetchInterval:n}),VI=(e,n,r=6e4)=>be({queryKey:Pn.count(e,n),queryFn:async()=>(await(await ne()).POST("/events/count-by/{countable}",{params:{path:{countable:e}},body:n})).data??[],refetchInterval:r}),P5=(e,n=6e4)=>be({queryKey:Pn.historyFilter(e),queryFn:async()=>(await(await ne()).POST("/events/count-by/{countable}",{params:{path:{countable:"time"}},body:e})).data??[],placeholderData:qe,staleTime:1e3,refetchInterval:n}),GI=e=>be({queryKey:[...Pn.lists(),"next",e],queryFn:async()=>{const r=new URL(e).searchParams.get("page-token");if(!r)throw new Error("'page-token' query parameter expected in next_page URL");const o=await(await ne()).GET("/events/filter/next",{params:{query:{"page-token":r}}});if(!o.data)throw new Error("'data' expected");return o.data},staleTime:Number.POSITIVE_INFINITY}),Lw=(e,n)=>be({queryKey:Pn.detail(e,n),queryFn:async()=>{const r=new Date(n);r.setHours(0,0,0,0);const o=new Date(r);o.setDate(o.getDate()+1);const l={filter:{id:{id:[e]},occurred:{since:r.toISOString(),until:o.toISOString()},order:"DESC"},limit:1},u=await(await ne()).POST("/events/filter",{body:l});if(!u.data?.events?.[0])throw new Error("Event not found");return u.data.events[0]},staleTime:6e4}),H5=()=>Ae(()=>import("./index-Bg45XS_V.js"),__vite__mapDeps([36,1,2,5,7,4,37,38,39,6])),$5=wt({resource:wa(ze()).optional(),event:wa(ze()).optional(),rangeType:it(["span","range"]).optional().default("span"),seconds:_t().optional().default(-86400),start:ze().optional(),end:ze().optional(),order:it(["ASC","DESC"]).optional()});function Q5(){return d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx(ke,{className:"h-8 w-48"}),d.jsxs("div",{className:"flex flex-wrap gap-4",children:[d.jsx(ke,{className:"h-10 w-48"}),d.jsx(ke,{className:"h-10 w-48"}),d.jsx(ke,{className:"h-10 w-48"})]}),d.jsx(ke,{className:"h-32 w-full"}),d.jsx(ke,{className:"h-64 w-full"})]})}const V5=Be("/events/")({validateSearch:It($5),loaderDeps:({search:e})=>e,wrapInSuspense:!0,pendingComponent:Q5,loader:({deps:e,context:{queryClient:n}})=>{const r=U5(e),o=q5(e);n.prefetchQuery(B5(r)),n.prefetchQuery(P5(o))},component:Re(H5,"component")}),G5=()=>Ae(()=>import("./index-DPPPaOr_.js"),__vite__mapDeps([40,1,2,41,12,4,5,6,7])),Y5=()=>Ae(()=>import("./index-DU9ShbqW.js"),__vite__mapDeps([42,1,2,43,44,31,19,20,30,45,46,7,4,22,47,21,15,41,5,6])),K5=wt({page:_t().int().positive().optional().default(1).catch(1),limit:_t().int().positive().optional().default(10).catch(10),sort:it(["NAME_ASC","NAME_DESC","CREATED_DESC","UPDATED_DESC"]).optional().default("NAME_ASC").catch("NAME_ASC"),flowOrDeploymentName:ze().optional().catch(""),tags:wa(ze()).optional().catch([])}),W5=e=>({page:e?.page??1,limit:e?.limit??10,sort:e?.sort??"NAME_ASC",deployments:{operator:"and_",flow_or_deployment_name:{like_:e?.flowOrDeploymentName??""},tags:{operator:"and_",all_:e?.tags??[]}}}),X5=Be("/deployments/")({validateSearch:It(K5),component:Re(Y5,"component"),errorComponent:Re(G5,"errorComponent"),loaderDeps:({search:e})=>W5(e),loader:async({deps:e,context:n})=>{const r=n.queryClient.ensureQueryData(mj()),o=await n.queryClient.ensureQueryData(gm(e)),l=o?.results??[],u=[...new Set(l.map(h=>h.flow_id))],c=n.queryClient.ensureQueryData(al({flows:{operator:"and_",id:{any_:u}},offset:0,sort:"NAME_ASC"}));return{deploymentsCountResult:r,deploymentsPaginateResult:o,flowsFilterResult:c}},wrapInSuspense:!0,pendingComponent:Ke}),Lo={all:()=>["global-concurrency-limits"],lists:()=>[...Lo.all(),"list"],list:e=>[...Lo.lists(),e]},Iw=(e={offset:0})=>be({queryKey:Lo.list(e),queryFn:async()=>(await(await ne()).POST("/v2/concurrency_limits/filter",{body:e})).data??[]}),YI=(e={offset:0})=>Io(Iw(e)),KI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/v2/concurrency_limits/{id_or_name}",{params:{path:{id_or_name:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:Lo.lists()})});return{deleteGlobalConcurrencyLimit:n,...r}},WI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/v2/concurrency_limits/",{body:o}),onSuccess:()=>e.invalidateQueries({queryKey:Lo.lists()})});return{createGlobalConcurrencyLimit:n,...r}},XI=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id_or_name:o,...l})=>(await ne()).PATCH("/v2/concurrency_limits/{id_or_name}",{body:l,params:{path:{id_or_name:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:Lo.lists()})});return{updateGlobalConcurrencyLimit:n,...r}},sa={all:()=>["task-run-concurrency-limits"],lists:()=>[...sa.all(),"list"],list:e=>[...sa.lists(),e],details:()=>[...sa.all(),"details"],detail:e=>[...sa.details(),e],activeTaskRuns:()=>[...sa.details(),"active-task-runs"],activeTaskRun:e=>[...sa.activeTaskRuns(),e]},zw=(e={offset:0})=>be({queryKey:sa.list(e),queryFn:async()=>(await(await ne()).POST("/concurrency_limits/filter",{body:e})).data??[],refetchInterval:3e4}),Fw=async e=>{const n=await(await ne()).GET("/concurrency_limits/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data},ZI=e=>be({queryKey:sa.detail(e),queryFn:()=>Fw(e)}),JI=(e={offset:0})=>Io(zw(e)),ez=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/concurrency_limits/{id}",{params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:sa.lists()})});return{deleteTaskRunConcurrencyLimit:n,...r}},tz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/concurrency_limits/",{body:o}),onSuccess:()=>e.invalidateQueries({queryKey:sa.lists()})});return{createTaskRunConcurrencyLimit:n,...r}},nz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/concurrency_limits/tag/{tag}/reset",{params:{path:{tag:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:sa.all()})});return{resetTaskRunConcurrencyLimitTag:n,...r}},Z5=async e=>{const n=await(await ne()).POST("/task_runs/filter",{body:{task_runs:{id:{any_:e},operator:"or_"},sort:"NAME_DESC",offset:0}});if(!n.data)throw new Error("'data' expected");const r=[],o=[];for(const v of n.data)v.flow_run_id?r.push(v):o.push(v);const l=o.map(v=>({taskRun:v,flowRun:null,flow:null}));if(r.length===0)return l;const u=r.map(v=>v.flow_run_id),c=await(await ne()).POST("/flow_runs/filter",{body:{flow_runs:{id:{any_:u},operator:"or_"},sort:"NAME_DESC",offset:0}});if(!c.data)throw new Error("'data' expected");if(!c.data.every(v=>v.flow_id===c.data[0].flow_id))throw new Error("Flow runs has mismatching 'flow_id'");const p=c.data[0].flow_id,g=await(await ne()).GET("/flows/{id}",{params:{path:{id:p}}});if(!g.data)throw new Error("'data' expected");return[...r.map(v=>{const b=c.data.find(w=>w.id===v.flow_run_id);if(!b)throw new Error('"Expected to find flowRun');return{taskRun:v,flowRun:b,flow:g.data}}),...l]},J5=e=>be({queryKey:sa.activeTaskRun(e),queryFn:async()=>{const n=await Fw(e);if(!n.active_slots)throw new Error("'active_slots' expected");const r=Z5(n.active_slots);return{taskRunConcurrencyLimit:n,activeTaskRunsPromise:r}}}),e9=()=>Ae(()=>import("./index-kM_g8J0u.js"),__vite__mapDeps([48,1,2,19,20,15,4,24,6,23,49,5,7])),t9=wt({search:ze().optional(),tab:it(["global","task-run"]).default("global")}),n9=Be("/concurrency-limits/")({validateSearch:It(t9),component:Re(e9,"component"),wrapInSuspense:!0,pendingComponent:Ke,loader:({context:e})=>Promise.all([e.queryClient.ensureQueryData(Iw()),e.queryClient.ensureQueryData(zw())])}),Zt={all:()=>["block-documents"],lists:()=>[...Zt.all(),"list"],listFilters:()=>[...Zt.lists(),"filter"],listFilter:e=>[...Zt.listFilters(),e],counts:()=>[...Zt.all(),"count"],countAll:()=>[...Zt.counts(),"all"],countFilter:e=>[...Zt.counts(),e],details:()=>[...Zt.all(),"details"],detail:e=>[...Zt.details(),e]},a9=(e={offset:0,sort:"BLOCK_TYPE_AND_NAME_ASC",include_secrets:!1},{enabled:n=!0}={})=>be({queryKey:Zt.listFilter(e),queryFn:async()=>{const r=await(await ne()).POST("/block_documents/filter",{body:e});if(!r.data)throw new Error("'data' exoected");return r.data},placeholderData:qe,enabled:n}),r9=(e={offset:0,sort:"BLOCK_TYPE_AND_NAME_ASC",include_secrets:!1})=>be({queryKey:Zt.countFilter(e),queryFn:async()=>(await(await ne()).POST("/block_documents/count",{body:e})).data??0}),i9=()=>be({queryKey:Zt.countAll(),queryFn:async()=>(await(await ne()).POST("/block_documents/count")).data??0}),Uw=e=>be({queryKey:Zt.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/block_documents/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error('Expecting "data"');return n.data}}),az=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/block_documents/{id}",{params:{path:{id:o}}}),onSettled:()=>Promise.all([e.invalidateQueries({queryKey:Zt.lists()}),e.invalidateQueries({queryKey:Zt.counts()})])});return{deleteBlockDocument:n,...r}},rz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>{const l=await(await ne()).POST("/block_documents/",{body:o});if(!l.data)throw new Error("'data' expected");return l.data},onSuccess:()=>{e.invalidateQueries({queryKey:Zt.lists()}),e.invalidateQueries({queryKey:Zt.counts()})}});return{createBlockDocument:n,...r}},iz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PATCH("/block_documents/{id}",{body:l,params:{path:{id:o}}}),onSuccess:(o,{id:l})=>{e.invalidateQueries({queryKey:Zt.lists()}),e.invalidateQueries({queryKey:Zt.detail(l)})}});return{updateBlockDocument:n,...r}},Vr={all:()=>["block-types"],lists:()=>[...Vr.all(),"list"],listFilters:()=>[...Vr.lists(),"filter"],listFilter:e=>[...Vr.listFilters(),e],details:()=>[...Vr.all(),"detail"],detailsSlug:()=>[...Vr.details(),"slug"],detailSlug:e=>[...Vr.detailsSlug(),e]},qw=(e={offset:0})=>be({queryKey:Vr.listFilter(e),queryFn:async()=>{const n=await(await ne()).POST("/block_types/filter",{body:e});if(!n.data)throw new Error("'data' expected");return n.data}}),Bw=e=>be({queryKey:Vr.detailSlug(e),queryFn:async()=>{const n=await(await ne()).GET("/block_types/slug/{slug}",{params:{path:{slug:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),o9=()=>Ae(()=>import("./index-CYaUe0Ym.js"),__vite__mapDeps([50,1,2,51,15,4,31,19,20,30,52,53,5,6,7])),s9=wt({blockName:ze().optional(),blockTypes:wa(ze()).optional(),page:_t().int().positive().optional().default(1).catch(1),limit:_t().int().positive().optional().default(10).catch(10)}),l9=Be("/blocks/")({validateSearch:It(s9),component:Re(o9,"component"),loaderDeps:({search:{blockName:e,blockTypes:n,page:r,limit:o}})=>({blockName:e,blockTypes:n,page:r,limit:o}),loader:({deps:e,context:{queryClient:n}})=>{const r={block_types:{slug:{any_:e.blockTypes}},block_documents:{is_anonymous:{eq_:!1},operator:"or_",name:{like_:e.blockName}},limit:e.limit,offset:e.page,include_secrets:!1,sort:"NAME_ASC"};return Promise.all([n.ensureQueryData(qw()),n.ensureQueryData(i9()),n.ensureQueryData(a9(r)),n.ensureQueryData(r9(r))])},wrapInSuspense:!0,pendingComponent:Ke}),An={all:()=>["automations"],lists:()=>[...An.all(),"list"],filters:()=>[...An.lists(),"filter"],filter:e=>[...An.filters(),e],relates:()=>[...An.lists(),"relates"],relate:e=>[...An.relates(),e],details:()=>[...An.all(),"details"],detail:e=>[...An.details(),e]},u9=(e={sort:"CREATED_DESC",offset:0})=>be({queryKey:An.filter(e),queryFn:async()=>{const n=await(await ne()).POST("/automations/filter",{body:e});if(!n.data)throw new Error("'data' expected");return n.data}}),Pw=e=>be({queryKey:An.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/automations/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),c9=e=>be({queryKey:An.relate(e),queryFn:async()=>(await(await ne()).GET("/automations/related-to/{resource_id}",{params:{path:{resource_id:e}}})).data??[]}),oz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).DELETE("/automations/{id}",{params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:An.lists()})});return{deleteAutomation:n,...r}},sz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async o=>(await ne()).POST("/automations/",{body:o}),onSuccess:()=>e.invalidateQueries({queryKey:An.lists()})});return{createAutomation:n,...r}},lz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PATCH("/automations/{id}",{body:l,params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:An.all()})});return{updateAutomation:n,...r}},uz=()=>{const e=Le(),{mutate:n,...r}=Ie({mutationFn:async({id:o,...l})=>(await ne()).PUT("/automations/{id}",{body:l,params:{path:{id:o}}}),onSuccess:()=>e.invalidateQueries({queryKey:An.all()})});return{replaceAutomation:n,...r}},cz=()=>{const{mutateAsync:e,...n}=Ie({mutationFn:async r=>{const o=await ST(),l=await fetch(`${o}/automations/templates/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(l.ok)return{valid:!0};try{const u=await l.json();if(u?.error)return{valid:!1,error:`Error on line ${u.error.line}: ${u.error.message}`}}catch{}return{valid:!1,error:"Template validation failed"}}});return{validateTemplate:e,...n}},d9=()=>Ae(()=>import("./index-BleYpDoN.js"),__vite__mapDeps([54,1,2,55,12,4,5,6,7])),f9=()=>Ae(()=>import("./index-DdR1lzZk.js"),__vite__mapDeps([56,1,2,30,57,58,47,15,4,31,55,5,6,7])),h9=Be("/automations/")({component:Re(f9,"component"),errorComponent:Re(d9,"errorComponent"),loader:({context:e})=>e.queryClient.ensureQueryData(u9()),wrapInSuspense:!0,pendingComponent:Ke}),oa={all:()=>["artifacts"],lists:()=>[...oa.all(),"list"],"lists-filter":()=>[...oa.lists(),"filter"],"list-filter":e=>[...oa["lists-filter"](),e],counts:()=>[...oa.all(),"counts"],count:e=>[...oa.counts(),e],details:()=>[...oa.all(),"details"],detail:e=>[...oa.details(),e],"task-run-result":e=>[...oa.all(),"task-run-result",e]},yc=(e={offset:0,sort:"ID_DESC"})=>be({queryKey:oa["list-filter"](e),queryFn:async()=>(await(await ne()).POST("/artifacts/filter",{body:e})).data??[],placeholderData:qe}),m9=(e={offset:0,sort:"ID_DESC"})=>be({queryKey:oa.count(e),queryFn:async()=>(await(await ne()).POST("/artifacts/count",{body:e})).data??0,placeholderData:0}),p9=e=>be({queryKey:oa.detail(e),queryFn:async()=>{const n=await(await ne()).GET("/artifacts/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),dz=e=>be({queryKey:oa["task-run-result"](e),queryFn:async()=>(await(await ne()).POST("/artifacts/filter",{body:{artifacts:{operator:"and_",task_run_id:{any_:[e]},type:{any_:["result"]}},sort:"CREATED_DESC",offset:0,limit:1}})).data?.[0]??null}),v9=()=>Ae(()=>import("./index--Z69UYXV.js"),__vite__mapDeps([59,1,2,60,61,62,4,63,5,6,7])),g9=wt({type:ze().optional().catch(""),name:ze().optional().catch("")}),y9=e=>({artifacts:{operator:"and_",type:{any_:e?.type&&e?.type!=="all"?[e.type]:void 0},key:{like_:e?.name??""}},sort:"CREATED_DESC",offset:0}),b9=Be("/artifacts/")({validateSearch:It(g9),component:Re(v9,"component"),loaderDeps:({search:e})=>y9(e),loader:async({deps:e,context:n})=>{const[r,o]=await Promise.all([n.queryClient.ensureQueryData(m9(e)),n.queryClient.ensureQueryData(yc(e))]);return{artifactsCount:r,artifactsList:o}},wrapInSuspense:!0,pendingComponent:Ke}),Hw={all:()=>["collections"],workPoolTypes:()=>[...Hw.all(),"work-pool-types"]},x9=()=>be({queryKey:Hw.workPoolTypes(),queryFn:async()=>{const e=await(await ne()).GET("/collections/views/{view}",{params:{path:{view:"aggregate-worker-metadata"}}});if(!e.data)throw new Error("'data' expected");return e.data}}),w9=()=>Ae(()=>import("./create-CtsA2QIl.js"),__vite__mapDeps([64,1,2,23,6,24,4,65,66,67,63,62,68,15,7,69,70,52,5,3])),S9=Be("/work-pools/create")({component:Re(w9,"component"),loader:({context:{queryClient:e}})=>{e.prefetchQuery(x9())},wrapInSuspense:!0,pendingComponent:Ke}),E9=()=>Ae(()=>import("./catalog-5_GoCKpb.js"),__vite__mapDeps([71,1,2,52,61,4,5,6,7])),_9=wt({blockName:ze().optional()}),T9=Be("/blocks/catalog")({validateSearch:It(_9),component:Re(E9,"component"),loaderDeps:({search:{blockName:e}})=>({blockName:e}),loader:({deps:e,context:{queryClient:n}})=>n.ensureQueryData(qw({block_types:{name:{like_:e.blockName}},offset:0})),wrapInSuspense:!0,pendingComponent:Ke}),D9=()=>Ae(()=>import("./create-DJPAEZ93.js"),__vite__mapDeps([72,1,2,73,6,74,23,24,4,65,66,75,3,37,21,76,5,7])),C9=wt({actions:zb(Fb()).optional(),eventId:ze().optional(),eventDate:ze().optional()});function k9(e){const[n,r,o]=e.split("-").map(Number);return new Date(n,r-1,o)}const N9=Be("/automations/create")({component:Re(D9,"component"),validateSearch:It(C9),loaderDeps:({search:e})=>({eventId:e.eventId,eventDate:e.eventDate}),loader:({deps:e,context:{queryClient:n}})=>{if(e.eventId&&e.eventDate){const r=k9(e.eventDate);n.prefetchQuery(Lw(e.eventId,r))}},wrapInSuspense:!0,pendingComponent:Ke}),A9=()=>Ae(()=>import("./work-pool._workPoolName-zBqgkYLT.js"),__vite__mapDeps([77,1,2,43,44,31,19,20,30,45,46,7,4,22,47,21,15,28,78,23,6,24,66,5])),R9=wt({tab:it(["Details","Runs","Work Queues","Workers","Deployments"]).default("Runs")}),j9=Be("/work-pools/work-pool/$workPoolName")({validateSearch:It(R9),component:Re(A9,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(Cx(e.workPoolName));return n.prefetchQuery(nc(e.workPoolName)),n.prefetchQuery(xm(e.workPoolName)),n.ensureQueryData(nc(e.workPoolName)).then(o=>Promise.all(o.map(l=>n.prefetchQuery(vt({work_pools:{operator:"and_",name:{any_:[e.workPoolName]}},work_pool_queues:{operator:"and_",name:{any_:[l.name]}},flow_runs:{operator:"and_",state:{operator:"and_",name:{any_:["Late"]}}}},3e4))))),n.ensureQueryData(Wr({page:1,limit:10,sort:"START_TIME_DESC",work_pools:{operator:"and_",name:{any_:[e.workPoolName]}}})).then(o=>Promise.all((o.results??[]).map(l=>n.prefetchQuery(Bo([l.id]))))),n.prefetchQuery(vt({work_pools:{operator:"and_",name:{any_:[e.workPoolName]}}})),n.prefetchQuery(gm({page:1,limit:50,sort:"CREATED_DESC",work_pools:{operator:"and_",name:{any_:[e.workPoolName]}}})),{workPool:r}},wrapInSuspense:!0,pendingComponent:Ke}),$s={all:()=>["logs"],lists:()=>[...$s.all(),"list"],list:e=>[...$s.lists(),e],infiniteLists:()=>[...$s.lists(),"infinite"],infiniteList:e=>[...$s.infiniteLists(),e]},$w=e=>cE({queryKey:$s.infiniteList(e),queryFn:async({pageParam:n={offset:0}})=>(await(await ne()).POST("/logs/filter",{body:{...e,offset:n.offset}})).data??[],initialPageParam:{offset:0},getNextPageParam:(n,r)=>{if(n.length!==0)return{offset:r.reduce((o,l)=>o+l.length,0)}},placeholderData:qe}),M9=()=>Ae(()=>import("./task-run._id-DJkoLl_e.js"),__vite__mapDeps([79,1,2,12,6,4,5,7])),O9=()=>Ae(()=>import("./task-run._id-9DcrUEGz.js"),__vite__mapDeps([80,1,2,60,61,62,4,81,7,75,30,31,15,53,6,5])),L9=wt({tab:it(["Logs","Artifacts","TaskInputs","Details"]).default("Logs").catch("Logs")}),I9=Be("/runs/task-run/$id")({validateSearch:It(L9),component:Re(O9,"component"),loader:async({params:e,context:{queryClient:n}})=>{n.prefetchInfiniteQuery($w({limit:50,sort:"TIMESTAMP_ASC",logs:{operator:"and_",level:{ge_:0},task_run_id:{any_:[e.id]}}})),n.prefetchQuery(yc({artifacts:{operator:"and_",task_run_id:{any_:[e.id]},type:{not_any_:["result"]}},sort:"ID_DESC",offset:0})),await n.ensureQueryData(bj(e.id))},wrapInSuspense:!0,pendingComponent:Ke,errorComponent:Re(M9,"errorComponent")}),z9=()=>Ae(()=>import("./flow-run._id-Dwx7ojcj.js"),__vite__mapDeps([82,1,2,6,4,5,7])),F9=()=>Ae(()=>import("./flow-run._id-Dn9R_Tjy.js"),__vite__mapDeps([83,1,2,12,6,4,5,7])),U9=()=>Ae(()=>import("./flow-run._id-YzRd5jrC.js"),__vite__mapDeps([84,1,2,81,7,4,75,60,61,62,85,67,23,6,63,68,15,24,30,31,27,28,33,21,5])),q9=wt({tab:it(["Logs","TaskRuns","SubflowRuns","Artifacts","Details","Parameters","JobVariables"]).default("Logs").catch("Logs")}),B9=Be("/runs/flow-run/$id")({validateSearch:It(q9),component:Re(U9,"component"),loader:async({params:e,context:{queryClient:n}})=>{n.prefetchInfiniteQuery($w({limit:50,sort:"TIMESTAMP_ASC",logs:{operator:"and_",level:{ge_:0},flow_run_id:{any_:[e.id]}}})),n.prefetchQuery(yc({artifacts:{operator:"and_",flow_run_id:{any_:[e.id]},type:{not_any_:["result"]}},sort:"ID_DESC",offset:0})),n.prefetchQuery(Dx({page:1,sort:"EXPECTED_START_TIME_DESC",flow_runs:{operator:"and_",id:{any_:[e.id]}}}));try{await n.ensureQueryData(pj(e.id))}catch(r){throw r instanceof Error&&/not found/i.test(r.message)?dE():r}},wrapInSuspense:!0,pendingComponent:Ke,errorComponent:Re(F9,"errorComponent"),notFoundComponent:Re(z9,"notFoundComponent")});function P9(e,n){return{flows:{operator:"and_",id:{any_:[e]}},flow_runs:{operator:"and_",start_time:{is_null_:!1}},offset:0,limit:n,sort:"START_TIME_DESC"}}function H9(e){return{flows:{operator:"and_",id:{any_:[e]}},flow_runs:{operator:"and_",start_time:{is_null_:!1}}}}function bc(e){return{task_runs:{operator:"and_",subflow_runs:{exists_:!1}},flows:{operator:"and_",id:{any_:[e]}}}}function $9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED","FAILED","CRASHED","RUNNING"]}}}}}function Q9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["COMPLETED"]}}}}}function V9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["FAILED","CRASHED"]}}}}}function G9(e){const n=bc(e);return{...n,task_runs:{...n.task_runs,state:{operator:"and_",type:{any_:["RUNNING"]}}}}}function Y9(){const e=new Date;return e.setMinutes(0,0,0),e}function K9(e){const n=Y9(),r=new Date(n.getTime()-10080*60*1e3),o=r.toISOString(),l=n.toISOString(),u=Math.floor((n.getTime()-r.getTime())/1e3),c=Math.max(1,Math.floor(u/20));return{history_start:o,history_end:l,history_interval_seconds:c,flows:{operator:"and_",id:{any_:[e]}},task_runs:{operator:"and_",start_time:{after_:o,before_:l}}}}const W9=()=>Ae(()=>import("./flow._id-V6-Qhkwk.js"),__vite__mapDeps([86,1,2,27,28,15,4,29,30,31,19,20,21,45,46,7,22,47,5,53,6])),X9=wt({tab:it(["runs","deployments","details"]).optional().default("runs"),"runs.page":_t().int().positive().optional().default(1),"runs.limit":_t().int().positive().max(100).optional().default(10),"runs.sort":it(rc).optional().default("START_TIME_DESC"),"runs.flowRuns.nameLike":ze().optional().default(""),"runs.flowRuns.state.name":wa(ze()).optional(),type:it(["span","range"]).optional(),seconds:_t().int().positive().optional(),startDateTime:zy().optional(),endDateTime:zy().optional(),"deployments.page":_t().int().positive().optional().default(1),"deployments.limit":_t().int().positive().optional().default(10),"deployments.nameLike":ze().optional(),"deployments.tags":wa(ze()).optional(),"deployments.sort":it(["CREATED_DESC","UPDATED_DESC","NAME_ASC","NAME_DESC"]).optional().default("NAME_ASC")}).optional().default({}),Ab=(e,n)=>{const r=e["runs.flowRuns.nameLike"],o=e["runs.flowRuns.state.name"]??[],u=r||o.length>0?{operator:"and_",...r&&{name:{like_:r}},...o.length>0&&{state:{operator:"and_",name:{any_:o}}}}:void 0;return{page:e["runs.page"],limit:e["runs.limit"],sort:e["runs.sort"],flow_runs:u,flows:{operator:"and_",id:{any_:[n]}}}},Z9=Be("/flows/flow/$id")({component:Re(W9,"component"),validateSearch:It(X9),loaderDeps:({search:e})=>({flowRunsDeps:e}),loader:({params:{id:e},context:n,deps:r})=>(n.queryClient.prefetchQuery(tc(e)),n.queryClient.prefetchQuery(Wr(Ab(r.flowRunsDeps,e),3e4)),n.queryClient.prefetchQuery(gm({sort:r.flowRunsDeps["deployments.sort"],page:r.flowRunsDeps["deployments.page"],limit:r.flowRunsDeps["deployments.limit"],flows:{operator:"and_",id:{any_:[e]}},deployments:{operator:"and_",flow_or_deployment_name:{like_:r.flowRunsDeps["deployments.nameLike"]},tags:{operator:"and_",all_:r.flowRunsDeps["deployments.tags"]||[]}}})),n.queryClient.prefetchQuery(yj([e])),n.queryClient.prefetchQuery(pr(P9(e,60),3e4)),n.queryClient.prefetchQuery(vt(H9(e),3e4)),n.queryClient.prefetchQuery($n($9(e),3e4)),n.queryClient.prefetchQuery($n(Q9(e),3e4)),n.queryClient.prefetchQuery($n(V9(e),3e4)),n.queryClient.prefetchQuery($n(G9(e),3e4)),n.queryClient.prefetchQuery(ym(K9(e),3e4)),(async()=>{const u=(await n.queryClient.ensureQueryData(Wr(Ab(r.flowRunsDeps,e),3e4)))?.results?.map(c=>c.id)??[];u.length>0&&n.queryClient.prefetchQuery(Bo(u))})(),n.queryClient.ensureQueryData(tc(e))),wrapInSuspense:!0,pendingComponent:Ke}),J9=Be("/flow-runs/task-run/$id")({beforeLoad:({params:e,search:n})=>{rl({to:"/runs/task-run/$id",params:{id:e.id},search:n,throw:!0})}}),e7=Be("/flow-runs/flow-run/$id")({beforeLoad:({params:e,search:n})=>{rl({to:"/runs/flow-run/$id",params:{id:e.id},search:n,throw:!0})}}),ga={all:()=>["work-queues"],lists:()=>[...ga.all(),"list"],filters:()=>[...ga.lists(),"filter"],filter:e=>[...ga.filters(),e],workPoolFilters:(e,n)=>[...ga.filters(),e,{...n}],details:()=>[...ga.all(),"details"],detail:(e,n)=>[...ga.details(),e,n],detailById:e=>[...ga.details(),"by-id",e]},fz=(e={offset:0},{enabled:n=!0}={})=>be({queryKey:ga.filter(e),queryFn:async()=>{const r=await(await ne()).POST("/work_queues/filter",{body:e});if(!r.data)throw new Error("'data' expected");return r.data},enabled:n}),t7=({filter:e={offset:0},work_pool_name:n})=>be({queryKey:ga.workPoolFilters(n??"",e),queryFn:async()=>{const r=await(await ne()).POST("/work_pools/{work_pool_name}/queues/filter",{params:{path:{work_pool_name:n??""}},body:e});if(!r.data)throw new Error("'data' expected");return r.data},enabled:!!n}),n7=(e,n)=>be({queryKey:ga.detail(e,n),queryFn:async()=>{const r=await(await ne()).GET("/work_pools/{work_pool_name}/queues/{name}",{params:{path:{work_pool_name:e,name:n}}});if(!r.data)throw new Error("'data' expected");return r.data}}),hz=e=>be({queryKey:ga.detailById(e),queryFn:async()=>{const n=await(await ne()).GET("/work_queues/{id}",{params:{path:{id:e}}});if(!n.data)throw new Error("'data' expected");return n.data}}),a7=()=>Ae(()=>import("./deployment._id-BVOBfMVf.js"),__vite__mapDeps([87,1,2,12,6,4,5,7])),r7=()=>Ae(()=>import("./deployment._id-KOMC9fpE.js"),__vite__mapDeps([88,1,2,30,15,4,61,26,27,28,29,31,19,20,89,58,47,23,6,7,5,46,24,68,44])),i7=wt({tab:it(["Runs","Upcoming","Parameters","Configuration","Description"]).default("Runs"),runs:wt({flowRuns:wt({name:ze().optional(),state:wa(it(ac)).optional().default(kb).catch(kb)}).optional(),page:_t().int().positive().optional().default(1).catch(1),limit:_t().int().positive().optional().default(10).catch(10),sort:it(rc).optional().default("START_TIME_DESC").catch("START_TIME_DESC")}).optional(),upcoming:wt({flowRuns:wt({name:ze().optional(),state:wa(it(ac)).optional().default(["Scheduled"]).catch(["Scheduled"])}).optional(),page:_t().int().positive().optional().default(1).catch(1),limit:_t().int().positive().optional().default(5).catch(5),sort:it(rc).optional().default("START_TIME_ASC").catch("START_TIME_ASC")}).optional()}),o7=Be("/deployments/deployment/$id")({validateSearch:It(i7),component:Re(r7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(ul(e.id));n.prefetchQuery(c9(`prefect.deployment.${e.id}`)),n.prefetchQuery(tc(r.flow_id)),r.work_pool_name&&r.work_queue_name&&n.prefetchQuery(n7(r.work_pool_name,r.work_queue_name))},wrapInSuspense:!0,pendingComponent:Ke,errorComponent:Re(a7,"errorComponent")}),s7=()=>Ae(()=>import("./concurrency-limit._id-D5i9zZJh.js"),__vite__mapDeps([90,1,2,7,4,49,15,6,5])),l7=wt({tab:it(["active-task-runs"]).default("active-task-runs")}),u7=Be("/concurrency-limits/concurrency-limit/$id")({validateSearch:It(l7),component:Re(s7,"component"),wrapInSuspense:!0,pendingComponent:Ke,loader:({context:e,params:n})=>e.queryClient.ensureQueryData(J5(n.id))}),c7=()=>Ae(()=>import("./catalog_._slug-sZvt0fDy.js"),__vite__mapDeps([91,1,2,52,92,61,4,5,6,7])),d7=Be("/blocks/catalog_/$slug")({component:Re(c7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(Bw(e.slug)),wrapInSuspense:!0,pendingComponent:Ke}),f7=()=>Ae(()=>import("./block._id-BY42cyjR.js"),__vite__mapDeps([93,1,2,51,15,4,31,94,52,61,30,92,5,6,7])),h7=Be("/blocks/block/$id")({component:Re(f7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(Uw(e.id)),wrapInSuspense:!0,pendingComponent:Ke}),m7=()=>Ae(()=>import("./automation._id-CEHa-X0X.js"),__vite__mapDeps([95,1,2,30,57,58,47,15,4,31,5,6,7])),p7=Be("/automations/automation/$id")({component:Re(m7,"component"),loader:({context:e,params:n})=>e.queryClient.ensureQueryData(Pw(n.id)),wrapInSuspense:!0,pendingComponent:Ke}),v7=()=>Ae(()=>import("./key._key-C-nk2nld.js"),__vite__mapDeps([96,1,2,97,61,4,5,6,7])),g7=e=>({artifacts:{operator:"and_",key:{like_:e}},sort:"CREATED_DESC",offset:0}),y7=Be("/artifacts/key/$key")({component:Re(v7,"component"),loader:async({context:e,params:n})=>{const{key:r}=n;return{artifacts:await e.queryClient.ensureQueryData(yc(g7(r)))}},wrapInSuspense:!0,pendingComponent:Ke}),b7=()=>Ae(()=>import("./artifact._id-vDOuIuta.js"),__vite__mapDeps([98,1,2,97,61,10,20,85,4,5,6,7])),x7=Be("/artifacts/artifact/$id")({component:Re(b7,"component"),loader:async({context:e,params:n})=>{const{id:r}=n;return{artifact:await e.queryClient.ensureQueryData(p9(r))}}}),w7=()=>Ae(()=>import("./work-pool_._workPoolName.edit-B-8_CnfA.js"),__vite__mapDeps([99,1,2,6,23,24,4,66,69,67,63,62,68,15,7,70,52,5])),S7=Be("/work-pools/work-pool_/$workPoolName/edit")({component:Re(w7,"component"),loader:async({context:e,params:n})=>{const{workPoolName:r}=n;return e.queryClient.ensureQueryData(Cx(r))},wrapInSuspense:!0,pendingComponent:Ke}),E7=()=>Ae(()=>import("./event._eventDate._eventId-CcbtP9Ag.js"),__vite__mapDeps([100,1,2,73,6,24,4,3,76,15,38,39,7,5])),_7=wt({tab:it(["details","raw"]).optional().default("details")});function T7(e){const[n,r,o]=e.split("-").map(Number);return new Date(n,r-1,o)}const D7=Be("/events/event/$eventDate/$eventId")({validateSearch:It(_7),component:Re(E7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=T7(e.eventDate);await n.ensureQueryData(Lw(e.eventId,r))},wrapInSuspense:!0,pendingComponent:Ke}),C7=()=>Ae(()=>import("./deployment_._id.run-DFVA4Xhx.js"),__vite__mapDeps([101,1,2,67,23,6,63,62,4,68,15,7,24,66,21,102,5,89,58,47])),k7=wt({parameters:zb(Fb()).optional()}).optional(),N7=Be("/deployments/deployment_/$id/run")({validateSearch:It(k7),component:Re(C7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(ul(e.id));r.work_pool_name&&n.prefetchQuery(t7({work_pool_name:r.work_pool_name}))},wrapInSuspense:!0,pendingComponent:Ke}),A7=()=>Ae(()=>import("./deployment_._id.edit-Dv0M_huv.js"),__vite__mapDeps([103,1,2,102,104,67,23,6,63,62,4,68,15,7,24,21,5])),R7=Be("/deployments/deployment_/$id/edit")({component:Re(A7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(ul(e.id)),wrapInSuspense:!0,pendingComponent:Ke}),j7=()=>Ae(()=>import("./deployment_._id.duplicate-BPk2SchT.js"),__vite__mapDeps([105,1,2,102,104,67,23,6,63,62,4,68,15,7,24,21,5])),M7=Be("/deployments/deployment_/$id/duplicate")({component:Re(j7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(ul(e.id)),wrapInSuspense:!0,pendingComponent:Ke}),To={all:()=>["block-schemas"],lists:()=>[...To.all(),"list"],listFilters:()=>[...To.lists(),"filter"],listFilter:e=>[...To.lists(),"filter",e],details:()=>[...To.all(),"detail"],detail:e=>[...To.details(),e]},O7=(e={offset:0})=>be({queryKey:To.listFilter(e),queryFn:async()=>(await(await ne()).POST("/block_schemas/filter",{body:e})).data??[]}),L7=()=>Ae(()=>import("./catalog_._slug_.create-rboQmoyW.js"),__vite__mapDeps([106,1,2,23,6,94,52,61,67,63,62,4,68,15,7,24,5])),I7=Be("/blocks/catalog_/$slug_/create")({component:Re(L7,"component"),loader:async({params:e,context:{queryClient:n}})=>{const r=await n.ensureQueryData(Bw(e.slug));n.ensureQueryData(O7({block_schemas:{block_type_id:{any_:[r.id]},operator:"and_"},offset:0}))},wrapInSuspense:!0,pendingComponent:Ke}),z7=()=>Ae(()=>import("./block_._id.edit-n2jwU5yr.js"),__vite__mapDeps([107,1,2,94,52,61,67,23,6,63,62,4,68,15,7,24,5])),F7=Be("/blocks/block_/$id/edit")({component:Re(z7,"component"),loader:({params:e,context:{queryClient:n}})=>n.ensureQueryData(Uw(e.id)),wrapInSuspense:!0,pendingComponent:Ke}),U7=()=>Ae(()=>import("./automation_._id.edit-BRWAsELa.js"),__vite__mapDeps([108,1,2,74,23,6,24,4,65,73,66,75,3,37,21,5,7])),q7=Be("/automations/automation_/$id/edit")({component:Re(U7,"component"),loader:({context:e,params:n})=>e.queryClient.ensureQueryData(Pw(n.id)),wrapInSuspense:!0,pendingComponent:Ke}),B7=()=>Ae(()=>import("./work-pool_._workPoolName.queue._workQueueName-DzrY1tMq.js"),__vite__mapDeps([109,1,2,78,15,4,23,6,24,66,30,28,5,7])),P7=wt({queueTab:it(["Details","Upcoming Runs","Runs"]).default("Upcoming Runs")}),H7=Be("/work-pools/work-pool_/$workPoolName/queue/$workQueueName")({validateSearch:It(P7),component:Re(B7,"component"),loader:async({params:e,context:{queryClient:n}})=>({queue:await n.ensureQueryData(xj(e.workPoolName,e.workQueueName))}),wrapInSuspense:!0,pendingComponent:Ke}),$7=cj.update({id:"/settings",path:"/settings",getParentRoute:()=>Fe}),Q7=hj.update({id:"/login",path:"/login",getParentRoute:()=>Fe}),V7=Lh.update({id:"/dashboard",path:"/dashboard",getParentRoute:()=>Fe}),G7=c5.update({id:"/",path:"/",getParentRoute:()=>Fe}),Y7=h5.update({id:"/work-pools/",path:"/work-pools/",getParentRoute:()=>Fe}),K7=b5.update({id:"/variables/",path:"/variables/",getParentRoute:()=>Fe}),W7=R5.update({id:"/runs/",path:"/runs/",getParentRoute:()=>Fe}),X7=I5.update({id:"/flows/",path:"/flows/",getParentRoute:()=>Fe}),Z7=V5.update({id:"/events/",path:"/events/",getParentRoute:()=>Fe}),J7=X5.update({id:"/deployments/",path:"/deployments/",getParentRoute:()=>Fe}),eL=n9.update({id:"/concurrency-limits/",path:"/concurrency-limits/",getParentRoute:()=>Fe}),tL=l9.update({id:"/blocks/",path:"/blocks/",getParentRoute:()=>Fe}),nL=h9.update({id:"/automations/",path:"/automations/",getParentRoute:()=>Fe}),aL=b9.update({id:"/artifacts/",path:"/artifacts/",getParentRoute:()=>Fe}),rL=S9.update({id:"/work-pools/create",path:"/work-pools/create",getParentRoute:()=>Fe}),iL=T9.update({id:"/blocks/catalog",path:"/blocks/catalog",getParentRoute:()=>Fe}),oL=N9.update({id:"/automations/create",path:"/automations/create",getParentRoute:()=>Fe}),sL=j9.update({id:"/work-pools/work-pool/$workPoolName",path:"/work-pools/work-pool/$workPoolName",getParentRoute:()=>Fe}),lL=I9.update({id:"/runs/task-run/$id",path:"/runs/task-run/$id",getParentRoute:()=>Fe}),uL=B9.update({id:"/runs/flow-run/$id",path:"/runs/flow-run/$id",getParentRoute:()=>Fe}),cL=Z9.update({id:"/flows/flow/$id",path:"/flows/flow/$id",getParentRoute:()=>Fe}),dL=J9.update({id:"/flow-runs/task-run/$id",path:"/flow-runs/task-run/$id",getParentRoute:()=>Fe}),fL=e7.update({id:"/flow-runs/flow-run/$id",path:"/flow-runs/flow-run/$id",getParentRoute:()=>Fe}),hL=o7.update({id:"/deployments/deployment/$id",path:"/deployments/deployment/$id",getParentRoute:()=>Fe}),mL=u7.update({id:"/concurrency-limits/concurrency-limit/$id",path:"/concurrency-limits/concurrency-limit/$id",getParentRoute:()=>Fe}),pL=d7.update({id:"/blocks/catalog_/$slug",path:"/blocks/catalog/$slug",getParentRoute:()=>Fe}),vL=h7.update({id:"/blocks/block/$id",path:"/blocks/block/$id",getParentRoute:()=>Fe}),gL=p7.update({id:"/automations/automation/$id",path:"/automations/automation/$id",getParentRoute:()=>Fe}),yL=y7.update({id:"/artifacts/key/$key",path:"/artifacts/key/$key",getParentRoute:()=>Fe}),bL=x7.update({id:"/artifacts/artifact/$id",path:"/artifacts/artifact/$id",getParentRoute:()=>Fe}),xL=S7.update({id:"/work-pools/work-pool_/$workPoolName/edit",path:"/work-pools/work-pool/$workPoolName/edit",getParentRoute:()=>Fe}),wL=D7.update({id:"/events/event/$eventDate/$eventId",path:"/events/event/$eventDate/$eventId",getParentRoute:()=>Fe}),SL=N7.update({id:"/deployments/deployment_/$id/run",path:"/deployments/deployment/$id/run",getParentRoute:()=>Fe}),EL=R7.update({id:"/deployments/deployment_/$id/edit",path:"/deployments/deployment/$id/edit",getParentRoute:()=>Fe}),_L=M7.update({id:"/deployments/deployment_/$id/duplicate",path:"/deployments/deployment/$id/duplicate",getParentRoute:()=>Fe}),TL=I7.update({id:"/blocks/catalog_/$slug_/create",path:"/blocks/catalog/$slug/create",getParentRoute:()=>Fe}),DL=F7.update({id:"/blocks/block_/$id/edit",path:"/blocks/block/$id/edit",getParentRoute:()=>Fe}),CL=q7.update({id:"/automations/automation_/$id/edit",path:"/automations/automation/$id/edit",getParentRoute:()=>Fe}),kL=H7.update({id:"/work-pools/work-pool_/$workPoolName/queue/$workQueueName",path:"/work-pools/work-pool/$workPoolName/queue/$workQueueName",getParentRoute:()=>Fe}),NL={IndexRoute:G7,DashboardRoute:V7,LoginRoute:Q7,SettingsRoute:$7,AutomationsCreateRoute:oL,BlocksCatalogRoute:iL,WorkPoolsCreateRoute:rL,ArtifactsIndexRoute:aL,AutomationsIndexRoute:nL,BlocksIndexRoute:tL,ConcurrencyLimitsIndexRoute:eL,DeploymentsIndexRoute:J7,EventsIndexRoute:Z7,FlowsIndexRoute:X7,RunsIndexRoute:W7,VariablesIndexRoute:K7,WorkPoolsIndexRoute:Y7,ArtifactsArtifactIdRoute:bL,ArtifactsKeyKeyRoute:yL,AutomationsAutomationIdRoute:gL,BlocksBlockIdRoute:vL,BlocksCatalogSlugRoute:pL,ConcurrencyLimitsConcurrencyLimitIdRoute:mL,DeploymentsDeploymentIdRoute:hL,FlowRunsFlowRunIdRoute:fL,FlowRunsTaskRunIdRoute:dL,FlowsFlowIdRoute:cL,RunsFlowRunIdRoute:uL,RunsTaskRunIdRoute:lL,WorkPoolsWorkPoolWorkPoolNameRoute:sL,AutomationsAutomationIdEditRoute:CL,BlocksBlockIdEditRoute:DL,BlocksCatalogSlugCreateRoute:TL,DeploymentsDeploymentIdDuplicateRoute:_L,DeploymentsDeploymentIdEditRoute:EL,DeploymentsDeploymentIdRunRoute:SL,EventsEventEventDateEventIdRoute:wL,WorkPoolsWorkPoolWorkPoolNameEditRoute:xL,WorkPoolsWorkPoolWorkPoolNameQueueWorkQueueNameRoute:kL},AL=Fe._addFileChildren(NL)._addFileTypes(),$m=new fE,RL=hE({routeTree:AL,context:{queryClient:$m,auth:void 0},defaultPreload:"intent",defaultPreloadStaleTime:0,defaultPendingMs:400,defaultPendingMinMs:400});function jL(){const e=Z4();return d.jsx(pE,{router:RL,context:{queryClient:$m,auth:e}})}const ML=()=>d.jsxs(mE,{client:$m,children:[d.jsx(X4,{children:d.jsx(J4,{children:d.jsx(jL,{})})}),d.jsx(lT,{})]}),lh=document.getElementById("root");lh&&!lh.innerHTML&&iT.createRoot(lh).render(d.jsx(k.StrictMode,{children:d.jsx(ML,{})}));export{Sm as $,gI as A,Ax as B,Ea as C,q8 as D,Q8 as E,yI as F,JO as G,wm as H,gt as I,bI as J,uM as K,t8 as L,xm as M,zA as N,lM as O,Ke as P,wj as Q,hj as R,RO as S,bm as T,fx as U,FA as V,J8 as W,zj as X,Fj as Y,Uj as Z,LI as _,MO as a,w8 as a$,MI as a0,OI as a1,Gj as a2,Xj as a3,Zj as a4,Jj as a5,CI as a6,DI as a7,TI as a8,b5 as a9,R8 as aA,j8 as aB,NI as aC,ac as aD,R5 as aE,vt as aF,$n as aG,Wr as aH,Dx as aI,vj as aJ,Bo as aK,jh as aL,T5 as aM,x5 as aN,rc as aO,tb as aP,pr as aQ,EI as aR,oI as aS,yj as aT,Tm as aU,sI as aV,I5 as aW,ub as aX,gj as aY,$ as aZ,_m as a_,m5 as aa,Cb as ab,w5 as ac,$O as ad,FI as ae,al as af,QM as ag,VM as ah,GM as ai,YM as aj,KM as ak,WM as al,XM as am,Ou as an,jj as ao,dI as ap,pj as aq,tc as ar,fm as as,Nx as at,Ch as au,W1 as av,G1 as aw,KR as ax,II as ay,A8 as az,jO as b,j9 as b$,ll as b0,VI as b1,B5 as b2,GI as b3,Ow as b4,U5 as b5,q5 as b6,P5 as b7,ke as b8,jx as b9,x9 as bA,HL as bB,xI as bC,U8 as bD,Qj as bE,T9 as bF,_I as bG,sz as bH,N9 as bI,Lw as bJ,we as bK,qN as bL,E3 as bM,UA as bN,m8 as bO,mx as bP,G3 as bQ,eA as bR,Z0 as bS,Fa as bT,Ua as bU,qa as bV,ei as bW,Z1 as bX,C3 as bY,SI as bZ,KN as b_,Mx as ba,$u as bb,Ox as bc,Lx as bd,V5 as be,X5 as bf,mj as bg,gm as bh,XI as bi,WI as bj,Yj as bk,KI as bl,YI as bm,tz as bn,JI as bo,qw as bp,cb as bq,i9 as br,a9 as bs,l9 as bt,u9 as bu,fb as bv,b9 as bw,m9 as bx,yc as by,ej as bz,OO as c,Ex as c$,Cx as c0,jt as c1,WO as c2,ZO as c3,XO as c4,nc as c5,k8 as c6,f8 as c7,s3 as c8,dz as c9,rt as cA,oa as cB,B9 as cC,qo as cD,l8 as cE,kI as cF,XL as cG,ym as cH,$9 as cI,Q9 as cJ,V9 as cK,G9 as cL,K9 as cM,P9 as cN,H9 as cO,Z9 as cP,o8 as cQ,ZL as cR,JL as cS,Cm as cT,km as cU,Nm as cV,_w as cW,eI as cX,WL as cY,c9 as cZ,o7 as c_,$w as ca,bj as cb,cI as cc,I9 as cd,Ae as ce,CN as cf,X1 as cg,rI as ch,UI as ci,qI as cj,BI as ck,HI as cl,$I as cm,PI as cn,QI as co,_5 as cp,ox as cq,iI as cr,tI as cs,ul as ct,ne as cu,kb as cv,zI as cw,nI as cx,$s as cy,Mt as cz,RI as d,AI as d$,aI as d0,J5 as d1,u7 as d2,ez as d3,nz as d4,LN as d5,fz as d6,ZI as d7,Uw as d8,Pw as d9,p9 as dA,x7 as dB,wI as dC,S7 as dD,D7 as dE,Sj as dF,Ej as dG,_j as dH,Tj as dI,N7 as dJ,t7 as dK,R7 as dL,Iw as dM,KL as dN,M7 as dO,I7 as dP,iz as dQ,F7 as dR,uz as dS,q7 as dT,H7 as dU,xj as dV,pn as dW,qA as dX,HA as dY,QL as dZ,VL as d_,hz as da,az as db,PL as dc,lz as dd,oz as de,n7 as df,$L as dg,Bw as dh,O7 as di,rz as dj,AO as dk,r9 as dl,jI as dm,cz as dn,YL as dp,mI as dq,pI as dr,vI as ds,fI as dt,hI as du,d7 as dv,h7 as dw,p7 as dx,y7 as dy,lI as dz,Lu as e,oh as e0,uI as e1,dx as f,Rx as g,kh as h,KO as i,Wb as j,Kb as k,Z4 as l,Ci as m,hc as n,Pa as o,mr as p,ot as q,Q1 as r,jo as s,B8 as t,XR as u,P8 as v,H8 as w,$8 as x,GL as y,mR as z};
28
+ //# sourceMappingURL=index-CPpeVt8m.js.map