@decocms/mesh 2.132.0 → 2.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Dvy3oHwl.js → AlertCircle-DtdVhcv9.js} +1 -1
- package/dist/client/assets/{AlignLeft-C1Pd8crU.js → AlignLeft-CRHzRLnb.js} +1 -1
- package/dist/client/assets/{ArrowDown-B0XF9QfR.js → ArrowDown-CD9f6dVF.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Ddv8Es1G.js → ArrowLeft-Dse_UWo5.js} +1 -1
- package/dist/client/assets/{ArrowUp-CjPyEOxC.js → ArrowUp-C5pU0t20.js} +1 -1
- package/dist/client/assets/{Check-BGWNBpXb.js → Check-llxZXJNk.js} +1 -1
- package/dist/client/assets/{CheckCircle-CDdaecse.js → CheckCircle-naMxBwcc.js} +1 -1
- package/dist/client/assets/{CheckDone01-DgNkGXSd.js → CheckDone01-DArNoCeR.js} +1 -1
- package/dist/client/assets/{CheckVerified02-yC2IepeU.js → CheckVerified02-B5N8FkZi.js} +1 -1
- package/dist/client/assets/{ChevronDown-CxLgy5uI.js → ChevronDown-BPvdqfh0.js} +1 -1
- package/dist/client/assets/ChevronLeft-BmfUl3Br.js +1 -0
- package/dist/client/assets/{ChevronRight-B-dZm0Fo.js → ChevronRight-bI92hTEK.js} +1 -1
- package/dist/client/assets/{Clock-DjTfMWYb.js → Clock-DCqyBdVg.js} +1 -1
- package/dist/client/assets/{Code01-C4dpeKsY.js → Code01-Cw3aSJX_.js} +1 -1
- package/dist/client/assets/{Container-CH2V2ATa.js → Container-BcN3rU1W.js} +1 -1
- package/dist/client/assets/{Copy01-Ba42JLNP.js → Copy01-DOsfcAr7.js} +1 -1
- package/dist/client/assets/{Dataflow03-Dbafm5jn.js → Dataflow03-BzHLq4N3.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-DF0XToJT.js → DotsHorizontal-jg8p8szZ.js} +1 -1
- package/dist/client/assets/{DotsVertical-D-x0DTAA.js → DotsVertical-D7GBR06C.js} +1 -1
- package/dist/client/assets/{Download01-x2RmdAQh.js → Download01-Dqv2OtJR.js} +1 -1
- package/dist/client/assets/{Edit01-NXKv8M2Y.js → Edit01-PGiGF51x.js} +1 -1
- package/dist/client/assets/{Eye-Da9OHWjs.js → Eye-BHQjRrk8.js} +1 -1
- package/dist/client/assets/{File02-BBbAYdh-.js → File02-8H6UbpEV.js} +1 -1
- package/dist/client/assets/{File06-CZSeKcKm.js → File06-C1Sd5E1A.js} +1 -1
- package/dist/client/assets/{FilterLines-CR4t6v_B.js → FilterLines-C4D0sIiB.js} +1 -1
- package/dist/client/assets/{Globe01-sstJp1qH.js → Globe01-DvHitX1A.js} +1 -1
- package/dist/client/assets/{Globe02-DED7nhMo.js → Globe02-8eZbLs7z.js} +1 -1
- package/dist/client/assets/{Grid01-C85povgK.js → Grid01-CfCG1RrY.js} +1 -1
- package/dist/client/assets/{Hash02-B-r__uQj.js → Hash02-B4zt7eqf.js} +1 -1
- package/dist/client/assets/{Home02-P9zxIWnB.js → Home02-BgWCBPhH.js} +1 -1
- package/dist/client/assets/{Image01-CyQ-9pmM.js → Image01-B8svV61f.js} +1 -1
- package/dist/client/assets/{Inbox01-DUxLR6jm.js → Inbox01-DktY8c3P.js} +1 -1
- package/dist/client/assets/{InfoCircle-ORvzz6Jj.js → InfoCircle-DDBpFLdR.js} +1 -1
- package/dist/client/assets/{Key01-B3LfJVTz.js → Key01-eAlJ77G3.js} +1 -1
- package/dist/client/assets/{LayersTwo01-D0hB1mlt.js → LayersTwo01-Cre7WmYe.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CIizJ9p-.js → LayoutLeft-BdPuu6bH.js} +1 -1
- package/dist/client/assets/{LinkExternal01-zIQsCZyp.js → LinkExternal01-1-7TA6Ra.js} +1 -1
- package/dist/client/assets/{List-Dy03iFlP.js → List-uQZNVPQ-.js} +1 -1
- package/dist/client/assets/{Loading01-DvHkBn5K.js → Loading01-DUUFtL7S.js} +1 -1
- package/dist/client/assets/{Lock01-b36hjLYg.js → Lock01-BqRcOfbm.js} +1 -1
- package/dist/client/assets/{Play-B4gSKcOc.js → Play-DTlFqxwD.js} +1 -1
- package/dist/client/assets/{Plus-C48LE9QF.js → Plus-2wrCLrAD.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-B_P3Otqi.js → RefreshCcw01-CmQ_Zyfb.js} +1 -1
- package/dist/client/assets/{Rows03-RYFV31vk.js → Rows03-CeP6X8F6.js} +1 -1
- package/dist/client/assets/{Save01-C9eXS7Z1.js → Save01-Cq59fc-a.js} +1 -1
- package/dist/client/assets/{SearchMd-Bec1mZCp.js → SearchMd-DOdaT51-.js} +1 -1
- package/dist/client/assets/{Settings01-CGjDKLLq.js → Settings01-jEDDrq49.js} +1 -1
- package/dist/client/assets/{Shield01-QPvxKI9B.js → Shield01-_lpY_BlD.js} +1 -1
- package/dist/client/assets/{Terminal-Dg9FTns0.js → Terminal-CZIzfu4H.js} +1 -1
- package/dist/client/assets/{Trash01-DfwWsbuW.js → Trash01-DJpn1VG4.js} +1 -1
- package/dist/client/assets/{Upload01-CBnp-ZgO.js → Upload01-c6QpJwvP.js} +1 -1
- package/dist/client/assets/{Users03-zNQ-U5kI.js → Users03--eiqKjb_.js} +1 -1
- package/dist/client/assets/{X-BaOBrQh9.js → X-BGHsyt4s.js} +1 -1
- package/dist/client/assets/{XCircle-CGBoiIiF.js → XCircle-BJSW1V34.js} +1 -1
- package/dist/client/assets/{XClose-D5oa0b17.js → XClose-CYrOe1GU.js} +1 -1
- package/dist/client/assets/{Zap-B8kjj6jV.js → Zap-Div5wKlF.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-CpRlCZek.js → agent-connections-preview-B33aUr8j.js} +1 -1
- package/dist/client/assets/agent-detail-B1r6DbgP.js +2 -0
- package/dist/client/assets/agents--1wlh1On.js +1 -0
- package/dist/client/assets/{alert-dialog-CHhoNaC0.js → alert-dialog-WtbKGn3h.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bks-N8b9.js → auth-catchall-C-FIrDOU.js} +1 -1
- package/dist/client/assets/{avatar-DX9xarA9.js → avatar-C0Za2Leb.js} +1 -1
- package/dist/client/assets/{badge-CMOYVtO8.js → badge-zns1OAW0.js} +1 -1
- package/dist/client/assets/{binder-CN-yhtfQ.js → binder-C2Kwp5aI.js} +1 -1
- package/dist/client/assets/{breadcrumb-CtNnsyqL.js → breadcrumb-BF7wgZMj.js} +1 -1
- package/dist/client/assets/{card-BECXECFc.js → card-yVoc5Dl_.js} +1 -1
- package/dist/client/assets/{chart-CA07zGfe.js → chart-C09J-0j8.js} +1 -1
- package/dist/client/assets/{checkbox-Bs5NWE_x.js → checkbox-C_yzLnRo.js} +1 -1
- package/dist/client/assets/{circle-alert-CEhC-Q81.js → circle-alert-DEWKfuYJ.js} +1 -1
- package/dist/client/assets/collapsible-e1478K7w.js +23 -0
- package/dist/client/assets/{collection-detail-CNXxywSm.js → collection-detail-12bPsl9i.js} +3 -3
- package/dist/client/assets/{collection-search-aEfiIRVT.js → collection-search-g7bCyEl4.js} +1 -1
- package/dist/client/assets/collection-tab-hxaftEha.js +1 -0
- package/dist/client/assets/{collection-table-wrapper-hM0ppyEG.js → collection-table-wrapper-Bx_0GgHe.js} +1 -1
- package/dist/client/assets/{collection-tabs-Dc6gZtTz.js → collection-tabs-CGvjmn7e.js} +1 -1
- package/dist/client/assets/{command-DI3JwfrE.js → command-DvXRXkaf.js} +1 -1
- package/dist/client/assets/{connect-C0SuJwzK.js → connect-BHcfLUsx.js} +1 -1
- package/dist/client/assets/{connection-card-CzCUOjTN.js → connection-card-Of-LfoL9.js} +1 -1
- package/dist/client/assets/connection-detail-Bfp_CthH.js +1 -0
- package/dist/client/assets/connections-CMRFgF2z.js +1 -0
- package/dist/client/assets/constants-BMZNxJu4.js +1 -0
- package/dist/client/assets/{constants-0JLhMmM7.js → constants-DLWxw8L_.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BRKsH8XB.js → create-organization-dialog-DHmNDQVx.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BUAUU3kY.js → create-project-dialog-BURFxz7l.js} +1 -1
- package/dist/client/assets/{danger--r_qw5of.js → danger-D0vNOgTj.js} +1 -1
- package/dist/client/assets/{danger-zone-fH4LWpAE.js → danger-zone-Dhz8OLxh.js} +1 -1
- package/dist/client/assets/decopilot-events-C1i2IOcF.js +1 -0
- package/dist/client/assets/{dependencies-CfLZZ12D.js → dependencies-DQgcVkpb.js} +1 -1
- package/dist/client/assets/{dialog-CzmRWg_H.js → dialog-B8ODwZHJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-bZQdGgsX.js → dropdown-menu-Bv0kDZGf.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-B44KCK2N.js → dynamic-plugin-layout-CfJ2iWdk.js} +1 -1
- package/dist/client/assets/editable-task-title-BECK0S9m.js +16 -0
- package/dist/client/assets/{empty-state-BuKC-FeY.js → empty-state-CS91-o6R.js} +1 -1
- package/dist/client/assets/{env-vars-editor-BUYd05S1.js → env-vars-editor-BoUKrNdn.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CDK2P3aY.js → extract-connection-data-DPrPXrw7.js} +1 -1
- package/dist/client/assets/{file-browser-B8HL2Mki.js → file-browser-Dyg6fn_p.js} +2 -2
- package/dist/client/assets/{form-EW4LFI0z.js → form-Bqy3P0kv.js} +1 -1
- package/dist/client/assets/{general-B-SJAejg.js → general-CcOfiluy.js} +1 -1
- package/dist/client/assets/{grid-view-B2G72x7D.js → grid-view-uc2-Xd10.js} +1 -1
- package/dist/client/assets/{home-C_Jstend.js → home-DYjBdnSm.js} +1 -1
- package/dist/client/assets/{index-RIE02s6T.js → index-1pfseT2B.js} +1 -1
- package/dist/client/assets/{index-BeKO7nFo.js → index-5XdaBbnC.js} +1 -1
- package/dist/client/assets/{index-hfshaOuF.js → index-B1uFfuid.js} +1 -1
- package/dist/client/assets/{index-gksA6r5d.js → index-BLvVZqmB.js} +1 -1
- package/dist/client/assets/{index-kE57LLiG.js → index-Br7gqIns.js} +22 -22
- package/dist/client/assets/{index-Cp50RRud.js → index-CLZkaGlC.js} +1 -1
- package/dist/client/assets/index-CUEtQJPr.css +1 -0
- package/dist/client/assets/index-CjU9lWJN.js +1 -0
- package/dist/client/assets/{index-CzFqQvXW.js → index-DVHuYwO5.js} +4 -4
- package/dist/client/assets/{index-V5ecgDUm.js → index-tDb6lai2.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B0QSZ6Wg.js → infiniteQueryObserver-BU31NXJd.js} +1 -1
- package/dist/client/assets/{input-Rcf9et7W.js → input-CImrwNsE.js} +1 -1
- package/dist/client/assets/{integration-icon-Cr629JYK.js → integration-icon-CqdgwTQM.js} +1 -1
- package/dist/client/assets/{label-DdGHGWov.js → label-BEcdY3zl.js} +1 -1
- package/dist/client/assets/{layout-CUeJn5m4.js → layout-Cegg55DQ.js} +1 -1
- package/dist/client/assets/{layout-DvurrRZC.js → layout-D1FJR7dQ.js} +1 -1
- package/dist/client/assets/localstorage-keys-B3yhvN27.js +1 -0
- package/dist/client/assets/{login-C70j40x2.js → login-gpMZSjc_.js} +1 -1
- package/dist/client/assets/{markdown-BsZjpnFH.js → markdown-DigmZCi5.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-aRjr0jcc.js → mcp-app-renderer-elbh_bK3.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Dk3osgIf.js → mcp-oauth-BJK3oSr3.js} +1 -1
- package/dist/client/assets/{mcp-server-card-znSfWcaP.js → mcp-server-card-B_3KckAV.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Csm9j29j.js → mcp-server-detail-BGmK7vBO.js} +2 -2
- package/dist/client/assets/{members-WbcVb7yX.js → members-DkvmaHrL.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-ChxkdsCv.js → monitoring-dashboard-edit-Dq449CGn.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-CL8P3Zx7.js → monitoring-dashboard-view-KyEbCseW.js} +2 -2
- package/dist/client/assets/{monitoring-Dth-Uzfq.js → monitoring-mMb4oyh8.js} +2 -2
- package/dist/client/assets/{oauth-callback-CXzK_RYv.js → oauth-callback-BWIw_10O.js} +1 -1
- package/dist/client/assets/page-LuWQuTOB.js +1 -0
- package/dist/client/assets/{page-CCrDZNhS.js → page-MLghIZgZ.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D7gmiZlA.js → plugin-empty-state-BYi0xCDZ.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BIuYztei.js → plugin-empty-state-CfkX75Qn.js} +1 -1
- package/dist/client/assets/{plugin-header-BLBENlfU.js → plugin-header-Bpxodj_N.js} +1 -1
- package/dist/client/assets/{plugin-header-CmlDS_hv.js → plugin-header-C8NyMNoe.js} +1 -1
- package/dist/client/assets/plugins-VAc5tGcP.js +1 -0
- package/dist/client/assets/{popover-C5F2AcFP.js → popover-R_PT2IPW.js} +1 -1
- package/dist/client/assets/{project-app-view-NryMJvXO.js → project-app-view-Bai-Qf0R.js} +1 -1
- package/dist/client/assets/project-layout-daZ99y7q.js +1 -0
- package/dist/client/assets/{project-plugins-QbLHCPXi.js → project-plugins-D9btRO1g.js} +1 -1
- package/dist/client/assets/{projects-list-B_wyuNYf.js → projects-list-DLyGtlCx.js} +1 -1
- package/dist/client/assets/{ranking-layout-CVBOyQIw.js → ranking-layout-Difw19Tu.js} +1 -1
- package/dist/client/assets/{readme-viewer-BmxWIpiS.js → readme-viewer-DMIs62Jq.js} +1 -1
- package/dist/client/assets/{registry-layout-DHUM9TZu.js → registry-layout-DUQv-gnE.js} +1 -1
- package/dist/client/assets/{registry-utils-DRX9Fl5Z.js → registry-utils-BL3Z-ZuV.js} +1 -1
- package/dist/client/assets/{reports-layout-GUNpInzx.js → reports-layout-DOweGRAi.js} +1 -1
- package/dist/client/assets/{reset-password-C_jAWNzd.js → reset-password-gTGJs4eA.js} +1 -1
- package/dist/client/assets/{resizable-CmbMtBt6.js → resizable-C-gCkuLt.js} +1 -1
- package/dist/client/assets/{save-actions-CH-zbfme.js → save-actions-CdZGxDIR.js} +1 -1
- package/dist/client/assets/{scroll-area-B5BKtcc-.js → scroll-area-DsCd8vj6.js} +1 -1
- package/dist/client/assets/{select-CSl7KVC3.js → select-CZ5oa2ZG.js} +1 -1
- package/dist/client/assets/shell-layout-D95AudRc.js +3 -0
- package/dist/client/assets/{sidebar-settings-98pHpdNk.js → sidebar-settings-DoYo5_2f.js} +1 -1
- package/dist/client/assets/{skeleton-BGGjmBE-.js → skeleton-DIOpAjh1.js} +1 -1
- package/dist/client/assets/{spinner-BubUCjpb.js → spinner-B-yGP95y.js} +1 -1
- package/dist/client/assets/{store-invite-BidZUMAQ.js → store-invite-COyr13nI.js} +1 -1
- package/dist/client/assets/{switch-D_s2nP_j.js → switch-C_rwAMG7.js} +1 -1
- package/dist/client/assets/{table-C7IfzCau.js → table-BwN-DdG1.js} +1 -1
- package/dist/client/assets/tabs-CTOkjsDF.js +1 -0
- package/dist/client/assets/tasks-CxbK_rAM.js +1 -0
- package/dist/client/assets/tasks-panel-CI07RnJW.js +1 -0
- package/dist/client/assets/{textarea-CumbsokS.js → textarea-BOlS_fKd.js} +1 -1
- package/dist/client/assets/{time-range-picker-Brh1Ym1N.js → time-range-picker-DWAp9G7R.js} +4 -4
- package/dist/client/assets/{toggle-group-DaSKpJH5.js → toggle-group-CRwxfPk7.js} +1 -1
- package/dist/client/assets/{tools-list-BvNNjQQL.js → tools-list-CQrrEoBF.js} +1 -1
- package/dist/client/assets/{tooltip-BGn6dJhi.js → tooltip-BsUirxUt.js} +1 -1
- package/dist/client/assets/{topbar-portal-mNbAP1zZ.js → topbar-portal-Cy4hr4gX.js} +1 -1
- package/dist/client/assets/{types-CnosXlf3.js → types-gEqZqH3b.js} +1 -1
- package/dist/client/assets/{use-binding-Ctbwf5zu.js → use-binding-Dx_NAnJa.js} +1 -1
- package/dist/client/assets/{use-connection-CmCfM9T5.js → use-connection-CwB1S0Lk.js} +1 -1
- package/dist/client/assets/{use-copy-Dn5NzC6Z.js → use-copy-uCRP4yn6.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-b6Af6scy.js → use-create-virtual-mcp-Bm7L9HAR.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-D4coW5d-.js → use-install-from-registry-CMYlie1K.js} +1 -1
- package/dist/client/assets/use-list-state-EN77XpOY.js +1 -0
- package/dist/client/assets/{use-llm-CPv795TN.js → use-llm-C5Q0H0cZ.js} +1 -1
- package/dist/client/assets/{use-mcp-resources--6yZ25c2.js → use-mcp-resources-kkSzYGiM.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BTHDM3P3.js → use-mcp-tools-CT-LTM8z.js} +1 -1
- package/dist/client/assets/{use-members-Dzw-FOpA.js → use-members-CYCHCBAZ.js} +1 -1
- package/dist/client/assets/{use-mobile-DIBT-lEk.js → use-mobile-Bot_hVI8.js} +1 -1
- package/dist/client/assets/{use-project-Bd8syAM2.js → use-project-C5wS8512.js} +1 -1
- package/dist/client/assets/{use-settings-modal-D-rqbyuf.js → use-settings-modal-TyiexX8v.js} +1 -1
- package/dist/client/assets/{use-view-mode-k6uWDVq8.js → use-view-mode-CS5zZIj8.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CaM9kbfY.js → use-virtual-mcp-CGnbrFrJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CutnJ4kj.js +1 -0
- package/dist/client/assets/{useMutation-DsQcwaJP.js → useMutation-BskhtN65.js} +1 -1
- package/dist/client/assets/useQuery-CxvwMb--.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DrLfXfJc.js +1 -0
- package/dist/client/assets/user-BRVh4xuS.js +1 -0
- package/dist/client/assets/workflow-D7s-e1ZH.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +2 -1
- package/dist/server/server.js +2 -1
- package/package.json +1 -1
- package/dist/client/assets/AlertOctagon-Y8Xx5Uc4.js +0 -1
- package/dist/client/assets/agent-detail-ge8lRsMy.js +0 -2
- package/dist/client/assets/agents-CYp6eaDL.js +0 -1
- package/dist/client/assets/collapsible-KhZqz8s6.js +0 -1
- package/dist/client/assets/collection-tab-ByOYG4eu.js +0 -1
- package/dist/client/assets/connection-detail-FUvYBL_f.js +0 -1
- package/dist/client/assets/connections-CZWiV45b.js +0 -1
- package/dist/client/assets/constants-BnCnMsvC.js +0 -1
- package/dist/client/assets/context-CnW_lI9R.js +0 -23
- package/dist/client/assets/decopilot-events-Brt4gAR6.js +0 -1
- package/dist/client/assets/editable-thread-title-BT5MJN2M.js +0 -16
- package/dist/client/assets/index-Bl1kPuE1.css +0 -1
- package/dist/client/assets/index-CLgM5v39.js +0 -1
- package/dist/client/assets/localstorage-keys-DtK7peUq.js +0 -1
- package/dist/client/assets/page-JQWUx5cS.js +0 -1
- package/dist/client/assets/plugins-kPtsND7u.js +0 -1
- package/dist/client/assets/project-layout-CDz2d0hE.js +0 -1
- package/dist/client/assets/shell-layout-DH6hyOML.js +0 -3
- package/dist/client/assets/tabs-BzChyqs4.js +0 -1
- package/dist/client/assets/tasks-fA5J94Ed.js +0 -1
- package/dist/client/assets/use-list-state-pp-Ywt5d.js +0 -1
- package/dist/client/assets/use-mcp-prompts-Bvv0Gku4.js +0 -1
- package/dist/client/assets/use-preferences-fTjyFgCz.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BRjF-D1B.js +0 -1
- package/dist/client/assets/useQuery-BE7O7fKt.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BSW1dpRq.js +0 -1
- package/dist/client/assets/workflow-BfURwr1_.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ranking-layout-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ranking-layout-Difw19Tu.js","assets/binder-C2Kwp5aI.js","assets/useQuery-CxvwMb--.js","assets/use-connection-CwB1S0Lk.js","assets/useMutation-BskhtN65.js","assets/constants-DLWxw8L_.js","assets/topbar-portal-Cy4hr4gX.js","assets/Loading01-DUUFtL7S.js","assets/Settings01-jEDDrq49.js","assets/dialog-B8ODwZHJ.js","assets/X-BGHsyt4s.js","assets/dropdown-menu-Bv0kDZGf.js","assets/Check-llxZXJNk.js","assets/ChevronRight-bI92hTEK.js","assets/input-CImrwNsE.js","assets/switch-C_rwAMG7.js","assets/DotsVertical-D7GBR06C.js","assets/Plus-2wrCLrAD.js","assets/SearchMd-DOdaT51-.js","assets/AlertCircle-DtdVhcv9.js","assets/ArrowLeft-Dse_UWo5.js","assets/Clock-DCqyBdVg.js","assets/table-BwN-DdG1.js","assets/markdown-DigmZCi5.js","assets/ArrowDown-CD9f6dVF.js","assets/ArrowUp-C5pU0t20.js","assets/CheckVerified02-B5N8FkZi.js","assets/File02-8H6UbpEV.js","assets/Hash02-B4zt7eqf.js","assets/Rows03-CeP6X8F6.js","assets/CheckCircle-naMxBwcc.js","assets/InfoCircle-DDBpFLdR.js","assets/XCircle-BJSW1V34.js","assets/ChevronDown-BPvdqfh0.js","assets/file-browser-Dyg6fn_p.js","assets/useInfiniteQuery-CutnJ4kj.js","assets/infiniteQueryObserver-BU31NXJd.js","assets/checkbox-C_yzLnRo.js","assets/Download01-Dqv2OtJR.js","assets/Grid01-CfCG1RrY.js","assets/Home02-BgWCBPhH.js","assets/List-uQZNVPQ-.js","assets/Trash01-DJpn1VG4.js","assets/Upload01-c6QpJwvP.js","assets/plugin-header-C8NyMNoe.js","assets/registry-layout-DUQv-gnE.js","assets/Container-BcN3rU1W.js","assets/badge-zns1OAW0.js","assets/toggle-group-CRwxfPk7.js","assets/use-view-mode-CS5zZIj8.js","assets/use-mobile-Bot_hVI8.js","assets/FilterLines-C4D0sIiB.js","assets/Globe01-DvHitX1A.js","assets/alert-dialog-WtbKGn3h.js","assets/card-yVoc5Dl_.js","assets/label-BEcdY3zl.js","assets/select-CZ5oa2ZG.js","assets/index-BLvVZqmB.js","assets/textarea-BOlS_fKd.js","assets/use-copy-uCRP4yn6.js","assets/RefreshCcw01-CmQ_Zyfb.js","assets/Eye-BHQjRrk8.js","assets/LinkExternal01-1-7TA6Ra.js","assets/popover-R_PT2IPW.js","assets/Copy01-DOsfcAr7.js","assets/Save01-Cq59fc-a.js","assets/Key01-eAlJ77G3.js","assets/tooltip-BsUirxUt.js","assets/mcp-oauth-BJK3oSr3.js","assets/Play-DTlFqxwD.js","assets/reports-layout-DOweGRAi.js","assets/CheckDone01-DArNoCeR.js","assets/Inbox01-DktY8c3P.js","assets/plugin-header-Bpxodj_N.js","assets/Dataflow03-BzHLq4N3.js","assets/plugin-empty-state-BYi0xCDZ.js","assets/login-gpMZSjc_.js","assets/reset-password-gTGJs4eA.js","assets/connect-BHcfLUsx.js","assets/circle-alert-DEWKfuYJ.js","assets/oauth-callback-BWIw_10O.js","assets/shell-layout-D95AudRc.js","assets/index-Br7gqIns.js","assets/collapsible-e1478K7w.js","assets/use-virtual-mcp-CGnbrFrJ.js","assets/decopilot-events-C1i2IOcF.js","assets/use-llm-C5Q0H0cZ.js","assets/use-binding-Dx_NAnJa.js","assets/localstorage-keys-B3yhvN27.js","assets/tabs-CTOkjsDF.js","assets/skeleton-DIOpAjh1.js","assets/AlignLeft-CRHzRLnb.js","assets/Image01-B8svV61f.js","assets/useSuspenseInfiniteQuery-DrLfXfJc.js","assets/spinner-B-yGP95y.js","assets/form-Bqy3P0kv.js","assets/usage-B8eRkRZY.js","assets/Edit01-PGiGF51x.js","assets/Users03--eiqKjb_.js","assets/Code01-Cw3aSJX_.js","assets/integration-icon-CqdgwTQM.js","assets/use-create-virtual-mcp-Bm7L9HAR.js","assets/use-mcp-resources-kkSzYGiM.js","assets/marked.esm-BaswSlok.js","assets/mcp-app-renderer-elbh_bK3.js","assets/types-gEqZqH3b.js","assets/Globe02-8eZbLs7z.js","assets/LayersTwo01-Cre7WmYe.js","assets/XClose-CYrOe1GU.js","assets/collection-search-g7bCyEl4.js","assets/generate-id-Dyweu44Y.js","assets/index-5XdaBbnC.js","assets/ChevronLeft-BmfUl3Br.js","assets/editable-task-title-BECK0S9m.js","assets/tasks-panel-CI07RnJW.js","assets/user-BRVh4xuS.js","assets/avatar-C0Za2Leb.js","assets/format-time-CMKyl-GC.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/create-project-dialog-BURFxz7l.js","assets/use-settings-modal-TyiexX8v.js","assets/LayoutLeft-BdPuu6bH.js","assets/use-project-C5wS8512.js","assets/create-organization-dialog-DHmNDQVx.js","assets/File06-C1Sd5E1A.js","assets/Shield01-_lpY_BlD.js","assets/use-mcp-tools-CT-LTM8z.js","assets/resizable-C-gCkuLt.js","assets/home-DYjBdnSm.js","assets/project-layout-daZ99y7q.js","assets/Zap-Div5wKlF.js","assets/project-plugins-D9btRO1g.js","assets/use-install-from-registry-CMYlie1K.js","assets/extract-connection-data-DPrPXrw7.js","assets/constants-BMZNxJu4.js","assets/github-icon-Dp3wHhYE.js","assets/registry-utils-BL3Z-ZuV.js","assets/chart-C09J-0j8.js","assets/index-B1uFfuid.js","assets/use-members-CYCHCBAZ.js","assets/page-LuWQuTOB.js","assets/tasks-CxbK_rAM.js","assets/breadcrumb-BF7wgZMj.js","assets/projects-list-DLyGtlCx.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/layout-Cegg55DQ.js","assets/general-CcOfiluy.js","assets/danger-zone-Dhz8OLxh.js","assets/dependencies-DQgcVkpb.js","assets/command-DvXRXkaf.js","assets/index-CLZkaGlC.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/sidebar-settings-DoYo5_2f.js","assets/plugins-VAc5tGcP.js","assets/danger-D0vNOgTj.js","assets/members-DkvmaHrL.js","assets/collection-table-wrapper-Bx_0GgHe.js","assets/DotsHorizontal-jg8p8szZ.js","assets/Lock01-BqRcOfbm.js","assets/connections-CMRFgF2z.js","assets/connection-card-Of-LfoL9.js","assets/use-list-state-EN77XpOY.js","assets/Terminal-CZIzfu4H.js","assets/env-vars-editor-BoUKrNdn.js","assets/connection-detail-Bfp_CthH.js","assets/save-actions-CdZGxDIR.js","assets/index-tDb6lai2.js","assets/index-1pfseT2B.js","assets/collection-tabs-CGvjmn7e.js","assets/layout-D1FJR7dQ.js","assets/collection-tab-hxaftEha.js","assets/empty-state-CS91-o6R.js","assets/readme-viewer-DMIs62Jq.js","assets/readme-viewer-DWnTz46N.css","assets/tools-list-CQrrEoBF.js","assets/collection-detail-12bPsl9i.js","assets/scroll-area-DsCd8vj6.js","assets/monitoring-mMb4oyh8.js","assets/time-range-picker-DWAp9G7R.js","assets/monitoring-dashboard-view-KyEbCseW.js","assets/monitoring-dashboard-edit-Dq449CGn.js","assets/page-MLghIZgZ.js","assets/slugify-CEUa2lfQ.js","assets/mcp-server-card-B_3KckAV.js","assets/mcp-server-detail-BGmK7vBO.js","assets/agents--1wlh1On.js","assets/agent-connections-preview-B33aUr8j.js","assets/agent-detail-B1r6DbgP.js","assets/project-app-view-Bai-Qf0R.js","assets/workflow-D7s-e1ZH.js","assets/dynamic-plugin-layout-CfJ2iWdk.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function F5(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();const B5="modulepreload",q5=function(e){return"/"+e},GR={},dt=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");a=c(n.map(f=>{if(f=q5(f),f in GR)return;GR[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":B5,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((y,b)=>{g.addEventListener("load",y),g.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${f}`)))})}))}function i(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};var Poe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _y={exports:{}},gu={};var ZR;function H5(){if(ZR)return gu;ZR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:i}}return gu.Fragment=t,gu.jsx=n,gu.jsxs=n,gu}var KR;function G5(){return KR||(KR=1,_y.exports=H5()),_y.exports}var R=G5(),by={exports:{}},vu={},Sy={exports:{}},wy={};var WR;function Z5(){return WR||(WR=1,(function(e){function t(F,J){var ae=F.length;F.push(J);e:for(;0<ae;){var fe=ae-1>>>1,K=F[fe];if(0<a(K,J))F[fe]=J,F[ae]=K,ae=fe;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var J=F[0],ae=F.pop();if(ae!==J){F[0]=ae;e:for(var fe=0,K=F.length,P=K>>>1;fe<P;){var q=2*(fe+1)-1,B=F[q],L=q+1,$=F[L];if(0>a(B,ae))L<K&&0>a($,B)?(F[fe]=$,F[L]=ae,fe=L):(F[fe]=B,F[q]=ae,fe=q);else if(L<K&&0>a($,ae))F[fe]=$,F[L]=ae,fe=L;else break e}}return J}function a(F,J){var ae=F.sortIndex-J.sortIndex;return ae!==0?ae:F.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],m=1,p=null,g=3,y=!1,b=!1,w=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(F){for(var J=n(f);J!==null;){if(J.callback===null)r(f);else if(J.startTime<=F)r(f),J.sortIndex=J.expirationTime,t(d,J);else break;J=n(f)}}function O(F){if(w=!1,C(F),!b)if(n(d)!==null)b=!0,I||(I=!0,Z());else{var J=n(f);J!==null&&ie(O,J.startTime-F)}}var I=!1,M=-1,D=5,z=-1;function Q(){return S?!0:!(e.unstable_now()-z<D)}function V(){if(S=!1,I){var F=e.unstable_now();z=F;var J=!0;try{e:{b=!1,w&&(w=!1,E(M),M=-1),y=!0;var ae=g;try{t:{for(C(F),p=n(d);p!==null&&!(p.expirationTime>F&&Q());){var fe=p.callback;if(typeof fe=="function"){p.callback=null,g=p.priorityLevel;var K=fe(p.expirationTime<=F);if(F=e.unstable_now(),typeof K=="function"){p.callback=K,C(F),J=!0;break t}p===n(d)&&r(d),C(F)}else r(d);p=n(d)}if(p!==null)J=!0;else{var P=n(f);P!==null&&ie(O,P.startTime-F),J=!1}}break e}finally{p=null,g=ae,y=!1}J=void 0}}finally{J?Z():I=!1}}}var Z;if(typeof T=="function")Z=function(){T(V)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,ee=U.port2;U.port1.onmessage=V,Z=function(){ee.postMessage(null)}}else Z=function(){x(V,0)};function ie(F,J){M=x(function(){F(e.unstable_now())},J)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(F){switch(g){case 1:case 2:case 3:var J=3;break;default:J=g}var ae=g;g=J;try{return F()}finally{g=ae}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(F,J){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ae=g;g=F;try{return J()}finally{g=ae}},e.unstable_scheduleCallback=function(F,J,ae){var fe=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?fe+ae:fe):ae=fe,F){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ae+K,F={id:m++,callback:J,priorityLevel:F,startTime:ae,expirationTime:K,sortIndex:-1},ae>fe?(F.sortIndex=ae,t(f,F),n(d)===null&&F===n(f)&&(w?(E(M),M=-1):w=!0,ie(O,ae-fe))):(F.sortIndex=K,t(d,F),b||y||(b=!0,I||(I=!0,Z()))),F},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(F){var J=g;return function(){var ae=g;g=J;try{return F.apply(this,arguments)}finally{g=ae}}}})(wy)),wy}var YR;function K5(){return YR||(YR=1,Sy.exports=Z5()),Sy.exports}var Ey={exports:{}},Je={};var QR;function W5(){if(QR)return Je;QR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function y(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function x(P,q,B){this.props=P,this.context=q,this.refs=S,this.updater=B||b}x.prototype.isReactComponent={},x.prototype.setState=function(P,q){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,q,"setState")},x.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function E(){}E.prototype=x.prototype;function T(P,q,B){this.props=P,this.context=q,this.refs=S,this.updater=B||b}var C=T.prototype=new E;C.constructor=T,w(C,x.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function I(){}var M={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function z(P,q,B){var L=B.ref;return{$$typeof:e,type:P,key:q,ref:L!==void 0?L:null,props:B}}function Q(P,q){return z(P.type,q,P.props)}function V(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function Z(P){var q={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(B){return q[B]})}var U=/\/+/g;function ee(P,q){return typeof P=="object"&&P!==null&&P.key!=null?Z(""+P.key):q.toString(36)}function ie(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(I,I):(P.status="pending",P.then(function(q){P.status==="pending"&&(P.status="fulfilled",P.value=q)},function(q){P.status==="pending"&&(P.status="rejected",P.reason=q)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function F(P,q,B,L,$){var X=typeof P;(X==="undefined"||X==="boolean")&&(P=null);var ge=!1;if(P===null)ge=!0;else switch(X){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(P.$$typeof){case e:case t:ge=!0;break;case m:return ge=P._init,F(ge(P._payload),q,B,L,$)}}if(ge)return $=$(P),ge=L===""?"."+ee(P,0):L,O($)?(B="",ge!=null&&(B=ge.replace(U,"$&/")+"/"),F($,q,B,"",function(Ne){return Ne})):$!=null&&(V($)&&($=Q($,B+($.key==null||P&&P.key===$.key?"":(""+$.key).replace(U,"$&/")+"/")+ge)),q.push($)),1;ge=0;var _e=L===""?".":L+":";if(O(P))for(var Ie=0;Ie<P.length;Ie++)L=P[Ie],X=_e+ee(L,Ie),ge+=F(L,q,B,X,$);else if(Ie=y(P),typeof Ie=="function")for(P=Ie.call(P),Ie=0;!(L=P.next()).done;)L=L.value,X=_e+ee(L,Ie++),ge+=F(L,q,B,X,$);else if(X==="object"){if(typeof P.then=="function")return F(ie(P),q,B,L,$);throw q=String(P),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ge}function J(P,q,B){if(P==null)return P;var L=[],$=0;return F(P,L,"","",function(X){return q.call(B,X,$++)}),L}function ae(P){if(P._status===-1){var q=P._result;q=q(),q.then(function(B){(P._status===0||P._status===-1)&&(P._status=1,P._result=B)},function(B){(P._status===0||P._status===-1)&&(P._status=2,P._result=B)}),P._status===-1&&(P._status=0,P._result=q)}if(P._status===1)return P._result.default;throw P._result}var fe=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},K={map:J,forEach:function(P,q,B){J(P,function(){q.apply(this,arguments)},B)},count:function(P){var q=0;return J(P,function(){q++}),q},toArray:function(P){return J(P,function(q){return q})||[]},only:function(P){if(!V(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return Je.Activity=p,Je.Children=K,Je.Component=x,Je.Fragment=n,Je.Profiler=a,Je.PureComponent=T,Je.StrictMode=r,Je.Suspense=d,Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Je.__COMPILER_RUNTIME={__proto__:null,c:function(P){return M.H.useMemoCache(P)}},Je.cache=function(P){return function(){return P.apply(null,arguments)}},Je.cacheSignal=function(){return null},Je.cloneElement=function(P,q,B){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var L=w({},P.props),$=P.key;if(q!=null)for(X in q.key!==void 0&&($=""+q.key),q)!D.call(q,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&q.ref===void 0||(L[X]=q[X]);var X=arguments.length-2;if(X===1)L.children=B;else if(1<X){for(var ge=Array(X),_e=0;_e<X;_e++)ge[_e]=arguments[_e+2];L.children=ge}return z(P.type,$,L)},Je.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:i,_context:P},P},Je.createElement=function(P,q,B){var L,$={},X=null;if(q!=null)for(L in q.key!==void 0&&(X=""+q.key),q)D.call(q,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&($[L]=q[L]);var ge=arguments.length-2;if(ge===1)$.children=B;else if(1<ge){for(var _e=Array(ge),Ie=0;Ie<ge;Ie++)_e[Ie]=arguments[Ie+2];$.children=_e}if(P&&P.defaultProps)for(L in ge=P.defaultProps,ge)$[L]===void 0&&($[L]=ge[L]);return z(P,X,$)},Je.createRef=function(){return{current:null}},Je.forwardRef=function(P){return{$$typeof:u,render:P}},Je.isValidElement=V,Je.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ae}},Je.memo=function(P,q){return{$$typeof:f,type:P,compare:q===void 0?null:q}},Je.startTransition=function(P){var q=M.T,B={};M.T=B;try{var L=P(),$=M.S;$!==null&&$(B,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(I,fe)}catch(X){fe(X)}finally{q!==null&&B.types!==null&&(q.types=B.types),M.T=q}},Je.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Je.use=function(P){return M.H.use(P)},Je.useActionState=function(P,q,B){return M.H.useActionState(P,q,B)},Je.useCallback=function(P,q){return M.H.useCallback(P,q)},Je.useContext=function(P){return M.H.useContext(P)},Je.useDebugValue=function(){},Je.useDeferredValue=function(P,q){return M.H.useDeferredValue(P,q)},Je.useEffect=function(P,q){return M.H.useEffect(P,q)},Je.useEffectEvent=function(P){return M.H.useEffectEvent(P)},Je.useId=function(){return M.H.useId()},Je.useImperativeHandle=function(P,q,B){return M.H.useImperativeHandle(P,q,B)},Je.useInsertionEffect=function(P,q){return M.H.useInsertionEffect(P,q)},Je.useLayoutEffect=function(P,q){return M.H.useLayoutEffect(P,q)},Je.useMemo=function(P,q){return M.H.useMemo(P,q)},Je.useOptimistic=function(P,q){return M.H.useOptimistic(P,q)},Je.useReducer=function(P,q,B){return M.H.useReducer(P,q,B)},Je.useRef=function(P){return M.H.useRef(P)},Je.useState=function(P){return M.H.useState(P)},Je.useSyncExternalStore=function(P,q,B){return M.H.useSyncExternalStore(P,q,B)},Je.useTransition=function(){return M.H.useTransition()},Je.version="19.2.4",Je}var XR;function Us(){return XR||(XR=1,Ey.exports=W5()),Ey.exports}var Ry={exports:{}},tr={};var JR;function Y5(){if(JR)return tr;JR=1;var e=Us();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return tr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,tr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(d,f,null,m)},tr.flushSync=function(d){var f=c.T,m=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=f,r.p=m,r.d.f()}},tr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},tr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},tr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:y}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},tr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},tr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},tr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},tr.requestFormReset=function(d){r.d.r(d)},tr.unstable_batchedUpdates=function(d,f){return d(f)},tr.useFormState=function(d,f,m){return c.H.useFormState(d,f,m)},tr.useFormStatus=function(){return c.H.useHostTransitionStatus()},tr.version="19.2.4",tr}var ex;function BC(){if(ex)return Ry.exports;ex=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ry.exports=Y5(),Ry.exports}var tx;function Q5(){if(tx)return vu;tx=1;var e=K5(),t=Us(),n=BC();function r(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function i(o){var s=o,l=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(l=s.return),o=s.return;while(o)}return s.tag===3?l:null}function c(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function d(o){if(i(o)!==o)throw Error(r(188))}function f(o){var s=o.alternate;if(!s){if(s=i(o),s===null)throw Error(r(188));return s!==o?null:o}for(var l=o,h=s;;){var v=l.return;if(v===null)break;var _=v.alternate;if(_===null){if(h=v.return,h!==null){l=h;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===l)return d(v),o;if(_===h)return d(v),s;_=_.sibling}throw Error(r(188))}if(l.return!==h.return)l=v,h=_;else{for(var N=!1,j=v.child;j;){if(j===l){N=!0,l=v,h=_;break}if(j===h){N=!0,h=v,l=_;break}j=j.sibling}if(!N){for(j=_.child;j;){if(j===l){N=!0,l=_,h=v;break}if(j===h){N=!0,h=_,l=v;break}j=j.sibling}if(!N)throw Error(r(189))}}if(l.alternate!==h)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?o:s}function m(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=m(o),s!==null)return s;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function Z(o){return o===null||typeof o!="object"?null:(o=V&&o[V]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function ee(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case x:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case I:return"SuspenseList";case z:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case T:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return s=o.displayName||null,s!==null?s:ee(o.type)||"Memo";case D:s=o._payload,o=o._init;try{return ee(o(s))}catch{}}return null}var ie=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},fe=[],K=-1;function P(o){return{current:o}}function q(o){0>K||(o.current=fe[K],fe[K]=null,K--)}function B(o,s){K++,fe[K]=o.current,o.current=s}var L=P(null),$=P(null),X=P(null),ge=P(null);function _e(o,s){switch(B(X,s),B($,o),B(L,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?mR(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=mR(s),o=gR(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}q(L),B(L,o)}function Ie(){q(L),q($),q(X)}function Ne(o){o.memoizedState!==null&&B(ge,o);var s=L.current,l=gR(s,o.type);s!==l&&(B($,o),B(L,l))}function H(o){$.current===o&&(q(L),q($)),ge.current===o&&(q(ge),fu._currentValue=ae)}var re,be;function pe(o){if(re===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);re=s&&s[1]||"",be=-1<l.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+re+o+be}var ce=!1;function Ce(o,s){if(!o||ce)return"";ce=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){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(ve){var he=ve}Reflect.construct(o,[],Te)}else{try{Te.call()}catch(ve){he=ve}o.call(Te.prototype)}}else{try{throw Error()}catch(ve){he=ve}(Te=o())&&typeof Te.catch=="function"&&Te.catch(function(){})}}catch(ve){if(ve&&he&&typeof ve.stack=="string")return[ve.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=h.DetermineComponentFrameRoot(),N=_[0],j=_[1];if(N&&j){var W=N.split(`
|
|
@@ -7,7 +7,7 @@ function F5(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
7
7
|
`+W[h].replace(" at new "," at ");return o.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",o.displayName)),we}while(1<=h&&0<=v);break}}}finally{ce=!1,Error.prepareStackTrace=l}return(l=o?o.displayName||o.name:"")?pe(l):""}function $e(o,s){switch(o.tag){case 26:case 27:case 5:return pe(o.type);case 16:return pe("Lazy");case 13:return o.child!==s&&s!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return Ce(o.type,!1);case 11:return Ce(o.type.render,!1);case 1:return Ce(o.type,!0);case 31:return pe("Activity");default:return""}}function Ye(o){try{var s="",l=null;do s+=$e(o,l),l=o,o=o.return;while(o);return s}catch(h){return`
|
|
8
8
|
Error generating stack: `+h.message+`
|
|
9
9
|
`+h.stack}}var Ge=Object.prototype.hasOwnProperty,Xe=e.unstable_scheduleCallback,G=e.unstable_cancelCallback,ne=e.unstable_shouldYield,oe=e.unstable_requestPaint,Ee=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,xe=e.unstable_ImmediatePriority,Me=e.unstable_UserBlockingPriority,ot=e.unstable_NormalPriority,it=e.unstable_LowPriority,Pt=e.unstable_IdlePriority,hr=e.log,Rn=e.unstable_setDisableYieldValue,Un=null,en=null;function zn(o){if(typeof hr=="function"&&Rn(o),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Un,o)}catch{}}var kn=Math.clz32?Math.clz32:kr,Bi=Math.log,Gs=Math.LN2;function kr(o){return o>>>=0,o===0?32:31-(Bi(o)/Gs|0)|0}var qi=256,Hi=262144,Zs=4194304;function Fo(o){var s=o&42;if(s!==0)return s;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Qe(o,s,l){var h=o.pendingLanes;if(h===0)return 0;var v=0,_=o.suspendedLanes,N=o.pingedLanes;o=o.warmLanes;var j=h&134217727;return j!==0?(h=j&~_,h!==0?v=Fo(h):(N&=j,N!==0?v=Fo(N):l||(l=j&~o,l!==0&&(v=Fo(l))))):(j=h&~_,j!==0?v=Fo(j):N!==0?v=Fo(N):l||(l=h&~o,l!==0&&(v=Fo(l)))),v===0?0:s!==0&&s!==v&&(s&_)===0&&(_=v&-v,l=s&-s,_>=l||_===32&&(l&4194048)!==0)?s:v}function Wt(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function Nn(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 er(){var o=Zs;return Zs<<=1,(Zs&62914560)===0&&(Zs=4194304),o}function Fa(o){for(var s=[],l=0;31>l;l++)s.push(o);return s}function tn(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function pr(o,s,l,h,v,_){var N=o.pendingLanes;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=l,o.entangledLanes&=l,o.errorRecoveryDisabledLanes&=l,o.shellSuspendCounter=0;var j=o.entanglements,W=o.expirationTimes,de=o.hiddenUpdates;for(l=N&~l;0<l;){var we=31-kn(l),Te=1<<we;j[we]=0,W[we]=-1;var he=de[we];if(he!==null)for(de[we]=null,we=0;we<he.length;we++){var ve=he[we];ve!==null&&(ve.lane&=-536870913)}l&=~Te}h!==0&&Ks(o,h,0),_!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=_&~(N&~s))}function Ks(o,s,l){o.pendingLanes|=s,o.suspendedLanes&=~s;var h=31-kn(s);o.entangledLanes|=s,o.entanglements[h]=o.entanglements[h]|1073741824|l&261930}function mr(o,s){var l=o.entangledLanes|=s;for(o=o.entanglements;l;){var h=31-kn(l),v=1<<h;v&s|o[h]&s&&(o[h]|=s),l&=~v}}function gr(o,s){var l=s&-s;return l=(l&42)!==0?1:Gi(l),(l&(o.suspendedLanes|s))!==0?0:l}function Gi(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function So(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function lg(){var o=J.p;return o!==0?o:(o=window.event,o===void 0?32:UR(o.type))}function tS(o,s){var l=J.p;try{return J.p=o,s()}finally{J.p=l}}var Ba=Math.random().toString(36).slice(2),Vn="__reactFiber$"+Ba,vr="__reactProps$"+Ba,Zi="__reactContainer$"+Ba,ug="__reactEvents$"+Ba,kP="__reactListeners$"+Ba,NP="__reactHandles$"+Ba,nS="__reactResources$"+Ba,Ol="__reactMarker$"+Ba;function dg(o){delete o[Vn],delete o[vr],delete o[ug],delete o[kP],delete o[NP]}function Ki(o){var s=o[Vn];if(s)return s;for(var l=o.parentNode;l;){if(s=l[Zi]||l[Vn]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(o=ER(o);o!==null;){if(l=o[Vn])return l;o=ER(o)}return s}o=l,l=o.parentNode}return null}function Wi(o){if(o=o[Vn]||o[Zi]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function Cl(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Yi(o){var s=o[nS];return s||(s=o[nS]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Mn(o){o[Ol]=!0}var rS=new Set,oS={};function Ws(o,s){Qi(o,s),Qi(o+"Capture",s)}function Qi(o,s){for(oS[o]=s,o=0;o<s.length;o++)rS.add(s[o])}var MP=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]*$"),aS={},sS={};function PP(o){return Ge.call(sS,o)?!0:Ge.call(aS,o)?!1:MP.test(o)?sS[o]=!0:(aS[o]=!0,!1)}function Ld(o,s,l){if(PP(s))if(l===null)o.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+l)}}function jd(o,s,l){if(l===null)o.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+l)}}function ca(o,s,l,h){if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(s,l,""+h)}}function Qr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function iS(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function DP(o,s,l){var h=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,_=h.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return v.call(this)},set:function(N){l=""+N,_.call(this,N)}}),Object.defineProperty(o,s,{enumerable:h.enumerable}),{getValue:function(){return l},setValue:function(N){l=""+N},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function fg(o){if(!o._valueTracker){var s=iS(o)?"checked":"value";o._valueTracker=DP(o,s,""+o[s])}}function cS(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var l=s.getValue(),h="";return o&&(h=iS(o)?o.checked?"true":"false":o.value),o=h,o!==l?(s.setValue(o),!0):!1}function $d(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var LP=/[\n"\\]/g;function Xr(o){return o.replace(LP,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function hg(o,s,l,h,v,_,N,j){o.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?o.type=N:o.removeAttribute("type"),s!=null?N==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Qr(s)):o.value!==""+Qr(s)&&(o.value=""+Qr(s)):N!=="submit"&&N!=="reset"||o.removeAttribute("value"),s!=null?pg(o,N,Qr(s)):l!=null?pg(o,N,Qr(l)):h!=null&&o.removeAttribute("value"),v==null&&_!=null&&(o.defaultChecked=!!_),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?o.name=""+Qr(j):o.removeAttribute("name")}function lS(o,s,l,h,v,_,N,j){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(o.type=_),s!=null||l!=null){if(!(_!=="submit"&&_!=="reset"||s!=null)){fg(o);return}l=l!=null?""+Qr(l):"",s=s!=null?""+Qr(s):l,j||s===o.value||(o.value=s),o.defaultValue=s}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,o.checked=j?o.checked:!!h,o.defaultChecked=!!h,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(o.name=N),fg(o)}function pg(o,s,l){s==="number"&&$d(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function Xi(o,s,l,h){if(o=o.options,s){s={};for(var v=0;v<l.length;v++)s["$"+l[v]]=!0;for(l=0;l<o.length;l++)v=s.hasOwnProperty("$"+o[l].value),o[l].selected!==v&&(o[l].selected=v),v&&h&&(o[l].defaultSelected=!0)}else{for(l=""+Qr(l),s=null,v=0;v<o.length;v++){if(o[v].value===l){o[v].selected=!0,h&&(o[v].defaultSelected=!0);return}s!==null||o[v].disabled||(s=o[v])}s!==null&&(s.selected=!0)}}function uS(o,s,l){if(s!=null&&(s=""+Qr(s),s!==o.value&&(o.value=s),l==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=l!=null?""+Qr(l):""}function dS(o,s,l,h){if(s==null){if(h!=null){if(l!=null)throw Error(r(92));if(ie(h)){if(1<h.length)throw Error(r(93));h=h[0]}l=h}l==null&&(l=""),s=l}l=Qr(s),o.defaultValue=l,h=o.textContent,h===l&&h!==""&&h!==null&&(o.value=h),fg(o)}function Ji(o,s){if(s){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=s;return}}o.textContent=s}var jP=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 fS(o,s,l){var h=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?h?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":h?o.setProperty(s,l):typeof l!="number"||l===0||jP.has(s)?s==="float"?o.cssFloat=l:o[s]=(""+l).trim():o[s]=l+"px"}function hS(o,s,l){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,l!=null){for(var h in l)!l.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?o.setProperty(h,""):h==="float"?o.cssFloat="":o[h]="");for(var v in s)h=s[v],s.hasOwnProperty(v)&&l[v]!==h&&fS(o,v,h)}else for(var _ in s)s.hasOwnProperty(_)&&fS(o,_,s[_])}function mg(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $P=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"]]),UP=/^[\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 Ud(o){return UP.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function la(){}var gg=null;function vg(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ec=null,tc=null;function pS(o){var s=Wi(o);if(s&&(o=s.stateNode)){var l=o[vr]||null;e:switch(o=s.stateNode,s.type){case"input":if(hg(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Xr(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==o&&h.form===o.form){var v=h[vr]||null;if(!v)throw Error(r(90));hg(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<l.length;s++)h=l[s],h.form===o.form&&cS(h)}break e;case"textarea":uS(o,l.value,l.defaultValue);break e;case"select":s=l.value,s!=null&&Xi(o,!!l.multiple,s,!1)}}}var yg=!1;function mS(o,s,l){if(yg)return o(s,l);yg=!0;try{var h=o(s);return h}finally{if(yg=!1,(ec!==null||tc!==null)&&(Of(),ec&&(s=ec,o=tc,tc=ec=null,pS(s),o)))for(s=0;s<o.length;s++)pS(o[s])}}function Al(o,s){var l=o.stateNode;if(l===null)return null;var h=l[vr]||null;if(h===null)return null;l=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(r(231,s,typeof l));return l}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_g=!1;if(ua)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){_g=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{_g=!1}var qa=null,bg=null,zd=null;function gS(){if(zd)return zd;var o,s=bg,l=s.length,h,v="value"in qa?qa.value:qa.textContent,_=v.length;for(o=0;o<l&&s[o]===v[o];o++);var N=l-o;for(h=1;h<=N&&s[l-h]===v[_-h];h++);return zd=v.slice(o,1<h?1-h:void 0)}function Vd(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Fd(){return!0}function vS(){return!1}function yr(o){function s(l,h,v,_,N){this._reactName=l,this._targetInst=v,this.type=h,this.nativeEvent=_,this.target=N,this.currentTarget=null;for(var j in o)o.hasOwnProperty(j)&&(l=o[j],this[j]=l?l(_):_[j]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Fd:vS,this.isPropagationStopped=vS,this}return p(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fd)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fd)},persist:function(){},isPersistent:Fd}),s}var Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bd=yr(Ys),kl=p({},Ys,{view:0,detail:0}),zP=yr(kl),Sg,wg,Nl,qd=p({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Nl&&(Nl&&o.type==="mousemove"?(Sg=o.screenX-Nl.screenX,wg=o.screenY-Nl.screenY):wg=Sg=0,Nl=o),Sg)},movementY:function(o){return"movementY"in o?o.movementY:wg}}),yS=yr(qd),VP=p({},qd,{dataTransfer:0}),FP=yr(VP),BP=p({},kl,{relatedTarget:0}),Eg=yr(BP),qP=p({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),HP=yr(qP),GP=p({},Ys,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),ZP=yr(GP),KP=p({},Ys,{data:0}),_S=yr(KP),WP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YP={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"},QP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XP(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=QP[o])?!!s[o]:!1}function Rg(){return XP}var JP=p({},kl,{key:function(o){if(o.key){var s=WP[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Vd(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?YP[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rg,charCode:function(o){return o.type==="keypress"?Vd(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Vd(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),e3=yr(JP),t3=p({},qd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bS=yr(t3),n3=p({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rg}),r3=yr(n3),o3=p({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),a3=yr(o3),s3=p({},qd,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),i3=yr(s3),c3=p({},Ys,{newState:0,oldState:0}),l3=yr(c3),u3=[9,13,27,32],xg=ua&&"CompositionEvent"in window,Ml=null;ua&&"documentMode"in document&&(Ml=document.documentMode);var d3=ua&&"TextEvent"in window&&!Ml,SS=ua&&(!xg||Ml&&8<Ml&&11>=Ml),wS=" ",ES=!1;function RS(o,s){switch(o){case"keyup":return u3.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xS(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var nc=!1;function f3(o,s){switch(o){case"compositionend":return xS(s);case"keypress":return s.which!==32?null:(ES=!0,wS);case"textInput":return o=s.data,o===wS&&ES?null:o;default:return null}}function h3(o,s){if(nc)return o==="compositionend"||!xg&&RS(o,s)?(o=gS(),zd=bg=qa=null,nc=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return SS&&s.locale!=="ko"?null:s.data;default:return null}}var p3={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 TS(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!p3[o.type]:s==="textarea"}function OS(o,s,l,h){ec?tc?tc.push(h):tc=[h]:ec=h,s=Pf(s,"onChange"),0<s.length&&(l=new Bd("onChange","change",null,l,h),o.push({event:l,listeners:s}))}var Pl=null,Dl=null;function m3(o){lR(o,0)}function Hd(o){var s=Cl(o);if(cS(s))return o}function CS(o,s){if(o==="change")return s}var AS=!1;if(ua){var Tg;if(ua){var Og="oninput"in document;if(!Og){var IS=document.createElement("div");IS.setAttribute("oninput","return;"),Og=typeof IS.oninput=="function"}Tg=Og}else Tg=!1;AS=Tg&&(!document.documentMode||9<document.documentMode)}function kS(){Pl&&(Pl.detachEvent("onpropertychange",NS),Dl=Pl=null)}function NS(o){if(o.propertyName==="value"&&Hd(Dl)){var s=[];OS(s,Dl,o,vg(o)),mS(m3,s)}}function g3(o,s,l){o==="focusin"?(kS(),Pl=s,Dl=l,Pl.attachEvent("onpropertychange",NS)):o==="focusout"&&kS()}function v3(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Hd(Dl)}function y3(o,s){if(o==="click")return Hd(s)}function _3(o,s){if(o==="input"||o==="change")return Hd(s)}function b3(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Nr=typeof Object.is=="function"?Object.is:b3;function Ll(o,s){if(Nr(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var l=Object.keys(o),h=Object.keys(s);if(l.length!==h.length)return!1;for(h=0;h<l.length;h++){var v=l[h];if(!Ge.call(s,v)||!Nr(o[v],s[v]))return!1}return!0}function MS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function PS(o,s){var l=MS(o);o=0;for(var h;l;){if(l.nodeType===3){if(h=o+l.textContent.length,o<=s&&h>=s)return{node:l,offset:s-o};o=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=MS(l)}}function DS(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?DS(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function LS(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=$d(o.document);s instanceof o.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)o=s.contentWindow;else break;s=$d(o.document)}return s}function Cg(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var S3=ua&&"documentMode"in document&&11>=document.documentMode,rc=null,Ag=null,jl=null,Ig=!1;function jS(o,s,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ig||rc==null||rc!==$d(h)||(h=rc,"selectionStart"in h&&Cg(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),jl&&Ll(jl,h)||(jl=h,h=Pf(Ag,"onSelect"),0<h.length&&(s=new Bd("onSelect","select",null,s,l),o.push({event:s,listeners:h}),s.target=rc)))}function Qs(o,s){var l={};return l[o.toLowerCase()]=s.toLowerCase(),l["Webkit"+o]="webkit"+s,l["Moz"+o]="moz"+s,l}var oc={animationend:Qs("Animation","AnimationEnd"),animationiteration:Qs("Animation","AnimationIteration"),animationstart:Qs("Animation","AnimationStart"),transitionrun:Qs("Transition","TransitionRun"),transitionstart:Qs("Transition","TransitionStart"),transitioncancel:Qs("Transition","TransitionCancel"),transitionend:Qs("Transition","TransitionEnd")},kg={},$S={};ua&&($S=document.createElement("div").style,"AnimationEvent"in window||(delete oc.animationend.animation,delete oc.animationiteration.animation,delete oc.animationstart.animation),"TransitionEvent"in window||delete oc.transitionend.transition);function Xs(o){if(kg[o])return kg[o];if(!oc[o])return o;var s=oc[o],l;for(l in s)if(s.hasOwnProperty(l)&&l in $S)return kg[o]=s[l];return o}var US=Xs("animationend"),zS=Xs("animationiteration"),VS=Xs("animationstart"),w3=Xs("transitionrun"),E3=Xs("transitionstart"),R3=Xs("transitioncancel"),FS=Xs("transitionend"),BS=new Map,Ng="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(" ");Ng.push("scrollEnd");function wo(o,s){BS.set(o,s),Ws(s,[o])}var Gd=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Jr=[],ac=0,Mg=0;function Zd(){for(var o=ac,s=Mg=ac=0;s<o;){var l=Jr[s];Jr[s++]=null;var h=Jr[s];Jr[s++]=null;var v=Jr[s];Jr[s++]=null;var _=Jr[s];if(Jr[s++]=null,h!==null&&v!==null){var N=h.pending;N===null?v.next=v:(v.next=N.next,N.next=v),h.pending=v}_!==0&&qS(l,v,_)}}function Kd(o,s,l,h){Jr[ac++]=o,Jr[ac++]=s,Jr[ac++]=l,Jr[ac++]=h,Mg|=h,o.lanes|=h,o=o.alternate,o!==null&&(o.lanes|=h)}function Pg(o,s,l,h){return Kd(o,s,l,h),Wd(o)}function Js(o,s){return Kd(o,null,null,s),Wd(o)}function qS(o,s,l){o.lanes|=l;var h=o.alternate;h!==null&&(h.lanes|=l);for(var v=!1,_=o.return;_!==null;)_.childLanes|=l,h=_.alternate,h!==null&&(h.childLanes|=l),_.tag===22&&(o=_.stateNode,o===null||o._visibility&1||(v=!0)),o=_,_=_.return;return o.tag===3?(_=o.stateNode,v&&s!==null&&(v=31-kn(l),o=_.hiddenUpdates,h=o[v],h===null?o[v]=[s]:h.push(s),s.lane=l|536870912),_):null}function Wd(o){if(50<au)throw au=0,Bv=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var sc={};function x3(o,s,l,h){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mr(o,s,l,h){return new x3(o,s,l,h)}function Dg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function da(o,s){var l=o.alternate;return l===null?(l=Mr(o.tag,s,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=s,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&65011712,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,s=o.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l.refCleanup=o.refCleanup,l}function HS(o,s){o.flags&=65011714;var l=o.alternate;return l===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,s=l.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Yd(o,s,l,h,v,_){var N=0;if(h=o,typeof o=="function")Dg(o)&&(N=1);else if(typeof o=="string")N=I5(o,l,L.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case z:return o=Mr(31,l,s,v),o.elementType=z,o.lanes=_,o;case w:return ei(l.children,v,_,s);case S:N=8,v|=24;break;case x:return o=Mr(12,l,s,v|2),o.elementType=x,o.lanes=_,o;case O:return o=Mr(13,l,s,v),o.elementType=O,o.lanes=_,o;case I:return o=Mr(19,l,s,v),o.elementType=I,o.lanes=_,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case T:N=10;break e;case E:N=9;break e;case C:N=11;break e;case M:N=14;break e;case D:N=16,h=null;break e}N=29,l=Error(r(130,o===null?"null":typeof o,"")),h=null}return s=Mr(N,l,s,v),s.elementType=o,s.type=h,s.lanes=_,s}function ei(o,s,l,h){return o=Mr(7,o,h,s),o.lanes=l,o}function Lg(o,s,l){return o=Mr(6,o,null,s),o.lanes=l,o}function GS(o){var s=Mr(18,null,null,0);return s.stateNode=o,s}function jg(o,s,l){return s=Mr(4,o.children!==null?o.children:[],o.key,s),s.lanes=l,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var ZS=new WeakMap;function eo(o,s){if(typeof o=="object"&&o!==null){var l=ZS.get(o);return l!==void 0?l:(s={value:o,source:s,stack:Ye(s)},ZS.set(o,s),s)}return{value:o,source:s,stack:Ye(s)}}var ic=[],cc=0,Qd=null,$l=0,to=[],no=0,Ha=null,Bo=1,qo="";function fa(o,s){ic[cc++]=$l,ic[cc++]=Qd,Qd=o,$l=s}function KS(o,s,l){to[no++]=Bo,to[no++]=qo,to[no++]=Ha,Ha=o;var h=Bo;o=qo;var v=32-kn(h)-1;h&=~(1<<v),l+=1;var _=32-kn(s)+v;if(30<_){var N=v-v%5;_=(h&(1<<N)-1).toString(32),h>>=N,v-=N,Bo=1<<32-kn(s)+v|l<<v|h,qo=_+o}else Bo=1<<_|l<<v|h,qo=o}function $g(o){o.return!==null&&(fa(o,1),KS(o,1,0))}function Ug(o){for(;o===Qd;)Qd=ic[--cc],ic[cc]=null,$l=ic[--cc],ic[cc]=null;for(;o===Ha;)Ha=to[--no],to[no]=null,qo=to[--no],to[no]=null,Bo=to[--no],to[no]=null}function WS(o,s){to[no++]=Bo,to[no++]=qo,to[no++]=Ha,Bo=s.id,qo=s.overflow,Ha=o}var Fn=null,Zt=null,Rt=!1,Ga=null,ro=!1,zg=Error(r(519));function Za(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(eo(s,o)),zg}function YS(o){var s=o.stateNode,l=o.type,h=o.memoizedProps;switch(s[Vn]=o,s[vr]=h,l){case"dialog":yt("cancel",s),yt("close",s);break;case"iframe":case"object":case"embed":yt("load",s);break;case"video":case"audio":for(l=0;l<iu.length;l++)yt(iu[l],s);break;case"source":yt("error",s);break;case"img":case"image":case"link":yt("error",s),yt("load",s);break;case"details":yt("toggle",s);break;case"input":yt("invalid",s),lS(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":yt("invalid",s);break;case"textarea":yt("invalid",s),dS(s,h.value,h.defaultValue,h.children)}l=h.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||h.suppressHydrationWarning===!0||hR(s.textContent,l)?(h.popover!=null&&(yt("beforetoggle",s),yt("toggle",s)),h.onScroll!=null&&yt("scroll",s),h.onScrollEnd!=null&&yt("scrollend",s),h.onClick!=null&&(s.onclick=la),s=!0):s=!1,s||Za(o,!0)}function QS(o){for(Fn=o.return;Fn;)switch(Fn.tag){case 5:case 31:case 13:ro=!1;return;case 27:case 3:ro=!0;return;default:Fn=Fn.return}}function lc(o){if(o!==Fn)return!1;if(!Rt)return QS(o),Rt=!0,!1;var s=o.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||oy(o.type,o.memoizedProps)),l=!l),l&&Zt&&Za(o),QS(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Zt=wR(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Zt=wR(o)}else s===27?(s=Zt,is(o.type)?(o=ly,ly=null,Zt=o):Zt=s):Zt=Fn?ao(o.stateNode.nextSibling):null;return!0}function ti(){Zt=Fn=null,Rt=!1}function Vg(){var o=Ga;return o!==null&&(wr===null?wr=o:wr.push.apply(wr,o),Ga=null),o}function Ul(o){Ga===null?Ga=[o]:Ga.push(o)}var Fg=P(null),ni=null,ha=null;function Ka(o,s,l){B(Fg,s._currentValue),s._currentValue=l}function pa(o){o._currentValue=Fg.current,q(Fg)}function Bg(o,s,l){for(;o!==null;){var h=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),o===l)break;o=o.return}}function qg(o,s,l,h){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var _=v.dependencies;if(_!==null){var N=v.child;_=_.firstContext;e:for(;_!==null;){var j=_;_=v;for(var W=0;W<s.length;W++)if(j.context===s[W]){_.lanes|=l,j=_.alternate,j!==null&&(j.lanes|=l),Bg(_.return,l,o),h||(N=null);break e}_=j.next}}else if(v.tag===18){if(N=v.return,N===null)throw Error(r(341));N.lanes|=l,_=N.alternate,_!==null&&(_.lanes|=l),Bg(N,l,o),N=null}else N=v.child;if(N!==null)N.return=v;else for(N=v;N!==null;){if(N===o){N=null;break}if(v=N.sibling,v!==null){v.return=N.return,N=v;break}N=N.return}v=N}}function uc(o,s,l,h){o=null;for(var v=s,_=!1;v!==null;){if(!_){if((v.flags&524288)!==0)_=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var N=v.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var j=v.type;Nr(v.pendingProps.value,N.value)||(o!==null?o.push(j):o=[j])}}else if(v===ge.current){if(N=v.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(fu):o=[fu])}v=v.return}o!==null&&qg(s,o,l,h),s.flags|=262144}function Xd(o){for(o=o.firstContext;o!==null;){if(!Nr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function ri(o){ni=o,ha=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Bn(o){return XS(ni,o)}function Jd(o,s){return ni===null&&ri(o),XS(o,s)}function XS(o,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},ha===null){if(o===null)throw Error(r(308));ha=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else ha=ha.next=s;return l}var T3=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(l,h){o.push(h)}};this.abort=function(){s.aborted=!0,o.forEach(function(l){return l()})}},O3=e.unstable_scheduleCallback,C3=e.unstable_NormalPriority,pn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hg(){return{controller:new T3,data:new Map,refCount:0}}function zl(o){o.refCount--,o.refCount===0&&O3(C3,function(){o.controller.abort()})}var Vl=null,Gg=0,dc=0,fc=null;function A3(o,s){if(Vl===null){var l=Vl=[];Gg=0,dc=Wv(),fc={status:"pending",value:void 0,then:function(h){l.push(h)}}}return Gg++,s.then(JS,JS),s}function JS(){if(--Gg===0&&Vl!==null){fc!==null&&(fc.status="fulfilled");var o=Vl;Vl=null,dc=0,fc=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function I3(o,s){var l=[],h={status:"pending",value:null,reason:null,then:function(v){l.push(v)}};return o.then(function(){h.status="fulfilled",h.value=s;for(var v=0;v<l.length;v++)(0,l[v])(s)},function(v){for(h.status="rejected",h.reason=v,v=0;v<l.length;v++)(0,l[v])(void 0)}),h}var ew=F.S;F.S=function(o,s){jE=Ee(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&A3(o,s),ew!==null&&ew(o,s)};var oi=P(null);function Zg(){var o=oi.current;return o!==null?o:qt.pooledCache}function ef(o,s){s===null?B(oi,oi.current):B(oi,s.pool)}function tw(){var o=Zg();return o===null?null:{parent:pn._currentValue,pool:o}}var hc=Error(r(460)),Kg=Error(r(474)),tf=Error(r(542)),nf={then:function(){}};function nw(o){return o=o.status,o==="fulfilled"||o==="rejected"}function rw(o,s,l){switch(l=o[l],l===void 0?o.push(s):l!==s&&(s.then(la,la),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,aw(o),o;default:if(typeof s.status=="string")s.then(la,la);else{if(o=qt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(h){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=h}},function(h){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,aw(o),o}throw si=s,hc}}function ai(o){try{var s=o._init;return s(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(si=l,hc):l}}var si=null;function ow(){if(si===null)throw Error(r(459));var o=si;return si=null,o}function aw(o){if(o===hc||o===tf)throw Error(r(483))}var pc=null,Fl=0;function rf(o){var s=Fl;return Fl+=1,pc===null&&(pc=[]),rw(pc,o,s)}function Bl(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function of(o,s){throw s.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function sw(o){function s(se,te){if(o){var ue=se.deletions;ue===null?(se.deletions=[te],se.flags|=16):ue.push(te)}}function l(se,te){if(!o)return null;for(;te!==null;)s(se,te),te=te.sibling;return null}function h(se){for(var te=new Map;se!==null;)se.key!==null?te.set(se.key,se):te.set(se.index,se),se=se.sibling;return te}function v(se,te){return se=da(se,te),se.index=0,se.sibling=null,se}function _(se,te,ue){return se.index=ue,o?(ue=se.alternate,ue!==null?(ue=ue.index,ue<te?(se.flags|=67108866,te):ue):(se.flags|=67108866,te)):(se.flags|=1048576,te)}function N(se){return o&&se.alternate===null&&(se.flags|=67108866),se}function j(se,te,ue,Re){return te===null||te.tag!==6?(te=Lg(ue,se.mode,Re),te.return=se,te):(te=v(te,ue),te.return=se,te)}function W(se,te,ue,Re){var Ze=ue.type;return Ze===w?we(se,te,ue.props.children,Re,ue.key):te!==null&&(te.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===D&&ai(Ze)===te.type)?(te=v(te,ue.props),Bl(te,ue),te.return=se,te):(te=Yd(ue.type,ue.key,ue.props,null,se.mode,Re),Bl(te,ue),te.return=se,te)}function de(se,te,ue,Re){return te===null||te.tag!==4||te.stateNode.containerInfo!==ue.containerInfo||te.stateNode.implementation!==ue.implementation?(te=jg(ue,se.mode,Re),te.return=se,te):(te=v(te,ue.children||[]),te.return=se,te)}function we(se,te,ue,Re,Ze){return te===null||te.tag!==7?(te=ei(ue,se.mode,Re,Ze),te.return=se,te):(te=v(te,ue),te.return=se,te)}function Te(se,te,ue){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=Lg(""+te,se.mode,ue),te.return=se,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case y:return ue=Yd(te.type,te.key,te.props,null,se.mode,ue),Bl(ue,te),ue.return=se,ue;case b:return te=jg(te,se.mode,ue),te.return=se,te;case D:return te=ai(te),Te(se,te,ue)}if(ie(te)||Z(te))return te=ei(te,se.mode,ue,null),te.return=se,te;if(typeof te.then=="function")return Te(se,rf(te),ue);if(te.$$typeof===T)return Te(se,Jd(se,te),ue);of(se,te)}return null}function he(se,te,ue,Re){var Ze=te!==null?te.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Ze!==null?null:j(se,te,""+ue,Re);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return ue.key===Ze?W(se,te,ue,Re):null;case b:return ue.key===Ze?de(se,te,ue,Re):null;case D:return ue=ai(ue),he(se,te,ue,Re)}if(ie(ue)||Z(ue))return Ze!==null?null:we(se,te,ue,Re,null);if(typeof ue.then=="function")return he(se,te,rf(ue),Re);if(ue.$$typeof===T)return he(se,te,Jd(se,ue),Re);of(se,ue)}return null}function ve(se,te,ue,Re,Ze){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return se=se.get(ue)||null,j(te,se,""+Re,Ze);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case y:return se=se.get(Re.key===null?ue:Re.key)||null,W(te,se,Re,Ze);case b:return se=se.get(Re.key===null?ue:Re.key)||null,de(te,se,Re,Ze);case D:return Re=ai(Re),ve(se,te,ue,Re,Ze)}if(ie(Re)||Z(Re))return se=se.get(ue)||null,we(te,se,Re,Ze,null);if(typeof Re.then=="function")return ve(se,te,ue,rf(Re),Ze);if(Re.$$typeof===T)return ve(se,te,ue,Jd(te,Re),Ze);of(te,Re)}return null}function Ue(se,te,ue,Re){for(var Ze=null,At=null,Be=te,ct=te=0,wt=null;Be!==null&&ct<ue.length;ct++){Be.index>ct?(wt=Be,Be=null):wt=Be.sibling;var It=he(se,Be,ue[ct],Re);if(It===null){Be===null&&(Be=wt);break}o&&Be&&It.alternate===null&&s(se,Be),te=_(It,te,ct),At===null?Ze=It:At.sibling=It,At=It,Be=wt}if(ct===ue.length)return l(se,Be),Rt&&fa(se,ct),Ze;if(Be===null){for(;ct<ue.length;ct++)Be=Te(se,ue[ct],Re),Be!==null&&(te=_(Be,te,ct),At===null?Ze=Be:At.sibling=Be,At=Be);return Rt&&fa(se,ct),Ze}for(Be=h(Be);ct<ue.length;ct++)wt=ve(Be,se,ct,ue[ct],Re),wt!==null&&(o&&wt.alternate!==null&&Be.delete(wt.key===null?ct:wt.key),te=_(wt,te,ct),At===null?Ze=wt:At.sibling=wt,At=wt);return o&&Be.forEach(function(fs){return s(se,fs)}),Rt&&fa(se,ct),Ze}function Ke(se,te,ue,Re){if(ue==null)throw Error(r(151));for(var Ze=null,At=null,Be=te,ct=te=0,wt=null,It=ue.next();Be!==null&&!It.done;ct++,It=ue.next()){Be.index>ct?(wt=Be,Be=null):wt=Be.sibling;var fs=he(se,Be,It.value,Re);if(fs===null){Be===null&&(Be=wt);break}o&&Be&&fs.alternate===null&&s(se,Be),te=_(fs,te,ct),At===null?Ze=fs:At.sibling=fs,At=fs,Be=wt}if(It.done)return l(se,Be),Rt&&fa(se,ct),Ze;if(Be===null){for(;!It.done;ct++,It=ue.next())It=Te(se,It.value,Re),It!==null&&(te=_(It,te,ct),At===null?Ze=It:At.sibling=It,At=It);return Rt&&fa(se,ct),Ze}for(Be=h(Be);!It.done;ct++,It=ue.next())It=ve(Be,se,ct,It.value,Re),It!==null&&(o&&It.alternate!==null&&Be.delete(It.key===null?ct:It.key),te=_(It,te,ct),At===null?Ze=It:At.sibling=It,At=It);return o&&Be.forEach(function(V5){return s(se,V5)}),Rt&&fa(se,ct),Ze}function Ft(se,te,ue,Re){if(typeof ue=="object"&&ue!==null&&ue.type===w&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:e:{for(var Ze=ue.key;te!==null;){if(te.key===Ze){if(Ze=ue.type,Ze===w){if(te.tag===7){l(se,te.sibling),Re=v(te,ue.props.children),Re.return=se,se=Re;break e}}else if(te.elementType===Ze||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===D&&ai(Ze)===te.type){l(se,te.sibling),Re=v(te,ue.props),Bl(Re,ue),Re.return=se,se=Re;break e}l(se,te);break}else s(se,te);te=te.sibling}ue.type===w?(Re=ei(ue.props.children,se.mode,Re,ue.key),Re.return=se,se=Re):(Re=Yd(ue.type,ue.key,ue.props,null,se.mode,Re),Bl(Re,ue),Re.return=se,se=Re)}return N(se);case b:e:{for(Ze=ue.key;te!==null;){if(te.key===Ze)if(te.tag===4&&te.stateNode.containerInfo===ue.containerInfo&&te.stateNode.implementation===ue.implementation){l(se,te.sibling),Re=v(te,ue.children||[]),Re.return=se,se=Re;break e}else{l(se,te);break}else s(se,te);te=te.sibling}Re=jg(ue,se.mode,Re),Re.return=se,se=Re}return N(se);case D:return ue=ai(ue),Ft(se,te,ue,Re)}if(ie(ue))return Ue(se,te,ue,Re);if(Z(ue)){if(Ze=Z(ue),typeof Ze!="function")throw Error(r(150));return ue=Ze.call(ue),Ke(se,te,ue,Re)}if(typeof ue.then=="function")return Ft(se,te,rf(ue),Re);if(ue.$$typeof===T)return Ft(se,te,Jd(se,ue),Re);of(se,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,te!==null&&te.tag===6?(l(se,te.sibling),Re=v(te,ue),Re.return=se,se=Re):(l(se,te),Re=Lg(ue,se.mode,Re),Re.return=se,se=Re),N(se)):l(se,te)}return function(se,te,ue,Re){try{Fl=0;var Ze=Ft(se,te,ue,Re);return pc=null,Ze}catch(Be){if(Be===hc||Be===tf)throw Be;var At=Mr(29,Be,null,se.mode);return At.lanes=Re,At.return=se,At}}}var ii=sw(!0),iw=sw(!1),Wa=!1;function Wg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ya(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Qa(o,s,l){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(Nt&2)!==0){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,s=Wd(o),qS(o,null,l),s}return Kd(o,h,s,l),Wd(o)}function ql(o,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,mr(o,l)}}function Qg(o,s){var l=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,l===h)){var v=null,_=null;if(l=l.firstBaseUpdate,l!==null){do{var N={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};_===null?v=_=N:_=_.next=N,l=l.next}while(l!==null);_===null?v=_=s:_=_.next=s}else v=_=s;l={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=s:o.next=s,l.lastBaseUpdate=s}var Xg=!1;function Hl(){if(Xg){var o=fc;if(o!==null)throw o}}function Gl(o,s,l,h){Xg=!1;var v=o.updateQueue;Wa=!1;var _=v.firstBaseUpdate,N=v.lastBaseUpdate,j=v.shared.pending;if(j!==null){v.shared.pending=null;var W=j,de=W.next;W.next=null,N===null?_=de:N.next=de,N=W;var we=o.alternate;we!==null&&(we=we.updateQueue,j=we.lastBaseUpdate,j!==N&&(j===null?we.firstBaseUpdate=de:j.next=de,we.lastBaseUpdate=W))}if(_!==null){var Te=v.baseState;N=0,we=de=W=null,j=_;do{var he=j.lane&-536870913,ve=he!==j.lane;if(ve?(St&he)===he:(h&he)===he){he!==0&&he===dc&&(Xg=!0),we!==null&&(we=we.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var Ue=o,Ke=j;he=s;var Ft=l;switch(Ke.tag){case 1:if(Ue=Ke.payload,typeof Ue=="function"){Te=Ue.call(Ft,Te,he);break e}Te=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=Ke.payload,he=typeof Ue=="function"?Ue.call(Ft,Te,he):Ue,he==null)break e;Te=p({},Te,he);break e;case 2:Wa=!0}}he=j.callback,he!==null&&(o.flags|=64,ve&&(o.flags|=8192),ve=v.callbacks,ve===null?v.callbacks=[he]:ve.push(he))}else ve={lane:he,tag:j.tag,payload:j.payload,callback:j.callback,next:null},we===null?(de=we=ve,W=Te):we=we.next=ve,N|=he;if(j=j.next,j===null){if(j=v.shared.pending,j===null)break;ve=j,j=ve.next,ve.next=null,v.lastBaseUpdate=ve,v.shared.pending=null}}while(!0);we===null&&(W=Te),v.baseState=W,v.firstBaseUpdate=de,v.lastBaseUpdate=we,_===null&&(v.shared.lanes=0),ns|=N,o.lanes=N,o.memoizedState=Te}}function cw(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function lw(o,s){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)cw(l[o],s)}var mc=P(null),af=P(0);function uw(o,s){o=Ea,B(af,o),B(mc,s),Ea=o|s.baseLanes}function Jg(){B(af,Ea),B(mc,mc.current)}function ev(){Ea=af.current,q(mc),q(af)}var Pr=P(null),oo=null;function Xa(o){var s=o.alternate;B(cn,cn.current&1),B(Pr,o),oo===null&&(s===null||mc.current!==null||s.memoizedState!==null)&&(oo=o)}function tv(o){B(cn,cn.current),B(Pr,o),oo===null&&(oo=o)}function dw(o){o.tag===22?(B(cn,cn.current),B(Pr,o),oo===null&&(oo=o)):Ja()}function Ja(){B(cn,cn.current),B(Pr,Pr.current)}function Dr(o){q(Pr),oo===o&&(oo=null),q(cn)}var cn=P(0);function sf(o){for(var s=o;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||iy(l)||cy(l)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ma=0,st=null,zt=null,mn=null,cf=!1,gc=!1,ci=!1,lf=0,Zl=0,vc=null,k3=0;function on(){throw Error(r(321))}function nv(o,s){if(s===null)return!1;for(var l=0;l<s.length&&l<o.length;l++)if(!Nr(o[l],s[l]))return!1;return!0}function rv(o,s,l,h,v,_){return ma=_,st=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,F.H=o===null||o.memoizedState===null?Kw:yv,ci=!1,_=l(h,v),ci=!1,gc&&(_=hw(s,l,h,v)),fw(o),_}function fw(o){F.H=Yl;var s=zt!==null&&zt.next!==null;if(ma=0,mn=zt=st=null,cf=!1,Zl=0,vc=null,s)throw Error(r(300));o===null||gn||(o=o.dependencies,o!==null&&Xd(o)&&(gn=!0))}function hw(o,s,l,h){st=o;var v=0;do{if(gc&&(vc=null),Zl=0,gc=!1,25<=v)throw Error(r(301));if(v+=1,mn=zt=null,o.updateQueue!=null){var _=o.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}F.H=Ww,_=s(l,h)}while(gc);return _}function N3(){var o=F.H,s=o.useState()[0];return s=typeof s.then=="function"?Kl(s):s,o=o.useState()[0],(zt!==null?zt.memoizedState:null)!==o&&(st.flags|=1024),s}function ov(){var o=lf!==0;return lf=0,o}function av(o,s,l){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~l}function sv(o){if(cf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}cf=!1}ma=0,mn=zt=st=null,gc=!1,Zl=lf=0,vc=null}function ir(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?st.memoizedState=mn=o:mn=mn.next=o,mn}function ln(){if(zt===null){var o=st.alternate;o=o!==null?o.memoizedState:null}else o=zt.next;var s=mn===null?st.memoizedState:mn.next;if(s!==null)mn=s,zt=o;else{if(o===null)throw st.alternate===null?Error(r(467)):Error(r(310));zt=o,o={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},mn===null?st.memoizedState=mn=o:mn=mn.next=o}return mn}function uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(o){var s=Zl;return Zl+=1,vc===null&&(vc=[]),o=rw(vc,o,s),s=st,(mn===null?s.memoizedState:mn.next)===null&&(s=s.alternate,F.H=s===null||s.memoizedState===null?Kw:yv),o}function df(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Kl(o);if(o.$$typeof===T)return Bn(o)}throw Error(r(438,String(o)))}function iv(o){var s=null,l=st.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var h=st.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=uf(),st.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(o),h=0;h<o;h++)l[h]=Q;return s.index++,l}function ga(o,s){return typeof s=="function"?s(o):s}function ff(o){var s=ln();return cv(s,zt,o)}function cv(o,s,l){var h=o.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=l;var v=o.baseQueue,_=h.pending;if(_!==null){if(v!==null){var N=v.next;v.next=_.next,_.next=N}s.baseQueue=v=_,h.pending=null}if(_=o.baseState,v===null)o.memoizedState=_;else{s=v.next;var j=N=null,W=null,de=s,we=!1;do{var Te=de.lane&-536870913;if(Te!==de.lane?(St&Te)===Te:(ma&Te)===Te){var he=de.revertLane;if(he===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Te===dc&&(we=!0);else if((ma&he)===he){de=de.next,he===dc&&(we=!0);continue}else Te={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},W===null?(j=W=Te,N=_):W=W.next=Te,st.lanes|=he,ns|=he;Te=de.action,ci&&l(_,Te),_=de.hasEagerState?de.eagerState:l(_,Te)}else he={lane:Te,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},W===null?(j=W=he,N=_):W=W.next=he,st.lanes|=Te,ns|=Te;de=de.next}while(de!==null&&de!==s);if(W===null?N=_:W.next=j,!Nr(_,o.memoizedState)&&(gn=!0,we&&(l=fc,l!==null)))throw l;o.memoizedState=_,o.baseState=N,o.baseQueue=W,h.lastRenderedState=_}return v===null&&(h.lanes=0),[o.memoizedState,h.dispatch]}function lv(o){var s=ln(),l=s.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=o;var h=l.dispatch,v=l.pending,_=s.memoizedState;if(v!==null){l.pending=null;var N=v=v.next;do _=o(_,N.action),N=N.next;while(N!==v);Nr(_,s.memoizedState)||(gn=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),l.lastRenderedState=_}return[_,h]}function pw(o,s,l){var h=st,v=ln(),_=Rt;if(_){if(l===void 0)throw Error(r(407));l=l()}else l=s();var N=!Nr((zt||v).memoizedState,l);if(N&&(v.memoizedState=l,gn=!0),v=v.queue,fv(vw.bind(null,h,v,o),[o]),v.getSnapshot!==s||N||mn!==null&&mn.memoizedState.tag&1){if(h.flags|=2048,yc(9,{destroy:void 0},gw.bind(null,h,v,l,s),null),qt===null)throw Error(r(349));_||(ma&127)!==0||mw(h,s,l)}return l}function mw(o,s,l){o.flags|=16384,o={getSnapshot:s,value:l},s=st.updateQueue,s===null?(s=uf(),st.updateQueue=s,s.stores=[o]):(l=s.stores,l===null?s.stores=[o]:l.push(o))}function gw(o,s,l,h){s.value=l,s.getSnapshot=h,yw(s)&&_w(o)}function vw(o,s,l){return l(function(){yw(s)&&_w(o)})}function yw(o){var s=o.getSnapshot;o=o.value;try{var l=s();return!Nr(o,l)}catch{return!0}}function _w(o){var s=Js(o,2);s!==null&&Er(s,o,2)}function uv(o){var s=ir();if(typeof o=="function"){var l=o;if(o=l(),ci){zn(!0);try{l()}finally{zn(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:o},s}function bw(o,s,l,h){return o.baseState=l,cv(o,zt,typeof h=="function"?h:ga)}function M3(o,s,l,h,v){if(mf(o))throw Error(r(485));if(o=s.action,o!==null){var _={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){_.listeners.push(N)}};F.T!==null?l(!0):_.isTransition=!1,h(_),l=s.pending,l===null?(_.next=s.pending=_,Sw(s,_)):(_.next=l.next,s.pending=l.next=_)}}function Sw(o,s){var l=s.action,h=s.payload,v=o.state;if(s.isTransition){var _=F.T,N={};F.T=N;try{var j=l(v,h),W=F.S;W!==null&&W(N,j),ww(o,s,j)}catch(de){dv(o,s,de)}finally{_!==null&&N.types!==null&&(_.types=N.types),F.T=_}}else try{_=l(v,h),ww(o,s,_)}catch(de){dv(o,s,de)}}function ww(o,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(h){Ew(o,s,h)},function(h){return dv(o,s,h)}):Ew(o,s,l)}function Ew(o,s,l){s.status="fulfilled",s.value=l,Rw(s),o.state=l,s=o.pending,s!==null&&(l=s.next,l===s?o.pending=null:(l=l.next,s.next=l,Sw(o,l)))}function dv(o,s,l){var h=o.pending;if(o.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=l,Rw(s),s=s.next;while(s!==h)}o.action=null}function Rw(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function xw(o,s){return s}function Tw(o,s){if(Rt){var l=qt.formState;if(l!==null){e:{var h=st;if(Rt){if(Zt){t:{for(var v=Zt,_=ro;v.nodeType!==8;){if(!_){v=null;break t}if(v=ao(v.nextSibling),v===null){v=null;break t}}_=v.data,v=_==="F!"||_==="F"?v:null}if(v){Zt=ao(v.nextSibling),h=v.data==="F!";break e}}Za(h)}h=!1}h&&(s=l[0])}}return l=ir(),l.memoizedState=l.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xw,lastRenderedState:s},l.queue=h,l=Hw.bind(null,st,h),h.dispatch=l,h=uv(!1),_=vv.bind(null,st,!1,h.queue),h=ir(),v={state:s,dispatch:null,action:o,pending:null},h.queue=v,l=M3.bind(null,st,v,_,l),v.dispatch=l,h.memoizedState=o,[s,l,!1]}function Ow(o){var s=ln();return Cw(s,zt,o)}function Cw(o,s,l){if(s=cv(o,s,xw)[0],o=ff(ga)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=Kl(s)}catch(N){throw N===hc?tf:N}else h=s;s=ln();var v=s.queue,_=v.dispatch;return l!==s.memoizedState&&(st.flags|=2048,yc(9,{destroy:void 0},P3.bind(null,v,l),null)),[h,_,o]}function P3(o,s){o.action=s}function Aw(o){var s=ln(),l=zt;if(l!==null)return Cw(s,l,o);ln(),s=s.memoizedState,l=ln();var h=l.queue.dispatch;return l.memoizedState=o,[s,h,!1]}function yc(o,s,l,h){return o={tag:o,create:l,deps:h,inst:s,next:null},s=st.updateQueue,s===null&&(s=uf(),st.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=o.next=o:(h=l.next,l.next=o,o.next=h,s.lastEffect=o),o}function Iw(){return ln().memoizedState}function hf(o,s,l,h){var v=ir();st.flags|=o,v.memoizedState=yc(1|s,{destroy:void 0},l,h===void 0?null:h)}function pf(o,s,l,h){var v=ln();h=h===void 0?null:h;var _=v.memoizedState.inst;zt!==null&&h!==null&&nv(h,zt.memoizedState.deps)?v.memoizedState=yc(s,_,l,h):(st.flags|=o,v.memoizedState=yc(1|s,_,l,h))}function kw(o,s){hf(8390656,8,o,s)}function fv(o,s){pf(2048,8,o,s)}function D3(o){st.flags|=4;var s=st.updateQueue;if(s===null)s=uf(),st.updateQueue=s,s.events=[o];else{var l=s.events;l===null?s.events=[o]:l.push(o)}}function Nw(o){var s=ln().memoizedState;return D3({ref:s,nextImpl:o}),function(){if((Nt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Mw(o,s){return pf(4,2,o,s)}function Pw(o,s){return pf(4,4,o,s)}function Dw(o,s){if(typeof s=="function"){o=o();var l=s(o);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Lw(o,s,l){l=l!=null?l.concat([o]):null,pf(4,4,Dw.bind(null,s,o),l)}function hv(){}function jw(o,s){var l=ln();s=s===void 0?null:s;var h=l.memoizedState;return s!==null&&nv(s,h[1])?h[0]:(l.memoizedState=[o,s],o)}function $w(o,s){var l=ln();s=s===void 0?null:s;var h=l.memoizedState;if(s!==null&&nv(s,h[1]))return h[0];if(h=o(),ci){zn(!0);try{o()}finally{zn(!1)}}return l.memoizedState=[h,s],h}function pv(o,s,l){return l===void 0||(ma&1073741824)!==0&&(St&261930)===0?o.memoizedState=s:(o.memoizedState=l,o=UE(),st.lanes|=o,ns|=o,l)}function Uw(o,s,l,h){return Nr(l,s)?l:mc.current!==null?(o=pv(o,l,h),Nr(o,s)||(gn=!0),o):(ma&42)===0||(ma&1073741824)!==0&&(St&261930)===0?(gn=!0,o.memoizedState=l):(o=UE(),st.lanes|=o,ns|=o,s)}function zw(o,s,l,h,v){var _=J.p;J.p=_!==0&&8>_?_:8;var N=F.T,j={};F.T=j,vv(o,!1,s,l);try{var W=v(),de=F.S;if(de!==null&&de(j,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var we=I3(W,h);Wl(o,s,we,$r(o))}else Wl(o,s,h,$r(o))}catch(Te){Wl(o,s,{then:function(){},status:"rejected",reason:Te},$r())}finally{J.p=_,N!==null&&j.types!==null&&(N.types=j.types),F.T=N}}function L3(){}function mv(o,s,l,h){if(o.tag!==5)throw Error(r(476));var v=Vw(o).queue;zw(o,v,s,ae,l===null?L3:function(){return Fw(o),l(h)})}function Vw(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:ae},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:l},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function Fw(o){var s=Vw(o);s.next===null&&(s=o.alternate.memoizedState),Wl(o,s.next.queue,{},$r())}function gv(){return Bn(fu)}function Bw(){return ln().memoizedState}function qw(){return ln().memoizedState}function j3(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var l=$r();o=Ya(l);var h=Qa(s,o,l);h!==null&&(Er(h,s,l),ql(h,s,l)),s={cache:Hg()},o.payload=s;return}s=s.return}}function $3(o,s,l){var h=$r();l={lane:h,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},mf(o)?Gw(s,l):(l=Pg(o,s,l,h),l!==null&&(Er(l,o,h),Zw(l,s,h)))}function Hw(o,s,l){var h=$r();Wl(o,s,l,h)}function Wl(o,s,l,h){var v={lane:h,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(mf(o))Gw(s,v);else{var _=o.alternate;if(o.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var N=s.lastRenderedState,j=_(N,l);if(v.hasEagerState=!0,v.eagerState=j,Nr(j,N))return Kd(o,s,v,0),qt===null&&Zd(),!1}catch{}if(l=Pg(o,s,v,h),l!==null)return Er(l,o,h),Zw(l,s,h),!0}return!1}function vv(o,s,l,h){if(h={lane:2,revertLane:Wv(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},mf(o)){if(s)throw Error(r(479))}else s=Pg(o,l,h,2),s!==null&&Er(s,o,2)}function mf(o){var s=o.alternate;return o===st||s!==null&&s===st}function Gw(o,s){gc=cf=!0;var l=o.pending;l===null?s.next=s:(s.next=l.next,l.next=s),o.pending=s}function Zw(o,s,l){if((l&4194048)!==0){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,mr(o,l)}}var Yl={readContext:Bn,use:df,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useLayoutEffect:on,useInsertionEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useSyncExternalStore:on,useId:on,useHostTransitionStatus:on,useFormState:on,useActionState:on,useOptimistic:on,useMemoCache:on,useCacheRefresh:on};Yl.useEffectEvent=on;var Kw={readContext:Bn,use:df,useCallback:function(o,s){return ir().memoizedState=[o,s===void 0?null:s],o},useContext:Bn,useEffect:kw,useImperativeHandle:function(o,s,l){l=l!=null?l.concat([o]):null,hf(4194308,4,Dw.bind(null,s,o),l)},useLayoutEffect:function(o,s){return hf(4194308,4,o,s)},useInsertionEffect:function(o,s){hf(4,2,o,s)},useMemo:function(o,s){var l=ir();s=s===void 0?null:s;var h=o();if(ci){zn(!0);try{o()}finally{zn(!1)}}return l.memoizedState=[h,s],h},useReducer:function(o,s,l){var h=ir();if(l!==void 0){var v=l(s);if(ci){zn(!0);try{l(s)}finally{zn(!1)}}}else v=s;return h.memoizedState=h.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},h.queue=o,o=o.dispatch=$3.bind(null,st,o),[h.memoizedState,o]},useRef:function(o){var s=ir();return o={current:o},s.memoizedState=o},useState:function(o){o=uv(o);var s=o.queue,l=Hw.bind(null,st,s);return s.dispatch=l,[o.memoizedState,l]},useDebugValue:hv,useDeferredValue:function(o,s){var l=ir();return pv(l,o,s)},useTransition:function(){var o=uv(!1);return o=zw.bind(null,st,o.queue,!0,!1),ir().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,l){var h=st,v=ir();if(Rt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=s(),qt===null)throw Error(r(349));(St&127)!==0||mw(h,s,l)}v.memoizedState=l;var _={value:l,getSnapshot:s};return v.queue=_,kw(vw.bind(null,h,_,o),[o]),h.flags|=2048,yc(9,{destroy:void 0},gw.bind(null,h,_,l,s),null),l},useId:function(){var o=ir(),s=qt.identifierPrefix;if(Rt){var l=qo,h=Bo;l=(h&~(1<<32-kn(h)-1)).toString(32)+l,s="_"+s+"R_"+l,l=lf++,0<l&&(s+="H"+l.toString(32)),s+="_"}else l=k3++,s="_"+s+"r_"+l.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:gv,useFormState:Tw,useActionState:Tw,useOptimistic:function(o){var s=ir();s.memoizedState=s.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=vv.bind(null,st,!0,l),l.dispatch=s,[o,s]},useMemoCache:iv,useCacheRefresh:function(){return ir().memoizedState=j3.bind(null,st)},useEffectEvent:function(o){var s=ir(),l={impl:o};return s.memoizedState=l,function(){if((Nt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},yv={readContext:Bn,use:df,useCallback:jw,useContext:Bn,useEffect:fv,useImperativeHandle:Lw,useInsertionEffect:Mw,useLayoutEffect:Pw,useMemo:$w,useReducer:ff,useRef:Iw,useState:function(){return ff(ga)},useDebugValue:hv,useDeferredValue:function(o,s){var l=ln();return Uw(l,zt.memoizedState,o,s)},useTransition:function(){var o=ff(ga)[0],s=ln().memoizedState;return[typeof o=="boolean"?o:Kl(o),s]},useSyncExternalStore:pw,useId:Bw,useHostTransitionStatus:gv,useFormState:Ow,useActionState:Ow,useOptimistic:function(o,s){var l=ln();return bw(l,zt,o,s)},useMemoCache:iv,useCacheRefresh:qw};yv.useEffectEvent=Nw;var Ww={readContext:Bn,use:df,useCallback:jw,useContext:Bn,useEffect:fv,useImperativeHandle:Lw,useInsertionEffect:Mw,useLayoutEffect:Pw,useMemo:$w,useReducer:lv,useRef:Iw,useState:function(){return lv(ga)},useDebugValue:hv,useDeferredValue:function(o,s){var l=ln();return zt===null?pv(l,o,s):Uw(l,zt.memoizedState,o,s)},useTransition:function(){var o=lv(ga)[0],s=ln().memoizedState;return[typeof o=="boolean"?o:Kl(o),s]},useSyncExternalStore:pw,useId:Bw,useHostTransitionStatus:gv,useFormState:Aw,useActionState:Aw,useOptimistic:function(o,s){var l=ln();return zt!==null?bw(l,zt,o,s):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:iv,useCacheRefresh:qw};Ww.useEffectEvent=Nw;function _v(o,s,l,h){s=o.memoizedState,l=l(h,s),l=l==null?s:p({},s,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var bv={enqueueSetState:function(o,s,l){o=o._reactInternals;var h=$r(),v=Ya(h);v.payload=s,l!=null&&(v.callback=l),s=Qa(o,v,h),s!==null&&(Er(s,o,h),ql(s,o,h))},enqueueReplaceState:function(o,s,l){o=o._reactInternals;var h=$r(),v=Ya(h);v.tag=1,v.payload=s,l!=null&&(v.callback=l),s=Qa(o,v,h),s!==null&&(Er(s,o,h),ql(s,o,h))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var l=$r(),h=Ya(l);h.tag=2,s!=null&&(h.callback=s),s=Qa(o,h,l),s!==null&&(Er(s,o,l),ql(s,o,l))}};function Yw(o,s,l,h,v,_,N){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,_,N):s.prototype&&s.prototype.isPureReactComponent?!Ll(l,h)||!Ll(v,_):!0}function Qw(o,s,l,h){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,h),s.state!==o&&bv.enqueueReplaceState(s,s.state,null)}function li(o,s){var l=s;if("ref"in s){l={};for(var h in s)h!=="ref"&&(l[h]=s[h])}if(o=o.defaultProps){l===s&&(l=p({},l));for(var v in o)l[v]===void 0&&(l[v]=o[v])}return l}function Xw(o){Gd(o)}function Jw(o){console.error(o)}function eE(o){Gd(o)}function gf(o,s){try{var l=o.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function tE(o,s,l){try{var h=o.onCaughtError;h(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Sv(o,s,l){return l=Ya(l),l.tag=3,l.payload={element:null},l.callback=function(){gf(o,s)},l}function nE(o){return o=Ya(o),o.tag=3,o}function rE(o,s,l,h){var v=l.type.getDerivedStateFromError;if(typeof v=="function"){var _=h.value;o.payload=function(){return v(_)},o.callback=function(){tE(s,l,h)}}var N=l.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(o.callback=function(){tE(s,l,h),typeof v!="function"&&(rs===null?rs=new Set([this]):rs.add(this));var j=h.stack;this.componentDidCatch(h.value,{componentStack:j!==null?j:""})})}function U3(o,s,l,h,v){if(l.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=l.alternate,s!==null&&uc(s,l,v,!0),l=Pr.current,l!==null){switch(l.tag){case 31:case 13:return oo===null?Cf():l.alternate===null&&an===0&&(an=3),l.flags&=-257,l.flags|=65536,l.lanes=v,h===nf?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([h]):s.add(h),Gv(o,h,v)),!1;case 22:return l.flags|=65536,h===nf?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([h]):l.add(h)),Gv(o,h,v)),!1}throw Error(r(435,l.tag))}return Gv(o,h,v),Cf(),!1}if(Rt)return s=Pr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,h!==zg&&(o=Error(r(422),{cause:h}),Ul(eo(o,l)))):(h!==zg&&(s=Error(r(423),{cause:h}),Ul(eo(s,l))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,h=eo(h,l),v=Sv(o.stateNode,h,v),Qg(o,v),an!==4&&(an=2)),!1;var _=Error(r(520),{cause:h});if(_=eo(_,l),ou===null?ou=[_]:ou.push(_),an!==4&&(an=2),s===null)return!0;h=eo(h,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,o=v&-v,l.lanes|=o,o=Sv(l.stateNode,h,o),Qg(l,o),!1;case 1:if(s=l.type,_=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(rs===null||!rs.has(_))))return l.flags|=65536,v&=-v,l.lanes|=v,v=nE(v),rE(v,o,l,h),Qg(l,v),!1}l=l.return}while(l!==null);return!1}var wv=Error(r(461)),gn=!1;function qn(o,s,l,h){s.child=o===null?iw(s,null,l,h):ii(s,o.child,l,h)}function oE(o,s,l,h,v){l=l.render;var _=s.ref;if("ref"in h){var N={};for(var j in h)j!=="ref"&&(N[j]=h[j])}else N=h;return ri(s),h=rv(o,s,l,N,_,v),j=ov(),o!==null&&!gn?(av(o,s,v),va(o,s,v)):(Rt&&j&&$g(s),s.flags|=1,qn(o,s,h,v),s.child)}function aE(o,s,l,h,v){if(o===null){var _=l.type;return typeof _=="function"&&!Dg(_)&&_.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=_,sE(o,s,_,h,v)):(o=Yd(l.type,null,h,s,s.mode,v),o.ref=s.ref,o.return=s,s.child=o)}if(_=o.child,!Iv(o,v)){var N=_.memoizedProps;if(l=l.compare,l=l!==null?l:Ll,l(N,h)&&o.ref===s.ref)return va(o,s,v)}return s.flags|=1,o=da(_,h),o.ref=s.ref,o.return=s,s.child=o}function sE(o,s,l,h,v){if(o!==null){var _=o.memoizedProps;if(Ll(_,h)&&o.ref===s.ref)if(gn=!1,s.pendingProps=h=_,Iv(o,v))(o.flags&131072)!==0&&(gn=!0);else return s.lanes=o.lanes,va(o,s,v)}return Ev(o,s,l,h,v)}function iE(o,s,l,h){var v=h.children,_=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((s.flags&128)!==0){if(_=_!==null?_.baseLanes|l:l,o!==null){for(h=s.child=o.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~_}else h=0,s.child=null;return cE(o,s,_,l,h)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&ef(s,_!==null?_.cachePool:null),_!==null?uw(s,_):Jg(),dw(s);else return h=s.lanes=536870912,cE(o,s,_!==null?_.baseLanes|l:l,l,h)}else _!==null?(ef(s,_.cachePool),uw(s,_),Ja(),s.memoizedState=null):(o!==null&&ef(s,null),Jg(),Ja());return qn(o,s,v,l),s.child}function Ql(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function cE(o,s,l,h,v){var _=Zg();return _=_===null?null:{parent:pn._currentValue,pool:_},s.memoizedState={baseLanes:l,cachePool:_},o!==null&&ef(s,null),Jg(),dw(s),o!==null&&uc(o,s,h,!0),s.childLanes=v,null}function vf(o,s){return s=_f({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function lE(o,s,l){return ii(s,o.child,null,l),o=vf(s,s.pendingProps),o.flags|=2,Dr(s),s.memoizedState=null,o}function z3(o,s,l){var h=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(Rt){if(h.mode==="hidden")return o=vf(s,h),s.lanes=536870912,Ql(null,o);if(tv(s),(o=Zt)?(o=SR(o,ro),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ha!==null?{id:Bo,overflow:qo}:null,retryLane:536870912,hydrationErrors:null},l=GS(o),l.return=s,s.child=l,Fn=s,Zt=null)):o=null,o===null)throw Za(s);return s.lanes=536870912,null}return vf(s,h)}var _=o.memoizedState;if(_!==null){var N=_.dehydrated;if(tv(s),v)if(s.flags&256)s.flags&=-257,s=lE(o,s,l);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(gn||uc(o,s,l,!1),v=(l&o.childLanes)!==0,gn||v){if(h=qt,h!==null&&(N=gr(h,l),N!==0&&N!==_.retryLane))throw _.retryLane=N,Js(o,N),Er(h,o,N),wv;Cf(),s=lE(o,s,l)}else o=_.treeContext,Zt=ao(N.nextSibling),Fn=s,Rt=!0,Ga=null,ro=!1,o!==null&&WS(s,o),s=vf(s,h),s.flags|=4096;return s}return o=da(o.child,{mode:h.mode,children:h.children}),o.ref=s.ref,s.child=o,o.return=s,o}function yf(o,s){var l=s.ref;if(l===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(o===null||o.ref!==l)&&(s.flags|=4194816)}}function Ev(o,s,l,h,v){return ri(s),l=rv(o,s,l,h,void 0,v),h=ov(),o!==null&&!gn?(av(o,s,v),va(o,s,v)):(Rt&&h&&$g(s),s.flags|=1,qn(o,s,l,v),s.child)}function uE(o,s,l,h,v,_){return ri(s),s.updateQueue=null,l=hw(s,h,l,v),fw(o),h=ov(),o!==null&&!gn?(av(o,s,_),va(o,s,_)):(Rt&&h&&$g(s),s.flags|=1,qn(o,s,l,_),s.child)}function dE(o,s,l,h,v){if(ri(s),s.stateNode===null){var _=sc,N=l.contextType;typeof N=="object"&&N!==null&&(_=Bn(N)),_=new l(h,_),s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=bv,s.stateNode=_,_._reactInternals=s,_=s.stateNode,_.props=h,_.state=s.memoizedState,_.refs={},Wg(s),N=l.contextType,_.context=typeof N=="object"&&N!==null?Bn(N):sc,_.state=s.memoizedState,N=l.getDerivedStateFromProps,typeof N=="function"&&(_v(s,l,N,h),_.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(N=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),N!==_.state&&bv.enqueueReplaceState(_,_.state,null),Gl(s,h,_,v),Hl(),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(o===null){_=s.stateNode;var j=s.memoizedProps,W=li(l,j);_.props=W;var de=_.context,we=l.contextType;N=sc,typeof we=="object"&&we!==null&&(N=Bn(we));var Te=l.getDerivedStateFromProps;we=typeof Te=="function"||typeof _.getSnapshotBeforeUpdate=="function",j=s.pendingProps!==j,we||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(j||de!==N)&&Qw(s,_,h,N),Wa=!1;var he=s.memoizedState;_.state=he,Gl(s,h,_,v),Hl(),de=s.memoizedState,j||he!==de||Wa?(typeof Te=="function"&&(_v(s,l,Te,h),de=s.memoizedState),(W=Wa||Yw(s,l,W,h,he,de,N))?(we||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=de),_.props=h,_.state=de,_.context=N,h=W):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{_=s.stateNode,Yg(o,s),N=s.memoizedProps,we=li(l,N),_.props=we,Te=s.pendingProps,he=_.context,de=l.contextType,W=sc,typeof de=="object"&&de!==null&&(W=Bn(de)),j=l.getDerivedStateFromProps,(de=typeof j=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(N!==Te||he!==W)&&Qw(s,_,h,W),Wa=!1,he=s.memoizedState,_.state=he,Gl(s,h,_,v),Hl();var ve=s.memoizedState;N!==Te||he!==ve||Wa||o!==null&&o.dependencies!==null&&Xd(o.dependencies)?(typeof j=="function"&&(_v(s,l,j,h),ve=s.memoizedState),(we=Wa||Yw(s,l,we,h,he,ve,W)||o!==null&&o.dependencies!==null&&Xd(o.dependencies))?(de||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,ve,W),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,ve,W)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||N===o.memoizedProps&&he===o.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===o.memoizedProps&&he===o.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ve),_.props=h,_.state=ve,_.context=W,h=we):(typeof _.componentDidUpdate!="function"||N===o.memoizedProps&&he===o.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||N===o.memoizedProps&&he===o.memoizedState||(s.flags|=1024),h=!1)}return _=h,yf(o,s),h=(s.flags&128)!==0,_||h?(_=s.stateNode,l=h&&typeof l.getDerivedStateFromError!="function"?null:_.render(),s.flags|=1,o!==null&&h?(s.child=ii(s,o.child,null,v),s.child=ii(s,null,l,v)):qn(o,s,l,v),s.memoizedState=_.state,o=s.child):o=va(o,s,v),o}function fE(o,s,l,h){return ti(),s.flags|=256,qn(o,s,l,h),s.child}var Rv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xv(o){return{baseLanes:o,cachePool:tw()}}function Tv(o,s,l){return o=o!==null?o.childLanes&~l:0,s&&(o|=jr),o}function hE(o,s,l){var h=s.pendingProps,v=!1,_=(s.flags&128)!==0,N;if((N=_)||(N=o!==null&&o.memoizedState===null?!1:(cn.current&2)!==0),N&&(v=!0,s.flags&=-129),N=(s.flags&32)!==0,s.flags&=-33,o===null){if(Rt){if(v?Xa(s):Ja(),(o=Zt)?(o=SR(o,ro),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ha!==null?{id:Bo,overflow:qo}:null,retryLane:536870912,hydrationErrors:null},l=GS(o),l.return=s,s.child=l,Fn=s,Zt=null)):o=null,o===null)throw Za(s);return cy(o)?s.lanes=32:s.lanes=536870912,null}var j=h.children;return h=h.fallback,v?(Ja(),v=s.mode,j=_f({mode:"hidden",children:j},v),h=ei(h,v,l,null),j.return=s,h.return=s,j.sibling=h,s.child=j,h=s.child,h.memoizedState=xv(l),h.childLanes=Tv(o,N,l),s.memoizedState=Rv,Ql(null,h)):(Xa(s),Ov(s,j))}var W=o.memoizedState;if(W!==null&&(j=W.dehydrated,j!==null)){if(_)s.flags&256?(Xa(s),s.flags&=-257,s=Cv(o,s,l)):s.memoizedState!==null?(Ja(),s.child=o.child,s.flags|=128,s=null):(Ja(),j=h.fallback,v=s.mode,h=_f({mode:"visible",children:h.children},v),j=ei(j,v,l,null),j.flags|=2,h.return=s,j.return=s,h.sibling=j,s.child=h,ii(s,o.child,null,l),h=s.child,h.memoizedState=xv(l),h.childLanes=Tv(o,N,l),s.memoizedState=Rv,s=Ql(null,h));else if(Xa(s),cy(j)){if(N=j.nextSibling&&j.nextSibling.dataset,N)var de=N.dgst;N=de,h=Error(r(419)),h.stack="",h.digest=N,Ul({value:h,source:null,stack:null}),s=Cv(o,s,l)}else if(gn||uc(o,s,l,!1),N=(l&o.childLanes)!==0,gn||N){if(N=qt,N!==null&&(h=gr(N,l),h!==0&&h!==W.retryLane))throw W.retryLane=h,Js(o,h),Er(N,o,h),wv;iy(j)||Cf(),s=Cv(o,s,l)}else iy(j)?(s.flags|=192,s.child=o.child,s=null):(o=W.treeContext,Zt=ao(j.nextSibling),Fn=s,Rt=!0,Ga=null,ro=!1,o!==null&&WS(s,o),s=Ov(s,h.children),s.flags|=4096);return s}return v?(Ja(),j=h.fallback,v=s.mode,W=o.child,de=W.sibling,h=da(W,{mode:"hidden",children:h.children}),h.subtreeFlags=W.subtreeFlags&65011712,de!==null?j=da(de,j):(j=ei(j,v,l,null),j.flags|=2),j.return=s,h.return=s,h.sibling=j,s.child=h,Ql(null,h),h=s.child,j=o.child.memoizedState,j===null?j=xv(l):(v=j.cachePool,v!==null?(W=pn._currentValue,v=v.parent!==W?{parent:W,pool:W}:v):v=tw(),j={baseLanes:j.baseLanes|l,cachePool:v}),h.memoizedState=j,h.childLanes=Tv(o,N,l),s.memoizedState=Rv,Ql(o.child,h)):(Xa(s),l=o.child,o=l.sibling,l=da(l,{mode:"visible",children:h.children}),l.return=s,l.sibling=null,o!==null&&(N=s.deletions,N===null?(s.deletions=[o],s.flags|=16):N.push(o)),s.child=l,s.memoizedState=null,l)}function Ov(o,s){return s=_f({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function _f(o,s){return o=Mr(22,o,null,s),o.lanes=0,o}function Cv(o,s,l){return ii(s,o.child,null,l),o=Ov(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function pE(o,s,l){o.lanes|=s;var h=o.alternate;h!==null&&(h.lanes|=s),Bg(o.return,s,l)}function Av(o,s,l,h,v,_){var N=o.memoizedState;N===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:v,treeForkCount:_}:(N.isBackwards=s,N.rendering=null,N.renderingStartTime=0,N.last=h,N.tail=l,N.tailMode=v,N.treeForkCount=_)}function mE(o,s,l){var h=s.pendingProps,v=h.revealOrder,_=h.tail;h=h.children;var N=cn.current,j=(N&2)!==0;if(j?(N=N&1|2,s.flags|=128):N&=1,B(cn,N),qn(o,s,h,l),h=Rt?$l:0,!j&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&pE(o,l,s);else if(o.tag===19)pE(o,l,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(l=s.child,v=null;l!==null;)o=l.alternate,o!==null&&sf(o)===null&&(v=l),l=l.sibling;l=v,l===null?(v=s.child,s.child=null):(v=l.sibling,l.sibling=null),Av(s,!1,v,l,_,h);break;case"backwards":case"unstable_legacy-backwards":for(l=null,v=s.child,s.child=null;v!==null;){if(o=v.alternate,o!==null&&sf(o)===null){s.child=v;break}o=v.sibling,v.sibling=l,l=v,v=o}Av(s,!0,l,null,_,h);break;case"together":Av(s,!1,null,null,void 0,h);break;default:s.memoizedState=null}return s.child}function va(o,s,l){if(o!==null&&(s.dependencies=o.dependencies),ns|=s.lanes,(l&s.childLanes)===0)if(o!==null){if(uc(o,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,l=da(o,o.pendingProps),s.child=l,l.return=s;o.sibling!==null;)o=o.sibling,l=l.sibling=da(o,o.pendingProps),l.return=s;l.sibling=null}return s.child}function Iv(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&Xd(o)))}function V3(o,s,l){switch(s.tag){case 3:_e(s,s.stateNode.containerInfo),Ka(s,pn,o.memoizedState.cache),ti();break;case 27:case 5:Ne(s);break;case 4:_e(s,s.stateNode.containerInfo);break;case 10:Ka(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,tv(s),null;break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Xa(s),s.flags|=128,null):(l&s.child.childLanes)!==0?hE(o,s,l):(Xa(s),o=va(o,s,l),o!==null?o.sibling:null);Xa(s);break;case 19:var v=(o.flags&128)!==0;if(h=(l&s.childLanes)!==0,h||(uc(o,s,l,!1),h=(l&s.childLanes)!==0),v){if(h)return mE(o,s,l);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),B(cn,cn.current),h)break;return null;case 22:return s.lanes=0,iE(o,s,l,s.pendingProps);case 24:Ka(s,pn,o.memoizedState.cache)}return va(o,s,l)}function gE(o,s,l){if(o!==null)if(o.memoizedProps!==s.pendingProps)gn=!0;else{if(!Iv(o,l)&&(s.flags&128)===0)return gn=!1,V3(o,s,l);gn=(o.flags&131072)!==0}else gn=!1,Rt&&(s.flags&1048576)!==0&&KS(s,$l,s.index);switch(s.lanes=0,s.tag){case 16:e:{var h=s.pendingProps;if(o=ai(s.elementType),s.type=o,typeof o=="function")Dg(o)?(h=li(o,h),s.tag=1,s=dE(null,s,o,h,l)):(s.tag=0,s=Ev(null,s,o,h,l));else{if(o!=null){var v=o.$$typeof;if(v===C){s.tag=11,s=oE(null,s,o,h,l);break e}else if(v===M){s.tag=14,s=aE(null,s,o,h,l);break e}}throw s=ee(o)||o,Error(r(306,s,""))}}return s;case 0:return Ev(o,s,s.type,s.pendingProps,l);case 1:return h=s.type,v=li(h,s.pendingProps),dE(o,s,h,v,l);case 3:e:{if(_e(s,s.stateNode.containerInfo),o===null)throw Error(r(387));h=s.pendingProps;var _=s.memoizedState;v=_.element,Yg(o,s),Gl(s,h,null,l);var N=s.memoizedState;if(h=N.cache,Ka(s,pn,h),h!==_.cache&&qg(s,[pn],l,!0),Hl(),h=N.element,_.isDehydrated)if(_={element:h,isDehydrated:!1,cache:N.cache},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){s=fE(o,s,h,l);break e}else if(h!==v){v=eo(Error(r(424)),s),Ul(v),s=fE(o,s,h,l);break e}else for(o=s.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Zt=ao(o.firstChild),Fn=s,Rt=!0,Ga=null,ro=!0,l=iw(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ti(),h===v){s=va(o,s,l);break e}qn(o,s,h,l)}s=s.child}return s;case 26:return yf(o,s),o===null?(l=OR(s.type,null,s.pendingProps,null))?s.memoizedState=l:Rt||(l=s.type,o=s.pendingProps,h=Df(X.current).createElement(l),h[Vn]=s,h[vr]=o,Hn(h,l,o),Mn(h),s.stateNode=h):s.memoizedState=OR(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return Ne(s),o===null&&Rt&&(h=s.stateNode=RR(s.type,s.pendingProps,X.current),Fn=s,ro=!0,v=Zt,is(s.type)?(ly=v,Zt=ao(h.firstChild)):Zt=v),qn(o,s,s.pendingProps.children,l),yf(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&Rt&&((v=h=Zt)&&(h=v5(h,s.type,s.pendingProps,ro),h!==null?(s.stateNode=h,Fn=s,Zt=ao(h.firstChild),ro=!1,v=!0):v=!1),v||Za(s)),Ne(s),v=s.type,_=s.pendingProps,N=o!==null?o.memoizedProps:null,h=_.children,oy(v,_)?h=null:N!==null&&oy(v,N)&&(s.flags|=32),s.memoizedState!==null&&(v=rv(o,s,N3,null,null,l),fu._currentValue=v),yf(o,s),qn(o,s,h,l),s.child;case 6:return o===null&&Rt&&((o=l=Zt)&&(l=y5(l,s.pendingProps,ro),l!==null?(s.stateNode=l,Fn=s,Zt=null,o=!0):o=!1),o||Za(s)),null;case 13:return hE(o,s,l);case 4:return _e(s,s.stateNode.containerInfo),h=s.pendingProps,o===null?s.child=ii(s,null,h,l):qn(o,s,h,l),s.child;case 11:return oE(o,s,s.type,s.pendingProps,l);case 7:return qn(o,s,s.pendingProps,l),s.child;case 8:return qn(o,s,s.pendingProps.children,l),s.child;case 12:return qn(o,s,s.pendingProps.children,l),s.child;case 10:return h=s.pendingProps,Ka(s,s.type,h.value),qn(o,s,h.children,l),s.child;case 9:return v=s.type._context,h=s.pendingProps.children,ri(s),v=Bn(v),h=h(v),s.flags|=1,qn(o,s,h,l),s.child;case 14:return aE(o,s,s.type,s.pendingProps,l);case 15:return sE(o,s,s.type,s.pendingProps,l);case 19:return mE(o,s,l);case 31:return z3(o,s,l);case 22:return iE(o,s,l,s.pendingProps);case 24:return ri(s),h=Bn(pn),o===null?(v=Zg(),v===null&&(v=qt,_=Hg(),v.pooledCache=_,_.refCount++,_!==null&&(v.pooledCacheLanes|=l),v=_),s.memoizedState={parent:h,cache:v},Wg(s),Ka(s,pn,v)):((o.lanes&l)!==0&&(Yg(o,s),Gl(s,null,null,l),Hl()),v=o.memoizedState,_=s.memoizedState,v.parent!==h?(v={parent:h,cache:h},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Ka(s,pn,h)):(h=_.cache,Ka(s,pn,h),h!==v.cache&&qg(s,[pn],l,!0))),qn(o,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function ya(o){o.flags|=4}function kv(o,s,l,h,v){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(BE())o.flags|=8192;else throw si=nf,Kg}else o.flags&=-16777217}function vE(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!NR(s))if(BE())o.flags|=8192;else throw si=nf,Kg}function bf(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?er():536870912,o.lanes|=s,wc|=s)}function Xl(o,s){if(!Rt)switch(o.tailMode){case"hidden":s=o.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function Kt(o){var s=o.alternate!==null&&o.alternate.child===o.child,l=0,h=0;if(s)for(var v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=h,o.childLanes=l,s}function F3(o,s,l){var h=s.pendingProps;switch(Ug(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(s),null;case 1:return Kt(s),null;case 3:return l=s.stateNode,h=null,o!==null&&(h=o.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),pa(pn),Ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(lc(s)?ya(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Vg())),Kt(s),null;case 26:var v=s.type,_=s.memoizedState;return o===null?(ya(s),_!==null?(Kt(s),vE(s,_)):(Kt(s),kv(s,v,null,h,l))):_?_!==o.memoizedState?(ya(s),Kt(s),vE(s,_)):(Kt(s),s.flags&=-16777217):(o=o.memoizedProps,o!==h&&ya(s),Kt(s),kv(s,v,o,h,l)),null;case 27:if(H(s),l=X.current,v=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==h&&ya(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return Kt(s),null}o=L.current,lc(s)?YS(s):(o=RR(v,h,l),s.stateNode=o,ya(s))}return Kt(s),null;case 5:if(H(s),v=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==h&&ya(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return Kt(s),null}if(_=L.current,lc(s))YS(s);else{var N=Df(X.current);switch(_){case 1:_=N.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:_=N.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":_=N.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":_=N.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":_=N.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof h.is=="string"?N.createElement("select",{is:h.is}):N.createElement("select"),h.multiple?_.multiple=!0:h.size&&(_.size=h.size);break;default:_=typeof h.is=="string"?N.createElement(v,{is:h.is}):N.createElement(v)}}_[Vn]=s,_[vr]=h;e:for(N=s.child;N!==null;){if(N.tag===5||N.tag===6)_.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===s)break e;for(;N.sibling===null;){if(N.return===null||N.return===s)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}s.stateNode=_;e:switch(Hn(_,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ya(s)}}return Kt(s),kv(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,l),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==h&&ya(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(o=X.current,lc(s)){if(o=s.stateNode,l=s.memoizedProps,h=null,v=Fn,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}o[Vn]=s,o=!!(o.nodeValue===l||h!==null&&h.suppressHydrationWarning===!0||hR(o.nodeValue,l)),o||Za(s,!0)}else o=Df(o).createTextNode(h),o[Vn]=s,s.stateNode=o}return Kt(s),null;case 31:if(l=s.memoizedState,o===null||o.memoizedState!==null){if(h=lc(s),l!==null){if(o===null){if(!h)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Vn]=s}else ti(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),o=!1}else l=Vg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return s.flags&256?(Dr(s),s):(Dr(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Kt(s),null;case 13:if(h=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=lc(s),h!==null&&h.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Vn]=s}else ti(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),v=!1}else v=Vg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(Dr(s),s):(Dr(s),null)}return Dr(s),(s.flags&128)!==0?(s.lanes=l,s):(l=h!==null,o=o!==null&&o.memoizedState!==null,l&&(h=s.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),_=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==v&&(h.flags|=2048)),l!==o&&l&&(s.child.flags|=8192),bf(s,s.updateQueue),Kt(s),null);case 4:return Ie(),o===null&&Jv(s.stateNode.containerInfo),Kt(s),null;case 10:return pa(s.type),Kt(s),null;case 19:if(q(cn),h=s.memoizedState,h===null)return Kt(s),null;if(v=(s.flags&128)!==0,_=h.rendering,_===null)if(v)Xl(h,!1);else{if(an!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(_=sf(o),_!==null){for(s.flags|=128,Xl(h,!1),o=_.updateQueue,s.updateQueue=o,bf(s,o),s.subtreeFlags=0,o=l,l=s.child;l!==null;)HS(l,o),l=l.sibling;return B(cn,cn.current&1|2),Rt&&fa(s,h.treeForkCount),s.child}o=o.sibling}h.tail!==null&&Ee()>xf&&(s.flags|=128,v=!0,Xl(h,!1),s.lanes=4194304)}else{if(!v)if(o=sf(_),o!==null){if(s.flags|=128,v=!0,o=o.updateQueue,s.updateQueue=o,bf(s,o),Xl(h,!0),h.tail===null&&h.tailMode==="hidden"&&!_.alternate&&!Rt)return Kt(s),null}else 2*Ee()-h.renderingStartTime>xf&&l!==536870912&&(s.flags|=128,v=!0,Xl(h,!1),s.lanes=4194304);h.isBackwards?(_.sibling=s.child,s.child=_):(o=h.last,o!==null?o.sibling=_:s.child=_,h.last=_)}return h.tail!==null?(o=h.tail,h.rendering=o,h.tail=o.sibling,h.renderingStartTime=Ee(),o.sibling=null,l=cn.current,B(cn,v?l&1|2:l&1),Rt&&fa(s,h.treeForkCount),o):(Kt(s),null);case 22:case 23:return Dr(s),ev(),h=s.memoizedState!==null,o!==null?o.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(l&536870912)!==0&&(s.flags&128)===0&&(Kt(s),s.subtreeFlags&6&&(s.flags|=8192)):Kt(s),l=s.updateQueue,l!==null&&bf(s,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==l&&(s.flags|=2048),o!==null&&q(oi),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),pa(pn),Kt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function B3(o,s){switch(Ug(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return pa(pn),Ie(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return H(s),null;case 31:if(s.memoizedState!==null){if(Dr(s),s.alternate===null)throw Error(r(340));ti()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(Dr(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));ti()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return q(cn),null;case 4:return Ie(),null;case 10:return pa(s.type),null;case 22:case 23:return Dr(s),ev(),o!==null&&q(oi),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return pa(pn),null;case 25:return null;default:return null}}function yE(o,s){switch(Ug(s),s.tag){case 3:pa(pn),Ie();break;case 26:case 27:case 5:H(s);break;case 4:Ie();break;case 31:s.memoizedState!==null&&Dr(s);break;case 13:Dr(s);break;case 19:q(cn);break;case 10:pa(s.type);break;case 22:case 23:Dr(s),ev(),o!==null&&q(oi);break;case 24:pa(pn)}}function Jl(o,s){try{var l=s.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var v=h.next;l=v;do{if((l.tag&o)===o){h=void 0;var _=l.create,N=l.inst;h=_(),N.destroy=h}l=l.next}while(l!==v)}}catch(j){Lt(s,s.return,j)}}function es(o,s,l){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var _=v.next;h=_;do{if((h.tag&o)===o){var N=h.inst,j=N.destroy;if(j!==void 0){N.destroy=void 0,v=s;var W=l,de=j;try{de()}catch(we){Lt(v,W,we)}}}h=h.next}while(h!==_)}}catch(we){Lt(s,s.return,we)}}function _E(o){var s=o.updateQueue;if(s!==null){var l=o.stateNode;try{lw(s,l)}catch(h){Lt(o,o.return,h)}}}function bE(o,s,l){l.props=li(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(h){Lt(o,s,h)}}function eu(o,s){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var h=o.stateNode;break;case 30:h=o.stateNode;break;default:h=o.stateNode}typeof l=="function"?o.refCleanup=l(h):l.current=h}}catch(v){Lt(o,s,v)}}function Ho(o,s){var l=o.ref,h=o.refCleanup;if(l!==null)if(typeof h=="function")try{h()}catch(v){Lt(o,s,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(v){Lt(o,s,v)}else l.current=null}function SE(o){var s=o.type,l=o.memoizedProps,h=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":l.autoFocus&&h.focus();break e;case"img":l.src?h.src=l.src:l.srcSet&&(h.srcset=l.srcSet)}}catch(v){Lt(o,o.return,v)}}function Nv(o,s,l){try{var h=o.stateNode;d5(h,o.type,l,s),h[vr]=s}catch(v){Lt(o,o.return,v)}}function wE(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&is(o.type)||o.tag===4}function Mv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||wE(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&is(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Pv(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(o,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(o),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=la));else if(h!==4&&(h===27&&is(o.type)&&(l=o.stateNode,s=null),o=o.child,o!==null))for(Pv(o,s,l),o=o.sibling;o!==null;)Pv(o,s,l),o=o.sibling}function Sf(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?l.insertBefore(o,s):l.appendChild(o);else if(h!==4&&(h===27&&is(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(Sf(o,s,l),o=o.sibling;o!==null;)Sf(o,s,l),o=o.sibling}function EE(o){var s=o.stateNode,l=o.memoizedProps;try{for(var h=o.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);Hn(s,h,l),s[Vn]=o,s[vr]=l}catch(_){Lt(o,o.return,_)}}var _a=!1,vn=!1,Dv=!1,RE=typeof WeakSet=="function"?WeakSet:Set,Pn=null;function q3(o,s){if(o=o.containerInfo,ny=Ff,o=LS(o),Cg(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var v=h.anchorOffset,_=h.focusNode;h=h.focusOffset;try{l.nodeType,_.nodeType}catch{l=null;break e}var N=0,j=-1,W=-1,de=0,we=0,Te=o,he=null;t:for(;;){for(var ve;Te!==l||v!==0&&Te.nodeType!==3||(j=N+v),Te!==_||h!==0&&Te.nodeType!==3||(W=N+h),Te.nodeType===3&&(N+=Te.nodeValue.length),(ve=Te.firstChild)!==null;)he=Te,Te=ve;for(;;){if(Te===o)break t;if(he===l&&++de===v&&(j=N),he===_&&++we===h&&(W=N),(ve=Te.nextSibling)!==null)break;Te=he,he=Te.parentNode}Te=ve}l=j===-1||W===-1?null:{start:j,end:W}}else l=null}l=l||{start:0,end:0}}else l=null;for(ry={focusedElem:o,selectionRange:l},Ff=!1,Pn=s;Pn!==null;)if(s=Pn,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Pn=o;else for(;Pn!==null;){switch(s=Pn,_=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(l=0;l<o.length;l++)v=o[l],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&_!==null){o=void 0,l=s,v=_.memoizedProps,_=_.memoizedState,h=l.stateNode;try{var Ue=li(l.type,v);o=h.getSnapshotBeforeUpdate(Ue,_),h.__reactInternalSnapshotBeforeUpdate=o}catch(Ke){Lt(l,l.return,Ke)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,l=o.nodeType,l===9)sy(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":sy(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=s.sibling,o!==null){o.return=s.return,Pn=o;break}Pn=s.return}}function xE(o,s,l){var h=l.flags;switch(l.tag){case 0:case 11:case 15:Sa(o,l),h&4&&Jl(5,l);break;case 1:if(Sa(o,l),h&4)if(o=l.stateNode,s===null)try{o.componentDidMount()}catch(N){Lt(l,l.return,N)}else{var v=li(l.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(v,s,o.__reactInternalSnapshotBeforeUpdate)}catch(N){Lt(l,l.return,N)}}h&64&&_E(l),h&512&&eu(l,l.return);break;case 3:if(Sa(o,l),h&64&&(o=l.updateQueue,o!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{lw(o,s)}catch(N){Lt(l,l.return,N)}}break;case 27:s===null&&h&4&&EE(l);case 26:case 5:Sa(o,l),s===null&&h&4&&SE(l),h&512&&eu(l,l.return);break;case 12:Sa(o,l);break;case 31:Sa(o,l),h&4&&CE(o,l);break;case 13:Sa(o,l),h&4&&AE(o,l),h&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=J3.bind(null,l),_5(o,l))));break;case 22:if(h=l.memoizedState!==null||_a,!h){s=s!==null&&s.memoizedState!==null||vn,v=_a;var _=vn;_a=h,(vn=s)&&!_?wa(o,l,(l.subtreeFlags&8772)!==0):Sa(o,l),_a=v,vn=_}break;case 30:break;default:Sa(o,l)}}function TE(o){var s=o.alternate;s!==null&&(o.alternate=null,TE(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&dg(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Yt=null,_r=!1;function ba(o,s,l){for(l=l.child;l!==null;)OE(o,s,l),l=l.sibling}function OE(o,s,l){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Un,l)}catch{}switch(l.tag){case 26:vn||Ho(l,s),ba(o,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:vn||Ho(l,s);var h=Yt,v=_r;is(l.type)&&(Yt=l.stateNode,_r=!1),ba(o,s,l),lu(l.stateNode),Yt=h,_r=v;break;case 5:vn||Ho(l,s);case 6:if(h=Yt,v=_r,Yt=null,ba(o,s,l),Yt=h,_r=v,Yt!==null)if(_r)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(l.stateNode)}catch(_){Lt(l,s,_)}else try{Yt.removeChild(l.stateNode)}catch(_){Lt(l,s,_)}break;case 18:Yt!==null&&(_r?(o=Yt,_R(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),Ic(o)):_R(Yt,l.stateNode));break;case 4:h=Yt,v=_r,Yt=l.stateNode.containerInfo,_r=!0,ba(o,s,l),Yt=h,_r=v;break;case 0:case 11:case 14:case 15:es(2,l,s),vn||es(4,l,s),ba(o,s,l);break;case 1:vn||(Ho(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"&&bE(l,s,h)),ba(o,s,l);break;case 21:ba(o,s,l);break;case 22:vn=(h=vn)||l.memoizedState!==null,ba(o,s,l),vn=h;break;default:ba(o,s,l)}}function CE(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Ic(o)}catch(l){Lt(s,s.return,l)}}}function AE(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ic(o)}catch(l){Lt(s,s.return,l)}}function H3(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new RE),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new RE),s;default:throw Error(r(435,o.tag))}}function wf(o,s){var l=H3(o);s.forEach(function(h){if(!l.has(h)){l.add(h);var v=e5.bind(null,o,h);h.then(v,v)}})}function br(o,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var v=l[h],_=o,N=s,j=N;e:for(;j!==null;){switch(j.tag){case 27:if(is(j.type)){Yt=j.stateNode,_r=!1;break e}break;case 5:Yt=j.stateNode,_r=!1;break e;case 3:case 4:Yt=j.stateNode.containerInfo,_r=!0;break e}j=j.return}if(Yt===null)throw Error(r(160));OE(_,N,v),Yt=null,_r=!1,_=v.alternate,_!==null&&(_.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)IE(s,o),s=s.sibling}var Eo=null;function IE(o,s){var l=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:br(s,o),Sr(o),h&4&&(es(3,o,o.return),Jl(3,o),es(5,o,o.return));break;case 1:br(s,o),Sr(o),h&512&&(vn||l===null||Ho(l,l.return)),h&64&&_a&&(o=o.updateQueue,o!==null&&(h=o.callbacks,h!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?h:l.concat(h))));break;case 26:var v=Eo;if(br(s,o),Sr(o),h&512&&(vn||l===null||Ho(l,l.return)),h&4){var _=l!==null?l.memoizedState:null;if(h=o.memoizedState,l===null)if(h===null)if(o.stateNode===null){e:{h=o.type,l=o.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":_=v.getElementsByTagName("title")[0],(!_||_[Ol]||_[Vn]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=v.createElement(h),v.head.insertBefore(_,v.querySelector("head > title"))),Hn(_,h,l),_[Vn]=o,Mn(_),h=_;break e;case"link":var N=IR("link","href",v).get(h+(l.href||""));if(N){for(var j=0;j<N.length;j++)if(_=N[j],_.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&_.getAttribute("rel")===(l.rel==null?null:l.rel)&&_.getAttribute("title")===(l.title==null?null:l.title)&&_.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){N.splice(j,1);break t}}_=v.createElement(h),Hn(_,h,l),v.head.appendChild(_);break;case"meta":if(N=IR("meta","content",v).get(h+(l.content||""))){for(j=0;j<N.length;j++)if(_=N[j],_.getAttribute("content")===(l.content==null?null:""+l.content)&&_.getAttribute("name")===(l.name==null?null:l.name)&&_.getAttribute("property")===(l.property==null?null:l.property)&&_.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&_.getAttribute("charset")===(l.charSet==null?null:l.charSet)){N.splice(j,1);break t}}_=v.createElement(h),Hn(_,h,l),v.head.appendChild(_);break;default:throw Error(r(468,h))}_[Vn]=o,Mn(_),h=_}o.stateNode=h}else kR(v,o.type,o.stateNode);else o.stateNode=AR(v,h,o.memoizedProps);else _!==h?(_===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):_.count--,h===null?kR(v,o.type,o.stateNode):AR(v,h,o.memoizedProps)):h===null&&o.stateNode!==null&&Nv(o,o.memoizedProps,l.memoizedProps)}break;case 27:br(s,o),Sr(o),h&512&&(vn||l===null||Ho(l,l.return)),l!==null&&h&4&&Nv(o,o.memoizedProps,l.memoizedProps);break;case 5:if(br(s,o),Sr(o),h&512&&(vn||l===null||Ho(l,l.return)),o.flags&32){v=o.stateNode;try{Ji(v,"")}catch(Ue){Lt(o,o.return,Ue)}}h&4&&o.stateNode!=null&&(v=o.memoizedProps,Nv(o,v,l!==null?l.memoizedProps:v)),h&1024&&(Dv=!0);break;case 6:if(br(s,o),Sr(o),h&4){if(o.stateNode===null)throw Error(r(162));h=o.memoizedProps,l=o.stateNode;try{l.nodeValue=h}catch(Ue){Lt(o,o.return,Ue)}}break;case 3:if($f=null,v=Eo,Eo=Lf(s.containerInfo),br(s,o),Eo=v,Sr(o),h&4&&l!==null&&l.memoizedState.isDehydrated)try{Ic(s.containerInfo)}catch(Ue){Lt(o,o.return,Ue)}Dv&&(Dv=!1,kE(o));break;case 4:h=Eo,Eo=Lf(o.stateNode.containerInfo),br(s,o),Sr(o),Eo=h;break;case 12:br(s,o),Sr(o);break;case 31:br(s,o),Sr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,wf(o,h)));break;case 13:br(s,o),Sr(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Rf=Ee()),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,wf(o,h)));break;case 22:v=o.memoizedState!==null;var W=l!==null&&l.memoizedState!==null,de=_a,we=vn;if(_a=de||v,vn=we||W,br(s,o),vn=we,_a=de,Sr(o),h&8192)e:for(s=o.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(l===null||W||_a||vn||ui(o)),l=null,s=o;;){if(s.tag===5||s.tag===26){if(l===null){W=l=s;try{if(_=W.stateNode,v)N=_.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{j=W.stateNode;var Te=W.memoizedProps.style,he=Te!=null&&Te.hasOwnProperty("display")?Te.display:null;j.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(Ue){Lt(W,W.return,Ue)}}}else if(s.tag===6){if(l===null){W=s;try{W.stateNode.nodeValue=v?"":W.memoizedProps}catch(Ue){Lt(W,W.return,Ue)}}}else if(s.tag===18){if(l===null){W=s;try{var ve=W.stateNode;v?bR(ve,!0):bR(W.stateNode,!1)}catch(Ue){Lt(W,W.return,Ue)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=o.updateQueue,h!==null&&(l=h.retryQueue,l!==null&&(h.retryQueue=null,wf(o,l))));break;case 19:br(s,o),Sr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,wf(o,h)));break;case 30:break;case 21:break;default:br(s,o),Sr(o)}}function Sr(o){var s=o.flags;if(s&2){try{for(var l,h=o.return;h!==null;){if(wE(h)){l=h;break}h=h.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var v=l.stateNode,_=Mv(o);Sf(o,_,v);break;case 5:var N=l.stateNode;l.flags&32&&(Ji(N,""),l.flags&=-33);var j=Mv(o);Sf(o,j,N);break;case 3:case 4:var W=l.stateNode.containerInfo,de=Mv(o);Pv(o,de,W);break;default:throw Error(r(161))}}catch(we){Lt(o,o.return,we)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function kE(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;kE(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function Sa(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)xE(o,s.alternate,s),s=s.sibling}function ui(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:es(4,s,s.return),ui(s);break;case 1:Ho(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&bE(s,s.return,l),ui(s);break;case 27:lu(s.stateNode);case 26:case 5:Ho(s,s.return),ui(s);break;case 22:s.memoizedState===null&&ui(s);break;case 30:ui(s);break;default:ui(s)}o=o.sibling}}function wa(o,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,v=o,_=s,N=_.flags;switch(_.tag){case 0:case 11:case 15:wa(v,_,l),Jl(4,_);break;case 1:if(wa(v,_,l),h=_,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(de){Lt(h,h.return,de)}if(h=_,v=h.updateQueue,v!==null){var j=h.stateNode;try{var W=v.shared.hiddenCallbacks;if(W!==null)for(v.shared.hiddenCallbacks=null,v=0;v<W.length;v++)cw(W[v],j)}catch(de){Lt(h,h.return,de)}}l&&N&64&&_E(_),eu(_,_.return);break;case 27:EE(_);case 26:case 5:wa(v,_,l),l&&h===null&&N&4&&SE(_),eu(_,_.return);break;case 12:wa(v,_,l);break;case 31:wa(v,_,l),l&&N&4&&CE(v,_);break;case 13:wa(v,_,l),l&&N&4&&AE(v,_);break;case 22:_.memoizedState===null&&wa(v,_,l),eu(_,_.return);break;case 30:break;default:wa(v,_,l)}s=s.sibling}}function Lv(o,s){var l=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==l&&(o!=null&&o.refCount++,l!=null&&zl(l))}function jv(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&zl(o))}function Ro(o,s,l,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)NE(o,s,l,h),s=s.sibling}function NE(o,s,l,h){var v=s.flags;switch(s.tag){case 0:case 11:case 15:Ro(o,s,l,h),v&2048&&Jl(9,s);break;case 1:Ro(o,s,l,h);break;case 3:Ro(o,s,l,h),v&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&zl(o)));break;case 12:if(v&2048){Ro(o,s,l,h),o=s.stateNode;try{var _=s.memoizedProps,N=_.id,j=_.onPostCommit;typeof j=="function"&&j(N,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(W){Lt(s,s.return,W)}}else Ro(o,s,l,h);break;case 31:Ro(o,s,l,h);break;case 13:Ro(o,s,l,h);break;case 23:break;case 22:_=s.stateNode,N=s.alternate,s.memoizedState!==null?_._visibility&2?Ro(o,s,l,h):tu(o,s):_._visibility&2?Ro(o,s,l,h):(_._visibility|=2,_c(o,s,l,h,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Lv(N,s);break;case 24:Ro(o,s,l,h),v&2048&&jv(s.alternate,s);break;default:Ro(o,s,l,h)}}function _c(o,s,l,h,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var _=o,N=s,j=l,W=h,de=N.flags;switch(N.tag){case 0:case 11:case 15:_c(_,N,j,W,v),Jl(8,N);break;case 23:break;case 22:var we=N.stateNode;N.memoizedState!==null?we._visibility&2?_c(_,N,j,W,v):tu(_,N):(we._visibility|=2,_c(_,N,j,W,v)),v&&de&2048&&Lv(N.alternate,N);break;case 24:_c(_,N,j,W,v),v&&de&2048&&jv(N.alternate,N);break;default:_c(_,N,j,W,v)}s=s.sibling}}function tu(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=o,h=s,v=h.flags;switch(h.tag){case 22:tu(l,h),v&2048&&Lv(h.alternate,h);break;case 24:tu(l,h),v&2048&&jv(h.alternate,h);break;default:tu(l,h)}s=s.sibling}}var nu=8192;function bc(o,s,l){if(o.subtreeFlags&nu)for(o=o.child;o!==null;)ME(o,s,l),o=o.sibling}function ME(o,s,l){switch(o.tag){case 26:bc(o,s,l),o.flags&nu&&o.memoizedState!==null&&k5(l,Eo,o.memoizedState,o.memoizedProps);break;case 5:bc(o,s,l);break;case 3:case 4:var h=Eo;Eo=Lf(o.stateNode.containerInfo),bc(o,s,l),Eo=h;break;case 22:o.memoizedState===null&&(h=o.alternate,h!==null&&h.memoizedState!==null?(h=nu,nu=16777216,bc(o,s,l),nu=h):bc(o,s,l));break;default:bc(o,s,l)}}function PE(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function ru(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Pn=h,LE(h,o)}PE(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)DE(o),o=o.sibling}function DE(o){switch(o.tag){case 0:case 11:case 15:ru(o),o.flags&2048&&es(9,o,o.return);break;case 3:ru(o);break;case 12:ru(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,Ef(o)):ru(o);break;default:ru(o)}}function Ef(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Pn=h,LE(h,o)}PE(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:es(8,s,s.return),Ef(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,Ef(s));break;default:Ef(s)}o=o.sibling}}function LE(o,s){for(;Pn!==null;){var l=Pn;switch(l.tag){case 0:case 11:case 15:es(8,l,s);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var h=l.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:zl(l.memoizedState.cache)}if(h=l.child,h!==null)h.return=l,Pn=h;else e:for(l=o;Pn!==null;){h=Pn;var v=h.sibling,_=h.return;if(TE(h),h===l){Pn=null;break e}if(v!==null){v.return=_,Pn=v;break e}Pn=_}}}var G3={getCacheForType:function(o){var s=Bn(pn),l=s.data.get(o);return l===void 0&&(l=o(),s.data.set(o,l)),l},cacheSignal:function(){return Bn(pn).controller.signal}},Z3=typeof WeakMap=="function"?WeakMap:Map,Nt=0,qt=null,vt=null,St=0,Dt=0,Lr=null,ts=!1,Sc=!1,$v=!1,Ea=0,an=0,ns=0,di=0,Uv=0,jr=0,wc=0,ou=null,wr=null,zv=!1,Rf=0,jE=0,xf=1/0,Tf=null,rs=null,xn=0,os=null,Ec=null,Ra=0,Vv=0,Fv=null,$E=null,au=0,Bv=null;function $r(){return(Nt&2)!==0&&St!==0?St&-St:F.T!==null?Wv():lg()}function UE(){if(jr===0)if((St&536870912)===0||Rt){var o=Hi;Hi<<=1,(Hi&3932160)===0&&(Hi=262144),jr=o}else jr=536870912;return o=Pr.current,o!==null&&(o.flags|=32),jr}function Er(o,s,l){(o===qt&&(Dt===2||Dt===9)||o.cancelPendingCommit!==null)&&(Rc(o,0),as(o,St,jr,!1)),tn(o,l),((Nt&2)===0||o!==qt)&&(o===qt&&((Nt&2)===0&&(di|=l),an===4&&as(o,St,jr,!1)),Go(o))}function zE(o,s,l){if((Nt&6)!==0)throw Error(r(327));var h=!l&&(s&127)===0&&(s&o.expiredLanes)===0||Wt(o,s),v=h?Y3(o,s):Hv(o,s,!0),_=h;do{if(v===0){Sc&&!h&&as(o,s,0,!1);break}else{if(l=o.current.alternate,_&&!K3(l)){v=Hv(o,s,!1),_=!1;continue}if(v===2){if(_=s,o.errorRecoveryDisabledLanes&_)var N=0;else N=o.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){s=N;e:{var j=o;v=ou;var W=j.current.memoizedState.isDehydrated;if(W&&(Rc(j,N).flags|=256),N=Hv(j,N,!1),N!==2){if($v&&!W){j.errorRecoveryDisabledLanes|=_,di|=_,v=4;break e}_=wr,wr=v,_!==null&&(wr===null?wr=_:wr.push.apply(wr,_))}v=N}if(_=!1,v!==2)continue}}if(v===1){Rc(o,0),as(o,s,0,!0);break}e:{switch(h=o,_=v,_){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:as(h,s,jr,!ts);break e;case 2:wr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=Rf+300-Ee(),10<v)){if(as(h,s,jr,!ts),Qe(h,0,!0)!==0)break e;Ra=s,h.timeoutHandle=vR(VE.bind(null,h,l,wr,Tf,zv,s,jr,di,wc,ts,_,"Throttled",-0,0),v);break e}VE(h,l,wr,Tf,zv,s,jr,di,wc,ts,_,null,-0,0)}}break}while(!0);Go(o)}function VE(o,s,l,h,v,_,N,j,W,de,we,Te,he,ve){if(o.timeoutHandle=-1,Te=s.subtreeFlags,Te&8192||(Te&16785408)===16785408){Te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},ME(s,_,Te);var Ue=(_&62914560)===_?Rf-Ee():(_&4194048)===_?jE-Ee():0;if(Ue=N5(Te,Ue),Ue!==null){Ra=_,o.cancelPendingCommit=Ue(WE.bind(null,o,s,_,l,h,v,N,j,W,we,Te,null,he,ve)),as(o,_,N,!de);return}}WE(o,s,_,l,h,v,N,j,W)}function K3(o){for(var s=o;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var h=0;h<l.length;h++){var v=l[h],_=v.getSnapshot;v=v.value;try{if(!Nr(_(),v))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function as(o,s,l,h){s&=~Uv,s&=~di,o.suspendedLanes|=s,o.pingedLanes&=~s,h&&(o.warmLanes|=s),h=o.expirationTimes;for(var v=s;0<v;){var _=31-kn(v),N=1<<_;h[_]=-1,v&=~N}l!==0&&Ks(o,l,s)}function Of(){return(Nt&6)===0?(su(0),!1):!0}function qv(){if(vt!==null){if(Dt===0)var o=vt.return;else o=vt,ha=ni=null,sv(o),pc=null,Fl=0,o=vt;for(;o!==null;)yE(o.alternate,o),o=o.return;vt=null}}function Rc(o,s){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,p5(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),Ra=0,qv(),qt=o,vt=l=da(o.current,null),St=s,Dt=0,Lr=null,ts=!1,Sc=Wt(o,s),$v=!1,wc=jr=Uv=di=ns=an=0,wr=ou=null,zv=!1,(s&8)!==0&&(s|=s&32);var h=o.entangledLanes;if(h!==0)for(o=o.entanglements,h&=s;0<h;){var v=31-kn(h),_=1<<v;s|=o[v],h&=~_}return Ea=s,Zd(),l}function FE(o,s){st=null,F.H=Yl,s===hc||s===tf?(s=ow(),Dt=3):s===Kg?(s=ow(),Dt=4):Dt=s===wv?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Lr=s,vt===null&&(an=1,gf(o,eo(s,o.current)))}function BE(){var o=Pr.current;return o===null?!0:(St&4194048)===St?oo===null:(St&62914560)===St||(St&536870912)!==0?o===oo:!1}function qE(){var o=F.H;return F.H=Yl,o===null?Yl:o}function HE(){var o=F.A;return F.A=G3,o}function Cf(){an=4,ts||(St&4194048)!==St&&Pr.current!==null||(Sc=!0),(ns&134217727)===0&&(di&134217727)===0||qt===null||as(qt,St,jr,!1)}function Hv(o,s,l){var h=Nt;Nt|=2;var v=qE(),_=HE();(qt!==o||St!==s)&&(Tf=null,Rc(o,s)),s=!1;var N=an;e:do try{if(Dt!==0&&vt!==null){var j=vt,W=Lr;switch(Dt){case 8:qv(),N=6;break e;case 3:case 2:case 9:case 6:Pr.current===null&&(s=!0);var de=Dt;if(Dt=0,Lr=null,xc(o,j,W,de),l&&Sc){N=0;break e}break;default:de=Dt,Dt=0,Lr=null,xc(o,j,W,de)}}W3(),N=an;break}catch(we){FE(o,we)}while(!0);return s&&o.shellSuspendCounter++,ha=ni=null,Nt=h,F.H=v,F.A=_,vt===null&&(qt=null,St=0,Zd()),N}function W3(){for(;vt!==null;)GE(vt)}function Y3(o,s){var l=Nt;Nt|=2;var h=qE(),v=HE();qt!==o||St!==s?(Tf=null,xf=Ee()+500,Rc(o,s)):Sc=Wt(o,s);e:do try{if(Dt!==0&&vt!==null){s=vt;var _=Lr;t:switch(Dt){case 1:Dt=0,Lr=null,xc(o,s,_,1);break;case 2:case 9:if(nw(_)){Dt=0,Lr=null,ZE(s);break}s=function(){Dt!==2&&Dt!==9||qt!==o||(Dt=7),Go(o)},_.then(s,s);break e;case 3:Dt=7;break e;case 4:Dt=5;break e;case 7:nw(_)?(Dt=0,Lr=null,ZE(s)):(Dt=0,Lr=null,xc(o,s,_,7));break;case 5:var N=null;switch(vt.tag){case 26:N=vt.memoizedState;case 5:case 27:var j=vt;if(N?NR(N):j.stateNode.complete){Dt=0,Lr=null;var W=j.sibling;if(W!==null)vt=W;else{var de=j.return;de!==null?(vt=de,Af(de)):vt=null}break t}}Dt=0,Lr=null,xc(o,s,_,5);break;case 6:Dt=0,Lr=null,xc(o,s,_,6);break;case 8:qv(),an=6;break e;default:throw Error(r(462))}}Q3();break}catch(we){FE(o,we)}while(!0);return ha=ni=null,F.H=h,F.A=v,Nt=l,vt!==null?0:(qt=null,St=0,Zd(),an)}function Q3(){for(;vt!==null&&!ne();)GE(vt)}function GE(o){var s=gE(o.alternate,o,Ea);o.memoizedProps=o.pendingProps,s===null?Af(o):vt=s}function ZE(o){var s=o,l=s.alternate;switch(s.tag){case 15:case 0:s=uE(l,s,s.pendingProps,s.type,void 0,St);break;case 11:s=uE(l,s,s.pendingProps,s.type.render,s.ref,St);break;case 5:sv(s);default:yE(l,s),s=vt=HS(s,Ea),s=gE(l,s,Ea)}o.memoizedProps=o.pendingProps,s===null?Af(o):vt=s}function xc(o,s,l,h){ha=ni=null,sv(s),pc=null,Fl=0;var v=s.return;try{if(U3(o,v,s,l,St)){an=1,gf(o,eo(l,o.current)),vt=null;return}}catch(_){if(v!==null)throw vt=v,_;an=1,gf(o,eo(l,o.current)),vt=null;return}s.flags&32768?(Rt||h===1?o=!0:Sc||(St&536870912)!==0?o=!1:(ts=o=!0,(h===2||h===9||h===3||h===6)&&(h=Pr.current,h!==null&&h.tag===13&&(h.flags|=16384))),KE(s,o)):Af(s)}function Af(o){var s=o;do{if((s.flags&32768)!==0){KE(s,ts);return}o=s.return;var l=F3(s.alternate,s,Ea);if(l!==null){vt=l;return}if(s=s.sibling,s!==null){vt=s;return}vt=s=o}while(s!==null);an===0&&(an=5)}function KE(o,s){do{var l=B3(o.alternate,o);if(l!==null){l.flags&=32767,vt=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(o=o.sibling,o!==null)){vt=o;return}vt=o=l}while(o!==null);an=6,vt=null}function WE(o,s,l,h,v,_,N,j,W){o.cancelPendingCommit=null;do If();while(xn!==0);if((Nt&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(_=s.lanes|s.childLanes,_|=Mg,pr(o,l,_,N,j,W),o===qt&&(vt=qt=null,St=0),Ec=s,os=o,Ra=l,Vv=_,Fv=v,$E=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,t5(ot,function(){return eR(),null})):(o.callbackNode=null,o.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=F.T,F.T=null,v=J.p,J.p=2,N=Nt,Nt|=4;try{q3(o,s,l)}finally{Nt=N,J.p=v,F.T=h}}xn=1,YE(),QE(),XE()}}function YE(){if(xn===1){xn=0;var o=os,s=Ec,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=F.T,F.T=null;var h=J.p;J.p=2;var v=Nt;Nt|=4;try{IE(s,o);var _=ry,N=LS(o.containerInfo),j=_.focusedElem,W=_.selectionRange;if(N!==j&&j&&j.ownerDocument&&DS(j.ownerDocument.documentElement,j)){if(W!==null&&Cg(j)){var de=W.start,we=W.end;if(we===void 0&&(we=de),"selectionStart"in j)j.selectionStart=de,j.selectionEnd=Math.min(we,j.value.length);else{var Te=j.ownerDocument||document,he=Te&&Te.defaultView||window;if(he.getSelection){var ve=he.getSelection(),Ue=j.textContent.length,Ke=Math.min(W.start,Ue),Ft=W.end===void 0?Ke:Math.min(W.end,Ue);!ve.extend&&Ke>Ft&&(N=Ft,Ft=Ke,Ke=N);var se=PS(j,Ke),te=PS(j,Ft);if(se&&te&&(ve.rangeCount!==1||ve.anchorNode!==se.node||ve.anchorOffset!==se.offset||ve.focusNode!==te.node||ve.focusOffset!==te.offset)){var ue=Te.createRange();ue.setStart(se.node,se.offset),ve.removeAllRanges(),Ke>Ft?(ve.addRange(ue),ve.extend(te.node,te.offset)):(ue.setEnd(te.node,te.offset),ve.addRange(ue))}}}}for(Te=[],ve=j;ve=ve.parentNode;)ve.nodeType===1&&Te.push({element:ve,left:ve.scrollLeft,top:ve.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<Te.length;j++){var Re=Te[j];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}Ff=!!ny,ry=ny=null}finally{Nt=v,J.p=h,F.T=l}}o.current=s,xn=2}}function QE(){if(xn===2){xn=0;var o=os,s=Ec,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=F.T,F.T=null;var h=J.p;J.p=2;var v=Nt;Nt|=4;try{xE(o,s.alternate,s)}finally{Nt=v,J.p=h,F.T=l}}xn=3}}function XE(){if(xn===4||xn===3){xn=0,oe();var o=os,s=Ec,l=Ra,h=$E;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?xn=5:(xn=0,Ec=os=null,JE(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(rs=null),So(l),s=s.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Un,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=F.T,v=J.p,J.p=2,F.T=null;try{for(var _=o.onRecoverableError,N=0;N<h.length;N++){var j=h[N];_(j.value,{componentStack:j.stack})}}finally{F.T=s,J.p=v}}(Ra&3)!==0&&If(),Go(o),v=o.pendingLanes,(l&261930)!==0&&(v&42)!==0?o===Bv?au++:(au=0,Bv=o):au=0,su(0)}}function JE(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,zl(s)))}function If(){return YE(),QE(),XE(),eR()}function eR(){if(xn!==5)return!1;var o=os,s=Vv;Vv=0;var l=So(Ra),h=F.T,v=J.p;try{J.p=32>l?32:l,F.T=null,l=Fv,Fv=null;var _=os,N=Ra;if(xn=0,Ec=os=null,Ra=0,(Nt&6)!==0)throw Error(r(331));var j=Nt;if(Nt|=4,DE(_.current),NE(_,_.current,N,l),Nt=j,su(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Un,_)}catch{}return!0}finally{J.p=v,F.T=h,JE(o,s)}}function tR(o,s,l){s=eo(l,s),s=Sv(o.stateNode,s,2),o=Qa(o,s,2),o!==null&&(tn(o,2),Go(o))}function Lt(o,s,l){if(o.tag===3)tR(o,o,l);else for(;s!==null;){if(s.tag===3){tR(s,o,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(rs===null||!rs.has(h))){o=eo(l,o),l=nE(2),h=Qa(s,l,2),h!==null&&(rE(l,h,s,o),tn(h,2),Go(h));break}}s=s.return}}function Gv(o,s,l){var h=o.pingCache;if(h===null){h=o.pingCache=new Z3;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(l)||($v=!0,v.add(l),o=X3.bind(null,o,s,l),s.then(o,o))}function X3(o,s,l){var h=o.pingCache;h!==null&&h.delete(s),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,qt===o&&(St&l)===l&&(an===4||an===3&&(St&62914560)===St&&300>Ee()-Rf?(Nt&2)===0&&Rc(o,0):Uv|=l,wc===St&&(wc=0)),Go(o)}function nR(o,s){s===0&&(s=er()),o=Js(o,s),o!==null&&(tn(o,s),Go(o))}function J3(o){var s=o.memoizedState,l=0;s!==null&&(l=s.retryLane),nR(o,l)}function e5(o,s){var l=0;switch(o.tag){case 31:case 13:var h=o.stateNode,v=o.memoizedState;v!==null&&(l=v.retryLane);break;case 19:h=o.stateNode;break;case 22:h=o.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),nR(o,l)}function t5(o,s){return Xe(o,s)}var kf=null,Tc=null,Zv=!1,Nf=!1,Kv=!1,ss=0;function Go(o){o!==Tc&&o.next===null&&(Tc===null?kf=Tc=o:Tc=Tc.next=o),Nf=!0,Zv||(Zv=!0,r5())}function su(o,s){if(!Kv&&Nf){Kv=!0;do for(var l=!1,h=kf;h!==null;){if(o!==0){var v=h.pendingLanes;if(v===0)var _=0;else{var N=h.suspendedLanes,j=h.pingedLanes;_=(1<<31-kn(42|o)+1)-1,_&=v&~(N&~j),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(l=!0,sR(h,_))}else _=St,_=Qe(h,h===qt?_:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(_&3)===0||Wt(h,_)||(l=!0,sR(h,_));h=h.next}while(l);Kv=!1}}function n5(){rR()}function rR(){Nf=Zv=!1;var o=0;ss!==0&&h5()&&(o=ss);for(var s=Ee(),l=null,h=kf;h!==null;){var v=h.next,_=oR(h,s);_===0?(h.next=null,l===null?kf=v:l.next=v,v===null&&(Tc=l)):(l=h,(o!==0||(_&3)!==0)&&(Nf=!0)),h=v}xn!==0&&xn!==5||su(o),ss!==0&&(ss=0)}function oR(o,s){for(var l=o.suspendedLanes,h=o.pingedLanes,v=o.expirationTimes,_=o.pendingLanes&-62914561;0<_;){var N=31-kn(_),j=1<<N,W=v[N];W===-1?((j&l)===0||(j&h)!==0)&&(v[N]=Nn(j,s)):W<=s&&(o.expiredLanes|=j),_&=~j}if(s=qt,l=St,l=Qe(o,o===s?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h=o.callbackNode,l===0||o===s&&(Dt===2||Dt===9)||o.cancelPendingCommit!==null)return h!==null&&h!==null&&G(h),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||Wt(o,l)){if(s=l&-l,s===o.callbackPriority)return s;switch(h!==null&&G(h),So(l)){case 2:case 8:l=Me;break;case 32:l=ot;break;case 268435456:l=Pt;break;default:l=ot}return h=aR.bind(null,o),l=Xe(l,h),o.callbackPriority=s,o.callbackNode=l,s}return h!==null&&h!==null&&G(h),o.callbackPriority=2,o.callbackNode=null,2}function aR(o,s){if(xn!==0&&xn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(If()&&o.callbackNode!==l)return null;var h=St;return h=Qe(o,o===qt?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h===0?null:(zE(o,h,s),oR(o,Ee()),o.callbackNode!=null&&o.callbackNode===l?aR.bind(null,o):null)}function sR(o,s){if(If())return null;zE(o,s,!0)}function r5(){m5(function(){(Nt&6)!==0?Xe(xe,n5):rR()})}function Wv(){if(ss===0){var o=dc;o===0&&(o=qi,qi<<=1,(qi&261888)===0&&(qi=256)),ss=o}return ss}function iR(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Ud(""+o)}function cR(o,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,o.id&&l.setAttribute("form",o.id),s.parentNode.insertBefore(l,s),o=new FormData(o),l.parentNode.removeChild(l),o}function o5(o,s,l,h,v){if(s==="submit"&&l&&l.stateNode===v){var _=iR((v[vr]||null).action),N=h.submitter;N&&(s=(s=N[vr]||null)?iR(s.formAction):N.getAttribute("formAction"),s!==null&&(_=s,N=null));var j=new Bd("action","action",null,h,v);o.push({event:j,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ss!==0){var W=N?cR(v,N):new FormData(v);mv(l,{pending:!0,data:W,method:v.method,action:_},null,W)}}else typeof _=="function"&&(j.preventDefault(),W=N?cR(v,N):new FormData(v),mv(l,{pending:!0,data:W,method:v.method,action:_},_,W))},currentTarget:v}]})}}for(var Yv=0;Yv<Ng.length;Yv++){var Qv=Ng[Yv],a5=Qv.toLowerCase(),s5=Qv[0].toUpperCase()+Qv.slice(1);wo(a5,"on"+s5)}wo(US,"onAnimationEnd"),wo(zS,"onAnimationIteration"),wo(VS,"onAnimationStart"),wo("dblclick","onDoubleClick"),wo("focusin","onFocus"),wo("focusout","onBlur"),wo(w3,"onTransitionRun"),wo(E3,"onTransitionStart"),wo(R3,"onTransitionCancel"),wo(FS,"onTransitionEnd"),Qi("onMouseEnter",["mouseout","mouseover"]),Qi("onMouseLeave",["mouseout","mouseover"]),Qi("onPointerEnter",["pointerout","pointerover"]),Qi("onPointerLeave",["pointerout","pointerover"]),Ws("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ws("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ws("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ws("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ws("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ws("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iu="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(" "),i5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iu));function lR(o,s){s=(s&4)!==0;for(var l=0;l<o.length;l++){var h=o[l],v=h.event;h=h.listeners;e:{var _=void 0;if(s)for(var N=h.length-1;0<=N;N--){var j=h[N],W=j.instance,de=j.currentTarget;if(j=j.listener,W!==_&&v.isPropagationStopped())break e;_=j,v.currentTarget=de;try{_(v)}catch(we){Gd(we)}v.currentTarget=null,_=W}else for(N=0;N<h.length;N++){if(j=h[N],W=j.instance,de=j.currentTarget,j=j.listener,W!==_&&v.isPropagationStopped())break e;_=j,v.currentTarget=de;try{_(v)}catch(we){Gd(we)}v.currentTarget=null,_=W}}}}function yt(o,s){var l=s[ug];l===void 0&&(l=s[ug]=new Set);var h=o+"__bubble";l.has(h)||(uR(s,o,2,!1),l.add(h))}function Xv(o,s,l){var h=0;s&&(h|=4),uR(l,o,h,s)}var Mf="_reactListening"+Math.random().toString(36).slice(2);function Jv(o){if(!o[Mf]){o[Mf]=!0,rS.forEach(function(l){l!=="selectionchange"&&(i5.has(l)||Xv(l,!1,o),Xv(l,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Mf]||(s[Mf]=!0,Xv("selectionchange",!1,s))}}function uR(o,s,l,h){switch(UR(s)){case 2:var v=D5;break;case 8:v=L5;break;default:v=py}l=v.bind(null,s,l,o),v=void 0,!_g||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?o.addEventListener(s,l,{capture:!0,passive:v}):o.addEventListener(s,l,!0):v!==void 0?o.addEventListener(s,l,{passive:v}):o.addEventListener(s,l,!1)}function ey(o,s,l,h,v){var _=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var N=h.tag;if(N===3||N===4){var j=h.stateNode.containerInfo;if(j===v)break;if(N===4)for(N=h.return;N!==null;){var W=N.tag;if((W===3||W===4)&&N.stateNode.containerInfo===v)return;N=N.return}for(;j!==null;){if(N=Ki(j),N===null)return;if(W=N.tag,W===5||W===6||W===26||W===27){h=_=N;continue e}j=j.parentNode}}h=h.return}mS(function(){var de=_,we=vg(l),Te=[];e:{var he=BS.get(o);if(he!==void 0){var ve=Bd,Ue=o;switch(o){case"keypress":if(Vd(l)===0)break e;case"keydown":case"keyup":ve=e3;break;case"focusin":Ue="focus",ve=Eg;break;case"focusout":Ue="blur",ve=Eg;break;case"beforeblur":case"afterblur":ve=Eg;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ve=yS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ve=FP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ve=r3;break;case US:case zS:case VS:ve=HP;break;case FS:ve=a3;break;case"scroll":case"scrollend":ve=zP;break;case"wheel":ve=i3;break;case"copy":case"cut":case"paste":ve=ZP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ve=bS;break;case"toggle":case"beforetoggle":ve=l3}var Ke=(s&4)!==0,Ft=!Ke&&(o==="scroll"||o==="scrollend"),se=Ke?he!==null?he+"Capture":null:he;Ke=[];for(var te=de,ue;te!==null;){var Re=te;if(ue=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||ue===null||se===null||(Re=Al(te,se),Re!=null&&Ke.push(cu(te,Re,ue))),Ft)break;te=te.return}0<Ke.length&&(he=new ve(he,Ue,null,l,we),Te.push({event:he,listeners:Ke}))}}if((s&7)===0){e:{if(he=o==="mouseover"||o==="pointerover",ve=o==="mouseout"||o==="pointerout",he&&l!==gg&&(Ue=l.relatedTarget||l.fromElement)&&(Ki(Ue)||Ue[Zi]))break e;if((ve||he)&&(he=we.window===we?we:(he=we.ownerDocument)?he.defaultView||he.parentWindow:window,ve?(Ue=l.relatedTarget||l.toElement,ve=de,Ue=Ue?Ki(Ue):null,Ue!==null&&(Ft=i(Ue),Ke=Ue.tag,Ue!==Ft||Ke!==5&&Ke!==27&&Ke!==6)&&(Ue=null)):(ve=null,Ue=de),ve!==Ue)){if(Ke=yS,Re="onMouseLeave",se="onMouseEnter",te="mouse",(o==="pointerout"||o==="pointerover")&&(Ke=bS,Re="onPointerLeave",se="onPointerEnter",te="pointer"),Ft=ve==null?he:Cl(ve),ue=Ue==null?he:Cl(Ue),he=new Ke(Re,te+"leave",ve,l,we),he.target=Ft,he.relatedTarget=ue,Re=null,Ki(we)===de&&(Ke=new Ke(se,te+"enter",Ue,l,we),Ke.target=ue,Ke.relatedTarget=Ft,Re=Ke),Ft=Re,ve&&Ue)t:{for(Ke=c5,se=ve,te=Ue,ue=0,Re=se;Re;Re=Ke(Re))ue++;Re=0;for(var Ze=te;Ze;Ze=Ke(Ze))Re++;for(;0<ue-Re;)se=Ke(se),ue--;for(;0<Re-ue;)te=Ke(te),Re--;for(;ue--;){if(se===te||te!==null&&se===te.alternate){Ke=se;break t}se=Ke(se),te=Ke(te)}Ke=null}else Ke=null;ve!==null&&dR(Te,he,ve,Ke,!1),Ue!==null&&Ft!==null&&dR(Te,Ft,Ue,Ke,!0)}}e:{if(he=de?Cl(de):window,ve=he.nodeName&&he.nodeName.toLowerCase(),ve==="select"||ve==="input"&&he.type==="file")var At=CS;else if(TS(he))if(AS)At=_3;else{At=v3;var Be=g3}else ve=he.nodeName,!ve||ve.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?de&&mg(de.elementType)&&(At=CS):At=y3;if(At&&(At=At(o,de))){OS(Te,At,l,we);break e}Be&&Be(o,he,de),o==="focusout"&&de&&he.type==="number"&&de.memoizedProps.value!=null&&pg(he,"number",he.value)}switch(Be=de?Cl(de):window,o){case"focusin":(TS(Be)||Be.contentEditable==="true")&&(rc=Be,Ag=de,jl=null);break;case"focusout":jl=Ag=rc=null;break;case"mousedown":Ig=!0;break;case"contextmenu":case"mouseup":case"dragend":Ig=!1,jS(Te,l,we);break;case"selectionchange":if(S3)break;case"keydown":case"keyup":jS(Te,l,we)}var ct;if(xg)e:{switch(o){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else nc?RS(o,l)&&(wt="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(wt="onCompositionStart");wt&&(SS&&l.locale!=="ko"&&(nc||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&nc&&(ct=gS()):(qa=we,bg="value"in qa?qa.value:qa.textContent,nc=!0)),Be=Pf(de,wt),0<Be.length&&(wt=new _S(wt,o,null,l,we),Te.push({event:wt,listeners:Be}),ct?wt.data=ct:(ct=xS(l),ct!==null&&(wt.data=ct)))),(ct=d3?f3(o,l):h3(o,l))&&(wt=Pf(de,"onBeforeInput"),0<wt.length&&(Be=new _S("onBeforeInput","beforeinput",null,l,we),Te.push({event:Be,listeners:wt}),Be.data=ct)),o5(Te,o,de,l,we)}lR(Te,s)})}function cu(o,s,l){return{instance:o,listener:s,currentTarget:l}}function Pf(o,s){for(var l=s+"Capture",h=[];o!==null;){var v=o,_=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||_===null||(v=Al(o,l),v!=null&&h.unshift(cu(o,v,_)),v=Al(o,s),v!=null&&h.push(cu(o,v,_))),o.tag===3)return h;o=o.return}return[]}function c5(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function dR(o,s,l,h,v){for(var _=s._reactName,N=[];l!==null&&l!==h;){var j=l,W=j.alternate,de=j.stateNode;if(j=j.tag,W!==null&&W===h)break;j!==5&&j!==26&&j!==27||de===null||(W=de,v?(de=Al(l,_),de!=null&&N.unshift(cu(l,de,W))):v||(de=Al(l,_),de!=null&&N.push(cu(l,de,W)))),l=l.return}N.length!==0&&o.push({event:s,listeners:N})}var l5=/\r\n?/g,u5=/\u0000|\uFFFD/g;function fR(o){return(typeof o=="string"?o:""+o).replace(l5,`
|
|
10
|
-
`).replace(u5,"")}function hR(o,s){return s=fR(s),fR(o)===s}function Vt(o,s,l,h,v,_){switch(l){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Ji(o,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Ji(o,""+h);break;case"className":jd(o,"class",h);break;case"tabIndex":jd(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":jd(o,l,h);break;case"style":hS(o,h,_);break;case"data":if(s!=="object"){jd(o,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||l!=="href")){o.removeAttribute(l);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(l);break}h=Ud(""+h),o.setAttribute(l,h);break;case"action":case"formAction":if(typeof h=="function"){o.setAttribute(l,"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 _=="function"&&(l==="formAction"?(s!=="input"&&Vt(o,s,"name",v.name,v,null),Vt(o,s,"formEncType",v.formEncType,v,null),Vt(o,s,"formMethod",v.formMethod,v,null),Vt(o,s,"formTarget",v.formTarget,v,null)):(Vt(o,s,"encType",v.encType,v,null),Vt(o,s,"method",v.method,v,null),Vt(o,s,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(l);break}h=Ud(""+h),o.setAttribute(l,h);break;case"onClick":h!=null&&(o.onclick=la);break;case"onScroll":h!=null&&yt("scroll",o);break;case"onScrollEnd":h!=null&&yt("scrollend",o);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(l=h.__html,l!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=l}}break;case"multiple":o.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":o.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){o.removeAttribute("xlink:href");break}l=Ud(""+h),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,""+h):o.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":h===!0?o.setAttribute(l,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,h):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?o.setAttribute(l,h):o.removeAttribute(l);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?o.removeAttribute(l):o.setAttribute(l,h);break;case"popover":yt("beforetoggle",o),yt("toggle",o),Ld(o,"popover",h);break;case"xlinkActuate":ca(o,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ca(o,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ca(o,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ca(o,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ca(o,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ca(o,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ca(o,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ca(o,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ca(o,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Ld(o,"is",h);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=$P.get(l)||l,Ld(o,l,h))}}function ty(o,s,l,h,v,_){switch(l){case"style":hS(o,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(l=h.__html,l!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=l}}break;case"children":typeof h=="string"?Ji(o,h):(typeof h=="number"||typeof h=="bigint")&&Ji(o,""+h);break;case"onScroll":h!=null&&yt("scroll",o);break;case"onScrollEnd":h!=null&&yt("scrollend",o);break;case"onClick":h!=null&&(o.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oS.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(v=l.endsWith("Capture"),s=l.slice(2,v?l.length-7:void 0),_=o[vr]||null,_=_!=null?_[l]:null,typeof _=="function"&&o.removeEventListener(s,_,v),typeof h=="function")){typeof _!="function"&&_!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(s,h,v);break e}l in o?o[l]=h:h===!0?o.setAttribute(l,""):Ld(o,l,h)}}}function Hn(o,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",o),yt("load",o);var h=!1,v=!1,_;for(_ in l)if(l.hasOwnProperty(_)){var N=l[_];if(N!=null)switch(_){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Vt(o,s,_,N,l,null)}}v&&Vt(o,s,"srcSet",l.srcSet,l,null),h&&Vt(o,s,"src",l.src,l,null);return;case"input":yt("invalid",o);var j=_=N=v=null,W=null,de=null;for(h in l)if(l.hasOwnProperty(h)){var we=l[h];if(we!=null)switch(h){case"name":v=we;break;case"type":N=we;break;case"checked":W=we;break;case"defaultChecked":de=we;break;case"value":_=we;break;case"defaultValue":j=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,s));break;default:Vt(o,s,h,we,l,null)}}lS(o,_,j,W,de,N,v,!1);return;case"select":yt("invalid",o),h=N=_=null;for(v in l)if(l.hasOwnProperty(v)&&(j=l[v],j!=null))switch(v){case"value":_=j;break;case"defaultValue":N=j;break;case"multiple":h=j;default:Vt(o,s,v,j,l,null)}s=_,l=N,o.multiple=!!h,s!=null?Xi(o,!!h,s,!1):l!=null&&Xi(o,!!h,l,!0);return;case"textarea":yt("invalid",o),_=v=h=null;for(N in l)if(l.hasOwnProperty(N)&&(j=l[N],j!=null))switch(N){case"value":h=j;break;case"defaultValue":v=j;break;case"children":_=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:Vt(o,s,N,j,l,null)}dS(o,h,v,_);return;case"option":for(W in l)l.hasOwnProperty(W)&&(h=l[W],h!=null)&&(W==="selected"?o.selected=h&&typeof h!="function"&&typeof h!="symbol":Vt(o,s,W,h,l,null));return;case"dialog":yt("beforetoggle",o),yt("toggle",o),yt("cancel",o),yt("close",o);break;case"iframe":case"object":yt("load",o);break;case"video":case"audio":for(h=0;h<iu.length;h++)yt(iu[h],o);break;case"image":yt("error",o),yt("load",o);break;case"details":yt("toggle",o);break;case"embed":case"source":case"link":yt("error",o),yt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in l)if(l.hasOwnProperty(de)&&(h=l[de],h!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Vt(o,s,de,h,l,null)}return;default:if(mg(s)){for(we in l)l.hasOwnProperty(we)&&(h=l[we],h!==void 0&&ty(o,s,we,h,l,void 0));return}}for(j in l)l.hasOwnProperty(j)&&(h=l[j],h!=null&&Vt(o,s,j,h,l,null))}function d5(o,s,l,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,_=null,N=null,j=null,W=null,de=null,we=null;for(ve in l){var Te=l[ve];if(l.hasOwnProperty(ve)&&Te!=null)switch(ve){case"checked":break;case"value":break;case"defaultValue":W=Te;default:h.hasOwnProperty(ve)||Vt(o,s,ve,null,h,Te)}}for(var he in h){var ve=h[he];if(Te=l[he],h.hasOwnProperty(he)&&(ve!=null||Te!=null))switch(he){case"type":_=ve;break;case"name":v=ve;break;case"checked":de=ve;break;case"defaultChecked":we=ve;break;case"value":N=ve;break;case"defaultValue":j=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,s));break;default:ve!==Te&&Vt(o,s,he,ve,h,Te)}}hg(o,N,j,W,de,we,_,v);return;case"select":ve=N=j=he=null;for(_ in l)if(W=l[_],l.hasOwnProperty(_)&&W!=null)switch(_){case"value":break;case"multiple":ve=W;default:h.hasOwnProperty(_)||Vt(o,s,_,null,h,W)}for(v in h)if(_=h[v],W=l[v],h.hasOwnProperty(v)&&(_!=null||W!=null))switch(v){case"value":he=_;break;case"defaultValue":j=_;break;case"multiple":N=_;default:_!==W&&Vt(o,s,v,_,h,W)}s=j,l=N,h=ve,he!=null?Xi(o,!!l,he,!1):!!h!=!!l&&(s!=null?Xi(o,!!l,s,!0):Xi(o,!!l,l?[]:"",!1));return;case"textarea":ve=he=null;for(j in l)if(v=l[j],l.hasOwnProperty(j)&&v!=null&&!h.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Vt(o,s,j,null,h,v)}for(N in h)if(v=h[N],_=l[N],h.hasOwnProperty(N)&&(v!=null||_!=null))switch(N){case"value":he=v;break;case"defaultValue":ve=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==_&&Vt(o,s,N,v,h,_)}uS(o,he,ve);return;case"option":for(var Ue in l)he=l[Ue],l.hasOwnProperty(Ue)&&he!=null&&!h.hasOwnProperty(Ue)&&(Ue==="selected"?o.selected=!1:Vt(o,s,Ue,null,h,he));for(W in h)he=h[W],ve=l[W],h.hasOwnProperty(W)&&he!==ve&&(he!=null||ve!=null)&&(W==="selected"?o.selected=he&&typeof he!="function"&&typeof he!="symbol":Vt(o,s,W,he,h,ve));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 Ke in l)he=l[Ke],l.hasOwnProperty(Ke)&&he!=null&&!h.hasOwnProperty(Ke)&&Vt(o,s,Ke,null,h,he);for(de in h)if(he=h[de],ve=l[de],h.hasOwnProperty(de)&&he!==ve&&(he!=null||ve!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,s));break;default:Vt(o,s,de,he,h,ve)}return;default:if(mg(s)){for(var Ft in l)he=l[Ft],l.hasOwnProperty(Ft)&&he!==void 0&&!h.hasOwnProperty(Ft)&&ty(o,s,Ft,void 0,h,he);for(we in h)he=h[we],ve=l[we],!h.hasOwnProperty(we)||he===ve||he===void 0&&ve===void 0||ty(o,s,we,he,h,ve);return}}for(var se in l)he=l[se],l.hasOwnProperty(se)&&he!=null&&!h.hasOwnProperty(se)&&Vt(o,s,se,null,h,he);for(Te in h)he=h[Te],ve=l[Te],!h.hasOwnProperty(Te)||he===ve||he==null&&ve==null||Vt(o,s,Te,he,h,ve)}function pR(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f5(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,l=performance.getEntriesByType("resource"),h=0;h<l.length;h++){var v=l[h],_=v.transferSize,N=v.initiatorType,j=v.duration;if(_&&j&&pR(N)){for(N=0,j=v.responseEnd,h+=1;h<l.length;h++){var W=l[h],de=W.startTime;if(de>j)break;var we=W.transferSize,Te=W.initiatorType;we&&pR(Te)&&(W=W.responseEnd,N+=we*(W<j?1:(j-de)/(W-de)))}if(--h,s+=8*(_+N)/(v.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var ny=null,ry=null;function Df(o){return o.nodeType===9?o:o.ownerDocument}function mR(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gR(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function oy(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var ay=null;function h5(){var o=window.event;return o&&o.type==="popstate"?o===ay?!1:(ay=o,!0):(ay=null,!1)}var vR=typeof setTimeout=="function"?setTimeout:void 0,p5=typeof clearTimeout=="function"?clearTimeout:void 0,yR=typeof Promise=="function"?Promise:void 0,m5=typeof queueMicrotask=="function"?queueMicrotask:typeof yR<"u"?function(o){return yR.resolve(null).then(o).catch(g5)}:vR;function g5(o){setTimeout(function(){throw o})}function is(o){return o==="head"}function _R(o,s){var l=s,h=0;do{var v=l.nextSibling;if(o.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"||l==="/&"){if(h===0){o.removeChild(v),Ic(s);return}h--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")h++;else if(l==="html")lu(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,lu(l);for(var _=l.firstChild;_;){var N=_.nextSibling,j=_.nodeName;_[Ol]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&_.rel.toLowerCase()==="stylesheet"||l.removeChild(_),_=N}}else l==="body"&&lu(o.ownerDocument.body);l=v}while(l);Ic(s)}function bR(o,s){var l=o;o=0;do{var h=l.nextSibling;if(l.nodeType===1?s?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(s?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=h}while(l)}function sy(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":sy(l),dg(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function v5(o,s,l,h){for(;o.nodeType===1;){var v=l;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(h){if(!o[Ol])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(_=o.getAttribute("rel"),_==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(_!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(_=o.getAttribute("src"),(_!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&_&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var _=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===_)return o}else return o;if(o=ao(o.nextSibling),o===null)break}return null}function y5(o,s,l){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=ao(o.nextSibling),o===null))return null;return o}function SR(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=ao(o.nextSibling),o===null))return null;return o}function iy(o){return o.data==="$?"||o.data==="$~"}function cy(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function _5(o,s){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||l.readyState!=="loading")s();else{var h=function(){s(),l.removeEventListener("DOMContentLoaded",h)};l.addEventListener("DOMContentLoaded",h),o._reactRetry=h}}function ao(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var ly=null;function wR(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(s===0)return ao(o.nextSibling);s--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||s++}o=o.nextSibling}return null}function ER(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(s===0)return o;s--}else l!=="/$"&&l!=="/&"||s++}o=o.previousSibling}return null}function RR(o,s,l){switch(s=Df(l),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function lu(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);dg(o)}var so=new Map,xR=new Set;function Lf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var xa=J.d;J.d={f:b5,r:S5,D:w5,C:E5,L:R5,m:x5,X:O5,S:T5,M:C5};function b5(){var o=xa.f(),s=Of();return o||s}function S5(o){var s=Wi(o);s!==null&&s.tag===5&&s.type==="form"?Fw(s):xa.r(o)}var Oc=typeof document>"u"?null:document;function TR(o,s,l){var h=Oc;if(h&&typeof s=="string"&&s){var v=Xr(s);v='link[rel="'+o+'"][href="'+v+'"]',typeof l=="string"&&(v+='[crossorigin="'+l+'"]'),xR.has(v)||(xR.add(v),o={rel:o,crossOrigin:l,href:s},h.querySelector(v)===null&&(s=h.createElement("link"),Hn(s,"link",o),Mn(s),h.head.appendChild(s)))}}function w5(o){xa.D(o),TR("dns-prefetch",o,null)}function E5(o,s){xa.C(o,s),TR("preconnect",o,s)}function R5(o,s,l){xa.L(o,s,l);var h=Oc;if(h&&o&&s){var v='link[rel="preload"][as="'+Xr(s)+'"]';s==="image"&&l&&l.imageSrcSet?(v+='[imagesrcset="'+Xr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(v+='[imagesizes="'+Xr(l.imageSizes)+'"]')):v+='[href="'+Xr(o)+'"]';var _=v;switch(s){case"style":_=Cc(o);break;case"script":_=Ac(o)}so.has(_)||(o=p({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:o,as:s},l),so.set(_,o),h.querySelector(v)!==null||s==="style"&&h.querySelector(uu(_))||s==="script"&&h.querySelector(du(_))||(s=h.createElement("link"),Hn(s,"link",o),Mn(s),h.head.appendChild(s)))}}function x5(o,s){xa.m(o,s);var l=Oc;if(l&&o){var h=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+Xr(h)+'"][href="'+Xr(o)+'"]',_=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Ac(o)}if(!so.has(_)&&(o=p({rel:"modulepreload",href:o},s),so.set(_,o),l.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(du(_)))return}h=l.createElement("link"),Hn(h,"link",o),Mn(h),l.head.appendChild(h)}}}function T5(o,s,l){xa.S(o,s,l);var h=Oc;if(h&&o){var v=Yi(h).hoistableStyles,_=Cc(o);s=s||"default";var N=v.get(_);if(!N){var j={loading:0,preload:null};if(N=h.querySelector(uu(_)))j.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":s},l),(l=so.get(_))&&uy(o,l);var W=N=h.createElement("link");Mn(W),Hn(W,"link",o),W._p=new Promise(function(de,we){W.onload=de,W.onerror=we}),W.addEventListener("load",function(){j.loading|=1}),W.addEventListener("error",function(){j.loading|=2}),j.loading|=4,jf(N,s,h)}N={type:"stylesheet",instance:N,count:1,state:j},v.set(_,N)}}}function O5(o,s){xa.X(o,s);var l=Oc;if(l&&o){var h=Yi(l).hoistableScripts,v=Ac(o),_=h.get(v);_||(_=l.querySelector(du(v)),_||(o=p({src:o,async:!0},s),(s=so.get(v))&&dy(o,s),_=l.createElement("script"),Mn(_),Hn(_,"link",o),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(v,_))}}function C5(o,s){xa.M(o,s);var l=Oc;if(l&&o){var h=Yi(l).hoistableScripts,v=Ac(o),_=h.get(v);_||(_=l.querySelector(du(v)),_||(o=p({src:o,async:!0,type:"module"},s),(s=so.get(v))&&dy(o,s),_=l.createElement("script"),Mn(_),Hn(_,"link",o),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(v,_))}}function OR(o,s,l,h){var v=(v=X.current)?Lf(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=Cc(l.href),l=Yi(v).hoistableStyles,h=l.get(s),h||(h={type:"style",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=Cc(l.href);var _=Yi(v).hoistableStyles,N=_.get(o);if(N||(v=v.ownerDocument||v,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(o,N),(_=v.querySelector(uu(o)))&&!_._p&&(N.instance=_,N.state.loading=5),so.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},so.set(o,l),_||A5(v,o,l,N.state))),s&&h===null)throw Error(r(528,""));return N}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ac(l),l=Yi(v).hoistableScripts,h=l.get(s),h||(h={type:"script",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Cc(o){return'href="'+Xr(o)+'"'}function uu(o){return'link[rel="stylesheet"]['+o+"]"}function CR(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function A5(o,s,l,h){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=o.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),Hn(s,"link",l),Mn(s),o.head.appendChild(s))}function Ac(o){return'[src="'+Xr(o)+'"]'}function du(o){return"script[async]"+o}function AR(o,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var h=o.querySelector('style[data-href~="'+Xr(l.href)+'"]');if(h)return s.instance=h,Mn(h),h;var v=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return h=(o.ownerDocument||o).createElement("style"),Mn(h),Hn(h,"style",v),jf(h,l.precedence,o),s.instance=h;case"stylesheet":v=Cc(l.href);var _=o.querySelector(uu(v));if(_)return s.state.loading|=4,s.instance=_,Mn(_),_;h=CR(l),(v=so.get(v))&&uy(h,v),_=(o.ownerDocument||o).createElement("link"),Mn(_);var N=_;return N._p=new Promise(function(j,W){N.onload=j,N.onerror=W}),Hn(_,"link",h),s.state.loading|=4,jf(_,l.precedence,o),s.instance=_;case"script":return _=Ac(l.src),(v=o.querySelector(du(_)))?(s.instance=v,Mn(v),v):(h=l,(v=so.get(_))&&(h=p({},l),dy(h,v)),o=o.ownerDocument||o,v=o.createElement("script"),Mn(v),Hn(v,"link",h),o.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,jf(h,l.precedence,o));return s.instance}function jf(o,s,l){for(var h=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,_=v,N=0;N<h.length;N++){var j=h[N];if(j.dataset.precedence===s)_=j;else if(_!==v)break}_?_.parentNode.insertBefore(o,_.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(o,s.firstChild))}function uy(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function dy(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var $f=null;function IR(o,s,l){if($f===null){var h=new Map,v=$f=new Map;v.set(l,h)}else v=$f,h=v.get(l),h||(h=new Map,v.set(l,h));if(h.has(o))return h;for(h.set(o,null),l=l.getElementsByTagName(o),v=0;v<l.length;v++){var _=l[v];if(!(_[Ol]||_[Vn]||o==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var N=_.getAttribute(s)||"";N=o+N;var j=h.get(N);j?j.push(_):h.set(N,[_])}}return h}function kR(o,s,l){o=o.ownerDocument||o,o.head.insertBefore(l,s==="title"?o.querySelector("head > title"):null)}function I5(o,s,l){if(l===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(o=s.disabled,typeof s.precedence=="string"&&o==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function NR(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function k5(o,s,l,h){if(l.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=Cc(h.href),_=s.querySelector(uu(v));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=Uf.bind(o),s.then(o,o)),l.state.loading|=4,l.instance=_,Mn(_);return}_=s.ownerDocument||s,h=CR(h),(v=so.get(v))&&uy(h,v),_=_.createElement("link"),Mn(_);var N=_;N._p=new Promise(function(j,W){N.onload=j,N.onerror=W}),Hn(_,"link",h),l.instance=_}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,s),(s=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=Uf.bind(o),s.addEventListener("load",l),s.addEventListener("error",l))}}var fy=0;function N5(o,s){return o.stylesheets&&o.count===0&&Vf(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var h=setTimeout(function(){if(o.stylesheets&&Vf(o,o.stylesheets),o.unsuspend){var _=o.unsuspend;o.unsuspend=null,_()}},6e4+s);0<o.imgBytes&&fy===0&&(fy=62500*f5());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Vf(o,o.stylesheets),o.unsuspend)){var _=o.unsuspend;o.unsuspend=null,_()}},(o.imgBytes>fy?50:800)+s);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function Uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var zf=null;function Vf(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,zf=new Map,s.forEach(M5,o),zf=null,Uf.call(o))}function M5(o,s){if(!(s.state.loading&4)){var l=zf.get(o);if(l)var h=l.get(null);else{l=new Map,zf.set(o,l);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<v.length;_++){var N=v[_];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(l.set(N.dataset.precedence,N),h=N)}h&&l.set(null,h)}v=s.instance,N=v.getAttribute("data-precedence"),_=l.get(N)||h,_===h&&l.set(null,v),l.set(N,v),this.count++,h=Uf.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),_?_.parentNode.insertBefore(v,_.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),s.state.loading|=4}}var fu={$$typeof:T,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function P5(o,s,l,h,v,_,N,j,W){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.hiddenUpdates=Fa(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=_,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function MR(o,s,l,h,v,_,N,j,W,de,we,Te){return o=new P5(o,s,l,N,W,de,we,Te,j),s=1,_===!0&&(s|=24),_=Mr(3,null,null,s),o.current=_,_.stateNode=o,s=Hg(),s.refCount++,o.pooledCache=s,s.refCount++,_.memoizedState={element:h,isDehydrated:l,cache:s},Wg(_),o}function PR(o){return o?(o=sc,o):sc}function DR(o,s,l,h,v,_){v=PR(v),h.context===null?h.context=v:h.pendingContext=v,h=Ya(s),h.payload={element:l},_=_===void 0?null:_,_!==null&&(h.callback=_),l=Qa(o,h,s),l!==null&&(Er(l,o,s),ql(l,o,s))}function LR(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function hy(o,s){LR(o,s),(o=o.alternate)&&LR(o,s)}function jR(o){if(o.tag===13||o.tag===31){var s=Js(o,67108864);s!==null&&Er(s,o,67108864),hy(o,67108864)}}function $R(o){if(o.tag===13||o.tag===31){var s=$r();s=Gi(s);var l=Js(o,s);l!==null&&Er(l,o,s),hy(o,s)}}var Ff=!0;function D5(o,s,l,h){var v=F.T;F.T=null;var _=J.p;try{J.p=2,py(o,s,l,h)}finally{J.p=_,F.T=v}}function L5(o,s,l,h){var v=F.T;F.T=null;var _=J.p;try{J.p=8,py(o,s,l,h)}finally{J.p=_,F.T=v}}function py(o,s,l,h){if(Ff){var v=my(h);if(v===null)ey(o,s,h,Bf,l),zR(o,h);else if($5(v,o,s,l,h))h.stopPropagation();else if(zR(o,h),s&4&&-1<j5.indexOf(o)){for(;v!==null;){var _=Wi(v);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var N=Fo(_.pendingLanes);if(N!==0){var j=_;for(j.pendingLanes|=2,j.entangledLanes|=2;N;){var W=1<<31-kn(N);j.entanglements[1]|=W,N&=~W}Go(_),(Nt&6)===0&&(xf=Ee()+500,su(0))}}break;case 31:case 13:j=Js(_,2),j!==null&&Er(j,_,2),Of(),hy(_,2)}if(_=my(h),_===null&&ey(o,s,h,Bf,l),_===v)break;v=_}v!==null&&h.stopPropagation()}else ey(o,s,h,null,l)}}function my(o){return o=vg(o),gy(o)}var Bf=null;function gy(o){if(Bf=null,o=Ki(o),o!==null){var s=i(o);if(s===null)o=null;else{var l=s.tag;if(l===13){if(o=c(s),o!==null)return o;o=null}else if(l===31){if(o=u(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return Bf=o,null}function UR(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oe()){case xe:return 2;case Me:return 8;case ot:case it:return 32;case Pt:return 268435456;default:return 32}default:return 32}}var vy=!1,cs=null,ls=null,us=null,hu=new Map,pu=new Map,ds=[],j5="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 zR(o,s){switch(o){case"focusin":case"focusout":cs=null;break;case"dragenter":case"dragleave":ls=null;break;case"mouseover":case"mouseout":us=null;break;case"pointerover":case"pointerout":hu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":pu.delete(s.pointerId)}}function mu(o,s,l,h,v,_){return o===null||o.nativeEvent!==_?(o={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:_,targetContainers:[v]},s!==null&&(s=Wi(s),s!==null&&jR(s)),o):(o.eventSystemFlags|=h,s=o.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),o)}function $5(o,s,l,h,v){switch(s){case"focusin":return cs=mu(cs,o,s,l,h,v),!0;case"dragenter":return ls=mu(ls,o,s,l,h,v),!0;case"mouseover":return us=mu(us,o,s,l,h,v),!0;case"pointerover":var _=v.pointerId;return hu.set(_,mu(hu.get(_)||null,o,s,l,h,v)),!0;case"gotpointercapture":return _=v.pointerId,pu.set(_,mu(pu.get(_)||null,o,s,l,h,v)),!0}return!1}function VR(o){var s=Ki(o.target);if(s!==null){var l=i(s);if(l!==null){if(s=l.tag,s===13){if(s=c(l),s!==null){o.blockedOn=s,tS(o.priority,function(){$R(l)});return}}else if(s===31){if(s=u(l),s!==null){o.blockedOn=s,tS(o.priority,function(){$R(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function qf(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=my(o.nativeEvent);if(l===null){l=o.nativeEvent;var h=new l.constructor(l.type,l);gg=h,l.target.dispatchEvent(h),gg=null}else return s=Wi(l),s!==null&&jR(s),o.blockedOn=l,!1;s.shift()}return!0}function FR(o,s,l){qf(o)&&l.delete(s)}function U5(){vy=!1,cs!==null&&qf(cs)&&(cs=null),ls!==null&&qf(ls)&&(ls=null),us!==null&&qf(us)&&(us=null),hu.forEach(FR),pu.forEach(FR)}function Hf(o,s){o.blockedOn===s&&(o.blockedOn=null,vy||(vy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,U5)))}var Gf=null;function BR(o){Gf!==o&&(Gf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gf===o&&(Gf=null);for(var s=0;s<o.length;s+=3){var l=o[s],h=o[s+1],v=o[s+2];if(typeof h!="function"){if(gy(h||l)===null)continue;break}var _=Wi(l);_!==null&&(o.splice(s,3),s-=3,mv(_,{pending:!0,data:v,method:l.method,action:h},h,v))}}))}function Ic(o){function s(W){return Hf(W,o)}cs!==null&&Hf(cs,o),ls!==null&&Hf(ls,o),us!==null&&Hf(us,o),hu.forEach(s),pu.forEach(s);for(var l=0;l<ds.length;l++){var h=ds[l];h.blockedOn===o&&(h.blockedOn=null)}for(;0<ds.length&&(l=ds[0],l.blockedOn===null);)VR(l),l.blockedOn===null&&ds.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(h=0;h<l.length;h+=3){var v=l[h],_=l[h+1],N=v[vr]||null;if(typeof _=="function")N||BR(l);else if(N){var j=null;if(_&&_.hasAttribute("formAction")){if(v=_,N=_[vr]||null)j=N.formAction;else if(gy(v)!==null)continue}else j=N.action;typeof j=="function"?l[h+1]=j:(l.splice(h,3),h-=3),BR(l)}}}function qR(){function o(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(N){return v=N})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),h||setTimeout(l,20)}function l(){if(!h&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(l,100),function(){h=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function yy(o){this._internalRoot=o}Zf.prototype.render=yy.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var l=s.current,h=$r();DR(l,h,o,s,null,null)},Zf.prototype.unmount=yy.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;DR(o.current,2,null,o,null,null),Of(),s[Zi]=null}};function Zf(o){this._internalRoot=o}Zf.prototype.unstable_scheduleHydration=function(o){if(o){var s=lg();o={blockedOn:null,target:o,priority:s};for(var l=0;l<ds.length&&s!==0&&s<ds[l].priority;l++);ds.splice(l,0,o),l===0&&VR(o)}};var HR=t.version;if(HR!=="19.2.4")throw Error(r(527,HR,"19.2.4"));J.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(s),o=o!==null?m(o):null,o=o===null?null:o.stateNode,o};var z5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kf.isDisabled&&Kf.supportsFiber)try{Un=Kf.inject(z5),en=Kf}catch{}}return vu.createRoot=function(o,s){if(!a(o))throw Error(r(299));var l=!1,h="",v=Xw,_=Jw,N=eE;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError)),s=MR(o,1,!1,null,null,l,h,null,v,_,N,qR),o[Zi]=s.current,Jv(o),new yy(s)},vu.hydrateRoot=function(o,s,l){if(!a(o))throw Error(r(299));var h=!1,v="",_=Xw,N=Jw,j=eE,W=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(_=l.onUncaughtError),l.onCaughtError!==void 0&&(N=l.onCaughtError),l.onRecoverableError!==void 0&&(j=l.onRecoverableError),l.formState!==void 0&&(W=l.formState)),s=MR(o,1,!0,s,l??null,h,v,W,_,N,j,qR),s.context=PR(null),l=s.current,h=$r(),h=Gi(h),v=Ya(h),v.callback=null,Qa(l,v,h),l=h,s.current.lanes=l,tn(s,l),Go(s),o[Zi]=s.current,Jv(o),new Zf(s)},vu.version="19.2.4",vu}var nx;function X5(){if(nx)return by.exports;nx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),by.exports=Q5(),by.exports}var J5=X5(),A=Us();const le=ja(A),ub=F5({__proto__:null,default:le},[A]);var xy={exports:{}},Ty={};var rx;function eD(){if(rx)return Ty;rx=1;var e=Us().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Ty.c=function(t){return e.H.useMemoCache(t)},Ty}var ox;function tD(){return ox||(ox=1,xy.exports=eD()),xy.exports}var Li=tD(),gd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nD={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rD=class{#e=nD;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},wi=new rD;function oD(e){setTimeout(e,0)}var Ii=typeof window>"u"||"Deno"in globalThis;function Or(){}function aD(e,t){return typeof e=="function"?e(t):e}function G0(e){return typeof e=="number"&&e>=0&&e!==1/0}function qC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Os(e,t){return typeof e=="function"?e(t):e}function uo(e,t){return typeof e=="function"?e(t):e}function ax(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==db(c,t.options))return!1}else if(!Xu(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||i&&!i(t))}function sx(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Qu(t.options.mutationKey)!==Qu(i))return!1}else if(!Xu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function db(e,t){return(t?.queryKeyHashFn||Qu)(e)}function Qu(e){return JSON.stringify(e,(t,n)=>K0(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Xu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xu(e[n],t[n])):!1}var sD=Object.prototype.hasOwnProperty;function HC(e,t){if(e===t)return e;const n=ix(e)&&ix(t);if(!n&&!(K0(e)&&K0(t)))return t;const a=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),c=i.length,u=n?new Array(c):{};let d=0;for(let f=0;f<c;f++){const m=n?f:i[f],p=e[m],g=t[m];if(p===g){u[m]=p,(n?f<a:sD.call(e,m))&&d++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){u[m]=g;continue}const y=HC(p,g);u[m]=y,y===p&&d++}return a===c&&d===a?e:u}function Z0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ix(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function K0(e){if(!cx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!cx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function cx(e){return Object.prototype.toString.call(e)==="[object Object]"}function iD(e){return new Promise(t=>{wi.setTimeout(t,e)})}function W0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?HC(e,t):t}function Doe(e){return e}function cD(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lD(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fb=Symbol();function GC(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uD(e,t){return typeof e=="function"?e(...t):!!e}var dD=class extends gd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ii&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},hb=new dD;function Y0(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var fD=oD;function hD(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=fD;const i=u=>{t?e.push(u):a(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||c()}return d},batchCalls:u=>(...d)=>{i(()=>{u(...d)})},schedule:i,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var Kn=hD(),pD=class extends gd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ii&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ep=new pD;function mD(e){return Math.min(1e3*2**e,3e4)}function ZC(e){return(e??"online")==="online"?Ep.isOnline():!0}var Q0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function KC(e){let t=!1,n=0,r;const a=Y0(),i=()=>a.status!=="pending",c=w=>{if(!i()){const S=new Q0(w);g(S),e.onCancel?.(S)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>hb.isFocused()&&(e.networkMode==="always"||Ep.isOnline())&&e.canRun(),m=()=>ZC(e.networkMode)&&e.canRun(),p=w=>{i()||(r?.(),a.resolve(w))},g=w=>{i()||(r?.(),a.reject(w))},y=()=>new Promise(w=>{r=S=>{(i()||f())&&w(S)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),b=()=>{if(i())return;let w;const S=n===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(x){w=Promise.reject(x)}Promise.resolve(w).then(p).catch(x=>{if(i())return;const E=e.retry??(Ii?0:3),T=e.retryDelay??mD,C=typeof T=="function"?T(n,x):T,O=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,x);if(t||!O){g(x);return}n++,e.onFail?.(n,x),iD(C).then(()=>f()?void 0:y()).then(()=>{t?g(x):b()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?b():y().then(b),a)}}var WC=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G0(this.gcTime)&&(this.#e=wi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ii?1/0:300*1e3))}clearGcTimeout(){this.#e&&(wi.clearTimeout(this.#e),this.#e=void 0)}},gD=class extends WC{#e;#t;#n;#o;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ux(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=ux(this.options);t.data!==void 0&&(this.setState(lx(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=W0(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Or).catch(Or):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>uo(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Os(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!qC(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=GC(this.options,t),f=(()=>{const m={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(u,f,this):u(f)},c=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=KC({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof Q0&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof Q0){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...YC(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...lx(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Kn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function YC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ZC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ux(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vD=class extends gd{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=Y0(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#i;#s;#a;#m;#f;#h;#l;#u;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),dx(this.#t,this.options)?this.#d():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return X0(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return X0(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof uo(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!Z0(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&fx(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||Os(this.options.staleTime,this.#t)!==Os(t.staleTime,this.#t))&&this.#g();const a=this.#v();r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||a!==this.#c)&&this.#y(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return _D(this,n)&&(this.#o=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Or)),t}#g(){this.#b();const e=Os(this.options.staleTime,this.#t);if(Ii||this.#o.isStale||!G0(e))return;const n=qC(this.#o.dataUpdatedAt,e)+1;this.#l=wi.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#S(),this.#c=e,!(Ii||uo(this.options.enabled,this.#t)===!1||!G0(this.#c)||this.#c===0)&&(this.#u=wi.setInterval(()=>{(this.options.refetchIntervalInBackground||hb.isFocused())&&this.#d()},this.#c))}#_(){this.#g(),this.#y(this.#v())}#b(){this.#l&&(wi.clearTimeout(this.#l),this.#l=void 0)}#S(){this.#u&&(wi.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#o,i=this.#r,c=this.#i,d=e!==n?e.state:this.#n,{state:f}=e;let m={...f},p=!1,g;if(t._optimisticResults){const D=this.hasListeners(),z=!D&&dx(e,t),Q=D&&fx(e,n,t,r);(z||Q)&&(m={...m,...YC(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=m;g=m.data;let S=!1;if(t.placeholderData!==void 0&&g===void 0&&w==="pending"){let D;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(D=a.data,S=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,D!==void 0&&(w="success",g=W0(a?.data,D,t),p=!0)}if(t.select&&g!==void 0&&!S)if(a&&g===i?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=W0(a?.data,g,t),this.#f=g,this.#a=null}catch(D){this.#a=D}this.#a&&(y=this.#a,g=this.#f,b=Date.now(),w="error");const x=m.fetchStatus==="fetching",E=w==="pending",T=w==="error",C=E&&x,O=g!==void 0,M={status:w,fetchStatus:m.fetchStatus,isPending:E,isSuccess:w==="success",isError:T,isInitialLoading:C,isLoading:C,data:g,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!E,isLoadingError:T&&!O,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:T&&O,isStale:pb(e,t),refetch:this.refetch,promise:this.#s,isEnabled:uo(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=V=>{M.status==="error"?V.reject(M.error):M.data!==void 0&&V.resolve(M.data)},z=()=>{const V=this.#s=M.promise=Y0();D(V)},Q=this.#s;switch(Q.status){case"pending":e.queryHash===n.queryHash&&D(Q);break;case"fulfilled":(M.status==="error"||M.data!==Q.value)&&z();break;case"rejected":(M.status!=="error"||M.error!==Q.reason)&&z();break}}return M}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#t),Z0(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const i=new Set(a??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(c=>{const u=c;return this.#o[u]!==e[u]&&i.has(u)})};this.#E({listeners:n()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#E(e){Kn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function yD(e,t){return uo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dx(e,t){return yD(e,t)||e.state.data!==void 0&&X0(e,t,t.refetchOnMount)}function X0(e,t,n){if(uo(t.enabled,e)!==!1&&Os(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pb(e,t)}return!1}function fx(e,t,n,r){return(e!==t||uo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pb(e,n)}function pb(e,t){return uo(t.enabled,e)!==!1&&e.isStaleByTime(Os(t.staleTime,e))}function _D(e,t){return!Z0(e.getCurrentResult(),t)}function hx(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let m=!1;const p=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=GC(t.options,t.fetchOptions),y=async(b,w,S)=>{if(m)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return p(I),I})(),T=await g(E),{maxPages:C}=t.options,O=S?lD:cD;return{pages:O(b.pages,T,C),pageParams:O(b.pageParams,w,C)}};if(a&&i.length){const b=a==="backward",w=b?QC:J0,S={pages:i,pageParams:c},x=w(r,S);u=await y(S,x,b)}else{const b=e??i.length;do{const w=d===0?c[0]??r.initialPageParam:J0(r,u);if(d>0&&w==null)break;u=await y(u,w),d++}while(d<b)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function J0(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function QC(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Loe(e,t){return t?J0(e,t)!=null:!1}function joe(e,t){return!t||!e.getPreviousPageParam?!1:QC(e,t)!=null}var bD=class extends WC{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||SD(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=KC({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,c)=>{this.#r({type:"failed",failureCount:i,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:a})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Kn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function SD(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wD=class extends gd{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new bD({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Wf(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Wf(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Wf(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Wf(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Kn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>sx(t,n))}findAll(e={}){return this.getAll().filter(t=>sx(e,t))}notify(e){Kn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Kn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Or))))}};function Wf(e){return e.options.scope?.id}var ED=class extends gd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??db(r,t);let i=this.get(a);return i||(i=new gD({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Kn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ax(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ax(e,n)):t}notify(e){Kn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Kn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Kn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},RD=class{#e;#t;#n;#o;#r;#i;#s;#a;constructor(e={}){this.#e=e.queryCache||new ED,this.#t=e.mutationCache||new wD,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=hb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Ep.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Os(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,c=aD(t,i);if(c!==void 0)return this.#e.build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Kn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Kn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Kn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Kn.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Or).catch(Or)}invalidateQueries(e,t={}){return Kn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Kn.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Or)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Or)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Os(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Or).catch(Or)}fetchInfiniteQuery(e){return e.behavior=hx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Or).catch(Or)}ensureInfiniteQueryData(e){return e.behavior=hx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ep.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Qu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Xu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Qu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Xu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=db(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},XC=A.createContext(void 0),xD=e=>{const t=A.useContext(XC);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TD=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(XC.Provider,{value:e,children:t})),JC=A.createContext(!1),OD=()=>A.useContext(JC);JC.Provider;function CD(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var AD=A.createContext(CD()),ID=()=>A.useContext(AD),kD=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ND=e=>{A.useEffect(()=>{e.clearReset()},[e])},MD=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||uD(n,[e.error,r])),PD=(e,t)=>t.state.data===void 0,DD=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},LD=(e,t)=>e.isLoading&&e.isFetching&&!t,jD=(e,t)=>e?.suspense&&t.isPending,px=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $D(e,t,n){const r=OD(),a=ID(),i=xD(n),c=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=r?"isRestoring":"optimistic",DD(c),kD(c,a),ND(a);const u=!i.getQueryCache().get(c.queryHash),[d]=A.useState(()=>new t(i,c)),f=d.getOptimisticResult(c),m=!r&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(p=>{const g=m?d.subscribe(Kn.batchCalls(p)):Or;return d.updateResult(),g},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),A.useEffect(()=>{d.setOptions(c)},[c,d]),jD(c,f))throw px(c,d,a);if(MD({result:f,errorResetBoundary:a,throwOnError:c.throwOnError,query:i.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw f.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!Ii&&LD(f,r)&&(u?px(c,d,a):i.getQueryCache().get(c.queryHash)?.promise)?.catch(Or).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?f:d.trackResult(f)}function eA(e,t){return $D({...e,enabled:!0,suspense:!0,throwOnError:PD,placeholderData:void 0},vD,t)}const tA={publicConfig:()=>["publicConfig"],authConfig:()=>["authConfig"],session:()=>["session"],threads:e=>["threads",e],taskThreads:e=>["task-threads",e],virtualMcpThreads:(e,t)=>["threads",e,"virtual-mcp",t],thread:(e,t)=>["thread",e,t],threadMessages:(e,t)=>["thread-messages",e,t],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],connections:e=>[e,"connections"],connectionsByBinding:(e,t)=>[e,"connections",`binding:${t}`],connection:(e,t)=>[e,"connection",t],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],organizationSettings:e=>["organization-settings",e],activeOrganization:e=>["activeOrganization",e],modelsList:e=>["models-list",e],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,n)=>["tool-call",e,t,n],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,n)=>[e,t,"collection",n],collectionItem:(e,t,n,r,a)=>[e,t,n,"collection",r,a],collectionList:(e,t,n,r,a)=>[e,t,n,"collection",r,"list",a],collectionListInfinite:(e,t,n,r,a)=>[e,t,n,"collection",r,"list-infinite",a],githubReadme:(e,t)=>["github-readme",e,t],monitoringStats:()=>["monitoring","stats"],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringDashboards:e=>["monitoring","dashboards",e],monitoringDashboardDetails:(e,t)=>["monitoring","dashboard",e,t],monitoringDashboardQuery:(e,t,n,r,a)=>["monitoringDashboardQuery",e,t,n,r,a??""],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,n)=>[...e,t,n],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],projects:e=>["projects",e],project:(e,t)=>["project",e,t],projectById:e=>["project","byId",e],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t]},nA=A.createContext(void 0);async function UD(){const e=await fetch("/api/auth/custom/config");if(!e.ok)throw new Error("Failed to load auth configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load auth configuration");return t.config}function zD(e){const t=Li.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:tA.authConfig(),queryFn:UD,staleTime:1/0},t[0]=r):r=t[0];const{data:a}=eA(r);let i;return t[1]!==a||t[2]!==n?(i=R.jsx(nA.Provider,{value:a,children:n}),t[1]=a,t[2]=n,t[3]=i):i=t[3],i}function $oe(){const e=A.useContext(nA);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}const Xc=new WeakMap,lp=new WeakMap,Rp={current:[]};let Oy=!1,zu=0;const Iu=new Set,Yf=new Map;function rA(e){const t=Array.from(e).sort((n,r)=>n instanceof Jc&&n.options.deps.includes(r)?1:r instanceof Jc&&r.options.deps.includes(n)?-1:0);for(const n of t){if(Rp.current.includes(n))continue;Rp.current.push(n),n.recompute();const r=lp.get(n);if(r)for(const a of r){const i=Xc.get(a);i&&rA(i)}}}function VD(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function FD(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function oA(e){if(zu>0&&!Yf.has(e)&&Yf.set(e,e.prevState),Iu.add(e),!(zu>0)&&!Oy)try{for(Oy=!0;Iu.size>0;){const t=Array.from(Iu);Iu.clear();for(const n of t){const r=Yf.get(n)??n.prevState;n.prevState=r,VD(n)}for(const n of t){const r=Xc.get(n);r&&(Rp.current.push(n),rA(r))}for(const n of t){const r=Xc.get(n);if(r)for(const a of r)FD(a)}}}finally{Oy=!1,Rp.current=[],Yf.clear()}}function Vu(e){zu++;try{e()}finally{if(zu--,zu===0){const t=Iu.values().next().value;t&&oA(t)}}}function BD(e){return typeof e=="function"}class e_{constructor(t,n){this.listeners=new Set,this.subscribe=r=>{var a,i;this.listeners.add(r);const c=(i=(a=this.options)==null?void 0:a.onSubscribe)==null?void 0:i.call(a,r,this);return()=>{this.listeners.delete(r),c?.()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,a;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):BD(t)?this.state=t(this.prevState):this.state=t,(a=(r=this.options)==null?void 0:r.onUpdate)==null||a.call(r),oA(this)}}class Jc{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=this.options.deps.length,r=new Array(n),a=new Array(n);for(let i=0;i<n;i++){const c=this.options.deps[i];r[i]=c.prevState,a[i]=c.state}return this.lastSeenDepValues=a,{prevDepVals:r,currDepVals:a,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,r;this.prevState=this.state;const a=this.getDepVals();this.state=this.options.fn(a),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const i of this.options.deps)i instanceof Jc&&i.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:a}=this.getDepVals();for(let i=0;i<a.length;i++)if(a[i]!==r[i]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var r,a;this.listeners.add(n);const i=(a=(r=this.options).onSubscribe)==null?void 0:a.call(r,n,this);return()=>{this.listeners.delete(n),i?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Jc)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof e_){let r=Xc.get(n);r||(r=new Set,Xc.set(n,r)),r.add(this);let a=lp.get(this);a||(a=new Set,lp.set(this,a)),a.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Jc)this.unregisterFromGraph(n.options.deps);else if(n instanceof e_){const r=Xc.get(n);r&&r.delete(this);const a=lp.get(this);a&&a.delete(n)}}}const Cs="__TSR_index",mx="popstate",gx="beforeunload";function qD(e){let t=e.getLocation();const n=new Set,r=c=>{t=e.getLocation(),n.forEach(u=>u({location:t,action:c}))},a=c=>{e.notifyOnIndexChange??!0?r(c):t=e.getLocation()},i=async({task:c,navigateOpts:u,...d})=>{if(u?.ignoreBlocker??!1){c();return}const m=e.getBlockers?.()??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&m.length&&p)for(const g of m){const y=xp(d.path,d.state);if(await g.blockerFn({currentLocation:t,nextLocation:y,action:d.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,u,d)=>{const f=t.state[Cs];u=vx(f+1,u),i({task:()=>{e.pushState(c,u),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:c,state:u})},replace:(c,u,d)=>{const f=t.state[Cs];u=vx(f,u),i({task:()=>{e.replaceState(c,u),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:c,state:u})},go:(c,u)=>{i({task:()=>{e.go(c),a({type:"GO",index:c})},navigateOpts:u,type:"GO"})},back:c=>{i({task:()=>{e.back(c?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{i({task:()=>{e.forward(c?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[Cs]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const u=e.getBlockers?.()??[];return e.setBlockers([...u,c]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(f=>f!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function vx(e,t){t||(t={});const n=mb();return{...t,key:n,__TSR_key:n,[Cs]:e}}function HD(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let a=[];const i=()=>a,c=D=>a=D,u=(D=>D),d=(()=>xp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const D=mb();t.history.replaceState({[Cs]:0,key:D,__TSR_key:D},"")}let f=d(),m,p=!1,g=!1,y=!1,b=!1;const w=()=>f;let S,x;const E=()=>{S&&(M._ignoreSubscribers=!0,(S.isPush?t.history.pushState:t.history.replaceState)(S.state,"",S.href),M._ignoreSubscribers=!1,S=void 0,x=void 0,m=void 0)},T=(D,z,Q)=>{const V=u(z);x||(m=f),f=xp(z,Q),S={href:V,state:Q,isPush:S?.isPush||D==="push"},x||(x=Promise.resolve().then(()=>E()))},C=D=>{f=d(),M.notify({type:D})},O=async()=>{if(g){g=!1;return}const D=d(),z=D.state[Cs]-f.state[Cs],Q=z===1,V=z===-1,Z=!Q&&!V||p;p=!1;const U=Z?"GO":V?"BACK":"FORWARD",ee=Z?{type:"GO",index:z}:{type:V?"BACK":"FORWARD"};if(y)y=!1;else{const ie=i();if(typeof document<"u"&&ie.length){for(const F of ie)if(await F.blockerFn({currentLocation:f,nextLocation:D,action:U})){g=!0,t.history.go(1),M.notify(ee);return}}}f=d(),M.notify(ee)},I=D=>{if(b){b=!1;return}let z=!1;const Q=i();if(typeof document<"u"&&Q.length)for(const V of Q){const Z=V.enableBeforeUnload??!0;if(Z===!0){z=!0;break}if(typeof Z=="function"&&Z()===!0){z=!0;break}}if(z)return D.preventDefault(),D.returnValue=""},M=qD({getLocation:w,getLength:()=>t.history.length,pushState:(D,z)=>T("push",D,z),replaceState:(D,z)=>T("replace",D,z),back:D=>(D&&(y=!0),b=!0,t.history.back()),forward:D=>{D&&(y=!0),b=!0,t.history.forward()},go:D=>{p=!0,t.history.go(D)},createHref:D=>u(D),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(gx,I,{capture:!0}),t.removeEventListener(mx,O)},onBlocked:()=>{m&&f!==m&&(f=m)},getBlockers:i,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(gx,I,{capture:!0}),t.addEventListener(mx,O),t.history.pushState=function(...D){const z=n.apply(t.history,D);return M._ignoreSubscribers||C("PUSH"),z},t.history.replaceState=function(...D){const z=r.apply(t.history,D);return M._ignoreSubscribers||C("REPLACE"),z},M}function xp(e,t){const n=e.indexOf("#"),r=e.indexOf("?"),a=mb();return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{[Cs]:0,key:a,__TSR_key:a}}}function mb(){return(Math.random()+1).toString(36).substring(7)}function Tp(e){return e[e.length-1]}function GD(e){return typeof e=="function"}function Ti(e,t){return GD(e)?e(t):e}const ZD=Object.prototype.hasOwnProperty;function lo(e,t){if(e===t)return e;const n=t,r=bx(e)&&bx(n);if(!r&&!(Op(e)&&Op(n)))return n;const a=r?e:yx(e);if(!a)return n;const i=r?n:yx(n);if(!i)return n;const c=a.length,u=i.length,d=r?new Array(u):{};let f=0;for(let m=0;m<u;m++){const p=r?m:i[m],g=e[p],y=n[p];if(g===y){d[p]=g,(r?m<c:ZD.call(e,p))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){d[p]=y;continue}const b=lo(g,y);d[p]=b,b===g&&f++}return c===u&&f===c?e:d}function yx(e){const t=[],n=Object.getOwnPropertyNames(e);for(const a of n){if(!Object.prototype.propertyIsEnumerable.call(e,a))return!1;t.push(a)}const r=Object.getOwnPropertySymbols(e);for(const a of r){if(!Object.prototype.propertyIsEnumerable.call(e,a))return!1;t.push(a)}return t}function Op(e){if(!_x(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!_x(n)||!n.hasOwnProperty("isPrototypeOf"))}function _x(e){return Object.prototype.toString.call(e)==="[object Object]"}function bx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oi(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,a=e.length;r<a;r++)if(!Oi(e[r],t[r],n))return!1;return!0}if(Op(e)&&Op(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!r||t[c]!==void 0)&&!Oi(e[c],t[c],n))return!1;return!0}let a=0;if(!r)a=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&a++;let i=0;for(const c in t)if((!r||t[c]!==void 0)&&(i++,i>a||!Oi(e[c],t[c],n)))return!1;return a===i}return!1}function il(e){let t,n;const r=new Promise((a,i)=>{t=a,n=i});return r.status="pending",r.resolve=a=>{r.status="resolved",r.value=a,t(a),e?.(a)},r.reject=a=>{r.status="rejected",n(a)},r}function KD(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function As(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function Sx(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function wx(e,t){if(!e)return e;const n=/%25|%5C/gi;let r=0,a="",i;for(;(i=n.exec(e))!==null;)a+=Sx(e.slice(r,i.index))+i[0],r=n.lastIndex;return a+Sx(r?e.slice(r):e)}var WD="Invariant failed";function Ma(e,t){if(!e)throw new Error(WD)}function Cp(e){const t=new Map;let n,r;const a=i=>{i.next&&(i.prev?(i.prev.next=i.next,i.next.prev=i.prev,i.next=void 0,r&&(r.next=i,i.prev=r)):(i.next.prev=void 0,n=i.next,i.next=void 0,r&&(i.prev=r,r.next=i)),r=i)};return{get(i){const c=t.get(i);if(c)return a(c),c.value},set(i,c){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const u=t.get(i);if(u)u.value=c,a(u);else{const d={key:i,value:c,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(i,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const cl=0,ki=1,Ni=2,Ju=3,YD=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,QD=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,XD=/^([^{]*)\{\$\}([^}]*)$/;function gb(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),a=r===-1?e.length:r,i=e.substring(t,a);if(!i||!i.includes("$"))return n[0]=cl,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(i==="$"){const f=e.length;return n[0]=Ni,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(i.charCodeAt(0)===36)return n[0]=ki,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const c=i.match(XD);if(c){const m=c[1].length;return n[0]=Ni,n[1]=t+m,n[2]=t+m+1,n[3]=t+m+2,n[4]=t+m+3,n[5]=e.length,n}const u=i.match(QD);if(u){const f=u[1],m=u[2],p=u[3],g=f.length;return n[0]=Ju,n[1]=t+g,n[2]=t+g+3,n[3]=t+g+3+m.length,n[4]=a-p.length,n[5]=a,n}const d=i.match(YD);if(d){const f=d[1],m=d[2],p=d[3],g=f.length;return n[0]=ki,n[1]=t+g,n[2]=t+g+2,n[3]=t+g+2+m.length,n[4]=a-p.length,n[5]=a,n}return n[0]=cl,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function bm(e,t,n,r,a,i,c){c?.(n);let u=r;{const d=n.fullPath??n.from,f=d.length,m=n.options?.caseSensitive??e;for(;u<f;){const p=gb(d,u,t);let g;const y=u,b=p[5];switch(u=b+1,i++,p[0]){case cl:{const S=d.substring(p[2],p[3]);if(m){const x=a.static?.get(S);if(x)g=x;else{a.static??=new Map;const E=ed(n.fullPath??n.from);E.parent=a,E.depth=i,g=E,a.static.set(S,E)}}else{const x=S.toLowerCase(),E=a.staticInsensitive?.get(x);if(E)g=E;else{a.staticInsensitive??=new Map;const T=ed(n.fullPath??n.from);T.parent=a,T.depth=i,g=T,a.staticInsensitive.set(x,T)}}break}case ki:{const S=d.substring(y,p[1]),x=d.substring(p[4],b),E=m&&!!(S||x),T=S?E?S:S.toLowerCase():void 0,C=x?E?x:x.toLowerCase():void 0,O=a.dynamic?.find(I=>I.caseSensitive===E&&I.prefix===T&&I.suffix===C);if(O)g=O;else{const I=Ay(ki,n.fullPath??n.from,E,T,C);g=I,I.depth=i,I.parent=a,a.dynamic??=[],a.dynamic.push(I)}break}case Ju:{const S=d.substring(y,p[1]),x=d.substring(p[4],b),E=m&&!!(S||x),T=S?E?S:S.toLowerCase():void 0,C=x?E?x:x.toLowerCase():void 0,O=a.optional?.find(I=>I.caseSensitive===E&&I.prefix===T&&I.suffix===C);if(O)g=O;else{const I=Ay(Ju,n.fullPath??n.from,E,T,C);g=I,I.parent=a,I.depth=i,a.optional??=[],a.optional.push(I)}break}case Ni:{const S=d.substring(y,p[1]),x=d.substring(p[4],b),E=m&&!!(S||x),T=S?E?S:S.toLowerCase():void 0,C=x?E?x:x.toLowerCase():void 0,O=Ay(Ni,n.fullPath??n.from,E,T,C);g=O,O.parent=a,O.depth=i,a.wildcard??=[],a.wildcard.push(O)}}a=g}if((n.path||!n.children)&&!n.isRoot){const p=d.endsWith("/");p||(a.notFound=n),(!a.route||!a.isIndex&&p)&&(a.route=n),a.isIndex||=p}}if(n.children)for(const d of n.children)bm(e,t,d,u,a,i,c)}function Cy(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function bi(e){if(e.static)for(const t of e.static.values())bi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())bi(t);if(e.dynamic?.length){e.dynamic.sort(Cy);for(const t of e.dynamic)bi(t)}if(e.optional?.length){e.optional.sort(Cy);for(const t of e.optional)bi(t)}if(e.wildcard?.length){e.wildcard.sort(Cy);for(const t of e.wildcard)bi(t)}}function ed(e){return{kind:cl,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function Ay(e,t,n,r,a){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:r,suffix:a}}function JD(e,t){const n=ed("/"),r=new Uint16Array(6);for(const a of e)bm(!1,r,a,1,n,0);bi(n),t.masksTree=n,t.flatCache=Cp(1e3)}function e6(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=vb(e,t.masksTree);return t.flatCache.set(e,r),r}function t6(e,t,n,r,a){e||="/",r||="/";const i=t?`case\0${e}`:e;let c=a.singleCache.get(i);if(!c){c=ed("/");const u=new Uint16Array(6);bm(t,u,{from:e},1,c,0),a.singleCache.set(i,c)}return vb(r,c,n)}function n6(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,a=t.matchCache.get(r);if(a!==void 0)return a;e||="/";const i=vb(e,t.segmentTree,n);return i&&(i.branch=s6(i.route)),t.matchCache.set(r,i),i}function r6(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function o6(e,t=!1,n){const r=ed(e.fullPath),a=new Uint16Array(6),i={},c={};let u=0;return bm(t,a,e,1,r,0,f=>{if(n?.(f,u),Ma(!(f.id in i),`Duplicate routes found with id: ${String(f.id)}`),i[f.id]=f,u!==0&&f.path){const m=r6(f.fullPath);(!c[m]||f.fullPath.endsWith("/"))&&(c[m]=f)}u++}),bi(r),{processedTree:{segmentTree:r,singleCache:Cp(1e3),matchCache:Cp(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:c}}function vb(e,t,n=!1){const r=e.split("/"),a=c6(e,r,t,n);if(!a)return null;const i=a6(e,r,a),c="**"in a;return c&&(i["**"]=a["**"]),{route:c?a.node.notFound??a.node.route:a.node.route,params:i}}function a6(e,t,n){const r=i6(n.node);let a=null;const i={};for(let c=0,u=0,d=0;u<r.length;c++,u++,d++){const f=r[u],m=t[c],p=d;if(m&&(d+=m.length),f.kind===ki){a??=n.node.fullPath.split("/");const g=a[u],y=f.prefix?.length??0;if(g.charCodeAt(y)===123){const w=f.suffix?.length??0,S=g.substring(y+2,g.length-w-1),x=m.substring(y,m.length-w);i[S]=decodeURIComponent(x)}else{const w=g.substring(1);i[w]=decodeURIComponent(m)}}else if(f.kind===Ju){if(n.skipped&1<<u){c--;continue}a??=n.node.fullPath.split("/");const g=a[u],y=f.prefix?.length??0,b=f.suffix?.length??0,w=g.substring(y+3,g.length-b-1),S=f.suffix||f.prefix?m.substring(y,m.length-b):m;S&&(i[w]=decodeURIComponent(S))}else if(f.kind===Ni){const g=f,y=e.substring(p+(g.prefix?.length??0),e.length-(g.suffix?.length??0)),b=decodeURIComponent(y);i["*"]=b,i._splat=b;break}}return i}function s6(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function i6(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function c6(e,t,n,r){const a=!Tp(t),i=a&&e!=="/",c=t.length-(a?1:0),u=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let d=null,f=null,m=null;for(;u.length;){const p=u.pop();let{node:g,index:y,skipped:b,depth:w,statics:S,dynamics:x,optionals:E}=p;r&&g.notFound&&Qf(f,p)&&(f=p);const T=y===c;if(T){if(g.route&&(!i||g.isIndex)&&(Qf(m,p)&&(m=p),S===c&&g.isIndex))return m;if(!g.optional&&!g.wildcard)continue}const C=T?void 0:t[y];let O;if(g.wildcard&&Qf(d,p))for(const I of g.wildcard){const{prefix:M,suffix:D}=I;if(!(M&&(T||!(I.caseSensitive?C:O??=C.toLowerCase()).startsWith(M)))){if(D){if(T)continue;const z=t.slice(y).join("/").slice(-D.length);if((I.caseSensitive?z:z.toLowerCase())!==D)continue}d={node:I,index:y,skipped:b,depth:w,statics:S,dynamics:x,optionals:E};break}}if(g.optional){const I=b|1<<w,M=w+1;for(let D=g.optional.length-1;D>=0;D--){const z=g.optional[D];u.push({node:z,index:y,skipped:I,depth:M,statics:S,dynamics:x,optionals:E})}if(!T)for(let D=g.optional.length-1;D>=0;D--){const z=g.optional[D],{prefix:Q,suffix:V}=z;if(Q||V){const Z=z.caseSensitive?C:O??=C.toLowerCase();if(Q&&!Z.startsWith(Q)||V&&!Z.endsWith(V))continue}u.push({node:z,index:y+1,skipped:b,depth:M,statics:S,dynamics:x,optionals:E+1})}}if(!T&&g.dynamic&&C)for(let I=g.dynamic.length-1;I>=0;I--){const M=g.dynamic[I],{prefix:D,suffix:z}=M;if(D||z){const Q=M.caseSensitive?C:O??=C.toLowerCase();if(D&&!Q.startsWith(D)||z&&!Q.endsWith(z))continue}u.push({node:M,index:y+1,skipped:b,depth:w+1,statics:S,dynamics:x+1,optionals:E})}if(!T&&g.staticInsensitive){const I=g.staticInsensitive.get(O??=C.toLowerCase());I&&u.push({node:I,index:y+1,skipped:b,depth:w+1,statics:S+1,dynamics:x,optionals:E})}if(!T&&g.static){const I=g.static.get(C);I&&u.push({node:I,index:y+1,skipped:b,depth:w+1,statics:S+1,dynamics:x,optionals:E})}}if(m&&d)return Qf(d,m)?m:d;if(m)return m;if(d)return d;if(r&&f){let p=f.index;for(let y=0;y<f.index;y++)p+=t[y].length;const g=p===e.length?"/":e.slice(p);return{node:f.node,skipped:f.skipped,"**":decodeURIComponent(g)}}return null}function Qf(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function up(e){return yb(e.filter(t=>t!==void 0).join("/"))}function yb(e){return e.replace(/\/{2,}/g,"/")}function aA(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Ci(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function dp(e){return Ci(aA(e))}function Ap(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function l6(e,t,n){return Ap(e,n)===Ap(t,n)}function u6({base:e,to:t,trailingSlash:n="never",cache:r}){const a=t.startsWith("/"),i=!a&&t===".";let c;if(r){c=a?t:i?e:e+"\0"+t;const p=r.get(c);if(p)return p}let u;if(i)u=e.split("/");else if(a)u=t.split("/");else{for(u=e.split("/");u.length>1&&Tp(u)==="";)u.pop();const p=t.split("/");for(let g=0,y=p.length;g<y;g++){const b=p[g];b===""?g?g===y-1&&u.push(b):u=[b]:b===".."?u.pop():b==="."||u.push(b)}}u.length>1&&(Tp(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));let d,f="";for(let p=0;p<u.length;p++){p>0&&(f+="/");const g=u[p];if(!g)continue;d=gb(g,0,d);const y=d[0];if(y===cl){f+=g;continue}const b=d[5],w=g.substring(0,d[1]),S=g.substring(d[4],b),x=g.substring(d[2],d[3]);y===ki?f+=w||S?`${w}{$${x}}${S}`:`$${x}`:y===Ni?f+=w||S?`${w}{$}${S}`:"$":f+=`${w}{-$${x}}${S}`}f=yb(f);const m=f||"/";return c&&r&&r.set(c,m),m}function Iy(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?encodeURI(r):d6(r,n)}function ky({path:e,params:t,decodeCharMap:n}){let r=!1;const a={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:a,isMissingParams:r};if(!e.includes("$"))return{interpolatedPath:e,usedParams:a,isMissingParams:r};const i=e.length;let c=0,u,d="";for(;c<i;){const m=c;u=gb(e,m,u);const p=u[5];if(c=p+1,m===p)continue;const g=u[0];if(g===cl){d+="/"+e.substring(m,p);continue}if(g===Ni){const y=t._splat;a._splat=y,a["*"]=y;const b=e.substring(m,u[1]),w=e.substring(u[4],p);if(!y){r=!0,(b||w)&&(d+="/"+b+w);continue}const S=Iy("_splat",t,n);d+="/"+b+S+w;continue}if(g===ki){const y=e.substring(u[2],u[3]);!r&&!(y in t)&&(r=!0),a[y]=t[y];const b=e.substring(m,u[1]),w=e.substring(u[4],p),S=Iy(y,t,n)??"undefined";d+="/"+b+S+w;continue}if(g===Ju){const y=e.substring(u[2],u[3]),b=t[y];if(b==null)continue;a[y]=b;const w=e.substring(m,u[1]),S=e.substring(u[4],p),x=Iy(y,t,n)??"";d+="/"+w+x+S;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:a,interpolatedPath:d||"/",isMissingParams:r}}function d6(e,t){let n=encodeURIComponent(e);if(t)for(const[r,a]of t)n=n.replaceAll(r,a);return n}function ho(e){return!!e?.isNotFound}function f6(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ip="tsr-scroll-restoration-v1_3",h6=(e,t)=>{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function p6(){const e=f6();if(!e)return null;const t=e.getItem(Ip);let n=t?JSON.parse(t):{};return{state:n,set:r=>(n=Ti(r,n)||n,e.setItem(Ip,JSON.stringify(n)))}}const Xf=p6(),t_=e=>e.state.__TSR_key||e.href;function m6(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let kp=!1;function sA({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:a,location:i}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(f){console.error(f);return}const u=t||window.history.state?.__TSR_key,d=c[u];kp=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const p in d){const g=d[p];if(p==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:n});else if(p){const y=document.querySelector(p);y&&(y.scrollLeft=g.scrollX,y.scrollTop=g.scrollY)}}break e}const f=(i??window.location).hash.split("#",2)[1];if(f){const p=window.history.state?.__hashScrollIntoViewOptions??!0;if(p){const g=document.getElementById(f);g&&g.scrollIntoView(p)}break e}const m={top:0,left:0,behavior:n};if(window.scrollTo(m),a)for(const p of a){if(p==="window")continue;const g=typeof p=="function"?p():document.querySelector(p);g&&g.scrollTo(m)}}kp=!1}function g6(e,t){if(!Xf&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!Xf))return;e.isScrollRestorationSetup=!0,kp=!1;const r=e.options.getScrollRestorationKey||t_;window.history.scrollRestoration="manual";const a=i=>{if(kp||!e.isScrollRestoring)return;let c="";if(i.target===document||i.target===window)c="window";else{const d=i.target.getAttribute("data-scroll-restoration-id");d?c=`[data-scroll-restoration-id="${d}"]`:c=m6(i.target)}const u=r(e.state.location);Xf.set(d=>{const f=d[u]||={},m=f[c]||={};if(c==="window")m.scrollX=window.scrollX||0,m.scrollY=window.scrollY||0;else if(c){const p=document.querySelector(c);p&&(m.scrollX=p.scrollLeft||0,m.scrollY=p.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",h6(a,100),!0),e.subscribe("onRendered",i=>{const c=r(i.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(sA({storageKey:Ip,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Xf.set(u=>(u[c]||={},u)))})}function v6(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function y6(e,t=String){const n=new URLSearchParams;for(const r in e){const a=e[r];a!==void 0&&n.set(r,t(a))}return n.toString()}function Ny(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function _6(e){const t=new URLSearchParams(e),n={};for(const[r,a]of t.entries()){const i=n[r];i==null?n[r]=Ny(a):Array.isArray(i)?i.push(Ny(a)):n[r]=[i,Ny(a)]}return n}const b6=w6(JSON.parse),S6=E6(JSON.stringify,JSON.parse);function w6(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=_6(t);for(const r in n){const a=n[r];if(typeof a=="string")try{n[r]=e(a)}catch{}}return n}}function E6(e,t){const n=typeof t=="function";function r(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(n&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const i=y6(a,r);return i?`?${i}`:""}}const Fr="__root__";function ll(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Do(e){return e instanceof Response&&!!e.options}const fp=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Sm=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),iA=(e,t)=>{const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Ma(n.options.notFoundComponent);const r=e.matches.find(a=>a.routeId===n.id);Ma(r,"Could not find match for route: "+n.id),e.updateMatch(r.id,a=>({...a,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,iA(e,t))},xs=(e,t,n)=>{if(!(!Do(n)&&!ho(n))){if(Do(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const r=Do(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,a=>({...a,status:r,isFetching:!1,error:n})),ho(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw Do(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(iA(e,n),n)}},cA=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},yu=(e,t,n,r)=>{const{id:a,routeId:i}=e.matches[t],c=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,xs(e,e.router.getMatch(a),n);try{c.options.onError?.(n)}catch(u){n=u,xs(e,e.router.getMatch(a),n)}e.updateMatch(a,u=>(u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loadPromise?.resolve(),{...u,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},R6=(e,t,n,r)=>{const a=e.router.getMatch(t),i=e.matches[n-1]?.id,c=i?e.router.getMatch(i):void 0;if(e.router.isShell()){a.ssr=r.id===Fr;return}if(c?.ssr===!1){a.ssr=!1;return}const u=y=>y===!0&&c?.ssr==="data-only"?"data-only":y,d=e.router.options.defaultSsr??!0;if(r.options.ssr===void 0){a.ssr=u(d);return}if(typeof r.options.ssr!="function"){a.ssr=u(r.options.ssr);return}const{search:f,params:m}=a,p={search:Jf(f,a.searchError),params:Jf(m,a.paramsError),location:e.location,matches:e.matches.map(y=>({index:y.index,pathname:y.pathname,fullPath:y.fullPath,staticData:y.staticData,id:y.id,routeId:y.routeId,search:Jf(y.search,y.searchError),params:Jf(y.params,y.paramsError),ssr:y.ssr}))},g=r.options.ssr(p);if(As(g))return g.then(y=>{a.ssr=u(y??d)});a.ssr=u(g??d)},lA=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!Sm(e,t)&&(n.options.loader||n.options.beforeLoad||fA(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{fp(e)},a);r._nonReactive.pendingTimeout=c}},x6=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;lA(e,t,n,r);const a=()=>{const i=e.router.getMatch(t);i.preload&&(i.status==="redirected"||i.status==="notFound")&&xs(e,i,i.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(a):a()},T6=(e,t,n,r)=>{const a=e.router.getMatch(t),i=a._nonReactive.loadPromise;a._nonReactive.loadPromise=il(()=>{i?.resolve()});const{paramsError:c,searchError:u}=a;c&&yu(e,n,c,"PARSE_PARAMS"),u&&yu(e,n,u,"VALIDATE_SEARCH"),lA(e,t,r,a);const d=new AbortController,f=e.matches[n-1]?.id,g={...(f?e.router.getMatch(f):void 0)?.context??e.router.options.context??void 0,...a.__routeContext};let y=!1;const b=()=>{y||(y=!0,e.updateMatch(t,M=>({...M,isFetching:"beforeLoad",fetchCount:M.fetchCount+1,abortController:d,context:g})))},w=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,M=>({...M,isFetching:!1}))};if(!r.options.beforeLoad){Vu(()=>{b(),w()});return}a._nonReactive.beforeLoadPromise=il();const{search:S,params:x,cause:E}=a,T=Sm(e,t),C={search:S,abortController:d,params:x,preload:T,context:g,location:e.location,navigate:M=>e.router.navigate({...M,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:T?"preload":E,matches:e.matches,...e.router.options.additionalContext},O=M=>{if(M===void 0){Vu(()=>{b(),w()});return}(Do(M)||ho(M))&&(b(),yu(e,n,M,"BEFORE_LOAD")),Vu(()=>{b(),e.updateMatch(t,D=>({...D,__beforeLoadContext:M,context:{...D.context,...M}})),w()})};let I;try{if(I=r.options.beforeLoad(C),As(I))return b(),I.catch(M=>{yu(e,n,M,"BEFORE_LOAD")}).then(O)}catch(M){b(),yu(e,n,M,"BEFORE_LOAD")}O(I)},O6=(e,t)=>{const{id:n,routeId:r}=e.matches[t],a=e.router.looseRoutesById[r],i=()=>{if(e.router.isServer){const d=R6(e,n,t,a);if(As(d))return d.then(u)}return u()},c=()=>T6(e,n,t,a),u=()=>{if(cA(e,n))return;const d=x6(e,n,a);return As(d)?d.then(c):c()};return i()},Fu=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(a),n.options.scripts?.(a),n.options.headers?.(a)]).then(([i,c,u])=>{const d=i?.meta,f=i?.links,m=i?.scripts,p=i?.styles;return{meta:d,links:f,headScripts:m,headers:u,scripts:c,styles:p}})},uA=(e,t,n,r)=>{const a=e.matchPromises[n-1],{params:i,loaderDeps:c,abortController:u,cause:d}=e.router.getMatch(t);let f=e.router.options.context??{};for(let p=0;p<=n;p++){const g=e.matches[p];if(!g)continue;const y=e.router.getMatch(g.id);y&&(f={...f,...y.__routeContext??{},...y.__beforeLoadContext??{}})}const m=Sm(e,t);return{params:i,deps:c,preload:!!m,parentMatchPromise:a,abortController:u,context:f,location:e.location,navigate:p=>e.router.navigate({...p,_fromLocation:e.location}),cause:m?"preload":d,route:r,...e.router.options.additionalContext}},Ex=async(e,t,n,r)=>{try{const a=e.router.getMatch(t);try{(!e.router.isServer||a.ssr===!0)&&dA(r);const i=r.options.loader?.(uA(e,t,n,r)),c=r.options.loader&&As(i);if((c||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(t,p=>({...p,isFetching:"loader"})),r.options.loader){const p=c?await i:i;xs(e,e.router.getMatch(t),p),p!==void 0&&e.updateMatch(t,g=>({...g,loaderData:p}))}r._lazyPromise&&await r._lazyPromise;const d=Fu(e,t,r),f=d?await d:void 0,m=a._nonReactive.minPendingPromise;m&&await m,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,p=>({...p,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...f}))}catch(i){let c=i;const u=a._nonReactive.minPendingPromise;u&&await u,ho(i)&&await r.options.notFoundComponent?.preload?.(),xs(e,e.router.getMatch(t),i);try{r.options.onError?.(i)}catch(m){c=m,xs(e,e.router.getMatch(t),m)}const d=Fu(e,t,r),f=d?await d:void 0;e.updateMatch(t,m=>({...m,error:c,status:"error",isFetching:!1,...f}))}}catch(a){const i=e.router.getMatch(t);if(i){const c=Fu(e,t,r);if(c){const u=await c;e.updateMatch(t,d=>({...d,...u}))}i._nonReactive.loaderPromise=void 0}xs(e,i,a)}},C6=async(e,t)=>{const{id:n,routeId:r}=e.matches[t];let a=!1,i=!1;const c=e.router.looseRoutesById[r];if(cA(e,n)){if(e.router.isServer){const f=Fu(e,n,c);if(f){const m=await f;e.updateMatch(n,p=>({...p,...m}))}return e.router.getMatch(n)}}else{const f=e.router.getMatch(n);if(f._nonReactive.loaderPromise){if(f.status==="success"&&!e.sync&&!f.preload)return f;await f._nonReactive.loaderPromise;const m=e.router.getMatch(n),p=m._nonReactive.error||m.error;p&&xs(e,m,p)}else{const m=Date.now()-f.updatedAt,p=Sm(e,n),g=p?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,y=c.options.shouldReload,b=typeof y=="function"?y(uA(e,n,t,c)):y,w=!!p&&!e.router.state.matches.some(T=>T.id===n),S=e.router.getMatch(n);S._nonReactive.loaderPromise=il(),w!==S.preload&&e.updateMatch(n,T=>({...T,preload:w}));const{status:x,invalid:E}=S;if(a=x==="success"&&(E||(b??m>g)),!(p&&c.options.preload===!1))if(a&&!e.sync)i=!0,(async()=>{try{await Ex(e,n,t,c);const T=e.router.getMatch(n);T._nonReactive.loaderPromise?.resolve(),T._nonReactive.loadPromise?.resolve(),T._nonReactive.loaderPromise=void 0}catch(T){Do(T)&&await e.router.navigate(T.options)}})();else if(x!=="success"||a&&e.sync)await Ex(e,n,t,c);else{const T=Fu(e,n,c);if(T){const C=await T;e.updateMatch(n,O=>({...O,...C}))}}}}const u=e.router.getMatch(n);i||(u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loadPromise?.resolve()),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,i||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;const d=i?u.isFetching:!1;return d!==u.isFetching||u.invalid!==!1?(e.updateMatch(n,f=>({...f,isFetching:d,invalid:!1})),e.router.getMatch(n)):u};async function Rx(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&fp(t);try{for(let a=0;a<t.matches.length;a++){const i=O6(t,a);As(i)&&await i}const n=t.firstBadMatchIndex??t.matches.length;for(let a=0;a<n;a++)t.matchPromises.push(C6(t,a));await Promise.all(t.matchPromises);const r=fp(t);As(r)&&await r}catch(n){if(ho(n)&&!t.preload){const r=fp(t);throw As(r)&&await r,n}if(Do(n))throw n}return t.matches}async function dA(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of hA){const a=e.options[r]?.preload;a&&n.push(a())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Jf(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function fA(e){for(const t of hA)if(e.options[t]?.preload)return!0;return!1}const hA=["component","errorComponent","pendingComponent","notFoundComponent"];function A6(e){return{input:({url:t})=>{for(const n of e)t=pA(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=mA(e[n],t);return t}}}function I6(e){const t=dp(e.basepath),n=`/${t}`,r=`${n}/`,a=e.caseSensitive?n:n.toLowerCase(),i=e.caseSensitive?r:r.toLowerCase();return{input:({url:c})=>{const u=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return u===a?c.pathname="/":u.startsWith(i)&&(c.pathname=c.pathname.slice(n.length)),c},output:({url:c})=>(c.pathname=up(["/",t,c.pathname]),c)}}function pA(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function mA(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Ai(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,a=t?.href!==n.href,i=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:a,hashChanged:i}}class k6{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,a=this.basepath??r?.basepath??"/",i=this.basepath===void 0,c=r?.rewrite;this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(g=>[encodeURIComponent(g),g])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=HD())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new e_(M6(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(g=>!["redirected"].includes(g.status))}}}),g6(this));let u=!1;const d=this.options.basepath??"/",f=this.options.rewrite;if(i||a!==d||c!==f){this.basepath=d;const g=[];dp(d)!==""&&g.push(I6({basepath:d})),f&&g.push(f),this.rewrite=g.length===0?void 0:g.length===1?g[0]:A6(g),this.history&&this.updateLatestLocation(),u=!0}u&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:r,processedTree:a}=o6(this.routeTree,this.options.caseSensitive,(c,u)=>{c.init({originalIndex:u})});this.options.routeMasks&&JD(this.options.routeMasks,a),this.routesById=n,this.routesByPath=r,this.processedTree=a;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)},this.subscribe=(n,r)=>{const a={eventType:n,fn:r};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const a=({href:d,state:f})=>{const m=new URL(d,this.origin),p=pA(this.rewrite,m),g=this.options.parseSearch(p.search),y=this.options.stringifySearch(g);p.search=y;const b=p.href.replace(p.origin,""),{pathname:w,hash:S}=p;return{href:b,publicHref:d,url:p.href,pathname:wx(w),searchStr:y,search:lo(r?.search,g),hash:S.split("#").reverse()[0]??"",state:lo(r?.state,f)}},i=a(n),{__tempLocation:c,__tempKey:u}=i.state;if(c&&(!u||u===this.tempLocationKey)){const d=a(c);return d.state.key=i.state.key,d.state.__TSR_key=i.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:i}}return i},this.resolvePathCache=Cp(1e3),this.resolvePathWithBase=(n,r)=>u6({base:n,to:yb(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},a):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>P6({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(i=>i.status==="pending"),r=this.state.matches.filter(i=>i.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(i=>{this.cancelMatch(i.id)})},this.buildLocation=n=>{const r=(i={})=>{const c=i._fromLocation||this.pendingBuiltLocation||this.latestLocation,u=this.matchRoutes(c,{_buildLocation:!0}),d=Tp(u);i.from;const f=i.unsafeRelative==="path"?c.pathname:i.from??d.fullPath,m=this.resolvePathWithBase(f,"."),p=d.search,g={...d.params},y=i.to?this.resolvePathWithBase(m,`${i.to}`):this.resolvePathWithBase(m,"."),b=i.params===!1||i.params===null?{}:(i.params??!0)===!0?g:Object.assign(g,Ti(i.params,g)),w=ky({path:y,params:b}).interpolatedPath,S=this.matchRoutes(w,void 0,{_buildLocation:!0}).map(Q=>this.looseRoutesById[Q.routeId]);if(Object.keys(b).length>0)for(const Q of S){const V=Q.options.params?.stringify??Q.options.stringifyParams;V&&Object.assign(b,V(b))}const x=n.leaveParams?y:wx(ky({path:y,params:b,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let E=p;if(n._includeValidateSearch&&this.options.search?.strict){const Q={};S.forEach(V=>{if(V.options.validateSearch)try{Object.assign(Q,n_(V.options.validateSearch,{...Q,...E}))}catch{}}),E=Q}E=D6({search:E,dest:i,destRoutes:S,_includeValidateSearch:n._includeValidateSearch}),E=lo(p,E);const T=this.options.stringifySearch(E),C=i.hash===!0?c.hash:i.hash?Ti(i.hash,c.hash):void 0,O=C?`#${C}`:"";let I=i.state===!0?c.state:i.state?Ti(i.state,c.state):{};I=lo(c.state,I);const M=`${x}${T}${O}`,D=new URL(M,this.origin),z=mA(this.rewrite,D);return{publicHref:z.pathname+z.search+z.hash,href:M,url:z.href,pathname:x,search:E,searchStr:T,state:I,hash:C??"",unmaskOnReload:i.unmaskOnReload}},a=(i={},c)=>{const u=r(i);let d=c?r(c):void 0;if(!d){const f={};if(this.options.routeMasks){const m=e6(u.pathname,this.processedTree);if(m){Object.assign(f,m.params);const{from:p,...g}=m.route;c={from:n.from,...g,params:f},d=r(c)}}}return d&&(u.maskedLocation=d),u};return n.mask?a(n,{from:n.from,...n.mask}):a(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...a})=>{const i=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(m=>{a.state[m]=this.latestLocation.state[m]});const f=Oi(a.state,this.latestLocation.state);return d.forEach(m=>{delete a.state[m]}),f},c=Ci(this.latestLocation.href)===Ci(a.href),u=this.commitLocationPromise;if(this.commitLocationPromise=il(()=>{u?.resolve()}),c&&i())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...m}=a;d&&(m={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[a.replace?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:r})}return this.resetNextScroll=a.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:a,viewTransition:i,ignoreBlocker:c,href:u,...d}={})=>{if(u){const p=this.history.location.state.__TSR_index,g=xp(u,{__TSR_index:n?p:p+1});d.to=g.pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const f=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const m=this.commitLocation({...f,viewTransition:i,replace:n,resetScroll:r,hashScrollIntoView:a,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),m},this.navigate=async({to:n,reloadDocument:r,href:a,...i})=>{if(!r&&a)try{new URL(`${a}`),r=!0}catch{}if(r){if(a||(a=this.buildLocation({to:n,...i}).url),!i.ignoreBlocker){const u=this.history.getBlockers?.()??[];for(const d of u)if(d?.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(a):window.location.href=a,Promise.resolve()}return this.buildAndCommitLocation({...i,href:a,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),a=i=>{try{return encodeURI(decodeURI(i))}catch{return i}};if(dp(a(this.latestLocation.href))!==dp(a(r.href))){let i=r.url;throw this.origin&&i.startsWith(this.origin)&&(i=i.replace(this.origin,"")||"/"),ll({href:i})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(a=>!n.some(i=>i.id===a.id))}))},this.load=async n=>{let r,a,i;for(i=new Promise(u=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,f=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ai({resolvedLocation:f,location:d})}),this.emit({type:"onBeforeLoad",...Ai({resolvedLocation:f,location:d})}),await Rx({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let m=[],p=[],g=[];Vu(()=>{this.__store.setState(y=>{const b=y.matches,w=y.pendingMatches||y.matches;return m=b.filter(S=>!w.some(x=>x.id===S.id)),p=w.filter(S=>!b.some(x=>x.id===S.id)),g=w.filter(S=>b.some(x=>x.id===S.id)),{...y,isLoading:!1,loadedAt:Date.now(),matches:w,pendingMatches:void 0,cachedMatches:[...y.cachedMatches,...m.filter(S=>S.status!=="error"&&S.status!=="notFound")]}}),this.clearExpiredCache()}),[[m,"onLeave"],[p,"onEnter"],[g,"onStay"]].forEach(([y,b])=>{y.forEach(w=>{this.looseRoutesById[w.routeId].options[b]?.(w)})})})})}})}catch(d){Do(d)?(r=d,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ho(d)&&(a=d),this.__store.setState(f=>({...f,statusCode:r?r.status:a?404:f.matches.some(m=>m.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),u()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.__store.state.matches.some(u=>u.status==="error")&&(c=500),c!==void 0&&this.__store.setState(u=>({...u,statusCode:c}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,c=this.state.resolvedLocation,u=typeof r.types=="function"?r.types(Ai({resolvedLocation:c,location:i})):r.types;if(u===!1){n();return}a={update:n,types:u}}else a=n;document.startViewTransition(a)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const a=this.state.pendingMatches?.some(i=>i.id===n)?"pendingMatches":this.state.matches.some(i=>i.id===n)?"matches":this.state.cachedMatches.some(i=>i.id===n)?"cachedMatches":"";a&&this.__store.setState(i=>({...i,[a]:i[a]?.map(c=>c.id===n?r(c):c)}))})},this.getMatch=n=>{const r=a=>a.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=a=>n?.filter?.(a)??!0?{...a,invalid:!0,...n?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.__store.setState(a=>({...a,matches:a.matches.map(r),cachedMatches:a.cachedMatches.map(r),pendingMatches:a.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{if(!n.options.href){const r=this.buildLocation(n.options);let a=r.url;this.origin&&a.startsWith(this.origin)&&(a=a.replace(this.origin,"")||"/"),n.options.href=r.href,n.headers.set("Location",a)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(a=>({...a,cachedMatches:a.cachedMatches.filter(i=>!r(i))})):this.__store.setState(a=>({...a,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const a=this.looseRoutesById[r.routeId];if(!a.options.loader)return!0;const i=(r.preload?a.options.preloadGcTime??this.options.defaultPreloadGcTime:a.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=i};this.clearCache({filter:n})},this.loadRouteChunk=dA,this.preloadRoute=async n=>{const r=this.buildLocation(n);let a=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const i=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(u=>u.id)),c=new Set([...i,...this.state.cachedMatches.map(u=>u.id)]);Vu(()=>{a.forEach(u=>{c.has(u.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,u]}))})});try{return a=await Rx({router:this,matches:a,location:r,preload:!0,updateMatch:(u,d)=>{i.has(u)?a=a.map(f=>f.id===u?d(f):f):this.updateMatch(u,d)}}),a}catch(u){if(Do(u))return u.options.reloadDocument?void 0:await this.preloadRoute({...u.options,_fromLocation:r});ho(u)||console.error(u);return}},this.matchRoute=(n,r)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(a);if(r?.pending&&this.state.status!=="pending")return!1;const u=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=t6(i.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,u.pathname,this.processedTree);return!d||n.params&&!Oi(d.params,n.params,{partial:!0})?!1:r?.includeSearch??!0?Oi(u.search,i.search,{partial:!0})?d.params:!1:d.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??S6,parseSearch:t.parseSearch??b6}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:a,routeParams:i}=r;let{matchedRoutes:c}=r,u=!1;(a?a.path!=="/"&&i["**"]:Ci(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const d=(()=>{if(u){if(this.options.notFoundMode!=="root")for(let p=c.length-1;p>=0;p--){const g=c[p];if(g.children)return g.id}return Fr}})(),f=[],m=p=>p?.id?p.context??this.options.context??void 0:this.options.context??void 0;return c.forEach((p,g)=>{const y=f[g-1],[b,w,S]=(()=>{const U=y?.search??t.search,ee=y?._strictSearch??void 0;try{const ie=n_(p.options.validateSearch,{...U})??void 0;return[{...U,...ie},{...ee,...ie},void 0]}catch(ie){let F=ie;if(ie instanceof Np||(F=new Np(ie.message,{cause:ie})),n?.throwOnError)throw F;return[U,{},F]}})(),x=p.options.loaderDeps?.({search:b})??"",E=x?JSON.stringify(x):"",{interpolatedPath:T,usedParams:C}=ky({path:p.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),O=p.id+T+E,I=this.getMatch(O),M=this.state.matches.find(U=>U.routeId===p.id),D=I?._strictParams??C;let z;if(!I){const U=p.options.params?.parse??p.options.parseParams;if(U)try{Object.assign(D,U(D))}catch(ee){if(ho(ee)||Do(ee)?z=ee:z=new N6(ee.message,{cause:ee}),n?.throwOnError)throw z}}Object.assign(i,D);const Q=M?"stay":"enter";let V;if(I)V={...I,cause:Q,params:M?lo(M.params,i):i,_strictParams:D,search:lo(M?M.search:I.search,b),_strictSearch:w};else{const U=p.options.loader||p.options.beforeLoad||p.lazyFn||fA(p)?"pending":"success";V={id:O,ssr:this.isServer?void 0:p.options.ssr,index:g,routeId:p.id,params:M?lo(M.params,i):i,_strictParams:D,pathname:T,updatedAt:Date.now(),search:M?lo(M.search,b):b,_strictSearch:w,searchError:void 0,status:U,isFetching:!1,error:void 0,paramsError:z,__routeContext:void 0,_nonReactive:{loadPromise:il()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:Q,loaderDeps:M?lo(M.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n?.preload||(V.globalNotFound=d===p.id),V.searchError=S;const Z=m(y);V.context={...Z,...V.__routeContext,...V.__beforeLoadContext},f.push(V)}),f.forEach((p,g)=>{const y=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&n?._buildLocation!==!0){const w=f[g-1],S=m(w);if(y.options.context){const x={deps:p.loaderDeps,params:p.params,context:S??{},location:t,navigate:E=>this.navigate({...E,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:f};p.__routeContext=y.options.context(x)??void 0}p.context={...S,...p.__routeContext,...p.__beforeLoadContext}}}),f}}class Np extends Error{}class N6 extends Error{}function M6(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function n_(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Np("Async validation not supported");if(n.issues)throw new Np(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function P6({pathname:e,routesById:t,processedTree:n}){const r={},a=Ci(e);let i;const c=n6(a,n,!0);return c&&(i=c.route,Object.assign(r,c.params)),{matchedRoutes:c?.branch||[t[Fr]],routeParams:r,foundRoute:i}}function D6({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){const a=n.reduce((u,d)=>{const f=[];if("search"in d.options)d.options.search?.middlewares&&f.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const m=({search:p,next:g})=>{let y=p;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(y=d.options.preSearchFilters.reduce((w,S)=>S(w),p));const b=g(y);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((w,S)=>S(w),b):b};f.push(m)}if(r&&d.options.validateSearch){const m=({search:p,next:g})=>{const y=g(p);try{return{...y,...n_(d.options.validateSearch,y)??void 0}}catch{return y}};f.push(m)}return u.concat(f)},[])??[],i=({search:u})=>t.search?t.search===!0?u:Ti(t.search,u):{};a.push(i);const c=(u,d)=>{if(u>=a.length)return d;const f=a[u];return f({search:d,next:p=>c(u+1,p)})};return c(0,e)}const L6="Error preloading route! ☝️";class gA{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,a=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=Fr:this.parentRoute||Ma(!1);let i=a?Fr:r?.path;i&&i!=="/"&&(i=aA(i));const c=r?.id||i;let u=a?Fr:up([this.parentRoute.id===Fr?"":this.parentRoute.id,c]);i===Fr&&(i="/"),u!==Fr&&(u=up(["/",u]));const d=u===Fr?"/":up([this.parentRoute.fullPath,i]);this._path=i,this._id=u,this._fullPath=d,this._to=d},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class j6 extends gA{constructor(t){super(t)}}function _b(e){const t=e.errorComponent??wm;return R.jsx($6,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?A.createElement(t,{error:n,reset:r}):e.children})}class $6 extends A.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function wm({error:e}){const[t,n]=A.useState(!1);return R.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[R.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),R.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),R.jsx("div",{style:{height:".25rem"}}),t?R.jsx("div",{children:R.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?R.jsx("code",{children:e.message}):null})}):null]})}function U6({children:e,fallback:t=null}){return z6()?R.jsx(le.Fragment,{children:e}):R.jsx(le.Fragment,{children:t})}function z6(){return le.useSyncExternalStore(V6,()=>!0,()=>!1)}function V6(){return()=>{}}var My={exports:{}},Py={},Dy={exports:{}},Ly={};var xx;function F6(){if(xx)return Ly;xx=1;var e=Us();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,c=e.useDebugValue;function u(p,g){var y=g(),b=r({inst:{value:y,getSnapshot:g}}),w=b[0].inst,S=b[1];return i(function(){w.value=y,w.getSnapshot=g,d(w)&&S({inst:w})},[p,y,g]),a(function(){return d(w)&&S({inst:w}),p(function(){d(w)&&S({inst:w})})},[p]),c(y),y}function d(p){var g=p.getSnapshot;p=p.value;try{var y=g();return!n(p,y)}catch{return!0}}function f(p,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Ly.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Ly}var Tx;function vA(){return Tx||(Tx=1,Dy.exports=F6()),Dy.exports}var Ox;function B6(){if(Ox)return Py;Ox=1;var e=Us(),t=vA();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,i=e.useRef,c=e.useEffect,u=e.useMemo,d=e.useDebugValue;return Py.useSyncExternalStoreWithSelector=function(f,m,p,g,y){var b=i(null);if(b.current===null){var w={hasValue:!1,value:null};b.current=w}else w=b.current;b=u(function(){function x(I){if(!E){if(E=!0,T=I,I=g(I),y!==void 0&&w.hasValue){var M=w.value;if(y(M,I))return C=M}return C=I}if(M=C,r(T,I))return M;var D=g(I);return y!==void 0&&y(M,D)?(T=I,M):(T=I,C=D)}var E=!1,T,C,O=p===void 0?null:p;return[function(){return x(m())},O===null?void 0:function(){return x(O())}]},[m,p,g,y]);var S=a(f,b[0],b[1]);return c(function(){w.hasValue=!0,w.value=S},[S]),d(S),S},Py}var Cx;function q6(){return Cx||(Cx=1,My.exports=B6()),My.exports}var yA=q6();const Uoe=ja(yA);function H6(e,t=r=>r,n={}){const r=n.equal??G6;return yA.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,r)}function G6(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,a]of e)if(!t.has(r)||!Object.is(a,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=Ax(e);if(n.length!==Ax(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function Ax(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const jy=A.createContext(null);function _A(){return typeof document>"u"?jy:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=jy,jy)}function Ir(e){const t=A.useContext(_A());return e?.warn,t}function fr(e){const t=Ir({warn:e?.router===void 0}),n=e?.router||t,r=A.useRef(void 0);return H6(n.__store,a=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=lo(r.current,e.select(a));return r.current=i,i}return e.select(a)}return a})}const Em=A.createContext(void 0),Z6=A.createContext(void 0);function na(e){const t=A.useContext(e.from?Z6:Em);return fr({select:r=>{const a=r.matches.find(i=>e.from?e.from===i.routeId:i.id===t);if(Ma(!((e.shouldThrow??!0)&&!a),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),a!==void 0)return e.select?e.select(a):a},structuralSharing:e.structuralSharing})}function bb(e){return na({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Sb(e){const{select:t,...n}=e;return na({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function el(e){return na({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Rm(e){return na({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const ku=typeof window<"u"?A.useLayoutEffect:A.useEffect;function $y(e){const t=A.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function K6(e,t,n={},r={}){A.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([i])=>{t(i)},n);return a.observe(e.current),()=>{a.disconnect()}},[t,n,r.disabled,e])}function W6(e){const t=A.useRef(null);return A.useImperativeHandle(e,()=>t.current,[]),t}function Sl(e){const t=Ir();return A.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function zoe(e){const t=Ir(),n=Sl(),r=A.useRef(null);return ku(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var xm=BC();const bA=ja(xm);function Y6(e,t){const n=Ir(),[r,a]=A.useState(!1),i=A.useRef(!1),c=W6(t),{activeProps:u,inactiveProps:d,activeOptions:f,to:m,preload:p,preloadDelay:g,hashScrollIntoView:y,replace:b,startTransition:w,resetScroll:S,viewTransition:x,children:E,target:T,disabled:C,style:O,className:I,onClick:M,onFocus:D,onMouseEnter:z,onMouseLeave:Q,onTouchStart:V,ignoreBlocker:Z,params:U,search:ee,hash:ie,state:F,mask:J,reloadDocument:ae,unsafeRelative:fe,from:K,_fromLocation:P,...q}=e,B=fr({select:oe=>oe.location.search,structuralSharing:!0}),L=e.from,$=A.useMemo(()=>({...e,from:L}),[n,B,L,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),X=A.useMemo(()=>n.buildLocation({...$}),[n,$]),ge=A.useMemo(()=>{if(C)return;let oe=X.maskedLocation?X.maskedLocation.url:X.url,Ee=!1;return n.origin&&(oe.startsWith(n.origin)?oe=n.history.createHref(oe.replace(n.origin,""))||"/":Ee=!0),{href:oe,external:Ee}},[C,X.maskedLocation,X.url,n.origin,n.history]),_e=A.useMemo(()=>{if(ge?.external)return ge.href;try{return new URL(m),m}catch{}},[m,ge]),Ie=e.reloadDocument||_e?!1:p??n.options.defaultPreload,Ne=g??n.options.defaultPreloadDelay??0,H=fr({select:oe=>{if(_e)return!1;if(f?.exact){if(!l6(oe.location.pathname,X.pathname,n.basepath))return!1}else{const Ee=Ap(oe.location.pathname,n.basepath),Oe=Ap(X.pathname,n.basepath);if(!(Ee.startsWith(Oe)&&(Ee.length===Oe.length||Ee[Oe.length]==="/")))return!1}return(f?.includeSearch??!0)&&!Oi(oe.location.search,X.search,{partial:!f?.exact,ignoreUndefined:!f?.explicitUndefined})?!1:f?.includeHash?oe.location.hash===X.hash:!0}}),re=A.useCallback(()=>{n.preloadRoute({...$}).catch(oe=>{console.warn(oe),console.warn(L6)})},[n,$]),be=A.useCallback(oe=>{oe?.isIntersecting&&re()},[re]);K6(c,be,tL,{disabled:!!C||Ie!=="viewport"}),A.useEffect(()=>{i.current||!C&&Ie==="render"&&(re(),i.current=!0)},[C,re,Ie]);const pe=oe=>{const Ee=oe.currentTarget.getAttribute("target"),Oe=T!==void 0?T:Ee;if(!C&&!nL(oe)&&!oe.defaultPrevented&&(!Oe||Oe==="_self")&&oe.button===0){oe.preventDefault(),xm.flushSync(()=>{a(!0)});const xe=n.subscribe("onResolved",()=>{xe(),a(!1)});n.navigate({...$,replace:b,resetScroll:S,hashScrollIntoView:y,startTransition:w,viewTransition:x,ignoreBlocker:Z})}};if(_e)return{...q,ref:c,href:_e,...E&&{children:E},...T&&{target:T},...C&&{disabled:C},...O&&{style:O},...I&&{className:I},...M&&{onClick:M},...D&&{onFocus:D},...z&&{onMouseEnter:z},...Q&&{onMouseLeave:Q},...V&&{onTouchStart:V}};const ce=oe=>{C||Ie&&re()},Ce=ce,$e=oe=>{if(!(C||!Ie))if(!Ne)re();else{const Ee=oe.target;if(_u.has(Ee))return;const Oe=setTimeout(()=>{_u.delete(Ee),re()},Ne);_u.set(Ee,Oe)}},Ye=oe=>{if(C||!Ie||!Ne)return;const Ee=oe.target,Oe=_u.get(Ee);Oe&&(clearTimeout(Oe),_u.delete(Ee))},Ge=H?Ti(u,{})??Q6:Uy,Xe=H?Uy:Ti(d,{})??Uy,G=[I,Ge.className,Xe.className].filter(Boolean).join(" "),ne=(O||Ge.style||Xe.style)&&{...O,...Ge.style,...Xe.style};return{...q,...Ge,...Xe,href:ge?.href,ref:c,onClick:bu([M,pe]),onFocus:bu([D,ce]),onMouseEnter:bu([z,$e]),onMouseLeave:bu([Q,Ye]),onTouchStart:bu([V,Ce]),disabled:!!C,target:T,...ne&&{style:ne},...G&&{className:G},...C&&X6,...H&&J6,...r&&eL}}const Uy={},Q6={className:"active"},X6={role:"link","aria-disabled":!0},J6={"data-status":"active","aria-current":"page"},eL={"data-transitioning":"transitioning"},_u=new WeakMap,tL={rootMargin:"100px"},bu=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},Tm=A.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:a,ref:i,...c}=Y6(r,t),u=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;return n===void 0&&delete c.disabled,A.createElement(n||"a",{...c,ref:i},u)});function nL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}class rL extends gA{constructor(t){super(t),this.useMatch=n=>na({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Sb({...n,from:this.id}),this.useLoaderData=n=>bb({...n,from:this.id}),this.useNavigate=()=>Sl({from:this.fullPath}),this.Link=le.forwardRef((n,r)=>R.jsx(Tm,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function bt(e){return new rL(e)}class oL extends j6{constructor(t){super(t),this.useMatch=n=>na({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Sb({...n,from:this.id}),this.useLoaderData=n=>bb({...n,from:this.id}),this.useNavigate=()=>Sl({from:this.fullPath}),this.Link=le.forwardRef((n,r)=>R.jsx(Tm,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function aL(e){return new oL(e)}function Ix(e){return typeof e=="object"?new kx(e,{silent:!0}).createRoute(e):new kx(e,{silent:!0}).createRoute}class kx{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const a=bt(r);return a.isRoot=!1,a},this.silent=n?.silent}}class Nx{constructor(t){this.useMatch=n=>na({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Sb({...n,from:this.options.id}),this.useLoaderData=n=>bb({...n,from:this.options.id}),this.useNavigate=()=>{const n=Ir();return Sl({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function Mx(e){return typeof e=="object"?new Nx(e):t=>new Nx({id:e,...t})}function Ot(e,t){let n,r,a,i;const c=()=>(n||(n=e().then(d=>{n=void 0,r=d[t??"default"]}).catch(d=>{if(a=d,KD(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),i=!0)}})),n),u=function(f){if(i)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!r)throw c();return A.createElement(r,f)};return u.preload=c,u}function sL(){const e=Ir(),t=A.useRef({router:e,mounted:!1}),[n,r]=A.useState(!1),{hasPendingMatches:a,isLoading:i}=fr({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(g=>g.status==="pending")}),structuralSharing:!0}),c=$y(i),u=i||n||a,d=$y(u),f=i||a,m=$y(f);return e.startTransition=p=>{r(!0),A.startTransition(()=>{p(),r(!1)})},A.useEffect(()=>{const p=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ci(e.latestLocation.href)!==Ci(g.href)&&e.commitLocation({...g,replace:!0}),()=>{p()}},[e,e.history]),ku(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),ku(()=>{c&&!i&&e.emit({type:"onLoad",...Ai(e.state)})},[c,e,i]),ku(()=>{m&&!f&&e.emit({type:"onBeforeRouteMount",...Ai(e.state)})},[f,m,e]),ku(()=>{if(d&&!u){const p=Ai(e.state);e.emit({type:"onResolved",...p}),e.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),p.hrefChanged&&v6(e)}},[u,d,e]),null}function iL(e){const t=fr({select:n=>`not-found-${n.location.pathname}-${n.status}`});return R.jsx(_b,{getResetKey:()=>t,onCatch:(n,r)=>{if(ho(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(ho(n))return e.fallback?.(n);throw n},children:e.children})}function cL(){return R.jsx("p",{children:"Not Found"})}function Fc(e){return R.jsx(R.Fragment,{children:e.children})}function SA(e,t,n){return t.options.notFoundComponent?R.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?R.jsx(e.options.defaultNotFoundComponent,{...n}):R.jsx(cL,{})}function lL({children:e}){const t=Ir();return t.isServer?R.jsx("script",{nonce:t.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function uL(){const e=Ir();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||t_)(e.latestLocation),r=n!==t_(e.latestLocation)?n:void 0,a={storageKey:Ip,shouldScrollRestoration:!0};return r&&(a.key=r),R.jsx(lL,{children:`(${sA.toString()})(${JSON.stringify(a)})`})}const wA=A.memo(function({matchId:t}){const n=Ir(),r=fr({select:x=>{const E=x.matches.find(T=>T.id===t);return Ma(E),{routeId:E.routeId,ssr:E.ssr,_displayPending:E._displayPending}},structuralSharing:!0}),a=n.routesById[r.routeId],i=a.options.pendingComponent??n.options.defaultPendingComponent,c=i?R.jsx(i,{}):null,u=a.options.errorComponent??n.options.defaultErrorComponent,d=a.options.onCatch??n.options.defaultOnCatch,f=a.isRoot?a.options.notFoundComponent??n.options.notFoundRoute?.options.component:a.options.notFoundComponent,m=r.ssr===!1||r.ssr==="data-only",p=(!a.isRoot||a.options.wrapInSuspense||m)&&(a.options.wrapInSuspense??i??(a.options.errorComponent?.preload||m))?A.Suspense:Fc,g=u?_b:Fc,y=f?iL:Fc,b=fr({select:x=>x.loadedAt}),w=fr({select:x=>{const E=x.matches.findIndex(T=>T.id===t);return x.matches[E-1]?.routeId}}),S=a.isRoot?a.options.shellComponent??Fc:Fc;return R.jsxs(S,{children:[R.jsx(Em.Provider,{value:t,children:R.jsx(p,{fallback:c,children:R.jsx(g,{getResetKey:()=>b,errorComponent:u||wm,onCatch:(x,E)=>{if(ho(x))throw x;d?.(x,E)},children:R.jsx(y,{fallback:x=>{if(!f||x.routeId&&x.routeId!==r.routeId||!x.routeId&&!a.isRoot)throw x;return A.createElement(f,x)},children:m||r._displayPending?R.jsx(U6,{fallback:c,children:R.jsx(Px,{matchId:t})}):R.jsx(Px,{matchId:t})})})})}),w===Fr&&n.options.scrollRestoration?R.jsxs(R.Fragment,{children:[R.jsx(dL,{}),R.jsx(uL,{})]}):null]})});function dL(){const e=Ir(),t=A.useRef(void 0);return R.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Ai(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const Px=A.memo(function({matchId:t}){const n=Ir(),{match:r,key:a,routeId:i}=fr({select:d=>{const f=d.matches.find(b=>b.id===t),m=f.routeId,g=(n.routesById[m].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:m,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:m,match:{id:f.id,status:f.status,error:f.error,_forcePending:f._forcePending,_displayPending:f._displayPending}}},structuralSharing:!0}),c=n.routesById[i],u=A.useMemo(()=>{const d=c.options.component??n.options.defaultComponent;return d?R.jsx(d,{},a):R.jsx(EA,{})},[a,c.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const f=n.getMatch(r.id);if(f&&!f._nonReactive.minPendingPromise&&!n.isServer){const m=il();f._nonReactive.minPendingPromise=m,setTimeout(()=>{m.resolve(),f._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return Ma(ho(r.error)),SA(n,c,r.error);if(r.status==="redirected")throw Ma(Do(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error"){if(n.isServer){const d=(c.options.errorComponent??n.options.defaultErrorComponent)||wm;return R.jsx(d,{error:r.error,reset:void 0,info:{componentStack:""}})}throw r.error}return u}),EA=A.memo(function(){const t=Ir(),n=A.useContext(Em),r=fr({select:f=>f.matches.find(m=>m.id===n)?.routeId}),a=t.routesById[r],i=fr({select:f=>{const p=f.matches.find(g=>g.id===n);return Ma(p),p.globalNotFound}}),c=fr({select:f=>{const m=f.matches,p=m.findIndex(g=>g.id===n);return m[p+1]?.id}}),u=t.options.defaultPendingComponent?R.jsx(t.options.defaultPendingComponent,{}):null;if(i)return SA(t,a,void 0);if(!c)return null;const d=R.jsx(wA,{matchId:c});return r===Fr?R.jsx(A.Suspense,{fallback:u,children:d}):d});function fL(){const e=Ir(),n=e.routesById[Fr].options.pendingComponent??e.options.defaultPendingComponent,r=n?R.jsx(n,{}):null,a=e.isServer||typeof document<"u"&&e.ssr?Fc:A.Suspense,i=R.jsxs(a,{fallback:r,children:[!e.isServer&&R.jsx(sL,{}),R.jsx(hL,{})]});return e.options.InnerWrap?R.jsx(e.options.InnerWrap,{children:i}):i}function hL(){const e=Ir(),t=fr({select:a=>a.matches[0]?.id}),n=fr({select:a=>a.loadedAt}),r=t?R.jsx(wA,{matchId:t}):null;return R.jsx(Em.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:R.jsx(_b,{getResetKey:()=>n,errorComponent:wm,onCatch:a=>{a.message||a.toString()},children:r})})}const pL=e=>new mL(e);class mL extends k6{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Ix,globalThis.createLazyFileRoute=Mx):typeof window<"u"&&(window.createFileRoute=Ix,window.createLazyFileRoute=Mx);function gL({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=_A(),a=R.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?R.jsx(e.options.Wrap,{children:a}):a}function vL({router:e,...t}){return R.jsx(gL,{router:e,...t,children:R.jsx(fL,{})})}function yL(e){return fr({select:t=>t.location})}var _L={},Dx={};const hp=Object.create(null),Su=e=>_L||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?hp:globalThis),fo=new Proxy(hp,{get(e,t){return Su()[t]??hp[t]},has(e,t){return t in Su()||t in hp},set(e,t,n){const r=Su(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=Su(!0);return delete n[t],!0},ownKeys(){const e=Su(!0);return Object.keys(e)}});function yn(e,t){return typeof process<"u"&&Dx?Dx[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const wu=1,Ln=4,Yo=8,qr=24,Lx={eterm:Ln,cons25:Ln,console:Ln,cygwin:Ln,dtterm:Ln,gnome:Ln,hurd:Ln,jfbterm:Ln,konsole:Ln,kterm:Ln,mlterm:Ln,mosh:qr,putty:Ln,st:Ln,"rxvt-unicode-24bit":qr,terminator:qr,"xterm-kitty":qr},bL=new Map(Object.entries({APPVEYOR:Yo,BUILDKITE:Yo,CIRCLECI:qr,DRONE:Yo,GITEA_ACTIONS:qr,GITHUB_ACTIONS:qr,GITLAB_CI:Yo,TRAVIS:Yo})),SL=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function wL(){if(yn("FORCE_COLOR")!==void 0)switch(yn("FORCE_COLOR")){case"":case"1":case"true":return Ln;case"2":return Yo;case"3":return qr;default:return wu}if(yn("NODE_DISABLE_COLORS")!==void 0&&yn("NODE_DISABLE_COLORS")!==""||yn("NO_COLOR")!==void 0&&yn("NO_COLOR")!==""||yn("TERM")==="dumb")return wu;if(yn("TMUX"))return qr;if("TF_BUILD"in fo&&"AGENT_NAME"in fo)return Ln;if("CI"in fo){for(const{0:e,1:t}of bL)if(e in fo)return t;return yn("CI_NAME")==="codeship"?Yo:wu}if("TEAMCITY_VERSION"in fo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(yn("TEAMCITY_VERSION"))!==null?Ln:wu;switch(yn("TERM_PROGRAM")){case"iTerm.app":return!yn("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(yn("TERM_PROGRAM_VERSION"))!==null?Yo:qr;case"HyperTerm":case"MacTerm":return qr;case"Apple_Terminal":return Yo}if(yn("COLORTERM")==="truecolor"||yn("COLORTERM")==="24bit")return qr;if(yn("TERM")){if(/truecolor/.exec(yn("TERM"))!==null)return qr;if(/^xterm-256/.exec(yn("TERM"))!==null)return Yo;const e=yn("TERM").toLowerCase();if(Lx[e])return Lx[e];if(SL.some(t=>t.exec(e)!==null))return Ln}return yn("COLORTERM")?Ln:wu}const Qo={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},r_=["debug","info","success","warn","error"];function EL(e,t){return r_.indexOf(t)>=r_.indexOf(e)}const RL={info:Qo.fg.blue,success:Qo.fg.green,warn:Qo.fg.yellow,error:Qo.fg.red,debug:Qo.fg.magenta},xL=(e,t,n)=>{const r=new Date().toISOString();return n?`${Qo.dim}${r}${Qo.reset} ${RL[e]}${e.toUpperCase()}${Qo.reset} ${Qo.bright}[Better Auth]:${Qo.reset} ${t}`:`${r} ${e.toUpperCase()} [Better Auth]: ${t}`},TL=e=>{const t="error",n=wL()!==1,r=(a,i,c=[])=>{if(!EL(t,a))return;const u=xL(a,i,n);{a==="error"?console.error(u,...c):a==="warn"?console.warn(u,...c):console.log(u,...c);return}};return{...Object.fromEntries(r_.map(a=>[a,(...[i,...c])=>r(a,i,c)])),get level(){return t}}};TL();var Bu=class extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}};function OL(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Bu(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function CL(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Bu(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Bu?t:new Bu(`Invalid base URL: ${e}. Please provide a valid base URL.`,String(t))}}function zy(e,t="/api/auth"){if(CL(e),OL(e))return e;const n=e.replace(/\/+$/,"");return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function AL(e,t,n,r,a){if(e)return zy(e,t);{const i=fo.BETTER_AUTH_URL||fo.NEXT_PUBLIC_BETTER_AUTH_URL||fo.PUBLIC_BETTER_AUTH_URL||fo.NUXT_PUBLIC_BETTER_AUTH_URL||fo.NUXT_PUBLIC_AUTH_URL||(fo.BASE_URL!=="/"?fo.BASE_URL:void 0);if(i)return zy(i,t)}if(typeof window<"u"&&window.location)return zy(window.location.origin,t)}const IL={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},kL=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,jx={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},NL=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function ML(e){return e instanceof Date&&!isNaN(e.getTime())}function PL(e){const t=NL.exec(e);if(!t)return null;const[,n,r,a,i,c,u,d,f,m,p]=t;let g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(i,10),parseInt(c,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const y=(parseInt(m,10)*60+parseInt(p,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return ML(g)?g:null}function DL(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:i=!0}=t;if(typeof e!="string")return e;const c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);const u=c.toLowerCase();if(u.length<=9&&u in jx)return jx[u];if(!kL.test(c)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(IL).some(([d,f])=>{const m=f.test(c);return m&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(f,m)=>{if(f==="__proto__"||f==="constructor"&&m&&typeof m=="object"&&"prototype"in m){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(i&&typeof m=="string"){const p=PL(m);if(p)return p}return a?a(f,m):m})}catch(d){if(n)throw d;return e}}function LL(e,t={strict:!0}){return DL(e,t)}let xo=[],hs=0;const eh=4,Kc=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(r){return n.lc=t.push(r),()=>{for(let i=hs+eh;i<xo.length;)xo[i]===r?xo.splice(i,eh):i+=eh;let a=t.indexOf(r);~a&&(t.splice(a,1),--n.lc||n.off())}},notify(r,a){let i=!xo.length;for(let c of t)xo.push(c,n.value,r,a);if(i){for(hs=0;hs<xo.length;hs+=eh)xo[hs](xo[hs+1],xo[hs+2],xo[hs+3]);xo.length=0}},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:e};return n},jL=5,th=6,nh=10;let $L=(e,t,n,r)=>(e.events=e.events||{},e.events[n+nh]||(e.events[n+nh]=r(a=>{e.events[n].reduceRight((i,c)=>(c(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let a=e.events[n],i=a.indexOf(t);a.splice(i,1),a.length||(delete e.events[n],e.events[n+nh](),delete e.events[n+nh])}),UL=1e3,RA=(e,t)=>$L(e,r=>{let a=t(r);a&&e.events[th].push(a)},jL,r=>{let a=e.listen;e.listen=(...c)=>(!e.lc&&!e.active&&(e.active=!0,r()),a(...c));let i=e.off;return e.events[th]=[],e.off=()=>{i(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[th])c();e.events[th]=[]}},UL)},()=>{e.listen=a,e.off=i}});function zL(e,t,n){let r=new Set(t).add(void 0);return e.listen((a,i,c)=>{r.has(c)&&n(a,i,c)})}var VL=Object.defineProperty,FL=Object.defineProperties,BL=Object.getOwnPropertyDescriptors,$x=Object.getOwnPropertySymbols,qL=Object.prototype.hasOwnProperty,HL=Object.prototype.propertyIsEnumerable,Ux=(e,t,n)=>t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))qL.call(t,n)&&Ux(e,n,t[n]);if($x)for(var n of $x(t))HL.call(t,n)&&Ux(e,n,t[n]);return e},Wo=(e,t)=>FL(e,BL(t)),GL=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},ZL=async(e,t)=>{var n,r,a,i,c,u;let d=t||{};const f={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:f};for(const m of t?.plugins||[]){if(m.init){const p=await((n=m.init)==null?void 0:n.call(m,e.toString(),t));d=p.options||d,e=p.url}f.onRequest.push((r=m.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=m.hooks)==null?void 0:a.onResponse),f.onSuccess.push((i=m.hooks)==null?void 0:i.onSuccess),f.onError.push((c=m.hooks)==null?void 0:c.onError),f.onRetry.push((u=m.hooks)==null?void 0:u.onRetry)}return{url:e,options:d,hooks:f}},zx=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},KL=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function WL(e){if(typeof e=="number")return new zx({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new zx(e);case"exponential":return new KL(e);default:throw new Error("Invalid retry strategy")}}var YL=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const r=n(e.auth.username),a=n(e.auth.password);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},QL=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function XL(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return QL.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function JL(e){try{return JSON.parse(e),!0}catch{return!1}}function xA(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function Vx(e){try{return JSON.parse(e)}catch{return e}}function Fx(e){return typeof e=="function"}function ej(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Fx(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Fx(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function tj(e){const t=new Headers(e?.headers),n=await YL(e);for(const[r,a]of Object.entries(n||{}))t.set(r,a);if(!t.has("content-type")){const r=nj(e?.body);r&&t.set("content-type",r)}return t}function nj(e){return xA(e)?"application/json":null}function rj(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(xA(e.body)&&!t.has("content-type")){for(const[n,r]of Object.entries(e?.body))r instanceof Date&&(e.body[n]=r.toISOString());return JSON.stringify(e.body)}return e.body}function oj(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return OA.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function aj(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var sj=class TA extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,TA.prototype)}};async function pp(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new sj(n.issues);return n.value}var OA=["get","post","put","patch","delete"],ij=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,a,i,c;const u=((a=(r=e.plugins)==null?void 0:r.find(d=>{var f;return(f=d.schema)!=null&&f.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:a.schema)||e.schema;if(u){let d=t;(i=u.config)!=null&&i.prefix&&d.startsWith(u.config.prefix)&&(d=d.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(c=u.config)!=null&&c.baseURL&&d.startsWith(u.config.baseURL)&&(d=d.replace(u.config.baseURL,""));const f=u.schema[d];if(f){let m=Wo(Io({},n),{method:f.method,output:f.output});return n?.disableValidation||(m=Wo(Io({},m),{body:f.input?await pp(f.input,n?.body):n?.body,params:f.params?await pp(f.params,n?.params):n?.params,query:f.query?await pp(f.query,n?.query):n?.query})),{url:t,options:m}}}return{url:t,options:n}}}),cj=e=>{async function t(n,r){const a=Wo(Io(Io({},e),r),{plugins:[...e?.plugins||[],ij(e||{})]});if(e?.catchAllError)try{return await o_(n,a)}catch(i){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:i}}}return await o_(n,a)}return t};function lj(e,t){let{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""},i=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const p=e.toString().split("@")[1].split("/")[0];OA.includes(p)&&(e=e.replace(`@${p}/`,"/"))}i.endsWith("/")||(i+="/");let[c,u]=e.replace(i,"").split("?");const d=new URLSearchParams(u);for(const[p,g]of Object.entries(a||{}))g!=null&&d.set(p,String(g));if(r)if(Array.isArray(r)){const p=c.split("/").filter(g=>g.startsWith(":"));for(const[g,y]of p.entries()){const b=r[g];c=c.replace(y,b)}}else for(const[p,g]of Object.entries(r))c=c.replace(`:${p}`,String(g));c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/")&&(c=c.slice(1));let f=d.toString();return f=f.length>0?`?${f}`.replace(/\+/g,"%20"):"",i.startsWith("http")?new URL(`${c}${f}`,i):`${i}${c}${f}`}var o_=async(e,t)=>{var n,r,a,i,c,u,d,f;const{hooks:m,url:p,options:g}=await ZL(e,t),y=ej(g),b=new AbortController,w=(n=g.signal)!=null?n:b.signal,S=lj(p,g),x=rj(g),E=await tj(g),T=oj(p,g);let C=Wo(Io({},g),{url:S,headers:E,body:x,method:T,signal:w});for(const U of m.onRequest)if(U){const ee=await U(C);ee instanceof Object&&(C=ee)}("pipeTo"in C&&typeof C.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:O}=aj(g,b);let I=await y(C.url,C);O();const M={response:I,request:C};for(const U of m.onResponse)if(U){const ee=await U(Wo(Io({},M),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?I.clone():I}));ee instanceof Response?I=ee:ee instanceof Object&&(I=ee.response)}if(I.ok){if(!(C.method!=="HEAD"))return{data:"",error:null};const ee=XL(I),ie={data:"",response:I,request:C};if(ee==="json"||ee==="text"){const F=await I.text(),ae=await((i=C.jsonParser)!=null?i:Vx)(F);ie.data=ae}else ie.data=await I[ee]();C?.output&&C.output&&!C.disableValidation&&(ie.data=await pp(C.output,ie.data));for(const F of m.onSuccess)F&&await F(Wo(Io({},ie),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?I.clone():I}));return t?.throw?ie.data:{data:ie.data,error:null}}const D=(u=t?.jsonParser)!=null?u:Vx,z=await I.text(),Q=JL(z),V=Q?await D(z):null,Z={response:I,responseText:z,request:C,error:Wo(Io({},V),{status:I.status,statusText:I.statusText})};for(const U of m.onError)U&&await U(Wo(Io({},Z),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t?.retry){const U=WL(t.retry),ee=(f=t.retryAttempt)!=null?f:0;if(await U.shouldAttemptRetry(ee,I)){for(const F of m.onRetry)F&&await F(M);const ie=U.getDelay(ee);return await new Promise(F=>setTimeout(F,ie)),await o_(e,Wo(Io({},t),{retryAttempt:ee+1}))}}if(t?.throw)throw new GL(I.status,I.statusText,Q?V:z);return{data:null,error:Wo(Io({},V),{status:I.status,statusText:I.statusText})}};const Vy=Symbol.for("better-auth:broadcast-channel"),uj=()=>Math.floor(Date.now()/1e3);var dj=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:uj()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function Fy(e="better-auth.message"){return globalThis[Vy]||(globalThis[Vy]=new dj(e)),globalThis[Vy]}const By=Symbol.for("better-auth:focus-manager");var fj=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function Bx(){return globalThis[By]||(globalThis[By]=new fj),globalThis[By]}const qy=Symbol.for("better-auth:online-manager");var hj=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function Hy(){return globalThis[qy]||(globalThis[qy]=new hj),globalThis[qy]}const pj=()=>typeof window>"u",Nu=(e,t,n,r)=>{const a=Kc({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>i(u)}),i=async u=>new Promise(d=>{const f=typeof r=="function"?r({data:a.get().data,error:a.get().error,isPending:a.get().isPending}):r;n(t,{...f,query:{...f?.query,...u?.query},async onSuccess(m){a.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await f?.onSuccess?.(m)},async onError(m){const{request:p}=m,g=typeof p.retry=="number"?p.retry:p.retry?.attempts,y=p.retryAttempt||0;g&&y<g||(a.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await f?.onError?.(m))},async onRequest(m){const p=a.get();a.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:a.value.refetch}),await f?.onRequest?.(m)}}).catch(m=>{a.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch})}).finally(()=>{d(void 0)})});e=Array.isArray(e)?e:[e];let c=!1;for(const u of e)u.subscribe(async()=>{pj()||(c?await i():RA(a,()=>{const d=setTimeout(async()=>{c||(await i(),c=!0)},0);return()=>{a.off(),u.off(),clearTimeout(d)}}))});return a},kc=()=>Math.floor(Date.now()/1e3),mj=5;function gj(e){const{sessionAtom:t,sessionSignal:n,$fetch:r,options:a={}}=e,i=a.sessionOptions?.refetchInterval??0,c=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},f=()=>u||Hy().isOnline,m=E=>{if(!f())return;if(E?.event==="storage"){d.lastSync=kc(),n.set(!n.get());return}const T=t.get();if(E?.event==="poll"){d.lastSessionRequest=kc(),r("/get-session").then(C=>{t.set({...T,data:C.data,error:C.error||null}),d.lastSync=kc(),n.set(!n.get())}).catch(()=>{});return}E?.event==="visibilitychange"&&kc()-d.lastSessionRequest<mj&&T?.data!==null&&T?.data!==void 0||(T?.data===null||T?.data===void 0||E?.event==="visibilitychange")&&(E?.event==="visibilitychange"&&(d.lastSessionRequest=kc()),d.lastSync=kc(),n.set(!n.get()))},p=E=>{Fy().post({event:"session",data:{trigger:E},clientId:Math.random().toString(36).substring(7)})},g=()=>{i&&i>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},i*1e3))},y=()=>{d.unsubscribeBroadcast=Fy().subscribe(()=>{m({event:"storage"})})},b=()=>{c&&(d.unsubscribeFocus=Bx().subscribe(()=>{m({event:"visibilitychange"})}))},w=()=>{d.unsubscribeOnline=Hy().subscribe(E=>{E&&m({event:"visibilitychange"})})};return{init:()=>{g(),y(),b(),w(),Fy().setup(),Bx().setup(),Hy().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:p}}const vj={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};function yj(e,t){const n=Kc(!1),r=Nu(n,"/get-session",e,{method:"GET"});return RA(r,()=>{const a=gj({sessionAtom:r,sessionSignal:n,$fetch:e,options:t});return a.init(),()=>{a.cleanup()}}),{session:r,$sessionSignal:n}}const _j=(e,t)=>{const n="credentials"in Request.prototype,r=AL(e?.baseURL,e?.basePath)??"/api/auth",a=e?.plugins?.flatMap(C=>C.fetchPlugins).filter(C=>C!==void 0)||[],i={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:c,onError:u,onRequest:d,onResponse:f,...m}=e?.fetchOptions||{},p=cj({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(C){return C?LL(C,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[i,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[vj],...a]}),{$sessionSignal:g,session:y}=yj(p,e),b=e?.plugins||[];let w={},S={$sessionSignal:g,session:y},x={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const E=[{signal:"$sessionSignal",matcher(C){return C==="/sign-out"||C==="/update-user"||C==="/sign-up/email"||C==="/sign-in/email"||C==="/delete-user"||C==="/verify-email"||C==="/revoke-sessions"||C==="/revoke-session"||C==="/change-email"}}];for(const C of b)C.getAtoms&&Object.assign(S,C.getAtoms?.(p)),C.pathMethods&&Object.assign(x,C.pathMethods),C.atomListeners&&E.push(...C.atomListeners);const T={notify:C=>{S[C].set(!S[C].get())},listen:(C,O)=>{S[C].subscribe(O)},atoms:S};for(const C of b)C.getActions&&Object.assign(w,C.getActions?.(p,T,e));return{get baseURL(){return r},pluginsActions:w,pluginsAtoms:S,pluginPathMethods:x,atomListeners:E,$fetch:p,$store:T}};function bj(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function Sj(e,t,n){const r=t[e],{fetchOptions:a,query:i,...c}=n||{};return r||(a?.method?a.method:c&&Object.keys(c).length>0?"POST":"GET")}function wj(e,t,n,r,a){function i(c=[]){return new Proxy(function(){},{get(u,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const f=[...c,d];let m=e;for(const p of f)if(m&&typeof m=="object"&&p in m)m=m[p];else{m=void 0;break}return typeof m=="function"||bj(m)?m:i(f)},apply:async(u,d,f)=>{const m="/"+c.map(E=>E.replace(/[A-Z]/g,T=>`-${T.toLowerCase()}`)).join("/"),p=f[0]||{},g=f[1]||{},{query:y,fetchOptions:b,...w}=p,S={...g,...b},x=Sj(m,n,p);return await t(m,{...S,body:x==="GET"?void 0:{...w,...S?.body||{}},query:y||S?.query,method:x,async onSuccess(E){if(await S?.onSuccess?.(E),!a||S.disableSignal)return;const T=a.filter(C=>C.matcher(m));if(T.length)for(const C of T){const O=r[C.signal];if(!O)return;const I=O.get();setTimeout(()=>{O.set(!I)},10)}}})}})}return i()}function Ej(e,t={}){let n=A.useRef(e.get());const{keys:r,deps:a=[e,r]}=t;let i=A.useCallback(u=>{const d=f=>{n.current!==f&&(n.current=f,u())};return d(e.value),r?.length?zL(e,r,d):e.listen(d)},a),c=()=>n.current;return A.useSyncExternalStore(i,c,c)}function Rj(e){return`use${xj(e)}`}function xj(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Tj(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:i,atomListeners:c}=_j(e);let u={};for(const[d,f]of Object.entries(r))u[Rj(d)]=()=>Ej(f);return wj({...n,...u,$fetch:a,$store:i},a,t,r,c)}function Oj(e){return{authorize(t,n="AND"){let r=!1;for(const[a,i]of Object.entries(t)){const c=e[a];if(!c)return{success:!1,error:`You are not allowed to access resource: ${a}`};if(Array.isArray(i))r=i.every(u=>c.includes(u));else if(typeof i=="object"){const u=i;u.connector==="OR"?r=u.actions.some(d=>c.includes(d)):r=u.actions.every(d=>c.includes(d))}else throw new Bu("Invalid access control request");if(r&&n==="OR")return{success:r};if(!r&&n==="AND")return{success:!1,error:`unauthorized to access resource "${a}"`}}return r?{success:r}:{success:!1,error:"Not authorized"}},statements:e}}function CA(e){return{newRole(t){return Oj(t)},statements:e}}const Cj={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},AA=CA(Cj),IA=AA.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),kA=AA.newRole({user:[],session:[]}),Aj={admin:IA,user:kA},Ij=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),n=e.options?.roles||Aj;for(const r of t)if(n[r]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},kj={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},wb=CA(kj),NA=wb.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),MA=wb.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),PA=wb.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),Nj={admin:NA,owner:MA,member:PA},Mj=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const n=e.role.split(","),r=e.options.creatorRole||"owner",a=n.includes(r),i=e.allowCreatorAllPermissions||!1;if(a&&i)return!0;for(const c of n)if(t[c]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},Pj=e=>{const t={admin:IA,user:kA,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:n=>Ij({role:n.role,options:{ac:e?.ac,roles:t},permissions:n.permissions??n.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},Dj=()=>({id:"magic-link",$InferServerPlugin:{}}),Lj=e=>Mj(e,e.options.roles||Nj),jj=e=>{const t=Kc(!1),n=Kc(!1),r=Kc(!1),a=Kc(!1),i={admin:NA,member:PA,owner:MA,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(c,u,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:f=>Lj({role:f.role,options:{ac:e?.ac,roles:i},permissions:f.permissions??f.permission})}}),getAtoms:c=>{const u=Nu(t,"/organization/list",c,{method:"GET"});return{$listOrg:t,$activeOrgSignal:n,$activeMemberSignal:r,$activeMemberRoleSignal:a,activeOrganization:Nu([n],"/organization/get-full-organization",c,()=>({method:"GET"})),listOrganizations:u,activeMember:Nu([r],"/organization/get-active-member",c,{method:"GET"}),activeMemberRole:Nu([a],"/organization/get-active-member-role",c,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(c){return c==="/organization/create"||c==="/organization/delete"||c==="/organization/update"},signal:"$listOrg"},{matcher(c){return c.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(c){return c.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(c){return c.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(c){return c.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},$j=e=>({id:"sso-client",$InferServerPlugin:{}}),Uj=Tj({plugins:[jj({}),Pj(),$j(),Dj()]});function DA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=DA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=DA(e))&&(r&&(r+=" "),r+=t);return r}const zj=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Vj=(e,t)=>({classGroupId:e,validator:t}),LA=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Mp="-",qx=[],Fj="arbitrary..",Bj=e=>{const t=Hj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return qj(c);const u=c.split(Mp),d=u[0]===""&&u.length>1?1:0;return jA(u,d,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const d=r[c],f=n[c];return d?f?zj(f,d):d:f||qx}return n[c]||qx}}},jA=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const f=jA(e,t+1,i);if(f)return f}const c=n.validators;if(c===null)return;const u=t===0?e.join(Mp):e.slice(t).join(Mp),d=c.length;for(let f=0;f<d;f++){const m=c[f];if(m.validator(u))return m.classGroupId}},qj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Fj+r:void 0})(),Hj=e=>{const{theme:t,classGroups:n}=e;return Gj(n,t)},Gj=(e,t)=>{const n=LA();for(const r in e){const a=e[r];Rb(a,n,r,t)}return n},Rb=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const c=e[i];Zj(c,t,n,r)}},Zj=(e,t,n,r)=>{if(typeof e=="string"){Kj(e,t,n);return}if(typeof e=="function"){Wj(e,t,n,r);return}Yj(e,t,n,r)},Kj=(e,t,n)=>{const r=e===""?t:$A(t,e);r.classGroupId=n},Wj=(e,t,n,r)=>{if(Qj(e)){Rb(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Vj(n,e))},Yj=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let c=0;c<i;c++){const[u,d]=a[c];Rb(d,$A(t,u),n,r)}},$A=(e,t)=>{let n=e;const r=t.split(Mp),a=r.length;for(let i=0;i<a;i++){const c=r[i];let u=n.nextPart.get(c);u||(u=LA(),n.nextPart.set(c,u)),n=u}return n},Qj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,c)=>{n[i]=c,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let c=n[i];if(c!==void 0)return c;if((c=r[i])!==void 0)return a(i,c),c},set(i,c){i in n?n[i]=c:a(i,c)}}},a_="!",Hx=":",Jj=[],Gx=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),e$=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let c=0,u=0,d=0,f;const m=a.length;for(let w=0;w<m;w++){const S=a[w];if(c===0&&u===0){if(S===Hx){i.push(a.slice(d,w)),d=w+1;continue}if(S==="/"){f=w;continue}}S==="["?c++:S==="]"?c--:S==="("?u++:S===")"&&u--}const p=i.length===0?a:a.slice(d);let g=p,y=!1;p.endsWith(a_)?(g=p.slice(0,-1),y=!0):p.startsWith(a_)&&(g=p.slice(1),y=!0);const b=f&&f>d?f-d:void 0;return Gx(i,y,g,b)};if(t){const a=t+Hx,i=r;r=c=>c.startsWith(a)?i(c.slice(a.length)):Gx(Jj,!1,c,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},t$=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const c=n[i],u=c[0]==="[",d=t.has(c);u||d?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(c)):a.push(c)}return a.length>0&&(a.sort(),r.push(...a)),r}},n$=e=>({cache:Xj(e.cacheSize),parseClassName:e$(e),sortModifiers:t$(e),...Bj(e)}),r$=/\s+/,o$=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,c=[],u=e.trim().split(r$);let d="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:p,modifiers:g,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:w}=n(m);if(p){d=m+(d.length>0?" "+d:d);continue}let S=!!w,x=r(S?b.substring(0,w):b);if(!x){if(!S){d=m+(d.length>0?" "+d:d);continue}if(x=r(b),!x){d=m+(d.length>0?" "+d:d);continue}S=!1}const E=g.length===0?"":g.length===1?g[0]:i(g).join(":"),T=y?E+a_:E,C=T+x;if(c.indexOf(C)>-1)continue;c.push(C);const O=a(x,S);for(let I=0;I<O.length;++I){const M=O[I];c.push(T+M)}d=m+(d.length>0?" "+d:d)}return d},a$=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=UA(n))&&(a&&(a+=" "),a+=r);return a},UA=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=UA(e[r]))&&(n&&(n+=" "),n+=t);return n},s$=(e,...t)=>{let n,r,a,i;const c=d=>{const f=t.reduce((m,p)=>p(m),e());return n=n$(f),r=n.cache.get,a=n.cache.set,i=u,u(d)},u=d=>{const f=r(d);if(f)return f;const m=o$(d,n);return a(d,m),m};return i=c,(...d)=>i(a$(...d))},i$=[],Tn=e=>{const t=n=>n[e]||i$;return t.isThemeGetter=!0,t},zA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,VA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,c$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,l$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,u$=/\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$/,d$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,f$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>c$.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),ms=e=>!!e&&Number.isInteger(Number(e)),Gy=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Ta=e=>l$.test(e),FA=()=>!0,p$=e=>u$.test(e)&&!d$.test(e),xb=()=>!1,m$=e=>f$.test(e),g$=e=>h$.test(e),v$=e=>!ze(e)&&!Ve(e),y$=e=>zs(e,HA,xb),ze=e=>zA.test(e),fi=e=>zs(e,GA,p$),Zx=e=>zs(e,T$,ht),_$=e=>zs(e,KA,FA),b$=e=>zs(e,ZA,xb),Kx=e=>zs(e,BA,xb),S$=e=>zs(e,qA,g$),rh=e=>zs(e,WA,m$),Ve=e=>VA.test(e),Eu=e=>ji(e,GA),w$=e=>ji(e,ZA),Wx=e=>ji(e,BA),E$=e=>ji(e,HA),R$=e=>ji(e,qA),oh=e=>ji(e,WA,!0),x$=e=>ji(e,KA,!0),zs=(e,t,n)=>{const r=zA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ji=(e,t,n=!1)=>{const r=VA.exec(e);return r?r[1]?t(r[1]):n:!1},BA=e=>e==="position"||e==="percentage",qA=e=>e==="image"||e==="url",HA=e=>e==="length"||e==="size"||e==="bg-size",GA=e=>e==="length",T$=e=>e==="number",ZA=e=>e==="family-name",KA=e=>e==="number"||e==="weight",WA=e=>e==="shadow",O$=()=>{const e=Tn("color"),t=Tn("font"),n=Tn("text"),r=Tn("font-weight"),a=Tn("tracking"),i=Tn("leading"),c=Tn("breakpoint"),u=Tn("container"),d=Tn("spacing"),f=Tn("radius"),m=Tn("shadow"),p=Tn("inset-shadow"),g=Tn("text-shadow"),y=Tn("drop-shadow"),b=Tn("blur"),w=Tn("perspective"),S=Tn("aspect"),x=Tn("ease"),E=Tn("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...C(),Ve,ze],I=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],D=()=>[Ve,ze,d],z=()=>[ps,"full","auto",...D()],Q=()=>[ms,"none","subgrid",Ve,ze],V=()=>["auto",{span:["full",ms,Ve,ze]},ms,Ve,ze],Z=()=>[ms,"auto",Ve,ze],U=()=>["auto","min","max","fr",Ve,ze],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...D()],J=()=>[ps,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],ae=()=>[ps,"screen","full","dvw","lvw","svw","min","max","fit",...D()],fe=()=>[ps,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],K=()=>[e,Ve,ze],P=()=>[...C(),Wx,Kx,{position:[Ve,ze]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",E$,y$,{size:[Ve,ze]}],L=()=>[Gy,Eu,fi],$=()=>["","none","full",f,Ve,ze],X=()=>["",ht,Eu,fi],ge=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>[ht,Gy,Wx,Kx],Ne=()=>["","none",b,Ve,ze],H=()=>["none",ht,Ve,ze],re=()=>["none",ht,Ve,ze],be=()=>[ht,Ve,ze],pe=()=>[ps,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ta],breakpoint:[Ta],color:[FA],container:[Ta],"drop-shadow":[Ta],ease:["in","out","in-out"],font:[v$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ta],shadow:[Ta],spacing:["px",ht],text:[Ta],"text-shadow":[Ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ps,ze,Ve,S]}],container:["container"],columns:[{columns:[ht,ze,Ve,u]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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"],sr:["sr-only","not-sr-only"],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:O()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ms,"auto",Ve,ze]}],basis:[{basis:[ps,"full","auto",u,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,ps,"auto","initial","none",ze]}],grow:[{grow:["",ht,Ve,ze]}],shrink:[{shrink:["",ht,Ve,ze]}],order:[{order:[ms,"first","last","none",Ve,ze]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,Eu,fi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,x$,_$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gy,ze]}],"font-family":[{font:[w$,b$,t]}],"font-features":[{"font-features":[ze]}],"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:[a,Ve,ze]}],"line-clamp":[{"line-clamp":[ht,"none",Ve,Zx]}],leading:[{leading:[i,...D()]}],"list-image":[{"list-image":["none",Ve,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",Ve,fi]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ht,"auto",Ve,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ms,Ve,ze],radial:["",Ve,ze],conic:[ms,Ve,ze]},R$,S$]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,Ve,ze]}],"outline-w":[{outline:["",ht,Eu,fi]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",m,oh,rh]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",p,oh,rh]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ht,fi]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,oh,rh]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ht,Ve,ze]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ie()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":Ie()}],"mask-image-t-to-pos":[{"mask-t-to":Ie()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":Ie()}],"mask-image-r-to-pos":[{"mask-r-to":Ie()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":Ie()}],"mask-image-b-to-pos":[{"mask-b-to":Ie()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":Ie()}],"mask-image-l-to-pos":[{"mask-l-to":Ie()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":Ie()}],"mask-image-x-to-pos":[{"mask-x-to":Ie()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":Ie()}],"mask-image-y-to-pos":[{"mask-y-to":Ie()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Ve,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ie()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ie()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,ze]}],filter:[{filter:["","none",Ve,ze]}],blur:[{blur:Ne()}],brightness:[{brightness:[ht,Ve,ze]}],contrast:[{contrast:[ht,Ve,ze]}],"drop-shadow":[{"drop-shadow":["","none",y,oh,rh]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ht,Ve,ze]}],"hue-rotate":[{"hue-rotate":[ht,Ve,ze]}],invert:[{invert:["",ht,Ve,ze]}],saturate:[{saturate:[ht,Ve,ze]}],sepia:[{sepia:["",ht,Ve,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,ze]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[ht,Ve,ze]}],"backdrop-contrast":[{"backdrop-contrast":[ht,Ve,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,Ve,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,Ve,ze]}],"backdrop-invert":[{"backdrop-invert":["",ht,Ve,ze]}],"backdrop-opacity":[{"backdrop-opacity":[ht,Ve,ze]}],"backdrop-saturate":[{"backdrop-saturate":[ht,Ve,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,Ve,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",Ve,ze]}],ease:[{ease:["linear","initial",x,Ve,ze]}],delay:[{delay:[ht,Ve,ze]}],animate:[{animate:["none",E,Ve,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Ve,ze]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[Ve,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Ve,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",Ve,ze]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ht,Eu,fi,Zx]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},YA=s$(O$),C$=Object.freeze({status:"aborted"});function ye(e,t,n){function r(u,d){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:d,constr:c,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,d);const f=c.prototype,m=Object.keys(f);for(let p=0;p<m.length;p++){const g=m[p];g in u||(u[g]=f[g].bind(u))}}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function c(u){var d;const f=n?.Parent?new i:this;r(f,u),(d=f._zod).deferred??(d.deferred=[]);for(const m of f._zod.deferred)m();return f}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class tl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class QA extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const XA={};function Ms(e){return XA}function JA(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function s_(e,t){return typeof t=="bigint"?t.toString():t}function Om(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function vd(e){return e==null}function Tb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function A$(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let a=(r.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(a=Number.parseInt(d[1]))}const i=n>a?n:a,c=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return c%u/10**i}const Yx=Symbol("evaluating");function xt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Yx)return r===void 0&&(r=Yx,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function $i(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Vs(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Qx(e){return JSON.stringify(e)}function I$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const eI="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function td(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const k$=Om(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ul(e){if(td(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(td(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function tI(e){return ul(e)?{...e}:Array.isArray(e)?[...e]:e}const N$=new Set(["string","number","symbol"]);function dl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Fs(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function je(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function M$(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const P$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function D$(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Vs(e._zod.def,{get shape(){const c={};for(const u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(c[u]=n.shape[u])}return $i(this,"shape",c),c},checks:[]});return Fs(e,i)}function L$(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Vs(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete c[u]}return $i(this,"shape",c),c},checks:[]});return Fs(e,i)}function j$(e,t){if(!ul(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(i,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=Vs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return $i(this,"shape",i),i}});return Fs(e,a)}function $$(e,t){if(!ul(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Vs(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return $i(this,"shape",r),r}});return Fs(e,n)}function U$(e,t){const n=Vs(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return $i(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Fs(e,n)}function z$(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Vs(t._zod.def,{get shape(){const u=t._zod.def.shape,d={...u};if(n)for(const f in n){if(!(f in u))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(d[f]=e?new e({type:"optional",innerType:u[f]}):u[f])}else for(const f in u)d[f]=e?new e({type:"optional",innerType:u[f]}):u[f];return $i(this,"shape",d),d},checks:[]});return Fs(t,c)}function V$(e,t,n){const r=Vs(t._zod.def,{get shape(){const a=t._zod.def.shape,i={...a};if(n)for(const c in n){if(!(c in i))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(i[c]=new e({type:"nonoptional",innerType:a[c]}))}else for(const c in a)i[c]=new e({type:"nonoptional",innerType:a[c]});return $i(this,"shape",i),i}});return Fs(t,r)}function Wc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ei(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ah(e){return typeof e=="string"?e:e?.message}function Ps(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=ah(e.inst?._zod.def?.error?.(e))??ah(t?.error?.(e))??ah(n.customError?.(e))??ah(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function nI(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ob(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function nd(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const rI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,s_,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cb=ye("$ZodError",rI),Cm=ye("$ZodError",rI,{Parent:Error});function F$(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function B$(e,t=n=>n.message){const n={_errors:[]},r=a=>{for(const i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(c=>r({issues:c}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let c=n,u=0;for(;u<i.path.length;){const d=i.path[u];u===i.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(i))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}};return r(e),n}const Am=e=>(t,n,r,a)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new tl;if(c.issues.length){const u=new(a?.Err??e)(c.issues.map(d=>Ps(d,i,Ms())));throw eI(u,a?.callee),u}return c.value},q$=Am(Cm),Im=e=>async(t,n,r,a)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise&&(c=await c),c.issues.length){const u=new(a?.Err??e)(c.issues.map(d=>Ps(d,i,Ms())));throw eI(u,a?.callee),u}return c.value},H$=Im(Cm),km=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new tl;return i.issues.length?{success:!1,error:new(e??Cb)(i.issues.map(c=>Ps(c,a,Ms())))}:{success:!0,data:i.value}},oI=km(Cm),Nm=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(c=>Ps(c,a,Ms())))}:{success:!0,data:i.value}},G$=Nm(Cm),Z$=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Am(e)(t,n,a)},K$=e=>(t,n,r)=>Am(e)(t,n,r),W$=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Im(e)(t,n,a)},Y$=e=>async(t,n,r)=>Im(e)(t,n,r),Q$=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return km(e)(t,n,a)},X$=e=>(t,n,r)=>km(e)(t,n,r),J$=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Nm(e)(t,n,a)},e8=e=>async(t,n,r)=>Nm(e)(t,n,r),t8=/^[cC][^\s-]{8,}$/,n8=/^[0-9a-z]+$/,r8=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,o8=/^[0-9a-vA-V]{20}$/,a8=/^[A-Za-z0-9]{27}$/,s8=/^[a-zA-Z0-9_-]{21}$/,i8=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,c8=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Xx=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,l8=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,u8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function d8(){return new RegExp(u8,"u")}const f8=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,h8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,p8=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,m8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,g8=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aI=/^[A-Za-z0-9_-]*$/,v8=/^\+[1-9]\d{6,14}$/,sI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",y8=new RegExp(`^${sI}$`);function iI(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _8(e){return new RegExp(`^${iI(e)}$`)}function b8(e){const t=iI({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${sI}T(?:${r})$`)}const S8=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},w8=/^-?\d+$/,cI=/^-?\d+(?:\.\d+)?$/,E8=/^(?:true|false)$/i,R8=/^null$/i,x8=/^[^A-Z]*$/,T8=/^[^a-z]*$/,Qn=ye("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),lI={number:"number",bigint:"bigint",object:"date"},uI=ye("$ZodCheckLessThan",(e,t)=>{Qn.init(e,t);const n=lI[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),dI=ye("$ZodCheckGreaterThan",(e,t)=>{Qn.init(e,t);const n=lI[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),O8=ye("$ZodCheckMultipleOf",(e,t)=>{Qn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):A$(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),C8=ye("$ZodCheckNumberFormat",(e,t)=>{Qn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[a,i]=P$[t.format];e._zod.onattach.push(c=>{const u=c._zod.bag;u.format=t.format,u.minimum=a,u.maximum=i,n&&(u.pattern=w8)}),e._zod.check=c=>{const u=c.value;if(n){if(!Number.isInteger(u)){c.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?c.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):c.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<a&&c.issues.push({origin:"number",input:u,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),u>i&&c.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),A8=ye("$ZodCheckMaxSize",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.size!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;a.size<=t.maximum||r.issues.push({origin:nI(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),I8=ye("$ZodCheckMinSize",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.size!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;a.size>=t.minimum||r.issues.push({origin:nI(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),k8=ye("$ZodCheckMaxLength",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const c=Ob(a);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),N8=ye("$ZodCheckMinLength",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const c=Ob(a);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),M8=ye("$ZodCheckLengthEquals",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,i=a.length;if(i===t.length)return;const c=Ob(a),u=i>t.length;r.issues.push({origin:c,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Mm=ye("$ZodCheckStringFormat",(e,t)=>{var n,r;Qn.init(e,t),e._zod.onattach.push(a=>{const i=a._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),P8=ye("$ZodCheckRegex",(e,t)=>{Mm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),D8=ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=x8),Mm.init(e,t)}),L8=ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=T8),Mm.init(e,t)}),j8=ye("$ZodCheckIncludes",(e,t)=>{Qn.init(e,t);const n=dl(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),$8=ye("$ZodCheckStartsWith",(e,t)=>{Qn.init(e,t);const n=new RegExp(`^${dl(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),U8=ye("$ZodCheckEndsWith",(e,t)=>{Qn.init(e,t);const n=new RegExp(`.*${dl(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),z8=ye("$ZodCheckMimeType",(e,t)=>{Qn.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),V8=ye("$ZodCheckOverwrite",(e,t)=>{Qn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class F8{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
10
|
+
`).replace(u5,"")}function hR(o,s){return s=fR(s),fR(o)===s}function Vt(o,s,l,h,v,_){switch(l){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Ji(o,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Ji(o,""+h);break;case"className":jd(o,"class",h);break;case"tabIndex":jd(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":jd(o,l,h);break;case"style":hS(o,h,_);break;case"data":if(s!=="object"){jd(o,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||l!=="href")){o.removeAttribute(l);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(l);break}h=Ud(""+h),o.setAttribute(l,h);break;case"action":case"formAction":if(typeof h=="function"){o.setAttribute(l,"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 _=="function"&&(l==="formAction"?(s!=="input"&&Vt(o,s,"name",v.name,v,null),Vt(o,s,"formEncType",v.formEncType,v,null),Vt(o,s,"formMethod",v.formMethod,v,null),Vt(o,s,"formTarget",v.formTarget,v,null)):(Vt(o,s,"encType",v.encType,v,null),Vt(o,s,"method",v.method,v,null),Vt(o,s,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(l);break}h=Ud(""+h),o.setAttribute(l,h);break;case"onClick":h!=null&&(o.onclick=la);break;case"onScroll":h!=null&&yt("scroll",o);break;case"onScrollEnd":h!=null&&yt("scrollend",o);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(l=h.__html,l!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=l}}break;case"multiple":o.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":o.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){o.removeAttribute("xlink:href");break}l=Ud(""+h),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,""+h):o.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":h===!0?o.setAttribute(l,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,h):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?o.setAttribute(l,h):o.removeAttribute(l);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?o.removeAttribute(l):o.setAttribute(l,h);break;case"popover":yt("beforetoggle",o),yt("toggle",o),Ld(o,"popover",h);break;case"xlinkActuate":ca(o,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ca(o,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ca(o,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ca(o,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ca(o,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ca(o,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ca(o,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ca(o,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ca(o,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Ld(o,"is",h);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=$P.get(l)||l,Ld(o,l,h))}}function ty(o,s,l,h,v,_){switch(l){case"style":hS(o,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(l=h.__html,l!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=l}}break;case"children":typeof h=="string"?Ji(o,h):(typeof h=="number"||typeof h=="bigint")&&Ji(o,""+h);break;case"onScroll":h!=null&&yt("scroll",o);break;case"onScrollEnd":h!=null&&yt("scrollend",o);break;case"onClick":h!=null&&(o.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oS.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(v=l.endsWith("Capture"),s=l.slice(2,v?l.length-7:void 0),_=o[vr]||null,_=_!=null?_[l]:null,typeof _=="function"&&o.removeEventListener(s,_,v),typeof h=="function")){typeof _!="function"&&_!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(s,h,v);break e}l in o?o[l]=h:h===!0?o.setAttribute(l,""):Ld(o,l,h)}}}function Hn(o,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",o),yt("load",o);var h=!1,v=!1,_;for(_ in l)if(l.hasOwnProperty(_)){var N=l[_];if(N!=null)switch(_){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Vt(o,s,_,N,l,null)}}v&&Vt(o,s,"srcSet",l.srcSet,l,null),h&&Vt(o,s,"src",l.src,l,null);return;case"input":yt("invalid",o);var j=_=N=v=null,W=null,de=null;for(h in l)if(l.hasOwnProperty(h)){var we=l[h];if(we!=null)switch(h){case"name":v=we;break;case"type":N=we;break;case"checked":W=we;break;case"defaultChecked":de=we;break;case"value":_=we;break;case"defaultValue":j=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,s));break;default:Vt(o,s,h,we,l,null)}}lS(o,_,j,W,de,N,v,!1);return;case"select":yt("invalid",o),h=N=_=null;for(v in l)if(l.hasOwnProperty(v)&&(j=l[v],j!=null))switch(v){case"value":_=j;break;case"defaultValue":N=j;break;case"multiple":h=j;default:Vt(o,s,v,j,l,null)}s=_,l=N,o.multiple=!!h,s!=null?Xi(o,!!h,s,!1):l!=null&&Xi(o,!!h,l,!0);return;case"textarea":yt("invalid",o),_=v=h=null;for(N in l)if(l.hasOwnProperty(N)&&(j=l[N],j!=null))switch(N){case"value":h=j;break;case"defaultValue":v=j;break;case"children":_=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:Vt(o,s,N,j,l,null)}dS(o,h,v,_);return;case"option":for(W in l)l.hasOwnProperty(W)&&(h=l[W],h!=null)&&(W==="selected"?o.selected=h&&typeof h!="function"&&typeof h!="symbol":Vt(o,s,W,h,l,null));return;case"dialog":yt("beforetoggle",o),yt("toggle",o),yt("cancel",o),yt("close",o);break;case"iframe":case"object":yt("load",o);break;case"video":case"audio":for(h=0;h<iu.length;h++)yt(iu[h],o);break;case"image":yt("error",o),yt("load",o);break;case"details":yt("toggle",o);break;case"embed":case"source":case"link":yt("error",o),yt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in l)if(l.hasOwnProperty(de)&&(h=l[de],h!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Vt(o,s,de,h,l,null)}return;default:if(mg(s)){for(we in l)l.hasOwnProperty(we)&&(h=l[we],h!==void 0&&ty(o,s,we,h,l,void 0));return}}for(j in l)l.hasOwnProperty(j)&&(h=l[j],h!=null&&Vt(o,s,j,h,l,null))}function d5(o,s,l,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,_=null,N=null,j=null,W=null,de=null,we=null;for(ve in l){var Te=l[ve];if(l.hasOwnProperty(ve)&&Te!=null)switch(ve){case"checked":break;case"value":break;case"defaultValue":W=Te;default:h.hasOwnProperty(ve)||Vt(o,s,ve,null,h,Te)}}for(var he in h){var ve=h[he];if(Te=l[he],h.hasOwnProperty(he)&&(ve!=null||Te!=null))switch(he){case"type":_=ve;break;case"name":v=ve;break;case"checked":de=ve;break;case"defaultChecked":we=ve;break;case"value":N=ve;break;case"defaultValue":j=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,s));break;default:ve!==Te&&Vt(o,s,he,ve,h,Te)}}hg(o,N,j,W,de,we,_,v);return;case"select":ve=N=j=he=null;for(_ in l)if(W=l[_],l.hasOwnProperty(_)&&W!=null)switch(_){case"value":break;case"multiple":ve=W;default:h.hasOwnProperty(_)||Vt(o,s,_,null,h,W)}for(v in h)if(_=h[v],W=l[v],h.hasOwnProperty(v)&&(_!=null||W!=null))switch(v){case"value":he=_;break;case"defaultValue":j=_;break;case"multiple":N=_;default:_!==W&&Vt(o,s,v,_,h,W)}s=j,l=N,h=ve,he!=null?Xi(o,!!l,he,!1):!!h!=!!l&&(s!=null?Xi(o,!!l,s,!0):Xi(o,!!l,l?[]:"",!1));return;case"textarea":ve=he=null;for(j in l)if(v=l[j],l.hasOwnProperty(j)&&v!=null&&!h.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Vt(o,s,j,null,h,v)}for(N in h)if(v=h[N],_=l[N],h.hasOwnProperty(N)&&(v!=null||_!=null))switch(N){case"value":he=v;break;case"defaultValue":ve=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==_&&Vt(o,s,N,v,h,_)}uS(o,he,ve);return;case"option":for(var Ue in l)he=l[Ue],l.hasOwnProperty(Ue)&&he!=null&&!h.hasOwnProperty(Ue)&&(Ue==="selected"?o.selected=!1:Vt(o,s,Ue,null,h,he));for(W in h)he=h[W],ve=l[W],h.hasOwnProperty(W)&&he!==ve&&(he!=null||ve!=null)&&(W==="selected"?o.selected=he&&typeof he!="function"&&typeof he!="symbol":Vt(o,s,W,he,h,ve));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 Ke in l)he=l[Ke],l.hasOwnProperty(Ke)&&he!=null&&!h.hasOwnProperty(Ke)&&Vt(o,s,Ke,null,h,he);for(de in h)if(he=h[de],ve=l[de],h.hasOwnProperty(de)&&he!==ve&&(he!=null||ve!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,s));break;default:Vt(o,s,de,he,h,ve)}return;default:if(mg(s)){for(var Ft in l)he=l[Ft],l.hasOwnProperty(Ft)&&he!==void 0&&!h.hasOwnProperty(Ft)&&ty(o,s,Ft,void 0,h,he);for(we in h)he=h[we],ve=l[we],!h.hasOwnProperty(we)||he===ve||he===void 0&&ve===void 0||ty(o,s,we,he,h,ve);return}}for(var se in l)he=l[se],l.hasOwnProperty(se)&&he!=null&&!h.hasOwnProperty(se)&&Vt(o,s,se,null,h,he);for(Te in h)he=h[Te],ve=l[Te],!h.hasOwnProperty(Te)||he===ve||he==null&&ve==null||Vt(o,s,Te,he,h,ve)}function pR(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f5(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,l=performance.getEntriesByType("resource"),h=0;h<l.length;h++){var v=l[h],_=v.transferSize,N=v.initiatorType,j=v.duration;if(_&&j&&pR(N)){for(N=0,j=v.responseEnd,h+=1;h<l.length;h++){var W=l[h],de=W.startTime;if(de>j)break;var we=W.transferSize,Te=W.initiatorType;we&&pR(Te)&&(W=W.responseEnd,N+=we*(W<j?1:(j-de)/(W-de)))}if(--h,s+=8*(_+N)/(v.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var ny=null,ry=null;function Df(o){return o.nodeType===9?o:o.ownerDocument}function mR(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gR(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function oy(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var ay=null;function h5(){var o=window.event;return o&&o.type==="popstate"?o===ay?!1:(ay=o,!0):(ay=null,!1)}var vR=typeof setTimeout=="function"?setTimeout:void 0,p5=typeof clearTimeout=="function"?clearTimeout:void 0,yR=typeof Promise=="function"?Promise:void 0,m5=typeof queueMicrotask=="function"?queueMicrotask:typeof yR<"u"?function(o){return yR.resolve(null).then(o).catch(g5)}:vR;function g5(o){setTimeout(function(){throw o})}function is(o){return o==="head"}function _R(o,s){var l=s,h=0;do{var v=l.nextSibling;if(o.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"||l==="/&"){if(h===0){o.removeChild(v),Ic(s);return}h--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")h++;else if(l==="html")lu(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,lu(l);for(var _=l.firstChild;_;){var N=_.nextSibling,j=_.nodeName;_[Ol]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&_.rel.toLowerCase()==="stylesheet"||l.removeChild(_),_=N}}else l==="body"&&lu(o.ownerDocument.body);l=v}while(l);Ic(s)}function bR(o,s){var l=o;o=0;do{var h=l.nextSibling;if(l.nodeType===1?s?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(s?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=h}while(l)}function sy(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":sy(l),dg(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function v5(o,s,l,h){for(;o.nodeType===1;){var v=l;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(h){if(!o[Ol])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(_=o.getAttribute("rel"),_==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(_!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(_=o.getAttribute("src"),(_!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&_&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var _=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===_)return o}else return o;if(o=ao(o.nextSibling),o===null)break}return null}function y5(o,s,l){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=ao(o.nextSibling),o===null))return null;return o}function SR(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=ao(o.nextSibling),o===null))return null;return o}function iy(o){return o.data==="$?"||o.data==="$~"}function cy(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function _5(o,s){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||l.readyState!=="loading")s();else{var h=function(){s(),l.removeEventListener("DOMContentLoaded",h)};l.addEventListener("DOMContentLoaded",h),o._reactRetry=h}}function ao(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var ly=null;function wR(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(s===0)return ao(o.nextSibling);s--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||s++}o=o.nextSibling}return null}function ER(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(s===0)return o;s--}else l!=="/$"&&l!=="/&"||s++}o=o.previousSibling}return null}function RR(o,s,l){switch(s=Df(l),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function lu(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);dg(o)}var so=new Map,xR=new Set;function Lf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var xa=J.d;J.d={f:b5,r:S5,D:w5,C:E5,L:R5,m:x5,X:O5,S:T5,M:C5};function b5(){var o=xa.f(),s=Of();return o||s}function S5(o){var s=Wi(o);s!==null&&s.tag===5&&s.type==="form"?Fw(s):xa.r(o)}var Oc=typeof document>"u"?null:document;function TR(o,s,l){var h=Oc;if(h&&typeof s=="string"&&s){var v=Xr(s);v='link[rel="'+o+'"][href="'+v+'"]',typeof l=="string"&&(v+='[crossorigin="'+l+'"]'),xR.has(v)||(xR.add(v),o={rel:o,crossOrigin:l,href:s},h.querySelector(v)===null&&(s=h.createElement("link"),Hn(s,"link",o),Mn(s),h.head.appendChild(s)))}}function w5(o){xa.D(o),TR("dns-prefetch",o,null)}function E5(o,s){xa.C(o,s),TR("preconnect",o,s)}function R5(o,s,l){xa.L(o,s,l);var h=Oc;if(h&&o&&s){var v='link[rel="preload"][as="'+Xr(s)+'"]';s==="image"&&l&&l.imageSrcSet?(v+='[imagesrcset="'+Xr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(v+='[imagesizes="'+Xr(l.imageSizes)+'"]')):v+='[href="'+Xr(o)+'"]';var _=v;switch(s){case"style":_=Cc(o);break;case"script":_=Ac(o)}so.has(_)||(o=p({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:o,as:s},l),so.set(_,o),h.querySelector(v)!==null||s==="style"&&h.querySelector(uu(_))||s==="script"&&h.querySelector(du(_))||(s=h.createElement("link"),Hn(s,"link",o),Mn(s),h.head.appendChild(s)))}}function x5(o,s){xa.m(o,s);var l=Oc;if(l&&o){var h=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+Xr(h)+'"][href="'+Xr(o)+'"]',_=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Ac(o)}if(!so.has(_)&&(o=p({rel:"modulepreload",href:o},s),so.set(_,o),l.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(du(_)))return}h=l.createElement("link"),Hn(h,"link",o),Mn(h),l.head.appendChild(h)}}}function T5(o,s,l){xa.S(o,s,l);var h=Oc;if(h&&o){var v=Yi(h).hoistableStyles,_=Cc(o);s=s||"default";var N=v.get(_);if(!N){var j={loading:0,preload:null};if(N=h.querySelector(uu(_)))j.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":s},l),(l=so.get(_))&&uy(o,l);var W=N=h.createElement("link");Mn(W),Hn(W,"link",o),W._p=new Promise(function(de,we){W.onload=de,W.onerror=we}),W.addEventListener("load",function(){j.loading|=1}),W.addEventListener("error",function(){j.loading|=2}),j.loading|=4,jf(N,s,h)}N={type:"stylesheet",instance:N,count:1,state:j},v.set(_,N)}}}function O5(o,s){xa.X(o,s);var l=Oc;if(l&&o){var h=Yi(l).hoistableScripts,v=Ac(o),_=h.get(v);_||(_=l.querySelector(du(v)),_||(o=p({src:o,async:!0},s),(s=so.get(v))&&dy(o,s),_=l.createElement("script"),Mn(_),Hn(_,"link",o),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(v,_))}}function C5(o,s){xa.M(o,s);var l=Oc;if(l&&o){var h=Yi(l).hoistableScripts,v=Ac(o),_=h.get(v);_||(_=l.querySelector(du(v)),_||(o=p({src:o,async:!0,type:"module"},s),(s=so.get(v))&&dy(o,s),_=l.createElement("script"),Mn(_),Hn(_,"link",o),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(v,_))}}function OR(o,s,l,h){var v=(v=X.current)?Lf(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=Cc(l.href),l=Yi(v).hoistableStyles,h=l.get(s),h||(h={type:"style",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=Cc(l.href);var _=Yi(v).hoistableStyles,N=_.get(o);if(N||(v=v.ownerDocument||v,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(o,N),(_=v.querySelector(uu(o)))&&!_._p&&(N.instance=_,N.state.loading=5),so.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},so.set(o,l),_||A5(v,o,l,N.state))),s&&h===null)throw Error(r(528,""));return N}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ac(l),l=Yi(v).hoistableScripts,h=l.get(s),h||(h={type:"script",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Cc(o){return'href="'+Xr(o)+'"'}function uu(o){return'link[rel="stylesheet"]['+o+"]"}function CR(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function A5(o,s,l,h){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=o.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),Hn(s,"link",l),Mn(s),o.head.appendChild(s))}function Ac(o){return'[src="'+Xr(o)+'"]'}function du(o){return"script[async]"+o}function AR(o,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var h=o.querySelector('style[data-href~="'+Xr(l.href)+'"]');if(h)return s.instance=h,Mn(h),h;var v=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return h=(o.ownerDocument||o).createElement("style"),Mn(h),Hn(h,"style",v),jf(h,l.precedence,o),s.instance=h;case"stylesheet":v=Cc(l.href);var _=o.querySelector(uu(v));if(_)return s.state.loading|=4,s.instance=_,Mn(_),_;h=CR(l),(v=so.get(v))&&uy(h,v),_=(o.ownerDocument||o).createElement("link"),Mn(_);var N=_;return N._p=new Promise(function(j,W){N.onload=j,N.onerror=W}),Hn(_,"link",h),s.state.loading|=4,jf(_,l.precedence,o),s.instance=_;case"script":return _=Ac(l.src),(v=o.querySelector(du(_)))?(s.instance=v,Mn(v),v):(h=l,(v=so.get(_))&&(h=p({},l),dy(h,v)),o=o.ownerDocument||o,v=o.createElement("script"),Mn(v),Hn(v,"link",h),o.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,jf(h,l.precedence,o));return s.instance}function jf(o,s,l){for(var h=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,_=v,N=0;N<h.length;N++){var j=h[N];if(j.dataset.precedence===s)_=j;else if(_!==v)break}_?_.parentNode.insertBefore(o,_.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(o,s.firstChild))}function uy(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function dy(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var $f=null;function IR(o,s,l){if($f===null){var h=new Map,v=$f=new Map;v.set(l,h)}else v=$f,h=v.get(l),h||(h=new Map,v.set(l,h));if(h.has(o))return h;for(h.set(o,null),l=l.getElementsByTagName(o),v=0;v<l.length;v++){var _=l[v];if(!(_[Ol]||_[Vn]||o==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var N=_.getAttribute(s)||"";N=o+N;var j=h.get(N);j?j.push(_):h.set(N,[_])}}return h}function kR(o,s,l){o=o.ownerDocument||o,o.head.insertBefore(l,s==="title"?o.querySelector("head > title"):null)}function I5(o,s,l){if(l===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(o=s.disabled,typeof s.precedence=="string"&&o==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function NR(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function k5(o,s,l,h){if(l.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=Cc(h.href),_=s.querySelector(uu(v));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=Uf.bind(o),s.then(o,o)),l.state.loading|=4,l.instance=_,Mn(_);return}_=s.ownerDocument||s,h=CR(h),(v=so.get(v))&&uy(h,v),_=_.createElement("link"),Mn(_);var N=_;N._p=new Promise(function(j,W){N.onload=j,N.onerror=W}),Hn(_,"link",h),l.instance=_}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,s),(s=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=Uf.bind(o),s.addEventListener("load",l),s.addEventListener("error",l))}}var fy=0;function N5(o,s){return o.stylesheets&&o.count===0&&Vf(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var h=setTimeout(function(){if(o.stylesheets&&Vf(o,o.stylesheets),o.unsuspend){var _=o.unsuspend;o.unsuspend=null,_()}},6e4+s);0<o.imgBytes&&fy===0&&(fy=62500*f5());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Vf(o,o.stylesheets),o.unsuspend)){var _=o.unsuspend;o.unsuspend=null,_()}},(o.imgBytes>fy?50:800)+s);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function Uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var zf=null;function Vf(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,zf=new Map,s.forEach(M5,o),zf=null,Uf.call(o))}function M5(o,s){if(!(s.state.loading&4)){var l=zf.get(o);if(l)var h=l.get(null);else{l=new Map,zf.set(o,l);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<v.length;_++){var N=v[_];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(l.set(N.dataset.precedence,N),h=N)}h&&l.set(null,h)}v=s.instance,N=v.getAttribute("data-precedence"),_=l.get(N)||h,_===h&&l.set(null,v),l.set(N,v),this.count++,h=Uf.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),_?_.parentNode.insertBefore(v,_.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),s.state.loading|=4}}var fu={$$typeof:T,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function P5(o,s,l,h,v,_,N,j,W){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.hiddenUpdates=Fa(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=_,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function MR(o,s,l,h,v,_,N,j,W,de,we,Te){return o=new P5(o,s,l,N,W,de,we,Te,j),s=1,_===!0&&(s|=24),_=Mr(3,null,null,s),o.current=_,_.stateNode=o,s=Hg(),s.refCount++,o.pooledCache=s,s.refCount++,_.memoizedState={element:h,isDehydrated:l,cache:s},Wg(_),o}function PR(o){return o?(o=sc,o):sc}function DR(o,s,l,h,v,_){v=PR(v),h.context===null?h.context=v:h.pendingContext=v,h=Ya(s),h.payload={element:l},_=_===void 0?null:_,_!==null&&(h.callback=_),l=Qa(o,h,s),l!==null&&(Er(l,o,s),ql(l,o,s))}function LR(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function hy(o,s){LR(o,s),(o=o.alternate)&&LR(o,s)}function jR(o){if(o.tag===13||o.tag===31){var s=Js(o,67108864);s!==null&&Er(s,o,67108864),hy(o,67108864)}}function $R(o){if(o.tag===13||o.tag===31){var s=$r();s=Gi(s);var l=Js(o,s);l!==null&&Er(l,o,s),hy(o,s)}}var Ff=!0;function D5(o,s,l,h){var v=F.T;F.T=null;var _=J.p;try{J.p=2,py(o,s,l,h)}finally{J.p=_,F.T=v}}function L5(o,s,l,h){var v=F.T;F.T=null;var _=J.p;try{J.p=8,py(o,s,l,h)}finally{J.p=_,F.T=v}}function py(o,s,l,h){if(Ff){var v=my(h);if(v===null)ey(o,s,h,Bf,l),zR(o,h);else if($5(v,o,s,l,h))h.stopPropagation();else if(zR(o,h),s&4&&-1<j5.indexOf(o)){for(;v!==null;){var _=Wi(v);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var N=Fo(_.pendingLanes);if(N!==0){var j=_;for(j.pendingLanes|=2,j.entangledLanes|=2;N;){var W=1<<31-kn(N);j.entanglements[1]|=W,N&=~W}Go(_),(Nt&6)===0&&(xf=Ee()+500,su(0))}}break;case 31:case 13:j=Js(_,2),j!==null&&Er(j,_,2),Of(),hy(_,2)}if(_=my(h),_===null&&ey(o,s,h,Bf,l),_===v)break;v=_}v!==null&&h.stopPropagation()}else ey(o,s,h,null,l)}}function my(o){return o=vg(o),gy(o)}var Bf=null;function gy(o){if(Bf=null,o=Ki(o),o!==null){var s=i(o);if(s===null)o=null;else{var l=s.tag;if(l===13){if(o=c(s),o!==null)return o;o=null}else if(l===31){if(o=u(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return Bf=o,null}function UR(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oe()){case xe:return 2;case Me:return 8;case ot:case it:return 32;case Pt:return 268435456;default:return 32}default:return 32}}var vy=!1,cs=null,ls=null,us=null,hu=new Map,pu=new Map,ds=[],j5="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 zR(o,s){switch(o){case"focusin":case"focusout":cs=null;break;case"dragenter":case"dragleave":ls=null;break;case"mouseover":case"mouseout":us=null;break;case"pointerover":case"pointerout":hu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":pu.delete(s.pointerId)}}function mu(o,s,l,h,v,_){return o===null||o.nativeEvent!==_?(o={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:_,targetContainers:[v]},s!==null&&(s=Wi(s),s!==null&&jR(s)),o):(o.eventSystemFlags|=h,s=o.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),o)}function $5(o,s,l,h,v){switch(s){case"focusin":return cs=mu(cs,o,s,l,h,v),!0;case"dragenter":return ls=mu(ls,o,s,l,h,v),!0;case"mouseover":return us=mu(us,o,s,l,h,v),!0;case"pointerover":var _=v.pointerId;return hu.set(_,mu(hu.get(_)||null,o,s,l,h,v)),!0;case"gotpointercapture":return _=v.pointerId,pu.set(_,mu(pu.get(_)||null,o,s,l,h,v)),!0}return!1}function VR(o){var s=Ki(o.target);if(s!==null){var l=i(s);if(l!==null){if(s=l.tag,s===13){if(s=c(l),s!==null){o.blockedOn=s,tS(o.priority,function(){$R(l)});return}}else if(s===31){if(s=u(l),s!==null){o.blockedOn=s,tS(o.priority,function(){$R(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function qf(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=my(o.nativeEvent);if(l===null){l=o.nativeEvent;var h=new l.constructor(l.type,l);gg=h,l.target.dispatchEvent(h),gg=null}else return s=Wi(l),s!==null&&jR(s),o.blockedOn=l,!1;s.shift()}return!0}function FR(o,s,l){qf(o)&&l.delete(s)}function U5(){vy=!1,cs!==null&&qf(cs)&&(cs=null),ls!==null&&qf(ls)&&(ls=null),us!==null&&qf(us)&&(us=null),hu.forEach(FR),pu.forEach(FR)}function Hf(o,s){o.blockedOn===s&&(o.blockedOn=null,vy||(vy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,U5)))}var Gf=null;function BR(o){Gf!==o&&(Gf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gf===o&&(Gf=null);for(var s=0;s<o.length;s+=3){var l=o[s],h=o[s+1],v=o[s+2];if(typeof h!="function"){if(gy(h||l)===null)continue;break}var _=Wi(l);_!==null&&(o.splice(s,3),s-=3,mv(_,{pending:!0,data:v,method:l.method,action:h},h,v))}}))}function Ic(o){function s(W){return Hf(W,o)}cs!==null&&Hf(cs,o),ls!==null&&Hf(ls,o),us!==null&&Hf(us,o),hu.forEach(s),pu.forEach(s);for(var l=0;l<ds.length;l++){var h=ds[l];h.blockedOn===o&&(h.blockedOn=null)}for(;0<ds.length&&(l=ds[0],l.blockedOn===null);)VR(l),l.blockedOn===null&&ds.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(h=0;h<l.length;h+=3){var v=l[h],_=l[h+1],N=v[vr]||null;if(typeof _=="function")N||BR(l);else if(N){var j=null;if(_&&_.hasAttribute("formAction")){if(v=_,N=_[vr]||null)j=N.formAction;else if(gy(v)!==null)continue}else j=N.action;typeof j=="function"?l[h+1]=j:(l.splice(h,3),h-=3),BR(l)}}}function qR(){function o(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(N){return v=N})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),h||setTimeout(l,20)}function l(){if(!h&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(l,100),function(){h=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function yy(o){this._internalRoot=o}Zf.prototype.render=yy.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var l=s.current,h=$r();DR(l,h,o,s,null,null)},Zf.prototype.unmount=yy.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;DR(o.current,2,null,o,null,null),Of(),s[Zi]=null}};function Zf(o){this._internalRoot=o}Zf.prototype.unstable_scheduleHydration=function(o){if(o){var s=lg();o={blockedOn:null,target:o,priority:s};for(var l=0;l<ds.length&&s!==0&&s<ds[l].priority;l++);ds.splice(l,0,o),l===0&&VR(o)}};var HR=t.version;if(HR!=="19.2.4")throw Error(r(527,HR,"19.2.4"));J.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(s),o=o!==null?m(o):null,o=o===null?null:o.stateNode,o};var z5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kf.isDisabled&&Kf.supportsFiber)try{Un=Kf.inject(z5),en=Kf}catch{}}return vu.createRoot=function(o,s){if(!a(o))throw Error(r(299));var l=!1,h="",v=Xw,_=Jw,N=eE;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError)),s=MR(o,1,!1,null,null,l,h,null,v,_,N,qR),o[Zi]=s.current,Jv(o),new yy(s)},vu.hydrateRoot=function(o,s,l){if(!a(o))throw Error(r(299));var h=!1,v="",_=Xw,N=Jw,j=eE,W=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(_=l.onUncaughtError),l.onCaughtError!==void 0&&(N=l.onCaughtError),l.onRecoverableError!==void 0&&(j=l.onRecoverableError),l.formState!==void 0&&(W=l.formState)),s=MR(o,1,!0,s,l??null,h,v,W,_,N,j,qR),s.context=PR(null),l=s.current,h=$r(),h=Gi(h),v=Ya(h),v.callback=null,Qa(l,v,h),l=h,s.current.lanes=l,tn(s,l),Go(s),o[Zi]=s.current,Jv(o),new Zf(s)},vu.version="19.2.4",vu}var nx;function X5(){if(nx)return by.exports;nx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),by.exports=Q5(),by.exports}var J5=X5(),A=Us();const le=ja(A),ub=F5({__proto__:null,default:le},[A]);var xy={exports:{}},Ty={};var rx;function eD(){if(rx)return Ty;rx=1;var e=Us().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Ty.c=function(t){return e.H.useMemoCache(t)},Ty}var ox;function tD(){return ox||(ox=1,xy.exports=eD()),xy.exports}var Li=tD(),gd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nD={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rD=class{#e=nD;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},wi=new rD;function oD(e){setTimeout(e,0)}var Ii=typeof window>"u"||"Deno"in globalThis;function Or(){}function aD(e,t){return typeof e=="function"?e(t):e}function G0(e){return typeof e=="number"&&e>=0&&e!==1/0}function qC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Os(e,t){return typeof e=="function"?e(t):e}function uo(e,t){return typeof e=="function"?e(t):e}function ax(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==db(c,t.options))return!1}else if(!Xu(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||i&&!i(t))}function sx(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Qu(t.options.mutationKey)!==Qu(i))return!1}else if(!Xu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function db(e,t){return(t?.queryKeyHashFn||Qu)(e)}function Qu(e){return JSON.stringify(e,(t,n)=>K0(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Xu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xu(e[n],t[n])):!1}var sD=Object.prototype.hasOwnProperty;function HC(e,t){if(e===t)return e;const n=ix(e)&&ix(t);if(!n&&!(K0(e)&&K0(t)))return t;const a=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),c=i.length,u=n?new Array(c):{};let d=0;for(let f=0;f<c;f++){const m=n?f:i[f],p=e[m],g=t[m];if(p===g){u[m]=p,(n?f<a:sD.call(e,m))&&d++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){u[m]=g;continue}const y=HC(p,g);u[m]=y,y===p&&d++}return a===c&&d===a?e:u}function Z0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ix(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function K0(e){if(!cx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!cx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function cx(e){return Object.prototype.toString.call(e)==="[object Object]"}function iD(e){return new Promise(t=>{wi.setTimeout(t,e)})}function W0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?HC(e,t):t}function Doe(e){return e}function cD(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lD(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fb=Symbol();function GC(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uD(e,t){return typeof e=="function"?e(...t):!!e}var dD=class extends gd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ii&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},hb=new dD;function Y0(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var fD=oD;function hD(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=fD;const i=u=>{t?e.push(u):a(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||c()}return d},batchCalls:u=>(...d)=>{i(()=>{u(...d)})},schedule:i,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var Kn=hD(),pD=class extends gd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ii&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ep=new pD;function mD(e){return Math.min(1e3*2**e,3e4)}function ZC(e){return(e??"online")==="online"?Ep.isOnline():!0}var Q0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function KC(e){let t=!1,n=0,r;const a=Y0(),i=()=>a.status!=="pending",c=w=>{if(!i()){const S=new Q0(w);g(S),e.onCancel?.(S)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>hb.isFocused()&&(e.networkMode==="always"||Ep.isOnline())&&e.canRun(),m=()=>ZC(e.networkMode)&&e.canRun(),p=w=>{i()||(r?.(),a.resolve(w))},g=w=>{i()||(r?.(),a.reject(w))},y=()=>new Promise(w=>{r=S=>{(i()||f())&&w(S)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),b=()=>{if(i())return;let w;const S=n===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(x){w=Promise.reject(x)}Promise.resolve(w).then(p).catch(x=>{if(i())return;const E=e.retry??(Ii?0:3),T=e.retryDelay??mD,C=typeof T=="function"?T(n,x):T,O=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,x);if(t||!O){g(x);return}n++,e.onFail?.(n,x),iD(C).then(()=>f()?void 0:y()).then(()=>{t?g(x):b()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?b():y().then(b),a)}}var WC=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G0(this.gcTime)&&(this.#e=wi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ii?1/0:300*1e3))}clearGcTimeout(){this.#e&&(wi.clearTimeout(this.#e),this.#e=void 0)}},gD=class extends WC{#e;#t;#n;#o;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ux(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=ux(this.options);t.data!==void 0&&(this.setState(lx(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=W0(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Or).catch(Or):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>uo(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Os(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!qC(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=GC(this.options,t),f=(()=>{const m={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(u,f,this):u(f)},c=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=KC({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof Q0&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof Q0){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...YC(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...lx(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Kn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function YC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ZC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ux(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vD=class extends gd{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=Y0(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#i;#s;#a;#m;#f;#h;#l;#u;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),dx(this.#t,this.options)?this.#d():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return X0(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return X0(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof uo(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!Z0(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&fx(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||Os(this.options.staleTime,this.#t)!==Os(t.staleTime,this.#t))&&this.#g();const a=this.#v();r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||a!==this.#c)&&this.#y(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return _D(this,n)&&(this.#o=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Or)),t}#g(){this.#b();const e=Os(this.options.staleTime,this.#t);if(Ii||this.#o.isStale||!G0(e))return;const n=qC(this.#o.dataUpdatedAt,e)+1;this.#l=wi.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#S(),this.#c=e,!(Ii||uo(this.options.enabled,this.#t)===!1||!G0(this.#c)||this.#c===0)&&(this.#u=wi.setInterval(()=>{(this.options.refetchIntervalInBackground||hb.isFocused())&&this.#d()},this.#c))}#_(){this.#g(),this.#y(this.#v())}#b(){this.#l&&(wi.clearTimeout(this.#l),this.#l=void 0)}#S(){this.#u&&(wi.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#o,i=this.#r,c=this.#i,d=e!==n?e.state:this.#n,{state:f}=e;let m={...f},p=!1,g;if(t._optimisticResults){const D=this.hasListeners(),z=!D&&dx(e,t),Q=D&&fx(e,n,t,r);(z||Q)&&(m={...m,...YC(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=m;g=m.data;let S=!1;if(t.placeholderData!==void 0&&g===void 0&&w==="pending"){let D;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(D=a.data,S=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,D!==void 0&&(w="success",g=W0(a?.data,D,t),p=!0)}if(t.select&&g!==void 0&&!S)if(a&&g===i?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=W0(a?.data,g,t),this.#f=g,this.#a=null}catch(D){this.#a=D}this.#a&&(y=this.#a,g=this.#f,b=Date.now(),w="error");const x=m.fetchStatus==="fetching",E=w==="pending",T=w==="error",C=E&&x,O=g!==void 0,M={status:w,fetchStatus:m.fetchStatus,isPending:E,isSuccess:w==="success",isError:T,isInitialLoading:C,isLoading:C,data:g,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!E,isLoadingError:T&&!O,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:T&&O,isStale:pb(e,t),refetch:this.refetch,promise:this.#s,isEnabled:uo(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=V=>{M.status==="error"?V.reject(M.error):M.data!==void 0&&V.resolve(M.data)},z=()=>{const V=this.#s=M.promise=Y0();D(V)},Q=this.#s;switch(Q.status){case"pending":e.queryHash===n.queryHash&&D(Q);break;case"fulfilled":(M.status==="error"||M.data!==Q.value)&&z();break;case"rejected":(M.status!=="error"||M.error!==Q.reason)&&z();break}}return M}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#t),Z0(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const i=new Set(a??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(c=>{const u=c;return this.#o[u]!==e[u]&&i.has(u)})};this.#E({listeners:n()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#E(e){Kn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function yD(e,t){return uo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dx(e,t){return yD(e,t)||e.state.data!==void 0&&X0(e,t,t.refetchOnMount)}function X0(e,t,n){if(uo(t.enabled,e)!==!1&&Os(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pb(e,t)}return!1}function fx(e,t,n,r){return(e!==t||uo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pb(e,n)}function pb(e,t){return uo(t.enabled,e)!==!1&&e.isStaleByTime(Os(t.staleTime,e))}function _D(e,t){return!Z0(e.getCurrentResult(),t)}function hx(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let m=!1;const p=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=GC(t.options,t.fetchOptions),y=async(b,w,S)=>{if(m)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return p(I),I})(),T=await g(E),{maxPages:C}=t.options,O=S?lD:cD;return{pages:O(b.pages,T,C),pageParams:O(b.pageParams,w,C)}};if(a&&i.length){const b=a==="backward",w=b?QC:J0,S={pages:i,pageParams:c},x=w(r,S);u=await y(S,x,b)}else{const b=e??i.length;do{const w=d===0?c[0]??r.initialPageParam:J0(r,u);if(d>0&&w==null)break;u=await y(u,w),d++}while(d<b)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function J0(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function QC(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Loe(e,t){return t?J0(e,t)!=null:!1}function joe(e,t){return!t||!e.getPreviousPageParam?!1:QC(e,t)!=null}var bD=class extends WC{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||SD(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=KC({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,c)=>{this.#r({type:"failed",failureCount:i,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:a})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Kn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function SD(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wD=class extends gd{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new bD({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Wf(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Wf(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Wf(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Wf(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Kn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>sx(t,n))}findAll(e={}){return this.getAll().filter(t=>sx(e,t))}notify(e){Kn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Kn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Or))))}};function Wf(e){return e.options.scope?.id}var ED=class extends gd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??db(r,t);let i=this.get(a);return i||(i=new gD({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Kn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ax(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ax(e,n)):t}notify(e){Kn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Kn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Kn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},RD=class{#e;#t;#n;#o;#r;#i;#s;#a;constructor(e={}){this.#e=e.queryCache||new ED,this.#t=e.mutationCache||new wD,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=hb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Ep.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Os(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,c=aD(t,i);if(c!==void 0)return this.#e.build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Kn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Kn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Kn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Kn.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Or).catch(Or)}invalidateQueries(e,t={}){return Kn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Kn.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Or)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Or)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Os(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Or).catch(Or)}fetchInfiniteQuery(e){return e.behavior=hx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Or).catch(Or)}ensureInfiniteQueryData(e){return e.behavior=hx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ep.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Qu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Xu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Qu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Xu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=db(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},XC=A.createContext(void 0),xD=e=>{const t=A.useContext(XC);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},TD=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(XC.Provider,{value:e,children:t})),JC=A.createContext(!1),OD=()=>A.useContext(JC);JC.Provider;function CD(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var AD=A.createContext(CD()),ID=()=>A.useContext(AD),kD=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ND=e=>{A.useEffect(()=>{e.clearReset()},[e])},MD=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||uD(n,[e.error,r])),PD=(e,t)=>t.state.data===void 0,DD=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},LD=(e,t)=>e.isLoading&&e.isFetching&&!t,jD=(e,t)=>e?.suspense&&t.isPending,px=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $D(e,t,n){const r=OD(),a=ID(),i=xD(n),c=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=r?"isRestoring":"optimistic",DD(c),kD(c,a),ND(a);const u=!i.getQueryCache().get(c.queryHash),[d]=A.useState(()=>new t(i,c)),f=d.getOptimisticResult(c),m=!r&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(p=>{const g=m?d.subscribe(Kn.batchCalls(p)):Or;return d.updateResult(),g},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),A.useEffect(()=>{d.setOptions(c)},[c,d]),jD(c,f))throw px(c,d,a);if(MD({result:f,errorResetBoundary:a,throwOnError:c.throwOnError,query:i.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw f.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!Ii&&LD(f,r)&&(u?px(c,d,a):i.getQueryCache().get(c.queryHash)?.promise)?.catch(Or).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?f:d.trackResult(f)}function eA(e,t){return $D({...e,enabled:!0,suspense:!0,throwOnError:PD,placeholderData:void 0},vD,t)}const tA={publicConfig:()=>["publicConfig"],authConfig:()=>["authConfig"],session:()=>["session"],tasks:e=>["tasks",e],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],connections:e=>[e,"connections"],connectionsByBinding:(e,t)=>[e,"connections",`binding:${t}`],connection:(e,t)=>[e,"connection",t],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],organizationSettings:e=>["organization-settings",e],activeOrganization:e=>["activeOrganization",e],modelsList:e=>["models-list",e],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,n)=>["tool-call",e,t,n],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,n)=>[e,t,"collection",n],collectionItem:(e,t,n,r,a)=>[e,t,n,"collection",r,a],collectionList:(e,t,n,r,a)=>[e,t,n,"collection",r,"list",a],collectionListInfinite:(e,t,n,r,a)=>[e,t,n,"collection",r,"list-infinite",a],githubReadme:(e,t)=>["github-readme",e,t],monitoringStats:()=>["monitoring","stats"],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringDashboards:e=>["monitoring","dashboards",e],monitoringDashboardDetails:(e,t)=>["monitoring","dashboard",e,t],monitoringDashboardQuery:(e,t,n,r,a)=>["monitoringDashboardQuery",e,t,n,r,a??""],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,n)=>[...e,t,n],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],projects:e=>["projects",e],project:(e,t)=>["project",e,t],projectById:e=>["project","byId",e],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t]},nA=A.createContext(void 0);async function UD(){const e=await fetch("/api/auth/custom/config");if(!e.ok)throw new Error("Failed to load auth configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load auth configuration");return t.config}function zD(e){const t=Li.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:tA.authConfig(),queryFn:UD,staleTime:1/0},t[0]=r):r=t[0];const{data:a}=eA(r);let i;return t[1]!==a||t[2]!==n?(i=R.jsx(nA.Provider,{value:a,children:n}),t[1]=a,t[2]=n,t[3]=i):i=t[3],i}function $oe(){const e=A.useContext(nA);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}const Xc=new WeakMap,lp=new WeakMap,Rp={current:[]};let Oy=!1,zu=0;const Iu=new Set,Yf=new Map;function rA(e){const t=Array.from(e).sort((n,r)=>n instanceof Jc&&n.options.deps.includes(r)?1:r instanceof Jc&&r.options.deps.includes(n)?-1:0);for(const n of t){if(Rp.current.includes(n))continue;Rp.current.push(n),n.recompute();const r=lp.get(n);if(r)for(const a of r){const i=Xc.get(a);i&&rA(i)}}}function VD(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function FD(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function oA(e){if(zu>0&&!Yf.has(e)&&Yf.set(e,e.prevState),Iu.add(e),!(zu>0)&&!Oy)try{for(Oy=!0;Iu.size>0;){const t=Array.from(Iu);Iu.clear();for(const n of t){const r=Yf.get(n)??n.prevState;n.prevState=r,VD(n)}for(const n of t){const r=Xc.get(n);r&&(Rp.current.push(n),rA(r))}for(const n of t){const r=Xc.get(n);if(r)for(const a of r)FD(a)}}}finally{Oy=!1,Rp.current=[],Yf.clear()}}function Vu(e){zu++;try{e()}finally{if(zu--,zu===0){const t=Iu.values().next().value;t&&oA(t)}}}function BD(e){return typeof e=="function"}class e_{constructor(t,n){this.listeners=new Set,this.subscribe=r=>{var a,i;this.listeners.add(r);const c=(i=(a=this.options)==null?void 0:a.onSubscribe)==null?void 0:i.call(a,r,this);return()=>{this.listeners.delete(r),c?.()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,a;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):BD(t)?this.state=t(this.prevState):this.state=t,(a=(r=this.options)==null?void 0:r.onUpdate)==null||a.call(r),oA(this)}}class Jc{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=this.options.deps.length,r=new Array(n),a=new Array(n);for(let i=0;i<n;i++){const c=this.options.deps[i];r[i]=c.prevState,a[i]=c.state}return this.lastSeenDepValues=a,{prevDepVals:r,currDepVals:a,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,r;this.prevState=this.state;const a=this.getDepVals();this.state=this.options.fn(a),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const i of this.options.deps)i instanceof Jc&&i.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:a}=this.getDepVals();for(let i=0;i<a.length;i++)if(a[i]!==r[i]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var r,a;this.listeners.add(n);const i=(a=(r=this.options).onSubscribe)==null?void 0:a.call(r,n,this);return()=>{this.listeners.delete(n),i?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Jc)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof e_){let r=Xc.get(n);r||(r=new Set,Xc.set(n,r)),r.add(this);let a=lp.get(this);a||(a=new Set,lp.set(this,a)),a.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Jc)this.unregisterFromGraph(n.options.deps);else if(n instanceof e_){const r=Xc.get(n);r&&r.delete(this);const a=lp.get(this);a&&a.delete(n)}}}const Cs="__TSR_index",mx="popstate",gx="beforeunload";function qD(e){let t=e.getLocation();const n=new Set,r=c=>{t=e.getLocation(),n.forEach(u=>u({location:t,action:c}))},a=c=>{e.notifyOnIndexChange??!0?r(c):t=e.getLocation()},i=async({task:c,navigateOpts:u,...d})=>{if(u?.ignoreBlocker??!1){c();return}const m=e.getBlockers?.()??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&m.length&&p)for(const g of m){const y=xp(d.path,d.state);if(await g.blockerFn({currentLocation:t,nextLocation:y,action:d.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,u,d)=>{const f=t.state[Cs];u=vx(f+1,u),i({task:()=>{e.pushState(c,u),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:c,state:u})},replace:(c,u,d)=>{const f=t.state[Cs];u=vx(f,u),i({task:()=>{e.replaceState(c,u),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:c,state:u})},go:(c,u)=>{i({task:()=>{e.go(c),a({type:"GO",index:c})},navigateOpts:u,type:"GO"})},back:c=>{i({task:()=>{e.back(c?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{i({task:()=>{e.forward(c?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[Cs]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const u=e.getBlockers?.()??[];return e.setBlockers([...u,c]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(f=>f!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function vx(e,t){t||(t={});const n=mb();return{...t,key:n,__TSR_key:n,[Cs]:e}}function HD(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let a=[];const i=()=>a,c=D=>a=D,u=(D=>D),d=(()=>xp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const D=mb();t.history.replaceState({[Cs]:0,key:D,__TSR_key:D},"")}let f=d(),m,p=!1,g=!1,y=!1,b=!1;const w=()=>f;let S,x;const E=()=>{S&&(M._ignoreSubscribers=!0,(S.isPush?t.history.pushState:t.history.replaceState)(S.state,"",S.href),M._ignoreSubscribers=!1,S=void 0,x=void 0,m=void 0)},T=(D,z,Q)=>{const V=u(z);x||(m=f),f=xp(z,Q),S={href:V,state:Q,isPush:S?.isPush||D==="push"},x||(x=Promise.resolve().then(()=>E()))},C=D=>{f=d(),M.notify({type:D})},O=async()=>{if(g){g=!1;return}const D=d(),z=D.state[Cs]-f.state[Cs],Q=z===1,V=z===-1,Z=!Q&&!V||p;p=!1;const U=Z?"GO":V?"BACK":"FORWARD",ee=Z?{type:"GO",index:z}:{type:V?"BACK":"FORWARD"};if(y)y=!1;else{const ie=i();if(typeof document<"u"&&ie.length){for(const F of ie)if(await F.blockerFn({currentLocation:f,nextLocation:D,action:U})){g=!0,t.history.go(1),M.notify(ee);return}}}f=d(),M.notify(ee)},I=D=>{if(b){b=!1;return}let z=!1;const Q=i();if(typeof document<"u"&&Q.length)for(const V of Q){const Z=V.enableBeforeUnload??!0;if(Z===!0){z=!0;break}if(typeof Z=="function"&&Z()===!0){z=!0;break}}if(z)return D.preventDefault(),D.returnValue=""},M=qD({getLocation:w,getLength:()=>t.history.length,pushState:(D,z)=>T("push",D,z),replaceState:(D,z)=>T("replace",D,z),back:D=>(D&&(y=!0),b=!0,t.history.back()),forward:D=>{D&&(y=!0),b=!0,t.history.forward()},go:D=>{p=!0,t.history.go(D)},createHref:D=>u(D),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(gx,I,{capture:!0}),t.removeEventListener(mx,O)},onBlocked:()=>{m&&f!==m&&(f=m)},getBlockers:i,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(gx,I,{capture:!0}),t.addEventListener(mx,O),t.history.pushState=function(...D){const z=n.apply(t.history,D);return M._ignoreSubscribers||C("PUSH"),z},t.history.replaceState=function(...D){const z=r.apply(t.history,D);return M._ignoreSubscribers||C("REPLACE"),z},M}function xp(e,t){const n=e.indexOf("#"),r=e.indexOf("?"),a=mb();return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{[Cs]:0,key:a,__TSR_key:a}}}function mb(){return(Math.random()+1).toString(36).substring(7)}function Tp(e){return e[e.length-1]}function GD(e){return typeof e=="function"}function Ti(e,t){return GD(e)?e(t):e}const ZD=Object.prototype.hasOwnProperty;function lo(e,t){if(e===t)return e;const n=t,r=bx(e)&&bx(n);if(!r&&!(Op(e)&&Op(n)))return n;const a=r?e:yx(e);if(!a)return n;const i=r?n:yx(n);if(!i)return n;const c=a.length,u=i.length,d=r?new Array(u):{};let f=0;for(let m=0;m<u;m++){const p=r?m:i[m],g=e[p],y=n[p];if(g===y){d[p]=g,(r?m<c:ZD.call(e,p))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){d[p]=y;continue}const b=lo(g,y);d[p]=b,b===g&&f++}return c===u&&f===c?e:d}function yx(e){const t=[],n=Object.getOwnPropertyNames(e);for(const a of n){if(!Object.prototype.propertyIsEnumerable.call(e,a))return!1;t.push(a)}const r=Object.getOwnPropertySymbols(e);for(const a of r){if(!Object.prototype.propertyIsEnumerable.call(e,a))return!1;t.push(a)}return t}function Op(e){if(!_x(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!_x(n)||!n.hasOwnProperty("isPrototypeOf"))}function _x(e){return Object.prototype.toString.call(e)==="[object Object]"}function bx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oi(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,a=e.length;r<a;r++)if(!Oi(e[r],t[r],n))return!1;return!0}if(Op(e)&&Op(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!r||t[c]!==void 0)&&!Oi(e[c],t[c],n))return!1;return!0}let a=0;if(!r)a=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&a++;let i=0;for(const c in t)if((!r||t[c]!==void 0)&&(i++,i>a||!Oi(e[c],t[c],n)))return!1;return a===i}return!1}function il(e){let t,n;const r=new Promise((a,i)=>{t=a,n=i});return r.status="pending",r.resolve=a=>{r.status="resolved",r.value=a,t(a),e?.(a)},r.reject=a=>{r.status="rejected",n(a)},r}function KD(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function As(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function Sx(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function wx(e,t){if(!e)return e;const n=/%25|%5C/gi;let r=0,a="",i;for(;(i=n.exec(e))!==null;)a+=Sx(e.slice(r,i.index))+i[0],r=n.lastIndex;return a+Sx(r?e.slice(r):e)}var WD="Invariant failed";function Ma(e,t){if(!e)throw new Error(WD)}function Cp(e){const t=new Map;let n,r;const a=i=>{i.next&&(i.prev?(i.prev.next=i.next,i.next.prev=i.prev,i.next=void 0,r&&(r.next=i,i.prev=r)):(i.next.prev=void 0,n=i.next,i.next=void 0,r&&(i.prev=r,r.next=i)),r=i)};return{get(i){const c=t.get(i);if(c)return a(c),c.value},set(i,c){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const u=t.get(i);if(u)u.value=c,a(u);else{const d={key:i,value:c,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(i,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const cl=0,ki=1,Ni=2,Ju=3,YD=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,QD=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,XD=/^([^{]*)\{\$\}([^}]*)$/;function gb(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),a=r===-1?e.length:r,i=e.substring(t,a);if(!i||!i.includes("$"))return n[0]=cl,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(i==="$"){const f=e.length;return n[0]=Ni,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(i.charCodeAt(0)===36)return n[0]=ki,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const c=i.match(XD);if(c){const m=c[1].length;return n[0]=Ni,n[1]=t+m,n[2]=t+m+1,n[3]=t+m+2,n[4]=t+m+3,n[5]=e.length,n}const u=i.match(QD);if(u){const f=u[1],m=u[2],p=u[3],g=f.length;return n[0]=Ju,n[1]=t+g,n[2]=t+g+3,n[3]=t+g+3+m.length,n[4]=a-p.length,n[5]=a,n}const d=i.match(YD);if(d){const f=d[1],m=d[2],p=d[3],g=f.length;return n[0]=ki,n[1]=t+g,n[2]=t+g+2,n[3]=t+g+2+m.length,n[4]=a-p.length,n[5]=a,n}return n[0]=cl,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function bm(e,t,n,r,a,i,c){c?.(n);let u=r;{const d=n.fullPath??n.from,f=d.length,m=n.options?.caseSensitive??e;for(;u<f;){const p=gb(d,u,t);let g;const y=u,b=p[5];switch(u=b+1,i++,p[0]){case cl:{const S=d.substring(p[2],p[3]);if(m){const x=a.static?.get(S);if(x)g=x;else{a.static??=new Map;const E=ed(n.fullPath??n.from);E.parent=a,E.depth=i,g=E,a.static.set(S,E)}}else{const x=S.toLowerCase(),E=a.staticInsensitive?.get(x);if(E)g=E;else{a.staticInsensitive??=new Map;const T=ed(n.fullPath??n.from);T.parent=a,T.depth=i,g=T,a.staticInsensitive.set(x,T)}}break}case ki:{const S=d.substring(y,p[1]),x=d.substring(p[4],b),E=m&&!!(S||x),T=S?E?S:S.toLowerCase():void 0,C=x?E?x:x.toLowerCase():void 0,O=a.dynamic?.find(I=>I.caseSensitive===E&&I.prefix===T&&I.suffix===C);if(O)g=O;else{const I=Ay(ki,n.fullPath??n.from,E,T,C);g=I,I.depth=i,I.parent=a,a.dynamic??=[],a.dynamic.push(I)}break}case Ju:{const S=d.substring(y,p[1]),x=d.substring(p[4],b),E=m&&!!(S||x),T=S?E?S:S.toLowerCase():void 0,C=x?E?x:x.toLowerCase():void 0,O=a.optional?.find(I=>I.caseSensitive===E&&I.prefix===T&&I.suffix===C);if(O)g=O;else{const I=Ay(Ju,n.fullPath??n.from,E,T,C);g=I,I.parent=a,I.depth=i,a.optional??=[],a.optional.push(I)}break}case Ni:{const S=d.substring(y,p[1]),x=d.substring(p[4],b),E=m&&!!(S||x),T=S?E?S:S.toLowerCase():void 0,C=x?E?x:x.toLowerCase():void 0,O=Ay(Ni,n.fullPath??n.from,E,T,C);g=O,O.parent=a,O.depth=i,a.wildcard??=[],a.wildcard.push(O)}}a=g}if((n.path||!n.children)&&!n.isRoot){const p=d.endsWith("/");p||(a.notFound=n),(!a.route||!a.isIndex&&p)&&(a.route=n),a.isIndex||=p}}if(n.children)for(const d of n.children)bm(e,t,d,u,a,i,c)}function Cy(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function bi(e){if(e.static)for(const t of e.static.values())bi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())bi(t);if(e.dynamic?.length){e.dynamic.sort(Cy);for(const t of e.dynamic)bi(t)}if(e.optional?.length){e.optional.sort(Cy);for(const t of e.optional)bi(t)}if(e.wildcard?.length){e.wildcard.sort(Cy);for(const t of e.wildcard)bi(t)}}function ed(e){return{kind:cl,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function Ay(e,t,n,r,a){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:r,suffix:a}}function JD(e,t){const n=ed("/"),r=new Uint16Array(6);for(const a of e)bm(!1,r,a,1,n,0);bi(n),t.masksTree=n,t.flatCache=Cp(1e3)}function e6(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=vb(e,t.masksTree);return t.flatCache.set(e,r),r}function t6(e,t,n,r,a){e||="/",r||="/";const i=t?`case\0${e}`:e;let c=a.singleCache.get(i);if(!c){c=ed("/");const u=new Uint16Array(6);bm(t,u,{from:e},1,c,0),a.singleCache.set(i,c)}return vb(r,c,n)}function n6(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,a=t.matchCache.get(r);if(a!==void 0)return a;e||="/";const i=vb(e,t.segmentTree,n);return i&&(i.branch=s6(i.route)),t.matchCache.set(r,i),i}function r6(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function o6(e,t=!1,n){const r=ed(e.fullPath),a=new Uint16Array(6),i={},c={};let u=0;return bm(t,a,e,1,r,0,f=>{if(n?.(f,u),Ma(!(f.id in i),`Duplicate routes found with id: ${String(f.id)}`),i[f.id]=f,u!==0&&f.path){const m=r6(f.fullPath);(!c[m]||f.fullPath.endsWith("/"))&&(c[m]=f)}u++}),bi(r),{processedTree:{segmentTree:r,singleCache:Cp(1e3),matchCache:Cp(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:c}}function vb(e,t,n=!1){const r=e.split("/"),a=c6(e,r,t,n);if(!a)return null;const i=a6(e,r,a),c="**"in a;return c&&(i["**"]=a["**"]),{route:c?a.node.notFound??a.node.route:a.node.route,params:i}}function a6(e,t,n){const r=i6(n.node);let a=null;const i={};for(let c=0,u=0,d=0;u<r.length;c++,u++,d++){const f=r[u],m=t[c],p=d;if(m&&(d+=m.length),f.kind===ki){a??=n.node.fullPath.split("/");const g=a[u],y=f.prefix?.length??0;if(g.charCodeAt(y)===123){const w=f.suffix?.length??0,S=g.substring(y+2,g.length-w-1),x=m.substring(y,m.length-w);i[S]=decodeURIComponent(x)}else{const w=g.substring(1);i[w]=decodeURIComponent(m)}}else if(f.kind===Ju){if(n.skipped&1<<u){c--;continue}a??=n.node.fullPath.split("/");const g=a[u],y=f.prefix?.length??0,b=f.suffix?.length??0,w=g.substring(y+3,g.length-b-1),S=f.suffix||f.prefix?m.substring(y,m.length-b):m;S&&(i[w]=decodeURIComponent(S))}else if(f.kind===Ni){const g=f,y=e.substring(p+(g.prefix?.length??0),e.length-(g.suffix?.length??0)),b=decodeURIComponent(y);i["*"]=b,i._splat=b;break}}return i}function s6(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function i6(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function c6(e,t,n,r){const a=!Tp(t),i=a&&e!=="/",c=t.length-(a?1:0),u=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let d=null,f=null,m=null;for(;u.length;){const p=u.pop();let{node:g,index:y,skipped:b,depth:w,statics:S,dynamics:x,optionals:E}=p;r&&g.notFound&&Qf(f,p)&&(f=p);const T=y===c;if(T){if(g.route&&(!i||g.isIndex)&&(Qf(m,p)&&(m=p),S===c&&g.isIndex))return m;if(!g.optional&&!g.wildcard)continue}const C=T?void 0:t[y];let O;if(g.wildcard&&Qf(d,p))for(const I of g.wildcard){const{prefix:M,suffix:D}=I;if(!(M&&(T||!(I.caseSensitive?C:O??=C.toLowerCase()).startsWith(M)))){if(D){if(T)continue;const z=t.slice(y).join("/").slice(-D.length);if((I.caseSensitive?z:z.toLowerCase())!==D)continue}d={node:I,index:y,skipped:b,depth:w,statics:S,dynamics:x,optionals:E};break}}if(g.optional){const I=b|1<<w,M=w+1;for(let D=g.optional.length-1;D>=0;D--){const z=g.optional[D];u.push({node:z,index:y,skipped:I,depth:M,statics:S,dynamics:x,optionals:E})}if(!T)for(let D=g.optional.length-1;D>=0;D--){const z=g.optional[D],{prefix:Q,suffix:V}=z;if(Q||V){const Z=z.caseSensitive?C:O??=C.toLowerCase();if(Q&&!Z.startsWith(Q)||V&&!Z.endsWith(V))continue}u.push({node:z,index:y+1,skipped:b,depth:M,statics:S,dynamics:x,optionals:E+1})}}if(!T&&g.dynamic&&C)for(let I=g.dynamic.length-1;I>=0;I--){const M=g.dynamic[I],{prefix:D,suffix:z}=M;if(D||z){const Q=M.caseSensitive?C:O??=C.toLowerCase();if(D&&!Q.startsWith(D)||z&&!Q.endsWith(z))continue}u.push({node:M,index:y+1,skipped:b,depth:w+1,statics:S,dynamics:x+1,optionals:E})}if(!T&&g.staticInsensitive){const I=g.staticInsensitive.get(O??=C.toLowerCase());I&&u.push({node:I,index:y+1,skipped:b,depth:w+1,statics:S+1,dynamics:x,optionals:E})}if(!T&&g.static){const I=g.static.get(C);I&&u.push({node:I,index:y+1,skipped:b,depth:w+1,statics:S+1,dynamics:x,optionals:E})}}if(m&&d)return Qf(d,m)?m:d;if(m)return m;if(d)return d;if(r&&f){let p=f.index;for(let y=0;y<f.index;y++)p+=t[y].length;const g=p===e.length?"/":e.slice(p);return{node:f.node,skipped:f.skipped,"**":decodeURIComponent(g)}}return null}function Qf(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function up(e){return yb(e.filter(t=>t!==void 0).join("/"))}function yb(e){return e.replace(/\/{2,}/g,"/")}function aA(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Ci(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function dp(e){return Ci(aA(e))}function Ap(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function l6(e,t,n){return Ap(e,n)===Ap(t,n)}function u6({base:e,to:t,trailingSlash:n="never",cache:r}){const a=t.startsWith("/"),i=!a&&t===".";let c;if(r){c=a?t:i?e:e+"\0"+t;const p=r.get(c);if(p)return p}let u;if(i)u=e.split("/");else if(a)u=t.split("/");else{for(u=e.split("/");u.length>1&&Tp(u)==="";)u.pop();const p=t.split("/");for(let g=0,y=p.length;g<y;g++){const b=p[g];b===""?g?g===y-1&&u.push(b):u=[b]:b===".."?u.pop():b==="."||u.push(b)}}u.length>1&&(Tp(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));let d,f="";for(let p=0;p<u.length;p++){p>0&&(f+="/");const g=u[p];if(!g)continue;d=gb(g,0,d);const y=d[0];if(y===cl){f+=g;continue}const b=d[5],w=g.substring(0,d[1]),S=g.substring(d[4],b),x=g.substring(d[2],d[3]);y===ki?f+=w||S?`${w}{$${x}}${S}`:`$${x}`:y===Ni?f+=w||S?`${w}{$}${S}`:"$":f+=`${w}{-$${x}}${S}`}f=yb(f);const m=f||"/";return c&&r&&r.set(c,m),m}function Iy(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?encodeURI(r):d6(r,n)}function ky({path:e,params:t,decodeCharMap:n}){let r=!1;const a={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:a,isMissingParams:r};if(!e.includes("$"))return{interpolatedPath:e,usedParams:a,isMissingParams:r};const i=e.length;let c=0,u,d="";for(;c<i;){const m=c;u=gb(e,m,u);const p=u[5];if(c=p+1,m===p)continue;const g=u[0];if(g===cl){d+="/"+e.substring(m,p);continue}if(g===Ni){const y=t._splat;a._splat=y,a["*"]=y;const b=e.substring(m,u[1]),w=e.substring(u[4],p);if(!y){r=!0,(b||w)&&(d+="/"+b+w);continue}const S=Iy("_splat",t,n);d+="/"+b+S+w;continue}if(g===ki){const y=e.substring(u[2],u[3]);!r&&!(y in t)&&(r=!0),a[y]=t[y];const b=e.substring(m,u[1]),w=e.substring(u[4],p),S=Iy(y,t,n)??"undefined";d+="/"+b+S+w;continue}if(g===Ju){const y=e.substring(u[2],u[3]),b=t[y];if(b==null)continue;a[y]=b;const w=e.substring(m,u[1]),S=e.substring(u[4],p),x=Iy(y,t,n)??"";d+="/"+w+x+S;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:a,interpolatedPath:d||"/",isMissingParams:r}}function d6(e,t){let n=encodeURIComponent(e);if(t)for(const[r,a]of t)n=n.replaceAll(r,a);return n}function ho(e){return!!e?.isNotFound}function f6(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ip="tsr-scroll-restoration-v1_3",h6=(e,t)=>{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function p6(){const e=f6();if(!e)return null;const t=e.getItem(Ip);let n=t?JSON.parse(t):{};return{state:n,set:r=>(n=Ti(r,n)||n,e.setItem(Ip,JSON.stringify(n)))}}const Xf=p6(),t_=e=>e.state.__TSR_key||e.href;function m6(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let kp=!1;function sA({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:a,location:i}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(f){console.error(f);return}const u=t||window.history.state?.__TSR_key,d=c[u];kp=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const p in d){const g=d[p];if(p==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:n});else if(p){const y=document.querySelector(p);y&&(y.scrollLeft=g.scrollX,y.scrollTop=g.scrollY)}}break e}const f=(i??window.location).hash.split("#",2)[1];if(f){const p=window.history.state?.__hashScrollIntoViewOptions??!0;if(p){const g=document.getElementById(f);g&&g.scrollIntoView(p)}break e}const m={top:0,left:0,behavior:n};if(window.scrollTo(m),a)for(const p of a){if(p==="window")continue;const g=typeof p=="function"?p():document.querySelector(p);g&&g.scrollTo(m)}}kp=!1}function g6(e,t){if(!Xf&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!Xf))return;e.isScrollRestorationSetup=!0,kp=!1;const r=e.options.getScrollRestorationKey||t_;window.history.scrollRestoration="manual";const a=i=>{if(kp||!e.isScrollRestoring)return;let c="";if(i.target===document||i.target===window)c="window";else{const d=i.target.getAttribute("data-scroll-restoration-id");d?c=`[data-scroll-restoration-id="${d}"]`:c=m6(i.target)}const u=r(e.state.location);Xf.set(d=>{const f=d[u]||={},m=f[c]||={};if(c==="window")m.scrollX=window.scrollX||0,m.scrollY=window.scrollY||0;else if(c){const p=document.querySelector(c);p&&(m.scrollX=p.scrollLeft||0,m.scrollY=p.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",h6(a,100),!0),e.subscribe("onRendered",i=>{const c=r(i.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(sA({storageKey:Ip,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Xf.set(u=>(u[c]||={},u)))})}function v6(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function y6(e,t=String){const n=new URLSearchParams;for(const r in e){const a=e[r];a!==void 0&&n.set(r,t(a))}return n.toString()}function Ny(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function _6(e){const t=new URLSearchParams(e),n={};for(const[r,a]of t.entries()){const i=n[r];i==null?n[r]=Ny(a):Array.isArray(i)?i.push(Ny(a)):n[r]=[i,Ny(a)]}return n}const b6=w6(JSON.parse),S6=E6(JSON.stringify,JSON.parse);function w6(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=_6(t);for(const r in n){const a=n[r];if(typeof a=="string")try{n[r]=e(a)}catch{}}return n}}function E6(e,t){const n=typeof t=="function";function r(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(n&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const i=y6(a,r);return i?`?${i}`:""}}const Fr="__root__";function ll(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Do(e){return e instanceof Response&&!!e.options}const fp=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Sm=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),iA=(e,t)=>{const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Ma(n.options.notFoundComponent);const r=e.matches.find(a=>a.routeId===n.id);Ma(r,"Could not find match for route: "+n.id),e.updateMatch(r.id,a=>({...a,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,iA(e,t))},xs=(e,t,n)=>{if(!(!Do(n)&&!ho(n))){if(Do(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const r=Do(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,a=>({...a,status:r,isFetching:!1,error:n})),ho(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw Do(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(iA(e,n),n)}},cA=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},yu=(e,t,n,r)=>{const{id:a,routeId:i}=e.matches[t],c=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,xs(e,e.router.getMatch(a),n);try{c.options.onError?.(n)}catch(u){n=u,xs(e,e.router.getMatch(a),n)}e.updateMatch(a,u=>(u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loadPromise?.resolve(),{...u,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},R6=(e,t,n,r)=>{const a=e.router.getMatch(t),i=e.matches[n-1]?.id,c=i?e.router.getMatch(i):void 0;if(e.router.isShell()){a.ssr=r.id===Fr;return}if(c?.ssr===!1){a.ssr=!1;return}const u=y=>y===!0&&c?.ssr==="data-only"?"data-only":y,d=e.router.options.defaultSsr??!0;if(r.options.ssr===void 0){a.ssr=u(d);return}if(typeof r.options.ssr!="function"){a.ssr=u(r.options.ssr);return}const{search:f,params:m}=a,p={search:Jf(f,a.searchError),params:Jf(m,a.paramsError),location:e.location,matches:e.matches.map(y=>({index:y.index,pathname:y.pathname,fullPath:y.fullPath,staticData:y.staticData,id:y.id,routeId:y.routeId,search:Jf(y.search,y.searchError),params:Jf(y.params,y.paramsError),ssr:y.ssr}))},g=r.options.ssr(p);if(As(g))return g.then(y=>{a.ssr=u(y??d)});a.ssr=u(g??d)},lA=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!Sm(e,t)&&(n.options.loader||n.options.beforeLoad||fA(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{fp(e)},a);r._nonReactive.pendingTimeout=c}},x6=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;lA(e,t,n,r);const a=()=>{const i=e.router.getMatch(t);i.preload&&(i.status==="redirected"||i.status==="notFound")&&xs(e,i,i.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(a):a()},T6=(e,t,n,r)=>{const a=e.router.getMatch(t),i=a._nonReactive.loadPromise;a._nonReactive.loadPromise=il(()=>{i?.resolve()});const{paramsError:c,searchError:u}=a;c&&yu(e,n,c,"PARSE_PARAMS"),u&&yu(e,n,u,"VALIDATE_SEARCH"),lA(e,t,r,a);const d=new AbortController,f=e.matches[n-1]?.id,g={...(f?e.router.getMatch(f):void 0)?.context??e.router.options.context??void 0,...a.__routeContext};let y=!1;const b=()=>{y||(y=!0,e.updateMatch(t,M=>({...M,isFetching:"beforeLoad",fetchCount:M.fetchCount+1,abortController:d,context:g})))},w=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,M=>({...M,isFetching:!1}))};if(!r.options.beforeLoad){Vu(()=>{b(),w()});return}a._nonReactive.beforeLoadPromise=il();const{search:S,params:x,cause:E}=a,T=Sm(e,t),C={search:S,abortController:d,params:x,preload:T,context:g,location:e.location,navigate:M=>e.router.navigate({...M,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:T?"preload":E,matches:e.matches,...e.router.options.additionalContext},O=M=>{if(M===void 0){Vu(()=>{b(),w()});return}(Do(M)||ho(M))&&(b(),yu(e,n,M,"BEFORE_LOAD")),Vu(()=>{b(),e.updateMatch(t,D=>({...D,__beforeLoadContext:M,context:{...D.context,...M}})),w()})};let I;try{if(I=r.options.beforeLoad(C),As(I))return b(),I.catch(M=>{yu(e,n,M,"BEFORE_LOAD")}).then(O)}catch(M){b(),yu(e,n,M,"BEFORE_LOAD")}O(I)},O6=(e,t)=>{const{id:n,routeId:r}=e.matches[t],a=e.router.looseRoutesById[r],i=()=>{if(e.router.isServer){const d=R6(e,n,t,a);if(As(d))return d.then(u)}return u()},c=()=>T6(e,n,t,a),u=()=>{if(cA(e,n))return;const d=x6(e,n,a);return As(d)?d.then(c):c()};return i()},Fu=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(a),n.options.scripts?.(a),n.options.headers?.(a)]).then(([i,c,u])=>{const d=i?.meta,f=i?.links,m=i?.scripts,p=i?.styles;return{meta:d,links:f,headScripts:m,headers:u,scripts:c,styles:p}})},uA=(e,t,n,r)=>{const a=e.matchPromises[n-1],{params:i,loaderDeps:c,abortController:u,cause:d}=e.router.getMatch(t);let f=e.router.options.context??{};for(let p=0;p<=n;p++){const g=e.matches[p];if(!g)continue;const y=e.router.getMatch(g.id);y&&(f={...f,...y.__routeContext??{},...y.__beforeLoadContext??{}})}const m=Sm(e,t);return{params:i,deps:c,preload:!!m,parentMatchPromise:a,abortController:u,context:f,location:e.location,navigate:p=>e.router.navigate({...p,_fromLocation:e.location}),cause:m?"preload":d,route:r,...e.router.options.additionalContext}},Ex=async(e,t,n,r)=>{try{const a=e.router.getMatch(t);try{(!e.router.isServer||a.ssr===!0)&&dA(r);const i=r.options.loader?.(uA(e,t,n,r)),c=r.options.loader&&As(i);if((c||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(t,p=>({...p,isFetching:"loader"})),r.options.loader){const p=c?await i:i;xs(e,e.router.getMatch(t),p),p!==void 0&&e.updateMatch(t,g=>({...g,loaderData:p}))}r._lazyPromise&&await r._lazyPromise;const d=Fu(e,t,r),f=d?await d:void 0,m=a._nonReactive.minPendingPromise;m&&await m,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,p=>({...p,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...f}))}catch(i){let c=i;const u=a._nonReactive.minPendingPromise;u&&await u,ho(i)&&await r.options.notFoundComponent?.preload?.(),xs(e,e.router.getMatch(t),i);try{r.options.onError?.(i)}catch(m){c=m,xs(e,e.router.getMatch(t),m)}const d=Fu(e,t,r),f=d?await d:void 0;e.updateMatch(t,m=>({...m,error:c,status:"error",isFetching:!1,...f}))}}catch(a){const i=e.router.getMatch(t);if(i){const c=Fu(e,t,r);if(c){const u=await c;e.updateMatch(t,d=>({...d,...u}))}i._nonReactive.loaderPromise=void 0}xs(e,i,a)}},C6=async(e,t)=>{const{id:n,routeId:r}=e.matches[t];let a=!1,i=!1;const c=e.router.looseRoutesById[r];if(cA(e,n)){if(e.router.isServer){const f=Fu(e,n,c);if(f){const m=await f;e.updateMatch(n,p=>({...p,...m}))}return e.router.getMatch(n)}}else{const f=e.router.getMatch(n);if(f._nonReactive.loaderPromise){if(f.status==="success"&&!e.sync&&!f.preload)return f;await f._nonReactive.loaderPromise;const m=e.router.getMatch(n),p=m._nonReactive.error||m.error;p&&xs(e,m,p)}else{const m=Date.now()-f.updatedAt,p=Sm(e,n),g=p?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,y=c.options.shouldReload,b=typeof y=="function"?y(uA(e,n,t,c)):y,w=!!p&&!e.router.state.matches.some(T=>T.id===n),S=e.router.getMatch(n);S._nonReactive.loaderPromise=il(),w!==S.preload&&e.updateMatch(n,T=>({...T,preload:w}));const{status:x,invalid:E}=S;if(a=x==="success"&&(E||(b??m>g)),!(p&&c.options.preload===!1))if(a&&!e.sync)i=!0,(async()=>{try{await Ex(e,n,t,c);const T=e.router.getMatch(n);T._nonReactive.loaderPromise?.resolve(),T._nonReactive.loadPromise?.resolve(),T._nonReactive.loaderPromise=void 0}catch(T){Do(T)&&await e.router.navigate(T.options)}})();else if(x!=="success"||a&&e.sync)await Ex(e,n,t,c);else{const T=Fu(e,n,c);if(T){const C=await T;e.updateMatch(n,O=>({...O,...C}))}}}}const u=e.router.getMatch(n);i||(u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loadPromise?.resolve()),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,i||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;const d=i?u.isFetching:!1;return d!==u.isFetching||u.invalid!==!1?(e.updateMatch(n,f=>({...f,isFetching:d,invalid:!1})),e.router.getMatch(n)):u};async function Rx(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&fp(t);try{for(let a=0;a<t.matches.length;a++){const i=O6(t,a);As(i)&&await i}const n=t.firstBadMatchIndex??t.matches.length;for(let a=0;a<n;a++)t.matchPromises.push(C6(t,a));await Promise.all(t.matchPromises);const r=fp(t);As(r)&&await r}catch(n){if(ho(n)&&!t.preload){const r=fp(t);throw As(r)&&await r,n}if(Do(n))throw n}return t.matches}async function dA(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of hA){const a=e.options[r]?.preload;a&&n.push(a())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Jf(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function fA(e){for(const t of hA)if(e.options[t]?.preload)return!0;return!1}const hA=["component","errorComponent","pendingComponent","notFoundComponent"];function A6(e){return{input:({url:t})=>{for(const n of e)t=pA(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=mA(e[n],t);return t}}}function I6(e){const t=dp(e.basepath),n=`/${t}`,r=`${n}/`,a=e.caseSensitive?n:n.toLowerCase(),i=e.caseSensitive?r:r.toLowerCase();return{input:({url:c})=>{const u=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return u===a?c.pathname="/":u.startsWith(i)&&(c.pathname=c.pathname.slice(n.length)),c},output:({url:c})=>(c.pathname=up(["/",t,c.pathname]),c)}}function pA(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function mA(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Ai(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,a=t?.href!==n.href,i=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:a,hashChanged:i}}class k6{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,a=this.basepath??r?.basepath??"/",i=this.basepath===void 0,c=r?.rewrite;this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(g=>[encodeURIComponent(g),g])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=HD())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new e_(M6(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(g=>!["redirected"].includes(g.status))}}}),g6(this));let u=!1;const d=this.options.basepath??"/",f=this.options.rewrite;if(i||a!==d||c!==f){this.basepath=d;const g=[];dp(d)!==""&&g.push(I6({basepath:d})),f&&g.push(f),this.rewrite=g.length===0?void 0:g.length===1?g[0]:A6(g),this.history&&this.updateLatestLocation(),u=!0}u&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:r,processedTree:a}=o6(this.routeTree,this.options.caseSensitive,(c,u)=>{c.init({originalIndex:u})});this.options.routeMasks&&JD(this.options.routeMasks,a),this.routesById=n,this.routesByPath=r,this.processedTree=a;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)},this.subscribe=(n,r)=>{const a={eventType:n,fn:r};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const a=({href:d,state:f})=>{const m=new URL(d,this.origin),p=pA(this.rewrite,m),g=this.options.parseSearch(p.search),y=this.options.stringifySearch(g);p.search=y;const b=p.href.replace(p.origin,""),{pathname:w,hash:S}=p;return{href:b,publicHref:d,url:p.href,pathname:wx(w),searchStr:y,search:lo(r?.search,g),hash:S.split("#").reverse()[0]??"",state:lo(r?.state,f)}},i=a(n),{__tempLocation:c,__tempKey:u}=i.state;if(c&&(!u||u===this.tempLocationKey)){const d=a(c);return d.state.key=i.state.key,d.state.__TSR_key=i.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:i}}return i},this.resolvePathCache=Cp(1e3),this.resolvePathWithBase=(n,r)=>u6({base:n,to:yb(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},a):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>P6({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(i=>i.status==="pending"),r=this.state.matches.filter(i=>i.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(i=>{this.cancelMatch(i.id)})},this.buildLocation=n=>{const r=(i={})=>{const c=i._fromLocation||this.pendingBuiltLocation||this.latestLocation,u=this.matchRoutes(c,{_buildLocation:!0}),d=Tp(u);i.from;const f=i.unsafeRelative==="path"?c.pathname:i.from??d.fullPath,m=this.resolvePathWithBase(f,"."),p=d.search,g={...d.params},y=i.to?this.resolvePathWithBase(m,`${i.to}`):this.resolvePathWithBase(m,"."),b=i.params===!1||i.params===null?{}:(i.params??!0)===!0?g:Object.assign(g,Ti(i.params,g)),w=ky({path:y,params:b}).interpolatedPath,S=this.matchRoutes(w,void 0,{_buildLocation:!0}).map(Q=>this.looseRoutesById[Q.routeId]);if(Object.keys(b).length>0)for(const Q of S){const V=Q.options.params?.stringify??Q.options.stringifyParams;V&&Object.assign(b,V(b))}const x=n.leaveParams?y:wx(ky({path:y,params:b,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let E=p;if(n._includeValidateSearch&&this.options.search?.strict){const Q={};S.forEach(V=>{if(V.options.validateSearch)try{Object.assign(Q,n_(V.options.validateSearch,{...Q,...E}))}catch{}}),E=Q}E=D6({search:E,dest:i,destRoutes:S,_includeValidateSearch:n._includeValidateSearch}),E=lo(p,E);const T=this.options.stringifySearch(E),C=i.hash===!0?c.hash:i.hash?Ti(i.hash,c.hash):void 0,O=C?`#${C}`:"";let I=i.state===!0?c.state:i.state?Ti(i.state,c.state):{};I=lo(c.state,I);const M=`${x}${T}${O}`,D=new URL(M,this.origin),z=mA(this.rewrite,D);return{publicHref:z.pathname+z.search+z.hash,href:M,url:z.href,pathname:x,search:E,searchStr:T,state:I,hash:C??"",unmaskOnReload:i.unmaskOnReload}},a=(i={},c)=>{const u=r(i);let d=c?r(c):void 0;if(!d){const f={};if(this.options.routeMasks){const m=e6(u.pathname,this.processedTree);if(m){Object.assign(f,m.params);const{from:p,...g}=m.route;c={from:n.from,...g,params:f},d=r(c)}}}return d&&(u.maskedLocation=d),u};return n.mask?a(n,{from:n.from,...n.mask}):a(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...a})=>{const i=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(m=>{a.state[m]=this.latestLocation.state[m]});const f=Oi(a.state,this.latestLocation.state);return d.forEach(m=>{delete a.state[m]}),f},c=Ci(this.latestLocation.href)===Ci(a.href),u=this.commitLocationPromise;if(this.commitLocationPromise=il(()=>{u?.resolve()}),c&&i())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...m}=a;d&&(m={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[a.replace?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:r})}return this.resetNextScroll=a.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:a,viewTransition:i,ignoreBlocker:c,href:u,...d}={})=>{if(u){const p=this.history.location.state.__TSR_index,g=xp(u,{__TSR_index:n?p:p+1});d.to=g.pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const f=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const m=this.commitLocation({...f,viewTransition:i,replace:n,resetScroll:r,hashScrollIntoView:a,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),m},this.navigate=async({to:n,reloadDocument:r,href:a,...i})=>{if(!r&&a)try{new URL(`${a}`),r=!0}catch{}if(r){if(a||(a=this.buildLocation({to:n,...i}).url),!i.ignoreBlocker){const u=this.history.getBlockers?.()??[];for(const d of u)if(d?.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(a):window.location.href=a,Promise.resolve()}return this.buildAndCommitLocation({...i,href:a,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),a=i=>{try{return encodeURI(decodeURI(i))}catch{return i}};if(dp(a(this.latestLocation.href))!==dp(a(r.href))){let i=r.url;throw this.origin&&i.startsWith(this.origin)&&(i=i.replace(this.origin,"")||"/"),ll({href:i})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(a=>!n.some(i=>i.id===a.id))}))},this.load=async n=>{let r,a,i;for(i=new Promise(u=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,f=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ai({resolvedLocation:f,location:d})}),this.emit({type:"onBeforeLoad",...Ai({resolvedLocation:f,location:d})}),await Rx({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let m=[],p=[],g=[];Vu(()=>{this.__store.setState(y=>{const b=y.matches,w=y.pendingMatches||y.matches;return m=b.filter(S=>!w.some(x=>x.id===S.id)),p=w.filter(S=>!b.some(x=>x.id===S.id)),g=w.filter(S=>b.some(x=>x.id===S.id)),{...y,isLoading:!1,loadedAt:Date.now(),matches:w,pendingMatches:void 0,cachedMatches:[...y.cachedMatches,...m.filter(S=>S.status!=="error"&&S.status!=="notFound")]}}),this.clearExpiredCache()}),[[m,"onLeave"],[p,"onEnter"],[g,"onStay"]].forEach(([y,b])=>{y.forEach(w=>{this.looseRoutesById[w.routeId].options[b]?.(w)})})})})}})}catch(d){Do(d)?(r=d,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ho(d)&&(a=d),this.__store.setState(f=>({...f,statusCode:r?r.status:a?404:f.matches.some(m=>m.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),u()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.__store.state.matches.some(u=>u.status==="error")&&(c=500),c!==void 0&&this.__store.setState(u=>({...u,statusCode:c}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,c=this.state.resolvedLocation,u=typeof r.types=="function"?r.types(Ai({resolvedLocation:c,location:i})):r.types;if(u===!1){n();return}a={update:n,types:u}}else a=n;document.startViewTransition(a)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const a=this.state.pendingMatches?.some(i=>i.id===n)?"pendingMatches":this.state.matches.some(i=>i.id===n)?"matches":this.state.cachedMatches.some(i=>i.id===n)?"cachedMatches":"";a&&this.__store.setState(i=>({...i,[a]:i[a]?.map(c=>c.id===n?r(c):c)}))})},this.getMatch=n=>{const r=a=>a.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=a=>n?.filter?.(a)??!0?{...a,invalid:!0,...n?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.__store.setState(a=>({...a,matches:a.matches.map(r),cachedMatches:a.cachedMatches.map(r),pendingMatches:a.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{if(!n.options.href){const r=this.buildLocation(n.options);let a=r.url;this.origin&&a.startsWith(this.origin)&&(a=a.replace(this.origin,"")||"/"),n.options.href=r.href,n.headers.set("Location",a)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(a=>({...a,cachedMatches:a.cachedMatches.filter(i=>!r(i))})):this.__store.setState(a=>({...a,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const a=this.looseRoutesById[r.routeId];if(!a.options.loader)return!0;const i=(r.preload?a.options.preloadGcTime??this.options.defaultPreloadGcTime:a.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=i};this.clearCache({filter:n})},this.loadRouteChunk=dA,this.preloadRoute=async n=>{const r=this.buildLocation(n);let a=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const i=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(u=>u.id)),c=new Set([...i,...this.state.cachedMatches.map(u=>u.id)]);Vu(()=>{a.forEach(u=>{c.has(u.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,u]}))})});try{return a=await Rx({router:this,matches:a,location:r,preload:!0,updateMatch:(u,d)=>{i.has(u)?a=a.map(f=>f.id===u?d(f):f):this.updateMatch(u,d)}}),a}catch(u){if(Do(u))return u.options.reloadDocument?void 0:await this.preloadRoute({...u.options,_fromLocation:r});ho(u)||console.error(u);return}},this.matchRoute=(n,r)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(a);if(r?.pending&&this.state.status!=="pending")return!1;const u=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=t6(i.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,u.pathname,this.processedTree);return!d||n.params&&!Oi(d.params,n.params,{partial:!0})?!1:r?.includeSearch??!0?Oi(u.search,i.search,{partial:!0})?d.params:!1:d.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??S6,parseSearch:t.parseSearch??b6}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:a,routeParams:i}=r;let{matchedRoutes:c}=r,u=!1;(a?a.path!=="/"&&i["**"]:Ci(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const d=(()=>{if(u){if(this.options.notFoundMode!=="root")for(let p=c.length-1;p>=0;p--){const g=c[p];if(g.children)return g.id}return Fr}})(),f=[],m=p=>p?.id?p.context??this.options.context??void 0:this.options.context??void 0;return c.forEach((p,g)=>{const y=f[g-1],[b,w,S]=(()=>{const U=y?.search??t.search,ee=y?._strictSearch??void 0;try{const ie=n_(p.options.validateSearch,{...U})??void 0;return[{...U,...ie},{...ee,...ie},void 0]}catch(ie){let F=ie;if(ie instanceof Np||(F=new Np(ie.message,{cause:ie})),n?.throwOnError)throw F;return[U,{},F]}})(),x=p.options.loaderDeps?.({search:b})??"",E=x?JSON.stringify(x):"",{interpolatedPath:T,usedParams:C}=ky({path:p.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),O=p.id+T+E,I=this.getMatch(O),M=this.state.matches.find(U=>U.routeId===p.id),D=I?._strictParams??C;let z;if(!I){const U=p.options.params?.parse??p.options.parseParams;if(U)try{Object.assign(D,U(D))}catch(ee){if(ho(ee)||Do(ee)?z=ee:z=new N6(ee.message,{cause:ee}),n?.throwOnError)throw z}}Object.assign(i,D);const Q=M?"stay":"enter";let V;if(I)V={...I,cause:Q,params:M?lo(M.params,i):i,_strictParams:D,search:lo(M?M.search:I.search,b),_strictSearch:w};else{const U=p.options.loader||p.options.beforeLoad||p.lazyFn||fA(p)?"pending":"success";V={id:O,ssr:this.isServer?void 0:p.options.ssr,index:g,routeId:p.id,params:M?lo(M.params,i):i,_strictParams:D,pathname:T,updatedAt:Date.now(),search:M?lo(M.search,b):b,_strictSearch:w,searchError:void 0,status:U,isFetching:!1,error:void 0,paramsError:z,__routeContext:void 0,_nonReactive:{loadPromise:il()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:Q,loaderDeps:M?lo(M.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n?.preload||(V.globalNotFound=d===p.id),V.searchError=S;const Z=m(y);V.context={...Z,...V.__routeContext,...V.__beforeLoadContext},f.push(V)}),f.forEach((p,g)=>{const y=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&n?._buildLocation!==!0){const w=f[g-1],S=m(w);if(y.options.context){const x={deps:p.loaderDeps,params:p.params,context:S??{},location:t,navigate:E=>this.navigate({...E,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:f};p.__routeContext=y.options.context(x)??void 0}p.context={...S,...p.__routeContext,...p.__beforeLoadContext}}}),f}}class Np extends Error{}class N6 extends Error{}function M6(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function n_(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Np("Async validation not supported");if(n.issues)throw new Np(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function P6({pathname:e,routesById:t,processedTree:n}){const r={},a=Ci(e);let i;const c=n6(a,n,!0);return c&&(i=c.route,Object.assign(r,c.params)),{matchedRoutes:c?.branch||[t[Fr]],routeParams:r,foundRoute:i}}function D6({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){const a=n.reduce((u,d)=>{const f=[];if("search"in d.options)d.options.search?.middlewares&&f.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const m=({search:p,next:g})=>{let y=p;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(y=d.options.preSearchFilters.reduce((w,S)=>S(w),p));const b=g(y);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((w,S)=>S(w),b):b};f.push(m)}if(r&&d.options.validateSearch){const m=({search:p,next:g})=>{const y=g(p);try{return{...y,...n_(d.options.validateSearch,y)??void 0}}catch{return y}};f.push(m)}return u.concat(f)},[])??[],i=({search:u})=>t.search?t.search===!0?u:Ti(t.search,u):{};a.push(i);const c=(u,d)=>{if(u>=a.length)return d;const f=a[u];return f({search:d,next:p=>c(u+1,p)})};return c(0,e)}const L6="Error preloading route! ☝️";class gA{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,a=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=Fr:this.parentRoute||Ma(!1);let i=a?Fr:r?.path;i&&i!=="/"&&(i=aA(i));const c=r?.id||i;let u=a?Fr:up([this.parentRoute.id===Fr?"":this.parentRoute.id,c]);i===Fr&&(i="/"),u!==Fr&&(u=up(["/",u]));const d=u===Fr?"/":up([this.parentRoute.fullPath,i]);this._path=i,this._id=u,this._fullPath=d,this._to=d},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class j6 extends gA{constructor(t){super(t)}}function _b(e){const t=e.errorComponent??wm;return R.jsx($6,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?A.createElement(t,{error:n,reset:r}):e.children})}class $6 extends A.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function wm({error:e}){const[t,n]=A.useState(!1);return R.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[R.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),R.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),R.jsx("div",{style:{height:".25rem"}}),t?R.jsx("div",{children:R.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?R.jsx("code",{children:e.message}):null})}):null]})}function U6({children:e,fallback:t=null}){return z6()?R.jsx(le.Fragment,{children:e}):R.jsx(le.Fragment,{children:t})}function z6(){return le.useSyncExternalStore(V6,()=>!0,()=>!1)}function V6(){return()=>{}}var My={exports:{}},Py={},Dy={exports:{}},Ly={};var xx;function F6(){if(xx)return Ly;xx=1;var e=Us();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,c=e.useDebugValue;function u(p,g){var y=g(),b=r({inst:{value:y,getSnapshot:g}}),w=b[0].inst,S=b[1];return i(function(){w.value=y,w.getSnapshot=g,d(w)&&S({inst:w})},[p,y,g]),a(function(){return d(w)&&S({inst:w}),p(function(){d(w)&&S({inst:w})})},[p]),c(y),y}function d(p){var g=p.getSnapshot;p=p.value;try{var y=g();return!n(p,y)}catch{return!0}}function f(p,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Ly.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Ly}var Tx;function vA(){return Tx||(Tx=1,Dy.exports=F6()),Dy.exports}var Ox;function B6(){if(Ox)return Py;Ox=1;var e=Us(),t=vA();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,i=e.useRef,c=e.useEffect,u=e.useMemo,d=e.useDebugValue;return Py.useSyncExternalStoreWithSelector=function(f,m,p,g,y){var b=i(null);if(b.current===null){var w={hasValue:!1,value:null};b.current=w}else w=b.current;b=u(function(){function x(I){if(!E){if(E=!0,T=I,I=g(I),y!==void 0&&w.hasValue){var M=w.value;if(y(M,I))return C=M}return C=I}if(M=C,r(T,I))return M;var D=g(I);return y!==void 0&&y(M,D)?(T=I,M):(T=I,C=D)}var E=!1,T,C,O=p===void 0?null:p;return[function(){return x(m())},O===null?void 0:function(){return x(O())}]},[m,p,g,y]);var S=a(f,b[0],b[1]);return c(function(){w.hasValue=!0,w.value=S},[S]),d(S),S},Py}var Cx;function q6(){return Cx||(Cx=1,My.exports=B6()),My.exports}var yA=q6();const Uoe=ja(yA);function H6(e,t=r=>r,n={}){const r=n.equal??G6;return yA.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,r)}function G6(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,a]of e)if(!t.has(r)||!Object.is(a,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=Ax(e);if(n.length!==Ax(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function Ax(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const jy=A.createContext(null);function _A(){return typeof document>"u"?jy:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=jy,jy)}function Ir(e){const t=A.useContext(_A());return e?.warn,t}function fr(e){const t=Ir({warn:e?.router===void 0}),n=e?.router||t,r=A.useRef(void 0);return H6(n.__store,a=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=lo(r.current,e.select(a));return r.current=i,i}return e.select(a)}return a})}const Em=A.createContext(void 0),Z6=A.createContext(void 0);function na(e){const t=A.useContext(e.from?Z6:Em);return fr({select:r=>{const a=r.matches.find(i=>e.from?e.from===i.routeId:i.id===t);if(Ma(!((e.shouldThrow??!0)&&!a),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),a!==void 0)return e.select?e.select(a):a},structuralSharing:e.structuralSharing})}function bb(e){return na({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Sb(e){const{select:t,...n}=e;return na({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function el(e){return na({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Rm(e){return na({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const ku=typeof window<"u"?A.useLayoutEffect:A.useEffect;function $y(e){const t=A.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function K6(e,t,n={},r={}){A.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([i])=>{t(i)},n);return a.observe(e.current),()=>{a.disconnect()}},[t,n,r.disabled,e])}function W6(e){const t=A.useRef(null);return A.useImperativeHandle(e,()=>t.current,[]),t}function Sl(e){const t=Ir();return A.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function zoe(e){const t=Ir(),n=Sl(),r=A.useRef(null);return ku(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var xm=BC();const bA=ja(xm);function Y6(e,t){const n=Ir(),[r,a]=A.useState(!1),i=A.useRef(!1),c=W6(t),{activeProps:u,inactiveProps:d,activeOptions:f,to:m,preload:p,preloadDelay:g,hashScrollIntoView:y,replace:b,startTransition:w,resetScroll:S,viewTransition:x,children:E,target:T,disabled:C,style:O,className:I,onClick:M,onFocus:D,onMouseEnter:z,onMouseLeave:Q,onTouchStart:V,ignoreBlocker:Z,params:U,search:ee,hash:ie,state:F,mask:J,reloadDocument:ae,unsafeRelative:fe,from:K,_fromLocation:P,...q}=e,B=fr({select:oe=>oe.location.search,structuralSharing:!0}),L=e.from,$=A.useMemo(()=>({...e,from:L}),[n,B,L,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),X=A.useMemo(()=>n.buildLocation({...$}),[n,$]),ge=A.useMemo(()=>{if(C)return;let oe=X.maskedLocation?X.maskedLocation.url:X.url,Ee=!1;return n.origin&&(oe.startsWith(n.origin)?oe=n.history.createHref(oe.replace(n.origin,""))||"/":Ee=!0),{href:oe,external:Ee}},[C,X.maskedLocation,X.url,n.origin,n.history]),_e=A.useMemo(()=>{if(ge?.external)return ge.href;try{return new URL(m),m}catch{}},[m,ge]),Ie=e.reloadDocument||_e?!1:p??n.options.defaultPreload,Ne=g??n.options.defaultPreloadDelay??0,H=fr({select:oe=>{if(_e)return!1;if(f?.exact){if(!l6(oe.location.pathname,X.pathname,n.basepath))return!1}else{const Ee=Ap(oe.location.pathname,n.basepath),Oe=Ap(X.pathname,n.basepath);if(!(Ee.startsWith(Oe)&&(Ee.length===Oe.length||Ee[Oe.length]==="/")))return!1}return(f?.includeSearch??!0)&&!Oi(oe.location.search,X.search,{partial:!f?.exact,ignoreUndefined:!f?.explicitUndefined})?!1:f?.includeHash?oe.location.hash===X.hash:!0}}),re=A.useCallback(()=>{n.preloadRoute({...$}).catch(oe=>{console.warn(oe),console.warn(L6)})},[n,$]),be=A.useCallback(oe=>{oe?.isIntersecting&&re()},[re]);K6(c,be,tL,{disabled:!!C||Ie!=="viewport"}),A.useEffect(()=>{i.current||!C&&Ie==="render"&&(re(),i.current=!0)},[C,re,Ie]);const pe=oe=>{const Ee=oe.currentTarget.getAttribute("target"),Oe=T!==void 0?T:Ee;if(!C&&!nL(oe)&&!oe.defaultPrevented&&(!Oe||Oe==="_self")&&oe.button===0){oe.preventDefault(),xm.flushSync(()=>{a(!0)});const xe=n.subscribe("onResolved",()=>{xe(),a(!1)});n.navigate({...$,replace:b,resetScroll:S,hashScrollIntoView:y,startTransition:w,viewTransition:x,ignoreBlocker:Z})}};if(_e)return{...q,ref:c,href:_e,...E&&{children:E},...T&&{target:T},...C&&{disabled:C},...O&&{style:O},...I&&{className:I},...M&&{onClick:M},...D&&{onFocus:D},...z&&{onMouseEnter:z},...Q&&{onMouseLeave:Q},...V&&{onTouchStart:V}};const ce=oe=>{C||Ie&&re()},Ce=ce,$e=oe=>{if(!(C||!Ie))if(!Ne)re();else{const Ee=oe.target;if(_u.has(Ee))return;const Oe=setTimeout(()=>{_u.delete(Ee),re()},Ne);_u.set(Ee,Oe)}},Ye=oe=>{if(C||!Ie||!Ne)return;const Ee=oe.target,Oe=_u.get(Ee);Oe&&(clearTimeout(Oe),_u.delete(Ee))},Ge=H?Ti(u,{})??Q6:Uy,Xe=H?Uy:Ti(d,{})??Uy,G=[I,Ge.className,Xe.className].filter(Boolean).join(" "),ne=(O||Ge.style||Xe.style)&&{...O,...Ge.style,...Xe.style};return{...q,...Ge,...Xe,href:ge?.href,ref:c,onClick:bu([M,pe]),onFocus:bu([D,ce]),onMouseEnter:bu([z,$e]),onMouseLeave:bu([Q,Ye]),onTouchStart:bu([V,Ce]),disabled:!!C,target:T,...ne&&{style:ne},...G&&{className:G},...C&&X6,...H&&J6,...r&&eL}}const Uy={},Q6={className:"active"},X6={role:"link","aria-disabled":!0},J6={"data-status":"active","aria-current":"page"},eL={"data-transitioning":"transitioning"},_u=new WeakMap,tL={rootMargin:"100px"},bu=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},Tm=A.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:a,ref:i,...c}=Y6(r,t),u=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;return n===void 0&&delete c.disabled,A.createElement(n||"a",{...c,ref:i},u)});function nL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}class rL extends gA{constructor(t){super(t),this.useMatch=n=>na({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Sb({...n,from:this.id}),this.useLoaderData=n=>bb({...n,from:this.id}),this.useNavigate=()=>Sl({from:this.fullPath}),this.Link=le.forwardRef((n,r)=>R.jsx(Tm,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function bt(e){return new rL(e)}class oL extends j6{constructor(t){super(t),this.useMatch=n=>na({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Sb({...n,from:this.id}),this.useLoaderData=n=>bb({...n,from:this.id}),this.useNavigate=()=>Sl({from:this.fullPath}),this.Link=le.forwardRef((n,r)=>R.jsx(Tm,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function aL(e){return new oL(e)}function Ix(e){return typeof e=="object"?new kx(e,{silent:!0}).createRoute(e):new kx(e,{silent:!0}).createRoute}class kx{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const a=bt(r);return a.isRoot=!1,a},this.silent=n?.silent}}class Nx{constructor(t){this.useMatch=n=>na({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>Sb({...n,from:this.options.id}),this.useLoaderData=n=>bb({...n,from:this.options.id}),this.useNavigate=()=>{const n=Ir();return Sl({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function Mx(e){return typeof e=="object"?new Nx(e):t=>new Nx({id:e,...t})}function Ot(e,t){let n,r,a,i;const c=()=>(n||(n=e().then(d=>{n=void 0,r=d[t??"default"]}).catch(d=>{if(a=d,KD(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),i=!0)}})),n),u=function(f){if(i)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!r)throw c();return A.createElement(r,f)};return u.preload=c,u}function sL(){const e=Ir(),t=A.useRef({router:e,mounted:!1}),[n,r]=A.useState(!1),{hasPendingMatches:a,isLoading:i}=fr({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(g=>g.status==="pending")}),structuralSharing:!0}),c=$y(i),u=i||n||a,d=$y(u),f=i||a,m=$y(f);return e.startTransition=p=>{r(!0),A.startTransition(()=>{p(),r(!1)})},A.useEffect(()=>{const p=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ci(e.latestLocation.href)!==Ci(g.href)&&e.commitLocation({...g,replace:!0}),()=>{p()}},[e,e.history]),ku(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),ku(()=>{c&&!i&&e.emit({type:"onLoad",...Ai(e.state)})},[c,e,i]),ku(()=>{m&&!f&&e.emit({type:"onBeforeRouteMount",...Ai(e.state)})},[f,m,e]),ku(()=>{if(d&&!u){const p=Ai(e.state);e.emit({type:"onResolved",...p}),e.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),p.hrefChanged&&v6(e)}},[u,d,e]),null}function iL(e){const t=fr({select:n=>`not-found-${n.location.pathname}-${n.status}`});return R.jsx(_b,{getResetKey:()=>t,onCatch:(n,r)=>{if(ho(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(ho(n))return e.fallback?.(n);throw n},children:e.children})}function cL(){return R.jsx("p",{children:"Not Found"})}function Fc(e){return R.jsx(R.Fragment,{children:e.children})}function SA(e,t,n){return t.options.notFoundComponent?R.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?R.jsx(e.options.defaultNotFoundComponent,{...n}):R.jsx(cL,{})}function lL({children:e}){const t=Ir();return t.isServer?R.jsx("script",{nonce:t.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function uL(){const e=Ir();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||t_)(e.latestLocation),r=n!==t_(e.latestLocation)?n:void 0,a={storageKey:Ip,shouldScrollRestoration:!0};return r&&(a.key=r),R.jsx(lL,{children:`(${sA.toString()})(${JSON.stringify(a)})`})}const wA=A.memo(function({matchId:t}){const n=Ir(),r=fr({select:x=>{const E=x.matches.find(T=>T.id===t);return Ma(E),{routeId:E.routeId,ssr:E.ssr,_displayPending:E._displayPending}},structuralSharing:!0}),a=n.routesById[r.routeId],i=a.options.pendingComponent??n.options.defaultPendingComponent,c=i?R.jsx(i,{}):null,u=a.options.errorComponent??n.options.defaultErrorComponent,d=a.options.onCatch??n.options.defaultOnCatch,f=a.isRoot?a.options.notFoundComponent??n.options.notFoundRoute?.options.component:a.options.notFoundComponent,m=r.ssr===!1||r.ssr==="data-only",p=(!a.isRoot||a.options.wrapInSuspense||m)&&(a.options.wrapInSuspense??i??(a.options.errorComponent?.preload||m))?A.Suspense:Fc,g=u?_b:Fc,y=f?iL:Fc,b=fr({select:x=>x.loadedAt}),w=fr({select:x=>{const E=x.matches.findIndex(T=>T.id===t);return x.matches[E-1]?.routeId}}),S=a.isRoot?a.options.shellComponent??Fc:Fc;return R.jsxs(S,{children:[R.jsx(Em.Provider,{value:t,children:R.jsx(p,{fallback:c,children:R.jsx(g,{getResetKey:()=>b,errorComponent:u||wm,onCatch:(x,E)=>{if(ho(x))throw x;d?.(x,E)},children:R.jsx(y,{fallback:x=>{if(!f||x.routeId&&x.routeId!==r.routeId||!x.routeId&&!a.isRoot)throw x;return A.createElement(f,x)},children:m||r._displayPending?R.jsx(U6,{fallback:c,children:R.jsx(Px,{matchId:t})}):R.jsx(Px,{matchId:t})})})})}),w===Fr&&n.options.scrollRestoration?R.jsxs(R.Fragment,{children:[R.jsx(dL,{}),R.jsx(uL,{})]}):null]})});function dL(){const e=Ir(),t=A.useRef(void 0);return R.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Ai(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const Px=A.memo(function({matchId:t}){const n=Ir(),{match:r,key:a,routeId:i}=fr({select:d=>{const f=d.matches.find(b=>b.id===t),m=f.routeId,g=(n.routesById[m].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:m,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:m,match:{id:f.id,status:f.status,error:f.error,_forcePending:f._forcePending,_displayPending:f._displayPending}}},structuralSharing:!0}),c=n.routesById[i],u=A.useMemo(()=>{const d=c.options.component??n.options.defaultComponent;return d?R.jsx(d,{},a):R.jsx(EA,{})},[a,c.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const f=n.getMatch(r.id);if(f&&!f._nonReactive.minPendingPromise&&!n.isServer){const m=il();f._nonReactive.minPendingPromise=m,setTimeout(()=>{m.resolve(),f._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return Ma(ho(r.error)),SA(n,c,r.error);if(r.status==="redirected")throw Ma(Do(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error"){if(n.isServer){const d=(c.options.errorComponent??n.options.defaultErrorComponent)||wm;return R.jsx(d,{error:r.error,reset:void 0,info:{componentStack:""}})}throw r.error}return u}),EA=A.memo(function(){const t=Ir(),n=A.useContext(Em),r=fr({select:f=>f.matches.find(m=>m.id===n)?.routeId}),a=t.routesById[r],i=fr({select:f=>{const p=f.matches.find(g=>g.id===n);return Ma(p),p.globalNotFound}}),c=fr({select:f=>{const m=f.matches,p=m.findIndex(g=>g.id===n);return m[p+1]?.id}}),u=t.options.defaultPendingComponent?R.jsx(t.options.defaultPendingComponent,{}):null;if(i)return SA(t,a,void 0);if(!c)return null;const d=R.jsx(wA,{matchId:c});return r===Fr?R.jsx(A.Suspense,{fallback:u,children:d}):d});function fL(){const e=Ir(),n=e.routesById[Fr].options.pendingComponent??e.options.defaultPendingComponent,r=n?R.jsx(n,{}):null,a=e.isServer||typeof document<"u"&&e.ssr?Fc:A.Suspense,i=R.jsxs(a,{fallback:r,children:[!e.isServer&&R.jsx(sL,{}),R.jsx(hL,{})]});return e.options.InnerWrap?R.jsx(e.options.InnerWrap,{children:i}):i}function hL(){const e=Ir(),t=fr({select:a=>a.matches[0]?.id}),n=fr({select:a=>a.loadedAt}),r=t?R.jsx(wA,{matchId:t}):null;return R.jsx(Em.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:R.jsx(_b,{getResetKey:()=>n,errorComponent:wm,onCatch:a=>{a.message||a.toString()},children:r})})}const pL=e=>new mL(e);class mL extends k6{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Ix,globalThis.createLazyFileRoute=Mx):typeof window<"u"&&(window.createFileRoute=Ix,window.createLazyFileRoute=Mx);function gL({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=_A(),a=R.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?R.jsx(e.options.Wrap,{children:a}):a}function vL({router:e,...t}){return R.jsx(gL,{router:e,...t,children:R.jsx(fL,{})})}function yL(e){return fr({select:t=>t.location})}var _L={},Dx={};const hp=Object.create(null),Su=e=>_L||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?hp:globalThis),fo=new Proxy(hp,{get(e,t){return Su()[t]??hp[t]},has(e,t){return t in Su()||t in hp},set(e,t,n){const r=Su(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=Su(!0);return delete n[t],!0},ownKeys(){const e=Su(!0);return Object.keys(e)}});function yn(e,t){return typeof process<"u"&&Dx?Dx[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const wu=1,Ln=4,Yo=8,qr=24,Lx={eterm:Ln,cons25:Ln,console:Ln,cygwin:Ln,dtterm:Ln,gnome:Ln,hurd:Ln,jfbterm:Ln,konsole:Ln,kterm:Ln,mlterm:Ln,mosh:qr,putty:Ln,st:Ln,"rxvt-unicode-24bit":qr,terminator:qr,"xterm-kitty":qr},bL=new Map(Object.entries({APPVEYOR:Yo,BUILDKITE:Yo,CIRCLECI:qr,DRONE:Yo,GITEA_ACTIONS:qr,GITHUB_ACTIONS:qr,GITLAB_CI:Yo,TRAVIS:Yo})),SL=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function wL(){if(yn("FORCE_COLOR")!==void 0)switch(yn("FORCE_COLOR")){case"":case"1":case"true":return Ln;case"2":return Yo;case"3":return qr;default:return wu}if(yn("NODE_DISABLE_COLORS")!==void 0&&yn("NODE_DISABLE_COLORS")!==""||yn("NO_COLOR")!==void 0&&yn("NO_COLOR")!==""||yn("TERM")==="dumb")return wu;if(yn("TMUX"))return qr;if("TF_BUILD"in fo&&"AGENT_NAME"in fo)return Ln;if("CI"in fo){for(const{0:e,1:t}of bL)if(e in fo)return t;return yn("CI_NAME")==="codeship"?Yo:wu}if("TEAMCITY_VERSION"in fo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(yn("TEAMCITY_VERSION"))!==null?Ln:wu;switch(yn("TERM_PROGRAM")){case"iTerm.app":return!yn("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(yn("TERM_PROGRAM_VERSION"))!==null?Yo:qr;case"HyperTerm":case"MacTerm":return qr;case"Apple_Terminal":return Yo}if(yn("COLORTERM")==="truecolor"||yn("COLORTERM")==="24bit")return qr;if(yn("TERM")){if(/truecolor/.exec(yn("TERM"))!==null)return qr;if(/^xterm-256/.exec(yn("TERM"))!==null)return Yo;const e=yn("TERM").toLowerCase();if(Lx[e])return Lx[e];if(SL.some(t=>t.exec(e)!==null))return Ln}return yn("COLORTERM")?Ln:wu}const Qo={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},r_=["debug","info","success","warn","error"];function EL(e,t){return r_.indexOf(t)>=r_.indexOf(e)}const RL={info:Qo.fg.blue,success:Qo.fg.green,warn:Qo.fg.yellow,error:Qo.fg.red,debug:Qo.fg.magenta},xL=(e,t,n)=>{const r=new Date().toISOString();return n?`${Qo.dim}${r}${Qo.reset} ${RL[e]}${e.toUpperCase()}${Qo.reset} ${Qo.bright}[Better Auth]:${Qo.reset} ${t}`:`${r} ${e.toUpperCase()} [Better Auth]: ${t}`},TL=e=>{const t="error",n=wL()!==1,r=(a,i,c=[])=>{if(!EL(t,a))return;const u=xL(a,i,n);{a==="error"?console.error(u,...c):a==="warn"?console.warn(u,...c):console.log(u,...c);return}};return{...Object.fromEntries(r_.map(a=>[a,(...[i,...c])=>r(a,i,c)])),get level(){return t}}};TL();var Bu=class extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}};function OL(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Bu(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function CL(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Bu(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Bu?t:new Bu(`Invalid base URL: ${e}. Please provide a valid base URL.`,String(t))}}function zy(e,t="/api/auth"){if(CL(e),OL(e))return e;const n=e.replace(/\/+$/,"");return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function AL(e,t,n,r,a){if(e)return zy(e,t);{const i=fo.BETTER_AUTH_URL||fo.NEXT_PUBLIC_BETTER_AUTH_URL||fo.PUBLIC_BETTER_AUTH_URL||fo.NUXT_PUBLIC_BETTER_AUTH_URL||fo.NUXT_PUBLIC_AUTH_URL||(fo.BASE_URL!=="/"?fo.BASE_URL:void 0);if(i)return zy(i,t)}if(typeof window<"u"&&window.location)return zy(window.location.origin,t)}const IL={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},kL=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,jx={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},NL=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function ML(e){return e instanceof Date&&!isNaN(e.getTime())}function PL(e){const t=NL.exec(e);if(!t)return null;const[,n,r,a,i,c,u,d,f,m,p]=t;let g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(i,10),parseInt(c,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const y=(parseInt(m,10)*60+parseInt(p,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return ML(g)?g:null}function DL(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:i=!0}=t;if(typeof e!="string")return e;const c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);const u=c.toLowerCase();if(u.length<=9&&u in jx)return jx[u];if(!kL.test(c)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(IL).some(([d,f])=>{const m=f.test(c);return m&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(f,m)=>{if(f==="__proto__"||f==="constructor"&&m&&typeof m=="object"&&"prototype"in m){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(i&&typeof m=="string"){const p=PL(m);if(p)return p}return a?a(f,m):m})}catch(d){if(n)throw d;return e}}function LL(e,t={strict:!0}){return DL(e,t)}let xo=[],hs=0;const eh=4,Kc=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(r){return n.lc=t.push(r),()=>{for(let i=hs+eh;i<xo.length;)xo[i]===r?xo.splice(i,eh):i+=eh;let a=t.indexOf(r);~a&&(t.splice(a,1),--n.lc||n.off())}},notify(r,a){let i=!xo.length;for(let c of t)xo.push(c,n.value,r,a);if(i){for(hs=0;hs<xo.length;hs+=eh)xo[hs](xo[hs+1],xo[hs+2],xo[hs+3]);xo.length=0}},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:e};return n},jL=5,th=6,nh=10;let $L=(e,t,n,r)=>(e.events=e.events||{},e.events[n+nh]||(e.events[n+nh]=r(a=>{e.events[n].reduceRight((i,c)=>(c(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let a=e.events[n],i=a.indexOf(t);a.splice(i,1),a.length||(delete e.events[n],e.events[n+nh](),delete e.events[n+nh])}),UL=1e3,RA=(e,t)=>$L(e,r=>{let a=t(r);a&&e.events[th].push(a)},jL,r=>{let a=e.listen;e.listen=(...c)=>(!e.lc&&!e.active&&(e.active=!0,r()),a(...c));let i=e.off;return e.events[th]=[],e.off=()=>{i(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[th])c();e.events[th]=[]}},UL)},()=>{e.listen=a,e.off=i}});function zL(e,t,n){let r=new Set(t).add(void 0);return e.listen((a,i,c)=>{r.has(c)&&n(a,i,c)})}var VL=Object.defineProperty,FL=Object.defineProperties,BL=Object.getOwnPropertyDescriptors,$x=Object.getOwnPropertySymbols,qL=Object.prototype.hasOwnProperty,HL=Object.prototype.propertyIsEnumerable,Ux=(e,t,n)=>t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))qL.call(t,n)&&Ux(e,n,t[n]);if($x)for(var n of $x(t))HL.call(t,n)&&Ux(e,n,t[n]);return e},Wo=(e,t)=>FL(e,BL(t)),GL=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},ZL=async(e,t)=>{var n,r,a,i,c,u;let d=t||{};const f={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:f};for(const m of t?.plugins||[]){if(m.init){const p=await((n=m.init)==null?void 0:n.call(m,e.toString(),t));d=p.options||d,e=p.url}f.onRequest.push((r=m.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=m.hooks)==null?void 0:a.onResponse),f.onSuccess.push((i=m.hooks)==null?void 0:i.onSuccess),f.onError.push((c=m.hooks)==null?void 0:c.onError),f.onRetry.push((u=m.hooks)==null?void 0:u.onRetry)}return{url:e,options:d,hooks:f}},zx=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},KL=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function WL(e){if(typeof e=="number")return new zx({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new zx(e);case"exponential":return new KL(e);default:throw new Error("Invalid retry strategy")}}var YL=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const r=n(e.auth.username),a=n(e.auth.password);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},QL=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function XL(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return QL.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function JL(e){try{return JSON.parse(e),!0}catch{return!1}}function xA(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function Vx(e){try{return JSON.parse(e)}catch{return e}}function Fx(e){return typeof e=="function"}function ej(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Fx(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Fx(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function tj(e){const t=new Headers(e?.headers),n=await YL(e);for(const[r,a]of Object.entries(n||{}))t.set(r,a);if(!t.has("content-type")){const r=nj(e?.body);r&&t.set("content-type",r)}return t}function nj(e){return xA(e)?"application/json":null}function rj(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(xA(e.body)&&!t.has("content-type")){for(const[n,r]of Object.entries(e?.body))r instanceof Date&&(e.body[n]=r.toISOString());return JSON.stringify(e.body)}return e.body}function oj(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return OA.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function aj(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var sj=class TA extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,TA.prototype)}};async function pp(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new sj(n.issues);return n.value}var OA=["get","post","put","patch","delete"],ij=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,a,i,c;const u=((a=(r=e.plugins)==null?void 0:r.find(d=>{var f;return(f=d.schema)!=null&&f.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:a.schema)||e.schema;if(u){let d=t;(i=u.config)!=null&&i.prefix&&d.startsWith(u.config.prefix)&&(d=d.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(c=u.config)!=null&&c.baseURL&&d.startsWith(u.config.baseURL)&&(d=d.replace(u.config.baseURL,""));const f=u.schema[d];if(f){let m=Wo(Io({},n),{method:f.method,output:f.output});return n?.disableValidation||(m=Wo(Io({},m),{body:f.input?await pp(f.input,n?.body):n?.body,params:f.params?await pp(f.params,n?.params):n?.params,query:f.query?await pp(f.query,n?.query):n?.query})),{url:t,options:m}}}return{url:t,options:n}}}),cj=e=>{async function t(n,r){const a=Wo(Io(Io({},e),r),{plugins:[...e?.plugins||[],ij(e||{})]});if(e?.catchAllError)try{return await o_(n,a)}catch(i){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:i}}}return await o_(n,a)}return t};function lj(e,t){let{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""},i=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const p=e.toString().split("@")[1].split("/")[0];OA.includes(p)&&(e=e.replace(`@${p}/`,"/"))}i.endsWith("/")||(i+="/");let[c,u]=e.replace(i,"").split("?");const d=new URLSearchParams(u);for(const[p,g]of Object.entries(a||{}))g!=null&&d.set(p,String(g));if(r)if(Array.isArray(r)){const p=c.split("/").filter(g=>g.startsWith(":"));for(const[g,y]of p.entries()){const b=r[g];c=c.replace(y,b)}}else for(const[p,g]of Object.entries(r))c=c.replace(`:${p}`,String(g));c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/")&&(c=c.slice(1));let f=d.toString();return f=f.length>0?`?${f}`.replace(/\+/g,"%20"):"",i.startsWith("http")?new URL(`${c}${f}`,i):`${i}${c}${f}`}var o_=async(e,t)=>{var n,r,a,i,c,u,d,f;const{hooks:m,url:p,options:g}=await ZL(e,t),y=ej(g),b=new AbortController,w=(n=g.signal)!=null?n:b.signal,S=lj(p,g),x=rj(g),E=await tj(g),T=oj(p,g);let C=Wo(Io({},g),{url:S,headers:E,body:x,method:T,signal:w});for(const U of m.onRequest)if(U){const ee=await U(C);ee instanceof Object&&(C=ee)}("pipeTo"in C&&typeof C.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:O}=aj(g,b);let I=await y(C.url,C);O();const M={response:I,request:C};for(const U of m.onResponse)if(U){const ee=await U(Wo(Io({},M),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?I.clone():I}));ee instanceof Response?I=ee:ee instanceof Object&&(I=ee.response)}if(I.ok){if(!(C.method!=="HEAD"))return{data:"",error:null};const ee=XL(I),ie={data:"",response:I,request:C};if(ee==="json"||ee==="text"){const F=await I.text(),ae=await((i=C.jsonParser)!=null?i:Vx)(F);ie.data=ae}else ie.data=await I[ee]();C?.output&&C.output&&!C.disableValidation&&(ie.data=await pp(C.output,ie.data));for(const F of m.onSuccess)F&&await F(Wo(Io({},ie),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?I.clone():I}));return t?.throw?ie.data:{data:ie.data,error:null}}const D=(u=t?.jsonParser)!=null?u:Vx,z=await I.text(),Q=JL(z),V=Q?await D(z):null,Z={response:I,responseText:z,request:C,error:Wo(Io({},V),{status:I.status,statusText:I.statusText})};for(const U of m.onError)U&&await U(Wo(Io({},Z),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t?.retry){const U=WL(t.retry),ee=(f=t.retryAttempt)!=null?f:0;if(await U.shouldAttemptRetry(ee,I)){for(const F of m.onRetry)F&&await F(M);const ie=U.getDelay(ee);return await new Promise(F=>setTimeout(F,ie)),await o_(e,Wo(Io({},t),{retryAttempt:ee+1}))}}if(t?.throw)throw new GL(I.status,I.statusText,Q?V:z);return{data:null,error:Wo(Io({},V),{status:I.status,statusText:I.statusText})}};const Vy=Symbol.for("better-auth:broadcast-channel"),uj=()=>Math.floor(Date.now()/1e3);var dj=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:uj()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function Fy(e="better-auth.message"){return globalThis[Vy]||(globalThis[Vy]=new dj(e)),globalThis[Vy]}const By=Symbol.for("better-auth:focus-manager");var fj=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function Bx(){return globalThis[By]||(globalThis[By]=new fj),globalThis[By]}const qy=Symbol.for("better-auth:online-manager");var hj=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function Hy(){return globalThis[qy]||(globalThis[qy]=new hj),globalThis[qy]}const pj=()=>typeof window>"u",Nu=(e,t,n,r)=>{const a=Kc({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>i(u)}),i=async u=>new Promise(d=>{const f=typeof r=="function"?r({data:a.get().data,error:a.get().error,isPending:a.get().isPending}):r;n(t,{...f,query:{...f?.query,...u?.query},async onSuccess(m){a.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await f?.onSuccess?.(m)},async onError(m){const{request:p}=m,g=typeof p.retry=="number"?p.retry:p.retry?.attempts,y=p.retryAttempt||0;g&&y<g||(a.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await f?.onError?.(m))},async onRequest(m){const p=a.get();a.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:a.value.refetch}),await f?.onRequest?.(m)}}).catch(m=>{a.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch})}).finally(()=>{d(void 0)})});e=Array.isArray(e)?e:[e];let c=!1;for(const u of e)u.subscribe(async()=>{pj()||(c?await i():RA(a,()=>{const d=setTimeout(async()=>{c||(await i(),c=!0)},0);return()=>{a.off(),u.off(),clearTimeout(d)}}))});return a},kc=()=>Math.floor(Date.now()/1e3),mj=5;function gj(e){const{sessionAtom:t,sessionSignal:n,$fetch:r,options:a={}}=e,i=a.sessionOptions?.refetchInterval??0,c=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},f=()=>u||Hy().isOnline,m=E=>{if(!f())return;if(E?.event==="storage"){d.lastSync=kc(),n.set(!n.get());return}const T=t.get();if(E?.event==="poll"){d.lastSessionRequest=kc(),r("/get-session").then(C=>{t.set({...T,data:C.data,error:C.error||null}),d.lastSync=kc(),n.set(!n.get())}).catch(()=>{});return}E?.event==="visibilitychange"&&kc()-d.lastSessionRequest<mj&&T?.data!==null&&T?.data!==void 0||(T?.data===null||T?.data===void 0||E?.event==="visibilitychange")&&(E?.event==="visibilitychange"&&(d.lastSessionRequest=kc()),d.lastSync=kc(),n.set(!n.get()))},p=E=>{Fy().post({event:"session",data:{trigger:E},clientId:Math.random().toString(36).substring(7)})},g=()=>{i&&i>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},i*1e3))},y=()=>{d.unsubscribeBroadcast=Fy().subscribe(()=>{m({event:"storage"})})},b=()=>{c&&(d.unsubscribeFocus=Bx().subscribe(()=>{m({event:"visibilitychange"})}))},w=()=>{d.unsubscribeOnline=Hy().subscribe(E=>{E&&m({event:"visibilitychange"})})};return{init:()=>{g(),y(),b(),w(),Fy().setup(),Bx().setup(),Hy().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:p}}const vj={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};function yj(e,t){const n=Kc(!1),r=Nu(n,"/get-session",e,{method:"GET"});return RA(r,()=>{const a=gj({sessionAtom:r,sessionSignal:n,$fetch:e,options:t});return a.init(),()=>{a.cleanup()}}),{session:r,$sessionSignal:n}}const _j=(e,t)=>{const n="credentials"in Request.prototype,r=AL(e?.baseURL,e?.basePath)??"/api/auth",a=e?.plugins?.flatMap(C=>C.fetchPlugins).filter(C=>C!==void 0)||[],i={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:c,onError:u,onRequest:d,onResponse:f,...m}=e?.fetchOptions||{},p=cj({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(C){return C?LL(C,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[i,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[vj],...a]}),{$sessionSignal:g,session:y}=yj(p,e),b=e?.plugins||[];let w={},S={$sessionSignal:g,session:y},x={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const E=[{signal:"$sessionSignal",matcher(C){return C==="/sign-out"||C==="/update-user"||C==="/sign-up/email"||C==="/sign-in/email"||C==="/delete-user"||C==="/verify-email"||C==="/revoke-sessions"||C==="/revoke-session"||C==="/change-email"}}];for(const C of b)C.getAtoms&&Object.assign(S,C.getAtoms?.(p)),C.pathMethods&&Object.assign(x,C.pathMethods),C.atomListeners&&E.push(...C.atomListeners);const T={notify:C=>{S[C].set(!S[C].get())},listen:(C,O)=>{S[C].subscribe(O)},atoms:S};for(const C of b)C.getActions&&Object.assign(w,C.getActions?.(p,T,e));return{get baseURL(){return r},pluginsActions:w,pluginsAtoms:S,pluginPathMethods:x,atomListeners:E,$fetch:p,$store:T}};function bj(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function Sj(e,t,n){const r=t[e],{fetchOptions:a,query:i,...c}=n||{};return r||(a?.method?a.method:c&&Object.keys(c).length>0?"POST":"GET")}function wj(e,t,n,r,a){function i(c=[]){return new Proxy(function(){},{get(u,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const f=[...c,d];let m=e;for(const p of f)if(m&&typeof m=="object"&&p in m)m=m[p];else{m=void 0;break}return typeof m=="function"||bj(m)?m:i(f)},apply:async(u,d,f)=>{const m="/"+c.map(E=>E.replace(/[A-Z]/g,T=>`-${T.toLowerCase()}`)).join("/"),p=f[0]||{},g=f[1]||{},{query:y,fetchOptions:b,...w}=p,S={...g,...b},x=Sj(m,n,p);return await t(m,{...S,body:x==="GET"?void 0:{...w,...S?.body||{}},query:y||S?.query,method:x,async onSuccess(E){if(await S?.onSuccess?.(E),!a||S.disableSignal)return;const T=a.filter(C=>C.matcher(m));if(T.length)for(const C of T){const O=r[C.signal];if(!O)return;const I=O.get();setTimeout(()=>{O.set(!I)},10)}}})}})}return i()}function Ej(e,t={}){let n=A.useRef(e.get());const{keys:r,deps:a=[e,r]}=t;let i=A.useCallback(u=>{const d=f=>{n.current!==f&&(n.current=f,u())};return d(e.value),r?.length?zL(e,r,d):e.listen(d)},a),c=()=>n.current;return A.useSyncExternalStore(i,c,c)}function Rj(e){return`use${xj(e)}`}function xj(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Tj(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:i,atomListeners:c}=_j(e);let u={};for(const[d,f]of Object.entries(r))u[Rj(d)]=()=>Ej(f);return wj({...n,...u,$fetch:a,$store:i},a,t,r,c)}function Oj(e){return{authorize(t,n="AND"){let r=!1;for(const[a,i]of Object.entries(t)){const c=e[a];if(!c)return{success:!1,error:`You are not allowed to access resource: ${a}`};if(Array.isArray(i))r=i.every(u=>c.includes(u));else if(typeof i=="object"){const u=i;u.connector==="OR"?r=u.actions.some(d=>c.includes(d)):r=u.actions.every(d=>c.includes(d))}else throw new Bu("Invalid access control request");if(r&&n==="OR")return{success:r};if(!r&&n==="AND")return{success:!1,error:`unauthorized to access resource "${a}"`}}return r?{success:r}:{success:!1,error:"Not authorized"}},statements:e}}function CA(e){return{newRole(t){return Oj(t)},statements:e}}const Cj={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},AA=CA(Cj),IA=AA.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),kA=AA.newRole({user:[],session:[]}),Aj={admin:IA,user:kA},Ij=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),n=e.options?.roles||Aj;for(const r of t)if(n[r]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},kj={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},wb=CA(kj),NA=wb.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),MA=wb.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),PA=wb.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),Nj={admin:NA,owner:MA,member:PA},Mj=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const n=e.role.split(","),r=e.options.creatorRole||"owner",a=n.includes(r),i=e.allowCreatorAllPermissions||!1;if(a&&i)return!0;for(const c of n)if(t[c]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},Pj=e=>{const t={admin:IA,user:kA,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:n=>Ij({role:n.role,options:{ac:e?.ac,roles:t},permissions:n.permissions??n.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},Dj=()=>({id:"magic-link",$InferServerPlugin:{}}),Lj=e=>Mj(e,e.options.roles||Nj),jj=e=>{const t=Kc(!1),n=Kc(!1),r=Kc(!1),a=Kc(!1),i={admin:NA,member:PA,owner:MA,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(c,u,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:f=>Lj({role:f.role,options:{ac:e?.ac,roles:i},permissions:f.permissions??f.permission})}}),getAtoms:c=>{const u=Nu(t,"/organization/list",c,{method:"GET"});return{$listOrg:t,$activeOrgSignal:n,$activeMemberSignal:r,$activeMemberRoleSignal:a,activeOrganization:Nu([n],"/organization/get-full-organization",c,()=>({method:"GET"})),listOrganizations:u,activeMember:Nu([r],"/organization/get-active-member",c,{method:"GET"}),activeMemberRole:Nu([a],"/organization/get-active-member-role",c,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(c){return c==="/organization/create"||c==="/organization/delete"||c==="/organization/update"},signal:"$listOrg"},{matcher(c){return c.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(c){return c.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(c){return c.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(c){return c.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},$j=e=>({id:"sso-client",$InferServerPlugin:{}}),Uj=Tj({plugins:[jj({}),Pj(),$j(),Dj()]});function DA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=DA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=DA(e))&&(r&&(r+=" "),r+=t);return r}const zj=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Vj=(e,t)=>({classGroupId:e,validator:t}),LA=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Mp="-",qx=[],Fj="arbitrary..",Bj=e=>{const t=Hj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return qj(c);const u=c.split(Mp),d=u[0]===""&&u.length>1?1:0;return jA(u,d,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const d=r[c],f=n[c];return d?f?zj(f,d):d:f||qx}return n[c]||qx}}},jA=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const f=jA(e,t+1,i);if(f)return f}const c=n.validators;if(c===null)return;const u=t===0?e.join(Mp):e.slice(t).join(Mp),d=c.length;for(let f=0;f<d;f++){const m=c[f];if(m.validator(u))return m.classGroupId}},qj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Fj+r:void 0})(),Hj=e=>{const{theme:t,classGroups:n}=e;return Gj(n,t)},Gj=(e,t)=>{const n=LA();for(const r in e){const a=e[r];Rb(a,n,r,t)}return n},Rb=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const c=e[i];Zj(c,t,n,r)}},Zj=(e,t,n,r)=>{if(typeof e=="string"){Kj(e,t,n);return}if(typeof e=="function"){Wj(e,t,n,r);return}Yj(e,t,n,r)},Kj=(e,t,n)=>{const r=e===""?t:$A(t,e);r.classGroupId=n},Wj=(e,t,n,r)=>{if(Qj(e)){Rb(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Vj(n,e))},Yj=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let c=0;c<i;c++){const[u,d]=a[c];Rb(d,$A(t,u),n,r)}},$A=(e,t)=>{let n=e;const r=t.split(Mp),a=r.length;for(let i=0;i<a;i++){const c=r[i];let u=n.nextPart.get(c);u||(u=LA(),n.nextPart.set(c,u)),n=u}return n},Qj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,c)=>{n[i]=c,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let c=n[i];if(c!==void 0)return c;if((c=r[i])!==void 0)return a(i,c),c},set(i,c){i in n?n[i]=c:a(i,c)}}},a_="!",Hx=":",Jj=[],Gx=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),e$=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let c=0,u=0,d=0,f;const m=a.length;for(let w=0;w<m;w++){const S=a[w];if(c===0&&u===0){if(S===Hx){i.push(a.slice(d,w)),d=w+1;continue}if(S==="/"){f=w;continue}}S==="["?c++:S==="]"?c--:S==="("?u++:S===")"&&u--}const p=i.length===0?a:a.slice(d);let g=p,y=!1;p.endsWith(a_)?(g=p.slice(0,-1),y=!0):p.startsWith(a_)&&(g=p.slice(1),y=!0);const b=f&&f>d?f-d:void 0;return Gx(i,y,g,b)};if(t){const a=t+Hx,i=r;r=c=>c.startsWith(a)?i(c.slice(a.length)):Gx(Jj,!1,c,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},t$=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const c=n[i],u=c[0]==="[",d=t.has(c);u||d?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(c)):a.push(c)}return a.length>0&&(a.sort(),r.push(...a)),r}},n$=e=>({cache:Xj(e.cacheSize),parseClassName:e$(e),sortModifiers:t$(e),...Bj(e)}),r$=/\s+/,o$=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,c=[],u=e.trim().split(r$);let d="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:p,modifiers:g,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:w}=n(m);if(p){d=m+(d.length>0?" "+d:d);continue}let S=!!w,x=r(S?b.substring(0,w):b);if(!x){if(!S){d=m+(d.length>0?" "+d:d);continue}if(x=r(b),!x){d=m+(d.length>0?" "+d:d);continue}S=!1}const E=g.length===0?"":g.length===1?g[0]:i(g).join(":"),T=y?E+a_:E,C=T+x;if(c.indexOf(C)>-1)continue;c.push(C);const O=a(x,S);for(let I=0;I<O.length;++I){const M=O[I];c.push(T+M)}d=m+(d.length>0?" "+d:d)}return d},a$=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=UA(n))&&(a&&(a+=" "),a+=r);return a},UA=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=UA(e[r]))&&(n&&(n+=" "),n+=t);return n},s$=(e,...t)=>{let n,r,a,i;const c=d=>{const f=t.reduce((m,p)=>p(m),e());return n=n$(f),r=n.cache.get,a=n.cache.set,i=u,u(d)},u=d=>{const f=r(d);if(f)return f;const m=o$(d,n);return a(d,m),m};return i=c,(...d)=>i(a$(...d))},i$=[],Tn=e=>{const t=n=>n[e]||i$;return t.isThemeGetter=!0,t},zA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,VA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,c$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,l$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,u$=/\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$/,d$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,f$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>c$.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),ms=e=>!!e&&Number.isInteger(Number(e)),Gy=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Ta=e=>l$.test(e),FA=()=>!0,p$=e=>u$.test(e)&&!d$.test(e),xb=()=>!1,m$=e=>f$.test(e),g$=e=>h$.test(e),v$=e=>!ze(e)&&!Ve(e),y$=e=>zs(e,HA,xb),ze=e=>zA.test(e),fi=e=>zs(e,GA,p$),Zx=e=>zs(e,T$,ht),_$=e=>zs(e,KA,FA),b$=e=>zs(e,ZA,xb),Kx=e=>zs(e,BA,xb),S$=e=>zs(e,qA,g$),rh=e=>zs(e,WA,m$),Ve=e=>VA.test(e),Eu=e=>ji(e,GA),w$=e=>ji(e,ZA),Wx=e=>ji(e,BA),E$=e=>ji(e,HA),R$=e=>ji(e,qA),oh=e=>ji(e,WA,!0),x$=e=>ji(e,KA,!0),zs=(e,t,n)=>{const r=zA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ji=(e,t,n=!1)=>{const r=VA.exec(e);return r?r[1]?t(r[1]):n:!1},BA=e=>e==="position"||e==="percentage",qA=e=>e==="image"||e==="url",HA=e=>e==="length"||e==="size"||e==="bg-size",GA=e=>e==="length",T$=e=>e==="number",ZA=e=>e==="family-name",KA=e=>e==="number"||e==="weight",WA=e=>e==="shadow",O$=()=>{const e=Tn("color"),t=Tn("font"),n=Tn("text"),r=Tn("font-weight"),a=Tn("tracking"),i=Tn("leading"),c=Tn("breakpoint"),u=Tn("container"),d=Tn("spacing"),f=Tn("radius"),m=Tn("shadow"),p=Tn("inset-shadow"),g=Tn("text-shadow"),y=Tn("drop-shadow"),b=Tn("blur"),w=Tn("perspective"),S=Tn("aspect"),x=Tn("ease"),E=Tn("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...C(),Ve,ze],I=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],D=()=>[Ve,ze,d],z=()=>[ps,"full","auto",...D()],Q=()=>[ms,"none","subgrid",Ve,ze],V=()=>["auto",{span:["full",ms,Ve,ze]},ms,Ve,ze],Z=()=>[ms,"auto",Ve,ze],U=()=>["auto","min","max","fr",Ve,ze],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...D()],J=()=>[ps,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],ae=()=>[ps,"screen","full","dvw","lvw","svw","min","max","fit",...D()],fe=()=>[ps,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],K=()=>[e,Ve,ze],P=()=>[...C(),Wx,Kx,{position:[Ve,ze]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",E$,y$,{size:[Ve,ze]}],L=()=>[Gy,Eu,fi],$=()=>["","none","full",f,Ve,ze],X=()=>["",ht,Eu,fi],ge=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>[ht,Gy,Wx,Kx],Ne=()=>["","none",b,Ve,ze],H=()=>["none",ht,Ve,ze],re=()=>["none",ht,Ve,ze],be=()=>[ht,Ve,ze],pe=()=>[ps,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ta],breakpoint:[Ta],color:[FA],container:[Ta],"drop-shadow":[Ta],ease:["in","out","in-out"],font:[v$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ta],shadow:[Ta],spacing:["px",ht],text:[Ta],"text-shadow":[Ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ps,ze,Ve,S]}],container:["container"],columns:[{columns:[ht,ze,Ve,u]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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"],sr:["sr-only","not-sr-only"],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:O()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ms,"auto",Ve,ze]}],basis:[{basis:[ps,"full","auto",u,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,ps,"auto","initial","none",ze]}],grow:[{grow:["",ht,Ve,ze]}],shrink:[{shrink:["",ht,Ve,ze]}],order:[{order:[ms,"first","last","none",Ve,ze]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,Eu,fi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,x$,_$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gy,ze]}],"font-family":[{font:[w$,b$,t]}],"font-features":[{"font-features":[ze]}],"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:[a,Ve,ze]}],"line-clamp":[{"line-clamp":[ht,"none",Ve,Zx]}],leading:[{leading:[i,...D()]}],"list-image":[{"list-image":["none",Ve,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",Ve,fi]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ht,"auto",Ve,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ms,Ve,ze],radial:["",Ve,ze],conic:[ms,Ve,ze]},R$,S$]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,Ve,ze]}],"outline-w":[{outline:["",ht,Eu,fi]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",m,oh,rh]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",p,oh,rh]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ht,fi]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,oh,rh]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ht,Ve,ze]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ie()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":Ie()}],"mask-image-t-to-pos":[{"mask-t-to":Ie()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":Ie()}],"mask-image-r-to-pos":[{"mask-r-to":Ie()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":Ie()}],"mask-image-b-to-pos":[{"mask-b-to":Ie()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":Ie()}],"mask-image-l-to-pos":[{"mask-l-to":Ie()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":Ie()}],"mask-image-x-to-pos":[{"mask-x-to":Ie()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":Ie()}],"mask-image-y-to-pos":[{"mask-y-to":Ie()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Ve,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ie()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ie()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,ze]}],filter:[{filter:["","none",Ve,ze]}],blur:[{blur:Ne()}],brightness:[{brightness:[ht,Ve,ze]}],contrast:[{contrast:[ht,Ve,ze]}],"drop-shadow":[{"drop-shadow":["","none",y,oh,rh]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ht,Ve,ze]}],"hue-rotate":[{"hue-rotate":[ht,Ve,ze]}],invert:[{invert:["",ht,Ve,ze]}],saturate:[{saturate:[ht,Ve,ze]}],sepia:[{sepia:["",ht,Ve,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,ze]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[ht,Ve,ze]}],"backdrop-contrast":[{"backdrop-contrast":[ht,Ve,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,Ve,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,Ve,ze]}],"backdrop-invert":[{"backdrop-invert":["",ht,Ve,ze]}],"backdrop-opacity":[{"backdrop-opacity":[ht,Ve,ze]}],"backdrop-saturate":[{"backdrop-saturate":[ht,Ve,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,Ve,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",Ve,ze]}],ease:[{ease:["linear","initial",x,Ve,ze]}],delay:[{delay:[ht,Ve,ze]}],animate:[{animate:["none",E,Ve,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Ve,ze]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[Ve,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Ve,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",Ve,ze]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ht,Eu,fi,Zx]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},YA=s$(O$),C$=Object.freeze({status:"aborted"});function ye(e,t,n){function r(u,d){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:d,constr:c,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,d);const f=c.prototype,m=Object.keys(f);for(let p=0;p<m.length;p++){const g=m[p];g in u||(u[g]=f[g].bind(u))}}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function c(u){var d;const f=n?.Parent?new i:this;r(f,u),(d=f._zod).deferred??(d.deferred=[]);for(const m of f._zod.deferred)m();return f}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class tl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class QA extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const XA={};function Ms(e){return XA}function JA(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function s_(e,t){return typeof t=="bigint"?t.toString():t}function Om(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function vd(e){return e==null}function Tb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function A$(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let a=(r.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(a=Number.parseInt(d[1]))}const i=n>a?n:a,c=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return c%u/10**i}const Yx=Symbol("evaluating");function xt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Yx)return r===void 0&&(r=Yx,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function $i(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Vs(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Qx(e){return JSON.stringify(e)}function I$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const eI="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function td(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const k$=Om(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ul(e){if(td(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(td(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function tI(e){return ul(e)?{...e}:Array.isArray(e)?[...e]:e}const N$=new Set(["string","number","symbol"]);function dl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Fs(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function je(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function M$(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const P$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function D$(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Vs(e._zod.def,{get shape(){const c={};for(const u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(c[u]=n.shape[u])}return $i(this,"shape",c),c},checks:[]});return Fs(e,i)}function L$(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Vs(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete c[u]}return $i(this,"shape",c),c},checks:[]});return Fs(e,i)}function j$(e,t){if(!ul(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(i,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=Vs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return $i(this,"shape",i),i}});return Fs(e,a)}function $$(e,t){if(!ul(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Vs(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return $i(this,"shape",r),r}});return Fs(e,n)}function U$(e,t){const n=Vs(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return $i(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Fs(e,n)}function z$(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Vs(t._zod.def,{get shape(){const u=t._zod.def.shape,d={...u};if(n)for(const f in n){if(!(f in u))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(d[f]=e?new e({type:"optional",innerType:u[f]}):u[f])}else for(const f in u)d[f]=e?new e({type:"optional",innerType:u[f]}):u[f];return $i(this,"shape",d),d},checks:[]});return Fs(t,c)}function V$(e,t,n){const r=Vs(t._zod.def,{get shape(){const a=t._zod.def.shape,i={...a};if(n)for(const c in n){if(!(c in i))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(i[c]=new e({type:"nonoptional",innerType:a[c]}))}else for(const c in a)i[c]=new e({type:"nonoptional",innerType:a[c]});return $i(this,"shape",i),i}});return Fs(t,r)}function Wc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ei(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ah(e){return typeof e=="string"?e:e?.message}function Ps(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=ah(e.inst?._zod.def?.error?.(e))??ah(t?.error?.(e))??ah(n.customError?.(e))??ah(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function nI(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ob(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function nd(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const rI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,s_,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cb=ye("$ZodError",rI),Cm=ye("$ZodError",rI,{Parent:Error});function F$(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function B$(e,t=n=>n.message){const n={_errors:[]},r=a=>{for(const i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(c=>r({issues:c}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let c=n,u=0;for(;u<i.path.length;){const d=i.path[u];u===i.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(i))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}};return r(e),n}const Am=e=>(t,n,r,a)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new tl;if(c.issues.length){const u=new(a?.Err??e)(c.issues.map(d=>Ps(d,i,Ms())));throw eI(u,a?.callee),u}return c.value},q$=Am(Cm),Im=e=>async(t,n,r,a)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise&&(c=await c),c.issues.length){const u=new(a?.Err??e)(c.issues.map(d=>Ps(d,i,Ms())));throw eI(u,a?.callee),u}return c.value},H$=Im(Cm),km=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new tl;return i.issues.length?{success:!1,error:new(e??Cb)(i.issues.map(c=>Ps(c,a,Ms())))}:{success:!0,data:i.value}},oI=km(Cm),Nm=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(c=>Ps(c,a,Ms())))}:{success:!0,data:i.value}},G$=Nm(Cm),Z$=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Am(e)(t,n,a)},K$=e=>(t,n,r)=>Am(e)(t,n,r),W$=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Im(e)(t,n,a)},Y$=e=>async(t,n,r)=>Im(e)(t,n,r),Q$=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return km(e)(t,n,a)},X$=e=>(t,n,r)=>km(e)(t,n,r),J$=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Nm(e)(t,n,a)},e8=e=>async(t,n,r)=>Nm(e)(t,n,r),t8=/^[cC][^\s-]{8,}$/,n8=/^[0-9a-z]+$/,r8=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,o8=/^[0-9a-vA-V]{20}$/,a8=/^[A-Za-z0-9]{27}$/,s8=/^[a-zA-Z0-9_-]{21}$/,i8=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,c8=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Xx=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,l8=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,u8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function d8(){return new RegExp(u8,"u")}const f8=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,h8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,p8=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,m8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,g8=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,aI=/^[A-Za-z0-9_-]*$/,v8=/^\+[1-9]\d{6,14}$/,sI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",y8=new RegExp(`^${sI}$`);function iI(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _8(e){return new RegExp(`^${iI(e)}$`)}function b8(e){const t=iI({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${sI}T(?:${r})$`)}const S8=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},w8=/^-?\d+$/,cI=/^-?\d+(?:\.\d+)?$/,E8=/^(?:true|false)$/i,R8=/^null$/i,x8=/^[^A-Z]*$/,T8=/^[^a-z]*$/,Qn=ye("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),lI={number:"number",bigint:"bigint",object:"date"},uI=ye("$ZodCheckLessThan",(e,t)=>{Qn.init(e,t);const n=lI[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),dI=ye("$ZodCheckGreaterThan",(e,t)=>{Qn.init(e,t);const n=lI[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),O8=ye("$ZodCheckMultipleOf",(e,t)=>{Qn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):A$(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),C8=ye("$ZodCheckNumberFormat",(e,t)=>{Qn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[a,i]=P$[t.format];e._zod.onattach.push(c=>{const u=c._zod.bag;u.format=t.format,u.minimum=a,u.maximum=i,n&&(u.pattern=w8)}),e._zod.check=c=>{const u=c.value;if(n){if(!Number.isInteger(u)){c.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?c.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):c.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<a&&c.issues.push({origin:"number",input:u,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),u>i&&c.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),A8=ye("$ZodCheckMaxSize",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.size!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;a.size<=t.maximum||r.issues.push({origin:nI(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),I8=ye("$ZodCheckMinSize",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.size!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;a.size>=t.minimum||r.issues.push({origin:nI(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),k8=ye("$ZodCheckMaxLength",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const c=Ob(a);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),N8=ye("$ZodCheckMinLength",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const c=Ob(a);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),M8=ye("$ZodCheckLengthEquals",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,i=a.length;if(i===t.length)return;const c=Ob(a),u=i>t.length;r.issues.push({origin:c,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Mm=ye("$ZodCheckStringFormat",(e,t)=>{var n,r;Qn.init(e,t),e._zod.onattach.push(a=>{const i=a._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),P8=ye("$ZodCheckRegex",(e,t)=>{Mm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),D8=ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=x8),Mm.init(e,t)}),L8=ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=T8),Mm.init(e,t)}),j8=ye("$ZodCheckIncludes",(e,t)=>{Qn.init(e,t);const n=dl(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),$8=ye("$ZodCheckStartsWith",(e,t)=>{Qn.init(e,t);const n=new RegExp(`^${dl(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),U8=ye("$ZodCheckEndsWith",(e,t)=>{Qn.init(e,t);const n=new RegExp(`.*${dl(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),z8=ye("$ZodCheckMimeType",(e,t)=>{Qn.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),V8=ye("$ZodCheckOverwrite",(e,t)=>{Qn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class F8{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
11
11
|
`).filter(c=>c),a=Math.min(...r.map(c=>c.length-c.trimStart().length)),i=r.map(c=>c.slice(a)).map(c=>" ".repeat(this.indent*2)+c);for(const c of i)this.content.push(c)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,a.join(`
|
|
12
12
|
`))}}const B8={major:4,minor:3,patch:6},Ut=ye("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=B8;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(c,u,d)=>{let f=Wc(c),m;for(const p of u){if(p._zod.def.when){if(!p._zod.def.when(c))continue}else if(f)continue;const g=c.issues.length,y=p._zod.check(c);if(y instanceof Promise&&d?.async===!1)throw new tl;if(m||y instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await y,c.issues.length!==g&&(f||(f=Wc(c,g)))});else{if(c.issues.length===g)continue;f||(f=Wc(c,g))}}return m?m.then(()=>c):c},i=(c,u,d)=>{if(Wc(c))return c.aborted=!0,c;const f=a(u,r,d);if(f instanceof Promise){if(d.async===!1)throw new tl;return f.then(m=>e._zod.parse(m,d))}return e._zod.parse(f,d)};e._zod.run=(c,u)=>{if(u.skipChecks)return e._zod.parse(c,u);if(u.direction==="backward"){const f=e._zod.parse({value:c.value,issues:[]},{...u,skipChecks:!0});return f instanceof Promise?f.then(m=>i(m,c,u)):i(f,c,u)}const d=e._zod.parse(c,u);if(d instanceof Promise){if(u.async===!1)throw new tl;return d.then(f=>a(f,r,u))}return a(d,r,u)}}xt(e,"~standard",()=>({validate:a=>{try{const i=oI(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return G$(e,a).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),Ab=ye("$ZodString",(e,t)=>{Ut.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??S8(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Jt=ye("$ZodStringFormat",(e,t)=>{Mm.init(e,t),Ab.init(e,t)}),q8=ye("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=c8),Jt.init(e,t)}),H8=ye("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Xx(r))}else t.pattern??(t.pattern=Xx());Jt.init(e,t)}),G8=ye("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=l8),Jt.init(e,t)}),Z8=ye("$ZodURL",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),a=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),K8=ye("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=d8()),Jt.init(e,t)}),W8=ye("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=s8),Jt.init(e,t)}),Y8=ye("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=t8),Jt.init(e,t)}),Q8=ye("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=n8),Jt.init(e,t)}),X8=ye("$ZodULID",(e,t)=>{t.pattern??(t.pattern=r8),Jt.init(e,t)}),J8=ye("$ZodXID",(e,t)=>{t.pattern??(t.pattern=o8),Jt.init(e,t)}),e9=ye("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=a8),Jt.init(e,t)}),t9=ye("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=b8(t)),Jt.init(e,t)}),n9=ye("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=y8),Jt.init(e,t)}),r9=ye("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_8(t)),Jt.init(e,t)}),o9=ye("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=i8),Jt.init(e,t)}),a9=ye("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=f8),Jt.init(e,t),e._zod.bag.format="ipv4"}),s9=ye("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=h8),Jt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),i9=ye("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=p8),Jt.init(e,t)}),c9=ye("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=m8),Jt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[a,i]=r;if(!i)throw new Error;const c=Number(i);if(`${c}`!==i)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function fI(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const l9=ye("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=g8),Jt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{fI(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function u9(e){if(!aI.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return fI(n)}const d9=ye("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=aI),Jt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{u9(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),f9=ye("$ZodE164",(e,t)=>{t.pattern??(t.pattern=v8),Jt.init(e,t)});function h9(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const p9=ye("$ZodJWT",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{h9(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),hI=ye("$ZodNumber",(e,t)=>{Ut.init(e,t),e._zod.pattern=e._zod.bag.pattern??cI,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...i?{received:i}:{}}),n}}),m9=ye("$ZodNumberFormat",(e,t)=>{C8.init(e,t),hI.init(e,t)}),g9=ye("$ZodBoolean",(e,t)=>{Ut.init(e,t),e._zod.pattern=E8,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),v9=ye("$ZodNull",(e,t)=>{Ut.init(e,t),e._zod.pattern=R8,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const a=n.value;return a===null||n.issues.push({expected:"null",code:"invalid_type",input:a,inst:e}),n}}),y9=ye("$ZodAny",(e,t)=>{Ut.init(e,t),e._zod.parse=n=>n}),_9=ye("$ZodUnknown",(e,t)=>{Ut.init(e,t),e._zod.parse=n=>n}),b9=ye("$ZodNever",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Jx(e,t,n){e.issues.length&&t.issues.push(...Ei(n,e.issues)),t.value[n]=e.value}const S9=ye("$ZodArray",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let c=0;c<a.length;c++){const u=a[c],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?i.push(d.then(f=>Jx(f,n,c))):Jx(d,n,c)}return i.length?Promise.all(i).then(()=>n):n}});function Pp(e,t,n,r,a){if(e.issues.length){if(a&&!(n in r))return;t.issues.push(...Ei(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function pI(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=M$(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function mI(e,t,n,r,a,i){const c=[],u=a.keySet,d=a.catchall._zod,f=d.def.type,m=d.optout==="optional";for(const p in t){if(u.has(p))continue;if(f==="never"){c.push(p);continue}const g=d.run({value:t[p],issues:[]},r);g instanceof Promise?e.push(g.then(y=>Pp(y,n,p,t,m))):Pp(g,n,p,t,m)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const w9=ye("$ZodObject",(e,t)=>{if(Ut.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...u};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=Om(()=>pI(t));xt(e._zod,"propValues",()=>{const u=t.shape,d={};for(const f in u){const m=u[f]._zod;if(m.values){d[f]??(d[f]=new Set);for(const p of m.values)d[f].add(p)}}return d});const a=td,i=t.catchall;let c;e._zod.parse=(u,d)=>{c??(c=r.value);const f=u.value;if(!a(f))return u.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),u;u.value={};const m=[],p=c.shape;for(const g of c.keys){const y=p[g],b=y._zod.optout==="optional",w=y._zod.run({value:f[g],issues:[]},d);w instanceof Promise?m.push(w.then(S=>Pp(S,u,g,f,b))):Pp(w,u,g,f,b)}return i?mI(m,f,u,d,r.value,e):m.length?Promise.all(m).then(()=>u):u}}),E9=ye("$ZodObjectJIT",(e,t)=>{w9.init(e,t);const n=e._zod.parse,r=Om(()=>pI(t)),a=g=>{const y=new F8(["shape","payload","ctx"]),b=r.value,w=T=>{const C=Qx(T);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};y.write("const input = payload.value;");const S=Object.create(null);let x=0;for(const T of b.keys)S[T]=`key_${x++}`;y.write("const newResult = {};");for(const T of b.keys){const C=S[T],O=Qx(T),M=g[T]?._zod?.optout==="optional";y.write(`const ${C} = ${w(T)};`),M?y.write(`
|
|
13
13
|
if (${C}.issues.length) {
|
|
@@ -193,7 +193,7 @@ ${r}
|
|
|
193
193
|
return {
|
|
194
194
|
result: input.example
|
|
195
195
|
}
|
|
196
|
-
}`},config:nne,outputSchema:{type:"object",properties:{result:{type:"string",description:"The result of the step"}},required:["result"],description:"The output of the step. This is a JSON Schema describing the expected output of the step."}},rne=ag("workflow_execution",gP),one=[...tne,...rne],gae=[...one],vae=ag("workflow_execution",gP),sg=Et(["passing","warning","failing","info"]),ane=Y({label:k().describe("Metric label (e.g. 'LCP', 'Performance')"),value:rt([Se(),k()]).describe("Current metric value"),unit:k().optional().describe("Unit of measurement (e.g. 's', 'ms', 'score')"),previousValue:rt([Se(),k()]).optional().describe("Previous value for delta comparison"),status:sg.optional().describe("Status of this individual metric")}),sne=Y({label:k().describe("Short name of the criterion"),description:k().optional().describe("Longer explanation"),status:sg.optional().describe("Status of this individual criterion (passing/warning/failing/info)")}),ine=Y({position:Se().describe("Current rank position"),reference_position:Se().optional().describe("Previous rank position before reordering. Used to compute delta automatically (delta = reference_position - position)."),delta:Se().optional().describe("Explicit change in position. Ignored when reference_position is provided."),label:k().describe("Item name"),image:k().describe("URL of the item image"),values:me(rt([k(),Se()])).describe("Values matching columns"),note:rt([k(),ut(k(),rt([k(),Se()]))]).optional().describe("Inline annotation or structured key-value metrics")}),cne=kb("type",[Y({type:De("markdown"),content:k().describe("Markdown content")}),Y({type:De("metrics"),title:k().optional().describe("Section title"),items:me(ane).describe("Metric items")}),Y({type:De("table"),title:k().optional().describe("Section title"),columns:me(k()).describe("Column headers"),rows:me(me(rt([k(),Se(),El()]))).describe("Table rows")}),Y({type:De("criteria"),title:k().optional().describe("Section title"),items:me(sne).describe("List of criteria items")}),Y({type:De("note"),content:k().describe("The note text")}),Y({type:De("ranked-list"),title:k().optional().describe("Section title"),rows:me(ine).describe("Ranked items")})]),vP=Et(["unread","read","dismissed"]),yP=Y({id:k().describe("Unique report identifier"),collectionId:k().describe("Collection identifier used to scope reports"),title:k().describe("Report title"),category:k().describe("Report category (e.g. 'performance', 'security', 'accessibility')"),status:sg.describe("Overall report status"),summary:k().describe("One-line summary of findings"),updatedAt:k().describe("ISO 8601 timestamp of last update"),source:k().optional().describe("Agent or service that generated the report (e.g. 'security-auditor', 'performance-monitor')"),tags:me(k()).optional().describe("Free-form tags for filtering (e.g. 'homepage', 'api', 'ci')"),lifecycleStatus:vP.optional().describe("Inbox lifecycle status of the report (default: unread)")}),lne=yP.extend({sections:me(cne).describe("Ordered content sections")});function yae(e){const t=[];let n=0;for(;n<e.length;){const r=e[n],a=e[n+1];if(r.type==="criteria"&&a?.type==="metrics"||r.type==="metrics"&&a?.type==="criteria"){const c=r.type==="criteria",u=c?r:a,d=c?a:r,f=c?n:n+1,m=c?n+1:n;t.push({type:"side-by-side",left:u,right:d,leftIdx:f,rightIdx:m}),n+=2}else t.push({type:"single",section:r,idx:n}),n+=1}return t}const une=Y({category:k().optional().describe("Filter by category (e.g. 'performance', 'security')"),status:sg.optional().describe("Filter by report status")}),dne=Y({reports:me(yP).describe("List of report summaries")}),fne=Y({id:k().describe("Report identifier")}),hne=lne,pne=Y({reportId:k().describe("Report identifier"),lifecycleStatus:vP.describe("New lifecycle status for the report")}),mne=Y({success:qe().describe("Whether the operation succeeded"),message:k().optional().describe("Human-readable result message")}),gne=[{name:"REPORTS_LIST",inputSchema:une,outputSchema:dne},{name:"REPORTS_GET",inputSchema:fne,outputSchema:hne},{name:"REPORTS_UPDATE_STATUS",inputSchema:pne,outputSchema:mne,opt:!0}],ig=Y({id:Se().int(),farmCollectionId:k(),decoCollectionId:k().optional(),title:k(),isEnabled:qe()}),vne=Y({id:Se().int().optional(),label:k(),value:rt([Se(),k()]),unit:k().optional(),status:k().optional()}),yne=Y({id:Se().int().optional(),label:k(),description:k().optional()}),_ne=Y({id:Se().int().optional(),productId:rt([Se().int(),k().min(1)]).optional(),product_id:rt([Se().int(),k().min(1)]).optional(),ProductId:rt([Se().int(),k().min(1)]).optional(),position:Se().int(),delta:Se().optional(),label:k(),image:k().optional(),sessions:Se().optional(),selectRate:Se().optional(),addToCartRate:Se().optional(),purchaseRate:Se().optional(),valueSelectRate:k().optional(),valueAvailability:k().optional()}),bne=Y({id:Se().int().optional(),reportId:Se().int().optional(),type:Et(["metrics","criteria","note","ranked-list"]),title:k().nullable().optional(),content:k().nullable().optional(),position:Se().int().optional(),metricItems:me(vne).optional(),criteriaItems:me(yne).optional(),rankedItems:me(_ne).optional()}),_P=Y({id:Se().int(),collectionId:Se().int(),title:k(),category:k().optional(),status:k().optional(),summary:k(),source:k().optional(),tags:me(k()).optional(),updatedAt:k()}),Sne=_P.extend({sections:me(bne)}),wne=Y({isEnabled:qe().optional(),limit:Se().int().min(1).max(200).optional(),offset:Se().int().min(0).optional()}),Ene=Y({success:qe(),total:Se().int().optional(),items:me(ig).optional(),error:k().optional()}),Rne=Y({id:Se().int()}),xne=Y({success:qe(),item:ig.optional(),error:k().optional()}),Tne=Y({farmCollectionId:k().min(1),decoCollectionId:k().optional(),title:k().min(1),isEnabled:qe().optional()}),One=Y({success:qe(),item:ig.optional(),error:k().optional()}),Cne=Y({id:Se().int(),farmCollectionId:k().min(1),decoCollectionId:k().optional(),title:k().min(1).optional(),isEnabled:qe().optional()}),Ane=Y({success:qe(),item:ig.optional(),error:k().optional()}),Ine=Y({collectionId:Se().int().optional(),limit:Se().int().min(1).max(200).optional(),offset:Se().int().min(0).optional()}),kne=Y({success:qe(),total:Se().int().optional(),items:me(_P).optional(),error:k().optional()}),Nne=Y({id:Se().int()}),Mne=Y({success:qe(),item:Sne.optional(),error:k().optional()}),Pne=[{name:"collection_list",inputSchema:wne,outputSchema:Ene},{name:"collection_get",inputSchema:Rne,outputSchema:xne,opt:!0},{name:"collection_create",inputSchema:Tne,outputSchema:One},{name:"collection_update",inputSchema:Cne,outputSchema:Ane},{name:"report_list",inputSchema:Ine,outputSchema:kne},{name:"report_get",inputSchema:Nne,outputSchema:Mne}],bP=Y({Page:Se().optional(),PageSize:Se().optional(),Total:Se().optional(),Pages:Se().optional()}),SP=Y({Id:Se(),Name:k(),Searchable:qe(),Highlight:qe(),DateFrom:k().nullable().optional(),DateTo:k().nullable().optional(),TotalSku:Se().optional(),TotalProducts:Se().optional()}),Dne=Y({ProductId:Se(),SkuId:Se().optional(),ProductName:k(),Position:Se().optional()});Y({page:Se().int().positive().optional(),pageSize:Se().int().positive().optional()});Y({Data:me(SP),Paging:bP.optional()});Y({collectionId:Se().int().positive()});Y({collectionId:Se().int().positive(),page:Se().int().positive().optional(),pageSize:Se().int().positive().optional()});Y({Data:me(Dne),Paging:bP.optional()});Y({words:k().min(1)});Y({Data:me(SP)});Y({subCollectionId:Se().int().positive(),skuId:Se().int().positive()});Y({SubCollectionId:Se(),SkuId:Se()});Y({subCollectionId:Se().int().positive(),skuId:Se().int().positive()});Y({success:qe()});const Lne=Y({collectionId:rt([k().min(1),Se().int().positive()]),productIds:me(rt([k().min(1),Se().int().positive()])).min(1).describe("Ordered VTEX product IDs")}),jne=Y({}).passthrough(),_ae=[{name:"VTEX_REORDER_COLLECTION",inputSchema:Lne,outputSchema:jne}],$ne=A.lazy(()=>dt(()=>import("./ranking-layout-CVBOyQIw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]))),Une={id:"collection-reorder-ranking",description:"View collection reorder ranking reports",binding:Pne,LayoutComponent:$ne,setup:e=>{e.registerSidebarGroup({id:"commerce",label:"Commerce",items:[{icon:R.jsx(_M,{size:16}),label:"Collection Ranking"}]})}};function TC(e,t,n,r){return e?e.startsWith("/")?`/${t}/${n}/${r}${e}`:e:`/${t}/${n}/${r}`}function zne(e){return{createRoutes:e,useParams:t=>el({strict:!1}),useSearch:t=>Rm({strict:!1}),useNavigate:()=>{const t=Sl(),{org:n,project:r,pluginId:a}=el({strict:!1});return i=>{const c=TC(i.to,n,r,a);return t({...i,to:c,params:{org:n,project:r,pluginId:a,...i.params}})}},useLocation:()=>yL(),Link:function(n){const{org:r,project:a,pluginId:i}=el({strict:!1}),c=TC(n.to,r,a,i);return R.jsx(Tm,{...n,to:c,params:{org:r,project:a,pluginId:i,...n.params}})},_types:{routes:void 0,routeIds:void 0}}}var kt;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const c of a)i[c]=c;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),c={};for(const u of i)c[u]=a[u];return e.objectValues(c)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&i.push(c);return i},e.find=(a,i)=>{for(const c of a)if(i(c))return c},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(c=>typeof c=="string"?`'${c}'`:c).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(kt||(kt={}));var OC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(OC||(OC={}));const Fe=kt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ws=e=>{switch(typeof e){case"undefined":return Fe.undefined;case"string":return Fe.string;case"number":return Number.isNaN(e)?Fe.nan:Fe.number;case"boolean":return Fe.boolean;case"function":return Fe.function;case"bigint":return Fe.bigint;case"symbol":return Fe.symbol;case"object":return Array.isArray(e)?Fe.array:e===null?Fe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Fe.promise:typeof Map<"u"&&e instanceof Map?Fe.map:typeof Set<"u"&&e instanceof Set?Fe.set:typeof Date<"u"&&e instanceof Date?Fe.date:Fe.object;default:return Fe.unknown}},ke=kt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class La extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const c of i.issues)if(c.code==="invalid_union")c.unionErrors.map(a);else if(c.code==="invalid_return_type")a(c.returnTypeError);else if(c.code==="invalid_arguments")a(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else{let u=r,d=0;for(;d<c.path.length;){const f=c.path[d];d===c.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(c))):u[f]=u[f]||{_errors:[]},u=u[f],d++}}};return a(this),r}static assert(t){if(!(t instanceof La))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,kt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];n[i]=n[i]||[],n[i].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}La.create=e=>new La(e);const ob=(e,t)=>{let n;switch(e.code){case ke.invalid_type:e.received===Fe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ke.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,kt.jsonStringifyReplacer)}`;break;case ke.unrecognized_keys:n=`Unrecognized key(s) in object: ${kt.joinValues(e.keys,", ")}`;break;case ke.invalid_union:n="Invalid input";break;case ke.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${kt.joinValues(e.options)}`;break;case ke.invalid_enum_value:n=`Invalid enum value. Expected ${kt.joinValues(e.options)}, received '${e.received}'`;break;case ke.invalid_arguments:n="Invalid function arguments";break;case ke.invalid_return_type:n="Invalid function return type";break;case ke.invalid_date:n="Invalid date";break;case ke.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:kt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ke.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ke.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ke.custom:n="Invalid input";break;case ke.invalid_intersection_types:n="Intersection results could not be merged";break;case ke.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ke.not_finite:n="Number must be finite";break;default:n=t.defaultError,kt.assertNever(e)}return{message:n}};let Vne=ob;function Fne(){return Vne}const Bne=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],c={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let u="";const d=r.filter(f=>!!f).slice().reverse();for(const f of d)u=f(c,{data:t,defaultError:u}).message;return{...a,path:i,message:u}};function Le(e,t){const n=Fne(),r=Bne({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ob?void 0:ob].filter(a=>!!a)});e.common.issues.push(r)}class Wr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return tt;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,c=await a.value;r.push({key:i,value:c})}return Wr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:c}=a;if(i.status==="aborted"||c.status==="aborted")return tt;i.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof c.value<"u"||a.alwaysSet)&&(r[i.value]=c.value)}return{status:t.value,value:r}}}const tt=Object.freeze({status:"aborted"}),$u=e=>({status:"dirty",value:e}),_o=e=>({status:"valid",value:e}),CC=e=>e.status==="aborted",AC=e=>e.status==="dirty",gl=e=>e.status==="valid",mm=e=>typeof Promise<"u"&&e instanceof Promise;var He;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(He||(He={}));class js{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const IC=(e,t)=>{if(gl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new La(e.common.issues);return this._error=n,this._error}}};function gt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(c,u)=>{const{message:d}=e;return c.code==="invalid_enum_value"?{message:d??u.defaultError}:typeof u.data>"u"?{message:d??r??u.defaultError}:c.code!=="invalid_type"?{message:u.defaultError}:{message:d??n??u.defaultError}},description:a}}class Ct{get description(){return this._def.description}_getType(t){return ws(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ws(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Wr,ctx:{common:t.parent.common,data:t.data,parsedType:ws(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(mm(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ws(t)},a=this._parseSync({data:t,path:r.path,parent:r});return IC(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ws(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return gl(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>gl(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ws(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(mm(a)?a:Promise.resolve(a));return IC(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const c=t(a),u=()=>i.addIssue({code:ke.custom,...r(a)});return typeof Promise<"u"&&c instanceof Promise?c.then(d=>d?!0:(u(),!1)):c?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new yl({schema:this,typeName:nt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ns.create(this,this._def)}nullable(){return _l.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ta.create(this)}promise(){return _m.create(this,this._def)}or(t){return vm.create([this,t],this._def)}and(t){return ym.create(this,t,this._def)}transform(t){return new yl({...gt(this._def),schema:this,typeName:nt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ib({...gt(this._def),innerType:this,defaultValue:n,typeName:nt.ZodDefault})}brand(){return new fre({typeName:nt.ZodBranded,type:this,...gt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new cb({...gt(this._def),innerType:this,catchValue:n,typeName:nt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return eS.create(this,t)}readonly(){return lb.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const qne=/^c[^\s-]{8,}$/i,Hne=/^[0-9a-z]+$/,Gne=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Zne=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Kne=/^[a-z0-9_-]{21}$/i,Wne=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Yne=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Qne=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let H0;const Jne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ere=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tre=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nre=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rre=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ore=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,wP="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",are=new RegExp(`^${wP}$`);function EP(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function sre(e){return new RegExp(`^${EP(e)}$`)}function ire(e){let t=`${wP}T${EP(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function cre(e,t){return!!((t==="v4"||!t)&&Jne.test(e)||(t==="v6"||!t)&&tre.test(e))}function lre(e,t){if(!Wne.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function ure(e,t){return!!((t==="v4"||!t)&&ere.test(e)||(t==="v6"||!t)&&nre.test(e))}class Ts extends Ct{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Fe.string){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_type,expected:Fe.string,received:i.parsedType}),tt}const r=new Wr;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const c=t.data.length>i.value,u=t.data.length<i.value;(c||u)&&(a=this._getOrReturnCtx(t,a),c?Le(a,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&Le(a,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")Qne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"email",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")H0||(H0=new RegExp(Xne,"u")),H0.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"emoji",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Zne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"uuid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")Kne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"nanoid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")qne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cuid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Hne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cuid2",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")Gne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"ulid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Le(a,{validation:"url",code:ke.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"regex",code:ke.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?ire(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?are.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?sre(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Yne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"duration",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?cre(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"ip",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?lre(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"jwt",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?ure(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cidr",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?rre.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"base64",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?ore.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"base64url",code:ke.invalid_string,message:i.message}),r.dirty()):kt.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ke.invalid_string,...He.errToObj(r)})}_addCheck(t){return new Ts({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...He.errToObj(t)})}url(t){return this._addCheck({kind:"url",...He.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...He.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...He.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...He.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...He.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...He.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...He.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...He.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...He.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...He.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...He.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...He.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...He.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...He.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...He.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...He.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...He.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...He.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...He.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...He.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...He.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...He.errToObj(n)})}nonempty(t){return this.min(1,He.errToObj(t))}trim(){return new Ts({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ts({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ts({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ts.create=e=>new Ts({checks:[],typeName:nt.ZodString,coerce:e?.coerce??!1,...gt(e)});function dre(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=Number.parseInt(e.toFixed(a).replace(".","")),c=Number.parseInt(t.toFixed(a).replace(".",""));return i%c/10**a}class hd extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Fe.number){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_type,expected:Fe.number,received:i.parsedType}),tt}let r;const a=new Wr;for(const i of this._def.checks)i.kind==="int"?kt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?dre(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.not_finite,message:i.message}),a.dirty()):kt.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,He.toString(n))}gt(t,n){return this.setLimit("min",t,!1,He.toString(n))}lte(t,n){return this.setLimit("max",t,!0,He.toString(n))}lt(t,n){return this.setLimit("max",t,!1,He.toString(n))}setLimit(t,n,r,a){return new hd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:He.toString(a)}]})}_addCheck(t){return new hd({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:He.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:He.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:He.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:He.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:He.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&kt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}hd.create=e=>new hd({checks:[],typeName:nt.ZodNumber,coerce:e?.coerce||!1,...gt(e)});class pd extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Fe.bigint)return this._getInvalidInput(t);let r;const a=new Wr;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):kt.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Le(n,{code:ke.invalid_type,expected:Fe.bigint,received:n.parsedType}),tt}gte(t,n){return this.setLimit("min",t,!0,He.toString(n))}gt(t,n){return this.setLimit("min",t,!1,He.toString(n))}lte(t,n){return this.setLimit("max",t,!0,He.toString(n))}lt(t,n){return this.setLimit("max",t,!1,He.toString(n))}setLimit(t,n,r,a){return new pd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:He.toString(a)}]})}_addCheck(t){return new pd({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:He.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}pd.create=e=>new pd({checks:[],typeName:nt.ZodBigInt,coerce:e?.coerce??!1,...gt(e)});class ab extends Ct{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Fe.boolean){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.boolean,received:r.parsedType}),tt}return _o(t.data)}}ab.create=e=>new ab({typeName:nt.ZodBoolean,coerce:e?.coerce||!1,...gt(e)});class gm extends Ct{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Fe.date){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_type,expected:Fe.date,received:i.parsedType}),tt}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_date}),tt}const r=new Wr;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):kt.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new gm({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:He.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:He.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}gm.create=e=>new gm({checks:[],coerce:e?.coerce||!1,typeName:nt.ZodDate,...gt(e)});class kC extends Ct{_parse(t){if(this._getType(t)!==Fe.symbol){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.symbol,received:r.parsedType}),tt}return _o(t.data)}}kC.create=e=>new kC({typeName:nt.ZodSymbol,...gt(e)});class NC extends Ct{_parse(t){if(this._getType(t)!==Fe.undefined){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.undefined,received:r.parsedType}),tt}return _o(t.data)}}NC.create=e=>new NC({typeName:nt.ZodUndefined,...gt(e)});class MC extends Ct{_parse(t){if(this._getType(t)!==Fe.null){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.null,received:r.parsedType}),tt}return _o(t.data)}}MC.create=e=>new MC({typeName:nt.ZodNull,...gt(e)});class PC extends Ct{constructor(){super(...arguments),this._any=!0}_parse(t){return _o(t.data)}}PC.create=e=>new PC({typeName:nt.ZodAny,...gt(e)});class DC extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _o(t.data)}}DC.create=e=>new DC({typeName:nt.ZodUnknown,...gt(e)});class $s extends Ct{_parse(t){const n=this._getOrReturnCtx(t);return Le(n,{code:ke.invalid_type,expected:Fe.never,received:n.parsedType}),tt}}$s.create=e=>new $s({typeName:nt.ZodNever,...gt(e)});class LC extends Ct{_parse(t){if(this._getType(t)!==Fe.undefined){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.void,received:r.parsedType}),tt}return _o(t.data)}}LC.create=e=>new LC({typeName:nt.ZodVoid,...gt(e)});class ta extends Ct{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Fe.array)return Le(n,{code:ke.invalid_type,expected:Fe.array,received:n.parsedType}),tt;if(a.exactLength!==null){const c=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(c||u)&&(Le(n,{code:c?ke.too_big:ke.too_small,minimum:u?a.exactLength.value:void 0,maximum:c?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Le(n,{code:ke.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Le(n,{code:ke.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((c,u)=>a.type._parseAsync(new js(n,c,n.path,u)))).then(c=>Wr.mergeArray(r,c));const i=[...n.data].map((c,u)=>a.type._parseSync(new js(n,c,n.path,u)));return Wr.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new ta({...this._def,minLength:{value:t,message:He.toString(n)}})}max(t,n){return new ta({...this._def,maxLength:{value:t,message:He.toString(n)}})}length(t,n){return new ta({...this._def,exactLength:{value:t,message:He.toString(n)}})}nonempty(t){return this.min(1,t)}}ta.create=(e,t)=>new ta({type:e,minLength:null,maxLength:null,exactLength:null,typeName:nt.ZodArray,...gt(t)});function Zc(e){if(e instanceof Sn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ns.create(Zc(r))}return new Sn({...e._def,shape:()=>t})}else return e instanceof ta?new ta({...e._def,type:Zc(e.element)}):e instanceof Ns?Ns.create(Zc(e.unwrap())):e instanceof _l?_l.create(Zc(e.unwrap())):e instanceof Di?Di.create(e.items.map(t=>Zc(t))):e}class Sn extends Ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=kt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Fe.object){const f=this._getOrReturnCtx(t);return Le(f,{code:ke.invalid_type,expected:Fe.object,received:f.parsedType}),tt}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:c}=this._getCached(),u=[];if(!(this._def.catchall instanceof $s&&this._def.unknownKeys==="strip"))for(const f in a.data)c.includes(f)||u.push(f);const d=[];for(const f of c){const m=i[f],p=a.data[f];d.push({key:{status:"valid",value:f},value:m._parse(new js(a,p,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof $s){const f=this._def.unknownKeys;if(f==="passthrough")for(const m of u)d.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(f==="strict")u.length>0&&(Le(a,{code:ke.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const m of u){const p=a.data[m];d.push({key:{status:"valid",value:m},value:f._parse(new js(a,p,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const m of d){const p=await m.key,g=await m.value;f.push({key:p,value:g,alwaysSet:m.alwaysSet})}return f}).then(f=>Wr.mergeObjectSync(r,f)):Wr.mergeObjectSync(r,d)}get shape(){return this._def.shape()}strict(t){return He.errToObj,new Sn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:He.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Sn({...this._def,unknownKeys:"strip"})}passthrough(){return new Sn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Sn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Sn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:nt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Sn({...this._def,catchall:t})}pick(t){const n={};for(const r of kt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Sn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of kt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Sn({...this._def,shape:()=>n})}deepPartial(){return Zc(this)}partial(t){const n={};for(const r of kt.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new Sn({...this._def,shape:()=>n})}required(t){const n={};for(const r of kt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Ns;)i=i._def.innerType;n[r]=i}return new Sn({...this._def,shape:()=>n})}keyof(){return RP(kt.objectKeys(this.shape))}}Sn.create=(e,t)=>new Sn({shape:()=>e,unknownKeys:"strip",catchall:$s.create(),typeName:nt.ZodObject,...gt(t)});Sn.strictCreate=(e,t)=>new Sn({shape:()=>e,unknownKeys:"strict",catchall:$s.create(),typeName:nt.ZodObject,...gt(t)});Sn.lazycreate=(e,t)=>new Sn({shape:e,unknownKeys:"strip",catchall:$s.create(),typeName:nt.ZodObject,...gt(t)});class vm extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const u of i)if(u.result.status==="valid")return u.result;for(const u of i)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const c=i.map(u=>new La(u.ctx.common.issues));return Le(n,{code:ke.invalid_union,unionErrors:c}),tt}if(n.common.async)return Promise.all(r.map(async i=>{const c={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:c}),ctx:c}})).then(a);{let i;const c=[];for(const d of r){const f={...n,common:{...n.common,issues:[]},parent:null},m=d._parseSync({data:n.data,path:n.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!i&&(i={result:m,ctx:f}),f.common.issues.length&&c.push(f.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const u=c.map(d=>new La(d));return Le(n,{code:ke.invalid_union,unionErrors:u}),tt}}get options(){return this._def.options}}vm.create=(e,t)=>new vm({options:e,typeName:nt.ZodUnion,...gt(t)});function sb(e,t){const n=ws(e),r=ws(t);if(e===t)return{valid:!0,data:e};if(n===Fe.object&&r===Fe.object){const a=kt.objectKeys(t),i=kt.objectKeys(e).filter(u=>a.indexOf(u)!==-1),c={...e,...t};for(const u of i){const d=sb(e[u],t[u]);if(!d.valid)return{valid:!1};c[u]=d.data}return{valid:!0,data:c}}else if(n===Fe.array&&r===Fe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const c=e[i],u=t[i],d=sb(c,u);if(!d.valid)return{valid:!1};a.push(d.data)}return{valid:!0,data:a}}else return n===Fe.date&&r===Fe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ym extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,c)=>{if(CC(i)||CC(c))return tt;const u=sb(i.value,c.value);return u.valid?((AC(i)||AC(c))&&n.dirty(),{status:n.value,value:u.data}):(Le(r,{code:ke.invalid_intersection_types}),tt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,c])=>a(i,c)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ym.create=(e,t,n)=>new ym({left:e,right:t,typeName:nt.ZodIntersection,...gt(n)});class Di extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.array)return Le(r,{code:ke.invalid_type,expected:Fe.array,received:r.parsedType}),tt;if(r.data.length<this._def.items.length)return Le(r,{code:ke.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),tt;!this._def.rest&&r.data.length>this._def.items.length&&(Le(r,{code:ke.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((c,u)=>{const d=this._def.items[u]||this._def.rest;return d?d._parse(new js(r,c,r.path,u)):null}).filter(c=>!!c);return r.common.async?Promise.all(i).then(c=>Wr.mergeArray(n,c)):Wr.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Di({...this._def,rest:t})}}Di.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Di({items:e,typeName:nt.ZodTuple,rest:null,...gt(t)})};class jC extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.map)return Le(r,{code:ke.invalid_type,expected:Fe.map,received:r.parsedType}),tt;const a=this._def.keyType,i=this._def.valueType,c=[...r.data.entries()].map(([u,d],f)=>({key:a._parse(new js(r,u,r.path,[f,"key"])),value:i._parse(new js(r,d,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const d of c){const f=await d.key,m=await d.value;if(f.status==="aborted"||m.status==="aborted")return tt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const d of c){const f=d.key,m=d.value;if(f.status==="aborted"||m.status==="aborted")return tt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}}}}jC.create=(e,t,n)=>new jC({valueType:t,keyType:e,typeName:nt.ZodMap,...gt(n)});class md extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.set)return Le(r,{code:ke.invalid_type,expected:Fe.set,received:r.parsedType}),tt;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Le(r,{code:ke.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Le(r,{code:ke.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function c(d){const f=new Set;for(const m of d){if(m.status==="aborted")return tt;m.status==="dirty"&&n.dirty(),f.add(m.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((d,f)=>i._parse(new js(r,d,r.path,f)));return r.common.async?Promise.all(u).then(d=>c(d)):c(u)}min(t,n){return new md({...this._def,minSize:{value:t,message:He.toString(n)}})}max(t,n){return new md({...this._def,maxSize:{value:t,message:He.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}md.create=(e,t)=>new md({valueType:e,minSize:null,maxSize:null,typeName:nt.ZodSet,...gt(t)});class $C extends Ct{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}$C.create=(e,t)=>new $C({getter:e,typeName:nt.ZodLazy,...gt(t)});class UC extends Ct{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Le(n,{received:n.data,code:ke.invalid_literal,expected:this._def.value}),tt}return{status:"valid",value:t.data}}get value(){return this._def.value}}UC.create=(e,t)=>new UC({value:e,typeName:nt.ZodLiteral,...gt(t)});function RP(e,t){return new vl({values:e,typeName:nt.ZodEnum,...gt(t)})}class vl extends Ct{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Le(n,{expected:kt.joinValues(r),received:n.parsedType,code:ke.invalid_type}),tt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Le(n,{received:n.data,code:ke.invalid_enum_value,options:r}),tt}return _o(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return vl.create(t,{...this._def,...n})}exclude(t,n=this._def){return vl.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}vl.create=RP;class zC extends Ct{_parse(t){const n=kt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Fe.string&&r.parsedType!==Fe.number){const a=kt.objectValues(n);return Le(r,{expected:kt.joinValues(a),received:r.parsedType,code:ke.invalid_type}),tt}if(this._cache||(this._cache=new Set(kt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=kt.objectValues(n);return Le(r,{received:r.data,code:ke.invalid_enum_value,options:a}),tt}return _o(t.data)}get enum(){return this._def.values}}zC.create=(e,t)=>new zC({values:e,typeName:nt.ZodNativeEnum,...gt(t)});class _m extends Ct{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Fe.promise&&n.common.async===!1)return Le(n,{code:ke.invalid_type,expected:Fe.promise,received:n.parsedType}),tt;const r=n.parsedType===Fe.promise?n.data:Promise.resolve(n.data);return _o(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}_m.create=(e,t)=>new _m({type:e,typeName:nt.ZodPromise,...gt(t)});class yl extends Ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===nt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:c=>{Le(r,c),c.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const c=a.transform(r.data,i);if(r.common.async)return Promise.resolve(c).then(async u=>{if(n.value==="aborted")return tt;const d=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return d.status==="aborted"?tt:d.status==="dirty"||n.value==="dirty"?$u(d.value):d});{if(n.value==="aborted")return tt;const u=this._def.schema._parseSync({data:c,path:r.path,parent:r});return u.status==="aborted"?tt:u.status==="dirty"||n.value==="dirty"?$u(u.value):u}}if(a.type==="refinement"){const c=u=>{const d=a.refinement(u,i);if(r.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?tt:(u.status==="dirty"&&n.dirty(),c(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?tt:(u.status==="dirty"&&n.dirty(),c(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!gl(c))return tt;const u=a.transform(c.value,i);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>gl(c)?Promise.resolve(a.transform(c.value,i)).then(u=>({status:n.value,value:u})):tt);kt.assertNever(a)}}yl.create=(e,t,n)=>new yl({schema:e,typeName:nt.ZodEffects,effect:t,...gt(n)});yl.createWithPreprocess=(e,t,n)=>new yl({schema:t,effect:{type:"preprocess",transform:e},typeName:nt.ZodEffects,...gt(n)});class Ns extends Ct{_parse(t){return this._getType(t)===Fe.undefined?_o(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ns.create=(e,t)=>new Ns({innerType:e,typeName:nt.ZodOptional,...gt(t)});class _l extends Ct{_parse(t){return this._getType(t)===Fe.null?_o(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_l.create=(e,t)=>new _l({innerType:e,typeName:nt.ZodNullable,...gt(t)});class ib extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Fe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ib.create=(e,t)=>new ib({innerType:e,typeName:nt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...gt(t)});class cb extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mm(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new La(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new La(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}cb.create=(e,t)=>new cb({innerType:e,typeName:nt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...gt(t)});class VC extends Ct{_parse(t){if(this._getType(t)!==Fe.nan){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.nan,received:r.parsedType}),tt}return{status:"valid",value:t.data}}}VC.create=e=>new VC({typeName:nt.ZodNaN,...gt(e)});class fre extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class eS extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?tt:i.status==="dirty"?(n.dirty(),$u(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?tt:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new eS({in:t,out:n,typeName:nt.ZodPipeline})}}class lb extends Ct{_parse(t){const n=this._def.innerType._parse(t),r=a=>(gl(a)&&(a.value=Object.freeze(a.value)),a);return mm(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}lb.create=(e,t)=>new lb({innerType:e,typeName:nt.ZodReadonly,...gt(t)});var nt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(nt||(nt={}));const hre=Ts.create,pre=ab.create;$s.create;ta.create;const mre=Sn.create;vm.create;ym.create;Di.create;const gre=vl.create;_m.create;Ns.create;_l.create;const vre=mre({path:hre().optional().default(""),flat:pre().optional().default(!1),view:gre(["table","grid"]).optional().default("grid")}),yre=zne(e=>{const{createRoute:t,lazyRouteComponent:n}=e.routing;return[t({getParentRoute:()=>e.parentRoute,path:"/",component:n(()=>dt(()=>import("./file-browser-B8HL2Mki.js").then(a=>a.b),__vite__mapDeps([34,6,35,36,37,12,19,13,38,27,39,40,41,7,42,43,4]))),validateSearch:vre})]}),_re=A.lazy(()=>dt(()=>import("./plugin-header-CmlDS_hv.js"),__vite__mapDeps([44,12,33]))),bre=A.lazy(()=>dt(()=>import("./plugin-empty-state-BIuYztei.js"),[])),Sre={id:"object-storage",description:"Browse and manage files in S3-compatible object storage",binding:Gte,renderHeader:e=>R.jsx(_re,{...e}),renderEmptyState:()=>R.jsx(bre,{}),setup:e=>{const{registerSidebarGroup:t,registerPluginRoutes:n}=e;t({id:"object-storage",label:"Object Storage",items:[{icon:R.jsx(SM,{size:16}),label:"File browser"}],defaultExpanded:!0});const r=yre.createRoutes(e);n(r)}},wre="private-registry",Ere="Organization private MCP registry with CRUD and Store integration",bae=`
|
|
196
|
+
}`},config:nne,outputSchema:{type:"object",properties:{result:{type:"string",description:"The result of the step"}},required:["result"],description:"The output of the step. This is a JSON Schema describing the expected output of the step."}},rne=ag("workflow_execution",gP),one=[...tne,...rne],gae=[...one],vae=ag("workflow_execution",gP),sg=Et(["passing","warning","failing","info"]),ane=Y({label:k().describe("Metric label (e.g. 'LCP', 'Performance')"),value:rt([Se(),k()]).describe("Current metric value"),unit:k().optional().describe("Unit of measurement (e.g. 's', 'ms', 'score')"),previousValue:rt([Se(),k()]).optional().describe("Previous value for delta comparison"),status:sg.optional().describe("Status of this individual metric")}),sne=Y({label:k().describe("Short name of the criterion"),description:k().optional().describe("Longer explanation"),status:sg.optional().describe("Status of this individual criterion (passing/warning/failing/info)")}),ine=Y({position:Se().describe("Current rank position"),reference_position:Se().optional().describe("Previous rank position before reordering. Used to compute delta automatically (delta = reference_position - position)."),delta:Se().optional().describe("Explicit change in position. Ignored when reference_position is provided."),label:k().describe("Item name"),image:k().describe("URL of the item image"),values:me(rt([k(),Se()])).describe("Values matching columns"),note:rt([k(),ut(k(),rt([k(),Se()]))]).optional().describe("Inline annotation or structured key-value metrics")}),cne=kb("type",[Y({type:De("markdown"),content:k().describe("Markdown content")}),Y({type:De("metrics"),title:k().optional().describe("Section title"),items:me(ane).describe("Metric items")}),Y({type:De("table"),title:k().optional().describe("Section title"),columns:me(k()).describe("Column headers"),rows:me(me(rt([k(),Se(),El()]))).describe("Table rows")}),Y({type:De("criteria"),title:k().optional().describe("Section title"),items:me(sne).describe("List of criteria items")}),Y({type:De("note"),content:k().describe("The note text")}),Y({type:De("ranked-list"),title:k().optional().describe("Section title"),rows:me(ine).describe("Ranked items")})]),vP=Et(["unread","read","dismissed"]),yP=Y({id:k().describe("Unique report identifier"),collectionId:k().describe("Collection identifier used to scope reports"),title:k().describe("Report title"),category:k().describe("Report category (e.g. 'performance', 'security', 'accessibility')"),status:sg.describe("Overall report status"),summary:k().describe("One-line summary of findings"),updatedAt:k().describe("ISO 8601 timestamp of last update"),source:k().optional().describe("Agent or service that generated the report (e.g. 'security-auditor', 'performance-monitor')"),tags:me(k()).optional().describe("Free-form tags for filtering (e.g. 'homepage', 'api', 'ci')"),lifecycleStatus:vP.optional().describe("Inbox lifecycle status of the report (default: unread)")}),lne=yP.extend({sections:me(cne).describe("Ordered content sections")});function yae(e){const t=[];let n=0;for(;n<e.length;){const r=e[n],a=e[n+1];if(r.type==="criteria"&&a?.type==="metrics"||r.type==="metrics"&&a?.type==="criteria"){const c=r.type==="criteria",u=c?r:a,d=c?a:r,f=c?n:n+1,m=c?n+1:n;t.push({type:"side-by-side",left:u,right:d,leftIdx:f,rightIdx:m}),n+=2}else t.push({type:"single",section:r,idx:n}),n+=1}return t}const une=Y({category:k().optional().describe("Filter by category (e.g. 'performance', 'security')"),status:sg.optional().describe("Filter by report status")}),dne=Y({reports:me(yP).describe("List of report summaries")}),fne=Y({id:k().describe("Report identifier")}),hne=lne,pne=Y({reportId:k().describe("Report identifier"),lifecycleStatus:vP.describe("New lifecycle status for the report")}),mne=Y({success:qe().describe("Whether the operation succeeded"),message:k().optional().describe("Human-readable result message")}),gne=[{name:"REPORTS_LIST",inputSchema:une,outputSchema:dne},{name:"REPORTS_GET",inputSchema:fne,outputSchema:hne},{name:"REPORTS_UPDATE_STATUS",inputSchema:pne,outputSchema:mne,opt:!0}],ig=Y({id:Se().int(),farmCollectionId:k(),decoCollectionId:k().optional(),title:k(),isEnabled:qe()}),vne=Y({id:Se().int().optional(),label:k(),value:rt([Se(),k()]),unit:k().optional(),status:k().optional()}),yne=Y({id:Se().int().optional(),label:k(),description:k().optional()}),_ne=Y({id:Se().int().optional(),productId:rt([Se().int(),k().min(1)]).optional(),product_id:rt([Se().int(),k().min(1)]).optional(),ProductId:rt([Se().int(),k().min(1)]).optional(),position:Se().int(),delta:Se().optional(),label:k(),image:k().optional(),sessions:Se().optional(),selectRate:Se().optional(),addToCartRate:Se().optional(),purchaseRate:Se().optional(),valueSelectRate:k().optional(),valueAvailability:k().optional()}),bne=Y({id:Se().int().optional(),reportId:Se().int().optional(),type:Et(["metrics","criteria","note","ranked-list"]),title:k().nullable().optional(),content:k().nullable().optional(),position:Se().int().optional(),metricItems:me(vne).optional(),criteriaItems:me(yne).optional(),rankedItems:me(_ne).optional()}),_P=Y({id:Se().int(),collectionId:Se().int(),title:k(),category:k().optional(),status:k().optional(),summary:k(),source:k().optional(),tags:me(k()).optional(),updatedAt:k()}),Sne=_P.extend({sections:me(bne)}),wne=Y({isEnabled:qe().optional(),limit:Se().int().min(1).max(200).optional(),offset:Se().int().min(0).optional()}),Ene=Y({success:qe(),total:Se().int().optional(),items:me(ig).optional(),error:k().optional()}),Rne=Y({id:Se().int()}),xne=Y({success:qe(),item:ig.optional(),error:k().optional()}),Tne=Y({farmCollectionId:k().min(1),decoCollectionId:k().optional(),title:k().min(1),isEnabled:qe().optional()}),One=Y({success:qe(),item:ig.optional(),error:k().optional()}),Cne=Y({id:Se().int(),farmCollectionId:k().min(1),decoCollectionId:k().optional(),title:k().min(1).optional(),isEnabled:qe().optional()}),Ane=Y({success:qe(),item:ig.optional(),error:k().optional()}),Ine=Y({collectionId:Se().int().optional(),limit:Se().int().min(1).max(200).optional(),offset:Se().int().min(0).optional()}),kne=Y({success:qe(),total:Se().int().optional(),items:me(_P).optional(),error:k().optional()}),Nne=Y({id:Se().int()}),Mne=Y({success:qe(),item:Sne.optional(),error:k().optional()}),Pne=[{name:"collection_list",inputSchema:wne,outputSchema:Ene},{name:"collection_get",inputSchema:Rne,outputSchema:xne,opt:!0},{name:"collection_create",inputSchema:Tne,outputSchema:One},{name:"collection_update",inputSchema:Cne,outputSchema:Ane},{name:"report_list",inputSchema:Ine,outputSchema:kne},{name:"report_get",inputSchema:Nne,outputSchema:Mne}],bP=Y({Page:Se().optional(),PageSize:Se().optional(),Total:Se().optional(),Pages:Se().optional()}),SP=Y({Id:Se(),Name:k(),Searchable:qe(),Highlight:qe(),DateFrom:k().nullable().optional(),DateTo:k().nullable().optional(),TotalSku:Se().optional(),TotalProducts:Se().optional()}),Dne=Y({ProductId:Se(),SkuId:Se().optional(),ProductName:k(),Position:Se().optional()});Y({page:Se().int().positive().optional(),pageSize:Se().int().positive().optional()});Y({Data:me(SP),Paging:bP.optional()});Y({collectionId:Se().int().positive()});Y({collectionId:Se().int().positive(),page:Se().int().positive().optional(),pageSize:Se().int().positive().optional()});Y({Data:me(Dne),Paging:bP.optional()});Y({words:k().min(1)});Y({Data:me(SP)});Y({subCollectionId:Se().int().positive(),skuId:Se().int().positive()});Y({SubCollectionId:Se(),SkuId:Se()});Y({subCollectionId:Se().int().positive(),skuId:Se().int().positive()});Y({success:qe()});const Lne=Y({collectionId:rt([k().min(1),Se().int().positive()]),productIds:me(rt([k().min(1),Se().int().positive()])).min(1).describe("Ordered VTEX product IDs")}),jne=Y({}).passthrough(),_ae=[{name:"VTEX_REORDER_COLLECTION",inputSchema:Lne,outputSchema:jne}],$ne=A.lazy(()=>dt(()=>import("./ranking-layout-Difw19Tu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]))),Une={id:"collection-reorder-ranking",description:"View collection reorder ranking reports",binding:Pne,LayoutComponent:$ne,setup:e=>{e.registerSidebarGroup({id:"commerce",label:"Commerce",items:[{icon:R.jsx(_M,{size:16}),label:"Collection Ranking"}]})}};function TC(e,t,n,r){return e?e.startsWith("/")?`/${t}/${n}/${r}${e}`:e:`/${t}/${n}/${r}`}function zne(e){return{createRoutes:e,useParams:t=>el({strict:!1}),useSearch:t=>Rm({strict:!1}),useNavigate:()=>{const t=Sl(),{org:n,project:r,pluginId:a}=el({strict:!1});return i=>{const c=TC(i.to,n,r,a);return t({...i,to:c,params:{org:n,project:r,pluginId:a,...i.params}})}},useLocation:()=>yL(),Link:function(n){const{org:r,project:a,pluginId:i}=el({strict:!1}),c=TC(n.to,r,a,i);return R.jsx(Tm,{...n,to:c,params:{org:r,project:a,pluginId:i,...n.params}})},_types:{routes:void 0,routeIds:void 0}}}var kt;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const c of a)i[c]=c;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),c={};for(const u of i)c[u]=a[u];return e.objectValues(c)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&i.push(c);return i},e.find=(a,i)=>{for(const c of a)if(i(c))return c},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(c=>typeof c=="string"?`'${c}'`:c).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(kt||(kt={}));var OC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(OC||(OC={}));const Fe=kt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ws=e=>{switch(typeof e){case"undefined":return Fe.undefined;case"string":return Fe.string;case"number":return Number.isNaN(e)?Fe.nan:Fe.number;case"boolean":return Fe.boolean;case"function":return Fe.function;case"bigint":return Fe.bigint;case"symbol":return Fe.symbol;case"object":return Array.isArray(e)?Fe.array:e===null?Fe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Fe.promise:typeof Map<"u"&&e instanceof Map?Fe.map:typeof Set<"u"&&e instanceof Set?Fe.set:typeof Date<"u"&&e instanceof Date?Fe.date:Fe.object;default:return Fe.unknown}},ke=kt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class La extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const c of i.issues)if(c.code==="invalid_union")c.unionErrors.map(a);else if(c.code==="invalid_return_type")a(c.returnTypeError);else if(c.code==="invalid_arguments")a(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else{let u=r,d=0;for(;d<c.path.length;){const f=c.path[d];d===c.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(c))):u[f]=u[f]||{_errors:[]},u=u[f],d++}}};return a(this),r}static assert(t){if(!(t instanceof La))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,kt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];n[i]=n[i]||[],n[i].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}La.create=e=>new La(e);const ob=(e,t)=>{let n;switch(e.code){case ke.invalid_type:e.received===Fe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ke.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,kt.jsonStringifyReplacer)}`;break;case ke.unrecognized_keys:n=`Unrecognized key(s) in object: ${kt.joinValues(e.keys,", ")}`;break;case ke.invalid_union:n="Invalid input";break;case ke.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${kt.joinValues(e.options)}`;break;case ke.invalid_enum_value:n=`Invalid enum value. Expected ${kt.joinValues(e.options)}, received '${e.received}'`;break;case ke.invalid_arguments:n="Invalid function arguments";break;case ke.invalid_return_type:n="Invalid function return type";break;case ke.invalid_date:n="Invalid date";break;case ke.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:kt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ke.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ke.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ke.custom:n="Invalid input";break;case ke.invalid_intersection_types:n="Intersection results could not be merged";break;case ke.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ke.not_finite:n="Number must be finite";break;default:n=t.defaultError,kt.assertNever(e)}return{message:n}};let Vne=ob;function Fne(){return Vne}const Bne=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],c={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let u="";const d=r.filter(f=>!!f).slice().reverse();for(const f of d)u=f(c,{data:t,defaultError:u}).message;return{...a,path:i,message:u}};function Le(e,t){const n=Fne(),r=Bne({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ob?void 0:ob].filter(a=>!!a)});e.common.issues.push(r)}class Wr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return tt;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,c=await a.value;r.push({key:i,value:c})}return Wr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:c}=a;if(i.status==="aborted"||c.status==="aborted")return tt;i.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof c.value<"u"||a.alwaysSet)&&(r[i.value]=c.value)}return{status:t.value,value:r}}}const tt=Object.freeze({status:"aborted"}),$u=e=>({status:"dirty",value:e}),_o=e=>({status:"valid",value:e}),CC=e=>e.status==="aborted",AC=e=>e.status==="dirty",gl=e=>e.status==="valid",mm=e=>typeof Promise<"u"&&e instanceof Promise;var He;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(He||(He={}));class js{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const IC=(e,t)=>{if(gl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new La(e.common.issues);return this._error=n,this._error}}};function gt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(c,u)=>{const{message:d}=e;return c.code==="invalid_enum_value"?{message:d??u.defaultError}:typeof u.data>"u"?{message:d??r??u.defaultError}:c.code!=="invalid_type"?{message:u.defaultError}:{message:d??n??u.defaultError}},description:a}}class Ct{get description(){return this._def.description}_getType(t){return ws(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ws(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Wr,ctx:{common:t.parent.common,data:t.data,parsedType:ws(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(mm(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ws(t)},a=this._parseSync({data:t,path:r.path,parent:r});return IC(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ws(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return gl(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>gl(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ws(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(mm(a)?a:Promise.resolve(a));return IC(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const c=t(a),u=()=>i.addIssue({code:ke.custom,...r(a)});return typeof Promise<"u"&&c instanceof Promise?c.then(d=>d?!0:(u(),!1)):c?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new yl({schema:this,typeName:nt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ns.create(this,this._def)}nullable(){return _l.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ta.create(this)}promise(){return _m.create(this,this._def)}or(t){return vm.create([this,t],this._def)}and(t){return ym.create(this,t,this._def)}transform(t){return new yl({...gt(this._def),schema:this,typeName:nt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ib({...gt(this._def),innerType:this,defaultValue:n,typeName:nt.ZodDefault})}brand(){return new fre({typeName:nt.ZodBranded,type:this,...gt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new cb({...gt(this._def),innerType:this,catchValue:n,typeName:nt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return eS.create(this,t)}readonly(){return lb.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const qne=/^c[^\s-]{8,}$/i,Hne=/^[0-9a-z]+$/,Gne=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Zne=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Kne=/^[a-z0-9_-]{21}$/i,Wne=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Yne=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Qne=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let H0;const Jne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ere=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tre=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nre=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rre=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ore=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,wP="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",are=new RegExp(`^${wP}$`);function EP(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function sre(e){return new RegExp(`^${EP(e)}$`)}function ire(e){let t=`${wP}T${EP(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function cre(e,t){return!!((t==="v4"||!t)&&Jne.test(e)||(t==="v6"||!t)&&tre.test(e))}function lre(e,t){if(!Wne.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function ure(e,t){return!!((t==="v4"||!t)&&ere.test(e)||(t==="v6"||!t)&&nre.test(e))}class Ts extends Ct{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Fe.string){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_type,expected:Fe.string,received:i.parsedType}),tt}const r=new Wr;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const c=t.data.length>i.value,u=t.data.length<i.value;(c||u)&&(a=this._getOrReturnCtx(t,a),c?Le(a,{code:ke.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&Le(a,{code:ke.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")Qne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"email",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")H0||(H0=new RegExp(Xne,"u")),H0.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"emoji",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Zne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"uuid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")Kne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"nanoid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")qne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cuid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Hne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cuid2",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")Gne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"ulid",code:ke.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Le(a,{validation:"url",code:ke.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"regex",code:ke.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?ire(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?are.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?sre(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Yne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"duration",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?cre(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"ip",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?lre(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"jwt",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?ure(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cidr",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?rre.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"base64",code:ke.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?ore.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"base64url",code:ke.invalid_string,message:i.message}),r.dirty()):kt.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ke.invalid_string,...He.errToObj(r)})}_addCheck(t){return new Ts({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...He.errToObj(t)})}url(t){return this._addCheck({kind:"url",...He.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...He.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...He.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...He.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...He.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...He.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...He.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...He.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...He.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...He.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...He.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...He.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...He.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...He.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...He.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...He.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...He.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...He.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...He.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...He.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...He.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...He.errToObj(n)})}nonempty(t){return this.min(1,He.errToObj(t))}trim(){return new Ts({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ts({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ts({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ts.create=e=>new Ts({checks:[],typeName:nt.ZodString,coerce:e?.coerce??!1,...gt(e)});function dre(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=Number.parseInt(e.toFixed(a).replace(".","")),c=Number.parseInt(t.toFixed(a).replace(".",""));return i%c/10**a}class hd extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Fe.number){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_type,expected:Fe.number,received:i.parsedType}),tt}let r;const a=new Wr;for(const i of this._def.checks)i.kind==="int"?kt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?dre(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.not_finite,message:i.message}),a.dirty()):kt.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,He.toString(n))}gt(t,n){return this.setLimit("min",t,!1,He.toString(n))}lte(t,n){return this.setLimit("max",t,!0,He.toString(n))}lt(t,n){return this.setLimit("max",t,!1,He.toString(n))}setLimit(t,n,r,a){return new hd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:He.toString(a)}]})}_addCheck(t){return new hd({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:He.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:He.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:He.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:He.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:He.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&kt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}hd.create=e=>new hd({checks:[],typeName:nt.ZodNumber,coerce:e?.coerce||!1,...gt(e)});class pd extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Fe.bigint)return this._getInvalidInput(t);let r;const a=new Wr;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:ke.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):kt.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Le(n,{code:ke.invalid_type,expected:Fe.bigint,received:n.parsedType}),tt}gte(t,n){return this.setLimit("min",t,!0,He.toString(n))}gt(t,n){return this.setLimit("min",t,!1,He.toString(n))}lte(t,n){return this.setLimit("max",t,!0,He.toString(n))}lt(t,n){return this.setLimit("max",t,!1,He.toString(n))}setLimit(t,n,r,a){return new pd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:He.toString(a)}]})}_addCheck(t){return new pd({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:He.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}pd.create=e=>new pd({checks:[],typeName:nt.ZodBigInt,coerce:e?.coerce??!1,...gt(e)});class ab extends Ct{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Fe.boolean){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.boolean,received:r.parsedType}),tt}return _o(t.data)}}ab.create=e=>new ab({typeName:nt.ZodBoolean,coerce:e?.coerce||!1,...gt(e)});class gm extends Ct{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Fe.date){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_type,expected:Fe.date,received:i.parsedType}),tt}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Le(i,{code:ke.invalid_date}),tt}const r=new Wr;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:ke.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):kt.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new gm({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:He.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:He.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}gm.create=e=>new gm({checks:[],coerce:e?.coerce||!1,typeName:nt.ZodDate,...gt(e)});class kC extends Ct{_parse(t){if(this._getType(t)!==Fe.symbol){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.symbol,received:r.parsedType}),tt}return _o(t.data)}}kC.create=e=>new kC({typeName:nt.ZodSymbol,...gt(e)});class NC extends Ct{_parse(t){if(this._getType(t)!==Fe.undefined){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.undefined,received:r.parsedType}),tt}return _o(t.data)}}NC.create=e=>new NC({typeName:nt.ZodUndefined,...gt(e)});class MC extends Ct{_parse(t){if(this._getType(t)!==Fe.null){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.null,received:r.parsedType}),tt}return _o(t.data)}}MC.create=e=>new MC({typeName:nt.ZodNull,...gt(e)});class PC extends Ct{constructor(){super(...arguments),this._any=!0}_parse(t){return _o(t.data)}}PC.create=e=>new PC({typeName:nt.ZodAny,...gt(e)});class DC extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _o(t.data)}}DC.create=e=>new DC({typeName:nt.ZodUnknown,...gt(e)});class $s extends Ct{_parse(t){const n=this._getOrReturnCtx(t);return Le(n,{code:ke.invalid_type,expected:Fe.never,received:n.parsedType}),tt}}$s.create=e=>new $s({typeName:nt.ZodNever,...gt(e)});class LC extends Ct{_parse(t){if(this._getType(t)!==Fe.undefined){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.void,received:r.parsedType}),tt}return _o(t.data)}}LC.create=e=>new LC({typeName:nt.ZodVoid,...gt(e)});class ta extends Ct{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Fe.array)return Le(n,{code:ke.invalid_type,expected:Fe.array,received:n.parsedType}),tt;if(a.exactLength!==null){const c=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(c||u)&&(Le(n,{code:c?ke.too_big:ke.too_small,minimum:u?a.exactLength.value:void 0,maximum:c?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Le(n,{code:ke.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Le(n,{code:ke.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((c,u)=>a.type._parseAsync(new js(n,c,n.path,u)))).then(c=>Wr.mergeArray(r,c));const i=[...n.data].map((c,u)=>a.type._parseSync(new js(n,c,n.path,u)));return Wr.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new ta({...this._def,minLength:{value:t,message:He.toString(n)}})}max(t,n){return new ta({...this._def,maxLength:{value:t,message:He.toString(n)}})}length(t,n){return new ta({...this._def,exactLength:{value:t,message:He.toString(n)}})}nonempty(t){return this.min(1,t)}}ta.create=(e,t)=>new ta({type:e,minLength:null,maxLength:null,exactLength:null,typeName:nt.ZodArray,...gt(t)});function Zc(e){if(e instanceof Sn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ns.create(Zc(r))}return new Sn({...e._def,shape:()=>t})}else return e instanceof ta?new ta({...e._def,type:Zc(e.element)}):e instanceof Ns?Ns.create(Zc(e.unwrap())):e instanceof _l?_l.create(Zc(e.unwrap())):e instanceof Di?Di.create(e.items.map(t=>Zc(t))):e}class Sn extends Ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=kt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Fe.object){const f=this._getOrReturnCtx(t);return Le(f,{code:ke.invalid_type,expected:Fe.object,received:f.parsedType}),tt}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:c}=this._getCached(),u=[];if(!(this._def.catchall instanceof $s&&this._def.unknownKeys==="strip"))for(const f in a.data)c.includes(f)||u.push(f);const d=[];for(const f of c){const m=i[f],p=a.data[f];d.push({key:{status:"valid",value:f},value:m._parse(new js(a,p,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof $s){const f=this._def.unknownKeys;if(f==="passthrough")for(const m of u)d.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(f==="strict")u.length>0&&(Le(a,{code:ke.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const m of u){const p=a.data[m];d.push({key:{status:"valid",value:m},value:f._parse(new js(a,p,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const m of d){const p=await m.key,g=await m.value;f.push({key:p,value:g,alwaysSet:m.alwaysSet})}return f}).then(f=>Wr.mergeObjectSync(r,f)):Wr.mergeObjectSync(r,d)}get shape(){return this._def.shape()}strict(t){return He.errToObj,new Sn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:He.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Sn({...this._def,unknownKeys:"strip"})}passthrough(){return new Sn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Sn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Sn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:nt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Sn({...this._def,catchall:t})}pick(t){const n={};for(const r of kt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Sn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of kt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Sn({...this._def,shape:()=>n})}deepPartial(){return Zc(this)}partial(t){const n={};for(const r of kt.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new Sn({...this._def,shape:()=>n})}required(t){const n={};for(const r of kt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Ns;)i=i._def.innerType;n[r]=i}return new Sn({...this._def,shape:()=>n})}keyof(){return RP(kt.objectKeys(this.shape))}}Sn.create=(e,t)=>new Sn({shape:()=>e,unknownKeys:"strip",catchall:$s.create(),typeName:nt.ZodObject,...gt(t)});Sn.strictCreate=(e,t)=>new Sn({shape:()=>e,unknownKeys:"strict",catchall:$s.create(),typeName:nt.ZodObject,...gt(t)});Sn.lazycreate=(e,t)=>new Sn({shape:e,unknownKeys:"strip",catchall:$s.create(),typeName:nt.ZodObject,...gt(t)});class vm extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const u of i)if(u.result.status==="valid")return u.result;for(const u of i)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const c=i.map(u=>new La(u.ctx.common.issues));return Le(n,{code:ke.invalid_union,unionErrors:c}),tt}if(n.common.async)return Promise.all(r.map(async i=>{const c={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:c}),ctx:c}})).then(a);{let i;const c=[];for(const d of r){const f={...n,common:{...n.common,issues:[]},parent:null},m=d._parseSync({data:n.data,path:n.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!i&&(i={result:m,ctx:f}),f.common.issues.length&&c.push(f.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const u=c.map(d=>new La(d));return Le(n,{code:ke.invalid_union,unionErrors:u}),tt}}get options(){return this._def.options}}vm.create=(e,t)=>new vm({options:e,typeName:nt.ZodUnion,...gt(t)});function sb(e,t){const n=ws(e),r=ws(t);if(e===t)return{valid:!0,data:e};if(n===Fe.object&&r===Fe.object){const a=kt.objectKeys(t),i=kt.objectKeys(e).filter(u=>a.indexOf(u)!==-1),c={...e,...t};for(const u of i){const d=sb(e[u],t[u]);if(!d.valid)return{valid:!1};c[u]=d.data}return{valid:!0,data:c}}else if(n===Fe.array&&r===Fe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const c=e[i],u=t[i],d=sb(c,u);if(!d.valid)return{valid:!1};a.push(d.data)}return{valid:!0,data:a}}else return n===Fe.date&&r===Fe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ym extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,c)=>{if(CC(i)||CC(c))return tt;const u=sb(i.value,c.value);return u.valid?((AC(i)||AC(c))&&n.dirty(),{status:n.value,value:u.data}):(Le(r,{code:ke.invalid_intersection_types}),tt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,c])=>a(i,c)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ym.create=(e,t,n)=>new ym({left:e,right:t,typeName:nt.ZodIntersection,...gt(n)});class Di extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.array)return Le(r,{code:ke.invalid_type,expected:Fe.array,received:r.parsedType}),tt;if(r.data.length<this._def.items.length)return Le(r,{code:ke.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),tt;!this._def.rest&&r.data.length>this._def.items.length&&(Le(r,{code:ke.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((c,u)=>{const d=this._def.items[u]||this._def.rest;return d?d._parse(new js(r,c,r.path,u)):null}).filter(c=>!!c);return r.common.async?Promise.all(i).then(c=>Wr.mergeArray(n,c)):Wr.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Di({...this._def,rest:t})}}Di.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Di({items:e,typeName:nt.ZodTuple,rest:null,...gt(t)})};class jC extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.map)return Le(r,{code:ke.invalid_type,expected:Fe.map,received:r.parsedType}),tt;const a=this._def.keyType,i=this._def.valueType,c=[...r.data.entries()].map(([u,d],f)=>({key:a._parse(new js(r,u,r.path,[f,"key"])),value:i._parse(new js(r,d,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const d of c){const f=await d.key,m=await d.value;if(f.status==="aborted"||m.status==="aborted")return tt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const d of c){const f=d.key,m=d.value;if(f.status==="aborted"||m.status==="aborted")return tt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}}}}jC.create=(e,t,n)=>new jC({valueType:t,keyType:e,typeName:nt.ZodMap,...gt(n)});class md extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.set)return Le(r,{code:ke.invalid_type,expected:Fe.set,received:r.parsedType}),tt;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Le(r,{code:ke.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Le(r,{code:ke.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function c(d){const f=new Set;for(const m of d){if(m.status==="aborted")return tt;m.status==="dirty"&&n.dirty(),f.add(m.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((d,f)=>i._parse(new js(r,d,r.path,f)));return r.common.async?Promise.all(u).then(d=>c(d)):c(u)}min(t,n){return new md({...this._def,minSize:{value:t,message:He.toString(n)}})}max(t,n){return new md({...this._def,maxSize:{value:t,message:He.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}md.create=(e,t)=>new md({valueType:e,minSize:null,maxSize:null,typeName:nt.ZodSet,...gt(t)});class $C extends Ct{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}$C.create=(e,t)=>new $C({getter:e,typeName:nt.ZodLazy,...gt(t)});class UC extends Ct{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Le(n,{received:n.data,code:ke.invalid_literal,expected:this._def.value}),tt}return{status:"valid",value:t.data}}get value(){return this._def.value}}UC.create=(e,t)=>new UC({value:e,typeName:nt.ZodLiteral,...gt(t)});function RP(e,t){return new vl({values:e,typeName:nt.ZodEnum,...gt(t)})}class vl extends Ct{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Le(n,{expected:kt.joinValues(r),received:n.parsedType,code:ke.invalid_type}),tt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Le(n,{received:n.data,code:ke.invalid_enum_value,options:r}),tt}return _o(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return vl.create(t,{...this._def,...n})}exclude(t,n=this._def){return vl.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}vl.create=RP;class zC extends Ct{_parse(t){const n=kt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Fe.string&&r.parsedType!==Fe.number){const a=kt.objectValues(n);return Le(r,{expected:kt.joinValues(a),received:r.parsedType,code:ke.invalid_type}),tt}if(this._cache||(this._cache=new Set(kt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=kt.objectValues(n);return Le(r,{received:r.data,code:ke.invalid_enum_value,options:a}),tt}return _o(t.data)}get enum(){return this._def.values}}zC.create=(e,t)=>new zC({values:e,typeName:nt.ZodNativeEnum,...gt(t)});class _m extends Ct{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Fe.promise&&n.common.async===!1)return Le(n,{code:ke.invalid_type,expected:Fe.promise,received:n.parsedType}),tt;const r=n.parsedType===Fe.promise?n.data:Promise.resolve(n.data);return _o(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}_m.create=(e,t)=>new _m({type:e,typeName:nt.ZodPromise,...gt(t)});class yl extends Ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===nt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:c=>{Le(r,c),c.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const c=a.transform(r.data,i);if(r.common.async)return Promise.resolve(c).then(async u=>{if(n.value==="aborted")return tt;const d=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return d.status==="aborted"?tt:d.status==="dirty"||n.value==="dirty"?$u(d.value):d});{if(n.value==="aborted")return tt;const u=this._def.schema._parseSync({data:c,path:r.path,parent:r});return u.status==="aborted"?tt:u.status==="dirty"||n.value==="dirty"?$u(u.value):u}}if(a.type==="refinement"){const c=u=>{const d=a.refinement(u,i);if(r.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?tt:(u.status==="dirty"&&n.dirty(),c(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?tt:(u.status==="dirty"&&n.dirty(),c(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!gl(c))return tt;const u=a.transform(c.value,i);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>gl(c)?Promise.resolve(a.transform(c.value,i)).then(u=>({status:n.value,value:u})):tt);kt.assertNever(a)}}yl.create=(e,t,n)=>new yl({schema:e,typeName:nt.ZodEffects,effect:t,...gt(n)});yl.createWithPreprocess=(e,t,n)=>new yl({schema:t,effect:{type:"preprocess",transform:e},typeName:nt.ZodEffects,...gt(n)});class Ns extends Ct{_parse(t){return this._getType(t)===Fe.undefined?_o(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ns.create=(e,t)=>new Ns({innerType:e,typeName:nt.ZodOptional,...gt(t)});class _l extends Ct{_parse(t){return this._getType(t)===Fe.null?_o(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_l.create=(e,t)=>new _l({innerType:e,typeName:nt.ZodNullable,...gt(t)});class ib extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Fe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ib.create=(e,t)=>new ib({innerType:e,typeName:nt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...gt(t)});class cb extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mm(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new La(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new La(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}cb.create=(e,t)=>new cb({innerType:e,typeName:nt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...gt(t)});class VC extends Ct{_parse(t){if(this._getType(t)!==Fe.nan){const r=this._getOrReturnCtx(t);return Le(r,{code:ke.invalid_type,expected:Fe.nan,received:r.parsedType}),tt}return{status:"valid",value:t.data}}}VC.create=e=>new VC({typeName:nt.ZodNaN,...gt(e)});class fre extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class eS extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?tt:i.status==="dirty"?(n.dirty(),$u(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?tt:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new eS({in:t,out:n,typeName:nt.ZodPipeline})}}class lb extends Ct{_parse(t){const n=this._def.innerType._parse(t),r=a=>(gl(a)&&(a.value=Object.freeze(a.value)),a);return mm(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}lb.create=(e,t)=>new lb({innerType:e,typeName:nt.ZodReadonly,...gt(t)});var nt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(nt||(nt={}));const hre=Ts.create,pre=ab.create;$s.create;ta.create;const mre=Sn.create;vm.create;ym.create;Di.create;const gre=vl.create;_m.create;Ns.create;_l.create;const vre=mre({path:hre().optional().default(""),flat:pre().optional().default(!1),view:gre(["table","grid"]).optional().default("grid")}),yre=zne(e=>{const{createRoute:t,lazyRouteComponent:n}=e.routing;return[t({getParentRoute:()=>e.parentRoute,path:"/",component:n(()=>dt(()=>import("./file-browser-Dyg6fn_p.js").then(a=>a.b),__vite__mapDeps([34,6,35,36,37,12,19,13,38,27,39,40,41,7,42,43,4]))),validateSearch:vre})]}),_re=A.lazy(()=>dt(()=>import("./plugin-header-C8NyMNoe.js"),__vite__mapDeps([44,12,33]))),bre=A.lazy(()=>dt(()=>import("./plugin-empty-state-CfkX75Qn.js"),[])),Sre={id:"object-storage",description:"Browse and manage files in S3-compatible object storage",binding:Gte,renderHeader:e=>R.jsx(_re,{...e}),renderEmptyState:()=>R.jsx(bre,{}),setup:e=>{const{registerSidebarGroup:t,registerPluginRoutes:n}=e;t({id:"object-storage",label:"Object Storage",items:[{icon:R.jsx(SM,{size:16}),label:"File browser"}],defaultExpanded:!0});const r=yre.createRoutes(e);n(r)}},wre="private-registry",Ere="Organization private MCP registry with CRUD and Store integration",bae=`
|
|
197
197
|
You are an MCP tool tester running automated integration checks.
|
|
198
198
|
|
|
199
199
|
Goal:
|
|
@@ -215,4 +215,4 @@ At the end, provide a concise summary of:
|
|
|
215
215
|
- What failed
|
|
216
216
|
- What could not be tested and why
|
|
217
217
|
- If some tool needs user-specific context (email/account/tenant), explicitly output a "CONTEXT_REQUIRED" note with what is needed.
|
|
218
|
-
`.trim(),Rre=A.lazy(()=>dt(()=>import("./registry-layout-DHUM9TZu.js"),__vite__mapDeps([45,30,46,8,2,4,5,35,36,47,14,11,12,13,22,48,49,50,16,51,52,7,18,9,10,19,38,43,53,54,42,55,56,57,33,15,58,20,59,60,37,61,62,32,3,63,64,65,66,17,67,68,69]))),xre={id:wre,description:Ere,LayoutComponent:Rre,setup:e=>{e.registerSidebarGroup({id:"private-registry",label:"Private Registry",items:[{icon:R.jsx(wM,{size:16}),label:"Registry"}],defaultExpanded:!0})}},Tre=A.lazy(()=>dt(()=>import("./reports-layout-GUNpInzx.js"),__vite__mapDeps([70,1,2,3,4,5,6,7,8,12,33,19,20,71,21,64,72,30,31,32,22,23,24,25,26,13,27,28,29,47,54,56,57]))),Ore={id:"reports",description:"View automated reports with actionable insights",binding:gne,LayoutComponent:Tre,setup:e=>{e.registerSidebarGroup({id:"observability",label:"Observability",items:[{icon:R.jsx(bM,{size:16}),label:"Reports"}]})}},Cre="user-sandbox",Are="Create embeddable integration flows for platform end-users";var Ire=(e,t,n,r,a,i,c,u)=>{let d=document.documentElement,f=["light","dark"];function m(y){(Array.isArray(e)?e:[e]).forEach(b=>{let w=b==="class",S=w&&i?a.map(x=>i[x]||x):a;w?(d.classList.remove(...S),d.classList.add(i&&i[y]?i[y]:y)):d.setAttribute(b,y)}),p(y)}function p(y){u&&f.includes(y)&&(d.style.colorScheme=y)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let y=localStorage.getItem(t)||n,b=c&&y==="system"?g():y;m(b)}catch{}},kre=A.createContext(void 0),Nre={setTheme:e=>{},themes:[]},Sae=()=>{var e;return(e=A.useContext(kre))!=null?e:Nre};A.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:c,themes:u,nonce:d,scriptProps:f})=>{let m=JSON.stringify([n,t,i,e,u,c,r,a]).slice(1,-1);return A.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${Ire.toString()})(${m})`}})});const bl="org-admin",Mre={from({org:e,project:t}){if(e?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${e}/${t}`},parse(e){e.startsWith("/")&&(e=e.slice(1));const[t,n]=e.split("/");if(!t||!n)throw new Error("Invalid locator");return{org:t,project:n}},isOrgAdminProject(e){return e.split("/")[1]===bl},adminProject(e){return`${e}/${bl}`}},xP=A.createContext(void 0),wae=()=>{const e=A.useContext(xP);if(!e)throw new Error("useProjectContext must be used within a ProjectContextProvider");return e},Eae=e=>{const t=Li.c(10),{children:n,org:r,project:a}=e;let i;t[0]!==r.slug||t[1]!==a.slug?(i=Mre.from({org:r.slug,project:a.slug}),t[0]=r.slug,t[1]=a.slug,t[2]=i):i=t[2];const c=i;let u;t[3]!==c||t[4]!==r||t[5]!==a?(u={org:r,project:a,locator:c},t[3]=c,t[4]=r,t[5]=a,t[6]=u):u=t[6];const d=u;let f;return t[7]!==n||t[8]!==d?(f=R.jsx(xP.Provider,{value:d,children:n}),t[7]=n,t[8]=d,t[9]=f):f=t[9],f},Pre=Y({authorizationEndpoint:k().url(),tokenEndpoint:k().url(),introspectionEndpoint:k().url().optional(),clientId:k(),clientSecret:k().optional(),scopes:me(k()),grantType:Et(["authorization_code","client_credentials"])}),Dre=Y({title:k().optional(),readOnlyHint:qe().optional(),destructiveHint:qe().optional(),idempotentHint:qe().optional(),openWorldHint:qe().optional()}),Lre=Y({name:k(),description:k().optional(),inputSchema:ut(k(),at()),outputSchema:ut(k(),at()).optional(),annotations:Dre.optional(),_meta:ut(k(),at()).optional()}),jre=Y({headers:ut(k(),k()).optional()}),$re=Y({command:k().describe("Command to run (e.g., 'npx', 'node')"),args:me(k()).optional().describe("Command arguments"),cwd:k().optional().describe("Working directory"),envVars:ut(k(),k()).optional().describe("Environment variables (encrypted in storage)")}),TP=Y({id:k().describe("Unique identifier for the connection"),title:k().describe("Human-readable name for the connection"),created_at:k().describe("When the connection was created"),updated_at:k().describe("When the connection was last updated"),created_by:k().describe("User ID who created the connection"),updated_by:k().optional().describe("User ID who last updated the connection"),organization_id:k().describe("Organization ID this connection belongs to"),description:k().nullable().describe("Description of the connection"),icon:k().nullable().describe("Icon URL for the connection"),app_name:k().nullable().describe("Associated app name"),app_id:k().nullable().describe("Associated app ID"),connection_type:Et(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:k().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:k().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:rt([$re,jre]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:Pre.nullable().describe("OAuth configuration"),configuration_state:ut(k(),at()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:me(k()).nullable().optional().describe("Configuration scopes"),metadata:ut(k(),at()).nullable().describe("Additional metadata (includes repository info)"),tools:me(Lre).nullable().describe("Discovered tools from MCP"),bindings:me(k()).nullable().describe("Detected bindings"),status:Et(["active","inactive","error"]).describe("Current status")});TP.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:k().nullish()});TP.partial();function Rae(e){return e!=null&&"command"in e}function xae(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const Uu=Y({connection_id:k().describe("Connection ID"),selected_tools:me(k()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:me(k()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:me(k()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),OP=Uu.extend({selected_tools:Uu.shape.selected_tools.optional(),selected_resources:Uu.shape.selected_resources.optional(),selected_prompts:Uu.shape.selected_prompts.optional()}),Tae=Y({id:k().describe("Unique identifier"),title:k().describe("Human-readable name"),description:k().nullable().describe("Description"),icon:k().nullable().describe("Icon URL"),created_at:k().describe("Creation timestamp"),updated_at:k().describe("Last update timestamp"),created_by:k().describe("User ID who created this item"),updated_by:k().optional().describe("User ID who last updated this item"),organization_id:k().describe("Organization ID this item belongs to"),status:Et(["active","inactive"]).describe("Current status"),metadata:Y({instructions:k().nullable().describe("Instructions also used as system prompt")}).loose().describe("Metadata"),connections:me(Uu).describe("Connections with their selected tools, resources, and prompts")});Y({title:k().min(1).max(255).describe("Name for the virtual MCP"),description:k().nullable().optional().describe("Optional description"),icon:k().nullish().describe("Optional icon URL"),status:Et(["active","inactive"]).optional().default("active").describe("Initial status"),metadata:Y({instructions:k().nullable().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:me(OP).describe("Connections to include/exclude (can be empty for exclusion mode)")});Y({title:k().min(1).max(255).optional().describe("New name"),description:k().nullable().optional().describe("New description (null to clear)"),icon:k().nullish().describe("New icon URL"),status:Et(["active","inactive"]).optional().describe("New status"),metadata:Y({instructions:k().nullable().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:me(OP).optional().describe("New connections (replaces existing)")});var FC;(function(e){e.Completable="McpCompletable"})(FC||(FC={}));const Ure=[],zre={id:Cre,description:Are,binding:Ure},Vre="workflows",Fre="Create workflows for platform end-users",Bre=A.lazy(()=>dt(()=>import("./plugin-header-BLBENlfU.js"),__vite__mapDeps([73,12,33,74]))),qre=A.lazy(()=>dt(()=>import("./plugin-empty-state-D7gmiZlA.js"),__vite__mapDeps([75,74]))),Hre={id:Vre,description:Fre,binding:[],renderHeader:e=>R.jsx(Bre,{...e}),renderEmptyState:()=>R.jsx(qre,{})},Gre=[Sre,Ore,Une,zre,xre,Hre],Hs=aL({component:()=>R.jsx(LY,{children:R.jsx(MY,{children:R.jsx(A.Suspense,{fallback:R.jsx(yM,{}),children:R.jsx(EA,{})})})})}),Zre=bt({getParentRoute:()=>Hs,path:"/login",component:Ot(()=>dt(()=>import("./login-C70j40x2.js"),__vite__mapDeps([76,4,14]))),validateSearch:go(()=>Y({next:k().optional(),client_id:k().optional(),redirect_uri:k().optional(),response_type:k().optional(),state:k().optional(),scope:k().optional(),code_challenge:k().optional(),code_challenge_method:k().optional()}))}),Kre=bt({getParentRoute:()=>Hs,path:"/reset-password",component:Ot(()=>dt(()=>import("./reset-password-C_jAWNzd.js"),__vite__mapDeps([77,4,14]))),validateSearch:go(()=>Y({token:k().optional(),error:k().optional()}))}),Wre=bt({getParentRoute:()=>Hs,path:"/auth/$pathname",component:Ot(()=>dt(()=>import("./auth-catchall-Bks-N8b9.js"),[]))}),Yre=bt({getParentRoute:()=>Hs,path:"/connect/$sessionId",component:Ot(()=>dt(()=>import("./connect-C0SuJwzK.js"),__vite__mapDeps([78,2,4,54,68,79])))}),Qre=bt({getParentRoute:()=>Hs,path:"/store/$appName",component:Ot(()=>dt(()=>import("./store-invite-BidZUMAQ.js"),[])),validateSearch:go(()=>Y({serverName:k().optional()}))}),Xre=bt({getParentRoute:()=>Hs,path:"/oauth/callback",component:Ot(()=>dt(()=>import("./oauth-callback-CXzK_RYv.js"),__vite__mapDeps([80,7,68])))}),cg=bt({getParentRoute:()=>Hs,id:"shell",component:Ot(()=>dt(()=>import("./shell-layout-DH6hyOML.js"),__vite__mapDeps([81,82,83,5,84,3,4,85,86,87,1,2,88,89,37,12,14,9,10,56,57,33,90,91,20,92,60,18,8,93,36,63,94,67,95,96,55,97,25,98,99,32,19,59,100,47,101,102,103,46,104,105,13,64,106,23,107,108,61,109,110,111,112,7,113,114,21,42,115,17,116,58,117,71,74,40,118,119,50,62,120,11,121,53,122,52,123,72,124,125])))}),Jre=bt({getParentRoute:()=>cg,path:"/",component:Ot(()=>dt(()=>import("./home-C_Jstend.js"),__vite__mapDeps([126,54,120,19,12,17,18,111,14,121,53,96,55,94,4])))}),eoe=bt({getParentRoute:()=>cg,path:"/$org",beforeLoad:({params:e})=>{throw ll({to:"/$org/$project",params:{org:e.org,project:bl}})}}),In=bt({getParentRoute:()=>cg,path:"/$org/$project",component:Ot(()=>dt(()=>import("./project-layout-CDz2d0hE.js"),__vite__mapDeps([127,119,2,5,9,10,90,117,120,8,128,67,57,12,64,15,56,33,102,123,89,88,4,71,96,55,14,43,129,46,3,87,1,130,131,132,133,134,113,7,17,135,136,47,100,19,60,124,137]))),validateSearch:Y({settings:k().optional()})}),toe=bt({getParentRoute:()=>In,path:"/",component:Ot(()=>dt(()=>import("./page-JQWUx5cS.js"),__vite__mapDeps([138,82,83,5,84,3,4,85,86,87,1,2,88,89,37,12,14,9,10,56,57,33,90,91,20,92,60,18,8,93,36,63,94,67,95,96,55,97,25,98,99,32,19,59,100,47,101,102,103,46,104,105,13,64,106,23,107,108,61,109,110,111,112,7,113,114,21,42,115,17])))}),noe=bt({getParentRoute:()=>In,path:"/tasks",component:Ot(()=>dt(()=>import("./tasks-fA5J94Ed.js"),__vite__mapDeps([139,140,11,12,13,24,25,39,41,67,57,22,112,7,18,14,114,88,2,4,141,120,5,49,50,142,143,144,47,19,145,71,21,83,84,3,85,86,87,1,89,37,9,10,56,33,90,91,20,92,60,8,93,36])))}),roe=bt({getParentRoute:()=>In,path:"/settings",beforeLoad:({params:e})=>{throw e.project===bl?ll({to:"/$org/$project",params:e,search:{settings:"org.general"}}):ll({to:"/$org/$project/projects/$slug/settings/general",params:{org:e.org,project:bl,slug:e.project}})},component:()=>null}),bo=({params:e})=>{if(e.project!==bl)throw ll({to:"/$org/$project",params:{org:e.org,project:e.project}})},ooe=bt({getParentRoute:()=>In,path:"/projects",beforeLoad:bo,component:Ot(()=>dt(()=>import("./projects-list-B_wyuNYf.js"),__vite__mapDeps([146,119,2,5,114,88,4,67,57,112,7,18,14,120,147,143,116,9,10,96,55,58,12,144,13])))}),Fi=bt({getParentRoute:()=>In,path:"/projects/$slug/settings",beforeLoad:bo,component:Ot(()=>dt(()=>import("./layout-CUeJn5m4.js"),__vite__mapDeps([148,90,119,2,5,114,88,4,67,57,144,13,46,118,8,128])))}),aoe=bt({getParentRoute:()=>Fi,path:"/",beforeLoad:({params:e})=>{throw ll({to:"/$org/$project/projects/$slug/settings/general",params:e})},component:()=>null}),soe=bt({getParentRoute:()=>Fi,path:"/general",component:Ot(()=>dt(()=>import("./general-B-SJAejg.js"),__vite__mapDeps([149,4,5,14,58,96,55,150,53])))}),ioe=bt({getParentRoute:()=>Fi,path:"/dependencies",component:Ot(()=>dt(()=>import("./dependencies-CfLZZ12D.js"),__vite__mapDeps([151,2,4,63,152,153,18,17,10,3,5,154])))}),coe=bt({getParentRoute:()=>Fi,path:"/sidebar",component:Ot(()=>dt(()=>import("./sidebar-settings-98pHpdNk.js"),__vite__mapDeps([155,2,4,15,14,5,108,154])))}),loe=bt({getParentRoute:()=>Fi,path:"/plugins",component:Ot(()=>dt(()=>import("./plugins-kPtsND7u.js"),__vite__mapDeps([156,129,2,4,5,15,55,46,3,87,1,130,131,132,133,134,113,7,17,56,57,12,33])))}),uoe=bt({getParentRoute:()=>Fi,path:"/danger",component:Ot(()=>dt(()=>import("./danger--r_qw5of.js"),__vite__mapDeps([157,150,4,5,14,53])))}),doe=bt({getParentRoute:()=>In,path:"/members",beforeLoad:bo,component:Ot(()=>dt(()=>import("./members-WbcVb7yX.js"),__vite__mapDeps([158,140,11,12,13,24,25,39,41,67,57,22,112,7,18,14,114,88,2,4,144,103,46,37,20,3,5,137,86,87,1,120,47,53,9,10,159,160,17,42,15,96,55,56,33,58,54,16,66,123,111,152,153,63])))}),foe=bt({getParentRoute:()=>In,path:"/mcps",beforeLoad:bo,component:Ot(()=>dt(()=>import("./connections-CZWiV45b.js"),__vite__mapDeps([161,113,140,11,12,13,24,25,39,41,67,57,22,112,7,18,14,162,54,103,46,47,19,30,114,88,2,4,141,120,5,49,50,87,1,134,53,144,9,10,96,55,56,33,58,3,124,16,61,109,163,42,142,143,164,17]))),validateSearch:go(()=>Y({action:Et(["create"]).optional()}))}),hoe=bt({getParentRoute:()=>In,path:"/mcps/$connectionId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./connection-detail-FUvYBL_f.js"),__vite__mapDeps([165,112,7,18,14,164,17,42,108,166,65,87,1,167,68,5,124,2,4,122,66,3,132,134,131,133,113,130,56,57,12,33,136,79,168,153,82,83,84,85,86,88,89,37,9,10,90,91,20,92,60,8,93,36,63,94,67,95,96,55,97,25,98,99,32,19,59,100,47,101,102,103,46,104,105,13,64,106,23,107,61,109,110,111,114,21,144,169,170,171,140,11,24,39,41,22,54,16,172,72,141,120,49,50,53,30,163,147,143,173,174,175]))),validateSearch:go(()=>Y({tab:k().optional()}))}),poe=bt({getParentRoute:()=>In,path:"/mcps/$connectionId/$collectionName/$itemId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./collection-detail-CNXxywSm.js"),__vite__mapDeps([176,112,7,18,14,3,4,5,96,55,58,170,114,88,2,67,57,166,65,107,105,108,56,12,33,19,21,102,64,110,69,144,13,167,68,124,122,66,87,1,132,134,131,133,113,130,17,136,79,168,153,82,83,84,85,86,89,37,9,10,90,91,20,92,60,8,93,36,63,94,95,97,25,98,99,32,59,100,47,101,103,46,104,106,23,61,109,111,42,175,140,11,24,39,41,22,54,177,172,125,145,159]))),validateSearch:go(()=>Y({replayId:k().optional()}))}),moe=bt({getParentRoute:()=>In,path:"/monitoring",beforeLoad:bo,component:Ot(()=>dt(()=>import("./monitoring-Dth-Uzfq.js"),__vite__mapDeps([178,112,7,18,14,114,88,2,4,67,57,144,13,179,47,63,12,64,38,51,66,69,177,94,56,33,21,103,46,22,135,136,5,16,17,42,162,54,11,53,137,93,36,3,84,102,39,37,152,153,58,169,15,55,124]))),validateSearch:go(()=>Y({tab:Et(["logs","dashboards"]).default("logs"),from:k().default("now-30m"),to:k().default("now"),connectionId:me(k()).optional().default([]),virtualMcpId:me(k()).optional().default([]),tool:k().default(""),status:Et(["all","success","errors"]).default("all"),search:k().default(""),page:Se().optional(),streaming:qe().default(!0),propertyFilters:k().default(""),hideSystem:qe().default(!1)}))}),goe=bt({getParentRoute:()=>In,path:"/monitoring/dashboards/$dashboardId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./monitoring-dashboard-view-CL8P3Zx7.js"),__vite__mapDeps([180,5,179,47,63,67,57,12,64,38,51,66,69,177,94,56,33,21,13,14,170,114,88,2,4,144,58,102,39,17,42,111])))}),voe=bt({getParentRoute:()=>In,path:"/monitoring/dashboards/$dashboardId/edit",beforeLoad:bo,component:Ot(()=>dt(()=>import("./monitoring-dashboard-edit-ChxkdsCv.js"),__vite__mapDeps([181,3,4,5,14,103,46,37,12,63,91,33,56,57,28,69,17,42,48,170,114,88,2,67,166,65,7,144,13])))}),CP=bt({getParentRoute:()=>In,path:"/store",beforeLoad:bo,component:Ot(()=>dt(()=>import("./page-CCrDZNhS.js"),__vite__mapDeps([182,114,88,2,4,67,57,144,13,51,72,7,18,35,36,134,5,3,183,112,14,184,26,109,160,17,163,54,103,46,133,63,12,33,111,87,1])))}),yoe=bt({getParentRoute:()=>CP,path:"/$appName",component:Ot(()=>dt(()=>import("./mcp-server-detail-Csm9j29j.js"),__vite__mapDeps([185,19,7,114,88,2,4,67,57,103,46,30,33,17,11,12,13,62,112,18,14,173,122,133,174,106,175,140,24,25,39,41,22,47,54,108,61,109,110,170,169,184,26,160,163,144,87,1,3,5,124,131,132,134,113,183,31]))),validateSearch:go(()=>Y({registryId:k().optional(),serverName:k().optional(),itemId:k().optional()}))}),_oe=bt({getParentRoute:()=>In,path:"/agents",beforeLoad:bo,component:Ot(()=>dt(()=>import("./agents-CYp6eaDL.js"),__vite__mapDeps([186,140,11,12,13,24,25,39,41,67,57,22,112,7,18,14,114,88,2,4,144,162,54,103,46,141,120,5,49,50,104,84,3,53,16,61,42,99,187,142,143]))),validateSearch:go(()=>Y({action:Et(["create"]).optional()}))}),boe=bt({getParentRoute:()=>In,path:"/agents/$agentId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./agent-detail-ge8lRsMy.js"),__vite__mapDeps([188,83,5,84,3,4,85,86,87,1,2,88,89,37,12,14,9,10,56,57,33,90,91,20,92,60,18,8,93,36,112,7,103,46,114,67,47,101,15,58,13,27,69,17,99,144,170,166,65,175,140,11,24,25,39,41,22,54,108,61,109,110,100,124,105,95,183,168,102,64,31,66,187]))),validateSearch:go(()=>Y({tab:k().optional()}))}),Soe=bt({getParentRoute:()=>In,path:"/apps/$connectionId/$toolName",component:Ot(()=>dt(()=>import("./project-app-view-NryMJvXO.js"),__vite__mapDeps([189,3,4,5,124,2,107,105,108])))}),woe=bt({getParentRoute:()=>In,path:"/workflows",component:Ot(()=>dt(()=>import("./workflow-BfURwr1_.js"),__vite__mapDeps([190,5,171,113,140,11,12,13,24,25,39,41,67,57,22,112,7,18,14,54,103,46,64,16,98,61,42,172,72,141,120,2,49,50,132,53,3,4,17,170,114,88,144,87,1,60,74])))}),AP=bt({getParentRoute:()=>In,path:"/$pluginId",component:Ot(()=>dt(()=>import("./dynamic-plugin-layout-B44KCK2N.js"),__vite__mapDeps([191,7,1,6,2,3,4,5,8,114,88,67,57])))}),Eoe=[],Roe=[],IP=[];Gre.forEach(e=>{if(!e.setup)return;const t={parentRoute:AP,routing:{createRoute:bt,lazyRouteComponent:Ot},registerRootSidebarItem:n=>Eoe.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Roe.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{IP.push(...n)}};e.setup(t)});const xoe=AP.addChildren(IP),Toe=CP.addChildren([yoe]),Ooe=Fi.addChildren([aoe,soe,ioe,coe,loe,uoe]),Coe=[toe,noe,roe,ooe,Ooe,doe,foe,hoe,poe,moe,goe,voe,Toe,_oe,boe,woe,Soe,xoe],Aoe=In.addChildren(Coe),Ioe=cg.addChildren([Jre,eoe,Aoe]),koe=Hs.addChildren([Ioe,Zre,Kre,Wre,Xre,Yre,Qre]),Noe=pL({routeTree:koe}),Moe=document.getElementById("root");J5.createRoot(Moe).render(R.jsx(A.StrictMode,{children:R.jsx(vL,{router:Noe})}));export{EM as $,iae as A,L_ as B,TP as C,aN as D,uae as E,eF as F,Sd as G,rn as H,An as I,xH as J,tA as K,Mre as L,lt as M,zoe as N,bl as O,Eae as P,kN as Q,RH as R,yM as S,za as T,zi as U,Tae as V,hZ as W,yN as X,$D as Y,PD as Z,O1 as _,Rm as a,hH as a$,Voe as a0,og as a1,xm as a2,vD as a3,Gee as a4,Qee as a5,hae as a6,xi as a7,Zoe as a8,QB as a9,SM as aA,$oe as aB,fr as aC,Tm as aD,EA as aE,me as aF,Et as aG,Is as aH,Od as aI,bd as aJ,QG as aK,XG as aL,YG as aM,gd as aN,Z0 as aO,Qu as aP,SD as aQ,Kn as aR,Or as aS,uD as aT,dH as aU,Kb as aV,AN as aW,bN as aX,Gb as aY,fH as aZ,qoe as a_,Yoe as aa,Qoe as ab,Woe as ac,YB as ad,Xoe as ae,Koe as af,VG as ag,PG as ah,DG as ai,LG as aj,jG as ak,$G as al,eae as am,Joe as an,nae as ao,tae as ap,rae as aq,oae as ar,aae as as,We as at,et as au,I4 as av,N4 as aw,hx as ax,joe as ay,Loe as az,Sl as b,Doe as b$,Vk as b0,Wb as b1,ad as b2,Nk as b3,Zb as b4,Goe as b5,Hoe as b6,DY as b7,Gre as b8,ar as b9,pt as bA,Lo as bB,cte as bC,iP as bD,oN as bE,jo as bF,le as bG,ja as bH,ag as bI,ut as bJ,Gr as bK,ZI as bL,Wn as bM,Se as bN,rt as bO,qe as bP,De as bQ,at as bR,go as bS,El as bT,vae as bU,gae as bV,rr as bW,yre as bX,dt as bY,Sae as bZ,lV as b_,Roe as ba,_ae as bb,ub as bc,tJ as bd,N1 as be,bX as bf,mX as bg,GQ as bh,ZQ as bi,WQ as bj,oX as bk,Jm as bl,qM as bm,LM as bn,jM as bo,$M as bp,UM as bq,zM as br,FM as bs,Ku as bt,AM as bu,H1 as bv,cX as bw,lX as bx,BM as by,Xm as bz,Li as c,wre as c0,YV as c1,bM as c2,yae as c3,gne as c4,_M as c5,Pne as c6,Eoe as c7,zW as c8,Eb as c9,Uo as cA,cN as cB,Yq as cC,Jq as cD,Qq as cE,$q as cF,Poe as cG,HC as cH,OD as cI,ID as cJ,DD as cK,kD as cL,ND as cM,jD as cN,px as cO,LD as cP,MD as cQ,gJ as cR,mt as cS,aP as cT,cee as cU,YA as cV,wW as cW,Us as cX,fae as cY,ste as ca,mU as cb,Boe as cc,rk as cd,kb as ce,Foe as cf,bae as cg,Ma as ch,Uoe as ci,mae as cj,ZV as ck,HV as cl,VV as cm,uk as cn,Ir as co,qG as cp,yA as cq,bA as cr,iO as cs,Kq as ct,$o as cu,sd as cv,r1 as cw,fl as cx,Ls as cy,Va as cz,Uj as d,el as e,cae as f,sae as g,lae as h,Rae as i,R as j,oa as k,ra as l,xD as m,eA as n,Y as o,xae as p,XV as q,A as r,k as s,bT as t,wae as u,PY as v,Hb as w,JV as x,vk as y,Tk as z};
|
|
218
|
+
`.trim(),Rre=A.lazy(()=>dt(()=>import("./registry-layout-DUQv-gnE.js"),__vite__mapDeps([45,30,46,8,2,4,5,35,36,47,14,11,12,13,22,48,49,50,16,51,52,7,18,9,10,19,38,43,53,54,42,55,56,57,33,15,58,20,59,60,37,61,62,32,3,63,64,65,66,17,67,68,69]))),xre={id:wre,description:Ere,LayoutComponent:Rre,setup:e=>{e.registerSidebarGroup({id:"private-registry",label:"Private Registry",items:[{icon:R.jsx(wM,{size:16}),label:"Registry"}],defaultExpanded:!0})}},Tre=A.lazy(()=>dt(()=>import("./reports-layout-DOweGRAi.js"),__vite__mapDeps([70,1,2,3,4,5,6,7,8,12,33,19,20,71,21,64,72,30,31,32,22,23,24,25,26,13,27,28,29,47,54,56,57]))),Ore={id:"reports",description:"View automated reports with actionable insights",binding:gne,LayoutComponent:Tre,setup:e=>{e.registerSidebarGroup({id:"observability",label:"Observability",items:[{icon:R.jsx(bM,{size:16}),label:"Reports"}]})}},Cre="user-sandbox",Are="Create embeddable integration flows for platform end-users";var Ire=(e,t,n,r,a,i,c,u)=>{let d=document.documentElement,f=["light","dark"];function m(y){(Array.isArray(e)?e:[e]).forEach(b=>{let w=b==="class",S=w&&i?a.map(x=>i[x]||x):a;w?(d.classList.remove(...S),d.classList.add(i&&i[y]?i[y]:y)):d.setAttribute(b,y)}),p(y)}function p(y){u&&f.includes(y)&&(d.style.colorScheme=y)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let y=localStorage.getItem(t)||n,b=c&&y==="system"?g():y;m(b)}catch{}},kre=A.createContext(void 0),Nre={setTheme:e=>{},themes:[]},Sae=()=>{var e;return(e=A.useContext(kre))!=null?e:Nre};A.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:c,themes:u,nonce:d,scriptProps:f})=>{let m=JSON.stringify([n,t,i,e,u,c,r,a]).slice(1,-1);return A.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${Ire.toString()})(${m})`}})});const bl="org-admin",Mre={from({org:e,project:t}){if(e?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${e}/${t}`},parse(e){e.startsWith("/")&&(e=e.slice(1));const[t,n]=e.split("/");if(!t||!n)throw new Error("Invalid locator");return{org:t,project:n}},isOrgAdminProject(e){return e.split("/")[1]===bl},adminProject(e){return`${e}/${bl}`}},xP=A.createContext(void 0),wae=()=>{const e=A.useContext(xP);if(!e)throw new Error("useProjectContext must be used within a ProjectContextProvider");return e},Eae=e=>{const t=Li.c(10),{children:n,org:r,project:a}=e;let i;t[0]!==r.slug||t[1]!==a.slug?(i=Mre.from({org:r.slug,project:a.slug}),t[0]=r.slug,t[1]=a.slug,t[2]=i):i=t[2];const c=i;let u;t[3]!==c||t[4]!==r||t[5]!==a?(u={org:r,project:a,locator:c},t[3]=c,t[4]=r,t[5]=a,t[6]=u):u=t[6];const d=u;let f;return t[7]!==n||t[8]!==d?(f=R.jsx(xP.Provider,{value:d,children:n}),t[7]=n,t[8]=d,t[9]=f):f=t[9],f},Pre=Y({authorizationEndpoint:k().url(),tokenEndpoint:k().url(),introspectionEndpoint:k().url().optional(),clientId:k(),clientSecret:k().optional(),scopes:me(k()),grantType:Et(["authorization_code","client_credentials"])}),Dre=Y({title:k().optional(),readOnlyHint:qe().optional(),destructiveHint:qe().optional(),idempotentHint:qe().optional(),openWorldHint:qe().optional()}),Lre=Y({name:k(),description:k().optional(),inputSchema:ut(k(),at()),outputSchema:ut(k(),at()).optional(),annotations:Dre.optional(),_meta:ut(k(),at()).optional()}),jre=Y({headers:ut(k(),k()).optional()}),$re=Y({command:k().describe("Command to run (e.g., 'npx', 'node')"),args:me(k()).optional().describe("Command arguments"),cwd:k().optional().describe("Working directory"),envVars:ut(k(),k()).optional().describe("Environment variables (encrypted in storage)")}),TP=Y({id:k().describe("Unique identifier for the connection"),title:k().describe("Human-readable name for the connection"),created_at:k().describe("When the connection was created"),updated_at:k().describe("When the connection was last updated"),created_by:k().describe("User ID who created the connection"),updated_by:k().optional().describe("User ID who last updated the connection"),organization_id:k().describe("Organization ID this connection belongs to"),description:k().nullable().describe("Description of the connection"),icon:k().nullable().describe("Icon URL for the connection"),app_name:k().nullable().describe("Associated app name"),app_id:k().nullable().describe("Associated app ID"),connection_type:Et(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:k().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:k().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:rt([$re,jre]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:Pre.nullable().describe("OAuth configuration"),configuration_state:ut(k(),at()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:me(k()).nullable().optional().describe("Configuration scopes"),metadata:ut(k(),at()).nullable().describe("Additional metadata (includes repository info)"),tools:me(Lre).nullable().describe("Discovered tools from MCP"),bindings:me(k()).nullable().describe("Detected bindings"),status:Et(["active","inactive","error"]).describe("Current status")});TP.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:k().nullish()});TP.partial();function Rae(e){return e!=null&&"command"in e}function xae(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const Uu=Y({connection_id:k().describe("Connection ID"),selected_tools:me(k()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:me(k()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:me(k()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),OP=Uu.extend({selected_tools:Uu.shape.selected_tools.optional(),selected_resources:Uu.shape.selected_resources.optional(),selected_prompts:Uu.shape.selected_prompts.optional()}),Tae=Y({id:k().describe("Unique identifier"),title:k().describe("Human-readable name"),description:k().nullable().describe("Description"),icon:k().nullable().describe("Icon URL"),created_at:k().describe("Creation timestamp"),updated_at:k().describe("Last update timestamp"),created_by:k().describe("User ID who created this item"),updated_by:k().optional().describe("User ID who last updated this item"),organization_id:k().describe("Organization ID this item belongs to"),status:Et(["active","inactive"]).describe("Current status"),metadata:Y({instructions:k().nullable().describe("Instructions also used as system prompt")}).loose().describe("Metadata"),connections:me(Uu).describe("Connections with their selected tools, resources, and prompts")});Y({title:k().min(1).max(255).describe("Name for the virtual MCP"),description:k().nullable().optional().describe("Optional description"),icon:k().nullish().describe("Optional icon URL"),status:Et(["active","inactive"]).optional().default("active").describe("Initial status"),metadata:Y({instructions:k().nullable().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:me(OP).describe("Connections to include/exclude (can be empty for exclusion mode)")});Y({title:k().min(1).max(255).optional().describe("New name"),description:k().nullable().optional().describe("New description (null to clear)"),icon:k().nullish().describe("New icon URL"),status:Et(["active","inactive"]).optional().describe("New status"),metadata:Y({instructions:k().nullable().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:me(OP).optional().describe("New connections (replaces existing)")});var FC;(function(e){e.Completable="McpCompletable"})(FC||(FC={}));const Ure=[],zre={id:Cre,description:Are,binding:Ure},Vre="workflows",Fre="Create workflows for platform end-users",Bre=A.lazy(()=>dt(()=>import("./plugin-header-Bpxodj_N.js"),__vite__mapDeps([73,12,33,74]))),qre=A.lazy(()=>dt(()=>import("./plugin-empty-state-BYi0xCDZ.js"),__vite__mapDeps([75,74]))),Hre={id:Vre,description:Fre,binding:[],renderHeader:e=>R.jsx(Bre,{...e}),renderEmptyState:()=>R.jsx(qre,{})},Gre=[Sre,Ore,Une,zre,xre,Hre],Hs=aL({component:()=>R.jsx(LY,{children:R.jsx(MY,{children:R.jsx(A.Suspense,{fallback:R.jsx(yM,{}),children:R.jsx(EA,{})})})})}),Zre=bt({getParentRoute:()=>Hs,path:"/login",component:Ot(()=>dt(()=>import("./login-gpMZSjc_.js"),__vite__mapDeps([76,4,14]))),validateSearch:go(()=>Y({next:k().optional(),client_id:k().optional(),redirect_uri:k().optional(),response_type:k().optional(),state:k().optional(),scope:k().optional(),code_challenge:k().optional(),code_challenge_method:k().optional()}))}),Kre=bt({getParentRoute:()=>Hs,path:"/reset-password",component:Ot(()=>dt(()=>import("./reset-password-gTGJs4eA.js"),__vite__mapDeps([77,4,14]))),validateSearch:go(()=>Y({token:k().optional(),error:k().optional()}))}),Wre=bt({getParentRoute:()=>Hs,path:"/auth/$pathname",component:Ot(()=>dt(()=>import("./auth-catchall-C-FIrDOU.js"),[]))}),Yre=bt({getParentRoute:()=>Hs,path:"/connect/$sessionId",component:Ot(()=>dt(()=>import("./connect-BHcfLUsx.js"),__vite__mapDeps([78,2,4,54,68,79])))}),Qre=bt({getParentRoute:()=>Hs,path:"/store/$appName",component:Ot(()=>dt(()=>import("./store-invite-COyr13nI.js"),[])),validateSearch:go(()=>Y({serverName:k().optional()}))}),Xre=bt({getParentRoute:()=>Hs,path:"/oauth/callback",component:Ot(()=>dt(()=>import("./oauth-callback-BWIw_10O.js"),__vite__mapDeps([80,7,68])))}),cg=bt({getParentRoute:()=>Hs,id:"shell",component:Ot(()=>dt(()=>import("./shell-layout-D95AudRc.js"),__vite__mapDeps([81,82,83,5,84,3,4,85,2,86,87,1,88,89,37,12,14,9,10,56,57,33,90,91,20,92,60,18,8,93,36,63,94,67,95,55,96,25,97,98,32,19,59,47,99,100,46,101,102,13,64,103,23,104,105,61,106,107,108,109,7,110,111,21,42,71,112,17,113,30,114,115,116,117,118,119,58,120,74,40,121,122,50,62,11,123,53,124,52,125,72,126,127])))}),Jre=bt({getParentRoute:()=>cg,path:"/",component:Ot(()=>dt(()=>import("./home-DYjBdnSm.js"),__vite__mapDeps([128,54,116,19,12,17,18,108,14,123,53,95,55,94,4])))}),eoe=bt({getParentRoute:()=>cg,path:"/$org",beforeLoad:({params:e})=>{throw ll({to:"/$org/$project",params:{org:e.org,project:bl}})}}),In=bt({getParentRoute:()=>cg,path:"/$org/$project",component:Ot(()=>dt(()=>import("./project-layout-daZ99y7q.js"),__vite__mapDeps([129,122,2,5,9,10,90,120,116,8,130,67,57,12,64,15,56,33,99,125,89,88,4,95,55,14,43,131,46,3,87,1,132,133,134,135,136,110,7,17,137,138,47,19,60,126,139]))),validateSearch:Y({settings:k().optional()})}),toe=bt({getParentRoute:()=>In,path:"/",component:Ot(()=>dt(()=>import("./page-LuWQuTOB.js"),__vite__mapDeps([140,82,83,5,84,3,4,85,2,86,87,1,88,89,37,12,14,9,10,56,57,33,90,91,20,92,60,18,8,93,36,63,94,67,95,55,96,25,97,98,32,19,59,47,99,100,46,101,102,13,64,103,23,104,105,61,106,107,108,109,7,110,111,21,42,113,30,112,114,115,116,117,118,17,127])))}),noe=bt({getParentRoute:()=>In,path:"/tasks",component:Ot(()=>dt(()=>import("./tasks-CxbK_rAM.js"),__vite__mapDeps([141,114,82,83,5,84,3,4,85,2,86,87,1,88,89,37,12,14,9,10,56,57,33,90,91,20,92,60,18,8,93,36,63,94,67,95,55,96,25,97,98,32,19,59,47,99,100,46,101,102,13,64,103,23,104,105,61,106,107,108,109,7,110,111,21,42,115,116,117,118,30,17,142])))}),roe=bt({getParentRoute:()=>In,path:"/settings",beforeLoad:({params:e})=>{throw e.project===bl?ll({to:"/$org/$project",params:e,search:{settings:"org.general"}}):ll({to:"/$org/$project/projects/$slug/settings/general",params:{org:e.org,project:bl,slug:e.project}})},component:()=>null}),bo=({params:e})=>{if(e.project!==bl)throw ll({to:"/$org/$project",params:{org:e.org,project:e.project}})},ooe=bt({getParentRoute:()=>In,path:"/projects",beforeLoad:bo,component:Ot(()=>dt(()=>import("./projects-list-DLyGtlCx.js"),__vite__mapDeps([143,122,2,5,111,88,4,67,57,109,7,18,14,116,144,118,119,9,10,95,55,58,12,142,13])))}),Fi=bt({getParentRoute:()=>In,path:"/projects/$slug/settings",beforeLoad:bo,component:Ot(()=>dt(()=>import("./layout-Cegg55DQ.js"),__vite__mapDeps([145,90,122,2,5,111,88,4,67,57,142,13,46,121,8,130])))}),aoe=bt({getParentRoute:()=>Fi,path:"/",beforeLoad:({params:e})=>{throw ll({to:"/$org/$project/projects/$slug/settings/general",params:e})},component:()=>null}),soe=bt({getParentRoute:()=>Fi,path:"/general",component:Ot(()=>dt(()=>import("./general-CcOfiluy.js"),__vite__mapDeps([146,4,5,14,58,95,55,147,53])))}),ioe=bt({getParentRoute:()=>Fi,path:"/dependencies",component:Ot(()=>dt(()=>import("./dependencies-DQgcVkpb.js"),__vite__mapDeps([148,2,4,63,149,150,18,17,10,3,5,151])))}),coe=bt({getParentRoute:()=>Fi,path:"/sidebar",component:Ot(()=>dt(()=>import("./sidebar-settings-DoYo5_2f.js"),__vite__mapDeps([152,2,4,15,14,5,105,151])))}),loe=bt({getParentRoute:()=>Fi,path:"/plugins",component:Ot(()=>dt(()=>import("./plugins-VAc5tGcP.js"),__vite__mapDeps([153,131,2,4,5,15,55,46,3,87,1,132,133,134,135,136,110,7,17,56,57,12,33])))}),uoe=bt({getParentRoute:()=>Fi,path:"/danger",component:Ot(()=>dt(()=>import("./danger-D0vNOgTj.js"),__vite__mapDeps([154,147,4,5,14,53])))}),doe=bt({getParentRoute:()=>In,path:"/members",beforeLoad:bo,component:Ot(()=>dt(()=>import("./members-DkvmaHrL.js"),__vite__mapDeps([155,156,11,12,13,24,25,39,41,67,57,22,109,7,18,14,111,88,2,4,142,100,46,37,20,3,5,139,86,87,1,116,47,53,9,10,157,158,17,42,15,95,55,56,33,58,54,16,66,125,108,149,150,63])))}),foe=bt({getParentRoute:()=>In,path:"/mcps",beforeLoad:bo,component:Ot(()=>dt(()=>import("./connections-CMRFgF2z.js"),__vite__mapDeps([159,110,156,11,12,13,24,25,39,41,67,57,22,109,7,18,14,160,54,100,46,47,19,30,111,88,2,4,115,116,5,87,1,161,49,50,136,53,142,9,10,95,55,56,33,58,3,126,16,61,106,162,42,117,118,163,17]))),validateSearch:go(()=>Y({action:Et(["create"]).optional()}))}),hoe=bt({getParentRoute:()=>In,path:"/mcps/$connectionId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./connection-detail-Bfp_CthH.js"),__vite__mapDeps([164,109,7,18,14,163,17,42,105,165,65,87,1,166,68,5,126,2,4,124,66,3,134,136,133,135,110,132,56,57,12,33,138,79,167,150,82,83,84,85,86,88,89,37,9,10,90,91,20,92,60,8,93,36,63,94,67,95,55,96,25,97,98,32,19,59,47,99,100,46,101,102,13,64,103,23,104,61,106,107,108,111,21,142,168,169,170,156,11,24,39,41,22,54,16,171,72,115,116,161,49,50,53,30,162,144,118,172,173,174]))),validateSearch:go(()=>Y({tab:k().optional()}))}),poe=bt({getParentRoute:()=>In,path:"/mcps/$connectionId/$collectionName/$itemId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./collection-detail-12bPsl9i.js"),__vite__mapDeps([175,109,7,18,14,3,4,5,95,55,58,169,111,88,2,67,57,165,65,104,102,105,56,12,33,19,21,99,64,107,69,142,13,166,68,126,124,66,87,1,134,136,133,135,110,132,17,138,79,167,150,82,83,84,85,86,89,37,9,10,90,91,20,92,60,8,93,36,63,94,96,25,97,98,32,59,47,100,46,101,103,23,61,106,108,42,174,156,11,24,39,41,22,54,176,171,127,157]))),validateSearch:go(()=>Y({replayId:k().optional()}))}),moe=bt({getParentRoute:()=>In,path:"/monitoring",beforeLoad:bo,component:Ot(()=>dt(()=>import("./monitoring-mMb4oyh8.js"),__vite__mapDeps([177,109,7,18,14,111,88,2,4,67,57,142,13,178,47,63,12,64,38,51,66,69,176,94,56,33,21,112,100,46,22,137,138,5,16,17,42,160,54,11,53,139,93,36,3,84,99,39,37,149,150,58,168,15,55,126]))),validateSearch:go(()=>Y({tab:Et(["logs","dashboards"]).default("logs"),from:k().default("now-30m"),to:k().default("now"),connectionId:me(k()).optional().default([]),virtualMcpId:me(k()).optional().default([]),tool:k().default(""),status:Et(["all","success","errors"]).default("all"),search:k().default(""),page:Se().optional(),streaming:qe().default(!0),propertyFilters:k().default(""),hideSystem:qe().default(!1)}))}),goe=bt({getParentRoute:()=>In,path:"/monitoring/dashboards/$dashboardId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./monitoring-dashboard-view-KyEbCseW.js"),__vite__mapDeps([179,5,178,47,63,67,57,12,64,38,51,66,69,176,94,56,33,21,112,13,14,169,111,88,2,4,142,58,99,39,17,42,108])))}),voe=bt({getParentRoute:()=>In,path:"/monitoring/dashboards/$dashboardId/edit",beforeLoad:bo,component:Ot(()=>dt(()=>import("./monitoring-dashboard-edit-Dq449CGn.js"),__vite__mapDeps([180,3,4,5,14,100,46,37,12,63,91,33,56,57,28,69,17,42,48,169,111,88,2,67,165,65,7,142,13])))}),CP=bt({getParentRoute:()=>In,path:"/store",beforeLoad:bo,component:Ot(()=>dt(()=>import("./page-MLghIZgZ.js"),__vite__mapDeps([181,111,88,2,4,67,57,142,13,51,72,7,18,35,36,136,5,3,182,109,14,183,26,106,158,17,162,54,100,46,135,63,12,33,108,87,1])))}),yoe=bt({getParentRoute:()=>CP,path:"/$appName",component:Ot(()=>dt(()=>import("./mcp-server-detail-BGmK7vBO.js"),__vite__mapDeps([184,19,7,111,88,2,4,67,57,100,46,30,33,17,11,12,13,62,109,18,14,172,124,135,173,103,174,156,24,25,39,41,22,47,54,105,61,106,107,169,168,183,26,158,162,142,87,1,3,5,126,133,134,136,110,182,31]))),validateSearch:go(()=>Y({registryId:k().optional(),serverName:k().optional(),itemId:k().optional()}))}),_oe=bt({getParentRoute:()=>In,path:"/agents",beforeLoad:bo,component:Ot(()=>dt(()=>import("./agents--1wlh1On.js"),__vite__mapDeps([185,156,11,12,13,24,25,39,41,67,57,22,109,7,18,14,111,88,2,4,142,160,54,100,46,161,49,50,101,84,3,5,53,16,61,42,98,115,116,186,117,118]))),validateSearch:go(()=>Y({action:Et(["create"]).optional()}))}),boe=bt({getParentRoute:()=>In,path:"/agents/$agentId",beforeLoad:bo,component:Ot(()=>dt(()=>import("./agent-detail-B1r6DbgP.js"),__vite__mapDeps([187,83,5,84,3,4,85,2,86,87,1,88,89,37,12,14,9,10,56,57,33,90,91,20,92,60,18,8,93,36,109,7,100,46,111,67,47,15,58,13,27,69,17,98,142,169,165,65,174,156,11,24,25,39,41,22,54,105,61,106,107,126,102,182,167,99,64,31,66,186]))),validateSearch:go(()=>Y({tab:k().optional()}))}),Soe=bt({getParentRoute:()=>In,path:"/apps/$connectionId/$toolName",component:Ot(()=>dt(()=>import("./project-app-view-Bai-Qf0R.js"),__vite__mapDeps([188,3,4,5,126,2,104,102,105])))}),woe=bt({getParentRoute:()=>In,path:"/workflows",component:Ot(()=>dt(()=>import("./workflow-D7s-e1ZH.js"),__vite__mapDeps([189,5,170,110,156,11,12,13,24,25,39,41,67,57,22,109,7,18,14,54,100,46,64,16,97,61,42,171,72,115,116,2,161,49,50,134,53,3,4,17,169,111,88,142,87,1,60,74])))}),AP=bt({getParentRoute:()=>In,path:"/$pluginId",component:Ot(()=>dt(()=>import("./dynamic-plugin-layout-CfJ2iWdk.js"),__vite__mapDeps([190,7,1,6,2,3,4,5,8,111,88,67,57])))}),Eoe=[],Roe=[],IP=[];Gre.forEach(e=>{if(!e.setup)return;const t={parentRoute:AP,routing:{createRoute:bt,lazyRouteComponent:Ot},registerRootSidebarItem:n=>Eoe.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Roe.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{IP.push(...n)}};e.setup(t)});const xoe=AP.addChildren(IP),Toe=CP.addChildren([yoe]),Ooe=Fi.addChildren([aoe,soe,ioe,coe,loe,uoe]),Coe=[toe,noe,roe,ooe,Ooe,doe,foe,hoe,poe,moe,goe,voe,Toe,_oe,boe,woe,Soe,xoe],Aoe=In.addChildren(Coe),Ioe=cg.addChildren([Jre,eoe,Aoe]),koe=Hs.addChildren([Ioe,Zre,Kre,Wre,Xre,Yre,Qre]),Noe=pL({routeTree:koe}),Moe=document.getElementById("root");J5.createRoot(Moe).render(R.jsx(A.StrictMode,{children:R.jsx(vL,{router:Noe})}));export{EM as $,iae as A,L_ as B,TP as C,aN as D,uae as E,eF as F,Sd as G,rn as H,An as I,xH as J,tA as K,Mre as L,lt as M,zoe as N,bl as O,Eae as P,kN as Q,RH as R,yM as S,za as T,zi as U,Tae as V,hZ as W,yN as X,$D as Y,PD as Z,O1 as _,Rm as a,hH as a$,Voe as a0,og as a1,xm as a2,vD as a3,Gee as a4,Qee as a5,hae as a6,xi as a7,Zoe as a8,QB as a9,SM as aA,$oe as aB,fr as aC,Tm as aD,EA as aE,me as aF,Et as aG,Is as aH,Od as aI,bd as aJ,QG as aK,XG as aL,YG as aM,gd as aN,Z0 as aO,Qu as aP,SD as aQ,Kn as aR,Or as aS,uD as aT,dH as aU,Kb as aV,AN as aW,bN as aX,Gb as aY,fH as aZ,qoe as a_,Yoe as aa,Qoe as ab,Woe as ac,YB as ad,Xoe as ae,Koe as af,VG as ag,PG as ah,DG as ai,LG as aj,jG as ak,$G as al,eae as am,Joe as an,nae as ao,tae as ap,rae as aq,oae as ar,aae as as,I4 as at,N4 as au,hx as av,joe as aw,Loe as ax,We as ay,et as az,Sl as b,Doe as b$,Vk as b0,Wb as b1,ad as b2,Nk as b3,Zb as b4,Goe as b5,Hoe as b6,DY as b7,Gre as b8,ar as b9,pt as bA,cte as bB,iP as bC,Lo as bD,oN as bE,jo as bF,le as bG,ja as bH,ag as bI,ut as bJ,Gr as bK,ZI as bL,Wn as bM,Se as bN,rt as bO,qe as bP,De as bQ,at as bR,go as bS,El as bT,vae as bU,gae as bV,rr as bW,yre as bX,dt as bY,Sae as bZ,lV as b_,Roe as ba,_ae as bb,ub as bc,tJ as bd,N1 as be,bX as bf,mX as bg,GQ as bh,ZQ as bi,WQ as bj,oX as bk,Jm as bl,qM as bm,LM as bn,jM as bo,$M as bp,UM as bq,zM as br,FM as bs,Ku as bt,AM as bu,H1 as bv,cX as bw,lX as bx,BM as by,Xm as bz,Li as c,wre as c0,YV as c1,bM as c2,yae as c3,gne as c4,_M as c5,Pne as c6,Eb as c7,Eoe as c8,zW as c9,Uo as cA,cN as cB,Yq as cC,Jq as cD,Qq as cE,$q as cF,Poe as cG,HC as cH,OD as cI,ID as cJ,DD as cK,kD as cL,ND as cM,jD as cN,px as cO,LD as cP,MD as cQ,gJ as cR,mt as cS,aP as cT,cee as cU,YA as cV,wW as cW,Us as cX,fae as cY,ste as ca,mU as cb,Boe as cc,rk as cd,kb as ce,Foe as cf,bae as cg,Ma as ch,Uoe as ci,mae as cj,ZV as ck,HV as cl,VV as cm,uk as cn,Ir as co,qG as cp,yA as cq,bA as cr,iO as cs,Kq as ct,$o as cu,sd as cv,r1 as cw,fl as cx,Ls as cy,Va as cz,Uj as d,el as e,cae as f,sae as g,lae as h,Rae as i,R as j,oa as k,ra as l,eA as m,xD as n,Y as o,xae as p,XV as q,A as r,k as s,bT as t,wae as u,PY as v,Hb as w,JV as x,vk as y,Tk as z};
|