decocms 4.365.0 → 4.365.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-bl0yU7gy.js → AlertCircle-BPZWT1gc.js} +1 -1
- package/dist/client/assets/{AreaChart-CHPDNuDf.js → AreaChart-CxCPUfZu.js} +3 -3
- package/dist/client/assets/{ArrowLeft-CpbUCYpB.js → ArrowLeft-c3HIgil5.js} +1 -1
- package/dist/client/assets/{ArrowRight-CkVUmxaa.js → ArrowRight-BHzAyFwu.js} +1 -1
- package/dist/client/assets/{ArrowUp-BQQdFypM.js → ArrowUp-DywwLYcR.js} +1 -1
- package/dist/client/assets/{Check-BJaMheL7.js → Check-PyGET9iL.js} +1 -1
- package/dist/client/assets/{CheckCircle-BNNyBNMK.js → CheckCircle-4Be5K85Z.js} +1 -1
- package/dist/client/assets/{ChevronRight-2Ti1evDh.js → ChevronRight-vY_5m8VB.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cp-tcsrs.js → ChevronUp-B9QGJbr0.js} +1 -1
- package/dist/client/assets/{Copy01-BrL9ZrVF.js → Copy01-BbtQlTnV.js} +1 -1
- package/dist/client/assets/{CreditCard01-_mwanoIZ.js → CreditCard01-2jrzrshR.js} +1 -1
- package/dist/client/assets/{Database01-Dm_V08L3.js → Database01-B8rfUUUF.js} +1 -1
- package/dist/client/assets/{DotsVertical-B8slOnrw.js → DotsVertical-zFAA_as9.js} +1 -1
- package/dist/client/assets/{Download01-Bl2-HJHJ.js → Download01-CSiLQIib.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-nVgseQIz.js → ErrorBarContext-D7xML5iT.js} +1 -1
- package/dist/client/assets/{Eye-B_BMkWWc.js → Eye-BRXlESxS.js} +1 -1
- package/dist/client/assets/{File02-3fotvfyl.js → File02-D4JZqTxD.js} +1 -1
- package/dist/client/assets/{GitBranch01-Dr0NRbj6.js → GitBranch01-95kZh6WB.js} +1 -1
- package/dist/client/assets/{Globe01-DMnQmvOn.js → Globe01-Dej65_H6.js} +1 -1
- package/dist/client/assets/{HardDrive-CxNWrsuq.js → HardDrive-DCLQ4vdy.js} +1 -1
- package/dist/client/assets/{Image01-DMAKgzzX.js → Image01-Dd-Rx_B5.js} +1 -1
- package/dist/client/assets/{Key01-CVfJV98q.js → Key01-CQFO2R8H.js} +1 -1
- package/dist/client/assets/{Link01-CKw3sRrv.js → Link01-pGxgI9VT.js} +1 -1
- package/dist/client/assets/{LinkExternal01-OjBTsG9L.js → LinkExternal01-Jetqi62I.js} +1 -1
- package/dist/client/assets/MessageCircle01-D2dDPrBD.js +1 -0
- package/dist/client/assets/{Monitor01-Bc6Zvq9B.js → Monitor01-Bw-h-DKp.js} +1 -1
- package/dist/client/assets/{Package-DTeqx5ul.js → Package-CF-S4NRB.js} +1 -1
- package/dist/client/assets/{Palette-CiXH5EXK.js → Palette-DuCZiZH-.js} +1 -1
- package/dist/client/assets/{Play-BPdpqeiE.js → Play-BTJRmkRf.js} +1 -1
- package/dist/client/assets/{Plus-kQ9d0PiA.js → Plus-BUGmioCX.js} +1 -1
- package/dist/client/assets/Printer-B2Ij2s1c.js +1 -0
- package/dist/client/assets/{SearchLg-Cecpe6x9.js → SearchLg-De3yWxzK.js} +1 -1
- package/dist/client/assets/{SearchMd-hBr_biLL.js → SearchMd-DanltqT5.js} +1 -1
- package/dist/client/assets/{Sector-B0yBxg4a.js → Sector-DqvqR1iU.js} +2 -2
- package/dist/client/assets/{Settings02-BqKUeA5H.js → Settings02-C-HNbNsn.js} +1 -1
- package/dist/client/assets/{Share07-D8xQrAsX.js → Share07-C4Gw_nzw.js} +1 -1
- package/dist/client/assets/{Shield01-Dav77ssu.js → Shield01-7bhnSYVs.js} +1 -1
- package/dist/client/assets/{Stars01-DWjpdjKn.js → Stars01-BmtGexbk.js} +1 -1
- package/dist/client/assets/{Sun-wxsl7cI_.js → Sun-D5AClOdh.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CCraiYIJ.js → SwitchHorizontal01-CCmSX-Ww.js} +1 -1
- package/dist/client/assets/{Tool01-E6Rv0Nbs.js → Tool01-C1VYYGhf.js} +1 -1
- package/dist/client/assets/{Tool02-Darwb8nP.js → Tool02-A5gv-OOO.js} +1 -1
- package/dist/client/assets/{Trash01-BB2ymX9J.js → Trash01-DkwdEhkp.js} +1 -1
- package/dist/client/assets/{TrendUp01-PJuAXI74.js → TrendUp01-CQWL_vX5.js} +1 -1
- package/dist/client/assets/{Upload01-BtBtAyal.js → Upload01-BlEOH700.js} +1 -1
- package/dist/client/assets/{User01-CtDIPHIF.js → User01-C2ILPAHc.js} +1 -1
- package/dist/client/assets/{UserSquare-BflxhZ_l.js → UserSquare-DY1wI6ZR.js} +1 -1
- package/dist/client/assets/{Users01-9HTYv5bx.js → Users01-bydaoxbh.js} +1 -1
- package/dist/client/assets/{Users03-D8RoJqiC.js → Users03-3yW32m45.js} +1 -1
- package/dist/client/assets/X-DejWyAyX.js +1 -0
- package/dist/client/assets/{XCircle-Dvf0BUKb.js → XCircle-SVZraRfE.js} +1 -1
- package/dist/client/assets/{XClose-DPfGLo7I.js → XClose-wkdnmhrB.js} +1 -1
- package/dist/client/assets/{Zap-ChgjHdxL.js → Zap-0km1-ru7.js} +1 -1
- package/dist/client/assets/{ZoomOut-BAhVAzy1.js → ZoomOut-BA2ZiotX.js} +1 -1
- package/dist/client/assets/access-gate-DpZqBld0.js +1 -0
- package/dist/client/assets/add-connection-dialog-DB5JJjad.js +1 -0
- package/dist/client/assets/agent-analytics-CAHUVirD.js +2 -0
- package/dist/client/assets/agent-app-BeMC8z8k.js +1 -0
- package/dist/client/assets/agent-assets-DsMv2xEg.js +1 -0
- package/dist/client/assets/agent-automation-BY5j9rqa.js +20 -0
- package/dist/client/assets/agent-automations-1_XWI0cB.js +1 -0
- package/dist/client/assets/agent-connect-sources-CGYs_l_4.js +1 -0
- package/dist/client/assets/agent-deck-BqKNWwGC.js +1 -0
- package/dist/client/assets/agent-e2e-DSg6pAM6.js +1 -0
- package/dist/client/assets/agent-file-QzuIvb2U.js +1 -0
- package/dist/client/assets/agent-git-B5SGdxwk.js +3 -0
- package/dist/client/assets/agent-hosting-CWM0TAgK.js +1 -0
- package/dist/client/assets/agent-icon-BjknPEfN.js +1 -0
- package/dist/client/assets/agent-library-file-DOj4Pso1.js +1 -0
- package/dist/client/assets/agent-monitor-D0SLtbEO.js +1 -0
- package/dist/client/assets/agent-overview-4MzJb6Tv.js +1 -0
- package/dist/client/assets/agent-settings-D4SL-PIa.js +1 -0
- package/dist/client/assets/agent-site-editor-BDP-vSUl.js +24 -0
- package/dist/client/assets/agent-site-editor-code-C2z-Az-Y.js +2 -0
- package/dist/client/assets/agent-site-editor-content-JPYekiK_.js +2 -0
- package/dist/client/assets/agent-site-editor-preview-CFLjaarK.js +504 -0
- package/dist/client/assets/agent-view-Bp9ooHxf.js +1 -0
- package/dist/client/assets/agent-view-guard-B7qYW-b3.js +1 -0
- package/dist/client/assets/agents-list-h96XaSKk.js +1 -0
- package/dist/client/assets/ai-providers-COWdzwzu.js +1 -0
- package/dist/client/assets/{alert-DkgzGFz6.js → alert-CvK2RkF3.js} +1 -1
- package/dist/client/assets/{alert-dialog-BdwUra4d.js → alert-dialog-CDARhUOh.js} +2 -2
- package/dist/client/assets/{api-keys-Bl99t7Nm.js → api-keys-Ba-S9F5Y.js} +1 -1
- package/dist/client/assets/api-keys-DeCwNgs3.js +1 -0
- package/dist/client/assets/app-editor-CsOLGnt4.js +1 -0
- package/dist/client/assets/asset-utils-DQpbxjwd.js +1 -0
- package/dist/client/assets/{auth-vfqjjrgv.js → auth-Cyjh0UQp.js} +1 -1
- package/dist/client/assets/{auth-catchall-CZ_cFv3z.js → auth-catchall-BbOJ2FpE.js} +1 -1
- package/dist/client/assets/{auth-entry-Cp4v6AT2.js → auth-entry-CIc1-YG9.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BB-yAg-2.js → auth-split-layout-WGnYlU-M.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CpB-R1LO.js → authenticate-and-persist-oauth-Dgc5b4Jr.js} +1 -1
- package/dist/client/assets/{automation-list-row-DKusfCau.js → automation-list-row-Dyqat6cE.js} +1 -1
- package/dist/client/assets/automation-runs-DkHp_jZr.js +1 -0
- package/dist/client/assets/automations-BSGRkynt.js +1 -0
- package/dist/client/assets/{autosend-u-W4xgi7.js → autosend-BBoss6Ia.js} +1 -1
- package/dist/client/assets/{avatar-BpU54ct-.js → avatar-CO3n6wLC.js} +1 -1
- package/dist/client/assets/backoff-8mStPHYB.js +1 -0
- package/dist/client/assets/{badge-DJ5ezE5-.js → badge-DUpgRwQu.js} +1 -1
- package/dist/client/assets/{block-document-7Ngv587f.js → block-document-CVyeCLBq.js} +3 -3
- package/dist/client/assets/blocks-preview-workspace-context-CLQbGv9t.js +1 -0
- package/dist/client/assets/{breadcrumb-Dlcs3jWo.js → breadcrumb-FJ1G6kmP.js} +1 -1
- package/dist/client/assets/buckets-BTZUX3pR.js +1 -0
- package/dist/client/assets/build-improve-prompt-doc-CcAYvBOj.js +2 -0
- package/dist/client/assets/bulk-category-panel-9cEfFq4L.js +1 -0
- package/dist/client/assets/{calendar-B8BrEMls.js → calendar-Bb8OUNd8.js} +1 -1
- package/dist/client/assets/{capability-load-error-CdMFNpdR.js → capability-load-error-Ctg9pY-k.js} +1 -1
- package/dist/client/assets/{cards-BfP1wflC.js → cards-CbRL3hJc.js} +1 -1
- package/dist/client/assets/category-editor-DLB1OCyq.js +1 -0
- package/dist/client/assets/{chart-zbtN9_7R.js → chart-DqNrc8dZ.js} +1 -1
- package/dist/client/assets/{chat-context-CD1rWX64.js → chat-context-B40ngn3f.js} +9 -9
- package/dist/client/assets/{checkbox-DwVdLA7e.js → checkbox-STVvKX8k.js} +1 -1
- package/dist/client/assets/choose-editor-DVdbAy2O.js +1 -0
- package/dist/client/assets/claim-phase-copy-0btUuJoC.js +1 -0
- package/dist/client/assets/{cli-auth-success-BtBj1xJE.js → cli-auth-success-DmTxFaq5.js} +1 -1
- package/dist/client/assets/{client-icons-BcSFyY79.js → client-icons-CR99ZCoE.js} +1 -1
- package/dist/client/assets/collapsible-Cf4ZreOo.js +1 -0
- package/dist/client/assets/collection-detail-oWaNi-hD.js +1 -0
- package/dist/client/assets/collection-display-button-CkKXuKd-.js +1 -0
- package/dist/client/assets/{collection-search-Bi-DttH4.js → collection-search-CDaDEv2c.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DfAhVjGn.js → collection-table-wrapper-B036tBOl.js} +1 -1
- package/dist/client/assets/{collection-tabs-BZkkvpP_.js → collection-tabs-CkeFxbT3.js} +1 -1
- package/dist/client/assets/{command-cJVGaRa3.js → command-D7YFT70c.js} +1 -1
- package/dist/client/assets/{command-palette-store-BNo0UXiS.js → command-palette-store-BcwFt5eE.js} +1 -1
- package/dist/client/assets/commerce-onboarding-BcoYZTQG.js +1 -0
- package/dist/client/assets/{companion-mcps-section-smAU7jYC.js → companion-mcps-section-CS9qQ8v0.js} +1 -1
- package/dist/client/assets/{connect-Bn7h46Ea.js → connect-BM6ZfhOz.js} +2 -2
- package/dist/client/assets/connect-layout-De5w9TxQ.js +1 -0
- package/dist/client/assets/{connection-card-DCMUv-0w.js → connection-card-kANJRcvf.js} +1 -1
- package/dist/client/assets/connection-detail-Ckkh02Py.js +1 -0
- package/dist/client/assets/{connection-D6f54N4w.js → connection-di4Fldx3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BiJdmlDA.js → connection-form-helpers-fWne-kOd.js} +1 -1
- package/dist/client/assets/connections-BKm7IMTt.js +1 -0
- package/dist/client/assets/{create-organization-dialog-IR2z5bIs.js → create-organization-dialog-BmgLNeEx.js} +1 -1
- package/dist/client/assets/decofile-api-BhjpITFN.js +1 -0
- package/dist/client/assets/{decopilot-CK3rN_ad.js → decopilot-ClO0uusm.js} +2 -2
- package/dist/client/assets/dialog-Dxe0Jgna.js +1 -0
- package/dist/client/assets/discover-BdugM7FR.js +1 -0
- package/dist/client/assets/domain-settings-Dp-mWih8.js +1 -0
- package/dist/client/assets/{download-app-dialog-CNd8ka-x.js → download-app-dialog-lwMMuYsF.js} +1 -1
- package/dist/client/assets/{drawer-DsG6Si3V.js → drawer-1GzYkddr.js} +1 -1
- package/dist/client/assets/{dropdown-menu-4cRHTbic.js → dropdown-menu-Bws_0K_q.js} +1 -1
- package/dist/client/assets/{editor-NTP5Xcj9.js → editor-U5ucetu-.js} +1 -1
- package/dist/client/assets/{empty-state-DmTochCH.js → empty-state-BjMIbq91.js} +1 -1
- package/dist/client/assets/{empty-state-D86Jkx4H.js → empty-state-C3Z_6q55.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B3hIAjiC.js → extract-connection-data-BAjOM4U5.js} +1 -1
- package/dist/client/assets/file-explorer-LFC3Ac60.js +2 -0
- package/dist/client/assets/{file-preview-BbFH5cdB.js → file-preview-n35lcg8c.js} +1 -1
- package/dist/client/assets/{file-share-button-ChoXQdlr.js → file-share-button-D04rfik7.js} +2 -2
- package/dist/client/assets/{file-type-icon-DJQFeBpV.js → file-type-icon-C4dI9q_n.js} +1 -1
- package/dist/client/assets/{folder-icon-BRLOuEpt.js → folder-icon-pWHmymOf.js} +1 -1
- package/dist/client/assets/{form-DhUF_Mtg.js → form-CRSWplOb.js} +1 -1
- package/dist/client/assets/{gateway-client-Cb37izH_.js → gateway-client-D45uHvIc.js} +1 -1
- package/dist/client/assets/general-C7RGB0Oj.js +1 -0
- package/dist/client/assets/{github-icon-cJDFDEm7.js → github-icon-CsH29e4W.js} +1 -1
- package/dist/client/assets/{github-repo-C0igpkr9.js → github-repo-BknN0SVI.js} +1 -1
- package/dist/client/assets/home-CpLcM3nB.js +1 -0
- package/dist/client/assets/hooks-CE7d6Dy1.js +15 -0
- package/dist/client/assets/{hooks-BrcP19Uo.js → hooks-CxBYuMc8.js} +2 -2
- package/dist/client/assets/{index-epfDD3H5.js → index-4fsCOuPz.js} +2 -2
- package/dist/client/assets/index-B53DWiGz.js +1 -0
- package/dist/client/assets/{index-BQzHGsvt.js → index-BJDZS0O4.js} +11 -11
- package/dist/client/assets/index-BQwroePl.js +1 -0
- package/dist/client/assets/{index-Df6f9kP3.js → index-BRigOSQu.js} +1 -1
- package/dist/client/assets/{index-CoYeuRng.js → index-CBcq1VSB.js} +1 -1
- package/dist/client/assets/index-CFUteTrc.js +1 -0
- package/dist/client/assets/{index-gctAQu2T.js → index-CVJEcf37.js} +74 -74
- package/dist/client/assets/{index-DQ6uuKpF.js → index-CblYf_yB.js} +8 -8
- package/dist/client/assets/{index-BywxOh2e.js → index-CcEd_wWL.js} +1 -1
- package/dist/client/assets/index-Clbrhj--.js +1 -0
- package/dist/client/assets/{index-CImKKZ20.js → index-CxOPSFx9.js} +1 -1
- package/dist/client/assets/index-CyYEAXEU.js +1 -0
- package/dist/client/assets/{index-eVyHwFa9.js → index-DAN6A7hZ.js} +1 -1
- package/dist/client/assets/{index-DJADaZ4J.css → index-DUflXgSu.css} +1 -1
- package/dist/client/assets/index-Dio39w6e.js +26 -0
- package/dist/client/assets/index-DsI9yqDT.js +1 -0
- package/dist/client/assets/{index-redirect-DxBD4sTo.js → index-redirect-Bw20Ba6Y.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Da0v0sXC.js → infiniteQueryObserver-BSmIgXE3.js} +1 -1
- package/dist/client/assets/infra-billing-DFEuQtvU.js +1 -0
- package/dist/client/assets/{input-eBmoU-9D.js → input-C8MQoDCb.js} +1 -1
- package/dist/client/assets/{input-DlvEXkej.js → input-CQyA0V5b.js} +1 -1
- package/dist/client/assets/{input-C9QH7mMV.js → input-DD_DI_Km.js} +2 -2
- package/dist/client/assets/{integration-icon-YYg8l_RW.js → integration-icon-BV7Q9XOu.js} +1 -1
- package/dist/client/assets/{label-DGkzLfNU.js → label-Cfl8uGDP.js} +1 -1
- package/dist/client/assets/last-preview-page-B_KVLuYW.js +1 -0
- package/dist/client/assets/layout-Dm4T-Vne.js +1 -0
- package/dist/client/assets/legacy-agents-deep-Dd57JUEI.js +1 -0
- package/dist/client/assets/legacy-main-redirect-CWvMqmhB.js +1 -0
- package/dist/client/assets/{library-CKrgioQu.js → library-3DHQWojm.js} +4 -4
- package/dist/client/assets/login-CupMnybl.js +1 -0
- package/dist/client/assets/{markdown-BV0XgGTq.js → markdown-BvSl7QX1.js} +3 -3
- package/dist/client/assets/{mcp-app-renderer-Bv46PiO3.js → mcp-app-renderer-DJ7Ve9Yy.js} +2 -2
- package/dist/client/assets/{mcp-oauth-i7PCjbNf.js → mcp-oauth-OvlzbMCP.js} +1 -1
- package/dist/client/assets/members-Cuiahh5G.js +1 -0
- package/dist/client/assets/message-templates-wocfrCJF.js +1 -0
- package/dist/client/assets/{mini-report-page-k88VT2C2.js → mini-report-page-4Bd0cMlr.js} +1 -1
- package/dist/client/assets/{monaco-editor-kRD7y0Pc.js → monaco-editor-B2KCfh7a.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CuCuR7PQ.js → monitoring-stats-row-CufhVlNy.js} +1 -1
- package/dist/client/assets/{multi-select-CltjjMwX.js → multi-select-BHFunwbq.js} +1 -1
- package/dist/client/assets/{mustache-Db7x-4gI.js → mustache-DyjElMuJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-CT29B8-5.js → oauth-callback-4BOm__rV.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-3CPoYshC.js → oauth-callback-ai-provider-Czk5gVgf.js} +1 -1
- package/dist/client/assets/{onboarding-DEm51GnF.js → onboarding-D2PsWH4h.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Drtbh9Ui.js → optimistic-project-sidebar-views-B3vU1qR8.js} +1 -1
- package/dist/client/assets/{organization-choice-BdqJqB_v.js → organization-choice-C-PRPVPc.js} +1 -1
- package/dist/client/assets/orgs-DpmY6dw4.js +1 -0
- package/dist/client/assets/{page-seo-form-BXvLQ5tk.js → page-seo-form-gUB5sB3u.js} +1 -1
- package/dist/client/assets/{pair-BIPkH5eA.js → pair-98UY-0wm.js} +8 -8
- package/dist/client/assets/{popover-BfKN_4aI.js → popover-DAJR0ej2.js} +1 -1
- package/dist/client/assets/post-calendar-4XiTJrif.js +1 -0
- package/dist/client/assets/post-editor-CXRn_RK8.js +1 -0
- package/dist/client/assets/preview-content-Tw_jYCgT.js +1 -0
- package/dist/client/assets/{preview-dialog-CYbL8r4H.js → preview-dialog-Bg_Wo7YI.js} +1 -1
- package/dist/client/assets/{primitives-BXcg67BS.js → primitives-BfIYsPoI.js} +1 -1
- package/dist/client/assets/profile-CDs1X-Le.js +1 -0
- package/dist/client/assets/project-app-view-BPLB01Cj.js +1 -0
- package/dist/client/assets/project-feed-CeGbFvMT.js +1 -0
- package/dist/client/assets/{project-icon-Dk1HaDIZ.js → project-icon-D1x6NEST.js} +1 -1
- package/dist/client/assets/project-reports-fH8-r6df.js +1 -0
- package/dist/client/assets/project-tasks-tas6EPem.js +1 -0
- package/dist/client/assets/prompts-B-VqD1p-.js +1 -0
- package/dist/client/assets/record-editor-LOQZDk0V.js +1 -0
- package/dist/client/assets/redirect-editor-CgXt_KHn.js +1 -0
- package/dist/client/assets/registry-YMo7WLlx.js +2 -0
- package/dist/client/assets/{registry-layout-CRM-FBei.js → registry-layout-SseogjtO.js} +3 -3
- package/dist/client/assets/reports-DC8tSFj3.js +1 -0
- package/dist/client/assets/{reports-B1FmmHPo.js → reports-Q6oueood.js} +2 -2
- package/dist/client/assets/reports-tab-DE-TYPly.js +2 -0
- package/dist/client/assets/repositories-BoiOgwFm.js +1 -0
- package/dist/client/assets/repository-import-picker-DyEfEliR.js +1 -0
- package/dist/client/assets/repository-picker-DWJtJkZW.js +1 -0
- package/dist/client/assets/require-capability-DljrHpsM.js +1 -0
- package/dist/client/assets/{required-auth-layout-CraNNSBi.js → required-auth-layout-TTElzhIM.js} +1 -1
- package/dist/client/assets/{reset-password-DcO8_P05.js → reset-password-B1ylDKoe.js} +1 -1
- package/dist/client/assets/resizable-DOW_fL7z.js +1 -0
- package/dist/client/assets/retry-i8LvYSZg.js +1 -0
- package/dist/client/assets/{review-settings-CANg_Nan.js → review-settings-DHvMG4G0.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CCig2s9-.js → rich-text-link-control-HLhFAha7.js} +1 -1
- package/dist/client/assets/roles-BWbTlJZc.js +1 -0
- package/dist/client/assets/route-D26IsMv1.js +1 -0
- package/dist/client/assets/route-D_kbg4iH.js +1 -0
- package/dist/client/assets/route-jdsFbZW7.js +1 -0
- package/dist/client/assets/runnable-block-editor-Bi0Cv7yD.js +16 -0
- package/dist/client/assets/sandbox-git-api-CMdpE2TE.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-Beua1bNX.js → sandbox-lifecycle-context-BbTDNpeS.js} +2 -2
- package/dist/client/assets/save-changes-debug-nBi-n9eV.js +1 -0
- package/dist/client/assets/{schema-BzgrQmAY.js → schema-BegvnGCM.js} +1 -1
- package/dist/client/assets/{scroll-area-tBZq-ZvJ.js → scroll-area-CxxMejtk.js} +1 -1
- package/dist/client/assets/{search-input-CYERWjWv.js → search-input-axkgbTZ7.js} +1 -1
- package/dist/client/assets/secrets-kzqIbFmd.js +1 -0
- package/dist/client/assets/section-preview-url-Csj0_ZDg.js +1 -0
- package/dist/client/assets/sections-editor-B_t9OrnC.js +2 -0
- package/dist/client/assets/select-B2GRzoG3.js +1 -0
- package/dist/client/assets/select-model-BRHN792B.js +1 -0
- package/dist/client/assets/seo-editor-DvngP1ti.js +1 -0
- package/dist/client/assets/settings-tab-DFjZ-Fkn.js +5 -0
- package/dist/client/assets/sheet-BePDARR0.js +1 -0
- package/dist/client/assets/shell-layout-D2wS-FNX.js +1 -0
- package/dist/client/assets/sidebar-IspuJbto.js +1 -0
- package/dist/client/assets/skill-preview-BdtuUFgV.js +1 -0
- package/dist/client/assets/skills-QJ3mhNvI.js +1 -0
- package/dist/client/assets/sso-DKhL-ARh.js +1 -0
- package/dist/client/assets/{store-CjL9y_7d.js → store-B9Az6md3.js} +1 -1
- package/dist/client/assets/store-registry-hcgHbNGW.js +2 -0
- package/dist/client/assets/switch-DJ4Dr2_V.js +1 -0
- package/dist/client/assets/synced-repos-flbNGs20.js +1 -0
- package/dist/client/assets/{table-aIDGrvqv.js → table-CrJ9LOSc.js} +1 -1
- package/dist/client/assets/{tabs-Sr-wlkg3.js → tabs-DVMaAAMA.js} +1 -1
- package/dist/client/assets/{task-board-CazuPR-U.js → task-board-SlBuwhrX.js} +1 -1
- package/dist/client/assets/task-route-B4hPzw6u.js +1 -0
- package/dist/client/assets/{task-status-Cj8IGjJC.js → task-status-DhZZzZ6G.js} +1 -1
- package/dist/client/assets/{tasks-DzatESzy.js → tasks-B_rqCvr1.js} +4 -4
- package/dist/client/assets/tasks-CViGtGHm.js +1 -0
- package/dist/client/assets/{textarea-6VvdKhvF.js → textarea-BDMLJ5G-.js} +1 -1
- package/dist/client/assets/{thread-intent-DPwCeeGE.js → thread-intent-C7DpKTRQ.js} +1 -1
- package/dist/client/assets/thread-route-Bc63tvFc.js +1 -0
- package/dist/client/assets/{thread-route-BsrvgyVU.js → thread-route-BzWllNYG.js} +1 -1
- package/dist/client/assets/thread-sheet-body-CiausLhX.js +1 -0
- package/dist/client/assets/toggle-group-BW8cP6lf.js +1 -0
- package/dist/client/assets/{toolbar-icon-button-CSTgB2Je.js → toolbar-icon-button-A2ebiBUr.js} +1 -1
- package/dist/client/assets/tooltip-B7VLfO9w.js +1 -0
- package/dist/client/assets/{track-CDfY4FZL.js → track-BGU8HJCB.js} +1 -1
- package/dist/client/assets/{types-8hWP_tsZ.js → types-CrAbOCy3.js} +6 -6
- package/dist/client/assets/usage-stats-Bf1Ukas_.js +1 -0
- package/dist/client/assets/use-ai-providers-R1Jac-4Q.js +1 -0
- package/dist/client/assets/use-automations-BzLd_Cf7.js +1 -0
- package/dist/client/assets/{use-autosave-DRlRuq5e.js → use-autosave-BezKrA6F.js} +1 -1
- package/dist/client/assets/use-commerce-diagnostic-DTGIqIpu.js +1 -0
- package/dist/client/assets/use-connect-companion-CgerJAPe.js +1 -0
- package/dist/client/assets/{use-connection-tOIuuLKJ.js → use-connection-B4t4VJEN.js} +1 -1
- package/dist/client/assets/{use-copy-B4PUMZjo.js → use-copy-DQwrjGi4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-x2IPUAAO.js → use-create-virtual-mcp-CHEKOqdh.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-use6rm0l.js → use-date-fns-locale-m0Q-8AAg.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CWLgAozd.js → use-debounced-autosave-C82NqRut.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BHZw1Wtv.js → use-debounced-value-SjJ8k_tD.js} +1 -1
- package/dist/client/assets/use-deco-credits-CIfhJ3OU.js +1 -0
- package/dist/client/assets/use-decopilot-events-DDnHJjGY.js +1 -0
- package/dist/client/assets/use-delete-connection-BWW3Qwe4.js +1 -0
- package/dist/client/assets/{use-deployment-admin-PTBGIrMl.js → use-deployment-admin-D4Et99Id.js} +1 -1
- package/dist/client/assets/use-fast-preview-draft-url-B8C-G0p2.js +1 -0
- package/dist/client/assets/use-file-configs-CKcyFOK-.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-DnRzNQQc.js → use-infinite-scroll-C88xvDJq.js} +1 -1
- package/dist/client/assets/use-join-requests-CtMSd2H7.js +1 -0
- package/dist/client/assets/use-main-panel-tabs-BLf-yD79.js +1 -0
- package/dist/client/assets/use-mcp-auth-status-CF5e5Swp.js +1 -0
- package/dist/client/assets/{use-mcp-client-CzGi1Gun.js → use-mcp-client-DmOwsV3f.js} +6 -6
- package/dist/client/assets/{use-mcp-prompts-BJsq63pG.js → use-mcp-prompts-BKFfTbQi.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-I4ahUYGD.js → use-mcp-tools-eOThR6gd.js} +1 -1
- package/dist/client/assets/{use-members-xjztJVBn.js → use-members-mw1URW2v.js} +1 -1
- package/dist/client/assets/use-mobile-WPuOYoIV.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-CBQsYRLL.js → use-navigate-to-agent-zGc1-u-z.js} +1 -1
- package/dist/client/assets/use-open-billing-url-BYWSUicc.js +1 -0
- package/dist/client/assets/use-org-auth-client-mMTl8cKp.js +1 -0
- package/dist/client/assets/{use-org-fs-Cm8FYvYP.js → use-org-fs-Ck9VysIz.js} +1 -1
- package/dist/client/assets/use-org-notice-Cb7z4nA0.js +1 -0
- package/dist/client/assets/{use-org-sso-CP_t4LLU.js → use-org-sso-CvkPQsKr.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Cnixvt9H.js → use-organization-roles-wnmrYWSM.js} +1 -1
- package/dist/client/assets/use-organization-settings-CRw6qdb3.js +1 -0
- package/dist/client/assets/use-panel-navigate-ez3OqVq8.js +1 -0
- package/dist/client/assets/{use-project-native-view-presence-CJ7vLSBz.js → use-project-native-view-presence-DFjsPIlC.js} +1 -1
- package/dist/client/assets/use-project-scope-D9t-w7F3.js +1 -0
- package/dist/client/assets/use-registry-connections-BC1Pt8V1.js +1 -0
- package/dist/client/assets/use-releases-B_ioEYcb.js +1 -0
- package/dist/client/assets/use-route-default-main-B8Ci266p.js +1 -0
- package/dist/client/assets/use-secrets-BZEH47Ed.js +1 -0
- package/dist/client/assets/use-section-preview-base-D8ddLJeY.js +1 -0
- package/dist/client/assets/{use-session-runtime-Cs4eGT9k.js → use-session-runtime-CKDTMwlz.js} +1 -1
- package/dist/client/assets/use-tags-BnnveSvi.js +1 -0
- package/dist/client/assets/use-task-metadata-DQ-jzCVZ.js +1 -0
- package/dist/client/assets/{use-thread-outputs-DtpQGqCf.js → use-thread-outputs-ChimPCUk.js} +1 -1
- package/dist/client/assets/use-view-mode-CpyVGfy9.js +1 -0
- package/dist/client/assets/use-virtual-mcp-DvSX4N6q.js +1 -0
- package/dist/client/assets/useInfiniteQuery-CuoCKqDV.js +1 -0
- package/dist/client/assets/{useQueries-CnHkVL7d.js → useQueries-CCVXh4wK.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BGyZ2Zcs.js +1 -0
- package/dist/client/assets/{users-CWHZPvdU.js → users-DgkJfwRz.js} +1 -1
- package/dist/client/assets/{utils-CdxSjBly.js → utils-D06E4WDv.js} +2 -2
- package/dist/client/assets/variant-calendar-B2YQFxru.js +1 -0
- package/dist/client/assets/{variant-matcher-override-BLTbL0Nb.js → variant-matcher-override-POFwaaTG.js} +1 -1
- package/dist/client/assets/view-mode-toggle-B09x-ETl.js +1 -0
- package/dist/client/assets/{virtual-mcp-CIE6gIFV.js → virtual-mcp-D-br_N6s.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/Printer-Nban-oJk.js +0 -1
- package/dist/client/assets/access-gate-aVhmxNUP.js +0 -1
- package/dist/client/assets/add-connection-dialog-C2-znERG.js +0 -1
- package/dist/client/assets/agent-analytics-CLObAM6S.js +0 -2
- package/dist/client/assets/agent-app-DtLxy7iB.js +0 -1
- package/dist/client/assets/agent-assets-5J9H4wgC.js +0 -1
- package/dist/client/assets/agent-automation-DTYBStDc.js +0 -20
- package/dist/client/assets/agent-automations-DYZPALXC.js +0 -1
- package/dist/client/assets/agent-connect-sources-DJFWziK9.js +0 -1
- package/dist/client/assets/agent-deck-De0Y6qk5.js +0 -1
- package/dist/client/assets/agent-e2e-MVQ6vmAy.js +0 -1
- package/dist/client/assets/agent-file-IBnKf7Fw.js +0 -1
- package/dist/client/assets/agent-git-DjVoKiR8.js +0 -3
- package/dist/client/assets/agent-hosting-DbC8wvCr.js +0 -1
- package/dist/client/assets/agent-icon-DsGBCBNv.js +0 -1
- package/dist/client/assets/agent-library-file-CySHm683.js +0 -1
- package/dist/client/assets/agent-monitor-Duc2QTVQ.js +0 -1
- package/dist/client/assets/agent-overview-DAVTPrgq.js +0 -1
- package/dist/client/assets/agent-settings-DBEnACPy.js +0 -1
- package/dist/client/assets/agent-site-editor-CJ_722sF.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CBPV2yNN.js +0 -2
- package/dist/client/assets/agent-site-editor-content-C-fwwsI7.js +0 -2
- package/dist/client/assets/agent-site-editor-preview-Be-uG2hV.js +0 -504
- package/dist/client/assets/agent-view-B3DdbJTr.js +0 -1
- package/dist/client/assets/agent-view-guard-DTG6Ut5n.js +0 -1
- package/dist/client/assets/agents-list-DNaOFYAO.js +0 -1
- package/dist/client/assets/ai-providers-BPcl_qgT.js +0 -1
- package/dist/client/assets/api-keys-CYMMtT0P.js +0 -1
- package/dist/client/assets/app-editor-_27_2g82.js +0 -1
- package/dist/client/assets/asset-utils-DTfzHa9m.js +0 -1
- package/dist/client/assets/automation-runs-Dt50JHCo.js +0 -1
- package/dist/client/assets/automations-DDydXmIK.js +0 -1
- package/dist/client/assets/backoff-CrEUbyZT.js +0 -1
- package/dist/client/assets/buckets-Wx6DtJNT.js +0 -1
- package/dist/client/assets/build-improve-prompt-doc-4aKzyTWA.js +0 -2
- package/dist/client/assets/bulk-category-panel-CclTC40F.js +0 -1
- package/dist/client/assets/category-editor-CuGxUDVJ.js +0 -1
- package/dist/client/assets/choose-editor-CE7aKrQp.js +0 -1
- package/dist/client/assets/collapsible-BDifv-q9.js +0 -1
- package/dist/client/assets/collection-detail-ec9sW8Ey.js +0 -1
- package/dist/client/assets/collection-display-button-C3CfuUhX.js +0 -1
- package/dist/client/assets/commerce-onboarding-Dxc7EEsL.js +0 -1
- package/dist/client/assets/connect-layout-Bby2uYqZ.js +0 -1
- package/dist/client/assets/connection-detail-C-Fe9wui.js +0 -1
- package/dist/client/assets/connections-CxSK9S4W.js +0 -1
- package/dist/client/assets/decode-html-entities-B4Qel6ov.js +0 -1
- package/dist/client/assets/decopilot-sse-pool-czpSFI9L.js +0 -1
- package/dist/client/assets/delay-CnY5UFtP.js +0 -1
- package/dist/client/assets/dialog--Jkwvpx1.js +0 -1
- package/dist/client/assets/discover-C7-JIKhR.js +0 -1
- package/dist/client/assets/domain-settings-Dh029s1M.js +0 -1
- package/dist/client/assets/file-explorer-B4d-xz4q.js +0 -2
- package/dist/client/assets/general-BY1zbaWS.js +0 -1
- package/dist/client/assets/home-CeJo7q7K.js +0 -1
- package/dist/client/assets/hooks-CxPd9b6i.js +0 -15
- package/dist/client/assets/index-1yGxjvng.js +0 -24
- package/dist/client/assets/index-C7tZKQ5s.js +0 -1
- package/dist/client/assets/index-CklK0EA_.js +0 -1
- package/dist/client/assets/index-D5CXQ9x9.js +0 -1
- package/dist/client/assets/index-Og5m3t85.js +0 -26
- package/dist/client/assets/index-Y6pd1REu.js +0 -1
- package/dist/client/assets/infra-billing-ChvPe0pr.js +0 -1
- package/dist/client/assets/invite-member-dialog-CeSVAfZq.js +0 -1
- package/dist/client/assets/layout-BIIr_imR.js +0 -1
- package/dist/client/assets/legacy-agents-deep-CdZo4h4A.js +0 -1
- package/dist/client/assets/legacy-main-redirect-CWWHewM6.js +0 -1
- package/dist/client/assets/login-svGY2sKo.js +0 -1
- package/dist/client/assets/members-BOTXfNHf.js +0 -1
- package/dist/client/assets/org-layout-BiRvLqL-.js +0 -1
- package/dist/client/assets/orgs-CMf-H7HH.js +0 -1
- package/dist/client/assets/post-calendar-BAQtpQvh.js +0 -1
- package/dist/client/assets/post-editor-DBJMHXYe.js +0 -1
- package/dist/client/assets/preview-content-CICx8Frq.js +0 -1
- package/dist/client/assets/profile-CUkJFM3_.js +0 -1
- package/dist/client/assets/project-app-view-BSYHmGj3.js +0 -1
- package/dist/client/assets/project-feed-BEGVLizK.js +0 -1
- package/dist/client/assets/project-reports-BozhFElP.js +0 -1
- package/dist/client/assets/project-tasks-DVexwc9x.js +0 -1
- package/dist/client/assets/prompts-Df-P8Zuz.js +0 -1
- package/dist/client/assets/record-editor-9YdHcAWO.js +0 -1
- package/dist/client/assets/redirect-editor-BohyWJXT.js +0 -1
- package/dist/client/assets/registry-BbkHDIpk.js +0 -2
- package/dist/client/assets/reports-SeFGRJSZ.js +0 -1
- package/dist/client/assets/reports-tab-D5rlmWEp.js +0 -2
- package/dist/client/assets/repositories-BXEjUV3F.js +0 -1
- package/dist/client/assets/repository-import-picker-Bc_O4k0-.js +0 -1
- package/dist/client/assets/repository-picker-DC97O6OK.js +0 -1
- package/dist/client/assets/require-capability-CoB1D-Ih.js +0 -1
- package/dist/client/assets/retry-CErkP7V6.js +0 -1
- package/dist/client/assets/roles-DEMri9Kk.js +0 -1
- package/dist/client/assets/runnable-block-editor-BD-IThSC.js +0 -16
- package/dist/client/assets/secrets-7Z0pTBUq.js +0 -1
- package/dist/client/assets/sections-editor-DoMH-fks.js +0 -2
- package/dist/client/assets/select-C9ZnmbzX.js +0 -1
- package/dist/client/assets/select-model-FK_tmltz.js +0 -1
- package/dist/client/assets/seo-editor-DNovpojV.js +0 -1
- package/dist/client/assets/settings-layout-Cd8jASua.js +0 -1
- package/dist/client/assets/settings-sidebar-DP80M_GR.js +0 -1
- package/dist/client/assets/settings-tab-DE3XUo7h.js +0 -5
- package/dist/client/assets/shell-controls-CnE-Tn5l.js +0 -1
- package/dist/client/assets/shell-layout-DMp5UdGb.js +0 -1
- package/dist/client/assets/skill-preview-D2lK4hU9.js +0 -1
- package/dist/client/assets/skills-xXfBybxi.js +0 -1
- package/dist/client/assets/source-system-tabs-CnEGUb4r.js +0 -1
- package/dist/client/assets/sso-DdBxRFrm.js +0 -1
- package/dist/client/assets/store-registry-BFRxGHgD.js +0 -2
- package/dist/client/assets/switch-DADMizS1.js +0 -1
- package/dist/client/assets/synced-repos-Cp7R03Jp.js +0 -1
- package/dist/client/assets/task-route-_NgFGVoT.js +0 -1
- package/dist/client/assets/tasks-BvZdYZ5R.js +0 -1
- package/dist/client/assets/thread-sheet-body-S2AS0IdJ.js +0 -1
- package/dist/client/assets/toggle-group-CHZjV-1n.js +0 -1
- package/dist/client/assets/toolbar-DAhC4RMM.js +0 -1
- package/dist/client/assets/usage-stats-B38oXMbk.js +0 -1
- package/dist/client/assets/use-ai-providers-DYf552qv.js +0 -1
- package/dist/client/assets/use-automations-DSRSDlyo.js +0 -1
- package/dist/client/assets/use-commerce-diagnostic-pXwQBZmy.js +0 -1
- package/dist/client/assets/use-connect-companion-Bt171l5d.js +0 -1
- package/dist/client/assets/use-deco-credits-Coxc4dyp.js +0 -1
- package/dist/client/assets/use-decopilot-events-V4xtyk7c.js +0 -1
- package/dist/client/assets/use-delete-connection-geT4L5Ed.js +0 -1
- package/dist/client/assets/use-file-configs-BLWnBKpa.js +0 -1
- package/dist/client/assets/use-join-requests-DL4guRSR.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-BtAksZ1f.js +0 -1
- package/dist/client/assets/use-mcp-auth-status-CpecQqEX.js +0 -1
- package/dist/client/assets/use-open-billing-url-DaC9_MxZ.js +0 -1
- package/dist/client/assets/use-org-auth-client-DuxSmx0x.js +0 -1
- package/dist/client/assets/use-org-notice-lWz1PPs-.js +0 -1
- package/dist/client/assets/use-organization-settings-C-LQvPpq.js +0 -1
- package/dist/client/assets/use-panel-navigate-D2RT2tc_.js +0 -1
- package/dist/client/assets/use-project-scope-Ch_4TfMQ.js +0 -1
- package/dist/client/assets/use-registry-connections-CuDWC28C.js +0 -1
- package/dist/client/assets/use-secrets-BJDccjnS.js +0 -1
- package/dist/client/assets/use-section-preview-base-SCqBiLMF.js +0 -1
- package/dist/client/assets/use-status-sounds-BG-lkYEo.js +0 -1
- package/dist/client/assets/use-tags-DhkHJc7C.js +0 -1
- package/dist/client/assets/use-task-metadata-COSUQhUk.js +0 -1
- package/dist/client/assets/use-view-mode-CUARubnx.js +0 -1
- package/dist/client/assets/use-virtual-mcp-BMRFgR9g.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DOeboQGx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B5UzTlHS.js +0 -1
- package/dist/client/assets/variant-calendar-f9XxiGiP.js +0 -1
- package/dist/client/assets/view-mode-toggle-D31fXZcw.js +0 -1
- /package/dist/client/assets/{index-DDGTF8rc.css → agent-site-editor-DDGTF8rc.css} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{fp as ke,eH as Gs,am as R,al as _e,b2 as Lt,cT as Qi,a_ as Se,cP as Ar,cU as Ve,a$ as su,fq as pn,ak as Q,fr as es,fs as Ys,ft as ou,cR as au,fu as Ba,fv as lu,fw as cu,fx as uu,cM as qa,cq as du,cE as fu,bQ as Va,b1 as er,fy as mu,c as je,r as P,l as Dr,j as m,P as On,ar as za,I as ts,a as hu,t as gr,co as ns,fz as Wa,cp as pu,fA as gu,fg as yu,bq as Ha,ax as rs,fB as bu,eT as xu,eU as vu,br as Su,b as lt,R as wu,a7 as ju,a6 as Ou,a8 as Eu,a9 as Au,c_ as Cu,B as Rr,h as is,d as _u,E as Iu,fc as Tu}from"./index-gctAQu2T.js";import{E as Ka}from"./empty-state-DmTochCH.js";import{d as Nu,e as Fu,n as Pu,A as Ga,S as $u,C as Du,u as Ru}from"./use-mcp-client-CzGi1Gun.js";import{b as ku}from"./use-mcp-tools-I4ahUYGD.js";import{i as Mu}from"./Printer-Nban-oJk.js";import{i as Uu}from"./Key01-CVfJV98q.js";import{a as Lu,u as Bu,b as qu}from"./use-connection-tOIuuLKJ.js";import{U as En,b as Qr,c as Js}from"./auth-vfqjjrgv.js";import{i as Vu,c as zu,b as Wu,e as Hu}from"./extract-connection-data-B3hIAjiC.js";import{u as Ku}from"./use-registry-connections-CuDWC28C.js";import{e as Gu}from"./use-organization-settings-C-LQvPpq.js";import{s as Yu}from"./Plus-kQ9d0PiA.js";import{S as Ju,b as Zu,a as Xu,d as Qu,c as ed}from"./select-C9ZnmbzX.js";import{R as Zs}from"./index-Df6f9kP3.js";import{R as td,I as nd,a as rd}from"./index-D5CXQ9x9.js";import{R as id,T as sd,a as od,b as ad}from"./index-CoYeuRng.js";import{_ as Bt}from"./index-C7tZKQ5s.js";import{A as Ya}from"./agent-icon-DsGBCBNv.js";import{I as ld}from"./input-eBmoU-9D.js";import{a as cd,b as ud,P as dd}from"./popover-BfKN_4aI.js";import{u as fd}from"./use-virtual-mcp-BMRFgR9g.js";import{i as md}from"./Check-BJaMheL7.js";import{i as hd}from"./SearchMd-hBr_biLL.js";import{b as pd}from"./Users03-D8RoJqiC.js";import{u as gd}from"./use-create-virtual-mcp-x2IPUAAO.js";var yd=class{apply(t,e){if(!e.type)return;const n=Array.isArray(e.type)?e.type:[e.type],r=new Set(n);if(r.has("string")||(t.string=!1),!r.has("number")&&!r.has("integer")&&(t.number=!1),r.has("boolean")||(t.boolean=!1),r.has("null")||(t.null=!1),r.has("array")||(t.array=!1),r.has("object")||(t.object=!1),r.has("integer")&&t.number!==!1){const i=t.number||_e();i instanceof pn&&(t.number=i.int())}}},bd=class{apply(t,e){if(e.const===void 0)return;const n=e.const;t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1,typeof n=="string"?t.string=Ve(n):typeof n=="number"?t.number=Ve(n):typeof n=="boolean"?t.boolean=Ve(n):n===null?t.null=Qi():Array.isArray(n)?t.array=void 0:typeof n=="object"&&(t.object=void 0)}},xd=class{apply(t,e){if(!e.enum)return;if(e.enum.length===0){e.type||(t.string=!1,t.number=!1,t.boolean=!1,t.null=!1,t.array=!1,t.object=!1);return}const n={string:e.enum.filter(r=>typeof r=="string"),number:e.enum.filter(r=>typeof r=="number"),boolean:e.enum.filter(r=>typeof r=="boolean"),null:e.enum.filter(r=>r===null),array:e.enum.filter(r=>Array.isArray(r)),object:e.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};t.string=this.createTypeSchema(n.string,"string"),t.number=this.createTypeSchema(n.number,"number"),t.boolean=this.createTypeSchema(n.boolean,"boolean"),t.null=n.null.length>0?Qi():!1,t.array=n.array.length>0?void 0:!1,t.object=n.object.length>0?void 0:!1}createTypeSchema(t,e){if(t.length===0)return!1;if(t.length===1)return Ve(t[0]);if(e==="string")return su(t);if(e==="number"){const[n,r,...i]=t;return Ar([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return e==="boolean"?Ar([Ve(!0),Ve(!1)]):!1}},vd=class{apply(t,e){const n=e;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=uu();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),t.file=r,t.string=!1}}},Sd=class{apply(t,e){const n=e;e.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&t.string===void 0&&(t.string=R())}},wd=class{apply(t,e){const n=e;if(n.minLength!==void 0&&t.string!==!1){const r=t.string||R();r instanceof es&&(t.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},jd=class{apply(t,e){const n=e;if(n.maxLength!==void 0&&t.string!==!1){const r=t.string||R();r instanceof es&&(t.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Od=class{apply(t,e){const n=e;if(n.pattern&&t.string!==!1){const r=t.string||R();if(r instanceof es){const i=new RegExp(n.pattern);t.string=r.regex(i)}}}},Ed=class{apply(t,e){const n=e;if(n.minimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(t.number=r.min(n.minimum))}}},Ad=class{apply(t,e){const n=e;if(n.maximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(t.number=r.max(n.maximum))}}},Cd=class{apply(t,e){const n=e;if(n.exclusiveMinimum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(typeof n.exclusiveMinimum=="number"?t.number=r.gt(n.exclusiveMinimum):t.number=!1)}}},_d=class{apply(t,e){const n=e;if(n.exclusiveMaximum!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(typeof n.exclusiveMaximum=="number"?t.number=r.lt(n.exclusiveMaximum):t.number=!1)}}},Id=class{apply(t,e){const n=e;if(n.multipleOf!==void 0&&t.number!==!1){const r=t.number||_e();r instanceof pn&&(t.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Td=class{apply(t,e){const n=e;e.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&t.array===void 0&&(t.array=Se(ke()))}},Nd=class{apply(t,e){const n=e;n.minItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(ke())).min(n.minItems))}},Fd=class{apply(t,e){const n=e;n.maxItems!==void 0&&t.array!==!1&&(t.array=(t.array||Se(ke())).max(n.maxItems))}},Pd=class{apply(t,e){const n=e;if(t.array!==!1)if(Array.isArray(n.items))t.array=t.array||Se(ke());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ie(n.items);let i=Se(r);if(t.array&&t.array instanceof ou){const s=t.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}t.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?t.array=t.array||Se(ke()):t.array=Se(ke()).max(0):typeof n.items=="boolean"&&n.items===!0?t.array=t.array||Se(ke()):n.prefixItems&&(t.array=t.array||Se(ke()))}},$d=class{apply(t,e){if(e.type!=="array")return;const n=e;if(!Array.isArray(n.items)||t.array===!1)return;const r=n.items.map(s=>Ie(s));let i;r.length===0?i=Ys([]):i=Ys(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),t.tuple=i,t.array=!1}},Dd=class{apply(t,e){const n=e;t.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(t.object=t.object||Q({}).passthrough())}},Rd=class{apply(t,e){const n=e;e.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&t.object===void 0&&(t.object=Q({}).passthrough())}},kd=class{apply(t,e){const n=e;if(n.maxProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Md=class{apply(t,e){const n=e;if(n.minProperties!==void 0&&t.object!==!1){const r=t.object||Q({}).passthrough();t.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Hn(t,e){if(t===e)return!0;if(t==null||e==null)return t===e;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length!==e.length?!1:t.every((n,r)=>Hn(n,e[r]));if(typeof t=="object"&&typeof e=="object"){const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Hn(t[i],e[i]))}return!1}function Ud(){return t=>{if(!Array.isArray(t))return!0;const e=[];return t.every(n=>e.some(i=>Hn(n,i))?!1:(e.push(n),!0))}}function Cr(t,e){return t.safeParse(e).success}var Ld=class{apply(t,e){if(!e.not)return t;const n=Ie(e.not);return t.refine(r=>!Cr(n,r),{message:"Value must not match the 'not' schema"})}},Bd=class{apply(t,e){return e.uniqueItems!==!0?t:t.refine(Ud(),{message:"Array items must be unique"})}},qd=class{apply(t,e){return!e.allOf||e.allOf.length===0?t:e.allOf.map(r=>Ie(r)).reduce((r,i)=>Ba(r,i),t)}},Vd=class{apply(t,e){if(!e.anyOf||e.anyOf.length===0)return t;const n=e.anyOf.length===1?Ie(e.anyOf[0]):Ar([Ie(e.anyOf[0]),Ie(e.anyOf[1]),...e.anyOf.slice(2).map(r=>Ie(r))]);return Ba(t,n)}},zd=class{apply(t,e){if(!e.oneOf||e.oneOf.length===0)return t;const n=e.oneOf.map(r=>Ie(r));return t.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},Wd=class{apply(t,e){const n=e;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ie(s));return t.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!Cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ie(n.items);for(let a=i.length;a<s.length;a++)if(!Cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return t}},Hd=class{apply(t,e){const n=e;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return t;if(t instanceof lu||t instanceof cu){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ie(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?Q(r):Q(r).passthrough()}return t.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ie(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Kd=class{apply(t,e){if(!e.enum||e.enum.length===0)return t;const n=e.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?t:t.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Hn(r,i)),{message:"Value must match one of the enum values"})}},Gd=class{apply(t,e){if(e.const===void 0)return t;const n=e.const;return typeof n!="object"||n===null?t:t.refine(r=>Hn(r,n),{message:"Value must equal the const value"})}},Yd=class{apply(t,e){return e.description&&(t=t.describe(e.description)),t}},Jd=class{apply(t,e){var n;const r=e;return!((n=r.required)!=null&&n.includes("__proto__"))||e.type!==void 0?t:ke().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(t,e){return typeof t!="object"||t===null||Array.isArray(t)?!0:e.every(n=>Object.prototype.hasOwnProperty.call(t,n))}},Zd=class{apply(t,e){var n;const r=e;if(r.contains===void 0)return t;const i=Ie(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return t.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)Cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Xd=class{apply(t,e){const{default:n}=e;return n===void 0||!t.safeParse(n).success?t:t.default(n)}},Qd=[new bd,new xd,new yd,new vd,new Sd,new Td,new Rd,new wd,new jd,new Od,new Ed,new Ad,new Cd,new _d,new Id,new $d,new Nd,new Fd,new Pd,new kd,new Md,new Dd],ef=[new Jd,new Kd,new Gd,new qd,new Vd,new zd,new Wd,new Hd,new Zd,new Ld,new Bd,new Xd,new Yd];function Ie(t){if(typeof t=="boolean")return t?ke():Gs();const e={};for(const i of Qd)i.apply(e,t);const n=[];if(e.string!==!1&&n.push(e.string||R()),e.number!==!1&&n.push(e.number||_e()),e.boolean!==!1&&n.push(e.boolean||Lt()),e.null!==!1&&n.push(e.null||Qi()),e.array!==!1&&n.push(e.array||Se(ke())),e.tuple!==!1&&e.tuple!==void 0&&n.push(e.tuple),e.object!==!1)if(e.object)n.push(e.object);else{const i=au(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}e.file!==!1&&e.file!==void 0&&n.push(e.file);let r;n.length===0?r=Gs():n.length===1?r=n[0]:Object.keys(t).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=Ar(n):r=ke();for(const i of ef)r=i.apply(r,t);return r}class Xs extends Event{constructor(e,n){var r,i;super(e),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,n,r){return r(Qs(this),n)}[Symbol.for("Deno.customInspect")](e,n){return e(Qs(this),n)}}function tf(t){const e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function Ii(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map(Ii).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${Ii(t.cause)}`:t.message:`${t}`}function Qs(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}var Ja=t=>{throw TypeError(t)},ss=(t,e,n)=>e.has(t)||Ja("Cannot "+n),Z=(t,e,n)=>(ss(t,e,"read from private field"),n?n.call(t):e.get(t)),ve=(t,e,n)=>e.has(t)?Ja("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pe=(t,e,n,r)=>(ss(t,e,"write to private field"),e.set(t,n),n),st=(t,e,n)=>(ss(t,e,"access private method"),n),Fe,Ft,Jt,yr,_r,kn,en,Mn,bt,Zt,sn,Xt,Nn,qe,Ti,Ni,Fi,eo,Pi,$i,Fn,Di,Ri;class br extends EventTarget{constructor(e,n){var r,i;super(),ve(this,qe),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,ve(this,Fe),ve(this,Ft),ve(this,Jt),ve(this,yr),ve(this,_r),ve(this,kn),ve(this,en),ve(this,Mn,null),ve(this,bt),ve(this,Zt),ve(this,sn,null),ve(this,Xt,null),ve(this,Nn,null),ve(this,Ni,async s=>{var o;Z(this,Zt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){st(this,qe,Fn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?pe(this,Jt,new URL(s.url)):pe(this,Jt,void 0),c!==200){st(this,qe,Fn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){st(this,qe,Fn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.OPEN);const d=new Event("open");if((o=Z(this,Nn))==null||o.call(this,d),this.dispatchEvent(d),typeof a!="object"||!a||!("getReader"in a)){st(this,qe,Fn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,y=a.getReader();let f=!0;do{const{done:p,value:b}=await y.read();b&&Z(this,Zt).feed(h.decode(b,{stream:!p})),p&&(f=!1,Z(this,Zt).reset(),st(this,qe,Di).call(this))}while(f)}),ve(this,Fi,s=>{pe(this,bt,void 0),!(s.name==="AbortError"||s.type==="aborted")&&st(this,qe,Di).call(this,Ii(s))}),ve(this,Pi,s=>{typeof s.id=="string"&&pe(this,Mn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:Z(this,Jt)?Z(this,Jt).origin:Z(this,Ft).origin,lastEventId:s.id||""});Z(this,Xt)&&(!s.event||s.event==="message")&&Z(this,Xt).call(this,o),this.dispatchEvent(o)}),ve(this,$i,s=>{pe(this,kn,s)}),ve(this,Ri,()=>{pe(this,en,void 0),Z(this,Fe)===this.CONNECTING&&st(this,qe,Ti).call(this)});try{if(e instanceof URL)pe(this,Ft,e);else if(typeof e=="string")pe(this,Ft,new URL(e,nf()));else throw new Error("Invalid URL")}catch{throw tf("An invalid or illegal string was specified")}pe(this,Zt,Nu({onEvent:Z(this,Pi),onRetry:Z(this,$i)})),pe(this,Fe,this.CONNECTING),pe(this,kn,3e3),pe(this,_r,(r=n?.fetch)!=null?r:globalThis.fetch),pe(this,yr,(i=n?.withCredentials)!=null?i:!1),st(this,qe,Ti).call(this)}get readyState(){return Z(this,Fe)}get url(){return Z(this,Ft).href}get withCredentials(){return Z(this,yr)}get onerror(){return Z(this,sn)}set onerror(e){pe(this,sn,e)}get onmessage(){return Z(this,Xt)}set onmessage(e){pe(this,Xt,e)}get onopen(){return Z(this,Nn)}set onopen(e){pe(this,Nn,e)}addEventListener(e,n,r){const i=n;super.addEventListener(e,i,r)}removeEventListener(e,n,r){const i=n;super.removeEventListener(e,i,r)}close(){Z(this,en)&&clearTimeout(Z(this,en)),Z(this,Fe)!==this.CLOSED&&(Z(this,bt)&&Z(this,bt).abort(),pe(this,Fe,this.CLOSED),pe(this,bt,void 0))}}Fe=new WeakMap,Ft=new WeakMap,Jt=new WeakMap,yr=new WeakMap,_r=new WeakMap,kn=new WeakMap,en=new WeakMap,Mn=new WeakMap,bt=new WeakMap,Zt=new WeakMap,sn=new WeakMap,Xt=new WeakMap,Nn=new WeakMap,qe=new WeakSet,Ti=function(){pe(this,Fe,this.CONNECTING),pe(this,bt,new AbortController),Z(this,_r)(Z(this,Ft),st(this,qe,eo).call(this)).then(Z(this,Ni)).catch(Z(this,Fi))},Ni=new WeakMap,Fi=new WeakMap,eo=function(){var t;const e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Z(this,Mn)?{"Last-Event-ID":Z(this,Mn)}:void 0},cache:"no-store",signal:(t=Z(this,bt))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},Pi=new WeakMap,$i=new WeakMap,Fn=function(t,e){var n;Z(this,Fe)!==this.CLOSED&&pe(this,Fe,this.CLOSED);const r=new Xs("error",{code:e,message:t});(n=Z(this,sn))==null||n.call(this,r),this.dispatchEvent(r)},Di=function(t,e){var n;if(Z(this,Fe)===this.CLOSED)return;pe(this,Fe,this.CONNECTING);const r=new Xs("error",{code:e,message:t});(n=Z(this,sn))==null||n.call(this,r),this.dispatchEvent(r),pe(this,en,setTimeout(Z(this,Ri),Z(this,kn)))},Ri=new WeakMap,br.CONNECTING=0,br.OPEN=1,br.CLOSED=2;function nf(){const t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}class rf extends Error{constructor(e,n,r){super(`SSE error: ${n}`),this.code=e,this.event=r}}class sf{constructor(e,n){this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=Fu(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new En("No auth provider");let e;try{e=await Qr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(e!=="AUTHORIZED")throw new En;return await this._startOrAuth()}async _commonHeaders(){const e={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(e.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(e["mcp-protocol-version"]=this._protocolVersion);const n=Pu(this._requestInit?.headers);return new Headers({...e,...n})}_startOrAuth(){const e=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new br(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await e(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=Js(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new rf(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=qa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new En("No auth provider");if(await Qr(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new En("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(e){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(e),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=Js(i);if(this._resourceMetadataUrl=o,this._scope=a,await Qr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new En;return this.send(e)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(e){this._protocolVersion=e}}const of="mcp";class af{constructor(e){this._url=e}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,n)=>{this._socket=new WebSocket(this._url,of),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{e()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=qa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(e){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(e)),n()})}}function lf(){const t=new Ga({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return du(t),t}class cf{#e=lf();#t=new Map;#n=new WeakMap;getValidator(e){const n=this.#n.get(e);if(n)return n;let r;const i=s=>{if(!r){const o=uf(e);let a=this.#t.get(o);a||(a=this.#e.compile(e),this.#t.set(o,a)),r=a}return r(s)?{valid:!0,data:s,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(r.errors)}};return this.#n.set(e,i),i}}function uf(t){return JSON.stringify(t,(e,n)=>n&&typeof n=="object"&&!Array.isArray(n)?Object.fromEntries(Object.keys(n).sort().map(r=>[r,n[r]])):n)}const df=new cf;var to;(function(t){t.Completable="McpCompletable"})(to||(to={}));class ff extends $u{constructor(e,n){super(e,n)}send(e,n){const r=mf(e);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(e,n)}}function mf(t){const e=t;if(!e||typeof e!="object"||!("method"in e))return null;switch(e.method){case"initialize":{const n=e?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:e.jsonrpc??"2.0",id:e.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class hf extends Du{constructor(e,n){super(e,{jsonSchemaValidator:df,...n})}async listTools(e,n){return await this.request({method:"tools/list",params:e},fu,n)}}const pf=async(t,e,n)=>{const r=gf(t.connection,e,n);if(!r)throw new Error("Unknown MCP connection type");const i=new hf({name:t?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},gf=(t,e,n)=>{if(t.type==="Websocket")return new af(new URL(t.url));if(t.type!=="SSE"&&t.type!=="HTTP")return null;const i={...t.token?{authorization:`Bearer ${t.token}`}:{},...n??{},..."headers"in t?t.headers||{}:{}};if(t.type==="SSE"){const s={requestInit:{headers:i,signal:e}};return t.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:e})}),new sf(new URL(t.url),s)}return new ff(new URL(t.url),{requestInit:{headers:i,signal:e,credentials:"include"}})},no=t=>{try{return JSON.parse(t)}catch{return t}},yf=500,Pt=new Map;function bf(t,e){if(Pt.set(t,e),Pt.size>yf){const n=Pt.keys().next().value;n!==void 0&&Pt.delete(n)}}const ro=(t,e)=>({...t,id:t.name,inputSchema:t.inputSchema?Ie(t.inputSchema):void 0,outputSchema:t.outputSchema?Ie(t.outputSchema):void 0,execute:n=>e(n.context,t.name)});function xf(t){const e=n=>"connection"in t?pf({connection:t.connection},void 0,n):t.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=t?.debugId?.(),d=u?{"x-trace-debug-id":u}:void 0,{client:h}=await e(d),{structuredContent:y,isError:f,content:p}=await h.callTool({name:String(c),arguments:l});if(f){const v=p?.[0]?.text,w=typeof v=="string"?no(v):null,E=w?.code&&typeof t?.getErrorByStatusCode=="function"?t.getErrorByStatusCode(w.code,w.message,w.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(y??p)}`)}if(y!==void 0)return y;const b=p?.[0]?.text;return typeof b=="string"?no(b):void 0}async function s(){const{client:l}=await e(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in t))return s();const l=t.connection,c=JSON.stringify(l);try{return Pt.has(c)||bf(c,s()),await Pt.get(c)}catch(u){console.error("Failed to list tools",u),Pt.delete(c);return}}async function a(){return(await o()??[]).map(c=>ro(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return ro(c,i)},i}})}new Proxy({},{get(t,e){return e==="toJSON"?null:e==="forConnection"?n=>io({connection:n}):e==="forClient"?n=>io({client:n}):globalThis[e]}});function io(t){return xf(t)}function vf(t){return{isImplementedBy:e=>{for(const n of t){const r=typeof n.name=="string"?new RegExp(`^${n.name}$`):n.name,i=e.find(s=>r.test(s.name));if(!(!i&&n.opt)&&!i)return!1}return!0}}}const Sf=Q({specversion:Ve("1.0").describe("CloudEvents specification version"),id:R().describe("Unique identifier for this event (UUID recommended)"),source:R().describe("Connection ID of the event publisher"),type:R().describe("Event type (e.g., 'order.created', 'user.signup')"),time:R().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:R().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:R().optional().default("application/json").describe("Content type of the data attribute"),dataschema:R().url().optional().describe("URI to the schema for the data attribute"),data:Va().optional().describe("Event payload (any JSON value)")});Q({events:Se(Sf).min(1).describe("Batch of CloudEvents to process")});const wf=Q({success:Lt().optional().describe("Whether this event was processed successfully"),error:R().optional().describe("Error message for this event"),retryAfter:_e().int().positive().optional().describe("Re-deliver this event after this many ms")});Q({success:Lt().optional().describe("Batch success - applies to events not in results"),error:R().optional().describe("Batch error message - applies to events not in results"),processedCount:_e().int().min(0).optional().describe("Number of events successfully processed"),retryAfter:_e().int().positive().optional().describe("Batch retryAfter - applies to events not in results"),results:er(R(),wf).optional().describe("Per-event results keyed by event ID")});const jf=Q({type:Ve("string"),enum:Se(R()).optional(),description:R().optional()}),Of=Q({type:R(),description:R(),paramsSchema:er(R(),jf)});Q({});Q({triggers:Se(Of)});Q({type:R(),params:er(R(),R()),enabled:Lt(),callbackUrl:mu().optional(),callbackToken:R().min(1).optional()});Q({success:Lt()});Q({prefix:R().optional().describe("Filter objects by prefix (e.g., 'folder/' for folder contents)"),maxKeys:_e().optional().default(1e3).describe("Maximum number of keys to return (default: 1000)"),continuationToken:R().optional().describe("Token for pagination from previous response"),delimiter:R().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")});Q({objects:Se(Q({key:R().describe("Object key/path"),size:_e().describe("Object size in bytes"),lastModified:R().describe("Last modified timestamp"),etag:R().describe("Entity tag for the object")})),nextContinuationToken:R().optional().describe("Token for fetching next page of results"),isTruncated:Lt().describe("Whether there are more results available"),commonPrefixes:Se(R()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")});Q({key:R().describe("Object key/path to get metadata for")});Q({contentType:R().optional().describe("MIME type of the object"),contentLength:_e().describe("Size of the object in bytes"),lastModified:R().describe("Last modified timestamp"),etag:R().describe("Entity tag for the object"),metadata:er(R(),R()).optional().describe("Custom metadata key-value pairs")});Q({key:R().describe("Object key/path to generate URL for"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)")});Q({url:R().describe("Presigned URL for downloading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:R().describe("Object key/path for the upload"),expiresIn:_e().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:R().optional().describe("MIME type for the object being uploaded")});Q({url:R().describe("Presigned URL for uploading the object"),expiresIn:_e().describe("Expiration time in seconds that was used")});Q({key:R().describe("Object key/path to delete")});Q({success:Lt().describe("Whether the deletion was successful"),key:R().describe("The key that was deleted")});Q({keys:Se(R()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")});Q({deleted:Se(R()).describe("Array of successfully deleted keys"),errors:Se(Q({key:R(),message:R()})).describe("Array of errors for failed deletions")});const Ef=Q({primary:R().optional().describe("Primary brand color (hex)"),secondary:R().optional().describe("Secondary brand color (hex)"),accent:R().optional().describe("Accent / highlight color (hex)"),background:R().optional().describe("Background color (hex)"),foreground:R().optional().describe("Foreground / text color (hex)")}),Af=Q({heading:R().optional().describe("Font family for headings"),body:R().optional().describe("Font family for body text"),code:R().optional().describe("Font family for code / monospace")}),Cf=Q({logo:R().optional().describe("Logo URL"),favicon:R().optional().describe("Favicon URL"),ogImage:R().optional().describe("Open Graph image URL")}),_f=Q({id:R(),name:R().describe("Brand / company name"),domain:R().optional().describe("Company domain (e.g. example.com)"),colors:Ef.optional().describe("Semantic color palette"),fonts:Af.optional().describe("Font families by role"),assets:Cf.optional().describe("Visual identity assets"),overview:R().optional().describe("Company overview / description"),tagline:R().optional().describe("Brand tagline"),tone:R().optional().describe("Tone of voice description"),metadata:er(R(),Va()).optional().describe("Extra design tokens and metadata")});Q({id:R().optional().describe("Brand ID. Omit to get the default brand.")});Q({});Q({items:Se(_f)});const If={"@deco/llm":"LLMS","@deco/trigger":"TRIGGER","@deco/object-storage":"OBJECT_STORAGE","@deco/brand":"BRAND"};function Tf(t){if(t)return If[t]}function Jj(t,e){const n=t.tools;if(!n||n.length===0)return!1;const r=n.map(o=>({name:o.name,inputSchema:o.inputSchema})),i=e.map(o=>({name:o.name,inputSchema:o.inputSchema,opt:o.opt}));return vf(i).isImplementedBy(r)}const os=P.createContext(null);function Zj(t){const e=je.c(3),{children:n}=t,r=P.useContext(os);if(!r?.tabsEl)return null;let i;return e[0]!==n||e[1]!==r.tabsEl?(i=za.createPortal(n,r.tabsEl),e[0]=n,e[1]=r.tabsEl,e[2]=i):i=e[2],i}function Nf(t){const e=je.c(3),{children:n}=t,r=P.useContext(os);if(!r?.actionsEl)return null;let i;return e[0]!==n||e[1]!==r.actionsEl?(i=za.createPortal(n,r.actionsEl),e[0]=n,e[1]=r.actionsEl,e[2]=i):i=e[2],i}const Xj=Nf;function Qj(t){const e=je.c(21),{children:n,breadcrumb:r,hideHeader:i}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={leftEl:null,tabsEl:null,actionsEl:null},e[0]=s):s=e[0];const[o,a]=P.useState(s),l=P.useRef(null),c=P.useRef(null),u=P.useRef(null);let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=C=>{l.current=C,C&&a(_=>_.leftEl===C?_:{..._,leftEl:C})},e[1]=d):d=e[1];const h=d;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=C=>{c.current=C,C&&a(_=>_.tabsEl===C?_:{..._,tabsEl:C})},e[2]=y):y=e[2];const f=y;let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=C=>{u.current=C,C&&a(_=>_.actionsEl===C?_:{..._,actionsEl:C})},e[3]=p):p=e[3];const b=p,v=i&&"hidden";let w;e[4]!==v?(w=Dr(v),e[4]=v,e[5]=w):w=e[5];let E;e[6]===Symbol.for("react.memo_cache_sentinel")?(E=m.jsx("div",{ref:h,className:"flex items-center gap-2 min-w-0"}),e[6]=E):E=e[6];let O;e[7]!==r?(O=m.jsxs(On.Header.Left,{children:[r,E]}),e[7]=r,e[8]=O):O=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=m.jsxs(On.Header.Right,{children:[m.jsx("div",{ref:f,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),m.jsx("div",{ref:b,className:"flex items-center gap-2 shrink-0"})]}),e[9]=g):g=e[9];let x;e[10]!==w||e[11]!==O?(x=m.jsxs(On.Header,{className:w,children:[O,g]}),e[10]=w,e[11]=O,e[12]=x):x=e[12];let S;e[13]!==n?(S=m.jsx(On.Content,{children:n}),e[13]=n,e[14]=S):S=e[14];let j;e[15]!==x||e[16]!==S?(j=m.jsxs(On,{children:[x,S]}),e[15]=x,e[16]=S,e[17]=j):j=e[17];let A;return e[18]!==o||e[19]!==j?(A=m.jsx(os,{value:o,children:j}),e[18]=o,e[19]=j,e[20]=A):A=e[20],A}function Ff(t){return t.startsWith("@")?t:`@${t}`}function Pf(){const{org:t}=ts(),{data:e}=hu.useSession(),n=Lu(),r=Ku(),i=Gu(),s=r.filter(a=>i(a.id));return{installByBinding:async a=>{if(!t||!e?.user?.id){gr.error("Not authenticated");return}const l=Ff(a),u=(await Promise.all(s.map(async p=>{const b=Vu(p.id,t.id);try{const v=await zu(p.id,t.id,t.slug,b,{where:{appName:l}});return Wu(v??[])[0]??null}catch{return null}}))).find(p=>p!==null);if(!u){gr.error(`MCP Server not found in registry: ${a}`);return}const d=Hu(u,t.id,e.user.id),h=d.connection_type==="STDIO",y=!!d.connection_url,f=h&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!y&&!f){gr.error("This MCP Server cannot be connected: no connection method available");return}return await n.create.mutateAsync(d),{id:d.id,connection:d}},isInstalling:n.create.isPending}}function V(t){return typeof t!="object"||t===null||typeof t.lastModified=="number"&&typeof File<"u"&&t instanceof File||typeof t.getMonth=="function"&&typeof Date<"u"&&t instanceof Date?!1:!Array.isArray(t)}function $f(t){return t.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),V(t.additionalItems)}function so(t){if(t==="")return;if(t===null)return null;if(/\.$/.test(t)||/\.0$/.test(t)||/\.\d*0$/.test(t))return t;const e=Number(t);return typeof e=="number"&&!Number.isNaN(e)?e:t}const ot="__additional_property",tn="additionalProperties",Ot="allOf",ee="anyOf",Ne="const",Dt="default",as="dependencies",Df="enum",Ae="__errors",de="$id",ls="if",an="items",Rf="_$junk_option_schema_id$_",xr="$name",W="oneOf",ki="patternProperties",oe="properties",ei="readonly",Za="required",Ir="submitButtonOptions",ue="$ref",Un="__rjsf_ref",Pn="$schema",Xa="root",Qa="_",kf=["discriminator","propertyName"],oo="formContext",Mf="layoutGridLookupMap",cs="__rjsf_additionalProperties",el="__rjsf_rootSchema",Uf="ui:field",us="ui:widget",vt="ui:options",Mi="ui:globalOptions",Lf="ui:definitions",Bf="https://json-schema.org/draft/2019-09/schema",vr="https://json-schema.org/draft/2020-12/schema";function U(t={},e={}){return t?Object.keys(t).filter(n=>n.startsWith("ui:")).reduce((n,r)=>{const i=t[r];return r===us&&V(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===vt&&V(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...e}):{...e}}function tl(t,e={},n){if(!(t.additionalProperties||t.patternProperties))return!1;const{expandable:r=!0}=U(e);return r===!1?r:t.maxProperties!==void 0&&n?Object.keys(n).length<t.maxProperties:!0}var nl=typeof global=="object"&&global&&global.Object===Object&&global,qf=typeof self=="object"&&self&&self.Object===Object&&self,nt=nl||qf||Function("return this")(),Me=nt.Symbol,rl=Object.prototype,Vf=rl.hasOwnProperty,zf=rl.toString,An=Me?Me.toStringTag:void 0;function Wf(t){var e=Vf.call(t,An),n=t[An];try{t[An]=void 0;var r=!0}catch{}var i=zf.call(t);return r&&(e?t[An]=n:delete t[An]),i}var Hf=Object.prototype,Kf=Hf.toString;function Gf(t){return Kf.call(t)}var Yf="[object Null]",Jf="[object Undefined]",ao=Me?Me.toStringTag:void 0;function ct(t){return t==null?t===void 0?Jf:Yf:ao&&ao in Object(t)?Wf(t):Gf(t)}function il(t,e){return function(n){return t(e(n))}}var kr=il(Object.getPrototypeOf,Object);function Ue(t){return t!=null&&typeof t=="object"}var Zf="[object Object]",Xf=Function.prototype,Qf=Object.prototype,sl=Xf.toString,em=Qf.hasOwnProperty,tm=sl.call(Object);function Et(t){if(!Ue(t)||ct(t)!=Zf)return!1;var e=kr(t);if(e===null)return!0;var n=em.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&sl.call(n)==tm}function Ui(t){const e={[Ae]:[],addError(n){this[Ae].push(n)}};if(Array.isArray(t))return t.reduce((n,r,i)=>({...n,[i]:Ui(r)}),e);if(Et(t)){const n=t;return Object.keys(n).reduce((r,i)=>({...r,[i]:Ui(n[i])}),e)}return e}var we=Array.isArray,nm="[object Symbol]";function tr(t){return typeof t=="symbol"||Ue(t)&&ct(t)==nm}var rm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,im=/^\w*$/;function ds(t,e){if(we(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||tr(t)?!0:im.test(t)||!rm.test(t)||e!=null&&t in Object(e)}function ne(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var sm="[object AsyncFunction]",om="[object Function]",am="[object GeneratorFunction]",lm="[object Proxy]";function nr(t){if(!ne(t))return!1;var e=ct(t);return e==om||e==am||e==sm||e==lm}var ti=nt["__core-js_shared__"],lo=(function(){var t=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function cm(t){return!!lo&&lo in t}var um=Function.prototype,dm=um.toString;function qt(t){if(t!=null){try{return dm.call(t)}catch{}try{return t+""}catch{}}return""}var fm=/[\\^$.*+?()[\]{}|]/g,mm=/^\[object .+?Constructor\]$/,hm=Function.prototype,pm=Object.prototype,gm=hm.toString,ym=pm.hasOwnProperty,bm=RegExp("^"+gm.call(ym).replace(fm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xm(t){if(!ne(t)||cm(t))return!1;var e=nr(t)?bm:mm;return e.test(qt(t))}function vm(t,e){return t?.[e]}function Vt(t,e){var n=vm(t,e);return xm(n)?n:void 0}var Kn=Vt(Object,"create");function Sm(){this.__data__=Kn?Kn(null):{},this.size=0}function wm(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var jm="__lodash_hash_undefined__",Om=Object.prototype,Em=Om.hasOwnProperty;function Am(t){var e=this.__data__;if(Kn){var n=e[t];return n===jm?void 0:n}return Em.call(e,t)?e[t]:void 0}var Cm=Object.prototype,_m=Cm.hasOwnProperty;function Im(t){var e=this.__data__;return Kn?e[t]!==void 0:_m.call(e,t)}var Tm="__lodash_hash_undefined__";function Nm(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Kn&&e===void 0?Tm:e,this}function Rt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Rt.prototype.clear=Sm;Rt.prototype.delete=wm;Rt.prototype.get=Am;Rt.prototype.has=Im;Rt.prototype.set=Nm;function Fm(){this.__data__=[],this.size=0}function rr(t,e){return t===e||t!==t&&e!==e}function Mr(t,e){for(var n=t.length;n--;)if(rr(t[n][0],e))return n;return-1}var Pm=Array.prototype,$m=Pm.splice;function Dm(t){var e=this.__data__,n=Mr(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():$m.call(e,n,1),--this.size,!0}function Rm(t){var e=this.__data__,n=Mr(e,t);return n<0?void 0:e[n][1]}function km(t){return Mr(this.__data__,t)>-1}function Mm(t,e){var n=this.__data__,r=Mr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function ut(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ut.prototype.clear=Fm;ut.prototype.delete=Dm;ut.prototype.get=Rm;ut.prototype.has=km;ut.prototype.set=Mm;var Gn=Vt(nt,"Map");function Um(){this.size=0,this.__data__={hash:new Rt,map:new(Gn||ut),string:new Rt}}function Lm(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ur(t,e){var n=t.__data__;return Lm(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Bm(t){var e=Ur(this,t).delete(t);return this.size-=e?1:0,e}function qm(t){return Ur(this,t).get(t)}function Vm(t){return Ur(this,t).has(t)}function zm(t,e){var n=Ur(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function dt(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=Um;dt.prototype.delete=Bm;dt.prototype.get=qm;dt.prototype.has=Vm;dt.prototype.set=zm;var Wm="Expected a function";function fs(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Wm);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(fs.Cache||dt),n}fs.Cache=dt;var Hm=500;function Km(t){var e=fs(t,function(r){return n.size===Hm&&n.clear(),r}),n=e.cache;return e}var Gm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ym=/\\(\\)?/g,ol=Km(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Gm,function(n,r,i,s){e.push(i?s.replace(Ym,"$1"):r||n)}),e});function gn(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var co=Me?Me.prototype:void 0,uo=co?co.toString:void 0;function al(t){if(typeof t=="string")return t;if(we(t))return gn(t,al)+"";if(tr(t))return uo?uo.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function ms(t){return t==null?"":al(t)}function yn(t,e){return we(t)?t:ds(t,e)?[t]:ol(ms(t))}function At(t){if(typeof t=="string"||tr(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Lr(t,e){e=yn(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[At(e[n++])];return n&&n==r?t:void 0}function D(t,e,n){var r=t==null?void 0:Lr(t,e);return r===void 0?n:r}const{getOwnPropertyNames:Jm,getOwnPropertySymbols:Zm}=Object,{hasOwnProperty:Xm}=Object.prototype;function ni(t,e){return function(r,i,s){return t(r,i,s)&&e(r,i,s)}}function dr(t){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,i);const{cache:s}=i,o=s.get(n),a=s.get(r);if(o&&a)return o===r&&a===n;s.set(n,r),s.set(r,n);const l=t(n,r,i);return s.delete(n),s.delete(r),l}}function fo(t){return Jm(t).concat(Zm(t))}const Qm=Object.hasOwn||((t,e)=>Xm.call(t,e)),eh="__v",th="__o",nh="_owner",{getOwnPropertyDescriptor:mo,keys:ho}=Object,zt=Object.is||function(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n};function rh(t,e){return t===e}function ih(t,e){return t.byteLength===e.byteLength&&Tr(new Uint8Array(t),new Uint8Array(e))}function sh(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function oh(t,e){return t.byteLength===e.byteLength&&Tr(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function ah(t,e){return zt(t.getTime(),e.getTime())}function lh(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function po(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.entries();let o,a,l=0;for(;(o=s.next())&&!o.done;){const c=e.entries();let u=!1,d=0;for(;(a=c.next())&&!a.done;){if(i[d]){d++;continue}const h=o.value,y=a.value;if(n.equals(h[0],y[0],l,d,t,e,n)&&n.equals(h[1],y[1],h[0],y[0],t,e,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}function ch(t,e,n){const r=ho(t);let i=r.length;if(ho(e).length!==i)return!1;for(;i-- >0;)if(!ll(t,e,n,r[i]))return!1;return!0}function Cn(t,e,n){const r=fo(t);let i=r.length;if(fo(e).length!==i)return!1;let s,o,a;for(;i-- >0;)if(s=r[i],!ll(t,e,n,s)||(o=mo(t,s),a=mo(e,s),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function uh(t,e){return zt(t.valueOf(),e.valueOf())}function dh(t,e){return t.source===e.source&&t.flags===e.flags}function go(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),s=t.values();let o,a;for(;(o=s.next())&&!o.done;){const l=e.values();let c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(o.value,a.value,o.value,a.value,t,e,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function Tr(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function fh(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function ll(t,e,n,r){return(r===nh||r===th||r===eh)&&(t.$$typeof||e.$$typeof)?!0:Qm(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const mh=Object.prototype.toString;function hh(t){const e=bh(t),{areArraysEqual:n,areDatesEqual:r,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:a,areRegExpsEqual:l,areSetsEqual:c,getUnsupportedCustomComparator:u}=t;return function(h,y,f){if(h===y)return!0;if(h==null||y==null)return!1;const p=typeof h;if(p!==typeof y)return!1;if(p!=="object")return p==="number"||p==="bigint"?o(h,y,f):p==="function"?i(h,y,f):!1;const b=h.constructor;if(b!==y.constructor)return!1;if(b===Object)return a(h,y,f);if(b===Array)return n(h,y,f);if(b===Date)return r(h,y,f);if(b===RegExp)return l(h,y,f);if(b===Map)return s(h,y,f);if(b===Set)return c(h,y,f);if(b===Promise)return!1;if(Array.isArray(h))return n(h,y,f);const v=mh.call(h),w=e[v];if(w)return w(h,y,f);const E=u&&u(h,y,f,v);return E?E(h,y,f):!1}}function ph({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:ih,areArraysEqual:n?Cn:sh,areDataViewsEqual:oh,areDatesEqual:ah,areErrorsEqual:lh,areFunctionsEqual:rh,areMapsEqual:n?ni(po,Cn):po,areNumbersEqual:zt,areObjectsEqual:n?Cn:ch,arePrimitiveWrappersEqual:uh,areRegExpsEqual:dh,areSetsEqual:n?ni(go,Cn):go,areTypedArraysEqual:n?ni(Tr,Cn):Tr,areUrlsEqual:fh,getUnsupportedCustomComparator:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const i=dr(r.areArraysEqual),s=dr(r.areMapsEqual),o=dr(r.areObjectsEqual),a=dr(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:o,areSetsEqual:a})}return r}function gh(t){return function(e,n,r,i,s,o,a){return t(e,n,a)}}function yh({circular:t,comparator:e,createState:n,equals:r,strict:i}){if(n)return function(a,l){const{cache:c=t?new WeakMap:void 0,meta:u}=n();return e(a,l,{cache:c,equals:r,meta:u,strict:i})};if(t)return function(a,l){return e(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const s={cache:void 0,equals:r,meta:void 0,strict:i};return function(a,l){return e(a,l,s)}}function bh({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:y}){return{"[object Arguments]":l,"[object Array]":e,"[object ArrayBuffer]":t,"[object AsyncGeneratorFunction]":s,"[object BigInt]":a,"[object BigInt64Array]":h,"[object BigUint64Array]":h,"[object Boolean]":c,"[object DataView]":n,"[object Date]":r,"[object Error]":i,"[object Float16Array]":h,"[object Float32Array]":h,"[object Float64Array]":h,"[object Function]":s,"[object GeneratorFunction]":s,"[object Int8Array]":h,"[object Int16Array]":h,"[object Int32Array]":h,"[object Map]":o,"[object Number]":c,"[object Object]":(f,p,b)=>typeof f.then!="function"&&typeof p.then!="function"&&l(f,p,b),"[object RegExp]":u,"[object Set]":d,"[object String]":c,"[object URL]":y,"[object Uint8Array]":h,"[object Uint8ClampedArray]":h,"[object Uint16Array]":h,"[object Uint32Array]":h}}ft();ft({strict:!0});ft({circular:!0});ft({circular:!0,strict:!0});ft({createInternalComparator:()=>zt});ft({strict:!0,createInternalComparator:()=>zt});ft({circular:!0,createInternalComparator:()=>zt});ft({circular:!0,createInternalComparator:()=>zt,strict:!0});function ft(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:i=!1}=t,s=ph(t),o=hh(s),a=n?n(o):gh(o);return yh({circular:e,comparator:o,createState:r,equals:a,strict:i})}const se=ft({circular:!0,createCustomConfig:()=>({areFunctionsEqual(t,e){return typeof e=="function"}})});var _n={exports:{}},ri,yo;function cl(){if(yo)return ri;yo=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),r=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(g){let x="",S=0,j=0;for(j=0;j<g.length;j++)if(S=g[j].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=g[j];break}for(j+=1;j<g.length;j++){if(S=g[j].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";x+=g[j]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function l(g,x,S){if(g.length){const j=s(g);if(j!=="")x.push(j);else return S.error=!0,!1;g.length=0}return!0}function c(g){let x=0;const S={error:!1,address:"",zone:""},j=[],A=[];let C=!1,_=!1,I=l;for(let T=0;T<g.length;T++){const N=g[T];if(!(N==="["||N==="]"))if(N===":"){if(C===!0&&(_=!0),!I(A,j,S))break;if(++x>7){S.error=!0;break}T>0&&g[T-1]===":"&&(C=!0),j.push(":");continue}else if(N==="%"){if(!I(A,j,S))break;I=a}else{A.push(N);continue}}return A.length&&(I===a?S.zone=A.join(""):_?j.push(A.join("")):j.push(s(A))),S.address=j.join(""),S}function u(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const x=c(g);if(x.error)return{host:g,isIPV6:!1};{let S=x.address,j=x.address;return x.zone&&(S+="%"+x.zone,j+="%25"+x.zone),{host:S,isIPV6:!0,escapedHost:j}}}function d(g,x){let S=0;for(let j=0;j<g.length;j++)g[j]===x&&S++;return S}function h(g){let x=g;const S=[];let j=-1,A=0;for(;A=x.length;){if(A===1){if(x===".")break;if(x==="/"){S.push("/");break}else{S.push(x);break}}else if(A===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&(x[1]==="."||x[1]==="/")){S.push("/");break}}else if(A===3&&x==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(x[0]==="."){if(x[1]==="."){if(x[2]==="/"){x=x.slice(3);continue}}else if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){if(x[2]==="/"){x=x.slice(2);continue}else if(x[2]==="."&&x[3]==="/"){x=x.slice(3),S.length!==0&&S.pop();continue}}if((j=x.indexOf("/",1))===-1){S.push(x);break}else S.push(x.slice(0,j)),x=x.slice(j)}return S.join("")}const y={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,p=/[@/?#]/g;function b(g,x){const S=x?p:f;return S.lastIndex=0,g.replace(S,j=>y[j])}function v(g,x=!1){if(g.indexOf("%")===-1)return g;let S="";for(let j=0;j<g.length;j++){if(g[j]==="%"&&j+2<g.length){const A=g.slice(j+1,j+3);if(n(A)){const C=A.toUpperCase(),_=String.fromCharCode(parseInt(C,16));x&&r(_)?S+=_:S+="%"+C,j+=2;continue}}S+=g[j]}return S}function w(g){let x="";for(let S=0;S<g.length;S++){if(g[S]==="%"&&S+2<g.length){const j=g.slice(S+1,S+3);if(n(j)){const A=j.toUpperCase(),C=String.fromCharCode(parseInt(A,16));C!=="."&&r(C)?x+=C:x+="%"+A,S+=2;continue}}i(g[S])?x+=g[S]:x+=escape(g[S])}return x}function E(g){let x="";for(let S=0;S<g.length;S++){if(g[S]==="%"&&S+2<g.length){const j=g.slice(S+1,S+3);if(n(j)){x+="%"+j.toUpperCase(),S+=2;continue}}x+=escape(g[S])}return x}function O(g){const x=[];if(g.userinfo!==void 0&&(x.push(g.userinfo),x.push("@")),g.host!==void 0){let S=unescape(g.host);if(!e(S)){const j=u(S);j.isIPV6===!0?S=`[${j.escapedHost}]`:S=b(S,!1)}x.push(S)}return(typeof g.port=="number"||typeof g.port=="string")&&(x.push(":"),x.push(String(g.port))),x.length?x.join(""):void 0}return ri={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:b,normalizePercentEncoding:v,normalizePathEncoding:w,escapePreservingEscapes:E,removeDotSegments:h,isIPv4:e,isUUID:t,normalizeIPv6:u,stringArrayToHexStripped:s},ri}var ii,bo;function xh(){if(bo)return ii;bo=1;const{isUUID:t}=cl(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(g){return n.indexOf(g)!==-1}function i(g){return g.secure===!0?!0:g.secure===!1?!1:g.scheme?g.scheme.length===3&&(g.scheme[0]==="w"||g.scheme[0]==="W")&&(g.scheme[1]==="s"||g.scheme[1]==="S")&&(g.scheme[2]==="s"||g.scheme[2]==="S"):!1}function s(g){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g}function o(g){const x=String(g.scheme).toLowerCase()==="https";return(g.port===(x?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}function a(g){return g.secure=i(g),g.resourceName=(g.path||"/")+(g.query?"?"+g.query:""),g.path=void 0,g.query=void 0,g}function l(g){if((g.port===(i(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){const[x,S]=g.resourceName.split("?");g.path=x&&x!=="/"?x:void 0,g.query=S,g.resourceName=void 0}return g.fragment=void 0,g}function c(g,x){if(!g.path)return g.error="URN can not be parsed",g;const S=g.path.match(e);if(S){const j=x.scheme||g.scheme||"urn";g.nid=S[1].toLowerCase(),g.nss=S[2];const A=`${j}:${x.nid||g.nid}`,C=O(A);g.path=void 0,C&&(g=C.parse(g,x))}else g.error=g.error||"URN can not be parsed.";return g}function u(g,x){if(g.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=x.scheme||g.scheme||"urn",j=g.nid.toLowerCase(),A=`${S}:${x.nid||j}`,C=O(A);C&&(g=C.serialize(g,x));const _=g,I=g.nss;return _.path=`${j||x.nid}:${I}`,x.skipEscape=!0,_}function d(g,x){const S=g;return S.uuid=S.nss,S.nss=void 0,!x.tolerant&&(!S.uuid||!t(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function h(g){const x=g;return x.nss=(g.uuid||"").toLowerCase(),x}const y={scheme:"http",domainHost:!0,parse:s,serialize:o},f={scheme:"https",domainHost:y.domainHost,parse:s,serialize:o},p={scheme:"ws",domainHost:!0,parse:a,serialize:l},b={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize},E={http:y,https:f,ws:p,wss:b,urn:{scheme:"urn",parse:c,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:h,skipNormalize:!0}};Object.setPrototypeOf(E,null);function O(g){return g&&(E[g]||E[g.toLowerCase()])||void 0}return ii={wsIsSecure:i,SCHEMES:E,isValidSchemeName:r,getSchemeHandler:O},ii}var xo;function vh(){if(xo)return _n.exports;xo=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:n,normalizePercentEncoding:r,normalizePathEncoding:i,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:a,nonSimpleDomain:l}=cl(),{SCHEMES:c,getSchemeHandler:u}=xh();function d(j,A){return typeof j=="string"?j=O(j,A):typeof j=="object"&&(j=E(p(j,A),A)),j}function h(j,A,C){const _=C?Object.assign({scheme:"null"},C):{scheme:"null"},I=y(E(j,_),E(A,_),_,!0);return _.skipEscape=!0,p(I,_)}function y(j,A,C,_){const I={};return _||(j=E(p(j,C),C),A=E(p(A,C),C)),C=C||{},!C.tolerant&&A.scheme?(I.scheme=A.scheme,I.userinfo=A.userinfo,I.host=A.host,I.port=A.port,I.path=e(A.path||""),I.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(I.userinfo=A.userinfo,I.host=A.host,I.port=A.port,I.path=e(A.path||""),I.query=A.query):(A.path?(A.path[0]==="/"?I.path=e(A.path):((j.userinfo!==void 0||j.host!==void 0||j.port!==void 0)&&!j.path?I.path="/"+A.path:j.path?I.path=j.path.slice(0,j.path.lastIndexOf("/")+1)+A.path:I.path=A.path,I.path=e(I.path)),I.query=A.query):(I.path=j.path,A.query!==void 0?I.query=A.query:I.query=j.query),I.userinfo=j.userinfo,I.host=j.host,I.port=j.port),I.scheme=j.scheme),I.fragment=A.fragment,I}function f(j,A,C){const _=x(j,C),I=x(A,C);return _!==void 0&&I!==void 0&&_.toLowerCase()===I.toLowerCase()}function p(j,A){const C={host:j.host,scheme:j.scheme,userinfo:j.userinfo,port:j.port,path:j.path,query:j.query,nid:j.nid,nss:j.nss,uuid:j.uuid,fragment:j.fragment,reference:j.reference,resourceName:j.resourceName,secure:j.secure,error:""},_=Object.assign({},A),I=[],T=u(_.scheme||C.scheme);T&&T.serialize&&T.serialize(C,_),C.path!==void 0&&(_.skipEscape?C.path=r(C.path):(C.path=s(C.path),C.scheme!==void 0&&(C.path=C.path.split("%3A").join(":")))),_.reference!=="suffix"&&C.scheme&&I.push(C.scheme,":");const N=n(C);if(N!==void 0&&(_.reference!=="suffix"&&I.push("//"),I.push(N),C.path&&C.path[0]!=="/"&&I.push("/")),C.path!==void 0){let F=C.path;!_.absolutePath&&(!T||!T.absolutePath)&&(F=e(F)),N===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),I.push(F)}return C.query!==void 0&&I.push("?",C.query),C.fragment!==void 0&&I.push("#",C.fragment),I.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(j,A){if(A[2]!==void 0&&j.path&&j.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof j.port=="number"&&(j.port<0||j.port>65535))return"URI port is malformed."}function w(j,A){const C=Object.assign({},A),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let I=!1,T=!1;C.reference==="suffix"&&(C.scheme?j=C.scheme+":"+j:j="//"+j);const N=j.match(b);if(N){_.scheme=N[1],_.userinfo=N[3],_.host=N[4],_.port=parseInt(N[5],10),_.path=N[6]||"",_.query=N[7],_.fragment=N[8],isNaN(_.port)&&(_.port=N[5]);const F=v(_,N);if(F!==void 0&&(_.error=_.error||F,I=!0),_.host)if(a(_.host)===!1){const B=t(_.host);_.host=B.host.toLowerCase(),T=B.isIPV6}else T=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==_.reference&&(_.error=_.error||"URI is not a "+C.reference+" reference.");const $=u(C.scheme||_.scheme);if(!C.unicodeSupport&&(!$||!$.unicodeSupport)&&_.host&&(C.domainHost||$&&$.domainHost)&&T===!1&&l(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(k){_.error=_.error||"Host's domain name can not be converted to ASCII: "+k}if((!$||$&&!$.skipNormalize)&&(j.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=o(unescape(_.host),T))),_.path&&(_.path=i(_.path)),_.fragment))try{_.fragment=encodeURI(decodeURIComponent(_.fragment))}catch{_.error=_.error||"URI malformed"}$&&$.parse&&$.parse(_,C)}else _.error=_.error||"URI can not be parsed.";return{parsed:_,malformedAuthorityOrPort:I}}function E(j,A){return w(j,A).parsed}function O(j,A){return g(j,A).normalized}function g(j,A){const{parsed:C,malformedAuthorityOrPort:_}=w(j,A);return{normalized:_?j:p(C,A),malformedAuthorityOrPort:_}}function x(j,A){if(typeof j=="string"){const{normalized:C,malformedAuthorityOrPort:_}=g(j,A);return _?void 0:C}if(typeof j=="object")return p(j,A)}const S={SCHEMES:c,normalize:d,resolve:h,resolveComponent:y,equal:f,serialize:p,parse:E};return _n.exports=S,_n.exports.default=S,_n.exports.fastUri=S,_n.exports}var Sh=vh();const hs=ns(Sh);var In={},vo;function wh(){if(vo)return In;vo=1;var t=/~/,e=/~[01]/g;function n(c){switch(c){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+c)}function r(c){return t.test(c)?c.replace(e,n):c}function i(c,u,d){for(var h,y,f=1,p=u.length;f<p;){if(u[f]==="constructor"||u[f]==="prototype"||u[f]==="__proto__")return c;if(h=r(u[f++]),y=p>f,typeof c[h]>"u"&&(Array.isArray(c)&&h==="-"&&(h=c.length),y&&(u[f]!==""&&u[f]<1/0||u[f]==="-"?c[h]=[]:c[h]={})),!y)break;c=c[h]}var b=c[h];return d===void 0?delete c[h]:c[h]=d,b}function s(c){if(typeof c=="string"){if(c=c.split("/"),c[0]==="")return c;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(c)){for(const u of c)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return c}throw new Error("Invalid JSON pointer.")}function o(c,u){if(typeof c!="object")throw new Error("Invalid input object.");u=s(u);var d=u.length;if(d===1)return c;for(var h=1;h<d;){if(c=c[r(u[h++])],d===h)return c;if(typeof c!="object"||c===null)return}}function a(c,u,d){if(typeof c!="object")throw new Error("Invalid input object.");if(u=s(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(c,u,d)}function l(c){var u=s(c);return{get:function(d){return o(d,u)},set:function(d,h){return a(d,u,h)}}}return In.get=o,In.set=a,In.compile=l,In}var jh=wh();const si=ns(jh);var Oh=Object.prototype;function Br(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Oh;return t===n}var Eh=il(Object.keys,Object),Ah=Object.prototype,Ch=Ah.hasOwnProperty;function ul(t){if(!Br(t))return Eh(t);var e=[];for(var n in Object(t))Ch.call(t,n)&&n!="constructor"&&e.push(n);return e}var Li=Vt(nt,"DataView"),Bi=Vt(nt,"Promise"),on=Vt(nt,"Set"),qi=Vt(nt,"WeakMap"),So="[object Map]",_h="[object Object]",wo="[object Promise]",jo="[object Set]",Oo="[object WeakMap]",Eo="[object DataView]",Ih=qt(Li),Th=qt(Gn),Nh=qt(Bi),Fh=qt(on),Ph=qt(qi),Re=ct;(Li&&Re(new Li(new ArrayBuffer(1)))!=Eo||Gn&&Re(new Gn)!=So||Bi&&Re(Bi.resolve())!=wo||on&&Re(new on)!=jo||qi&&Re(new qi)!=Oo)&&(Re=function(t){var e=ct(t),n=e==_h?t.constructor:void 0,r=n?qt(n):"";if(r)switch(r){case Ih:return Eo;case Th:return So;case Nh:return wo;case Fh:return jo;case Ph:return Oo}return e});var $h="[object Arguments]";function Ao(t){return Ue(t)&&ct(t)==$h}var dl=Object.prototype,Dh=dl.hasOwnProperty,Rh=dl.propertyIsEnumerable,ln=Ao((function(){return arguments})())?Ao:function(t){return Ue(t)&&Dh.call(t,"callee")&&!Rh.call(t,"callee")},kh=9007199254740991;function ps(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=kh}function Wt(t){return t!=null&&ps(t.length)&&!nr(t)}function Mh(){return!1}var fl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Co=fl&&typeof module=="object"&&module&&!module.nodeType&&module,Uh=Co&&Co.exports===fl,_o=Uh?nt.Buffer:void 0,Lh=_o?_o.isBuffer:void 0,kt=Lh||Mh,Bh="[object Arguments]",qh="[object Array]",Vh="[object Boolean]",zh="[object Date]",Wh="[object Error]",Hh="[object Function]",Kh="[object Map]",Gh="[object Number]",Yh="[object Object]",Jh="[object RegExp]",Zh="[object Set]",Xh="[object String]",Qh="[object WeakMap]",ep="[object ArrayBuffer]",tp="[object DataView]",np="[object Float32Array]",rp="[object Float64Array]",ip="[object Int8Array]",sp="[object Int16Array]",op="[object Int32Array]",ap="[object Uint8Array]",lp="[object Uint8ClampedArray]",cp="[object Uint16Array]",up="[object Uint32Array]",he={};he[np]=he[rp]=he[ip]=he[sp]=he[op]=he[ap]=he[lp]=he[cp]=he[up]=!0;he[Bh]=he[qh]=he[ep]=he[Vh]=he[tp]=he[zh]=he[Wh]=he[Hh]=he[Kh]=he[Gh]=he[Yh]=he[Jh]=he[Zh]=he[Xh]=he[Qh]=!1;function dp(t){return Ue(t)&&ps(t.length)&&!!he[ct(t)]}function gs(t){return function(e){return t(e)}}var ml=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ln=ml&&typeof module=="object"&&module&&!module.nodeType&&module,fp=Ln&&Ln.exports===ml,oi=fp&&nl.process,cn=(function(){try{var t=Ln&&Ln.require&&Ln.require("util").types;return t||oi&&oi.binding&&oi.binding("util")}catch{}})(),Io=cn&&cn.isTypedArray,ir=Io?gs(Io):dp,mp="[object Map]",hp="[object Set]",pp=Object.prototype,gp=pp.hasOwnProperty;function ge(t){if(t==null)return!0;if(Wt(t)&&(we(t)||typeof t=="string"||typeof t.splice=="function"||kt(t)||ir(t)||ln(t)))return!t.length;var e=Re(t);if(e==mp||e==hp)return!t.size;if(Br(t))return!ul(t).length;for(var n in t)if(gp.call(t,n))return!1;return!0}function yp(){this.__data__=new ut,this.size=0}function bp(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function xp(t){return this.__data__.get(t)}function vp(t){return this.__data__.has(t)}var Sp=200;function wp(t,e){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!Gn||r.length<Sp-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(t,e),this.size=n.size,this}function We(t){var e=this.__data__=new ut(t);this.size=e.size}We.prototype.clear=yp;We.prototype.delete=bp;We.prototype.get=xp;We.prototype.has=vp;We.prototype.set=wp;function ys(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Nr=(function(){try{var t=Vt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function bs(t,e,n){e=="__proto__"&&Nr?Nr(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var jp=Object.prototype,Op=jp.hasOwnProperty;function xs(t,e,n){var r=t[e];(!(Op.call(t,e)&&rr(r,n))||n===void 0&&!(e in t))&&bs(t,e,n)}function bn(t,e,n,r){var i=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),i?bs(n,a,l):xs(n,a,l)}return n}function hl(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Ep=9007199254740991,Ap=/^(?:0|[1-9]\d*)$/;function qr(t,e){var n=typeof t;return e=e??Ep,!!e&&(n=="number"||n!="symbol"&&Ap.test(t))&&t>-1&&t%1==0&&t<e}var Cp=Object.prototype,_p=Cp.hasOwnProperty;function pl(t,e){var n=we(t),r=!n&&ln(t),i=!n&&!r&&kt(t),s=!n&&!r&&!i&&ir(t),o=n||r||i||s,a=o?hl(t.length,String):[],l=a.length;for(var c in t)(e||_p.call(t,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qr(c,l)))&&a.push(c);return a}function ze(t){return Wt(t)?pl(t):ul(t)}function Ip(t,e){return t&&bn(e,ze(e),t)}function Tp(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Np=Object.prototype,Fp=Np.hasOwnProperty;function Pp(t){if(!ne(t))return Tp(t);var e=Br(t),n=[];for(var r in t)r=="constructor"&&(e||!Fp.call(t,r))||n.push(r);return n}function sr(t){return Wt(t)?pl(t,!0):Pp(t)}function $p(t,e){return t&&bn(e,sr(e),t)}var gl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,To=gl&&typeof module=="object"&&module&&!module.nodeType&&module,Dp=To&&To.exports===gl,No=Dp?nt.Buffer:void 0,Fo=No?No.allocUnsafe:void 0;function yl(t,e){if(e)return t.slice();var n=t.length,r=Fo?Fo(n):new t.constructor(n);return t.copy(r),r}function vs(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Rp(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function bl(){return[]}var kp=Object.prototype,Mp=kp.propertyIsEnumerable,Po=Object.getOwnPropertySymbols,Ss=Po?function(t){return t==null?[]:(t=Object(t),Rp(Po(t),function(e){return Mp.call(t,e)}))}:bl;function Up(t,e){return bn(t,Ss(t),e)}function ws(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Lp=Object.getOwnPropertySymbols,xl=Lp?function(t){for(var e=[];t;)ws(e,Ss(t)),t=kr(t);return e}:bl;function Bp(t,e){return bn(t,xl(t),e)}function vl(t,e,n){var r=e(t);return we(t)?r:ws(r,n(t))}function Vi(t){return vl(t,ze,Ss)}function js(t){return vl(t,sr,xl)}var qp=Object.prototype,Vp=qp.hasOwnProperty;function zp(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Vp.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Fr=nt.Uint8Array;function Os(t){var e=new t.constructor(t.byteLength);return new Fr(e).set(new Fr(t)),e}function Wp(t,e){var n=e?Os(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Hp=/\w*$/;function Kp(t){var e=new t.constructor(t.source,Hp.exec(t));return e.lastIndex=t.lastIndex,e}var $o=Me?Me.prototype:void 0,Do=$o?$o.valueOf:void 0;function Gp(t){return Do?Object(Do.call(t)):{}}function Sl(t,e){var n=e?Os(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Yp="[object Boolean]",Jp="[object Date]",Zp="[object Map]",Xp="[object Number]",Qp="[object RegExp]",eg="[object Set]",tg="[object String]",ng="[object Symbol]",rg="[object ArrayBuffer]",ig="[object DataView]",sg="[object Float32Array]",og="[object Float64Array]",ag="[object Int8Array]",lg="[object Int16Array]",cg="[object Int32Array]",ug="[object Uint8Array]",dg="[object Uint8ClampedArray]",fg="[object Uint16Array]",mg="[object Uint32Array]";function hg(t,e,n){var r=t.constructor;switch(e){case rg:return Os(t);case Yp:case Jp:return new r(+t);case ig:return Wp(t,n);case sg:case og:case ag:case lg:case cg:case ug:case dg:case fg:case mg:return Sl(t,n);case Zp:return new r;case Xp:case tg:return new r(t);case Qp:return Kp(t);case eg:return new r;case ng:return Gp(t)}}var Ro=Object.create,wl=(function(){function t(){}return function(e){if(!ne(e))return{};if(Ro)return Ro(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function jl(t){return typeof t.constructor=="function"&&!Br(t)?wl(kr(t)):{}}var pg="[object Map]";function gg(t){return Ue(t)&&Re(t)==pg}var ko=cn&&cn.isMap,yg=ko?gs(ko):gg,bg="[object Set]";function xg(t){return Ue(t)&&Re(t)==bg}var Mo=cn&&cn.isSet,vg=Mo?gs(Mo):xg,Sg=1,wg=2,jg=4,Ol="[object Arguments]",Og="[object Array]",Eg="[object Boolean]",Ag="[object Date]",Cg="[object Error]",El="[object Function]",_g="[object GeneratorFunction]",Ig="[object Map]",Tg="[object Number]",Al="[object Object]",Ng="[object RegExp]",Fg="[object Set]",Pg="[object String]",$g="[object Symbol]",Dg="[object WeakMap]",Rg="[object ArrayBuffer]",kg="[object DataView]",Mg="[object Float32Array]",Ug="[object Float64Array]",Lg="[object Int8Array]",Bg="[object Int16Array]",qg="[object Int32Array]",Vg="[object Uint8Array]",zg="[object Uint8ClampedArray]",Wg="[object Uint16Array]",Hg="[object Uint32Array]",me={};me[Ol]=me[Og]=me[Rg]=me[kg]=me[Eg]=me[Ag]=me[Mg]=me[Ug]=me[Lg]=me[Bg]=me[qg]=me[Ig]=me[Tg]=me[Al]=me[Ng]=me[Fg]=me[Pg]=me[$g]=me[Vg]=me[zg]=me[Wg]=me[Hg]=!0;me[Cg]=me[El]=me[Dg]=!1;function Bn(t,e,n,r,i,s){var o,a=e&Sg,l=e&wg,c=e&jg;if(n&&(o=i?n(t,r,i,s):n(t)),o!==void 0)return o;if(!ne(t))return t;var u=we(t);if(u){if(o=zp(t),!a)return vs(t,o)}else{var d=Re(t),h=d==El||d==_g;if(kt(t))return yl(t,a);if(d==Al||d==Ol||h&&!i){if(o=l||h?{}:jl(t),!a)return l?Bp(t,$p(o,t)):Up(t,Ip(o,t))}else{if(!me[d])return i?t:{};o=hg(t,d,a)}}s||(s=new We);var y=s.get(t);if(y)return y;s.set(t,o),vg(t)?t.forEach(function(b){o.add(Bn(b,e,n,b,t,s))}):yg(t)&&t.forEach(function(b,v){o.set(v,Bn(b,e,n,v,t,s))});var f=c?l?js:Vi:l?sr:ze,p=u?void 0:f(t);return ys(p||t,function(b,v){p&&(v=b,b=t[v]),xs(o,v,Bn(b,e,n,v,t,s))}),o}function Cl(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function Kg(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}function Gg(t,e){return e.length<2?t:Lr(t,Kg(e,0,-1))}var Yg=Object.prototype,Jg=Yg.hasOwnProperty;function _l(t,e){e=yn(e,t);var n=-1,r=e.length;if(!r)return!0;for(;++n<r;){var i=At(e[n]);if(i==="__proto__"&&!Jg.call(t,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var s=Gg(t,e);return s==null||delete s[At(Cl(e))]}function Zg(t){return Et(t)?void 0:t}var Uo=Me?Me.isConcatSpreadable:void 0;function Xg(t){return we(t)||ln(t)||!!(Uo&&t&&t[Uo])}function or(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=Xg),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?or(a,e-1,n,r,i):ws(i,a):r||(i[i.length]=a)}return i}function zi(t){var e=t==null?0:t.length;return e?or(t,1):[]}function Qg(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Lo=Math.max;function Il(t,e,n){return e=Lo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Lo(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),Qg(t,this,a)}}function ey(t){return function(){return t}}function Vr(t){return t}var ty=Nr?function(t,e){return Nr(t,"toString",{configurable:!0,enumerable:!1,value:ey(e),writable:!0})}:Vr,ny=800,ry=16,iy=Date.now;function sy(t){var e=0,n=0;return function(){var r=iy(),i=ry-(r-n);if(n=r,i>0){if(++e>=ny)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Tl=sy(ty);function Nl(t){return Tl(Il(t,void 0,zi),t+"")}var oy=1,ay=2,ly=4,un=Nl(function(t,e){var n={};if(t==null)return n;var r=!1;e=gn(e,function(s){return s=yn(s,t),r||(r=s.length>1),s}),bn(t,js(t),n),r&&(n=Bn(n,oy|ay|ly,Zg));for(var i=e.length;i--;)_l(n,e[i]);return n});function Pr(t,e){if(de in t&&hs.equal(t[de],e))return t;for(const n of Object.values(t))if(Array.isArray(n)){for(const r of n)if(ne(r)){const i=Pr(r,e);if(i!==void 0)return i}}else if(ne(n)){const r=Pr(n,e);if(r!==void 0)return r}}function Wi(t,e){const n=D(t,de,e);let r=t;ue in r&&(r={...r,[ue]:hs.resolve(n,r[ue])});for(const[i,s]of Object.entries(r))Array.isArray(s)?r={...r,[i]:s.map(o=>ne(o)?Wi(o,n):o)}:ne(s)&&(r={...r,[i]:Wi(s,n)});return r}function Es(t,e){const n=e[t];return[un(e,[t]),n]}function Fl(t,e={},n=[],r=D(e,[de])){const i=t||"";let s,o=r;if(i.startsWith("#")){const l=decodeURIComponent(i.substring(1));o===void 0||de in e&&e[de]===o?s=si.get(e,l):e[Pn]===vr&&(s=Pr(e,o.replace(/\/$/,"")),s!==void 0&&(s=si.get(s,l)))}else if(e[Pn]===vr){const l=o?hs.resolve(o,i):i,[c,...u]=l.replace(/#\/?$/,"").split("#");s=Pr(e,c.replace(/\/$/,"")),s!==void 0&&(o=s[de],ge(u)||(s=si.get(s,decodeURIComponent(u.join("#")))))}if(s===void 0)throw new Error(`Could not find a definition for ${t}.`);const a=s[ue];if(a){if(n.includes(a)){if(n.length===1)throw new Error(`Definition for ${t} is a circular reference`);const[d,...h]=n,y=[...h,i,d].join(" -> ");throw new Error(`Definition for ${d} contains a circular reference through ${y}`)}const[l,c]=Es(ue,s),u=Fl(c,e,[...n,i],o);return Object.keys(l).length>0?e[Pn]===Bf||e[Pn]===vr?{[Ot]:[l,u]}:{...l,...u}:u}return s}function Yn(t,e={},n=D(e,[de])){return Fl(t,e,[],n)}var cy=Object.prototype,uy=cy.hasOwnProperty;function dy(t,e){return t!=null&&uy.call(t,e)}function Pl(t,e,n){e=yn(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var o=At(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&ps(i)&&qr(o,i)&&(we(t)||ln(t)))}function X(t,e){return t!=null&&Pl(t,e,dy)}var fy="[object String]";function Ct(t){return typeof t=="string"||!we(t)&&Ue(t)&&ct(t)==fy}function He(t){let e;const n=D(t,kf);return Ct(n)?e=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),e}var my=1/0;function hy(t){var e=t==null?0:t.length;return e?or(t,my):[]}function Hi(t,e,n){(n!==void 0&&!rr(t[e],n)||n===void 0&&!(e in t))&&bs(t,e,n)}function py(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return e}}var $l=py();function Jn(t){return Ue(t)&&Wt(t)}function Ki(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function gy(t){return bn(t,sr(t))}function yy(t,e,n,r,i,s,o){var a=Ki(t,n),l=Ki(e,n),c=o.get(l);if(c){Hi(t,n,c);return}var u=s?s(a,l,n+"",t,e,o):void 0,d=u===void 0;if(d){var h=we(l),y=!h&&kt(l),f=!h&&!y&&ir(l);u=l,h||y||f?we(a)?u=a:Jn(a)?u=vs(a):y?(d=!1,u=yl(l,!0)):f?(d=!1,u=Sl(l,!0)):u=[]:Et(l)||ln(l)?(u=a,ln(a)?u=gy(a):(!ne(a)||nr(a))&&(u=jl(l))):d=!1}d&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),Hi(t,n,u)}function Dl(t,e,n,r,i){t!==e&&$l(e,function(s,o){if(i||(i=new We),ne(s))yy(t,e,o,n,Dl,r,i);else{var a=r?r(Ki(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),Hi(t,o,a)}},sr)}function zr(t,e){return Tl(Il(t,e,Vr),t+"")}function by(t,e,n){if(!ne(n))return!1;var r=typeof e;return(r=="number"?Wt(n)&&qr(e,n.length):r=="string"&&e in n)?rr(n[e],t):!1}function xy(t){return zr(function(e,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&by(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,s)}return e})}var vy=xy(function(t,e,n){Dl(t,e,n)});function As(t,e,n,r){if(!ne(t))return t;e=yn(e,t);for(var i=-1,s=e.length,o=s-1,a=t;a!=null&&++i<s;){var l=At(e[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=o){var u=a[l];c=r?r(u,l,a):void 0,c===void 0&&(c=ne(u)?u:qr(e[i+1])?[]:{})}xs(a,l,c),a=a[l]}return t}function ce(t,e,n){return t==null?t:As(t,e,n)}function Rl(t){return typeof t=="function"?t:Vr}var Sy=/\s/;function wy(t){for(var e=t.length;e--&&Sy.test(t.charAt(e)););return e}var jy=/^\s+/;function Oy(t){return t&&t.slice(0,wy(t)+1).replace(jy,"")}var Bo=NaN,Ey=/^[-+]0x[0-9a-f]+$/i,Ay=/^0b[01]+$/i,Cy=/^0o[0-7]+$/i,_y=parseInt;function Iy(t){if(typeof t=="number")return t;if(tr(t))return Bo;if(ne(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ne(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Oy(t);var n=Ay.test(t);return n||Cy.test(t)?_y(t.slice(2),n?2:8):Ey.test(t)?Bo:+t}var qo=1/0,Ty=17976931348623157e292;function Ny(t){if(!t)return t===0?t:0;if(t=Iy(t),t===qo||t===-qo){var e=t<0?-1:1;return e*Ty}return t===t?t:0}function kl(t){var e=Ny(t),n=e%1;return e===e?n?e-n:e:0}var Fy=9007199254740991,ai=4294967295,Py=Math.min;function Ml(t,e){if(t=kl(t),t<1||t>Fy)return[];var n=ai,r=Py(t,ai);e=Rl(e),t-=ai;for(var i=hl(r,e);++n<t;)e(n);return i}function Ul(t,e){return t&&$l(t,e,ze)}var $y="__lodash_hash_undefined__";function Dy(t){return this.__data__.set(t,$y),this}function Ry(t){return this.__data__.has(t)}function Mt(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dt;++e<n;)this.add(t[e])}Mt.prototype.add=Mt.prototype.push=Dy;Mt.prototype.has=Ry;function ky(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Zn(t,e){return t.has(e)}var My=1,Uy=2;function Ll(t,e,n,r,i,s){var o=n&My,a=t.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(t),u=s.get(e);if(c&&u)return c==e&&u==t;var d=-1,h=!0,y=n&Uy?new Mt:void 0;for(s.set(t,e),s.set(e,t);++d<a;){var f=t[d],p=e[d];if(r)var b=o?r(p,f,d,e,t,s):r(f,p,d,t,e,s);if(b!==void 0){if(b)continue;h=!1;break}if(y){if(!ky(e,function(v,w){if(!Zn(y,w)&&(f===v||i(f,v,n,r,s)))return y.push(w)})){h=!1;break}}else if(!(f===p||i(f,p,n,r,s))){h=!1;break}}return s.delete(t),s.delete(e),h}function Ly(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function Cs(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var By=1,qy=2,Vy="[object Boolean]",zy="[object Date]",Wy="[object Error]",Hy="[object Map]",Ky="[object Number]",Gy="[object RegExp]",Yy="[object Set]",Jy="[object String]",Zy="[object Symbol]",Xy="[object ArrayBuffer]",Qy="[object DataView]",Vo=Me?Me.prototype:void 0,li=Vo?Vo.valueOf:void 0;function eb(t,e,n,r,i,s,o){switch(n){case Qy:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Xy:return!(t.byteLength!=e.byteLength||!s(new Fr(t),new Fr(e)));case Vy:case zy:case Ky:return rr(+t,+e);case Wy:return t.name==e.name&&t.message==e.message;case Gy:case Jy:return t==e+"";case Hy:var a=Ly;case Yy:var l=r&By;if(a||(a=Cs),t.size!=e.size&&!l)return!1;var c=o.get(t);if(c)return c==e;r|=qy,o.set(t,e);var u=Ll(a(t),a(e),r,i,s,o);return o.delete(t),u;case Zy:if(li)return li.call(t)==li.call(e)}return!1}var tb=1,nb=Object.prototype,rb=nb.hasOwnProperty;function ib(t,e,n,r,i,s){var o=n&tb,a=Vi(t),l=a.length,c=Vi(e),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var h=a[d];if(!(o?h in e:rb.call(e,h)))return!1}var y=s.get(t),f=s.get(e);if(y&&f)return y==e&&f==t;var p=!0;s.set(t,e),s.set(e,t);for(var b=o;++d<l;){h=a[d];var v=t[h],w=e[h];if(r)var E=o?r(w,v,h,e,t,s):r(v,w,h,t,e,s);if(!(E===void 0?v===w||i(v,w,n,r,s):E)){p=!1;break}b||(b=h=="constructor")}if(p&&!b){var O=t.constructor,g=e.constructor;O!=g&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof g=="function"&&g instanceof g)&&(p=!1)}return s.delete(t),s.delete(e),p}var sb=1,zo="[object Arguments]",Wo="[object Array]",fr="[object Object]",ob=Object.prototype,Ho=ob.hasOwnProperty;function ab(t,e,n,r,i,s){var o=we(t),a=we(e),l=o?Wo:Re(t),c=a?Wo:Re(e);l=l==zo?fr:l,c=c==zo?fr:c;var u=l==fr,d=c==fr,h=l==c;if(h&&kt(t)){if(!kt(e))return!1;o=!0,u=!1}if(h&&!u)return s||(s=new We),o||ir(t)?Ll(t,e,n,r,i,s):eb(t,e,l,n,r,i,s);if(!(n&sb)){var y=u&&Ho.call(t,"__wrapped__"),f=d&&Ho.call(e,"__wrapped__");if(y||f){var p=y?t.value():t,b=f?e.value():e;return s||(s=new We),i(p,b,n,r,s)}}return h?(s||(s=new We),ib(t,e,n,r,i,s)):!1}function Wr(t,e,n,r,i){return t===e?!0:t==null||e==null||!Ue(t)&&!Ue(e)?t!==t&&e!==e:ab(t,e,n,r,Wr,i)}var lb=1,cb=2;function ub(t,e,n,r){var i=n.length,s=i;if(t==null)return!s;for(t=Object(t);i--;){var o=n[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<s;){o=n[i];var a=o[0],l=t[a],c=o[1];if(o[2]){if(l===void 0&&!(a in t))return!1}else{var u=new We,d;if(!(d===void 0?Wr(c,l,lb|cb,r,u):d))return!1}}return!0}function Bl(t){return t===t&&!ne(t)}function db(t){for(var e=ze(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Bl(i)]}return e}function ql(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function fb(t){var e=db(t);return e.length==1&&e[0][2]?ql(e[0][0],e[0][1]):function(n){return n===t||ub(n,t,e)}}function mb(t,e){return t!=null&&e in Object(t)}function Vl(t,e){return t!=null&&Pl(t,e,mb)}var hb=1,pb=2;function gb(t,e){return ds(t)&&Bl(e)?ql(At(t),e):function(n){var r=D(n,t);return r===void 0&&r===e?Vl(n,t):Wr(e,r,hb|pb)}}function yb(t){return function(e){return e?.[t]}}function bb(t){return function(e){return Lr(e,t)}}function xb(t){return ds(t)?yb(At(t)):bb(t)}function _s(t){return typeof t=="function"?t:t==null?Vr:typeof t=="object"?we(t)?gb(t[0],t[1]):fb(t):xb(t)}function vb(t,e,n){var r=we(t),i=r||kt(t)||ir(t);if(e=_s(e),n==null){var s=t&&t.constructor;i?n=r?new s:[]:ne(t)?n=nr(s)?wl(kr(t)):{}:n={}}return(i?ys:Ul)(t,function(o,a,l){return e(n,o,a,l)}),n}function Sb(t,e,n,r){for(var i=t.length,s=n+-1;++s<i;)if(e(t[s],s,t))return s;return-1}function wb(t){return t!==t}function jb(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function zl(t,e,n){return e===e?jb(t,e,n):Sb(t,wb,n)}function Is(t,e){var n=t==null?0:t.length;return!!n&&zl(t,e,0)>-1}function Sr(){}var Ob=1/0,Eb=on&&1/Cs(new on([,-0]))[1]==Ob?function(t){return new on(t)}:Sr,Ab=200;function Wl(t,e,n){var r=-1,i=Is,s=t.length,o=!0,a=[],l=a;if(s>=Ab){var c=Eb(t);if(c)return Cs(c);o=!1,i=Zn,l=new Mt}else l=a;e:for(;++r<s;){var u=t[r],d=u;if(u=u!==0?u:0,o&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;a.push(u)}else i(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function Hl(t){return t&&t.length?Wl(t):[]}function Xn(t){return Array.isArray(t)?"array":typeof t=="string"?"string":t==null?"null":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?"number":typeof t=="object"?"object":"string"}var Cb=zr(function(t){return Wl(or(t,1,Jn,!0))});function Le(t){let{type:e}=t;return!e&&t.const?Xn(t.const):!e&&t.enum?"string":!e&&(t.properties||t.additionalProperties||t.patternProperties)?"object":(Array.isArray(e)&&(e.length===2&&e.includes("null")?e=e.find(n=>n!=="null"):e=e[0]),e)}function at(t,e){const n={...t};return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];return t&&i in t&&V(o)?r[i]=at(s,o):t&&e&&(Le(t)==="object"||Le(e)==="object")&&i===Za&&Array.isArray(s)&&Array.isArray(o)?r[i]=Cb(s,o):r[i]=o,r},n)}var _b="[object Number]";function Kl(t){return typeof t=="number"||Ue(t)&&ct(t)==_b}function Gl(t,e,n){var r;if(t&&n){const i=D(t,n);if(i===void 0)return;for(let s=0;s<e.length;s+=1){const o=e[s],a=D(o,[oe,n],{});if(a.type!=="object"&&a.type!=="array"&&(a.const===i||!((r=a.enum)===null||r===void 0)&&r.includes(i)))return s}}}function $r(t,e,n,r,i){if(e===void 0)return 0;const s=Gl(e,n,i);if(Kl(s))return s;for(let o=0;o<n.length;o+=1){const a=n[o];if(i&&X(a,[oe,i])){const l=D(e,i),c=D(a,[oe,i],{});if(t.isValid(c,l,r))return o}else if(a[oe]){const l={anyOf:Object.keys(a[oe]).map(u=>({required:[u]}))};let c;if(a.anyOf){const{...u}=a;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(l),c=u}else c={...a,...l};if(delete c.required,t.isValid(c,e,r))return o}else if(t.isValid(a,e,r))return o}return 0}const Ib=Object.prototype;function $n(t){for(const e in t)if(Ib.hasOwnProperty.call(t,e))return!1;return!0}const Tb=["array","boolean","integer","null","number","object","string"];new Set(Tb);const Nb=["$defs","definitions","properties","patternProperties","dependencies"];new Set(Nb);const Fb=["items","allOf","oneOf","anyOf"];new Set(Fb);const Pb=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Pb);function wr(t){return typeof t=="object"}function Ye(t){return wr(t)?$n(t):t===!0}function nn(t,e){return t<e?-1:t>e?1:0}function ci(t,e){const n=t.length;if(n===0)return e;let r=e.length;if(r===0)return t;if(n<r){const s=t;t=e,e=s,r=n}const i=new Set(t);for(let s=0;s<r;s++)i.add(e[s]);return Array.from(i)}function $b(t,e){const n=[];if(t.length===0||e.length===0)return n;if(t.length>e.length){const i=t;t=e,e=i}const r=new Set(e);for(let i=0;i<t.length&&r.size>0;i++){const s=t[i];r.delete(s)&&n.push(s)}return n}function Ko(t){return t.length===0}function ui(t){return(e,n)=>{const r=e.length-n.length;if(r!==0)return r;for(let i=0;i<e.length;i++)if(e[i]!==n[i]){const s=t(e[i],n[i]);if(s!==0)return s}return 0}}function Yl(t,{threshold:e=12}={}){return n=>{const r=n.length;if(r===0)return n;if(r<=e){const o=[];let a=0;e:for(let l=0;l<r;l++){const c=n[l];for(let u=0;u<a;u++)if(t(c,o[u])===0)continue e;a=o.push(c)}return o}const i=n.slice().sort(t);let s=0;for(let o=1;o<r;o++)t(i[s],i[o])!==0&&++s!==o&&(i[s]=i[o]);return i.length=s+1,i}}function Db(t){return(e,n)=>{const r=[];let i=e.length,s=n.length;if(i===0||s===0)return r;if(i>s){const u=e;e=n,n=u;const d=i;i=s,s=d}const o=[...e].sort(t),a=[...n].sort(t);let l=0,c=0;for(;l<i&&c<s;){const u=t(o[l],a[c]);u===0?((r.length===0||t(r[r.length-1],o[l])!==0)&&r.push(o[l]),l++,c++):u<0?l++:c++}return r}}function Rb(t,e){return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}const Go=Rb,Jl=()=>0,kb=t=>t===void 0,Mb=t=>typeof t!="object",Yo={boolean:0,number:1,string:2};function Ub(t,e){const n=typeof t,r=typeof e;return n===r?nn(t,e):Yo[n]-Yo[r]}function Lb(t,e){const n=t.length;if(n===0)return e;const r=e.length;if(r===0)return t;if(r>n){const o=t;t=e,e=o}const i=new Set(t),s=e.length;for(let o=0;o<s;o++){const a=e[o];i.has(a)||t.push(a)}return t}function Hr(t,e,n=Jl){return(r,i)=>t(r)?t(i)?n(r,i):-1:t(i)?1:e(r,i)}function Qt(t){return Hr(kb,t)}function pt(t,e){return Hr(n=>n===void 0||t(n),e)}function di(t,e){return Hr(Array.isArray,t,e)}const be=Qt(nn),fi=pt(t=>t===0,(t,e)=>t-e);function Bb({deduplicationCache:t=new WeakMap,sortedKeysCache:e=new WeakMap}={}){const n=Go(e,p=>Object.keys(p).sort());function r(p){return(b,v)=>{const w=n(b),E=n(v),O=Math.min(w.length,E.length);for(let g=0;g<O;g++){const x=nn(w[g],E[g]);if(x!==0)return x}if(w.length!==E.length)return w.length-E.length;for(let g=0;g<O;g++){const x=w[g],S=p(b[x],v[x]);if(S!==0)return S}return 0}}function i(p){const b=ui(p),v=Go(t,Yl(p,{threshold:0}));return(w,E)=>b(v(w),v(E))}const s=i(nn);function o(p,b){if(wr(p)){if(wr(b)){const v=Object.keys(p),w=Object.keys(b),E=Lb(v,w),O=E.length;for(let g=0;g<O;g++){const x=E[g];if(p[x]===b[x])continue;const j=(f[x]??a)(p[x],b[x]);if(j!==0)return j}return 0}return b===!0&&$n(p)?0:1}return wr(b)?p===!0&&$n(b)?0:-1:nn(p,b)}const a=Qt(c),l=Hr(Mb,di(r(a),ui(c)),Ub);function c(p,b){return p===null?-1:b===null?1:l(p,b)}const u=Qt(o),d=pt($n,r(u)),h=Qt(i(o)),y=pt(Ye,o),f={$id:be,$comment:be,$defs:d,$ref:be,$schema:be,const:a,contains:u,contentEncoding:be,contentMediaType:be,default:a,definitions:d,description:be,else:u,examples:a,exclusiveMaximum:be,exclusiveMinimum:be,format:be,if:u,maximum:be,maxItems:be,maxLength:be,maxProperties:be,minimum:be,multipleOf:be,not:u,pattern:be,propertyNames:u,readOnly:be,then:u,title:be,writeOnly:be,uniqueItems:pt(p=>p===!1,Jl),minLength:fi,minItems:fi,minProperties:fi,required:pt(Ko,s),enum:pt(Ko,i(c)),type:Qt((p,b)=>{const v=Array.isArray(p),w=Array.isArray(b);return!v&&!w?nn(p,b):s(v?p:[p],w?b:[b])}),items:pt(p=>!Array.isArray(p)&&Ye(p),di(o,ui(o))),anyOf:h,allOf:h,oneOf:h,properties:d,patternProperties:d,additionalProperties:y,additionalItems:y,dependencies:pt($n,r(Qt(di(o,s))))};return{compareSchemaValues:c,compareSchemaDefinitions:o}}function Jo(t){return t}const Zl=(t,e)=>t?Zl(e%t,t):e,qb=(t,e)=>Math.abs(t*e)/Zl(t,e);function Vb(t,e){return t===e?t:`^(?=.*(?:${t}))(?=.*(?:${e})).*$`}function mi(t,e,n){const r=t.length,i=e.length;if(r>0&&i>0)for(let s=0;s<r;s++){const o=t[s];for(let a=0;a<i;a++)n(o,e[a])}}function hi(t,e){return t||e}function Zo(t){return(e,n)=>{const r={...e},i=Object.keys(n),s=i.length;for(let o=0;o<s;o++){const a=i[o];r[a]=e[a]===void 0?n[a]:t(e[a],n[a])}return r}}function zb(t){const e=new Map;for(const n of t)for(const r of n[0])e.set(r,n[1]);return e}function Tt(t,e,n){n===void 0||Ye(n)?delete t[e]:t[e]=n}const Wb=["properties","patternProperties","additionalProperties"];function Xo(t){const e=Object.keys(t),n=e.length,r=[];for(let i=0;i<n;i++){const s=e[i];r.push({regExp:new RegExp(s),schema:t[s]})}return[r,e]}const Qo=[[],[]];function ea(t,e,n){const r=n.length;for(let i=0;i<r;i++){const s=n[i];if(!s.regExp.test(e))continue;const o=s.schema;if(o===!1)return!0;t.push(o)}return!1}const Hb=["items","additionalItems"],Kb=["if","then","else"];function ta(t,e){return e.if!==void 0&&(t.if=e.if),e.then!==void 0&&(t.then=e.then),e.else!==void 0&&(t.else=e.else),t}function pi(t,e){if(t===e)return t;switch(t){case"number":if(e==="integer")return"integer";case"integer":if(e==="number")return"integer";default:return}}function Nt(t,e,n){return[t,e,n]}function Gb(t){const e=new Map;for(const[n,r,i]of t){const s=o=>{if(!i(o))throw new Error(`Schema keys '${n}' and '${r}' are conflicting (${n}: ${JSON.stringify(o[n])}, ${r}: ${JSON.stringify(o[r])})`)};for(const o of[[n,r],[r,n]]){let a=e.get(o[0]);a===void 0&&(a=[],e.set(o[0],a)),a.push({oppositeKey:o[1],check:s})}}return e}const Yb=[Nt("minimum","maximum",t=>t.maximum>=t.minimum),Nt("exclusiveMinimum","maximum",t=>t.maximum>t.exclusiveMinimum),Nt("minimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.minimum),Nt("exclusiveMinimum","exclusiveMaximum",t=>t.exclusiveMaximum>t.exclusiveMinimum),Nt("minLength","maxLength",t=>t.maxLength>=t.minLength),Nt("minItems","maxItems",t=>t.maxItems>=t.minItems),Nt("minProperties","maxProperties",t=>t.maxProperties>=t.minProperties)];function Jb({mergePatterns:t=Vb,isSubRegExp:e=Object.is,intersectJson:n=$b,deduplicateJsonSchemaDef:r=Jo,defaultMerger:i=Jo,assigners:s=[],checks:o=Yb,mergers:a}={}){function l(O){const g=O.length;let x=O[0];for(let S=1;S<g;S++){const j=v(x,O[S]);if(j===!1)return!1;Ye(j)||(x=j)}return x}function c(O,g,x,S,j,A,C){if(O.length=0,x===!1)return!1;if(O.push(x),j!==void 0){if(j===!1)return!1;O.push(j)}if(ea(O,g,A))return!1;const I=O.length<2;if(C===!1){if(I)return;if(ea(O,g,S))return!1}else I&&C!==void 0&&O.push(C);return O.length===1?O[0]:l(O)}function u(O,g,x,S,j,A){const C=x.length;if(C>0&&j!==!1)if(A)Object.assign(O,g);else for(let _=0;_<C;_++){const I=x[_];S.has(I)||(O[I]=v(g[I],j))}return O}const d=(O,{properties:g={},patternProperties:x,additionalProperties:S=!0},{properties:j={},patternProperties:A,additionalProperties:C=!0})=>{const _=Ye(S),I=Ye(C);if(_&&I)return Tt(O,"properties",w(g,j)),Tt(O,"patternProperties",x&&A?w(x,A):x??A),delete O.additionalProperties,O;const T=v(S,C);Tt(O,"additionalProperties",T);const N={},F=Object.keys(g),$=F.length,[k,B]=x?Xo(x):Qo,[L,Y]=A?Xo(A):Qo,re=[],fe=new Set,ye=I?void 0:C;for(let z=0;z<$;z++){const ie=F[z];fe.add(ie);const ae=c(re,ie,g[ie],k,j[ie],L,ye);ae!==void 0&&(N[ie]=ae)}const M=Object.keys(j),le=M.length,te=_?void 0:S;for(let z=0;z<le;z++){const ie=M[z];if(fe.has(ie))continue;const ae=c(re,ie,j[ie],L,void 0,k,te);ae!==void 0&&(N[ie]=ae)}Tt(O,"properties",N);let H={};const K=new Set;return B.length>0&&Y.length>0&&mi(B,Y,(z,ie)=>{e(z,ie)&&K.add(z),e(ie,z)&&K.add(ie),H[t(z,ie)]=v(x[z],A[ie])}),H=u(H,x,B,K,C,I),H=u(H,A,Y,K,S,_),Tt(O,"patternProperties",H),O},h=(O,{items:g=[],additionalItems:x},{items:S=[],additionalItems:j})=>{const A=Array.isArray(g),C=Array.isArray(S),_=[];if(O.items=_,A&&C){const[I,T,N]=g.length<S.length?[g.length,x,S]:[S.length,j,g];let F=0;for(;F<I;F++)_.push(v(g[F],S[F]));if(T===!1)O.additionalItems=!1;else{const $=T===void 0||Ye(T);for(;F<N.length;F++)_.push($?N[F]:v(N[F],T));Tt(O,"additionalItems",x!==void 0&&j!==void 0?v(x,j):x??j)}}else if(A||C){const[I,T,N]=A?[g,S,x]:[S,g,j];Tt(O,"additionalItems",N&&v(N,T));for(let F=0;F<I.length;F++)_.push(v(I[F],T))}else delete O.additionalItems,O.items=v(g,S);return O},y=(O,g,x)=>{ta(O,g);const S=ta({},x);return O.allOf===void 0?O.allOf=[S]:O.allOf=O.allOf.concat(S),O};function f(O,g){const x=[];if(mi(O,g,(S,j)=>{try{x.push(v(S,j))}catch{}}),x.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(O)}" and "${JSON.stringify(g)}"; the merged result is empty`);return r(x)}const p=zb([[Wb,d],[Hb,h],[Kb,y],...s]),b=Gb(o);function v(O,g){if(O===!1||g===!1)return!1;if(Ye(O))return Ye(g)?!0:g;if(Ye(g))return O;let x={...O};const S=new Set,j=new Set,A=Object.keys(g),C=A.length;for(let _=0;_<C;_++){const I=A[_],T=g[I];if(T===void 0)continue;const N=b.get(I);if(N!==void 0){const B=N.length;for(let L=0;L<B;L++){const Y=N[L];O[Y.oppositeKey]!==void 0&&j.add(Y.check)}}const F=O[I];if(F===void 0){x[I]=T;continue}const $=p.get(I);if($){S.add($);continue}const k=E[I]??i;x[I]=k(F,T)}for(const _ of S)x=_(x,O,g);for(const _ of j)_(x);return x}const w=Zo(v),E={$id:i,$ref:i,$schema:i,$comment:i,$defs:w,definitions:w,type:(O,g)=>{if(O===g)return O;const x=Array.isArray(O),S=Array.isArray(g);if(!x&&!S){const j=pi(O,g);if(j!==void 0)return j}else if(x||S){const j=new Set;if(x&&S)mi(O,g,(C,_)=>{const I=pi(C,_);I!==void 0&&j.add(I)});else{const C=x?O:g,_=x?g:O,I=C.length;for(let T=0;T<I;T++){const N=pi(_,C[T]);N!==void 0&&j.add(N)}}const A=j.size;if(A===1)return j.values().next().value;if(A>1)return Array.from(j)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${O.toString()}, ${g.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(O,g)=>{const x=r([O,g]);return x.length===1?x[0]:{anyOf:x}},pattern:t,readOnly:hi,writeOnly:hi,enum:(O,g)=>{const x=n(O,g);if(x.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(O)}", "${JSON.stringify(g)}"`);return x},anyOf:f,oneOf:f,allOf:(O,g)=>r(O.concat(g)),propertyNames:v,contains:v,dependencies:Zo((O,g)=>Array.isArray(O)?Array.isArray(g)?ci(O,g):v(g,{required:O}):Array.isArray(g)?v(O,{required:g}):v(O,g)),examples:(O,g)=>{if(!Array.isArray(O)||!Array.isArray(g))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(O)}" and "${JSON.stringify(g)}"`);return ci(O,g)},multipleOf:(O,g)=>{let x=1;for(;!Number.isInteger(O)||!Number.isInteger(g);)x*=10,O*=10,g*=10;return qb(O,g)/x},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:hi,required:ci,...a};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:l}}function Zb(t){const e=[],n=[t];for(;n.length>0;){const r=n.pop();if(typeof r=="boolean"||r.allOf===void 0){e.push(r);continue}const{allOf:i,...s}=r;e.push(s);for(let o=i.length-1;o>=0;o--)n.push(i[o])}return e}function Xb(t){return e=>t(Zb(e))}const{compareSchemaDefinitions:Qb,compareSchemaValues:e0}=Bb(),{mergeArrayOfSchemaDefinitions:t0}=Jb({intersectJson:Db(e0),deduplicateJsonSchemaDef:Yl(Qb)}),Xl=Xb(t0);function Ce(t,e,n={},r,i,s=!1){return Ze(t,e,n,r,void 0,void 0,i,s)[0]}function n0(t,e,n,r,i,s,o){const{if:a,then:l,else:c,...u}=e,d=t.isValid(a,s||{},n);let h=[u],y=[];if(r)l&&typeof l!="boolean"&&(y=y.concat(Ze(t,l,n,s,r,i,o))),c&&typeof c!="boolean"&&(y=y.concat(Ze(t,c,n,s,r,i,o)));else{const f=d?l:c;f&&typeof f!="boolean"&&(y=y.concat(Ze(t,f,n,s,r,i,o)))}return y.length&&(h=y.map(f=>at(u,f))),h.flatMap(f=>Ze(t,f,n,s,r,i,o))}function Ql(t){return t.reduce((n,r)=>r.length>1?r.flatMap(i=>Ml(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function ec(t,e){return Object.keys(t.patternProperties).filter(n=>RegExp(n).test(e)).reduce((n,r)=>(ce(n,[r],t.patternProperties[r]),n),{})}function r0(t,e,n,r,i,s,o,a){const l=tc(t,e,n,r,i,s,o,a);if(l.length>1||l[0]!==e)return l;if(as in e)return rc(t,e,n,r,i,s,o).flatMap(u=>Ze(t,u,n,s,r,i,o));if(Ot in e&&Array.isArray(e[Ot])){const c=e.allOf.map(d=>Ze(t,d,n,s,r,i,o));return Ql(c).map(d=>({...e,allOf:d}))}return[e]}function tc(t,e,n,r,i,s,o,a){const l=St(e,n,i,void 0,a);return l!==e?Ze(t,l,n,s,r,i,o,a):[e]}function St(t,e,n,r,i){if(!V(t))return t;let s=t,o=r;if(ue in s){const{$ref:a,...l}=s;if(n.includes(a))return s;n.push(a),s={...Yn(a,e,o),...l,[Un]:a},de in s&&(o=s[de])}if(oe in s){const a=[],l=vb(s[oe],(c,u,d)=>{const h=[...n];c[d]=St(u,e,h,o,i),a.push(h)},{});vy(n,Hl(hy(a))),s={...s,[oe]:l}}if(an in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:St(s.items,e,n,o,i)}),i){let a,l;ee in t&&Array.isArray(t[ee])?(a=ee,l=s[ee]):W in t&&Array.isArray(t[W])&&(a=W,l=s[W]),a&&l&&(s={...s,[a]:l.map(c=>St(c,e,n,o,i))})}return se(t,s)?t:s}function i0(t,e,n,r,i){const s={...e,properties:{...e.properties}},o=r&&V(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(ki in s){const l=ec(s,a);if(!ge(l)){s.properties[a]=Ce(t,{[Ot]:Object.values(l)},n,D(o,[a]),i),ce(s.properties,[a,ot],!0);return}}if(tn in s&&s.additionalProperties!==!1){let l;typeof s.additionalProperties!="boolean"?ue in s.additionalProperties?l=Ce(t,{[ue]:D(s.additionalProperties,[ue])},n,o,i):"type"in s.additionalProperties?l={...s.additionalProperties}:ee in s.additionalProperties||W in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:Xn(D(o,[a]))}:l={type:Xn(D(o,[a]))},s.properties[a]=l,ce(s.properties,[a,ot],!0)}else s.properties[a]={type:"null"},ce(s.properties,[a,ot],!0)}}),s}function s0(t){return Xl(t)}function Ze(t,e,n,r,i=!1,s=[],o,a){return V(e)?r0(t,e,n,i,s,r,o,a).flatMap(c=>{var u;let d=c;if(ls in d)return n0(t,d,n,i,s,r,o);if(Ot in d){if(i){const{allOf:y,...f}=d;return[...y,f]}try{const y=[],f=[];(u=d.allOf)===null||u===void 0||u.forEach(p=>{typeof p=="object"&&p.contains?y.push(p):f.push(p)}),y.length&&(d={...d,allOf:f}),d=o?o(d):s0(d),y.length&&(d.allOf=y)}catch(y){console.warn(`could not merge subschemas in allOf:
|
|
2
|
-
`,y);const{allOf:f,...p}=d;return p}}return oe in d&&ki in d&&(d=Object.keys(d.properties).reduce((y,f)=>{const p=ec(y,f);return ge(p)||(y.properties[f]=Ce(t,{allOf:[y.properties[f],...Object.values(p)]},n,D(r,[f]),o)),y},{...d,properties:{...d.properties}})),ki in d||tn in d&&d.additionalProperties!==!1?i0(t,d,n,r,o):d}):[{}]}function o0(t,e,n,r,i){let s;const{oneOf:o,anyOf:a,...l}=e;if(Array.isArray(o)?s=o:Array.isArray(a)&&(s=a),s){const c=i===void 0&&r?{}:i,u=He(e);s=s.map(h=>St(h,n,[]));const d=$r(t,c,s,n,u);if(r){const h=nc(s,!1,n);return $r(t,c,h,n,u),s.map(y=>at(l,y))}return[at(l,s[d])]}return[e]}function nc(t,e=!1,n){return t.map(r=>{if(!V(r))return r?{}:{not:{}};const i=e&&n?St(r,n,[]):r;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function rc(t,e,n,r,i,s,o){const{dependencies:a,...l}=e;return o0(t,l,n,r,s).flatMap(u=>ic(t,a,u,n,r,i,s,o))}function ic(t,e,n,r,i,s,o,a){let l=[n];for(const c in e)if((i||D(o,[c])!==void 0)&&(!n.properties||c in n.properties)){const[u,d]=Es(c,e);return Array.isArray(d)?l[0]=a0(n,d):V(d)&&(l=l0(t,n,r,c,d,i,s,o,a)),l.flatMap(h=>ic(t,u,h,r,i,s,o,a))}return l}function a0(t,e){if(!e)return t;const n=Array.isArray(t.required)?Array.from(new Set([...t.required,...e])):e;return{...t,required:n}}function l0(t,e,n,r,i,s,o,a,l){return Ze(t,i,n,a,s,o,l).flatMap(u=>{const{oneOf:d,...h}=u,y=at(e,h);if(d===void 0)return y;const f=d.map(b=>typeof b=="boolean"||!(ue in b)?[b]:tc(t,b,n,s,o,a));return Ql(f).flatMap(b=>c0(t,y,n,r,b,s,o,a,l))})}function c0(t,e,n,r,i,s,o,a,l){const c=i.filter(u=>{if(typeof u=="boolean"||!u||!u.properties)return!1;const{[r]:d}=u.properties;if(d){const h={type:"object",properties:{[r]:d}};return t.isValid(h,a,n)||s}return!1});return!s&&c.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[e]):c.flatMap(u=>{const d=u,[h]=Es(r,d.properties),y={...d,properties:h};return Ze(t,y,n,a,s,o,l).map(p=>at(e,p))})}function Dn(t,e,n,r,i,s={},o){if(Array.isArray(n[i])){const l=He(n)||r,c=n[i].map(d=>Ce(t,d,e,s,o)),u=D(s,l);if(u!==void 0)return c.find(d=>se(D(d,[oe,l,Dt],D(d,[oe,l,Ne])),u))}}function sc(t,e,n,r,i){let s=n;if(X(n,ue)&&(s=Ce(t,n,e,void 0,i)),ge(r))return s;const o=Array.isArray(r)?[...r]:r.split("."),[a,...l]=o;if(a!==void 0&&a!==""&&X(s,a))return s=D(s,a),sc(t,e,s,l,i)}function jr(t,e,n,r,i,s){const o=sc(t,e,n,r,s);return o===void 0?i:o}const na={title:"!@#$_UNKNOWN_$#@!"};function u0(t,e,n,r,i={},s){const o=Array.isArray(r)?[...r]:r.split(".");let a=n;const l=o.pop(),c=String(l);o.length&&o.forEach(y=>{a=jr(t,e,a,[oe,y],{},s),X(a,W)?a=Dn(t,e,a,c,W,D(i,y),s):X(a,ee)&&(a=Dn(t,e,a,c,ee,D(i,y),s))}),X(a,W)?a=Dn(t,e,a,c,W,i,s):X(a,ee)&&(a=Dn(t,e,a,c,ee,i,s));let u=jr(t,e,a,[oe,l],na,s);u===na&&(u=void 0);const d=jr(t,e,a,Za,[],s);let h;return u&&Array.isArray(d)&&(h=d.includes(c)),{field:u,isRequired:h}}function d0(t,e,n,r){var i=-1,s=t==null?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function f0(t,e){return function(n,r){if(n==null)return n;if(!Wt(n))return t(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==!1;);return n}}var oc=f0(Ul);function m0(t,e,n,r,i){return i(t,function(s,o,a){n=r?(r=!1,s):e(n,s,o,a)}),n}function h0(t,e,n){var r=we(t)?d0:m0,i=arguments.length<3;return r(t,_s(e),n,i,oc)}const p0={type:"object",$id:Rf,properties:{__not_really_there__:{type:"number"}}};function Gi(t,e,n,r,i){let s=0;return n&&(ne(n.properties)?s+=h0(n.properties,(o,a,l)=>{const c=D(r,l);if(typeof a=="boolean")return o;if(X(a,ue)){const u=Ce(t,a,e,c,i);return o+Gi(t,e,u,c||{},i)}if((X(a,W)||X(a,ee))&&c){const u=X(a,W)?W:ee,d=He(a);return o+dn(t,e,c,D(a,u),-1,d,i)}if(a.type==="object"){const u=ne(c)?1:0;return o+u+Gi(t,e,a,c,i)}if(a.type===Xn(c)){let u=o+1;return a.default?u+=c===a.default?1:-1:a.const&&(u+=c===a.const?1:-1),u}return o},0):Ct(n.type)&&n.type===Xn(r)&&(s+=1)),s}function dn(t,e,n,r,i=-1,s,o){const a=r.map(h=>St(h,e,[])),l=Gl(n,r,s);if(Kl(l))return l;const c=a.reduce((h,y,f)=>($r(t,n,[p0,y],e,s)===1&&h.push(f),h),[]);if(c.length===1)return c[0];c.length||Ml(a.length,h=>c.push(h));const u=new Set,{bestIndex:d}=c.reduce((h,y)=>{const{bestScore:f}=h,p=a[y],b=Gi(t,e,p,n,o);return u.add(b),b>f?{bestIndex:y,bestScore:b}:h},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:d}function ac(t){const e=t[Ne],n=Le(t);return V(e)&&Ct(e?.$data)&&n!=="object"&&n!=="array"}function lc(t){return Array.isArray(t.enum)&&t.enum.length===1||Ne in t}function Ts(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(e=>V(e))}function fn(t){return t==null}function Qn(t,e,n=!1,r=!1,i=!1){if(Array.isArray(e)){const s=Array.isArray(t)?t:[],o=i?s:e,a=i?e:s,l=o.map((c,u)=>a[u]!==void 0?Qn(s[u],e[u],n,r,i):c);return(n||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(V(e)){const s=Object.assign({},t);return Object.keys(e).reduce((o,a)=>{var l;const c=D(e,a),u=V(t)&&a in t,d=a in e,h=(l=D(t,a))!==null&&l!==void 0?l:{},y=u&&V(h)&&Object.values(h).some(b=>V(b)),f=u&&V(D(t,a)),p=d&&V(c);return f&&p&&!y?(o[a]={...D(t,a),...c},o):(o[a]=Qn(D(t,a),c,n,r,i&&(u||!d)),s)},s)}return r&&(t!==void 0&&fn(e)||typeof e=="number"&&Number.isNaN(e))||i&&!fn(e)?t:e}function Ut(t,e,n=!1){return Object.keys(e).reduce((r,i)=>{const s=t?t[i]:{},o=e[i];if(t&&i in t&&V(o))r[i]=Ut(s,o,n);else if(n&&Array.isArray(s)&&Array.isArray(o)){let a=o;n==="preventDuplicates"&&(a=o.reduce((l,c)=>(s.includes(c)||l.push(c),l),[])),r[i]=s.concat(a)}else r[i]=o;return r},{...t})}function g0(t){if(Df in t&&Array.isArray(t.enum)&&t.enum.length===1)return t.enum[0];if(Ne in t)return t.const;throw new Error("schema cannot be inferred as a constant")}function y0(t,e){const n=new Map(t.map(s=>[String(s.value),s])),r=new Set(e.filter(s=>s!=="*").map(String)),i=t.filter(s=>!r.has(String(s.value)));return e.flatMap(s=>{if(s==="*")return i;const o=n.get(String(s));return o?[o]:[]})}function mn(t,e){if(t.enum){let s,o;if(e){const{enumNames:l,enumOrder:c}=U(e);s=l,o=c}let a=t.enum.map((l,c)=>({label:Array.isArray(s)?s[c]||String(l):s?.[String(l)]||String(l),value:l}));return o&&(a=y0(a,o)),a}let n,r;t.anyOf?(n=t.anyOf,r=e?.anyOf):t.oneOf&&(n=t.oneOf,r=e?.oneOf);let i=He(t);if(e){const{optionsSchemaSelector:s=i}=U(e);i=s}return n&&n.map((s,o)=>{const{title:a}=U(r?.[o]),l=s;let c,u=a;if(i){const d=D(l,[oe,i],{});c=D(d,Dt,D(d,Ne)),u=u||d?.title||l.title||String(c)}else c=g0(l),u=u||l.title||String(c);return{schema:l,label:u,value:c}})}function Kr(t,e,n={},r){const i=Ce(t,e,n,void 0,r),s=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(s)?s.every(o=>typeof o!="boolean"&&lc(o)):!1}function Ns(t,e,n,r){return!e.uniqueItems||!e.items||typeof e.items=="boolean"?!1:Kr(t,e.items,n,r)}const b0=["string","number","integer","boolean","null"];var hn;(function(t){t[t.Ignore=0]="Ignore",t[t.Invert=1]="Invert",t[t.Fallback=2]="Fallback"})(hn||(hn={}));function gi(t,e=hn.Ignore,n=-1){if(n>=0){if(Array.isArray(t.items)&&n<t.items.length){const r=t.items[n];if(typeof r!="boolean")return r}}else if(t.items&&!Array.isArray(t.items)&&typeof t.items!="boolean")return t.items;return e!==hn.Ignore&&V(t.additionalItems)?t.additionalItems:{}}function cc(t,e){const{default:n,type:r}=t;return Array.isArray(r)&&r.includes("null")&&ge(e)&&n===null?null:e}function ra(t,e,n,r,i,s=[],o={},a=!1,l=!1){const{emptyObjectFields:c="populateAllDefaults"}=o;if(r===!0||a)t[e]=n;else if(r==="excludeObjectChildren")(l&&n!==void 0||!V(n)||!ge(n))&&(t[e]=n);else if(c!=="skipDefaults"){const u=i===void 0?s.includes(e):i;V(n)?c==="skipEmptyDefaults"?ge(n)||(t[e]=n):(!ge(n)||s.includes(e))&&(u||c!=="populateRequiredDefaults")&&(t[e]=n):n!==void 0&&(c==="populateAllDefaults"||c==="skipEmptyDefaults"||u&&s.includes(e))&&(t[e]=n)}}function wt(t,e,n={}){const{parentDefaults:r,rawFormData:i,rootSchema:s={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:l=void 0,experimental_customMergeAllOf:c=void 0,required:u,shouldMergeDefaultsIntoFormData:d=!1,initialDefaultsGenerated:h}=n;let y=V(i)?i:{};const f=V(e)?e:{};let p=r,b=null,v=l,w=a;if(f[Ne]!==void 0&&l?.constAsDefaults!=="never"&&!ac(f))p=f[Ne];else if(V(p)&&V(f.default)&&!f[ee]&&!f[W]&&!f[ue])p=Ut(p,f.default);else if(Dt in f&&!f[ee]&&!f[W]&&!f[ue])p=f.default;else if(ue in f){const g=f[ue];a.includes(g)||(w=a.concat(g),b=Yn(g,s));const x=i===void 0||V(i)&&ge(i);b&&!p&&x&&(p=f.default),d&&b&&!V(i)&&(y=i)}else if(as in f){const g={...ia(t,f,n,p),...y};[b]=rc(t,f,s,!1,[],g,c)}else if(Ts(f))p=f.items.map((g,x)=>wt(t,g,{rootSchema:s,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(r)?r[x]:void 0,rawFormData:y,required:u,shouldMergeDefaultsIntoFormData:d}));else if(W in f){const{oneOf:g,...x}=f;if(g.length===0)return;const S=He(f),{type:j="null"}=x;!Array.isArray(j)&&b0.includes(j)&&v?.constAsDefaults==="skipOneOf"&&(v={...v,constAsDefaults:"never"}),b=g[dn(t,s,i??f.default,g,0,S,c)],b=at(x,b)}else if(ee in f){const{anyOf:g,...x}=f;if(g.length===0)return;const S=He(f);b=g[dn(t,s,i??f.default,g,0,S,c)],b=at(x,b)}if(b)return wt(t,b,{rootSchema:s,includeUndefinedValues:o,_recurseList:w,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:c,parentDefaults:p,rawFormData:i??y,required:u,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:h});p===void 0&&(p=f.default);const E=ia(t,f,n,p);let O=E??p;if(d){const{arrayMinItems:g={}}=l||{},{mergeExtraDefaults:x}=g,S=x0(t,f,s,i,l,c);(!V(i)||Ot in f)&&(O=Qn(O,S,x,!0))}return O}function x0(t,e,n,r,i,s){const o=!lc(e)&&Kr(t,e,n,s);let a=r;if(o){const c=mn(e);a=c?.some(d=>se(d.value,r))?r:void 0}return e[Ne]&&i?.constAsDefaults==="always"&&(a=e.const),a}function v0(t,e,{rawFormData:n,rootSchema:r={},includeUndefinedValues:i=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:a=void 0,required:l,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},d){{const h=V(n)?n:{},y=e,p=o?.allOf==="populateDefaults"&&Ot in y||o?.emptyObjectFields!=="skipEmptyDefaults"&&ls in y?Ce(t,y,r,h,a):y,b=p[Ne],v=Object.keys(p.properties||{}).reduce((w,E)=>{var O;const g=D(p,[oe,E],{}),x=V(b)&&b[E]!==void 0,S=(V(g)&&Ne in g||x)&&o?.constAsDefaults!=="never"&&!ac(g),j=wt(t,g,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[E]),rawFormData:D(h,[E]),required:(O=p.required)===null||O===void 0?void 0:O.includes(E),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});return ra(w,E,j,i,l,p.required,o,S,g?.type==="null"),w},{});if(p.additionalProperties&&!u){const w=V(p.additionalProperties)?p.additionalProperties:{},E=new Set,O=[];Object.keys(h).filter(g=>!p.properties||!p.properties[g]).forEach(g=>{E.add(g),O.push(g)}),V(d)&&O.length===0&&Object.keys(d).filter(g=>!p.properties||!p.properties[g]).forEach(g=>E.add(g)),E.forEach(g=>{var x;const S=wt(t,w,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:D(d,[g]),rawFormData:D(h,[g]),required:(x=p.required)===null||x===void 0?void 0:x.includes(g),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});ra(v,g,S,i,l,O)})}return cc(e,v)}}function S0(t,e,{rawFormData:n,rootSchema:r={},_recurseList:i=[],experimental_defaultFormStateBehavior:s=void 0,experimental_customMergeAllOf:o=void 0,required:a,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},d){var h,y;let f=d;const p=e,b=(h=s?.arrayMinItems)!==null&&h!==void 0?h:{},{populate:v,mergeExtraDefaults:w}=b,E=v==="never",O=v==="requiredOnly",g=v==="all"||!E&&!O,x=(y=b?.computeSkipPopulate)!==null&&y!==void 0?y:(()=>!1),j=s?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(f)&&(f=f.map((_,I)=>{const T=gi(p,hn.Fallback,I),N=Array.isArray(n)?n[I]:void 0;return wt(t,T,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,parentDefaults:_,rawFormData:N,required:a,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u})})),Array.isArray(n)){const _=gi(p);if(E)f=n;else{const I=n.map((N,F)=>wt(t,_,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:N,parentDefaults:D(f,[F]),required:a,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}));f=Qn(f,I,(O&&a||g)&&w)}}if(E)return f??j;if(O&&!a)return f||void 0;let A;const C=Array.isArray(f)?f.length:0;if(!p.minItems||Ns(t,p,r,o)||x(t,p,r)||p.minItems<=C)A=f||!a&&!l?f:j;else{const _=f||[],I=gi(p,hn.Invert),T=I.default,N=Array.from({length:p.minItems-C},()=>wt(t,I,{parentDefaults:T,rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:c}));A=_.concat(N)}return cc(e,A)}function ia(t,e,n={},r){switch(Le(e)){case"object":return v0(t,e,n,r);case"array":return S0(t,e,n,r);default:return}}function uc(t,e,n,r,i=!1,s,o,a){if(!V(e))throw new Error(`Invalid schema: ${e}`);const l=Ce(t,e,r,n,o),c=wt(t,l,{rootSchema:r,includeUndefinedValues:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:n,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:a,requiredAsRoot:!0});if(l.type!=="object"&&V(l.default))return{...c,...n};if(V(n)||Array.isArray(n)){const{mergeDefaultsIntoFormData:u}=s||{};return Qn(c,n,!0,u==="useDefaultIfFormDataUndefined",!0)}return c}function dc(t={}){return"widget"in U(t)&&U(t).widget!=="hidden"}function fc(t,e,n={},r,i){if(n[us]==="files")return!0;if(e.items){const s=Ce(t,e.items,r,void 0,i);return s.type==="string"&&s.format==="data-url"}return!1}function w0(t,e,n={},r,i,s){const o=U(n,i),{label:a=!0}=o;let l=!!a;if(l){const c=Le(e),u=D(e,ot,!1);c==="array"&&(l=u||Ns(t,e,r,s)||fc(t,e,n,r,s)||dc(n)),c==="object"&&(l=u),c==="boolean"&&n&&!n[us]&&(l=!1),n&&n[Uf]&&(l=!1)}return l}function mc(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=Lr(t,o);n(a,o)&&As(s,yn(o,t),a)}return s}function j0(t,e){return mc(t,e,function(n,r){return Vl(t,r)})}var Fs=Nl(function(t,e){return t==null?{}:j0(t,e)});function O0(t,e){if(e.length===0&&typeof t!="object")return t;const n=Fs(t,e);return Array.isArray(t)?Object.keys(n).map(r=>n[r]):n}function E0(t,e){const n=(i,s)=>typeof i!="object"||ge(i)||s&&!ge(i),r=(i,s=[],o=[[]])=>{const a=Object.keys(i);return a.forEach(l=>{const c=i[l];if(typeof c=="object"){const u=o.map(d=>[...d,l]);c[cs]&&c[xr]!==""?s.push(c[xr]):r(c,s,u)}else l===xr&&c!==""&&o.forEach(u=>{const d=D(e,u),h=a.length===1;(n(d,h)||Array.isArray(d)&&d.every(y=>n(y,h)))&&s.push(u)})}),s};return r(t)}function qn(t){return fn(t)||t===""?!0:Array.isArray(t)?t.length===0:V(t)?Object.values(t).every(qn):!1}function A0(t,e){return e?e(t):Xl(t)}function C0(t,e,n={},r,i){function s(f){return V(f)}function o(f){return V(f)}function a(f,p,b){var v;const{properties:w,additionalProperties:E,patternProperties:O,propertyNames:g}=f,x=new Set((v=f.required)!==null&&v!==void 0?v:[]);function S(A,C,_,I=!1){var T;const N=y(C,_,b[A]);if(!I&&V(N)){let F=o(C)?C:{};F.$ref!==void 0&&(F=Yn(F.$ref,n));const $=new Set((T=F.required)!==null&&T!==void 0?T:[]);if(Object.entries(N).every(([B,L])=>!$.has(B)&&qn(L)))return}N!==void 0&&(b[A]=N)}if(w!==void 0)for(const[A,C]of Object.entries(w))S(A,C,p[A],x.has(A));let j;if(O!==void 0){j=[];const A=Object.entries(O).map(([_,I])=>[new RegExp(_),I]),C=new Set(Object.keys(w??{}));for(const[_,I]of Object.entries(p))if(!C.has(_)){const T=A.find(([N])=>N.test(_));T===void 0?j.push(_):S(_,T[1],I)}}if(E!==void 0&&E!==!1){const A=E;if(j!==void 0)for(const C of j)S(C,A,p[C]);else{const C=new Set(Object.keys(w??{}));for(const[_,I]of Object.entries(p))C.has(_)||S(_,A,I)}}if(g!==void 0)for(const[A,C]of Object.entries(p))b[A]=C;return b}function l(f,p,b){const{items:v,additionalItems:w}=f;if(v!==void 0)if(Array.isArray(v))for(let E=0;E<v.length;E+=1)b.push(y(v[E],p[E]));else for(let E=0;E<p.length;E+=1)b.push(y(v,p[E]));if(w)for(let E=b.length;E<p.length;E+=1)b.push(y(w,p[E]));return b}function c(f,p,b){const{if:v,then:w,else:E}=f;if(v===void 0)return b;const g=(o(v)?t.isValid(v,p,n):v)?w:E;return g===void 0?b:y(g,p,b)}function u(f,p,b,v){if(!Array.isArray(f)||Kr(t,p,n,i))return v;const w=nc(f,!0,n),E=dn(t,n,b,w,0,He(p),i),O=f[E],g=V(O)?St(O,n,[]):w[E];return y(g,b,v)}function d(f,p,b){const{anyOf:v}=f;if(!Array.isArray(v))return b;if(p===void 0||Array.isArray(p)&&p.length===0||V(p)&&Object.keys(p).length===0){let w=b;for(const E of v)w=y(E,p,w);return w}return u(v,f,p,b)}function h(f,p,b){const{dependencies:v}=f;if(v===void 0||!s(p))return b;let w=b;for(const[E,O]of Object.entries(v))E in p&&!Array.isArray(O)&&(w=y(O,p,w));return w}function y(f,p,b){if(p===void 0||f===!1)return;if(f===!0||ge(f))return p;let v=f;const{$ref:w,allOf:E}=v;if(w!==void 0)return y(Yn(w,n),p,b);E&&(v=A0(v,i));let O=d(v,p,u(v.oneOf,v,p,b));const g=Le(v);if(g==="object"){if(!s(p))return;O=a(v,p,s(O)?O:{})}else if(g==="array"){if(!Array.isArray(p))return;O=l(v,p,Array.isArray(O)?O:[])}else O===void 0&&(O=p);return h(v,p,c(v,p,O))}return y(e,r)}const De=Symbol("no Value");function hc(t){if(Array.isArray(t.enum))return t.enum;const e=t.oneOf||t.anyOf;if(!Array.isArray(e))return;const n=e.map(r=>Ne in r?r[Ne]:Array.isArray(r.enum)&&r.enum.length===1?r.enum[0]:De).filter(r=>r!==De);return n.length>0?n:void 0}function _0(t,e){const n=hc(t);if(!n||n.some(i=>se(i,e)))return De;const r=D(t,Dt,De);return r!==De&&n.some(i=>se(i,r))?r:n.length===1?n[0]:void 0}function Yi(t,e,n,r,i={},s){let o;if(X(n,oe)){const a={};if(X(r,oe)){const u=D(r,oe,{});Object.keys(u).forEach(d=>{X(i,d)&&(a[d]=void 0)})}const l=Object.keys(D(n,oe,{})),c={};l.forEach(u=>{const d=D(i,u);let h=D(r,[oe,u],{}),y=D(n,[oe,u],{});X(h,ue)&&(h=Ce(t,h,e,d,s)),X(y,ue)&&(y=Ce(t,y,e,d,s));const f=D(h,"type"),p=D(y,"type");if(!f||f===p)if(X(a,u)&&delete a[u],p==="object"||p==="array"&&Array.isArray(d)){const b=Yi(t,e,y,h,d,s);(b!==void 0||p==="array")&&(c[u]=b)}else{const b=D(y,Dt,De),v=D(h,Dt,De);b!==De&&b!==d&&(v===d?a[u]=b:D(y,"readOnly")===!0&&(a[u]=void 0));const w=D(y,Ne,De),E=D(h,Ne,De);if(w!==De&&w!==d&&(a[u]=E===d?w:void 0),X(i,u)){const O=_0(y,d);O!==De&&(a[u]=O)}}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...a,...c}}else if(D(r,"type")==="array"&&D(n,"type")==="array"&&Array.isArray(i)){let a=D(r,"items"),l=D(n,"items");if(typeof a=="object"&&typeof l=="object"&&!Array.isArray(a)&&!Array.isArray(l)){X(a,ue)&&(a=Ce(t,a,e,i,s)),X(l,ue)&&(l=Ce(t,l,e,i,s));const c=D(a,"type"),u=D(l,"type");if(!c||c===u){const d=D(n,"maxItems",-1);if(u==="object")o=i.reduce((h,y)=>{const f=Yi(t,e,l,a,y,s);return f!==void 0&&(d<0||h.length<d)&&h.push(f),h},[]);else{const h=hc(l),y=h?i.filter(f=>h.some(p=>se(p,f))):i;o=d>0&&y.length>d?y.slice(0,d):y}}}else typeof a=="boolean"&&typeof l=="boolean"&&a===l&&(o=i)}return o}function gt(t,e,n,r,i,s=[],o){if(ue in e||as in e||Ot in e||ls in e){const l=Ce(t,e,r,i,o);if(s.findIndex(u=>se(u,l))===-1)return gt(t,l,n,r,i,s.concat(l),o)}let a={[xr]:n.replace(/^\./,"")};if(W in e||ee in e){const l=W in e?e.oneOf:e.anyOf,c=He(e),u=dn(t,r,i,l,0,c,o),d=l[u];a={...a,...gt(t,d,n,r,i,s,o)}}if(tn in e&&e[tn]!==!1){ce(a,cs,!0);const l=ne(e[tn])?e[tn]:{},c=D(e,oe,{});for(const u of Object.keys(i??{}))u in c||(a[u]=gt(t,l,`${n}.${u}`,r,D(i,[u]),s,o))}if(an in e&&Array.isArray(i)){const{items:l,additionalItems:c}=e;Array.isArray(l)?i.forEach((u,d)=>{l[d]?a[d]=gt(t,l[d],`${n}.${d}`,r,u,s,o):c?a[d]=gt(t,c,`${n}.${d}`,r,u,s,o):console.warn(`Unable to generate path schema for "${n}.${d}". No schema defined for it`)}):i.forEach((u,d)=>{a[d]=gt(t,l,`${n}.${d}`,r,u,s,o)})}else if(oe in e)for(const l in e.properties){const c=D(e,[oe,l],{});a[l]=gt(t,c,`${n}.${l}`,r,D(i,[l]),s,o)}return a}function I0(t,e,n="",r,i,s){return gt(t,e,n,r,i,void 0,s)}class T0{constructor(e,n,r,i){n&&n[Pn]===vr?this.rootSchema=Wi(n,D(n,de,"#")):this.rootSchema=n,this.validator=e,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,n,r={},i){return!e||!n?!1:this.validator!==e||!se(this.rootSchema,n)||!se(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==i}findFieldInSchema(e,n,r){return u0(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,n,r,i){return Dn(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getDefaultFormState(e,n,r=!1,i){return uc(this.validator,e,n,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(e,n,r){return w0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,n,r,i){return dn(this.validator,this.rootSchema,e,n,r,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,n,r){return $r(this.validator,e,n,this.rootSchema,r)}getFromSchema(e,n,r){return jr(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}isFilesArray(e,n){return fc(this.validator,e,n,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Ns(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return Kr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,n){return C0(this.validator,e,this.rootSchema,n)}retrieveSchema(e,n,r){return Ce(this.validator,e,this.rootSchema,n,this.experimental_customMergeAllOf,r)}sanitizeDataForNewSchema(e,n,r){return Yi(this.validator,this.rootSchema,e,n,r,this.experimental_customMergeAllOf)}toPathSchema(e,n,r){return I0(this.validator,e,n,this.rootSchema,r,this.experimental_customMergeAllOf)}}function N0(t,e,n={},r){return new T0(t,e,n,r)}function F0(t){var e;if(!t.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=t.slice(5).split(";base64,");if(r.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,s]=r,[o,...a]=i.split(";"),l=o||"",c=decodeURI(((e=a.map(u=>u.split("=")).find(([u])=>u==="name"))===null||e===void 0?void 0:e[1])||"unknown");try{const u=atob(s),d=new Array(u.length);for(let y=0;y<u.length;y+=1)d[y]=u.charCodeAt(y);return{blob:new window.Blob([new Uint8Array(d)],{type:l}),name:c}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function yt(t,e){let n=String(t);for(;n.length<e;)n=`0${n}`;return n}function pc(t,e){const n=t<=0&&e<=0,r=t<0||e<0;if(!n&&r)throw new Error(`Both start (${t}) and stop (${e}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),s=n?i+t:t,o=n?i+e:e;if(s>o)return pc(e,t).reverse();const a=[];for(let l=s;l<=o;l+=1)a.push({value:l,label:yt(l,2)});return a}function P0(t,e){let n=t;if(Array.isArray(e)){const r=n.split(/(%\d)/);e.forEach((i,s)=>{const o=r.findIndex(a=>a===`%${s+1}`);o>=0&&(r[o]=i)}),n=r.join("")}return n}function $0(t,e){return P0(t,e)}function Gr(t,e=[],n){if(Array.isArray(t))return t.map(s=>Gr(s,e)).filter(s=>s!==void 0);const r=t===""||t===null?-1:Number(t),i=e[r];return i?i.value:n}function gc(t,e,n=[]){const r=Gr(t,n);return Array.isArray(e)?e.filter(i=>!se(i,r)):se(r,e)?void 0:e}function ar(t,e){return Array.isArray(e)?e.some(n=>se(n,t)):se(e,t)}function D0(t,e=[],n=!1){const r=e.map((i,s)=>ar(i.value,t)?String(s):void 0).filter(i=>typeof i<"u");return n?r:r[0]}function yc(t,e,n,r="indexed",i){if(typeof t>"u"||n&&Array.isArray(t)&&t.length<1||!n&&t===i)return i;if(r==="realValue")return n?t.map(String):String(t);const o=D0(t,e,n);return typeof o>"u"?i:o}function bc(t,e,n=[]){const r=Gr(t,n);if(!fn(r)){const i=n.findIndex(a=>r===a.value),s=n.map(({value:a})=>a);return e.slice(0,i).concat(r,e.slice(i)).sort((a,l)=>+(s.indexOf(a)>s.indexOf(l)))}return e}function sa(t,e,n){if(t===""||!Array.isArray(e))return n;const r=e.find(s=>String(s.value)===t);if(r)return r.value;const i=Number(t);return!Number.isNaN(i)&&i>=0&&i<e.length?e[i].value:n}function Te(t,e,n="indexed",r){return n!=="realValue"?Gr(t,e,r):Array.isArray(t)?t.map(i=>sa(i,e,r)):sa(t,e,r)}function lr(t,e,n="indexed"){return n!=="realValue"?String(e):fn(t)?"":String(typeof t=="object"?e:t)}var R0=1,k0=4;function Ps(t){return Bn(t,R0|k0)}function M0(t,e,n,r){return r=typeof r=="function"?r:void 0,t==null?t:As(t,e,n,r)}class xc{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let r=Array.isArray(e)&&e.length>0||typeof e=="string"?D(this.errorSchema,e):this.errorSchema;return!r&&e&&(r={},M0(this.errorSchema,e,r,Object)),r}resetAllErrors(e){return this.errorSchema=e?Ps(e):{},this}addErrors(e,n){const r=this.getOrCreateErrorBlock(n);let i=D(r,Ae);return Array.isArray(i)||(i=[],r[Ae]=i),Array.isArray(e)?ce(r,Ae,[...new Set([...i,...e])]):ce(r,Ae,[...new Set([...i,e])]),this}setErrors(e,n){const r=this.getOrCreateErrorBlock(n),i=Array.isArray(e)?[...new Set([...e])]:[e];return ce(r,Ae,i),this}clearErrors(e){const n=this.getOrCreateErrorBlock(e);return ce(n,Ae,[]),this}}var U0=200;function L0(t,e,n,r){var i=-1,s=Is,o=!0,a=t.length,l=[],c=e.length;if(!a)return l;e.length>=U0&&(s=Zn,o=!1,e=new Mt(e));e:for(;++i<a;){var u=t[i],d=u;if(u=u!==0?u:0,o&&d===d){for(var h=c;h--;)if(e[h]===d)continue e;l.push(u)}else s(e,d,r)||l.push(u)}return l}var B0=zr(function(t,e){return Jn(t)?L0(t,or(e,1,Jn,!0)):[]});function q0(t,e){if(t==null)return{};var n=gn(js(t),function(r){return[r]});return e=_s(e),mc(t,n,function(r,i){return e(r,i[0])})}function oa(t,e){const n=Et(t),r=Et(e);if(t===e||!n&&!r)return[];if(n&&!r)return ze(t);if(!n&&r)return ze(e);const i=ze(q0(t,(o,a)=>!se(o,D(e,a)))),s=B0(ze(e),ze(t));return[...i,...s]}function V0(t,e,n=[1900,new Date().getFullYear()+2],r="YMD"){const{day:i,month:s,year:o,hour:a,minute:l,second:c}=t,u={type:"day",range:[1,31],value:i},d={type:"month",range:[1,12],value:s},h={type:"year",range:n,value:o},y=[];switch(r){case"MDY":y.push(d,u,h);break;case"DMY":y.push(u,d,h);break;default:y.push(h,d,u)}return e&&y.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),y}function vc(t){const e={};return t.multipleOf&&(e.step=t.multipleOf),(t.minimum||t.minimum===0)&&(e.min=t.minimum),(t.maximum||t.maximum===0)&&(e.max=t.maximum),e}function Sc(t,e,n={},r=!0){const i={type:e||"text",...vc(t)};return n.inputType?i.type=n.inputType:e||(t.type==="number"?(i.type="number",r&&i.step===void 0&&(i.step="any")):t.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(t.formatMinimum!==void 0&&(i.min=t.formatMinimum),t.formatMaximum!==void 0&&(i.max=t.formatMaximum)),n.autocomplete&&(i.autoComplete=n.autocomplete),n.accept&&(i.accept=n.accept),i}function xn(t){var e;return(e=t?.optionValueFormat)!==null&&e!==void 0?e:"indexed"}const aa={props:{disabled:!1},submitText:"Submit",norender:!1};function wc(t={}){const e=U(t);if(e&&e[Ir]){const n=e[Ir];return{...aa,...n}}return aa}function q(t,e,n={}){const{templates:r}=e;if(t==="ButtonTemplates")return r[t];if(Object.hasOwn(n,t)&&typeof n[t]=="string"&&Object.hasOwn(r,n[t])){const i=n[t];return r[i]}return n[t]||r[t]}var z0=0;function jc(t){var e=++z0;return ms(t)+e}function $s(){if(D(globalThis,"process.env.NODE_ENV")!=="test")return{};const t=new Map;return new Proxy({},{get(e,n){return t.has(n)||t.set(n,jc("test-id-")),t.get(n)}})}const yi={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function W0(t){let e=D(t,"MergedWidget");if(!e){const n=t.defaultProps&&t.defaultProps.options||{};e=({options:r,...i})=>m.jsx(t,{options:{...n,...r},...i}),ce(t,"MergedWidget",e)}return e}function tt(t,e,n={}){const r=Le(t);if(typeof e=="function"||e&&Zs.isForwardRef(P.createElement(e))||Zs.isMemo(e))return W0(e);if(typeof e!="string")throw new Error(`Unsupported widget definition: ${typeof e} in schema: ${JSON.stringify(t)}`);if(e in n){const i=n[e];return tt(t,i,n)}if(typeof r=="string"){if(!(r in yi))throw new Error(`No widget for type '${r}' in schema: ${JSON.stringify(t)}`);if(e in yi[r]){const i=n[yi[r][e]];return tt(t,i,n)}}throw new Error(`No widget '${e}' for type '${r}' in schema: ${JSON.stringify(t)}`)}function H0(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e&=e}return e.toString(16)}function K0(t){const e=new Set;return JSON.stringify(t,(n,r)=>(e.add(n),r)),JSON.stringify(t,Array.from(e).sort())}function Xe(t){return H0(K0(t))}function G0(t){return Xe(t)}function Y0(t,e,n={}){try{return tt(t,e,n),!0}catch(r){const i=r;if(i.message&&(i.message.startsWith("No widget")||i.message.startsWith("Unsupported widget")))return!1;throw r}}function Ht(t,e){return`${Ct(t)?t:t[de]}__${e}`}function Kt(t){return Ht(t,"description")}function Ds(t){return Ht(t,"error")}function Yr(t){return Ht(t,"examples")}function Rs(t){return Ht(t,"help")}function Jr(t){return Ht(t,"title")}function Pe(t,e=!1){const n=e?` ${Yr(t)}`:"";return`${Ds(t)} ${Kt(t)} ${Rs(t)}${n}`}function $t(t,e){return`${t}-${e}`}function Qe(t,e){return Ht(t,e)}function bi(t,e){return Ht(t,`optional${e}`)}function vn(t){return!fn(t)&&(!ne(t)||Array.isArray(t)||!ge(t))}function J0(t,e){const{rootSchema:n,schemaUtils:r}=t;if(se(e,n))return!0;if(ue in n){const i=r.retrieveSchema(n);return se(e,un(i,Un))}return!1}function Oc(t,e,n){return e?n:t}function Z0(t){return t?new Date(t).toJSON():void 0}function ks(t,e,n){const r=[Mf];return X(t,oo)&&r.unshift(oo),D(t,[...r,e],n)}function X0(t,e){if(!Array.isArray(e))return t;const n=u=>u.reduce((d,h)=>(d[h]=!0,d),{}),r=u=>u.length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`,i=n(t),s=e.filter(u=>u==="*"||i[u]),o=n(s),a=t.filter(u=>!o[u]),l=s.indexOf("*");if(l===-1){if(a.length)throw new Error(`uiSchema order list does not contain ${r(a)}`);return s}if(l!==s.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...s];return c.splice(l,1,...a),c}function xi(t,e=!0){if(!t)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};const n=new Date(t);if(Number.isNaN(n.getTime()))throw new Error(`Unable to parse date ${t}`);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:e?n.getUTCHours():0,minute:e?n.getUTCMinutes():0,second:e?n.getUTCSeconds():0}}function rn(t,e,n,r){if(!V(e))return r;const i=Ce(t,e,n,r);if(Array.isArray(r)){const u=i.items;if(!u)return r;let d=!1;const h=r.map((y,f)=>{let p=u;Array.isArray(u)&&(p=u[f]||i.additionalItems||{});const b=rn(t,p,n,y);return b!==y&&(d=!0),b===void 0?{}:b});return d?h:r}const{properties:s,required:o=[]}=i;if(!V(r)||!s)return r;const a={},l=r;let c=!1;for(const u of Object.keys(l)){const d=l[u],h=s[u]||{},y=o.includes(u),f=V(d),p=Array.isArray(d);if((f||p)&&s[u]){const b=rn(t,h,n,d);(y||!qn(b))&&(a[u]=b,c=!0)}else(y||!qn(d)||!s[u])&&(a[u]=d,qn(d)||(c=!0))}if(!(!c&&Object.keys(a).length===0))return a}function Q0(t,e,n){var r,i;const s=(r=t[Un])!==null&&r!==void 0?r:t[ue],o=n.uiSchemaDefinitions,a=s&&o?o[s]:void 0;let l;if(a?!e||ge(e)?l={...a}:l=Ut(a,e):l=e||{},o){let c=t;if(s&&t[ue]&&!t[Un])try{c=Yn(s,n.rootSchema)}catch(u){return console.warn(`could not resolve $ref in resolveUiSchema:
|
|
3
|
-
`,u),l}for(const u of[W,ee]){const d=c[u];if(Array.isArray(d)&&d.length>0){const h=l[u],y=Array.isArray(h)?[...h]:[];let f=!1;for(let p=0;p<d.length;p++){const b=d[p],v=(i=b?.[Un])!==null&&i!==void 0?i:b?.[ue];if(v&&v in o){const w=y[p]||{};y[p]=Ut(o[v],w),f=!0}}f&&(l[u]=y)}}}return l}function Vn(t){if(t.const||t.enum&&t.enum.length===1&&t.enum[0]===!0)return!0;if(t.anyOf&&t.anyOf.length===1)return Vn(t.anyOf[0]);if(t.oneOf&&t.oneOf.length===1)return Vn(t.oneOf[0]);if(t.allOf){const e=n=>Vn(n);return t.allOf.some(e)}return!1}function la(t,e){if(Object.is(t,e))return!0;if(t==null||e==null||typeof t!="object"||typeof e!="object")return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i+=1){const s=n[i];if(!Object.hasOwn(e,s)||!Object.is(t[s],e[s]))return!1}return!0}function Ec(t,e,n,r="customDeep"){if(r==="always")return!0;if(r==="shallow"){const{props:o,state:a}=t;return!la(o,e)||!la(a,n)}const{props:i,state:s}=t;return!se(i,e)||!se(s,n)}function ca(t){const e=Hl(t.map(n=>ne(n)?Le(n):void 0).flat().filter(n=>n!==void 0));return e.length===1?e[0]:e}function cr(t,e,n,r){const{enableOptionalDataFieldForType:i=[]}=U(r,t.globalUiOptions);let s;return ee in e&&Array.isArray(e[ee])?s=ca(e[ee]):W in e&&Array.isArray(e[W])?s=ca(e[W]):s=Le(e),!J0(t,e)&&!n&&!!s&&!Array.isArray(s)&&!!i.find(o=>o===s)}function ua(t,e=!0){const{year:n,month:r,day:i,hour:s=0,minute:o=0,second:a=0}=t,l=Date.UTC(n,r-1,i,s,o,a),c=new Date(l).toJSON();return e?c:c.slice(0,10)}function Ms(t,e=[]){if(!t)return[];let n=[];return Ae in t&&(n=n.concat(t[Ae].map(r=>{const i=`.${e.join(".")}`;return{property:i,message:r,stack:`${i} ${r}`}}))),Object.keys(t).reduce((r,i)=>{if(i!==Ae){const s=t[i];if(Et(s))return r.concat(Ms(s,[...e,i]))}return r},n)}function Ac(t){return we(t)?gn(t,At):tr(t)?[t]:vs(ol(ms(t)))}function ex(t){const e=new xc;return t.length&&t.forEach(n=>{const{property:r,message:i}=n,s=r==="."?[]:Ac(r);s.length>0&&s[0]===""&&s.splice(0,1),i&&e.addErrors(i,s)}),e.ErrorSchema}function Be(t,e,n,r){const i=Array.isArray(n)?n:n?.path,s=t===""?[]:[t],o=i?i.concat(...s):s,a=[e.idPrefix,...o].join(e.idSeparator);let l;return e.nameGenerator&&o.length>0&&(l=e.nameGenerator(o,e.idPrefix,r)),{path:o,[de]:a,...l!==void 0&&{name:l}}}function Cc(t){return Object.keys(t).reduce((e,n)=>{if(n==="addError")return e;const r=t[n];return Et(r)?{...e,[n]:Cc(r)}:{...e,[n]:r}},{})}function tx(t){return Object.values(t).every(e=>e!==-1)}function nx(t){const{className:e="form-control",type:n,range:r,value:i,select:s,rootId:o,name:a,disabled:l,readonly:c,autofocus:u,registry:d,onBlur:h,onFocus:y}=t,f=`${o}_${n}`,{SelectWidget:p}=d.widgets,b=P.useCallback(v=>s(n,v),[s,n]);return m.jsx(p,{schema:{type:"integer"},id:f,name:a,className:e,options:{enumOptions:pc(r[0],r[1])},placeholder:n,value:i,disabled:l,readonly:c,autofocus:u,onChange:b,onBlur:h,onFocus:y,registry:d,label:"","aria-describedby":Pe(o)})}function rx(t){const{time:e=!1,disabled:n=!1,readonly:r=!1,options:i,onChange:s,value:o}=t,[a,l]=P.useState(xi(o,e));P.useEffect(()=>{l(xi(o,e))},[e,o]);const c=P.useCallback((y,f)=>{const p={...a,[y]:typeof f>"u"?-1:f};tx(p)?s(ua(p,e)):l(p)},[a,s,e]),u=P.useCallback(y=>{y.preventDefault(),!(n||r)&&s(void 0)},[n,r,s]),d=P.useCallback(y=>{if(y.preventDefault(),n||r)return;const f=xi(new Date().toJSON(),e);s(ua(f,e))},[n,r,e,s]);return{elements:P.useMemo(()=>V0(a,e,i.yearsRange,i.format),[a,e,i.yearsRange,i.format]),handleChange:c,handleClear:u,handleSetNow:d}}function Gt(t){const e=P.useRef(t);return se(t,e.current)||(e.current=t),e.current}function ix(t,e){return t.replace(";base64",`;name=${encodeURIComponent(e)};base64`)}function sx(t){const{name:e,size:n,type:r}=t;return new Promise((i,s)=>{const o=new window.FileReader;o.onerror=s,o.onload=a=>{var l;typeof((l=a.target)===null||l===void 0?void 0:l.result)=="string"?i({dataURL:ix(a.target.result,e),name:e,size:n,type:r}):i({dataURL:null,name:e,size:n,type:r})},o.readAsDataURL(t)})}function ox(t){return Promise.all(Array.from(t).map(sx))}function da(t){return t.reduce((e,n)=>{if(!n)return e;try{const{blob:r,name:i}=F0(n);return[...e,{dataURL:n,name:i,size:r.size,type:r.type}]}catch{return e}},[])}function ax(t,e,n=!1){const r=P.useMemo(()=>n&&t?Array.isArray(t)?t:[t]:[],[t,n]),i=P.useMemo(()=>Array.isArray(t)?da(t):da([t||""]),[t]),s=P.useCallback(async a=>{const c=(await ox(a)).map(u=>u.dataURL||null);e(n?r.concat(...c):c[0])},[r,n,e]),o=P.useCallback(a=>{if(n){const l=r.filter((c,u)=>u!==a);e(l)}else e(void 0)},[r,n,e]);return{filesInfo:i,handleChange:s,handleRemove:o}}function lx(t){if(!t)return"";const e=new Date(t),n=yt(e.getFullYear(),4),r=yt(e.getMonth()+1,2),i=yt(e.getDate(),2),s=yt(e.getHours(),2),o=yt(e.getMinutes(),2),a=yt(e.getSeconds(),2),l=yt(e.getMilliseconds(),3);return`${n}-${r}-${i}T${s}:${o}:${a}.${l}`}function Rn(t,e,n=!1){if(!e)return t;const{errors:r,errorSchema:i}=t;let s=Ms(e),o=e;return ge(i)||(o=Ut(i,e,n?"preventDuplicates":!0),s=[...r].concat(s)),{errorSchema:o,errors:s}}function cx(t){const e=t;for(const n in e)if(Object.hasOwn(e,n)){const r=e[n];n===ue&&typeof r=="string"&&r.startsWith("#")?e[n]=el+r:e[n]=Us(r)}return t}function ux(t){return t.map(e=>Us(e))}function Us(t){return Array.isArray(t)?ux([...t]):ne(t)?cx({...t}):t}var G;(function(t){t.ArrayItemTitle="Item",t.MissingItems="Missing items definition",t.EmptyArray="No items yet. Use the button below to add some.",t.YesLabel="Yes",t.NoLabel="No",t.CloseLabel="Close",t.ErrorsLabel="Errors",t.NewStringDefault="New Value",t.AddButton="Add",t.AddItemButton="Add Item",t.CopyButton="Copy",t.MoveDownButton="Move down",t.MoveUpButton="Move up",t.RemoveButton="Remove",t.NowLabel="Now",t.ClearLabel="Clear",t.AriaDateLabel="Select a date",t.PreviewLabel="Preview",t.DecrementAriaLabel="Decrease value by 1",t.IncrementAriaLabel="Increase value by 1",t.OptionalObjectAdd="Add data for optional field",t.OptionalObjectRemove="Remove data for optional field",t.OptionalObjectEmptyMsg="No data for optional field",t.Type="Type",t.Value="Value",t.ClearButton="clear input",t.UnknownFieldType="Unknown field type %1",t.OptionPrefix="Option %1",t.TitleOptionPrefix="%1 option %2",t.KeyLabel="%1 Key",t.DeprecatedLabel="%1 (deprecated)",t.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',t.UnsupportedField="Unsupported field schema.",t.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",t.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",t.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",t.FilesInfo="**%1** (%2, %3 bytes)"})(G||(G={}));function dx(t,e){var n=we(t)?ys:oc;return n(t,Rl(e))}function fx(t,e){return t==null?!0:_l(t,e)}function Ji(){return jc("rjsf-array-item-")}function fa(t){return Array.isArray(t)?t.map(e=>({key:Ji(),item:e})):[]}function _c(t){return Array.isArray(t)?t.map(e=>e.item):[]}function mx(t){return Array.isArray(t.type)?!t.type.includes("null"):t.type!=="null"}function Ic(t,e,n,r){let{addable:i}=U(r,t.globalUiOptions);return i!==!1&&(e.maxItems!==void 0?i=n.length<e.maxItems:i=!0),i}function Tc(t,e,n,r){if(typeof t.items=="function")try{return t.items(e,n,r)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${n}:`,i);return}else return t.items}function hx(t,e){const{schemaUtils:n,globalFormOptions:r}=t;let i=e.items;return r.useFallbackUiForUnsupportedType&&!i?i={}:Ts(e)&&$f(e)&&(i=e.additionalItems),n.getDefaultFormState(i)}function px(t){const{schema:e,fieldPathId:n,uiSchema:r,formData:i=[],disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,placeholder:c,onBlur:u,onFocus:d,registry:h,rawErrors:y,name:f,onSelectChange:p}=t,{widgets:b,schemaUtils:v,globalFormOptions:w,globalUiOptions:E}=h,O=v.retrieveSchema(e.items,i),g=r?.items??r,x=mn(O,g),{widget:S="select",title:j,...A}=U(r,E),C=tt(e,S,b),_=j??e.title??f,I=v.getDisplayLabel(e,r,E),T=Gt(Be("",w,n,!0));return m.jsx(C,{id:T[de],name:f,multiple:!0,onChange:p,onBlur:u,onFocus:d,options:{...A,enumOptions:x},schema:e,uiSchema:r,registry:h,value:i,disabled:s,readonly:o,required:l,label:_,hideLabel:!I,placeholder:c,autofocus:a,rawErrors:y,htmlName:T.name})}function gx(t){const{schema:e,fieldPathId:n,uiSchema:r,disabled:i=!1,readonly:s=!1,autofocus:o=!1,required:a=!1,hideError:l,placeholder:c,onBlur:u,onFocus:d,formData:h=[],registry:y,rawErrors:f,name:p,onSelectChange:b}=t,{widgets:v,schemaUtils:w,globalFormOptions:E,globalUiOptions:O}=y,{widget:g,title:x,...S}=U(r,O),j=tt(e,g,v),A=x??e.title??p,C=w.getDisplayLabel(e,r,O),_=Gt(Be("",E,n,!0));return m.jsx(j,{id:_[de],name:p,multiple:!0,onChange:b,onBlur:u,onFocus:d,options:S,schema:e,uiSchema:r,registry:y,value:h,disabled:i,readonly:s,hideError:l,required:a,label:A,hideLabel:!C,placeholder:c,autofocus:o,rawErrors:f,htmlName:_.name})}function yx(t){const{schema:e,uiSchema:n,fieldPathId:r,name:i,disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,onBlur:c,onFocus:u,registry:d,formData:h=[],rawErrors:y,onSelectChange:f}=t,{widgets:p,schemaUtils:b,globalFormOptions:v,globalUiOptions:w}=d,{widget:E="files",title:O,...g}=U(n,w),x=tt(e,E,p),S=O??e.title??i,j=b.getDisplayLabel(e,n,w),A=Gt(Be("",v,r,!0));return m.jsx(x,{options:g,id:A[de],name:i,multiple:!0,onChange:f,onBlur:c,onFocus:u,schema:e,uiSchema:n,value:h,disabled:s,readonly:o,required:l,registry:d,autofocus:a,rawErrors:y,label:S,hideLabel:!j,htmlName:A.name})}function Nc(t){const{itemKey:e,index:n,name:r,disabled:i,hideError:s,readonly:o,registry:a,uiOptions:l,parentUiSchema:c,canAdd:u,canRemove:d=!0,canMoveUp:h,canMoveDown:y,itemSchema:f,itemData:p,itemUiSchema:b,itemFieldPathId:v,itemErrorSchema:w,autofocus:E,onBlur:O,onFocus:g,onChange:x,rawErrors:S,totalItems:j,title:A,handleAddItem:C,handleCopyItem:_,handleRemoveItem:I,handleReorderItems:T}=t,{schemaUtils:N,fields:{ArraySchemaField:F,SchemaField:$},globalUiOptions:k}=a,B=Gt(v),L=F||$,Y=q("ArrayFieldItemTemplate",a,l),re=N.getDisplayLabel(f,b,k),{description:fe}=U(b),ye=!!fe||!!f.description,{orderable:M=!0,removable:le=!0,copyable:te=!1}=l,H={moveUp:M&&h,moveDown:M&&y,copy:te&&u,remove:le&&d,toolbar:!1};H.toolbar=Object.keys(H).some(xe=>H[xe]);const K=P.useCallback(xe=>{C(xe,n+1)},[C,n]),z=P.useCallback(xe=>{_(xe,n)},[_,n]),ie=P.useCallback(xe=>{I(xe,n)},[I,n]),ae=P.useCallback(xe=>{T(xe,n,n-1)},[T,n]),Oe=P.useCallback(xe=>{T(xe,n,n+1)},[T,n]),Ee={children:m.jsx(L,{name:r,title:A,index:n,schema:f,uiSchema:b,formData:p,errorSchema:w,fieldPathId:B,required:mx(f),onChange:x,onBlur:O,onFocus:g,registry:a,disabled:i,readonly:o,hideError:s,autofocus:E,rawErrors:S}),buttonsProps:{fieldPathId:B,disabled:i,readonly:o,canAdd:u,hasCopy:H.copy,hasMoveUp:H.moveUp,hasMoveDown:H.moveDown,hasRemove:H.remove,index:n,totalItems:j,onAddItem:K,onCopyItem:z,onRemoveItem:ie,onMoveUpItem:ae,onMoveDownItem:Oe,registry:a,schema:f,uiSchema:b},itemKey:e,className:"rjsf-array-item",disabled:i,hasToolbar:H.toolbar,index:n,totalItems:j,readonly:o,registry:a,schema:f,uiSchema:b,parentUiSchema:c,displayLabel:re,hasDescription:ye};return m.jsx(Y,{...Ee})}function bx(t){const{schema:e,uiSchema:n={},errorSchema:r,fieldPathId:i,formData:s,name:o,title:a,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:d=!1,hideError:h=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,onChange:v,keyedFormData:w,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x}=t,S=e.title||a||o,{schemaUtils:j,fields:A,formContext:C,globalFormOptions:_,globalUiOptions:I}=y,{OptionalDataControlsField:T}=A,N=U(n,I),F=ne(e.items)?e.items:{},$=j.retrieveSchema(F),k=_c(w),B=cr(y,e,d,n),L=vn(s),Y=Ic(y,e,k,n)&&(!B||L),re=L?w:[],fe=B?" rjsf-optional-array-field":"",ye=t.childFieldPathId??i,M=B?m.jsx(T,{...t,fieldPathId:ye}):void 0,le={canAdd:Y,items:re.map((H,K)=>{const{key:z,item:ie}=H,ae=ie,Oe=j.retrieveSchema(F,ae),Ee=r?r[K]:void 0,xe=Be(K,_,ye),$e=Tc(n,ie,K,C),mt={itemKey:z,index:K,name:o&&`${o}-${K}`,registry:y,uiOptions:N,parentUiSchema:n,hideError:h,readonly:c,disabled:l,required:d,title:S?`${S}-${K+1}`:void 0,canAdd:Y,canMoveUp:K>0,canMoveDown:K<k.length-1,itemSchema:Oe,itemFieldPathId:xe,itemErrorSchema:Ee,itemData:ae,itemUiSchema:$e,autofocus:u&&K===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:w.length,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x,onChange:v};return m.jsx(Nc,{...mt},z)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${$.type}${fe}`,disabled:l,fieldPathId:i,uiSchema:n,onAddClick:E,readonly:c,required:d,schema:e,title:S,formData:k,rawErrors:b,registry:y,optionalDataControl:M},te=q("ArrayFieldTemplate",y,N);return m.jsx(te,{...le})}function xx(t){const{schema:e,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,title:a,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:d=!1,hideError:h=!1,registry:y,onBlur:f,onFocus:p,rawErrors:b,keyedFormData:v,onChange:w,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x}=t;let{formData:S=[]}=t;const j=e.title||a||o,{schemaUtils:A,fields:C,formContext:_,globalFormOptions:I,globalUiOptions:T}=y,N=U(n,T),{OptionalDataControlsField:F}=C,$=cr(y,e,d,n),k=vn(r),L=(ne(e.items)?e.items:[]).map((K,z)=>A.retrieveSchema(K,S[z])),Y=ne(e.additionalItems)?A.retrieveSchema(e.additionalItems,r):null,re=t.childFieldPathId??s;S.length<L.length&&(S=S.concat(new Array(L.length-S.length)));const fe=k?v:[],ye=$?" rjsf-optional-array-field":"",M=$?m.jsx(F,{...t,fieldPathId:re}):void 0,le=Ic(y,e,S,n)&&!!Y&&(!$||k),te={canAdd:le,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${ye}`,disabled:l,fieldPathId:s,formData:r,items:fe.map((K,z)=>{const{key:ie,item:ae}=K,Oe=ae,Ee=z>=L.length,xe=(Ee&&ne(e.additionalItems)?A.retrieveSchema(e.additionalItems,Oe):L[z])||{},$e=Be(z,I,re);let mt;Ee?mt=n.additionalItems:Array.isArray(n.items)?mt=n.items[z]:mt=Tc(n,ae,z,_);const wn=i?i[z]:void 0,jn={index:z,itemKey:ie,name:o&&`${o}-${z}`,registry:y,uiOptions:N,parentUiSchema:n,hideError:h,readonly:c,disabled:l,required:d,title:j?`${j}-${z+1}`:void 0,canAdd:le,canRemove:Ee,canMoveUp:z>=L.length+1,canMoveDown:Ee&&z<S.length-1,itemSchema:xe,itemData:Oe,itemUiSchema:mt,itemFieldPathId:$e,itemErrorSchema:wn,autofocus:u&&z===0,onBlur:f,onFocus:p,rawErrors:b,totalItems:v.length,onChange:w,handleAddItem:E,handleCopyItem:O,handleRemoveItem:g,handleReorderItems:x};return m.jsx(Nc,{...jn},ie)}),onAddClick:E,readonly:c,required:d,registry:y,schema:e,uiSchema:n,title:j,errorSchema:i,rawErrors:b,optionalDataControl:M},H=q("ArrayFieldTemplate",y,N);return m.jsx(H,{...te})}function vx(t=[]){const e=P.useMemo(()=>Xe(t),[t]),[n,r]=P.useState(()=>({formDataHash:e,keyedFormData:fa(t)}));let{keyedFormData:i,formDataHash:s}=n;if(e!==s){const a=Array.isArray(t)?t:[],l=i||[];i=a.length===l.length?l.map((c,u)=>({key:c.key,item:a[u]})):fa(a),s=e,r({formDataHash:s,keyedFormData:i})}const o=P.useCallback(a=>{const l=_c(a),c=Xe(l);return r({formDataHash:c,keyedFormData:a}),l},[]);return{keyedFormData:i,updateKeyedFormData:o}}function Sx(t){const{schema:e,uiSchema:n,errorSchema:r,fieldPathId:i,registry:s,formData:o,onChange:a}=t,{globalFormOptions:l,schemaUtils:c,translateString:u}=s,{keyedFormData:d,updateKeyedFormData:h}=vx(o),y=t.childFieldPathId??i,f=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const _ in r){const I=parseInt(_);S===void 0||I<S?ce(j,[I],r[_]):I>=S&&ce(j,[I+1],r[_])}}const A={key:Ji(),item:hx(s,e)},C=[...d];S!==void 0?C.splice(S,0,A):C.push(A),a(h(C),y.path,j)},[d,s,e,a,h,r,y]),p=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const _ in r){const I=parseInt(_);I<=S?ce(j,[I],r[_]):I>S&&ce(j,[I+1],r[_])}}const A={key:Ji(),item:Ps(d[S].item)},C=[...d];S!==void 0?C.splice(S+1,0,A):C.push(A),a(h(C),y.path,j)},[d,a,h,r,y]),b=P.useCallback((x,S)=>{x&&x.preventDefault();let j;if(r){j={};for(const C in r){const _=parseInt(C);_<S?ce(j,[_],r[C]):_>S&&ce(j,[_-1],r[C])}}const A=d.filter((C,_)=>_!==S);a(h(A),y.path,j)},[d,a,h,r,y]),v=P.useCallback((x,S,j)=>{x&&(x.preventDefault(),x.currentTarget.blur());let A;if(r){A={};for(const I in r){const T=parseInt(I);T==S?ce(A,[j],r[S]):T==j?ce(A,[S],r[j]):ce(A,[I],r[T])}}function C(){const I=d.slice();return I.splice(S,1),I.splice(j,0,d[S]),I}const _=C();a(h(_),y.path,A)},[d,a,h,r,y]),w=P.useCallback((x,S,j,A)=>{a(x===void 0?null:x,S,j,A)},[a]),E=P.useCallback(x=>{a(x,y.path,void 0,y?.[de])},[a,y]),O={...t,formData:o,fieldPathId:y,onSelectChange:E},g={...t,handleAddItem:f,handleCopyItem:p,handleRemoveItem:b,handleReorderItems:v,keyedFormData:d,onChange:w};if(!(an in e)){if(!l.useFallbackUiForUnsupportedType){const S=U(n),j=q("UnsupportedFieldTemplate",s,S);return m.jsx(j,{schema:e,fieldPathId:i,reason:u(G.MissingItems),registry:s})}const x={...e,[an]:{type:void 0}};O.schema=x,g.schema=x}return c.isMultiSelect(O.schema)?m.jsx(px,{...O}):dc(n)?m.jsx(gx,{...O}):Ts(O.schema)?m.jsx(xx,{...g}):c.isFilesArray(O.schema,n)?m.jsx(yx,{...O}):m.jsx(bx,{...g})}function wx(t){const{schema:e,name:n,uiSchema:r,fieldPathId:i,formData:s,registry:o,required:a,disabled:l,readonly:c,hideError:u,autofocus:d,title:h,onChange:y,onFocus:f,onBlur:p,rawErrors:b}=t,{title:v}=e,{widgets:w,translateString:E,globalUiOptions:O}=o,{widget:g="checkbox",title:x,label:S=!0,enumNames:j,...A}=U(r,O),C=tt(e,g,w),_=E(G.YesLabel),I=E(G.NoLabel);let T;const N=x??v??h??n;if(Array.isArray(e.oneOf))T=mn({oneOf:e.oneOf.map($=>{if(ne($))return{...$,title:$.title||($.const===!0?_:I)}}).filter($=>$)},r);else{const $=e.enum??[!0,!1];!j&&$.length===2&&$.every(k=>typeof k=="boolean")?T=[{value:$[0],label:$[0]?_:I},{value:$[1],label:$[1]?_:I}]:T=mn({enum:$},r)}const F=P.useCallback(($,k,B)=>y($,i.path,k,B),[y,i]);return m.jsx(C,{options:{...A,enumOptions:T},schema:e,uiSchema:r,id:i.$id,name:n,onChange:F,onFocus:f,onBlur:p,label:N,hideLabel:!S,value:s,required:a,disabled:l,readonly:c,hideError:u,registry:o,autofocus:d,rawErrors:b,htmlName:i.name})}function jx(t){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:t}}function Ox(t){const e=typeof t;return e==="string"||e==="number"||e==="boolean"?e:e==="object"?Array.isArray(t)?"array":"object":"string"}function Ex(t,e){switch(e){case"string":return String(t);case"number":{const n=Number(t);return isNaN(n)?0:n}case"boolean":return!!t;default:return t}}function Ax(t){const{id:e,formData:n,displayLabel:r=!0,schema:i,name:s,uiSchema:o,required:a,disabled:l=!1,readonly:c=!1,onBlur:u,onFocus:d,registry:h,fieldPathId:y,onChange:f,errorSchema:p}=t,{translateString:b,fields:v,globalFormOptions:w}=h,[E,O]=P.useState(Ox(n)),g=U(o),x=Gt(Be("__internal_type_selector",w,y)),S=b(G.Type),j=P.useMemo(()=>jx(S),[S]),A=I=>{I!=null&&(O(I),f(Ex(n,I),y.path,p,e))};if(!w.useFallbackUiForUnsupportedType){const{reason:I=b(G.UnknownFieldType,[String(i.type)])}=t,T=q("UnsupportedFieldTemplate",h,g);return m.jsx(T,{schema:i,fieldPathId:y,reason:I,registry:h})}const C=q("FallbackFieldTemplate",h,g),{SchemaField:_}=v;return m.jsx(C,{schema:i,registry:h,typeSelector:m.jsx(_,{fieldPathId:x,name:`${s}__fallback_type`,schema:j,formData:E,onChange:A,onBlur:u,onFocus:d,registry:h,hideLabel:!r,disabled:l,readonly:c,required:a},n?Xe(n):"__empty__"),schemaField:m.jsx(_,{...t,schema:{type:E,title:b(G.Value),...E==="object"&&{additionalProperties:!0}}})})}function Cx(t,e){return gn(e,function(n){return t[n]})}function _x(t){return t==null?[]:Cx(t,ze(t))}var Ix=Math.max;function Tx(t,e,n,r){t=Wt(t)?t:_x(t),n=n?kl(n):0;var i=t.length;return n<0&&(n=Ix(i+n,0)),Ct(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&zl(t,e,n)>-1}var Nx=Math.min;function Fx(t,e,n){for(var r=Is,i=t[0].length,s=t.length,o=s,a=Array(s),l=1/0,c=[];o--;){var u=t[o];l=Nx(u.length,l),a[o]=i>=120&&u.length>=120?new Mt(o&&u):void 0}u=t[0];var d=-1,h=a[0];e:for(;++d<i&&c.length<l;){var y=u[d],f=y;if(y=y!==0?y:0,!(h?Zn(h,f):r(c,f))){for(o=s;--o;){var p=a[o];if(!(p?Zn(p,f):r(t[o],f)))continue e}h&&h.push(f),c.push(y)}}return c}function Px(t){return Jn(t)?t:[]}var ma=zr(function(t){var e=gn(t,Px);return e.length&&e[0]===t[0]?Fx(e):[]});function Or(t,e){return Wr(t,e)}function Fc(t){return t===void 0}var et;(function(t){t.ROW="ui:row",t.COLUMN="ui:col",t.COLUMNS="ui:columns",t.CONDITION="ui:condition"})(et||(et={}));var zn;(function(t){t.ALL="all",t.SOME="some",t.NONE="none"})(zn||(zn={}));const $x=/^\$lookup=(.+)/,vi="layoutGrid";function ha(t,e){return t??e}function Dx(t){return/^\d+?$/.test(t)}const jt=$s();function Rx(t,e,n,r,i){const s=D(n,[Mi],{}),o=D(n,t),a={...D(o,[vt],{}),...e,...s},l={...o};ge(a)||ce(l,[vt],a),ge(s)||ce(l,[Mi],s);let{readonly:c}=U(l);return(i===!0||Fc(c)&&r===!0)&&(c=!0,X(a,ei)?ce(l,[vt,ei],!0):ce(l,`ui:${ei}`,!0)),{fieldUiSchema:l,uiReadonly:c}}function kx(t,e,n="$0m3tH1nG Un3xP3cT3d"){const r=zi([e]).sort(),i=zi([n]).sort();switch(t){case zn.ALL:return Or(r,i);case zn.SOME:return ma(r,i).length>0;case zn.NONE:return ma(r,i).length===0;default:return!1}}function Zr(t,e,n){let r={},i=t[e];if(Et(i)){const{children:s,className:o,...a}=i;if(i=s,o){const c=o.split(" ").map(u=>ks(n,u,u)).join(" ");r={...a,className:c}}else r=a}if(!Array.isArray(i))throw new TypeError(`Expected array for "${e}" in ${JSON.stringify(t)}`);return{children:i,gridProps:r}}function pa(t,e,n){let r;if(Dx(n)&&t&&t?.type==="array"&&X(t,an)){const i=Number(n),s=t[an];Array.isArray(s)?i>s.length?r=Cl(s):r=s[i]:r=s,e={[de]:e[de],path:[...e.path.slice(0,e.path.length-1),i]}}return{rawSchema:r,fieldPathId:e}}function Mx(t,e,n,r,i){const{schemaUtils:s,globalFormOptions:o}=t;let a=n,l=i;const c=e.split("."),u=c.pop();let d=s.retrieveSchema(a,r),h=r,y=d.readOnly;c.forEach(b=>{if(l=Be(b,o,l),X(d,oe))a=D(d,[oe,b],{});else if(d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee,w=s.findSelectedOptionInXxxOf(d,b,v,h);a=D(w,[oe,b],{})}else{const v=pa(d,l,b);a=v.rawSchema??{},l=v.fieldPathId}h=D(h,b,{}),d=s.retrieveSchema(a,h),y=ha(d.readOnly,y)});let f,p=!1;if(ge(d)&&(d=void 0),d&&u){if(d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee;d=s.findSelectedOptionInXxxOf(d,u,v,h)}l=Be(u,o,l),p=d!==void 0&&Array.isArray(d.required)&&Tx(d.required,u);const b=pa(d,l,u);if(b.rawSchema?(d=b.rawSchema,l=b.fieldPathId):(d=D(d,[oe,u]),d=d&&s.retrieveSchema(d)),y=ha(d?.readOnly,y),d&&(X(d,W)||X(d,ee))){const v=X(d,W)?W:ee,w=He(d);f={options:d[v],hasDiscriminator:!!w}}}return{schema:d,isRequired:p,isReadonly:y,optionsInfo:f,fieldPathId:l}}function Ux(t,e){let n=t;return Ct(n)&&(n=ks(e,n)),nr(n)?n:null}function Lx(t,e){let n,r=null,i={},s;if(Ct(e)||Fc(e))n=e??"";else{const{name:o="",render:a,...l}=e;n=o,i=l,ge(i)||dx(i,(c,u)=>{if(Ct(c)){const d=$x.exec(c);if(Array.isArray(d)&&d.length>1){const h=d[1];i[u]=ks(t,h,h)}}}),r=Ux(a,t),!o&&r&&(s=m.jsx(r,{...l,"data-testid":jt.uiComponent}))}return{name:n,UIComponent:r,uiProps:i,rendered:s}}function Xr(t){const{childrenLayoutGridSchemaId:e,...n}=t,{registry:r,schema:i,formData:s}=n,{schemaUtils:o}=r,a=o.retrieveSchema(i,s);return e.map(l=>P.createElement(Ls,{...n,key:`layoutGrid-${Xe(l)}`,schema:a,layoutGridSchema:l}))}function Bx(t){const{layoutGridSchema:e,...n}=t,{formData:r,registry:i}=n,{children:s,gridProps:o}=Zr(e,et.CONDITION,i),{operator:a,field:l="",value:c}=o,u=D(r,l,null);return kx(a,u,c)?m.jsx(Xr,{...n,childrenLayoutGridSchemaId:s}):null}function qx(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Zr(e,et.COLUMN,r),a=U(i),l=q("GridTemplate",r,a);return m.jsx(l,{column:!0,"data-testid":jt.col,...o,children:m.jsx(Xr,{...n,childrenLayoutGridSchemaId:s})})}function Vx(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Zr(e,et.COLUMNS,r),a=U(i),l=q("GridTemplate",r,a);return s.map(c=>m.jsx(l,{column:!0,"data-testid":jt.col,...o,children:m.jsx(Xr,{...n,childrenLayoutGridSchemaId:[c]})},`column-${Xe(c)}`))}function zx(t){const{layoutGridSchema:e,...n}=t,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=Zr(e,et.ROW,r),a=U(i),l=q("GridTemplate",r,a);return m.jsx(l,{...o,"data-testid":jt.row,children:m.jsx(Xr,{...n,childrenLayoutGridSchemaId:s})})}function Wx(t){const{gridSchema:e,schema:n,uiSchema:r,errorSchema:i,fieldPathId:s,onBlur:o,onFocus:a,formData:l,readonly:c,registry:u,layoutGridSchema:d,...h}=t,{onChange:y}=h,{fields:f}=u,{SchemaField:p,LayoutMultiSchemaField:b}=f,v=Lx(u,e),{name:w,UIComponent:E,uiProps:O}=v,{schema:g,isRequired:x,isReadonly:S,optionsInfo:j,fieldPathId:A}=Mx(u,w,n,l,s),C=Gt(A);if(v.rendered)return v.rendered;if(g){const _=j?.hasDiscriminator?b:p,{fieldUiSchema:I,uiReadonly:T}=Rx(w,O,r,S,c);return m.jsx(_,{"data-testid":j?.hasDiscriminator?jt.layoutMultiSchemaField:jt.field,...h,name:w,required:x,readonly:T,schema:g,uiSchema:I,errorSchema:D(i,w),fieldPathId:C,formData:D(l,w),onChange:y,onBlur:o,onFocus:a,options:j?.options,registry:u})}return E?m.jsx(E,{"data-testid":jt.uiComponent,...h,name:w,required:x,formData:l,readOnly:!!S||c,errorSchema:i,uiSchema:r,schema:n,fieldPathId:s,onBlur:o,onFocus:a,registry:u,...O}):null}function Ls(t){const{uiSchema:e}=t;let{layoutGridSchema:n}=t;const r=U(e);if(!n&&vi in r&&ne(r[vi])&&(n=r[vi]),ne(n)){if(et.ROW in n)return m.jsx(zx,{...t,layoutGridSchema:n});if(et.COLUMN in n)return m.jsx(qx,{...t,layoutGridSchema:n});if(et.COLUMNS in n)return m.jsx(Vx,{...t,layoutGridSchema:n});if(et.CONDITION in n)return m.jsx(Bx,{...t,layoutGridSchema:n})}return m.jsx(Wx,{...t,gridSchema:n})}Ls.TEST_IDS=jt;function Hx(t){const{fieldPathId:e,title:n,schema:r,uiSchema:i,required:s,registry:o,name:a}=t,l=U(i,o.globalUiOptions),{title:c}=l,{title:u}=r,d=c||n||u||a;if(!d)return null;const h=q("TitleFieldTemplate",o,l);return m.jsx(h,{id:Jr(e),title:d,required:s,schema:r,uiSchema:i,registry:o})}function Si(t,e,n){const r="!@#!@$@#$!@$#";return t.map(({schema:s})=>s).find(s=>{const o=D(s,[oe,e]);return D(o,Dt,D(o,Ne,r))===n})}function ga(t,e,n,r,i){const s=e.map(l=>n.retrieveSchema(l,i));let o=t;X(t,W)?o={...t,[W]:s}:X(t,ee)&&(o={...t,[ee]:s});const a=mn(o,r);if(!a)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return a}function Kx(t){const{name:e,baseType:n,disabled:r=!1,formData:i,fieldPathId:s,onBlur:o,onChange:a,options:l,onFocus:c,registry:u,uiSchema:d,schema:h,autofocus:y,readonly:f,required:p,errorSchema:b,hideError:v=!1}=t,{widgets:w,schemaUtils:E,globalUiOptions:O}=u,[g,x]=P.useState(ga(h,l,E,d,i)),S=D(s,de),j=He(h),A=q("FieldErrorTemplate",u,l),C=q("FieldTemplate",u,l),_=Xe(h),I=Xe(l),T=d?Xe(d):"",N=i?Xe(i):"";P.useEffect(()=>{x(ga(h,l,E,d,i))},[_,I,E,T,N]);const{widget:F=j?"radio":"select",title:$="",placeholder:k="",optionsSchemaSelector:B=j,hideError:L,...Y}=U(d);if(!B)throw new Error("No selector field provided for the LayoutMultiSchemaField");const re=D(i,B);let fe=D(g[0]?.schema,[oe,B],{});const ye=Si(g,B,re);fe=fe?.type?fe:{...fe,type:ye?.type||n};const M=tt(fe,F,w),le=L===void 0?v:!!L,te=D(b,[Ae],[]),H=un(b,[Ae]),K=E.getDisplayLabel(h,d,O),z=Oe=>{const Ee=Si(g,B,Oe),xe=Si(g,B,re);let $e=E.sanitizeDataForNewSchema(Ee,xe,i);$e&&Ee&&($e=E.getDefaultFormState(Ee,$e,"excludeObjectChildren")),$e&&ce($e,B,Oe),a($e,s.path,void 0,S)},ie={enumOptions:g,...Y},ae=!le&&te.length>0?m.jsx(A,{fieldPathId:s,schema:h,errors:te,registry:u}):void 0;return m.jsx(C,{fieldPathId:s,id:S,schema:h,label:($||h.title)??"",disabled:r||Array.isArray(g)&&ge(g),uiSchema:d,required:p,readonly:!!f,registry:u,displayLabel:K,errors:ae,onChange:a,onKeyRename:Sr,onKeyRenameBlur:Sr,onRemoveProperty:Sr,children:m.jsx(M,{id:S,name:e,schema:h,label:($||h.title)??"",disabled:r||Array.isArray(g)&&ge(g),uiSchema:d,autofocus:y,readonly:f,required:p,registry:u,multiple:!1,rawErrors:te,hideError:le,hideLabel:!K,errorSchema:H,placeholder:k,onChange:z,onBlur:o,onFocus:c,value:re,options:ie,htmlName:s.name})})}class ya extends P.Component{constructor(e){super(e);const{formData:n,options:r,registry:{schemaUtils:i}}=this.props,s=r.map(o=>i.retrieveSchema(o,n));this.state={retrievedOptions:s,selectedOption:this.getMatchingOption(0,n,s)}}componentDidUpdate(e,n){const{formData:r,options:i,fieldPathId:s}=this.props,{selectedOption:o}=this.state;let a=this.state;if(!se(e.options,i)){const{registry:{schemaUtils:l}}=this.props,c=i.map(u=>l.retrieveSchema(u,r));a={selectedOption:o,retrievedOptions:c}}if(!se(r,e.formData)&&s.$id===e.fieldPathId.$id){const{retrievedOptions:l}=a,c=this.getMatchingOption(o,r,l);n&&c!==o&&(a={selectedOption:c,retrievedOptions:l})}a!==this.state&&this.setState(a)}getMatchingOption(e,n,r){const{schema:i,registry:{schemaUtils:s}}=this.props,o=He(i);return s.getClosestMatchingOption(n,r,e,o)}onOptionChange=e=>{const{selectedOption:n,retrievedOptions:r}=this.state,{formData:i,onChange:s,registry:o,fieldPathId:a}=this.props,{schemaUtils:l}=o,c=e!==void 0?parseInt(e,10):-1;if(c===n)return;const u=c>=0?r[c]:void 0,d=n>=0?r[n]:void 0;let h=l.sanitizeDataForNewSchema(u,d,i);u&&(h=l.getDefaultFormState(u,h,"excludeObjectChildren")),this.setState({selectedOption:c},()=>{s(h,a.path,void 0,this.getFieldId())})};getFieldId(){const{fieldPathId:e,schema:n}=this.props;return`${e.$id}${n.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:n=!1,errorSchema:r={},formData:i,onBlur:s,onFocus:o,readonly:a,required:l=!1,registry:c,schema:u,uiSchema:d}=this.props,{widgets:h,fields:y,translateString:f,globalUiOptions:p,schemaUtils:b}=c,{SchemaField:v}=y,w=q("MultiSchemaFieldTemplate",c,p),E=cr(c,u,l,d),O=vn(i),{selectedOption:g,retrievedOptions:x}=this.state,{widget:S="select",placeholder:j,autofocus:A,autocomplete:C,title:_=u.title,...I}=U(d,p),T=tt({type:"number"},S,h),N=D(r,Ae,[]),F=un(r,[Ae]),$=b.getDisplayLabel(u,d,p),k=g>=0&&x[g]||null;let B;if(k){const{required:te}=u;B=te?at({required:te},k):k}let L=[];W in u&&d&&W in d?Array.isArray(d[W])?L=d[W]:console.warn(`uiSchema.oneOf is not an array for "${_||e}"`):ee in u&&d&&ee in d&&(Array.isArray(d[ee])?L=d[ee]:console.warn(`uiSchema.anyOf is not an array for "${_||e}"`));let Y=d;g>=0&&L.length>g&&(Y=L[g]);const re=_?G.TitleOptionPrefix:G.OptionPrefix,fe=_?[_]:[],ye=x.map((te,H)=>{const{title:K=te.title}=U(L[H]);return{label:K||f(re,fe.concat(String(H+1))),value:H}}),M=!E||O?m.jsx(T,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:o,disabled:n||ge(ye),multiple:!1,rawErrors:N,errorSchema:F,value:g>=0?g:void 0,options:{enumOptions:ye,...I},registry:c,placeholder:j,autocomplete:C,autofocus:A,label:_??e,hideLabel:!$,readonly:a}):void 0,le=B&&B.type!=="null"&&m.jsx(v,{...this.props,schema:B,uiSchema:Y})||null;return m.jsx(w,{schema:u,registry:c,uiSchema:d,selector:M,optionSchemaField:le})}}const Gx=/\.([0-9]*0)*$/,Yx=/[0.]0*$/;function Jx(t){const{registry:e,onChange:n,formData:r,value:i}=t,[s,o]=P.useState(i),{StringField:a}=e.fields;let l=r;const c=P.useCallback((u,d,h,y)=>{o(u),`${u}`.charAt(0)==="."&&(u=`0${u}`);const f=typeof u=="string"&&u.match(Gx)?so(u.replace(Yx,"")):so(u);n(f,d,h,y)},[n]);if(typeof s=="string"&&typeof l=="number"){const u=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);s.match(u)&&(l=s)}return m.jsx(a,{...t,formData:l,onChange:c})}function Je(){return Je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Je.apply(null,arguments)}const mr=["strong","em","del","mark"],ba=[["**",mr[0]],["__",mr[0]],["~~",mr[2]],["==",mr[3]],["*","em"],["_","em"]];function Zx(t,e){for(var n=1,r=e+1;r<t.length&&n>0;)t[r]!=="\\"?(t[r]==="["&&n++,t[r]==="]"&&n--,r++):r+=2;if(n===0&&r<t.length&&(t[r]==="("||t[r]==="[")){var i=t[r]==="("?")":"]",s=1;for(r++;r<t.length&&s>0;)t[r]!=="\\"?(t[r]==="("&&i===")"&&s++,t[r]===i&&s--,r++):r+=2;if(s===0)return r}return-1}function Xx(t,e){if(!e||!e.inline&&!e.simple)return null;var n=t[0];if(n!=="*"&&n!=="_"&&n!=="~"&&n!=="=")return null;for(var r="",i=0,s="",o=0;o<6;o++){var a=ba[o][0];if(t.startsWith(a)&&t.length>=2*a.length){r=a,i=a.length,s=ba[o][1];break}}if(!r)return null;for(var l=i,c=!1,u=!1,d="",h=0,y="",f=!1,p="";l<t.length;){var b=t[l];if(f)y+=b,f=!1,p=b,l++;else if(b!=="\\")if(b!=="`"||h!==0){if(b==="["&&!c&&h===0){var v=Zx(t,l);if(v!==-1){y+=t.slice(l,v),l=v,p=t[v-1];continue}}if(u)y+=b,d?b===d&&(d=""):b==='"'||b==="'"?d=b:b===">"&&(u=!1),p=b,l++;else if(b!=="<"||c){if(b===`
|
|
4
|
-
`&&p===`
|
|
5
|
-
`&&!c&&h===0)return null;if(!c&&h===0){for(var w=0;l+w<t.length&&t[l+w]===r[0];)w++;if(w>=i&&(i!==1||r!=="*"&&r!=="_"||t[l-1]!==r&&t[l+1]!==r)){var E=[t.slice(0,l+w),s,y+t.slice(l+i,l+w)];return E.index=0,E.input=t,E}}y+=b,p=b,l++}else{var O=t[l+1],g=t.indexOf(">",l);if(g!==-1){var x=t.slice(l,g+1).endsWith("/>");O==="/"?h=Math.max(0,h-1):x||h++}u=!0,y+=b,p=b,l++}}else c=!c,y+=b,p=b,l++;else y+=b,f=!0,p=b,l++}return null}const Qx=["children","options"],xa=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,e)=>(t[e.toLowerCase()]=e,t),{class:"className",for:"htmlFor"}),va={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},ev=["style","script","pre"],tv=["src","href","data","formAction","srcDoc","action"],nv=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,rv=/\n{2,}$/,Sa=/^(\s*>[\s\S]*?)(?=\n\n|$)/,iv=/^ *> ?/gm,sv=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,ov=/^ {2,}\n/,av=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,wa=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ja=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,lv=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,cv=/^(?:\n *)*\n/,uv=/\r\n?/g,dv=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,fv=/^\[\^([^\]]+)]/,mv=/\f/g,hv=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,pv=/^\[(x|\s)\]/,Oa=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ea=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Aa=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Bs=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function gv(t){const e=Bs.exec(t);if(!e)return null;const n=e[1],r=n.toLowerCase(),i=r.length+1;let s=e[0].length;t[s]===`
|
|
6
|
-
`&&s++;const o=s;let a=s,l=1;const c=t.length;for(;l>0;){const d=t.indexOf("<",s);if(d===-1)return null;let h=-1,y=-1;if(t[d+1]==="/")y=d;else if(t[d+1]===r[0]||t[d+1]===n[0]){let f=!0;for(let p=0;p<r.length;p++){const b=t[d+1+p];if(b!==r[p]&&b!==n[p]){f=!1;break}}!f||t[d+i]!==" "&&t[d+i]!==">"||(h=d)}if(h!==-1||y!==-1)if(h!==-1&&(y===-1||h<y))s=h+i+1,l++;else{let f=y+2;for(;f<c;){const b=t[f];if(b!==" "&&b!==" "&&b!==`
|
|
7
|
-
`&&b!=="\r")break;f++}if(f+r.length>c)return null;let p=!0;for(let b=0;b<r.length;b++){const v=t[f+b];if(v!==r[b]&&v!==n[b]){p=!1;break}}if(!p){s=f;continue}for(f+=r.length;f<c;){const b=t[f];if(b!==" "&&b!==" "&&b!==`
|
|
8
|
-
`&&b!=="\r")break;f++}if(f>=c||t[f]!==">"){s=f;continue}a=y,s=f+1,l--}else s=d+1}let u=0;for(;s+u<c&&t[s+u]===`
|
|
9
|
-
`;)u++;return[t.slice(0,s+u),n,e[2],t.slice(o,a)]}const yv=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ca=/^<!--[\s\S]*?(?:-->)/,bv=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Zi=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,xv=/^\{.*\}$/,vv=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Sv=/^<([^ >]+[:@\/][^ >]+)>/,wv=/-([a-z])?/gi,_a=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,jv=/^[^\n]+(?: \n|\n{2,})/,Ov=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Ev=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Av=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Cv=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,_v=/\t/g,Iv=/(^ *\||\| *$)/g,Tv=/^ *:-+: *$/,Nv=/^ *:-+ *$/,Fv=/^ *-+: *$/,Pv=/^(:[a-zA-Z0-9-_]+:)/,$v=/^\\([^0-9A-Za-z\s])/,Dv=/\\([^0-9A-Za-z\s])/g,Rv=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,kv=/^\n+/,Mv=/^([ \t]*)/,Uv=/(?:^|\n)( *)$/,qs="(?:\\d+\\.)",Vs="(?:[*+-])";function Pc(t){return"( *)("+(t===1?qs:Vs)+") +"}const $c=Pc(1),Dc=Pc(2);function Rc(t){return RegExp("^"+(t===1?$c:Dc))}const Lv=Rc(1),Bv=Rc(2);function kc(t){return RegExp("^"+(t===1?$c:Dc)+"[^\\n]*(?:\\n(?!\\1"+(t===1?qs:Vs)+" )[^\\n]*)*(\\n|$)","gm")}const qv=kc(1),Vv=kc(2);function Mc(t){const e=t===1?qs:Vs;return RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}const Uc=Mc(1),Lc=Mc(2);function Ia(t,e){const n=e===1,r=n?Uc:Lc,i=n?qv:Vv,s=n?Lv:Bv;return{t:o=>s.test(o),o:xt(function(o,a){const l=Uv.exec(a.prevCapture);return l&&(a.list||!a.inline&&!a.simple)?r.exec(o=l[1]+o):null}),u:1,i(o,a,l){const c=n?+o[2]:void 0,u=o[0].replace(rv,`
|
|
10
|
-
`).match(i),d=s.exec(u[0]),h=RegExp("^ {1,"+(d?d[0].length:0)+"}","gm");let y=!1;return{items:u.map(function(f,p){const b=f.replace(h,"").replace(s,""),v=p===u.length-1,w=Ke(b,`
|
|
11
|
-
|
|
12
|
-
`)||v&&y;y=w;const E=l.inline,O=l.list;let g;l.list=!0,w?(l.inline=!1,g=Wn(b)+`
|
|
13
|
-
|
|
14
|
-
`):(l.inline=!0,g=Wn(b));const x=a(g,l);return l.inline=E,l.list=O,x}),ordered:n,start:c}}}}const zv=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Wv=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ta(t){return typeof t=="string"}function Wn(t){let e=t.length;for(;e>0&&t[e-1]<=" ";)e--;return t.slice(0,e)}function Xi(t,e){return t.startsWith(e)}function Ke(t,e){return t.indexOf(e)!==-1}function Hv(t,e,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(Xi(t,n[r]))return!0;return!1}return n(t,e)}function Tn(t){return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Kv(t){return Fv.test(t)?"right":Tv.test(t)?"center":Nv.test(t)?"left":null}function Na(t,e,n,r){const i=n.inTable;n.inTable=!0;let s=[[]],o="";function a(){if(!o)return;const l=s[s.length-1];l.push.apply(l,e(o,n)),o=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((l,c,u)=>{l.trim()==="|"&&(a(),r)?c!==0&&c!==u.length-1&&s.push([]):o+=l}),a(),n.inTable=i,s}function Gv(t,e,n){n.inline=!0;const r=t[2]?t[2].replace(Iv,"").split("|").map(Kv):[],i=t[3]?(function(o,a,l){return o.trim().split(`
|
|
15
|
-
`).map(function(c){return Na(c,a,l,!0)})})(t[3],e,n):[],s=Na(t[1],e,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:s,type:"25"}:{children:s,type:"21"}}function Fa(t,e){return t.align[e]==null?{}:{textAlign:t.align[e]}}function xt(t){return t.inline=1,t}function ht(t){return xt(function(e,n){return n.inline?t.exec(e):null})}function hr(t){return xt(function(e,n){return n.inline||n.simple?t.exec(e):null})}function it(t){return function(e,n){return n.inline||n.simple?null:t.exec(e)}}function Pa(t){return xt(function(e){return t.exec(e)})}const Yv=/(javascript|vbscript|data(?!:image)):/i;function Jv(t){try{const e=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(Yv.test(e))return null}catch{return null}return t}function Ge(t){return t&&t.replace(Dv,"$1")}function Er(t,e,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const s=t(e,n);return n.inline=r,n.simple=i,s}function Zv(t,e,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const s=t(e,n);return n.inline=r,n.simple=i,s}function Xv(t,e,n){const r=n.inline||!1;n.inline=!1;const i=t(e,n);return n.inline=r,i}const Qv=(t,e,n)=>({children:Er(e,t[2],n)});function wi(){return{}}function e1(...t){return t.filter(Boolean).join(" ")}function ji(t,e,n){let r=t;const i=e.split(".");for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}function Oi(t,e,n,r){if(!e||!e.trim())return null;const i=e.match(nv);return i?i.reduce(function(s,o){const a=o.indexOf("=");if(a!==-1){const l=(function(d){return d.indexOf("-")!==-1&&d.match(bv)===null&&(d=d.replace(wv,function(h,y){return y.toUpperCase()})),d})(o.slice(0,a)).trim(),c=xa[l]||l;if(c==="ref")return s;const u=s[c]=(function(d,h,y,f){return h==="style"?(function(p){const b=[];if(!p)return b;let v="",w=0,E="";for(let g=0;g<p.length;g++){const x=p[g];if(x==='"'||x==="'")E?x===E&&(E="",w--):(E=x,w++);else if(x==="("&&v.endsWith("url"))w++;else if(x===")"&&w>0)w--;else if(x===";"&&w===0){const S=v.indexOf(":");S>0&&b.push([v.slice(0,S).trim(),v.slice(S+1).trim()]),v="";continue}v+=x}const O=v.indexOf(":");return O>0&&b.push([v.slice(0,O).trim(),v.slice(O+1).trim()]),b})(y).reduce(function(p,[b,v]){return p[b.replace(/(-[a-z])/g,w=>w[1].toUpperCase())]=f(v,d,b),p},{}):tv.indexOf(h)!==-1?f(Ge(y),d,h):(y.match(xv)&&(y=Ge(y.slice(1,y.length-1))),y==="true"||y!=="false"&&y)})(t,l,(function(d){const h=d[0];return(h==='"'||h==="'")&&d.length>=2&&d[d.length-1]===h?d.slice(1,-1):d})(o.slice(a+1).trim()),n);typeof u=="string"&&(Bs.test(u)||Zi.test(u))&&(s[c]=r(u.trim()))}else o!=="style"&&(s[xa[o]||o]=!0);return s},{}):null}function $a(t,e){for(let n=0;n<t.length;n++)if(t[n].test(e))return!0;return!1}function t1(t="",e={}){e.overrides=e.overrides||{},e.namedCodesToUnicode=e.namedCodesToUnicode?Je({},va,e.namedCodesToUnicode):va;const n=e.slugify||Tn,r=e.sanitizer||Jv,i=e.createElement||P.createElement,s=[Sa,wa,ja,e.enforceAtxHeadings?Ea:Oa,Aa,_a,Uc,Lc],o=[...s,jv,Bs,Ca,Zi];function a(f,p,...b){const v=ji(e.overrides,f+".props",{});return i((function(w,E){const O=ji(E,w);return O?typeof O=="function"||typeof O=="object"&&"render"in O?O:ji(E,w+".component",w):w})(f,e.overrides),Je({},p,v,{className:e1(p?.className,v.className)||void 0}),...b)}function l(f){f=f.replace(hv,"");let p=!1;e.forceInline?p=!0:e.forceBlock||(p=Cv.test(f)===!1);const b=h(p?f:Wn(f).replace(kv,"")+`
|
|
16
|
-
|
|
17
|
-
`,{inline:p});if(e.ast)return b;const v=y(b);for(;Ta(v[v.length-1])&&!v[v.length-1].trim();)v.pop();if(c.length&&v.push(a("footer",{key:"footer"},c.map(function(O){return a("div",{id:n(O.identifier,Tn),key:O.identifier},O.identifier,y(h(O.footnote,{inline:!0})))}))),e.wrapper===null)return v;const w=e.wrapper||(p?"span":"div");let E;if(v.length>1||e.forceWrapper)E=v;else{if(v.length===1)return E=v[0],typeof E=="string"?a("span",{key:"outer"},E):E;E=null}return i(w,Je({key:"outer"},e.wrapperProps),E)}const c=[],u={},d={0:{t:[">"],o:it(Sa),u:1,i(f,p,b){const[,v,w]=f[0].replace(iv,"").match(sv);return{alert:v,children:p(w,b)}}},1:{t:[" "],o:ht(ov),u:1,i:wi},2:{t:function(f,p){if(p.inline||p.simple)return!1;var b=f[0];return b==="-"||b==="*"||b==="_"},o:it(av),u:1,i:wi},3:{t:[" "],o:it(ja),u:0,i:f=>({lang:void 0,text:Ge(Wn(f[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:it(wa),u:0,i:f=>({attrs:Oi("code",f[3]||"",r,l),lang:f[2]||void 0,text:f[4],type:"3"})},5:{t:["`"],o:hr(lv),u:3,i:f=>({text:Ge(f[2])})},6:{t:["[^"],o:it(dv),u:0,i:f=>(c.push({footnote:f[2],identifier:f[1]}),{})},7:{t:["[^"],o:ht(fv),u:1,i:f=>({target:"#"+n(f[1],Tn),text:f[1]})},8:{t:["[ ]","[x]"],o:ht(pv),u:1,i:f=>({completed:f[1].toLowerCase()==="x"})},9:{t:["#"],o:it(e.enforceAtxHeadings?Ea:Oa),u:1,i:(f,p,b)=>({children:Er(p,f[2],b),id:n(f[2],Tn),level:f[1].length})},10:{t:f=>{const p=f.indexOf(`
|
|
18
|
-
`);return p>0&&p<f.length-1&&(f[p+1]==="="||f[p+1]==="-")},o:it(Aa),u:1,i:(f,p,b)=>({children:Er(p,f[1],b),level:f[2]==="="?1:2,type:"9"})},11:{t:["<"],o:xt(gv),u:1,i(f,p,b){const[,v]=f[3].match(Mv),w=RegExp("^"+v,"gm"),E=f[3].replace(w,""),O=$a(o,E)?Xv:Er,g=f[1].toLowerCase(),x=ev.indexOf(g)!==-1,S=(x?g:f[1]).trim(),j={attrs:Oi(S,f[2],r,l),noInnerParse:x,tag:S};if(b.inAnchor=b.inAnchor||g==="a",x)j.text=f[3];else{const A=b.inHTML;b.inHTML=!0,j.children=O(p,E,b),b.inHTML=A}return b.inAnchor=!1,j}},13:{t:["<"],o:Pa(Zi),u:1,i(f){const p=f[1].trim();return{attrs:Oi(p,f[2]||"",r,l),tag:p}}},12:{t:["<!--"],o:Pa(Ca),u:1,i:()=>({})},14:{t:["!["],o:hr(Wv),u:1,i:f=>({alt:Ge(f[1]),target:Ge(f[2]),title:Ge(f[3])})},15:{t:["["],o:ht(zv),u:3,i:(f,p,b)=>({children:Zv(p,f[1],b),target:Ge(f[2]),title:Ge(f[3])})},16:{t:function(f,p){return!(!p.inline||p.inAnchor)&&f[0]==="<"&&(Ke(f,":")||Ke(f,"@")||Ke(f,"/"))},o:ht(Sv),u:0,i(f){let p=f[1],b=!1;return Ke(p,"@")&&!Ke(p,"//")&&(b=!0,p=p.replace("mailto:","")),{children:[{text:p,type:"27"}],target:b?"mailto:"+p:p,type:"15"}}},17:{t:(f,p)=>!p.inAnchor&&!e.disableAutoLink&&Xi(f,"http"),o:ht(vv),u:0,i:f=>({children:[{text:f[1],type:"27"}],target:f[1],title:void 0,type:"15"})},20:Ia(0,1),30:Ia(0,2),19:{t:[`
|
|
19
|
-
`],o:it(cv),u:3,i:wi},21:{t:function(f,p){return!p.inline&&!p.simple},o:xt(function(f,p){if(p.inline||p.simple||p.inHTML&&!Ke(f,`
|
|
20
|
-
|
|
21
|
-
`)&&!Ke(p.prevCapture,`
|
|
22
|
-
|
|
23
|
-
`))return null;let b="",v=0;for(;;){const E=f.indexOf(`
|
|
24
|
-
`,v),O=f.slice(v,E===-1?void 0:E+1),g=f[v];if((g===">"||g==="#"||g==="|"||g==="`"||g==="~"||g==="*"||g==="-"||g==="_"||g===" ")&&$a(s,O)||(b+=O,E===-1||!O.trim()))break;v=E+1}const w=Wn(b);return w===""?null:[b,,w]}),u:3,i:Qv},22:{t:["["],o:ht(Ov),u:0,i:f=>(u[f[1]]={target:f[2],title:f[4]},{})},23:{t:["!["],o:hr(Ev),u:0,i:f=>({alt:f[1]?Ge(f[1]):void 0,ref:f[2]})},24:{t:f=>f[0]==="["&&!Ke(f,"]("),o:ht(Av),u:0,i:(f,p,b)=>({children:p(f[1],b),fallbackChildren:f[0],ref:f[2]})},25:{t:["|"],o:it(_a),u:1,i:Gv},27:{o:xt(function(f,p){let b;return Xi(f,":")&&(b=Pv.exec(f)),b||Rv.exec(f)}),u:4,i(f){const p=f[0];return{text:Ke(p,"&")?p.replace(yv,(b,v)=>e.namedCodesToUnicode[v]||b):p}}},34:{t:["*","_","~","="],o:xt(Xx),u:2,i:(f,p,b)=>({children:p(f[2],b),tag:f[1]})},28:{t:["\\"],o:hr($v),u:1,i:f=>({text:f[1],type:"27"})}};e.disableParsingRawHTML===!0&&(delete d[11],delete d[13]);const h=(function(f){var p=Object.keys(f);function b(v,w){var E=[];if(w.prevCapture=w.prevCapture||"",v.trim())for(;v;)for(var O=0;O<p.length;){var g=p[O],x=f[g];if(!x.t||Hv(v,w,x.t)){var S=x.o(v,w);if(S&&S[0]){v=v.substring(S[0].length);var j=x.i(S,b,w);w.prevCapture+=S[0],j.type||(j.type=g),E.push(j);break}O++}else O++}return w.prevCapture="",E}return p.sort(function(v,w){return f[v].u-f[w].u||(v<w?-1:1)}),function(v,w){return b((function(E){return E.replace(uv,`
|
|
25
|
-
`).replace(mv,"").replace(_v," ")})(v),w)}})(d),y=(function(f,p,b,v,w){function E(O){return Array.isArray(O)?O.map(g=>"text"in g?g.text:""):"text"in O?O.text:""}return function O(g,x={}){const S=(x.renderDepth||0)+1;if(S>2500)return E(g);x.renderDepth=S;try{if(Array.isArray(g)){const A=x.key,C=[];let _=!1;for(let I=0;I<g.length;I++){x.key=I;const T=O(g[I],x),N=Ta(T);N&&_?C[C.length-1]+=T:T!==null&&C.push(T),_=N}return x.key=A,x.renderDepth=S-1,C}const j=(function(A,C,_){const I=()=>(function(T,N,F,$,k,B,L){switch(T.type){case"0":{const Y={key:F.key};return T.alert&&(Y.className="markdown-alert-"+B(T.alert.toLowerCase(),Tn),T.children.unshift({attrs:{},children:[{type:"27",text:T.alert}],noInnerParse:!0,type:"11",tag:"header"})),$("blockquote",Y,N(T.children,F))}case"1":return $("br",{key:F.key});case"2":return $("hr",{key:F.key});case"3":return $("pre",{key:F.key},$("code",Je({},T.attrs,{className:T.lang?"lang-"+T.lang:""}),T.text));case"5":return $("code",{key:F.key},T.text);case"7":return $("a",{key:F.key,href:k(T.target,"a","href")},$("sup",{key:F.key},T.text));case"8":return $("input",{checked:T.completed,key:F.key,readOnly:!0,type:"checkbox"});case"9":return $("h"+T.level,{id:T.id,key:F.key},N(T.children,F));case"11":return $(T.tag,Je({key:F.key},T.attrs),T.text||(T.children?N(T.children,F):""));case"13":return $(T.tag,Je({},T.attrs,{key:F.key}));case"14":return $("img",{key:F.key,alt:T.alt||void 0,title:T.title||void 0,src:k(T.target,"img","src")});case"15":return $("a",{key:F.key,href:k(T.target,"a","href"),title:T.title},N(T.children,F));case"23":return L[T.ref]?$("img",{key:F.key,alt:T.alt,src:k(L[T.ref].target,"img","src"),title:L[T.ref].title}):null;case"24":return L[T.ref]?$("a",{key:F.key,href:k(L[T.ref].target,"a","href"),title:L[T.ref].title},N(T.children,F)):$("span",{key:F.key},T.fallbackChildren);case"25":{const Y=T;return $("table",{key:F.key},$("thead",null,$("tr",null,Y.header.map(function(re,fe){return $("th",{key:fe,style:Fa(Y,fe)},N(re,F))}))),$("tbody",null,Y.cells.map(function(re,fe){return $("tr",{key:fe},re.map(function(ye,M){return $("td",{key:M,style:Fa(Y,M)},N(ye,F))}))})))}case"27":return T.text;case"34":return $(T.tag,{key:F.key},N(T.children,F));case"20":case"30":return $(T.ordered?"ol":"ul",{key:F.key,start:T.type==="20"?T.start:void 0},T.items.map(function(Y,re){return $("li",{key:re},N(Y,F))}));case"19":return`
|
|
26
|
-
`;case"21":return $("p",{key:F.key},N(T.children,F));default:return null}})(A,C,_,p,b,v,w);return f?f(I,A,C,_):I()})(g,O,x);return x.renderDepth=S-1,j}catch(j){if(j instanceof RangeError&&j.message.includes("Maximum call stack"))return E(g);throw j}}})(e.renderRule,a,r,n,u);return l(t)}const ur=t=>{let{children:e,options:n}=t,r=(function(i,s){if(i==null)return{};var o={};for(var a in i)if({}.hasOwnProperty.call(i,a)){if(s.indexOf(a)!==-1)continue;o[a]=i[a]}return o})(t,Qx);return t1(e??"",Je({},n,{wrapperProps:Je({},n?.wrapperProps,r)}))},Bc=Symbol("remove-this-key"),Da=Symbol("reset");function n1(t,e){return Array.isArray(t.required)&&t.required.indexOf(e)!==-1}function r1(t,e){switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(G.NewStringDefault)}}function i1(t){const{fieldPathId:e,schema:n,registry:r,uiSchema:i,errorSchema:s,formData:o,onChange:a,onBlur:l,onFocus:c,disabled:u,readonly:d,required:h,hideError:y,propertyName:f,handleKeyRename:p,handleRemoveProperty:b,addedByAdditionalProperties:v}=t,[w,E]=P.useState(!1),{globalFormOptions:O,fields:g}=r,{SchemaField:x}=g,S=Gt(Be(f,O,e.path)),j=P.useCallback((I,T,N,F)=>{I===void 0&&v&&(I=""),a(I,T,N,F)},[a,v]),A=P.useCallback(I=>{f!==I&&E(!0),p(f,I)},[f,p]),C=P.useCallback(I=>{const{target:{value:T}}=I;A(T)},[A]),_=P.useCallback(()=>{b(f)},[f,b]);return m.jsx(x,{name:f,required:h,schema:n,uiSchema:i,errorSchema:s,fieldPathId:S,formData:o,wasPropertyKeyModified:w,onKeyRename:A,onKeyRenameBlur:C,onRemoveProperty:_,onChange:j,onBlur:l,onFocus:c,registry:r,disabled:u,readonly:d,hideError:y})}function s1(t){const{schema:e,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,required:a=!1,disabled:l,readonly:c,hideError:u,onBlur:d,onFocus:h,onChange:y,registry:f,title:p}=t,{fields:b,schemaUtils:v,translateString:w,globalUiOptions:E}=f,{OptionalDataControlsField:O}=b,g=P.useRef(r);g.current=r;const x=v.retrieveSchema(e,r,!0),S=U(n,E),{properties:j={}}=x,A=t.childFieldPathId??s,C=P.useRef({previousKey:"",currentKey:void 0}),_=S.title??x.title??p??o,I=S.description??x.description,T=cr(f,x,a,n),N=vn(r);let F=[];const $=P.useCallback((M,le)=>{const{duplicateKeySuffixSeparator:te="-"}=U(n,E);let H=0,K=M;for(;X(le,K);)K=`${M}${te}${++H}`;return K},[n,E]),k=P.useCallback(()=>{if(!(x.additionalProperties||x.patternProperties))return;const{translateString:M}=f,le={...r},te=$("newKey",le);if(x.patternProperties)ce(le,te,null);else{let H,K,z;if(ne(x.additionalProperties)){H=x.additionalProperties.type,K=x.additionalProperties.const,z=x.additionalProperties.default;let ae=x.additionalProperties;if(ue in ae){const{schemaUtils:Oe}=f;ae=Oe.retrieveSchema({[ue]:ae[ue]},r),H=ae.type,K=ae.const,z=ae.default}!H&&(ee in ae||W in ae)&&(H="object")}const ie=K??z??r1(M,H);ce(le,te,ie)}C.current.previousKey===te&&(C.current.currentKey=te,C.current.previousKey=$(te,le)),y(le,A.path)},[r,y,f,A,$,x]),B=P.useCallback((M,le)=>{if(M!==le){const te=g.current,H=$(le,te),K={...te},z={[M]:H},ie=Object.keys(K).map(Oe=>({[z[Oe]||Oe]:K[Oe]})),ae=Object.assign({},...ie);g.current=ae,M!==C.current.currentKey&&(C.current.previousKey=M),C.current.currentKey=H,y(ae,A.path)}},[y,A,$]),L=P.useCallback(M=>{y(Bc,[...A.path,M])},[y,A]),Y=P.useCallback(M=>C.current.currentKey===M?C.current.previousKey:M,[]);if(!T||N)try{const M=Object.keys(j);F=X0(M,S.order)}catch(M){return m.jsxs("div",{children:[m.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:m.jsx(ur,{options:{disableParsingRawHTML:!0},children:w(G.InvalidObjectField,[o||"root",M.message])})}),m.jsx("pre",{children:JSON.stringify(x)})]})}const re=q("ObjectFieldTemplate",f,S),fe=T?m.jsx(O,{...t,fieldPathId:A,schema:x}):void 0,ye={title:S.label===!1?"":_,description:S.label===!1?void 0:I,properties:F.map(M=>{const le=X(x,[oe,M,ot]),te=le?n.additionalProperties:n[M],H=U(te).widget==="hidden";return{content:m.jsx(i1,{propertyName:M,required:n1(x,M),schema:D(x,[oe,M],{}),uiSchema:te,errorSchema:D(i,[M]),fieldPathId:A,formData:D(r,[M]),handleKeyRename:B,handleRemoveProperty:L,addedByAdditionalProperties:le,onChange:y,onBlur:d,onFocus:h,registry:f,disabled:l,readonly:c,hideError:u},Y(M)),name:M,readonly:c,disabled:l,required:a,hidden:H}}),readonly:c,disabled:l,required:a,fieldPathId:s,uiSchema:n,errorSchema:i,schema:x,formData:r,registry:f,optionalDataControl:fe,className:T?"rjsf-optional-object-field":void 0};return m.jsx(re,{...ye,onAddProperty:k})}function o1(t){const{schema:e,uiSchema:n={},formData:r,disabled:i=!1,readonly:s=!1,onChange:o,errorSchema:a,fieldPathId:l,registry:c}=t,{globalUiOptions:u={},schemaUtils:d,translateString:h}=c,y=U(n,u),f=q("OptionalDataControlsTemplate",c,y),p=vn(r);let b,v,w,E;if(i||s)b=bi(l,"Msg"),v=p?void 0:h(G.OptionalObjectEmptyMsg);else{const O=p?G.OptionalObjectRemove:G.OptionalObjectAdd;v=h(O),p?(b=bi(l,"Remove"),E=()=>o(void 0,l.path,a)):(b=bi(l,"Add"),w=()=>{let g=d.getDefaultFormState(e,r,"excludeObjectChildren");g===void 0&&(g=Le(e)==="array"?[]:{}),o(g,l.path,a)})}return v&&m.jsx(f,{id:b,registry:c,schema:e,uiSchema:n,label:v,onAddClick:w,onRemoveClick:E})}const a1={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function l1(t,e,n){const r=e.field,{fields:i}=n;if(typeof r=="function")return r;if(typeof r=="string"&&r in i)return i[r];const s=Le(t),o=Array.isArray(s)?s[0]:s||"",a=t.$id;let l=a1[o];return a&&a in i&&(l=a),!l&&(t.anyOf||t.oneOf)?()=>null:l in i?i[l]:i.FallbackField}function c1(t){const{schema:e,fieldPathId:n,uiSchema:r,formData:i,errorSchema:s,name:o,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:d=!1,registry:h,wasPropertyKeyModified:y=!1}=t,{schemaUtils:f,globalFormOptions:p,globalUiOptions:b,fields:v}=h,{AnyOfField:w,OneOfField:E}=v,O=Q0(e,r,h),g=U(O,b),x=q("FieldTemplate",h,g),S=q("DescriptionFieldTemplate",h,g),j=q("FieldHelpTemplate",h,g),A=q("FieldErrorTemplate",h,g),C=f.retrieveSchema(e,i),_=n[de],I=P.useCallback((wn,jn,It,iu)=>a(wn,jn,It,iu||_),[_,a]),T=l1(C,g,h),N=!!(g.disabled??t.disabled),F=!!(g.readonly??(t.readonly||t.schema.readOnly||C.readOnly)),$=g.hideError,k=$===void 0?t.hideError:!!$,B=!!(g.autofocus??t.autofocus);if(Object.keys(C).length===0)return null;let L=f.getDisplayLabel(C,O,b);const Y=g.field&&g.fieldReplacesAnyOrOneOf===!0;let re,fe,ye={fieldPathId:n};if((ee in C||W in C)&&!Y&&!f.isSelect(C)){C[ee]?(re=w,fe=C[ee].map(It=>f.retrieveSchema(ne(It)?It:{},i))):C[W]&&(re=E,fe=C[W].map(It=>f.retrieveSchema(ne(It)?It:{},i)));const wn=cr(h,C,d,O),jn=vn(i);L=L&&(!wn||jn),ye={childFieldPathId:n,fieldPathId:Be("XxxOf",p,n)}}const{__errors:M,...le}=s||{},te=un(O,["ui:classNames","classNames","ui:style"]);vt in te&&(te[vt]=un(te[vt],["classNames","style"]));const H=m.jsx(T,{...t,onChange:I,...ye,schema:C,uiSchema:te,disabled:N,readonly:F,hideError:k,autofocus:B,errorSchema:le,rawErrors:M}),K=n[de];let z;y?z=o:z=ot in C?o:g.title||t.schema.title||C.title||t.title||o;const ie=g.description||t.schema.description||C.description||"",ae=g.help,Oe=g.widget==="hidden",Ee=["rjsf-field",`rjsf-field-${Le(C)}`];!k&&M&&M.length>0&&Ee.push("rjsf-field-error"),g.classNames&&Ee.push(g.classNames);const xe=m.jsx(j,{help:ae,fieldPathId:n,schema:C,uiSchema:O,hasErrors:!k&&M&&M.length>0,registry:h}),$e=k||re&&!f.isSelect(C)?void 0:m.jsx(A,{errors:M,errorSchema:s,fieldPathId:n,schema:C,uiSchema:O,registry:h}),mt={description:m.jsx(S,{id:Kt(K),description:ie,schema:C,uiSchema:O,registry:h}),rawDescription:ie,help:xe,rawHelp:typeof ae=="string"?ae:void 0,errors:$e,rawErrors:k?void 0:M,fieldPathId:n,id:K,label:z,hidden:Oe,onChange:a,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:d,disabled:N,readonly:F,hideError:k,displayLabel:L,classNames:Ee.join(" ").trim(),style:g.style,formData:i,schema:C,uiSchema:O,registry:h};return m.jsx(x,{...mt,children:m.jsxs(m.Fragment,{children:[H,re&&m.jsx(re,{name:o,disabled:N,readonly:F,hideError:k,errorSchema:s,formData:i,fieldPathId:n,onBlur:t.onBlur,onChange:t.onChange,onFocus:t.onFocus,options:fe,registry:h,required:d,schema:C,uiSchema:O})]})})}class u1 extends P.Component{shouldComponentUpdate(e){const{registry:{globalFormOptions:n}}=this.props,{experimental_componentUpdateStrategy:r="customDeep"}=n;return Ec(this,e,this.state,r)}render(){return m.jsx(c1,{...this.props})}}function d1(t){const{schema:e,name:n,uiSchema:r,fieldPathId:i,formData:s,required:o,disabled:a=!1,readonly:l=!1,autofocus:c=!1,onChange:u,onBlur:d,onFocus:h,registry:y,rawErrors:f,hideError:p,title:b}=t,{title:v,format:w}=e,{widgets:E,schemaUtils:O,globalUiOptions:g}=y,x=O.isSelect(e)?mn(e,r):void 0;let S=x?"select":"text";w&&Y0(e,w,E)&&(S=w);const{widget:j=S,placeholder:A="",title:C,..._}=U(r),I=O.getDisplayLabel(e,r,g),T=C??b??v??n,N=tt(e,j,E),F=P.useCallback(($,k,B)=>u($,i.path,k,B),[u,i]);return m.jsx(N,{options:{..._,enumOptions:x},schema:e,uiSchema:r,id:i.$id,name:n,label:T,hideLabel:!I,hideError:p,value:s,onChange:F,onBlur:d,onFocus:h,required:o,disabled:a,readonly:l,autofocus:c,registry:y,placeholder:A,rawErrors:f,htmlName:i.name})}function f1(t){const{formData:e,onChange:n,fieldPathId:r}=t;return P.useEffect(()=>{e===void 0&&n(null,r.path)},[r,e,n]),null}function m1(){return{AnyOfField:ya,ArrayField:Sx,BooleanField:wx,FallbackField:Ax,LayoutGridField:Ls,LayoutHeaderField:Hx,LayoutMultiSchemaField:Kx,NumberField:Jx,ObjectField:s1,OneOfField:ya,OptionalDataControlsField:o1,SchemaField:u1,StringField:d1,NullField:f1}}function h1(t){const{fieldPathId:e,description:n,registry:r,schema:i,uiSchema:s}=t,o=U(s,r.globalUiOptions),{label:a=!0}=o;if(!n||!a)return null;const l=q("DescriptionFieldTemplate",r,o);return m.jsx(l,{id:Kt(e),description:n,schema:i,uiSchema:s,registry:r})}function p1(t){const{children:e,className:n,buttonsProps:r,displayLabel:i,hasDescription:s,hasToolbar:o,registry:a,uiSchema:l}=t,c=U(l),u=q("ArrayFieldItemButtonsTemplate",a,c),d={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},h=s?31:9,y={display:"flex",alignItems:i?"center":"baseline"},f={display:"flex",justifyContent:"flex-end",marginTop:i?`${h}px`:0};return m.jsxs("div",{className:n,style:y,children:[m.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:e}),o&&m.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:m.jsx("div",{className:"btn-group",style:f,children:m.jsx(u,{...r,style:d})})})]})}function g1(t){const{disabled:e,hasCopy:n,hasMoveDown:r,hasMoveUp:i,hasRemove:s,fieldPathId:o,onCopyItem:a,onRemoveItem:l,onMoveDownItem:c,onMoveUpItem:u,readonly:d,registry:h,uiSchema:y}=t,{CopyButton:f,MoveDownButton:p,MoveUpButton:b,RemoveButton:v}=h.templates.ButtonTemplates;return m.jsxs(m.Fragment,{children:[(i||r)&&m.jsx(b,{id:Qe(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:e||d||!i,onClick:u,uiSchema:y,registry:h}),(i||r)&&m.jsx(p,{id:Qe(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:e||d||!r,onClick:c,uiSchema:y,registry:h}),n&&m.jsx(f,{id:Qe(o,"copy"),className:"rjsf-array-item-copy",disabled:e||d,onClick:a,uiSchema:y,registry:h}),s&&m.jsx(v,{id:Qe(o,"remove"),className:"rjsf-array-item-remove",disabled:e||d,onClick:l,uiSchema:y,registry:h})]})}function y1(t){const{canAdd:e,className:n,disabled:r,fieldPathId:i,uiSchema:s,items:o,optionalDataControl:a,onAddClick:l,readonly:c,registry:u,required:d,schema:h,title:y}=t,f=U(s),p=q("ArrayFieldDescriptionTemplate",u,f),b=q("ArrayFieldTitleTemplate",u,f),v=!c&&!r,{ButtonTemplates:{AddButton:w}}=u.templates;return m.jsxs("fieldset",{className:n,id:i.$id,children:[m.jsx(b,{fieldPathId:i,title:f.title||y,required:d,schema:h,uiSchema:s,registry:u,optionalDataControl:v?a:void 0}),m.jsx(p,{fieldPathId:i,description:f.description||h.description,schema:h,uiSchema:s,registry:u}),v?void 0:a,m.jsx("div",{className:"row array-item-list",children:o}),e&&m.jsx(w,{id:Qe(i,"add"),className:"rjsf-array-item-add",onClick:l,disabled:r||c,uiSchema:s,registry:u})]})}function b1(t){const{fieldPathId:e,title:n,schema:r,uiSchema:i,required:s,registry:o,optionalDataControl:a}=t,l=U(i,o.globalUiOptions),{label:c=!0}=l;if(!n||!c)return null;const u=q("TitleFieldTemplate",o,l);return m.jsx(u,{id:Jr(e),title:n,required:s,schema:r,uiSchema:i,registry:o,optionalDataControl:a})}function qc(t){const{id:e,schema:n}=t,{examples:r,default:i}=n;return Array.isArray(r)?m.jsx("datalist",{id:Yr(e),children:r.concat(i!==void 0&&!r.map(String).includes(String(i))?[i]:[]).map(s=>m.jsx("option",{value:s},String(s)))},`datalist_${e}`):null}function x1(t){const{id:e,name:n,htmlName:r,value:i,readonly:s,disabled:o,autofocus:a,onBlur:l,onFocus:c,onChange:u,onChangeOverride:d,options:h,schema:y,uiSchema:f,registry:p,rawErrors:b,type:v,hideLabel:w,hideError:E,...O}=t,{ClearButton:g}=p.templates.ButtonTemplates;if(!e)throw console.log("No id for",t),new Error(`no id for props ${JSON.stringify(t)}`);const x={...O,...Sc(y,v,h)};let S;x.type==="number"||x.type==="integer"?S=i||i===0?i:"":S=i??"";const j=P.useCallback(({target:{value:I}})=>u(I===""?h.emptyValue:I),[u,h]),A=P.useCallback(({target:I})=>l(e,I&&I.value),[l,e]),C=P.useCallback(({target:I})=>c(e,I&&I.value),[c,e]),_=P.useCallback(I=>{I.preventDefault(),I.stopPropagation(),u(h.emptyValue??"")},[u,h.emptyValue]);return m.jsxs(m.Fragment,{children:[m.jsx("input",{id:e,name:r||e,className:"form-control",readOnly:s,disabled:o,autoFocus:a,value:S,...x,list:y.examples?Yr(e):void 0,onChange:d||j,onBlur:A,onFocus:C,"aria-describedby":Pe(e,!!y.examples)}),h.allowClearTextInputs&&!s&&!o&&S&&m.jsx(g,{registry:p,onClick:_}),m.jsx(qc,{id:e,schema:y})]})}function v1({uiSchema:t}){const{submitText:e,norender:n,props:r={}}=wc(t);return n?null:m.jsx("div",{children:m.jsx("button",{type:"submit",...r,className:`btn btn-info ${r.className||""}`,children:e})})}function _t(t){const{iconType:e="default",icon:n,className:r,uiSchema:i,registry:s,...o}=t;return m.jsx("button",{type:"button",className:`btn btn-${e} ${r}`,...o,children:m.jsx("i",{className:`glyphicon glyphicon-${n}`})})}function S1(t){const{registry:{translateString:e}}=t;return m.jsx(_t,{title:e(G.CopyButton),...t,icon:"copy"})}function w1(t){const{registry:{translateString:e}}=t;return m.jsx(_t,{title:e(G.MoveDownButton),...t,icon:"arrow-down"})}function j1(t){const{registry:{translateString:e}}=t;return m.jsx(_t,{title:e(G.MoveUpButton),...t,icon:"arrow-up"})}function O1(t){const{registry:{translateString:e}}=t;return m.jsx(_t,{title:e(G.RemoveButton),...t,iconType:"danger",icon:"remove"})}function E1({id:t,className:e,onClick:n,disabled:r,registry:i,...s}){const{translateString:o}=i;return m.jsx(_t,{id:t,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(G.ClearButton),onClick:n,disabled:r,registry:i,...s})}function A1({id:t,className:e,onClick:n,disabled:r,registry:i}){const{translateString:s}=i;return m.jsx("div",{className:"row",children:m.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${e}`,children:m.jsx(_t,{id:t,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(G.AddButton),onClick:n,disabled:r,registry:i})})})}function C1(){return{SubmitButton:v1,AddButton:A1,CopyButton:S1,MoveDownButton:w1,MoveUpButton:j1,RemoveButton:O1,ClearButton:E1}}const Vc=$s();function zs({description:t,registry:e,uiSchema:n={}}){const{globalUiOptions:r}=e;return U(n,r).enableMarkdownInDescription&&typeof t=="string"?m.jsx(ur,{options:{disableParsingRawHTML:!0},"data-testid":Vc.markdown,children:t}):t}zs.TEST_IDS=Vc;function _1(t){const{id:e,description:n,registry:r,uiSchema:i}=t;return n?m.jsx("div",{id:e,className:"field-description",children:m.jsx(zs,{description:n,registry:r,uiSchema:i})}):null}function I1({errors:t,registry:e}){const{translateString:n}=e;return m.jsxs("div",{className:"panel panel-danger errors",children:[m.jsx("div",{className:"panel-heading",children:m.jsx("h3",{className:"panel-title",children:n(G.ErrorsLabel)})}),m.jsx("ul",{className:"list-group",children:t.map((r,i)=>m.jsx("li",{className:"list-group-item text-danger",children:r.stack},i))})]})}function T1(t){const{schema:e,registry:n,typeSelector:r,schemaField:i}=t,s=q("MultiSchemaFieldTemplate",n);return m.jsx(s,{selector:r,optionSchemaField:i,schema:e,registry:n})}const N1="*";function zc(t){const{label:e,required:n,id:r}=t;return e?m.jsxs("label",{className:"control-label",htmlFor:r,children:[e,n&&m.jsx("span",{className:"required",children:N1})]}):null}function F1(t){const{id:e,label:n,children:r,errors:i,help:s,description:o,hidden:a,required:l,displayLabel:c,registry:u,uiSchema:d}=t,h=U(d),y=q("WrapIfAdditionalTemplate",u,h);if(a)return m.jsx("div",{className:"hidden",children:r});const f=h.widget==="checkbox";return m.jsxs(y,{...t,children:[c&&!f&&m.jsx(zc,{label:n,required:l,id:e}),c&&o?o:null,r,i,s]})}function P1(t){const{errors:e=[],fieldPathId:n}=t;if(e.length===0)return null;const r=Ds(n);return m.jsx("div",{children:m.jsx("ul",{id:r,className:"error-detail bs-callout bs-callout-info",children:e.filter(i=>!!i).map((i,s)=>m.jsx("li",{className:"text-danger",children:i},s))})})}const Wc=$s();function Ws({help:t,registry:e,uiSchema:n={}}){const{globalUiOptions:r}=e;return U(n,r).enableMarkdownInHelp&&typeof t=="string"?m.jsx(ur,{options:{disableParsingRawHTML:!0},"data-testid":Wc.markdown,children:t}):t}Ws.TEST_IDS=Wc;function $1(t){const{fieldPathId:e,help:n,uiSchema:r,registry:i}=t;return n?m.jsx("div",{id:Rs(e),className:"help-block",children:m.jsx(Ws,{help:n,registry:i,uiSchema:r})}):null}function D1(t){const{children:e,column:n,className:r,...i}=t;return m.jsx("div",{className:r,...i,children:e})}function R1(t){const{selector:e,optionSchemaField:n}=t;return m.jsxs("div",{className:"panel panel-default panel-body",children:[m.jsx("div",{className:"form-group",children:e}),n]})}function k1(t){const{className:e,description:n,disabled:r,formData:i,fieldPathId:s,onAddProperty:o,optionalDataControl:a,properties:l,readonly:c,registry:u,required:d,schema:h,title:y,uiSchema:f}=t,p=U(f),b=q("TitleFieldTemplate",u,p),v=q("DescriptionFieldTemplate",u,p);if((h.oneOf||h.anyOf)&&!h.properties&&l.length===0)return null;const E=!c&&!r,{ButtonTemplates:{AddButton:O}}=u.templates;return m.jsxs("fieldset",{className:e,id:s.$id,children:[y&&m.jsx(b,{id:Jr(s),title:y,required:d,schema:h,uiSchema:f,registry:u,optionalDataControl:E?a:void 0}),n&&m.jsx(v,{id:Kt(s),description:n,schema:h,uiSchema:f,registry:u}),E?void 0:a,l.map(g=>g.content),tl(h,f,i)&&m.jsx(O,{id:Qe(s,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:r||c,uiSchema:f,registry:u})]})}function M1(t){const{id:e,registry:n,label:r,onAddClick:i,onRemoveClick:s}=t;return i?m.jsx(_t,{id:e,registry:n,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:r}):s?m.jsx(_t,{id:e,registry:n,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:s,title:r}):m.jsx("em",{id:e,children:r})}const U1="*";function L1(t){const{id:e,title:n,required:r,optionalDataControl:i}=t;return m.jsxs("legend",{id:e,children:[n,r&&m.jsx("span",{className:"required",children:U1}),i&&m.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function B1(t){const{schema:e,fieldPathId:n,reason:r,registry:i}=t,{translateString:s}=i;let o=G.UnsupportedField;const a=[];return n&&n.$id&&(o=G.UnsupportedFieldWithId,a.push(n.$id)),r&&(o=o===G.UnsupportedField?G.UnsupportedFieldWithReason:G.UnsupportedFieldWithIdAndReason,a.push(r)),m.jsxs("div",{className:"unsupported-field",children:[m.jsx("p",{children:m.jsx(ur,{options:{disableParsingRawHTML:!0},children:s(o,a)})}),e&&m.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function q1(t){const{id:e,classNames:n,style:r,disabled:i,displayLabel:s,label:o,onKeyRenameBlur:a,onRemoveProperty:l,rawDescription:c,readonly:u,required:d,schema:h,hideError:y,rawErrors:f,children:p,uiSchema:b,registry:v}=t,{templates:w,translateString:E}=v,{RemoveButton:O}=w.ButtonTemplates,g=E(G.KeyLabel,[o]),x=ot in h,S=!!c,j=["form-group",n];!y&&f&&f.length>0&&j.push("has-error has-danger");const A=j.join(" ").trim();if(!x)return m.jsx("div",{className:A,style:r,children:p});const C=S?46:26;return m.jsx("div",{className:A,style:r,children:m.jsxs("div",{className:"row",children:[m.jsx("div",{className:"col-xs-5 form-additional",children:m.jsxs("div",{className:"form-group",children:[s&&m.jsx(zc,{label:g,required:d,id:`${e}-key`}),s&&c&&m.jsx("div",{children:" "}),m.jsx("input",{className:"form-control",type:"text",id:`${e}-key`,onBlur:a,defaultValue:o},o)]})}),m.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),m.jsx("div",{className:"col-xs-2",style:{marginTop:s?`${C}px`:void 0},children:m.jsx(O,{id:Qe(e,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:l,uiSchema:b,registry:v})})]})})}function V1(){return{ArrayFieldDescriptionTemplate:h1,ArrayFieldItemTemplate:p1,ArrayFieldItemButtonsTemplate:g1,ArrayFieldTemplate:y1,ArrayFieldTitleTemplate:b1,ButtonTemplates:C1(),BaseInputTemplate:x1,DescriptionFieldTemplate:_1,ErrorListTemplate:I1,FallbackFieldTemplate:T1,FieldTemplate:F1,FieldErrorTemplate:P1,FieldHelpTemplate:$1,GridTemplate:D1,MultiSchemaFieldTemplate:R1,ObjectFieldTemplate:k1,OptionalDataControlsTemplate:M1,TitleFieldTemplate:L1,UnsupportedFieldTemplate:B1,WrapIfAdditionalTemplate:q1}}function z1(t){const{disabled:e=!1,readonly:n=!1,autofocus:r=!1,options:i,id:s,name:o,registry:a,onBlur:l,onFocus:c}=t,{translateString:u}=a,{elements:d,handleChange:h,handleClear:y,handleSetNow:f}=rx(t);return m.jsxs("ul",{className:"list-inline",children:[d.map((p,b)=>m.jsx("li",{className:"list-inline-item",children:m.jsx(nx,{rootId:s,name:o,select:h,...p,disabled:e,readonly:n,registry:a,onBlur:l,onFocus:c,autofocus:r&&b===0})},b)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&m.jsx("li",{className:"list-inline-item",children:m.jsx("a",{href:"#",className:"btn btn-info btn-now",onClick:f,children:u(G.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&m.jsx("li",{className:"list-inline-item",children:m.jsx("a",{href:"#",className:"btn btn-warning btn-clear",onClick:y,children:u(G.ClearLabel)})})]})}function W1({time:t=!0,...e}){const{AltDateWidget:n}=e.registry.widgets;return m.jsx(n,{time:t,...e})}function H1({schema:t,uiSchema:e,options:n,id:r,value:i,disabled:s,readonly:o,label:a,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:d,onChange:h,registry:y,htmlName:f}){const p=q("DescriptionFieldTemplate",y,n),b=Vn(t),v=P.useCallback(S=>h(S.target.checked),[h]),w=P.useCallback(S=>u(r,S.target.checked),[u,r]),E=P.useCallback(S=>d(r,S.target.checked),[d,r]),x=U(e).widget==="checkbox"?void 0:n.description??t.description;return m.jsxs("div",{className:`checkbox ${s||o?"disabled":""}`,children:[!l&&x&&m.jsx(p,{id:Kt(r),description:x,schema:t,uiSchema:e,registry:y}),m.jsxs("label",{children:[m.jsx("input",{type:"checkbox",id:r,name:f||r,checked:typeof i>"u"?!1:i,required:b,disabled:s||o,autoFocus:c,onChange:v,onBlur:w,onFocus:E,"aria-describedby":Pe(r)}),Oc(m.jsx("span",{children:a}),l)]})]})}function K1({id:t,disabled:e,options:n,value:r,autofocus:i=!1,readonly:s,onChange:o,onBlur:a,onFocus:l,htmlName:c}){const{inline:u=!1,enumOptions:d,enumDisabled:h,emptyValue:y}=n,f=xn(n),p=Array.isArray(r)?r:[r],b=P.useCallback(({target:w})=>a(t,Te(w&&w.value,d,f,y)),[a,t,d,y,f]),v=P.useCallback(({target:w})=>l(t,Te(w&&w.value,d,f,y)),[l,t,d,y,f]);return m.jsx("div",{className:"checkboxes",id:t,children:Array.isArray(d)&&d.map((w,E)=>{const O=ar(w.value,p),g=Array.isArray(h)&&h.indexOf(w.value)!==-1,x=e||g||s?"disabled":"",S=A=>{A.target.checked?o(bc(E,p,d)):o(gc(E,p,d))},j=m.jsxs("span",{children:[m.jsx("input",{type:"checkbox",id:$t(t,E),name:c||t,checked:O,value:lr(w.value,E,f),disabled:e||g||s,autoFocus:i&&E===0,onChange:S,onBlur:b,onFocus:v,"aria-describedby":Pe(t)}),m.jsx("span",{children:w.label})]});return u?m.jsx("label",{className:`checkbox-inline ${x}`,children:j},E):m.jsx("div",{className:`checkbox ${x}`,children:m.jsx("label",{children:j})},E)})})}function G1(t){const{disabled:e,readonly:n,options:r,registry:i}=t,s=q("BaseInputTemplate",i,r);return m.jsx(s,{type:"color",...t,disabled:e||n})}function Y1(t){const{onChange:e,options:n,registry:r}=t,i=q("BaseInputTemplate",r,n),s=P.useCallback(o=>e(o||void 0),[e]);return m.jsx(i,{type:"date",...t,onChange:s})}function J1(t){const{onChange:e,value:n,options:r,registry:i}=t,s=q("BaseInputTemplate",i,r);return m.jsx(s,{type:"datetime-local",...t,value:lx(n),onChange:o=>e(Z0(o))})}function Z1(t){const{options:e,registry:n}=t,r=q("BaseInputTemplate",n,e);return m.jsx(r,{type:"email",...t})}function X1({fileInfo:t,registry:e}){const{translateString:n}=e,{dataURL:r,type:i,name:s}=t;return r?["image/jpeg","image/png"].includes(i)?m.jsx("img",{src:r,style:{maxWidth:"100%"},className:"file-preview"}):m.jsxs(m.Fragment,{children:[" ",m.jsx("a",{download:`preview-${s}`,href:r,className:"file-download",children:n(G.PreviewLabel)})]}):null}function Q1({filesInfo:t,registry:e,preview:n,onRemove:r,options:i}){if(t.length===0)return null;const{translateString:s}=e,{RemoveButton:o}=q("ButtonTemplates",e,i);return m.jsx("ul",{className:"file-info",children:t.map((a,l)=>{const{name:c,size:u,type:d}=a,h=()=>r(l);return m.jsxs("li",{children:[m.jsx(ur,{children:s(G.FilesInfo,[c,d,String(u)])}),n&&m.jsx(X1,{fileInfo:a,registry:e}),m.jsx(o,{onClick:h,registry:e})]},l)})})}function eS(t){const{disabled:e,readonly:n,required:r,multiple:i,onChange:s,value:o,options:a,registry:l}=t,{filesInfo:c,handleChange:u,handleRemove:d}=ax(o,s,i),h=q("BaseInputTemplate",l,a),y=f=>{f.target.files&&u(f.target.files)};return m.jsxs("div",{children:[m.jsx(h,{...t,disabled:e||n,type:"file",required:o?!1:r,onChangeOverride:y,value:"",accept:a.accept?String(a.accept):void 0}),m.jsx(Q1,{filesInfo:c,onRemove:d,registry:l,preview:a.filePreview,options:a})]})}function tS({id:t,value:e,htmlName:n}){return m.jsx("input",{type:"hidden",id:t,name:n||t,value:typeof e>"u"?"":e})}function nS(t){const{options:e,registry:n}=t,r=q("BaseInputTemplate",n,e);return m.jsx(r,{type:"password",...t})}function rS({options:t,value:e,required:n,disabled:r,readonly:i,autofocus:s=!1,onBlur:o,onFocus:a,onChange:l,id:c,htmlName:u}){const{enumOptions:d,enumDisabled:h,inline:y,emptyValue:f}=t,p=xn(t),b=P.useCallback(({target:w})=>o(c,Te(w&&w.value,d,p,f)),[o,d,f,c,p]),v=P.useCallback(({target:w})=>a(c,Te(w&&w.value,d,p,f)),[a,d,f,c,p]);return m.jsx("div",{className:"field-radio-group",id:c,role:"radiogroup",children:Array.isArray(d)&&d.map((w,E)=>{const O=ar(w.value,e),g=Array.isArray(h)&&h.indexOf(w.value)!==-1,x=r||g||i?"disabled":"",S=()=>l(w.value),j=m.jsxs("span",{children:[m.jsx("input",{type:"radio",id:$t(c,E),checked:O,name:u||c,required:n,value:lr(w.value,E,p),disabled:r||g||i,autoFocus:s&&E===0,onChange:S,onBlur:b,onFocus:v,"aria-describedby":Pe(c)}),m.jsx("span",{children:w.label})]});return y?m.jsx("label",{className:`radio-inline ${x}`,children:j},E):m.jsx("div",{className:`radio ${x}`,children:m.jsx("label",{children:j})},E)})})}function iS(t){const{value:e,registry:{templates:{BaseInputTemplate:n}}}=t;return m.jsxs("div",{className:"field-range-wrapper",children:[m.jsx(n,{type:"range",...t}),m.jsx("span",{className:"range-view",children:e})]})}function sS({id:t,value:e,required:n,disabled:r,readonly:i,autofocus:s,onChange:o,onFocus:a,onBlur:l,schema:c,options:u,htmlName:d}){const{stars:h=5,shape:y="star"}=u,f=c.maximum?Math.min(c.maximum,5):Math.min(Math.max(h,1),5),p=c.minimum||0,b=P.useCallback(O=>{!r&&!i&&o(O)},[o,r,i]),v=P.useCallback(O=>{if(a){const g=Number(O.target.dataset.value);a(t,g)}},[a,t]),w=P.useCallback(O=>{if(l){const g=Number(O.target.dataset.value);l(t,g)}},[l,t]),E=O=>y==="heart"?O?"♥":"♡":O?"★":"☆";return m.jsx(m.Fragment,{children:m.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:r||i?"default":"pointer"},children:[[...Array(f)].map((O,g)=>{const x=p+g,S=x<=e;return m.jsx("span",{onClick:()=>b(x),onFocus:v,onBlur:w,"data-value":x,tabIndex:r||i?-1:0,role:"radio","aria-checked":x===e,"aria-label":`${x} ${y==="heart"?"heart":"star"}${x===1?"":"s"}`,style:{color:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:E(S)},g)}),m.jsx("input",{type:"hidden",id:t,name:d||t,value:e||"",required:n,disabled:r||i,"aria-hidden":"true"})]})})}function Ei(t,e){return e?Array.from(t.target.options).slice().filter(n=>n.selected).map(n=>n.value):t.target.value}function oS({schema:t,id:e,options:n,value:r,required:i,disabled:s,readonly:o,multiple:a=!1,autofocus:l=!1,onChange:c,onBlur:u,onFocus:d,placeholder:h,htmlName:y}){const{enumOptions:f,enumDisabled:p,emptyValue:b}=n,v=a?[]:"",w=xn(n),E=P.useCallback(j=>{const A=Ei(j,a);return d(e,Te(A,f,w,b))},[d,e,a,f,b,w]),O=P.useCallback(j=>{const A=Ei(j,a);return u(e,Te(A,f,w,b))},[u,e,a,f,b,w]),g=P.useCallback(j=>{const A=Ei(j,a);return c(Te(A,f,w,b))},[c,a,f,b,w]),x=yc(r,f,a,w,v),S=!a&&t.default===void 0;return m.jsxs("select",{id:e,name:y||e,multiple:a,role:"combobox",className:"form-control",value:x,required:i,disabled:s||o,autoFocus:l,onBlur:O,onFocus:E,onChange:g,"aria-describedby":Pe(e),children:[S&&m.jsx("option",{value:"",children:h}),Array.isArray(f)&&f.map(({value:j,label:A},C)=>{const _=p&&p.indexOf(j)!==-1;return m.jsx("option",{value:lr(j,C,w),disabled:_,children:A},C)})]})}function aS({id:t,options:e={},placeholder:n,value:r,required:i,disabled:s,readonly:o,autofocus:a=!1,onChange:l,onBlur:c,onFocus:u,htmlName:d}){const h=P.useCallback(({target:{value:p}})=>l(p===""?e.emptyValue:p),[l,e.emptyValue]),y=P.useCallback(({target:p})=>c(t,p&&p.value),[c,t]),f=P.useCallback(({target:p})=>u(t,p&&p.value),[t,u]);return m.jsx("textarea",{id:t,name:d||t,className:"form-control",value:r||"",placeholder:n,required:i,disabled:s,readOnly:o,autoFocus:a,rows:e.rows,onBlur:y,onFocus:f,onChange:h,"aria-describedby":Pe(t)})}function lS(t){const{options:e,registry:n}=t,r=q("BaseInputTemplate",n,e);return m.jsx(r,{...t})}function cS(t){const{onChange:e,options:n,registry:r}=t,i=q("BaseInputTemplate",r,n),s=P.useCallback(o=>e(o?`${o}:00`:void 0),[e]);return m.jsx(i,{type:"time",...t,onChange:s})}function uS(t){const{options:e,registry:n}=t,r=q("BaseInputTemplate",n,e);return m.jsx(r,{type:"url",...t})}function dS(t){const{options:e,registry:n}=t,r=q("BaseInputTemplate",n,e);return m.jsx(r,{type:"number",...t})}function fS(){return{AltDateWidget:z1,AltDateTimeWidget:W1,CheckboxWidget:H1,CheckboxesWidget:K1,ColorWidget:G1,DateWidget:Y1,DateTimeWidget:J1,EmailWidget:Z1,FileWidget:eS,HiddenWidget:tS,PasswordWidget:nS,RadioWidget:rS,RangeWidget:iS,RatingWidget:sS,SelectWidget:oS,TextWidget:lS,TextareaWidget:aS,TimeWidget:cS,UpDownWidget:dS,URLWidget:uS}}function mS(){return{fields:m1(),templates:V1(),widgets:fS(),rootSchema:{},formContext:{},translateString:$0,globalFormOptions:{idPrefix:Xa,idSeparator:Qa,useFallbackUiForUnsupportedType:!1}}}function Yt(t,e){return{...Fs(t,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...e!==void 0&&{status:e}}}let hS=class extends P.Component{formElement;pendingChanges=[];_isProcessingUserChange=!1;static getDerivedStateFromProps(e,n){if(e.extraErrors!==n._prevExtraErrors){const r={errors:n.schemaValidationErrors||[],errorSchema:n.schemaValidationErrorSchema||{}};let{errors:i,errorSchema:s}=r;return e.extraErrors&&({errors:i,errorSchema:s}=Rn(r,e.extraErrors)),n.customErrors&&({errors:i,errorSchema:s}=Rn({errors:i,errorSchema:s},n.customErrors.ErrorSchema,!0)),{_prevExtraErrors:e.extraErrors,errors:i,errorSchema:s}}return null}constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");const{formData:n,initialFormData:r,onChange:i}=e,s=n??r;this.state={...this.getStateFromProps(e,s,void 0,void 0,void 0,!0),_prevExtraErrors:e.extraErrors},i&&!se(this.state.formData,s)&&i(Yt(this.state)),this.formElement=P.createRef()}getSnapshotBeforeUpdate(e,n){if(!se(this.props,e)){const r=oa(this.props.formData,e.formData),i=oa(this.props.formData,this.state.formData),s=!se(e.schema,this.props.schema),o=r.length>0||!se(e.formData,this.props.formData),a=i.length>0||!se(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,r,!a),c=!se(l,n);return{nextState:l,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(e,n,r){if(r.shouldUpdate){const{nextState:i}=r,s=!se(i.formData,this.props.formData),o=this._isProcessingUserChange;if(this._isProcessingUserChange=!1,o&&s)return;s&&!se(i.formData,n.formData)&&this.props.onChange&&this.props.onChange(Yt(i)),this.setState(i)}}getStateFromProps(e,n,r,i=!1,s=[],o=!1){const a=this.state||{},l="schema"in e?e.schema:this.props.schema,c="validator"in e?e.validator:this.props.validator,u=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},d=e.formData===void 0&&this.props.formData===void 0,h=typeof n<"u",y="liveValidate"in e?e.liveValidate:this.props.liveValidate,f=h&&!e.noValidate&&y,p="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let v=a.schemaUtils;(!v||v.doesSchemaUtilsDiffer(c,l,p,b))&&(v=N0(c,l,p,b));const w=v.getRootSchema();let E=n;n===Da?E=void 0:n===void 0&&d&&(E=a.formData);const O=v.getDefaultFormState(w,E,!1,a.initialDefaultsGenerated),g=this.updateRetrievedSchema(r??v.retrieveSchema(w,O)),x=()=>e.noValidate||i?{errors:[],errorSchema:{}}:e.liveValidate?{errors:a.errors||[],errorSchema:a.errorSchema||{}}:{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let S,j,A=a.schemaValidationErrors,C=a.schemaValidationErrorSchema;if(f&&!o){const F=this.liveValidate(w,v,a.errorSchema,O,void 0,a.customErrors,r,r!==void 0);S=F.errors,j=F.errorSchema,A=F.schemaValidationErrors,C=F.schemaValidationErrorSchema}else{const F=x();if(S=F.errors,j=F.errorSchema,s.length>0&&!f){const k=s.reduce((B,L)=>(B[L]=void 0,B),{});j=C=Ut(F.errorSchema,k,"preventDuplicates")}const $=this.mergeErrors({errorSchema:j,errors:S},e.extraErrors,a.customErrors);S=$.errors,j=$.errorSchema}const _=this.getRegistry(e,w,v),I=se(a.registry,_)?a.registry:_,T=a.fieldPathId&&a.fieldPathId?.[de]===I.globalFormOptions.idPrefix?a.fieldPathId:Be("",I.globalFormOptions);return{schemaUtils:v,schema:w,uiSchema:u,fieldPathId:T,formData:O,edit:h,errors:S,errorSchema:j,schemaValidationErrors:A,schemaValidationErrorSchema:C,retrievedSchema:g,initialDefaultsGenerated:!0,registry:I}}shouldComponentUpdate(e,n){const{experimental_componentUpdateStrategy:r="customDeep"}=this.props;return Ec(this,e,n,r)}validate(e,n=this.state.schema,r,i){const s=r||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:l}=this.props,c=i??s.retrieveSchema(n,e);return s.getValidator().validateFormData(e,c,o,a,l)}renderErrors(e){const{errors:n,errorSchema:r,schema:i,uiSchema:s}=this.state,o=U(s),a=q("ErrorListTemplate",e,o);return n&&n.length?m.jsx(a,{errors:n,errorSchema:r||{},schema:i,uiSchema:s,registry:e}):null}mergeErrors(e,n,r){let i=e.errorSchema,s=e.errors;if(n){const o=Rn(e,n);i=o.errorSchema,s=o.errors}if(r){const o=Rn({errors:s,errorSchema:i},r.ErrorSchema,!0);i=o.errorSchema,s=o.errors}return{errors:s,errorSchema:i}}liveValidate(e,n,r,i,s,o,a,l=!1){const c=this.validate(i,e,n,a),u=c.errors;let d=c.errorSchema;l&&(d=Ut(r,c.errorSchema,"preventDuplicates"));const h=u,y=d;return{...this.mergeErrors({errorSchema:d,errors:u},s,o),schemaValidationErrors:h,schemaValidationErrorSchema:y}}getUsedFormData=(e,n)=>O0(e,n);getFieldNames=(e,n)=>E0(e,n);omitExtraData=e=>{const{schema:n,schemaUtils:r}=this.state;return r.omitExtraData(n,e)};setFieldValue=(e,n)=>{const{registry:r}=this.state,i=Array.isArray(e)?e:e.split("."),s=Be("",r.globalFormOptions,i);this.onChange(n,i,void 0,s[de])};onChange=(e,n,r,i)=>{this.pendingChanges.push({newValue:e,path:n,newErrorSchema:r,id:i}),this.pendingChanges.length===1&&this.processPendingChange()};processPendingChange(){if(this.pendingChanges.length===0)return;this._isProcessingUserChange=!0;const{newValue:e,path:n,id:r}=this.pendingChanges[0],{newErrorSchema:i}=this.pendingChanges[0],{extraErrors:s,omitExtraData:o,liveOmit:a,noValidate:l,liveValidate:c,onChange:u,removeEmptyOptionalObjects:d}=this.props,{formData:h,schemaUtils:y,schema:f,fieldPathId:p,schemaValidationErrorSchema:b,errors:v}=this.state;let{customErrors:w,errorSchema:E}=this.state;const O=p.path[0]||"",g=!n||n.length===0||n.length===1&&n[0]===O;let x=this.state.retrievedSchema,S=g?e:Ps(h);const j=V(S)&&Object.keys(S).length>0&&Object.values(S).every(N=>N===void 0),A=h==null,C=j&&A?void 0:S;if(V(S)||Array.isArray(S)){e===Bc?fx(S,n):g||ce(S,n,e);const N=this.getStateFromProps(this.props,C,void 0,void 0,void 0,!0);S=N.formData,x=N.retrievedSchema}const _=!l&&(c===!0||c==="onChange");let I={formData:S,schema:f},T=S;if(o===!0&&(a===!0||a==="onChange")&&(T=this.omitExtraData(S),I={formData:T}),d&&(T=rn(y.getValidator(),f,y.getRootSchema(),T),I={...I,formData:T}),i){const N=g?b:D(b,n);if(!ge(N))g?E=i:ce(E,n,i);else if(w||(w=new xc),g){const F=D(i,Ae);F&&w.setErrors(F)}else ce(w.ErrorSchema,n,i)}else w&&D(w.ErrorSchema,[...n,Ae])&&w.clearErrors(n);if(_&&this.pendingChanges.length===1){const N=this.liveValidate(f,y,E,T,s,w,x);I={formData:T,...N,customErrors:w}}else if(!l&&i){const N=this.mergeErrors({errorSchema:E,errors:v},s,w);I={formData:T,...N,customErrors:w}}this.setState(I,()=>{u&&u(Yt({...this.state,...I}),r),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(e){return se(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{formData:e,initialFormData:n=Da,onChange:r}=this.props,o={formData:this.getStateFromProps(this.props,e??n,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(o,()=>r&&r(Yt({...this.state,...o})))};onBlur=(e,n)=>{const{onBlur:r,omitExtraData:i,liveOmit:s,liveValidate:o,removeEmptyOptionalObjects:a}=this.props;if(r&&r(e,n),i===!0&&s==="onBlur"||o==="onBlur"){const{onChange:l,extraErrors:c}=this.props,{formData:u,schemaUtils:d,schema:h}=this.state;let y=u,f={formData:y};if(i===!0&&s==="onBlur"&&(y=this.omitExtraData(u),f={formData:y}),a&&(y=rn(d.getValidator(),h,d.getRootSchema(),y),f={...f,formData:y}),o==="onBlur"){const{schema:b,schemaUtils:v,errorSchema:w,customErrors:E,retrievedSchema:O}=this.state,g=this.liveValidate(b,v,w,y,c,E,O);f={formData:y,...g,customErrors:E}}const p=Object.keys(f).filter(b=>!b.startsWith("schemaValidation")).some(b=>{const v=D(this.state,b),w=D(f,b);return!se(v,w)});this.setState(f,()=>{l&&p&&l(Yt({...this.state,...f}),e)})}};onFocus=(e,n)=>{const{onFocus:r}=this.props;r&&r(e,n)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:n,extraErrors:r,noValidate:i,onSubmit:s,removeEmptyOptionalObjects:o}=this.props;let{formData:a}=this.state;if(n===!0&&(a=this.omitExtraData(a)),o){const{schemaUtils:l,schema:c}=this.state;a=rn(l.getValidator(),c,l.getRootSchema(),a)}if(i||this.validateFormWithFormData(a)){const l=r||{},c=r?Ms(r):[];this.setState({formData:a,errors:c,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(Yt({...this.state,formData:a},"submitted"),e)})}};getGlobalFormOptions(e){const{uiSchema:n={},experimental_componentUpdateStrategy:r,idSeparator:i=Qa,idPrefix:s=Xa,nameGenerator:o,useFallbackUiForUnsupportedType:a=!1}=e;return{idPrefix:n["ui:rootFieldId"]||s,idSeparator:i,useFallbackUiForUnsupportedType:a,...r!==void 0&&{experimental_componentUpdateStrategy:r},...o!==void 0&&{nameGenerator:o}}}getRegistry(e,n,r){const{translateString:i,uiSchema:s={}}=e,{fields:o,templates:a,widgets:l,formContext:c,translateString:u}=mS();return{fields:{...o,...e.fields},templates:{...a,...e.templates,ButtonTemplates:{...a.ButtonTemplates,...e.templates?.ButtonTemplates}},widgets:{...l,...e.widgets},rootSchema:n,formContext:e.formContext||c,schemaUtils:r,translateString:i||u,globalUiOptions:s[Mi],globalFormOptions:this.getGlobalFormOptions(e),uiSchemaDefinitions:s[Lf]??{}}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:n="root",idSeparator:r="_"}=this.props,{property:i}=e,s=Ac(i);s[0]===""?s[0]=n:s.unshift(n);const o=s.join(r);let a=this.formElement.current.elements[o];a||(a=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),a&&a.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=e=>{const{extraErrors:n,extraErrorsBlockSubmit:r,focusOnFirstError:i,onError:s}=this.props,{errors:o}=this.state,a=this.validate(e),{errors:l,errorSchema:c}=n?this.mergeErrors(a,n):a,u=a.errors.length>0||n&&r;return u?(i&&(typeof i=="function"?i(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:c,schemaValidationErrors:a.errors,schemaValidationErrorSchema:a.errorSchema},()=>{s?s(l):console.error("Form validation failed",l)})):l.length>0?this.setState({errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!u};validateForm(){const{omitExtraData:e,removeEmptyOptionalObjects:n}=this.props;let{formData:r}=this.state;if(e===!0&&(r=this.omitExtraData(r)),n){const{schemaUtils:i,schema:s}=this.state;r=rn(i.getValidator(),s,i.getRootSchema(),r)}return this.validateFormWithFormData(r)}render(){const{children:e,id:n,className:r="",tagName:i,name:s,method:o,target:a,action:l,autoComplete:c,enctype:u,acceptCharset:d,noHtml5Validate:h=!1,disabled:y,readonly:f,showErrorList:p="top",_internalFormWrapper:b}=this.props,{schema:v,uiSchema:w,formData:E,errorSchema:O,fieldPathId:g,registry:x}=this.state,{SchemaField:S}=x.fields,{SubmitButton:j}=x.templates.ButtonTemplates,A=b?i:void 0,C=b||i||"form";let{[Ir]:_={}}=U(w);y&&(_={..._,props:{..._.props,disabled:!0}});const I={[vt]:{[Ir]:_}};return m.jsxs(C,{className:r||"rjsf",id:n,name:s,method:o,target:a,action:l,autoComplete:c,encType:u,acceptCharset:d,noValidate:h,onSubmit:this.onSubmit,as:A,ref:this.formElement,children:[p==="top"&&this.renderErrors(x),m.jsx(S,{name:"",schema:v,uiSchema:w,errorSchema:O,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:x,disabled:y,readonly:f}),e||m.jsx(j,{uiSchema:I,registry:x}),p==="bottom"&&this.renderErrors(x)]})}};function pS(t){return P.forwardRef(({fields:e,widgets:n,templates:r,...i},s)=>(e={...t?.fields,...e},n={...t?.widgets,...n},r={...t?.templates,...r,ButtonTemplates:{...t?.templates?.ButtonTemplates,...r?.ButtonTemplates}},m.jsx(hS,{...t,...i,fields:e,widgets:n,templates:r,ref:s})))}function gS(t,e="none"){return e==="all"?t:t.reduce((n,r)=>{const{message:i,schemaPath:s}=r,o=e!=="anyOf"?s?.indexOf(`/${ee}/`):void 0,a=e!=="oneOf"?s?.indexOf(`/${W}/`):void 0;let l;return o&&o>=0?l=s?.substring(0,o):a&&a>=0&&(l=s?.substring(0,a)),l&&n.find(u=>{var d;return u.message===i&&((d=u.schemaPath)===null||d===void 0?void 0:d.startsWith(l))})||n.push(r),n},[])}function yS(t=[],e,n){const r=t.map(i=>{var s;const{instancePath:o,keyword:a,params:l,schemaPath:c,parentSchema:u,...d}=i;let{message:h=""}=d,y=o.replace(/\//g,"."),f=`${y} ${h}`.trim(),p="";const b=[...((s=l.deps)===null||s===void 0?void 0:s.split(", "))||[],l.missingProperty,l.property].filter(v=>v);if(b.length>0)b.forEach(v=>{const w=y?`${y}.${v}`:v;let E=U(D(e,w.replace(/^\./,""))).title;if(E===void 0){const O=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([v]);E=U(D(e,O)).title}if(E)h=h.replace(`'${v}'`,`'${E}'`),p=E;else{const O=D(u,[oe,v,"title"]);O&&(h=h.replace(`'${v}'`,`'${O}'`),p=O)}}),f=h;else{const v=U(D(e,y.replace(/^\./,""))).title;if(v)f=`'${v}' ${h}`.trim(),p=v;else{const w=u?.title;w&&(f=`'${w}' ${h}`.trim(),p=w)}}return"missingProperty"in l&&(y=y?`${y}.${l.missingProperty}`:l.missingProperty),{name:a,property:y,message:h,params:l,stack:f,schemaPath:c,title:p}});return gS(r,n)}function bS(t,e,n,r,i,s,o,a){const{validationError:l}=e;let c=yS(e.errors,o,a);l&&(c=[...c,{stack:l.message}]),typeof s=="function"&&(c=s(c,o));let u=ex(c);if(l&&(u={...u,$schema:{__errors:[l.message]}}),typeof i!="function")return{errors:c,errorSchema:u};const d=uc(t,r,n,r,!0),h=i(d,Ui(d),o,u),y=Cc(h);return Rn({errors:c,errorSchema:u},y)}var pr={exports:{}},Ai={},Ra;function xS(){return Ra||(Ra=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(A,C){return{validate:A,compare:C}}t.fullFormats={date:e(s,o),time:e(l,c),"date-time":e(d,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:p,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:j,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:O},int64:{type:"number",validate:g},float:{type:"number",validate:x},double:{type:"number",validate:x},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function n(A){return A%4===0&&(A%100!==0||A%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(A){const C=r.exec(A);if(!C)return!1;const _=+C[1],I=+C[2],T=+C[3];return I>=1&&I<=12&&T>=1&&T<=(I===2&&n(_)?29:i[I])}function o(A,C){if(A&&C)return A>C?1:A<C?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(A,C){const _=a.exec(A);if(!_)return!1;const I=+_[1],T=+_[2],N=+_[3],F=_[5];return(I<=23&&T<=59&&N<=59||I===23&&T===59&&N===60)&&(!C||F!=="")}function c(A,C){if(!(A&&C))return;const _=a.exec(A),I=a.exec(C);if(_&&I)return A=_[1]+_[2]+_[3]+(_[4]||""),C=I[1]+I[2]+I[3]+(I[4]||""),A>C?1:A<C?-1:0}const u=/t|\s/i;function d(A){const C=A.split(u);return C.length===2&&s(C[0])&&l(C[1],!0)}function h(A,C){if(!(A&&C))return;const[_,I]=A.split(u),[T,N]=C.split(u),F=o(_,T);if(F!==void 0)return F||c(I,N)}const y=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function p(A){return y.test(A)&&f.test(A)}const b=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(A){return b.lastIndex=0,b.test(A)}const w=-2147483648,E=2**31-1;function O(A){return Number.isInteger(A)&&A<=E&&A>=w}function g(A){return Number.isInteger(A)}function x(){return!0}const S=/[^\\]\\Z/;function j(A){if(S.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Ai)),Ai}var Ci={},ka;function vS(){return ka||(ka=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=pu(),n=Wa(),r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:a,schemaCode:l})=>n.str`should be ${i[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>n._`{comparison: ${i[a].okStr}, limit: ${l}}`};t.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:l,data:c,schemaCode:u,keyword:d,it:h}=a,{opts:y,self:f}=h;if(!y.validateFormats)return;const p=new e.KeywordCxt(h,f.RULES.all.format.definition,"format");p.$data?b():v();function b(){const E=l.scopeValue("formats",{ref:f.formats,code:y.code.formats}),O=l.const("fmt",n._`${E}[${p.schemaCode}]`);a.fail$data(n.or(n._`typeof ${O} != "object"`,n._`${O} instanceof RegExp`,n._`typeof ${O}.compare != "function"`,w(O)))}function v(){const E=p.schema,O=f.formats[E];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${d}": format "${E}" does not define "compare" function`);const g=l.scopeValue("formats",{key:E,ref:O,code:y.code.formats?n._`${y.code.formats}${n.getProperty(E)}`:void 0});a.fail$data(w(g))}function w(E){return n._`${E}.compare(${c}, ${u}) ${i[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(t.formatLimitDefinition),a);t.default=o})(Ci)),Ci}var Ma;function SS(){return Ma||(Ma=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const n=xS(),r=vS(),i=Wa(),s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),a=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,s),c;const[d,h]=u.mode==="fast"?[n.fastFormats,o]:[n.fullFormats,s],y=u.formats||n.formatNames;return l(c,y,d,h),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!h)throw new Error(`Unknown format "${c}"`);return h};function l(c,u,d,h){var y,f;(y=(f=c.opts.code).formats)!==null&&y!==void 0||(f.formats=i._`require("ajv-formats/dist/formats").${h}`);for(const p of u)c.addFormat(p,d[p])}t.exports=e=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a})(pr,pr.exports)),pr.exports}var wS=SS();const Ua=ns(wS),jS={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},OS=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,ES=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function AS(t,e,n={},r,i=Ga,s){let o=new i({...jS,...n});return r?Ua(o,r):r!==!1&&Ua(o),o.addFormat("data-url",ES),o.addFormat("color",OS),o.addKeyword(ot),o.addKeyword(cs),Array.isArray(t)&&o.addMetaSchema(t),ne(e)&&Object.keys(e).forEach(a=>{o.addFormat(a,e[a])}),s&&(o=s(o)),o}class CS{constructor(e,n){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:r,customFormats:i,ajvOptionsOverrides:s,ajvFormatOptions:o,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:c}=e;this.ajv=AS(r,i,s,o,a,l),this.localizer=n,this.suppressDuplicateFiltering=c}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(e,n){var r,i;let s,o;try{e[de]&&(o=this.ajv.getSchema(e[de])),o===void 0&&(o=this.ajv.compile(e)),o(n)}catch(l){s=l}let a;return o&&(typeof this.localizer=="function"&&(((r=o.errors)!==null&&r!==void 0?r:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var d;!((d=l.params)===null||d===void 0)&&d[u]&&(l.params[u]=`'${l.params[u]}'`)}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(o.errors),((i=o.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var d;!((d=l.params)===null||d===void 0)&&d[u]&&(l.params[u]=l.params[u].slice(1,-1))}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),a=o.errors||void 0,o.errors=null),{errors:a,validationError:s}}validateFormData(e,n,r,i,s){const o=this.rawValidation(n,e);return bS(this,o,e,n,r,i,s,this.suppressDuplicateFiltering)}handleSchemaUpdate(e){var n,r;if(this.lastSeenRootSchema===e&&this.hasRegisteredRootSchema)return;const i=(n=e[de])!==null&&n!==void 0?n:el;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(e,i):se(e,(r=this.ajv.getSchema(i))===null||r===void 0?void 0:r.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(e,i)),this.lastSeenRootSchema=e,this.hasRegisteredRootSchema=!0}isValid(e,n,r){var i;try{this.handleSchemaUpdate(r);const s=Us(e),o=(i=s[de])!==null&&i!==void 0?i:G0(s);let a;return a=this.ajv.getSchema(o),a===void 0&&(a=this.ajv.addSchema(s,o).getSchema(o)||this.ajv.compile(s)),a(n)}catch(s){return console.warn("Error encountered compiling schema:",s),!1}}}function _S(t={},e){return new CS(t,e)}const IS=_S();const Hc=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();const TS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const NS=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase());const La=t=>{const e=NS(t);return e.charAt(0).toUpperCase()+e.slice(1)};var _i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const FS=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},PS=P.createContext({}),$S=()=>P.useContext(PS),DS=P.forwardRef(({color:t,size:e,strokeWidth:n,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>{const{size:c=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:h="currentColor",className:y=""}=$S()??{},f=r??d?Number(n??u)*24/Number(e??c):n??u;return P.createElement("svg",{ref:l,..._i,width:e??c??_i.width,height:e??c??_i.height,stroke:t??h,strokeWidth:f,className:Hc("lucide",y,i),...!s&&!FS(a)&&{"aria-hidden":"true"},...a},[...o.map(([p,b])=>P.createElement(p,b)),...Array.isArray(s)?s:[s]])});const rt=(t,e)=>{const n=P.forwardRef(({className:r,...i},s)=>P.createElement(DS,{ref:s,iconNode:e,className:Hc(`lucide-${TS(La(t))}`,`lucide-${t}`,r),...i}));return n.displayName=La(t),n};const RS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kS=rt("check",RS);const MS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kc=rt("chevron-down",MS);const US=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],LS=rt("chevron-up",US);const BS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],qS=rt("circle-alert",BS);const VS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Gc=rt("circle-plus",VS);const zS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],WS=rt("circle",zS);const HS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],KS=rt("copy",HS);const GS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],YS=rt("search",GS);const JS=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],ZS=rt("trash-2",JS);const XS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yc=rt("x",XS);function J(...t){return gu(yu(t))}const QS=rs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",xs:"h-6 rounded-md gap-1 px-2 has-[>svg]:px-2",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Hs({className:t,variant:e,size:n,asChild:r=!1,...i}){const s=r?Ha:"button";return m.jsx(s,{"data-slot":"button",className:J(QS({variant:e,size:n,className:t})),...i})}function ew({uiSchema:t,registry:e,className:n,...r}){const{translateString:i}=e;return m.jsx("div",{className:"p-0 m-0",children:m.jsxs(Hs,{...r,className:J("w-fit gap-2",n),variant:"outline",type:"button",children:[m.jsx(Gc,{size:16})," ",i(G.AddItemButton)]})})}function tw(t){const{children:e,buttonsProps:n,displayLabel:r,hasDescription:i,hasToolbar:s,uiSchema:o,registry:a}=t,l=U(o),c=q("ArrayFieldItemButtonsTemplate",a,l),u=i?-6:22;return m.jsx("div",{children:m.jsxs("div",{className:"mb-2 flex flex-row flex-wrap items-center",children:[m.jsx("div",{className:"grow shrink",children:e}),m.jsx("div",{className:"flex items-end justify-end p-0.5",children:s&&m.jsx("div",{className:"flex gap-2",style:{marginLeft:"5px",marginTop:r?`${u}px`:void 0},children:m.jsx(c,{...n})})})]})})}function nw(t){const{canAdd:e,disabled:n,fieldPathId:r,uiSchema:i,items:s,optionalDataControl:o,onAddClick:a,readonly:l,registry:c,required:u,schema:d,title:h}=t,y=U(i),f=q("ArrayFieldDescriptionTemplate",c,y),p=q("ArrayFieldTitleTemplate",c,y),b=!l&&!n,{ButtonTemplates:{AddButton:v}}=c.templates;return m.jsx("div",{children:m.jsx("div",{className:"m-0 flex p-0",children:m.jsxs("div",{className:"m-0 w-full p-0",children:[m.jsx(p,{fieldPathId:r,title:y.title||h,schema:d,uiSchema:i,required:u,registry:c,optionalDataControl:b?o:void 0}),m.jsx(f,{fieldPathId:r,description:y.description||d.description,schema:d,uiSchema:i,registry:c}),m.jsxs("div",{className:"p-0 m-0 w-full mb-2",children:[b?void 0:o,s,e&&m.jsx("div",{className:"mt-2 flex justify-end",children:m.jsx(v,{id:Qe(r,"add"),className:"rjsf-array-item-add",onClick:a,disabled:n||l,uiSchema:i,registry:c})})]},`array-item-list-${r.$id}`)]})})})}function Jc({className:t,type:e,...n}){return m.jsx("input",{type:e,"data-slot":"input",className:J("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...n})}function rw({id:t,htmlName:e,placeholder:n,required:r,readonly:i,disabled:s,type:o,value:a,onChange:l,onChangeOverride:c,onBlur:u,onFocus:d,autofocus:h,options:y,schema:f,rawErrors:p=[],children:b,extraProps:v,className:w,registry:E}){const{ClearButton:O}=E.templates.ButtonTemplates,g={...v,...Sc(f,o,y)},x=({target:{value:C}})=>l(C===""?y.emptyValue:C),S=({target:C})=>u(t,C&&C.value),j=({target:C})=>d(t,C&&C.value),A=P.useCallback(C=>{var _;C.preventDefault(),C.stopPropagation(),l((_=y.emptyValue)!==null&&_!==void 0?_:"")},[l,y.emptyValue]);return m.jsxs("div",{className:"p-0.5",children:[m.jsx(Jc,{id:t,name:e||t,type:o,placeholder:n,autoFocus:h,required:r,disabled:s,readOnly:i,className:J({"border-destructive focus-visible:ring-0":p.length>0},w),list:f.examples?Yr(t):void 0,...g,value:a||a===0?a:"",onChange:c||x,onBlur:S,onFocus:j,"aria-describedby":Pe(t,!!f.examples)}),y.allowClearTextInputs&&!i&&!s&&a&&m.jsx(O,{onClick:A,registry:E}),b,m.jsx(qc,{id:t,schema:f})]})}function iw({id:t,description:e,registry:n,uiSchema:r}){return e?m.jsx("div",{children:m.jsx("div",{id:t,className:"text-sm text-muted-foreground",children:m.jsx(zs,{description:e,registry:n,uiSchema:r})})}):null}const sw=rs("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function ow({className:t,variant:e,...n}){return m.jsx("div",{"data-slot":"alert",role:"alert",className:J(sw({variant:e}),t),...n})}function aw({className:t,...e}){return m.jsx("div",{"data-slot":"alert-title",className:J("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...e})}function lw({className:t,...e}){return m.jsx("div",{"data-slot":"alert-description",className:J("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...e})}function cw({errors:t,registry:e}){const{translateString:n}=e;return m.jsxs(ow,{variant:"destructive",className:"mb-2",children:[m.jsx(qS,{className:"h-4 w-4"}),m.jsx(aw,{children:n(G.ErrorsLabel)}),m.jsx(lw,{className:"flex flex-col gap-1",children:t.map((r,i)=>m.jsxs("span",{children:["• ",r.stack]},i))})]})}function uw(t){const{errors:e=[],fieldPathId:n}=t;if(e.length===0)return null;const r=Ds(n);return m.jsx("div",{className:"flex flex-col gap-1",id:r,children:e.map((i,s)=>m.jsx("span",{className:"text-xs font-medium text-destructive mb-1",children:i},s))})}function dw(t){const{fieldPathId:e,help:n,uiSchema:r,registry:i,hasErrors:s}=t;return n?m.jsx("span",{className:J("text-xs font-medium text-muted-foreground",{"text-destructive":s}),id:Rs(e),children:m.jsx(Ws,{help:n,registry:i,uiSchema:r})}):null}function fw({id:t,children:e,displayLabel:n,rawErrors:r=[],errors:i,help:s,description:o,rawDescription:a,classNames:l,style:c,disabled:u,label:d,hidden:h,onKeyRename:y,onKeyRenameBlur:f,onRemoveProperty:p,readonly:b,required:v,schema:w,uiSchema:E,registry:O}){const g=U(E),x=q("WrapIfAdditionalTemplate",O,g);if(h)return m.jsx("div",{className:"hidden",children:e});const S=g.widget==="checkbox";return m.jsx(x,{classNames:l,style:c,disabled:u,id:t,label:d,displayLabel:n,onKeyRename:y,onKeyRenameBlur:f,onRemoveProperty:p,rawDescription:a,readonly:b,required:v,schema:w,uiSchema:E,registry:O,children:m.jsxs("div",{className:"flex flex-col gap-2",children:[n&&!S&&m.jsxs("label",{className:J("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{" text-destructive":r.length>0}),htmlFor:t,children:[d,v?"*":null]}),e,n&&a&&!S&&m.jsx("span",{className:J("text-xs font-medium text-muted-foreground",{" text-destructive":r.length>0}),children:o}),i,s]})})}function mw(t){const{children:e,column:n,className:r,...i}=t;return m.jsx("div",{className:J("grid gap-2",r),...i,children:e})}function hw(t){const{icon:e,iconType:n,className:r,uiSchema:i,registry:s,...o}=t;return m.jsx(Hs,{size:"icon",variant:"outline",className:r,...o,type:"button",children:e})}const Sn=P.memo(hw);function pw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.CopyButton),...t,icon:m.jsx(KS,{className:"h-4 w-4"})})}const gw=P.memo(pw);function yw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.MoveDownButton),...t,icon:m.jsx(Kc,{className:"h-4 w-4"})})}const bw=P.memo(yw);function xw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.MoveUpButton),...t,icon:m.jsx(LS,{className:"h-4 w-4"})})}const vw=P.memo(xw);function Sw(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.RemoveButton),...t,className:"border-destructive",icon:m.jsx(ZS,{className:"h-4 w-4 stroke-destructive"})})}const Zc=P.memo(Sw);function ww(t){const{registry:{translateString:e}}=t;return m.jsx(Sn,{title:e(G.ClearButton),...t,icon:m.jsx(Yc,{})})}const jw=P.memo(ww);function Ow({selector:t,optionSchemaField:e}){return m.jsxs("div",{className:J("p-4 border rounded-md bg-background shadow-sm"),children:[m.jsx("div",{className:J("mb-4"),children:t}),e]})}function Ew({description:t,title:e,properties:n,required:r,uiSchema:i,fieldPathId:s,schema:o,formData:a,optionalDataControl:l,onAddProperty:c,disabled:u,readonly:d,registry:h}){const y=U(i),f=q("TitleFieldTemplate",h,y),p=q("DescriptionFieldTemplate",h,y),b=!d&&!u,{ButtonTemplates:{AddButton:v}}=h.templates;return m.jsxs(m.Fragment,{children:[e&&m.jsx(f,{id:Jr(s),title:e,required:r,schema:o,uiSchema:i,registry:h,optionalDataControl:b?l:void 0}),t&&m.jsx(p,{id:Kt(s),description:t,schema:o,uiSchema:i,registry:h}),m.jsxs("div",{className:"flex flex-col gap-2",children:[b?void 0:l,n.map(w=>m.jsx("div",{className:`${w.hidden?"hidden":""} flex`,children:m.jsx("div",{className:"w-full",children:w.content})},w.name)),tl(o,i,a)?m.jsx("div",{className:"mt-2 flex justify-end",children:m.jsx(v,{id:Qe(s,"add"),onClick:c,disabled:u||d,className:"rjsf-object-property-expand",uiSchema:i,registry:h})}):null]})]})}function Aw(t){const{id:e,registry:n,label:r,onAddClick:i,onRemoveClick:s}=t;return i?m.jsx(Sn,{id:e,registry:n,className:"rjsf-add-optional-data",onClick:i,title:r,icon:m.jsx(Gc,{}),size:"xs"}):s?m.jsx(Zc,{id:e,registry:n,className:"rjsf-remove-optional-data",onClick:s,title:r,size:"xs"}):m.jsx("em",{id:e,children:r})}function Cw(t){const{submitText:e,norender:n,props:r}=wc(t.uiSchema);return n?null:m.jsx("div",{children:m.jsx(Hs,{type:"submit",...r,className:J("my-2",r?.className),children:e})})}function Xc({className:t,orientation:e="horizontal",decorative:n=!0,...r}){return m.jsx(bu,{"data-slot":"separator",decorative:n,orientation:e,className:J("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...r})}function _w({id:t,title:e,uiSchema:n,optionalDataControl:r}){const i=U(n);let s=m.jsx("h5",{children:i.title||e});return r&&(s=m.jsxs("div",{className:"flex flex-row",children:[m.jsx("div",{className:"flex-grow",children:s}),m.jsx("div",{className:"flex",children:r})]})),m.jsxs("div",{id:t,className:"my-1 flex flex-col gap-0.5",children:[s,m.jsx(Xc,{dir:"horizontal",style:{height:"1px"},className:"my-1"})]})}function Iw({classNames:t,style:e,children:n,disabled:r,id:i,label:s,displayLabel:o,onRemoveProperty:a,onKeyRenameBlur:l,rawDescription:c,readonly:u,required:d,schema:h,uiSchema:y,registry:f}){const{templates:p,translateString:b}=f,{RemoveButton:v}=p.ButtonTemplates,w=b(G.KeyLabel,[s]);if(!(ot in h))return m.jsx("div",{className:t,style:e,children:n});const g=o?22+(c?-28:0):0,x=`${i}-key`;return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:`grid grid-cols-12 col-span-12 items-center gap-2 ${t}`,style:e,children:[m.jsx("div",{className:"grid gap-2 col-span-5",children:m.jsxs("div",{className:"flex flex-col gap-2",children:[o&&m.jsx("label",{htmlFor:x,className:"text-sm font-medium text-muted-foreground leading-none",children:w}),m.jsx("div",{className:"pl-0.5",children:m.jsx(Jc,{required:d,defaultValue:s,disabled:r||u,id:x,name:x,onBlur:u?void 0:l,type:"text",className:"w-full border shadow-sm"},s)}),!!c&&m.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m.jsx("div",{className:"text-sm text-muted-foreground",children:" "})})]})}),m.jsx("div",{className:"grid gap-2 col-span-6 pr-0.5",children:n}),m.jsx("div",{className:"grid gap-2 col-span-1",style:{marginTop:`${g}px`},children:m.jsx(v,{id:Qe(i,"remove"),iconType:"block",className:"rjsf-object-property-remove w-full",disabled:r||u,onClick:a,uiSchema:y,registry:f})})]}),m.jsx(Xc,{dir:"horizontal",className:"mt-2"})]})}function Tw(){return{ArrayFieldItemTemplate:tw,ArrayFieldTemplate:nw,BaseInputTemplate:rw,ButtonTemplates:{AddButton:ew,CopyButton:gw,MoveDownButton:bw,MoveUpButton:vw,RemoveButton:Zc,SubmitButton:Cw,ClearButton:jw},DescriptionFieldTemplate:iw,ErrorListTemplate:cw,FieldErrorTemplate:uw,FieldHelpTemplate:dw,FieldTemplate:fw,GridTemplate:mw,MultiSchemaFieldTemplate:Ow,ObjectFieldTemplate:Ew,OptionalDataControlsTemplate:Aw,TitleFieldTemplate:_w,WrapIfAdditionalTemplate:Iw}}function Nw(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Fw=["color"],Pw=P.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=Nw(t,Fw);return P.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:e}),P.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Qc({className:t,...e}){return m.jsx(xu,{"data-slot":"checkbox",className:J("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:m.jsx(vu,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:m.jsx(Pw,{className:"size-3.5"})})})}function Ks({className:t,...e}){return m.jsx(Su,{"data-slot":"label",className:J("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...e})}function $w({id:t,htmlName:e,disabled:n,options:r,value:i,autofocus:s,readonly:o,required:a,onChange:l,onBlur:c,onFocus:u,className:d}){const{enumOptions:h,enumDisabled:y,inline:f,emptyValue:p}=r,b=xn(r),v=Array.isArray(i)?i:[i],w=({target:O})=>c(t,Te(O&&O.value,h,b,p)),E=({target:O})=>u(t,Te(O&&O.value,h,b,p));return m.jsx("div",{className:J({"flex flex-col gap-2":!f,"flex flex-row gap-4 flex-wrap":f}),children:Array.isArray(h)&&h.map((O,g)=>{const x=ar(O.value,v),S=Array.isArray(y)&&y.includes(O.value),j=$t(t,g);return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Qc,{id:j,name:e||t,required:a,disabled:n||S||o,onCheckedChange:A=>{l(A?bc(g,v,h):gc(g,v,h))},className:d,checked:x,autoFocus:s&&g===0,onBlur:w,onFocus:E,"aria-describedby":Pe(t)}),m.jsx(Ks,{className:"leading-tight",htmlFor:$t(t,g),children:O.label})]},j)})})}function Dw(t){const{id:e,htmlName:n,value:r,disabled:i,readonly:s,label:o,hideLabel:a,schema:l,autofocus:c,options:u,onChange:d,onBlur:h,onFocus:y,registry:f,uiSchema:p,className:b}=t,v=Vn(l),w=q("DescriptionFieldTemplate",f,u),E=S=>d(S),O=()=>h(e,r),g=()=>y(e,r),x=u.description||l.description;return m.jsxs("div",{className:`relative ${i||s?"cursor-not-allowed opacity-50":""}`,"aria-describedby":Pe(e),children:[!a&&x&&m.jsx(w,{id:Kt(e),description:x,schema:l,uiSchema:p,registry:f}),m.jsxs("div",{className:"flex items-center gap-2 my-2",children:[m.jsx(Qc,{id:e,name:n||e,checked:typeof r>"u"?!1:!!r,required:v,disabled:i||s,autoFocus:c,onCheckedChange:E,onBlur:O,onFocus:g,className:b}),m.jsx(Ks,{className:"leading-tight",htmlFor:e,children:Oc(o,a||!o)})]})]})}function Rw({className:t,...e}){return m.jsx(td,{"data-slot":"radio-group",className:J("grid gap-3",t),...e})}function kw({className:t,...e}){return m.jsx(nd,{"data-slot":"radio-group-item",className:J("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:m.jsx(rd,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:m.jsx(WS,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function Mw({id:t,options:e,value:n,required:r,disabled:i,readonly:s,onChange:o,onBlur:a,onFocus:l,className:c}){const{enumOptions:u,enumDisabled:d,emptyValue:h}=e,y=xn(e),f=w=>o(Te(w,u,y,h)),p=({target:w})=>a(t,Te(w&&w.value,u,y,h)),b=({target:w})=>l(t,Te(w&&w.value,u,y,h)),v=!!(e&&e.inline);return m.jsx("div",{className:"mb-0",children:m.jsx(Rw,{defaultValue:n?.toString(),required:r,disabled:i||s,onValueChange:w=>{f(w)},onBlur:p,onFocus:b,"aria-describedby":Pe(t),orientation:v?"horizontal":"vertical",className:J("flex flex-wrap",{"flex-col":!v},c),children:Array.isArray(u)&&u.map((w,E)=>{const O=Array.isArray(d)&&d.includes(w.value),g=ar(w.value,n);return m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(kw,{checked:g,value:lr(w.value,E,y),id:$t(t,E),disabled:O}),m.jsx(Ks,{className:"leading-tight",htmlFor:$t(t,E),children:w.label})]},$t(t,E))})})})}function Uw({className:t,defaultValue:e,value:n,min:r=0,max:i=100,...s}){const o=P.useMemo(()=>Array.isArray(n)?n:Array.isArray(e)?e:[r,i],[n,e,r,i]);return m.jsxs(id,{"data-slot":"slider",defaultValue:e,value:n,min:r,max:i,className:J("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",t),...s,children:[m.jsx(sd,{"data-slot":"slider-track",className:J("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:m.jsx(od,{"data-slot":"slider-range",className:J("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:o.length},(a,l)=>m.jsx(ad,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},l))]})}const Lw=["name","min","max","step","orientation","disabled","defaultValue","value","onValueChange","className","dir","inverted","minStepsBetweenThumbs"];function Bw({value:t,readonly:e,disabled:n,options:r,schema:i,onChange:s,label:o,id:a}){const l=d=>s(d[0]),c={...vc(i)},u={id:a,...Fs(r.props||{},Lw)};return m.jsxs(m.Fragment,{children:[m.jsx(Uw,{disabled:n||e,min:c.min,max:c.max,step:c.step,value:[t],onValueChange:l,...u,"aria-describedby":Pe(a)}),t]})}const qw=rs("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Vw({className:t,variant:e,asChild:n=!1,...r}){const i=n?Ha:"span";return m.jsx(i,{"data-slot":"badge",className:J(qw({variant:e}),t),...r})}const eu=P.forwardRef(({className:t,...e},n)=>m.jsx(Bt,{ref:n,"data-slot":"command",className:J("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...e})),zw=P.forwardRef(({className:t,...e},n)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx(YS,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(Bt.Input,{ref:n,className:J("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...e})]}));zw.displayName=Bt.Input.displayName;function tu({className:t,...e}){return m.jsx(Bt.List,{"data-slot":"command-list",className:J("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...e})}function nu({className:t,...e}){return m.jsx(Bt.Group,{"data-slot":"command-group",className:J("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...e})}function ru({className:t,...e}){return m.jsx(Bt.Item,{"data-slot":"command-item",className:J("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...e})}function Ww({multiple:t,items:e=[],selected:n,onValueChange:r,autoFocus:i=!1,disabled:s=!1,ariaDescribedby:o,ariaPlaceholder:a,onFocus:l,onBlur:c,className:u,id:d}){const h=P.useRef(null),[y,f]=P.useState(!1),[p,b]=P.useState(""),v=P.useMemo(()=>e.filter(S=>n.some(j=>Or(S.value,j))),[e,n]),w=P.useMemo(()=>e.filter(S=>!v.some(j=>Or(j.value,S.value))),[e,v]),E=P.useCallback(S=>{if(s)return;const j=v.filter(A=>!Or(A.value,S.value));r?.(j.map(A=>A.index))},[v,r,s]),O=P.useCallback(S=>{if(!(s||!h.current||h.current.value!==""))if(S.key==="Delete"||S.key==="Backspace"){const j=v.slice(0,-1);r?.(j.map(A=>A.index))}else S.key==="Escape"&&h.current.blur()},[v,r,s]),g=P.useCallback(S=>{if(s)return;b("");const j=t?[...v,S]:[S];r?.(j.map(A=>A.index))},[t,v,r,s]),x=P.useCallback(S=>{s||f(!0),l?.(S)},[s,l]);return m.jsxs(eu,{onKeyDown:O,className:J("overflow-visible bg-transparent",u),autoFocus:i,"aria-disabled":s,onBlur:c,onFocus:x,"aria-describedby":o,"aria-placeholder":a,children:[m.jsx("div",{className:J("group border border-input px-3 py-2 text-sm ring-offset-background rounded-md focus-within:ring-1 focus-within:ring-ring focus-within:ring-offset-1",s&&"opacity-50 cursor-not-allowed"),children:m.jsxs("div",{className:"flex gap-1 flex-wrap",children:[v.map(S=>m.jsxs(Vw,{variant:"secondary",children:[S.label,m.jsx("button",{type:"button",className:"rtl:mr-1 ltr:ml-1 ring-offset-background rounded-full outline-none focus:ring-1 focus:ring-ring focus:ring-offset-1",onKeyDown:j=>j.key==="Enter"&&!s&&E(S),onMouseDown:j=>{j.preventDefault(),j.stopPropagation()},onClick:()=>E(S),disabled:s,children:m.jsx(Yc,{className:J("h-3 w-3 text-muted-foreground hover:text-foreground",s&&"pointer-events-none")})})]},S.value)),m.jsx(Bt.Input,{ref:h,value:p,onValueChange:b,onBlur:()=>f(!1),onFocus:()=>!s&&f(!0),placeholder:"Select ...",className:"rtl:mr-2 ltr:ml-2 bg-transparent outline-none placeholder:text-muted-foreground flex-1",disabled:s,"aria-controls":`command-item-input-${d}`,"aria-labelledby":`command-item-input-${d}`,id:`command-item-input-${d}`})]})}),y&&!s&&w.length>0&&m.jsx("div",{className:"relative mt-2",children:m.jsx("div",{className:"absolute w-full z-10 top-0 rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",children:m.jsx(nu,{className:"h-full overflow-auto",children:m.jsx(tu,{children:w.map(S=>m.jsx(ru,{disabled:S.disabled,onMouseDown:j=>{j.preventDefault(),j.stopPropagation()},"aria-controls":`${S.value}-command-item`,"aria-labelledby":`${S.value}-command-item`,id:`${S.value}-command-item`,onSelect:()=>g(S),className:"cursor-pointer",children:S.label},`${S.value}-command-item`))})})})})]})}function Hw({items:t,selected:e,onValueChange:n,autoFocus:r=!1,disabled:i=!1,required:s=!1,placeholder:o="Select...",ariaDescribedby:a,ariaPlaceholder:l,onFocus:c,onBlur:u,className:d}){const[h,y]=P.useState(!1),f=t?.find(w=>w.value===e),p=P.useRef(null),b=P.useRef(null);P.useEffect(()=>{h&&p.current&&requestAnimationFrame(()=>{var w;(w=p.current)===null||w===void 0||w.scrollIntoView({block:"nearest"})})},[h]);const v=w=>{b.current&&!b.current.contains(w.relatedTarget)&&y(!1),u?.(w)};return m.jsxs(eu,{ref:b,className:J("overflow-visible bg-transparent",d),autoFocus:r,"aria-disabled":i,onBlur:v,onFocus:c,"aria-describedby":a,"aria-placeholder":l,children:[m.jsxs("div",{role:"button",tabIndex:i?-1:0,onClick:()=>!i&&y(!h),onKeyDown:w=>(w.key==="Enter"||w.key===" ")&&!i&&y(!h),className:J("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",!f&&s&&"border-red-500",i&&"opacity-50 cursor-not-allowed",d),children:[m.jsx("span",{className:J("flex-1 line-clamp-1",!f&&"text-muted-foreground"),children:f?.label||o}),m.jsx(Kc,{className:"h-4 w-4 opacity-50"})]}),m.jsx("div",{className:"relative",children:h&&t&&t.length>0?m.jsx("div",{style:{top:"0.5rem"},className:"absolute w-full z-10 rounded-md border bg-popover text-popover-foreground shadow-md outline-none",children:m.jsx(nu,{className:"h-full overflow-auto",children:m.jsx(tu,{children:t.map(w=>m.jsxs(ru,{ref:w.value===e?p:void 0,onMouseDown:E=>{E.preventDefault(),E.stopPropagation()},onSelect:()=>{w.disabled||(n?.(w.value),y(!1))},className:J("cursor-pointer relative flex items-center justify-between rounded-sm py-1.5 gap-2 rtl:flex-row-reverse",w.value===e&&"font-semibold",w.disabled&&"opacity-50 cursor-not-allowed"),children:[m.jsx("span",{children:w.label}),m.jsx("span",{className:"flex h-3.5 w-3.5 items-center justify-center",children:w.value===e&&m.jsx(kS,{className:"h-4 w-4"})})]},w.value))})})}):null})]})}function Kw({id:t,options:e,required:n,disabled:r,readonly:i,value:s,multiple:o,autofocus:a,onChange:l,onBlur:c,onFocus:u,placeholder:d,rawErrors:h=[],className:y}){const{enumOptions:f,enumDisabled:p,emptyValue:b}=e,v=xn(e),w=()=>{u(t,Te(s,f,v,b))},E=()=>{c(t,Te(s,f,v,b))},O=f?.map(({value:x,label:S},j)=>({value:o?x:lr(x,j,v),label:S,index:j,disabled:Array.isArray(p)&&p.includes(x)})),g=J({"border-destructive":h.length>0},y);return m.jsx("div",{className:"p-0.5",children:o?m.jsx(Ww,{id:t,autoFocus:a,disabled:r||i,multiple:!0,className:g,items:O,selected:s,onValueChange:x=>{l(Te(x.map(String),f,v,b))},onFocus:w,onBlur:E}):m.jsx(Hw,{items:O,selected:yc(s,f,!1,v,""),onValueChange:x=>{l(Te(x,f,v,b))},autoFocus:a,disabled:r||i,required:n,placeholder:d,className:g,onFocus:w,onBlur:E,ariaDescribedby:Pe(t)})})}function Gw({className:t,...e}){return m.jsx("textarea",{"data-slot":"textarea",className:J("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...e})}function Yw({id:t,htmlName:e,placeholder:n,value:r,required:i,disabled:s,autofocus:o,readonly:a,onBlur:l,onFocus:c,onChange:u,options:d,className:h}){const y=({target:{value:b}})=>u(b===""?d.emptyValue:b),f=({target:b})=>l(t,b&&b.value),p=({target:b})=>c(t,b&&b.value);return m.jsx("div",{className:"flex p-0.5",children:m.jsx(Gw,{id:t,name:e||t,placeholder:n,disabled:s,readOnly:a,value:r??"",required:i,autoFocus:o,rows:d.rows||5,onChange:y,onBlur:f,onFocus:p,"aria-describedby":Pe(t),className:h})})}function Jw(){return{CheckboxWidget:Dw,CheckboxesWidget:$w,RadioWidget:Mw,RangeWidget:Bw,SelectWidget:Kw,TextareaWidget:Yw}}function Zw(){return{templates:Tw(),widgets:Jw()}}function Xw(){return pS(Zw())}const Qw=Xw();function ej(t){const e=je.c(21),{virtualMcp:n,isSelected:r}=t,i=r&&"bg-accent";let s;e[0]!==i?(s=Dr("flex items-start gap-3 py-3 px-3 hover:bg-accent cursor-pointer rounded-xl transition-colors",i),e[0]=i,e[1]=s):s=e[1];let o;e[2]!==n.icon||e[3]!==n.title?(o=m.jsx(Ya,{icon:n.icon,name:n.title,size:"sm"}),e[2]=n.icon,e[3]=n.title,e[4]=o):o=e[4];let a;e[5]!==n.title?(a=m.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[5]=n.title,e[6]=a):a=e[6];let l;e[7]!==r?(l=r&&m.jsx(md,{size:16,className:"text-foreground shrink-0"}),e[7]=r,e[8]=l):l=e[8];let c;e[9]!==a||e[10]!==l?(c=m.jsxs("div",{className:"flex items-center justify-between",children:[a,l]}),e[9]=a,e[10]=l,e[11]=c):c=e[11];let u;e[12]!==n.description?(u=n.description&&m.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1 leading-relaxed",children:n.description}),e[12]=n.description,e[13]=u):u=e[13];let d;e[14]!==c||e[15]!==u?(d=m.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-0.5",children:[c,u]}),e[14]=c,e[15]=u,e[16]=d):d=e[16];let h;return e[17]!==s||e[18]!==o||e[19]!==d?(h=m.jsxs("div",{className:s,children:[o,d]}),e[17]=s,e[18]=o,e[19]=d,e[20]=h):h=e[20],h}function tj(){const t=je.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=m.jsx("div",{className:"flex items-center justify-center py-12",children:m.jsx(is,{className:"size-5 text-muted-foreground"})}),t[0]=e):e=t[0],e}function nj(t){const e=je.c(40),{selectedVirtualMcpId:n,onVirtualMcpChange:r,searchInputRef:i}=t,s=lt(),o=fd(),[a,l]=P.useState(""),c=P.useRef(null),u=i??c;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={navigateOnCreate:!0},e[0]=d):d=e[0];const{createVirtualMCP:h,isCreating:y}=gd(d);let f,p,b,v;if(e[1]!==h||e[2]!==u||e[3]!==y||e[4]!==r||e[5]!==a||e[6]!==n||e[7]!==s||e[8]!==o){let O;e:{const N=o.filter(rj);if(!a.trim()){O=N;break e}const F=a.toLowerCase();O=N.filter($=>$.title.toLowerCase().includes(F)||$.description?.toLowerCase().includes(F))}const g=O;let x;e[13]!==r?(x=N=>{r(N),l("")},e[13]=r,e[14]=x):x=e[14];const S=x;b="flex flex-col max-h-[min(400px,60dvh)]";let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=m.jsx(hd,{size:16,className:"text-muted-foreground pointer-events-none shrink-0"}),e[15]=j):j=e[15];let A;e[16]!==s?(A=s("chat.selectVirtualMcp.searchPlaceholder"),e[16]=s,e[17]=A):A=e[17];let C;e[18]===Symbol.for("react.memo_cache_sentinel")?(C=N=>l(N.target.value),e[18]=C):C=e[18];let _;e[19]!==u||e[20]!==a||e[21]!==A?(_=m.jsx(ld,{ref:u,type:"text",placeholder:A,value:a,onChange:C,className:"flex-1 h-8 text-sm border-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none p-0"}),e[19]=u,e[20]=a,e[21]=A,e[22]=_):_=e[22];let I;e[23]!==y||e[24]!==s?(I=s(y?"chat.selectVirtualMcp.creating":"chat.selectVirtualMcp.createAgent"),e[23]=y,e[24]=s,e[25]=I):I=e[25];let T;e[26]!==h||e[27]!==y||e[28]!==I?(T=m.jsx(Rr,{onClick:h,variant:"outline",size:"sm",className:"h-8 px-3 rounded-lg text-sm font-medium shrink-0",disabled:y,children:I}),e[26]=h,e[27]=y,e[28]=I,e[29]=T):T=e[29],e[30]!==_||e[31]!==T?(v=m.jsx("div",{className:"border-b px-4 py-3 bg-background/95 backdrop-blur sticky top-0 z-10",children:m.jsxs("div",{className:"relative flex items-center gap-2",children:[j,_,T]})}),e[30]=_,e[31]=T,e[32]=v):v=e[32],f="overflow-y-auto p-1.5 flex-1 min-h-0 [touch-action:pan-y]",p=g.length>0?m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-0.5",children:g.map(N=>m.jsx("div",{role:"button",tabIndex:0,onClick:()=>S(N.id),onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),S(N.id))},className:"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-xl",children:m.jsx(ej,{virtualMcp:N,isSelected:N.id===n})},N.id))}):m.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:s("chat.selectVirtualMcp.noAgentsFound")}),e[1]=h,e[2]=u,e[3]=y,e[4]=r,e[5]=a,e[6]=n,e[7]=s,e[8]=o,e[9]=f,e[10]=p,e[11]=b,e[12]=v}else f=e[9],p=e[10],b=e[11],v=e[12];let w;e[33]!==f||e[34]!==p?(w=m.jsx("div",{className:f,children:p}),e[33]=f,e[34]=p,e[35]=w):w=e[35];let E;return e[36]!==b||e[37]!==v||e[38]!==w?(E=m.jsxs("div",{className:b,children:[v,w]}),e[36]=b,e[37]=v,e[38]=w,e[39]=E):E=e[39],E}function rj(t){return!t.id||!Cu(t.id)}function ij(t){const e=je.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=m.jsx(tj,{}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=m.jsx(P.Suspense,{fallback:n,children:m.jsx(nj,{...t})}),e[1]=t,e[2]=r):r=e[2],r}function sj(t){const e=je.c(35),{selectedVirtualMcpId:n,selectedVirtualMcp:r,onVirtualMcpChange:i,className:s,showTooltip:o,disabled:a}=t,l=o===void 0?!0:o,c=a===void 0?!1:a,u=lt(),[d,h]=P.useState(!1),y=P.useRef(null);let f;e[0]!==i?(f=$=>{i($),h(!1)},e[0]=i,e[1]=f):f=e[1];const p=f,b=wu();let v;e[2]===Symbol.for("react.memo_cache_sentinel")?(v=$=>{h($)},e[2]=v):v=e[2];const w=v;let E,O;e[3]!==b||e[4]!==d?(E=()=>{d&&!b&&setTimeout(()=>{y.current?.focus()},0)},O=[d,b],e[3]=b,e[4]=d,e[5]=E,e[6]=O):(E=e[5],O=e[6]),P.useEffect(E,O);const g=c?!1:d,x=c?void 0:w,S=c?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let j;e[7]!==s||e[8]!==S?(j=Dr("relative flex items-center justify-center size-8 rounded-lg text-muted-foreground/75 transition-colors shrink-0",S,s),e[7]=s,e[8]=S,e[9]=j):j=e[9];let A;e[10]!==u?(A=u("chat.selectVirtualMcp.selectAgent"),e[10]=u,e[11]=A):A=e[11];let C;e[12]!==r?(C=r?m.jsx(Ya,{icon:r.icon,name:r.title,size:"sm",className:"absolute inset-0 size-full"}):m.jsxs(m.Fragment,{children:[m.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"agent-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[m.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),m.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),m.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),m.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"7.5",stroke:"url(#agent-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),m.jsx(pd,{size:16})]}),e[12]=r,e[13]=C):C=e[13];let _;e[14]!==c||e[15]!==j||e[16]!==A||e[17]!==C?(_=m.jsx(Ou,{asChild:!0,children:m.jsx(cd,{asChild:!0,children:m.jsx("button",{type:"button",disabled:c,className:j,"aria-label":A,children:C})})}),e[14]=c,e[15]=j,e[16]=A,e[17]=C,e[18]=_):_=e[18];let I;e[19]!==d||e[20]!==r?.title||e[21]!==l||e[22]!==u?(I=l&&!d&&m.jsx(ju,{side:"top",className:"text-xs",children:r?.title??u("chat.selectVirtualMcp.chooseAgentTooltip")}),e[19]=d,e[20]=r?.title,e[21]=l,e[22]=u,e[23]=I):I=e[23];let T;e[24]!==_||e[25]!==I?(T=m.jsx(Eu,{children:m.jsxs(Au,{children:[_,I]})}),e[24]=_,e[25]=I,e[26]=T):T=e[26];let N;e[27]!==p||e[28]!==n?(N=m.jsx(ud,{className:"w-[min(550px,calc(100vw-2rem))] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,collisionPadding:16,children:m.jsx(ij,{selectedVirtualMcpId:n,onVirtualMcpChange:p,searchInputRef:y})}),e[27]=p,e[28]=n,e[29]=N):N=e[29];let F;return e[30]!==T||e[31]!==N||e[32]!==g||e[33]!==x?(F=m.jsxs(dd,{open:g,onOpenChange:x,children:[T,N]}),e[30]=T,e[31]=N,e[32]=g,e[33]=x,e[34]=F):F=e[34],F}function oj(t){const e=t.properties;if(!e)return!1;const n=e.__type,r=e.__binding;return!!(n?.const||r?.const)}function aj(t){const e=t.properties;if(!e)return{};const n=e.__type,r=e.__binding;return{bindingType:n?.const,bindingSchema:r?.const}}function lj(t){const e=je.c(10),{bindingSchema:n,bindingType:r,currentValue:i,onValueChange:s,placeholder:o,onAddNew:a,className:l}=t;let c;e[0]!==r?(c=Tf(r),e[0]=r,e[1]=c):c=e[1];const d=c??(typeof n=="string"?n:n??void 0);let h;return e[2]!==r||e[3]!==l||e[4]!==i||e[5]!==a||e[6]!==s||e[7]!==o||e[8]!==d?(h=m.jsx(cj,{value:i,onValueChange:s,placeholder:o,binding:d,bindingType:r,onAddNew:a,className:l}),e[2]=r,e[3]=l,e[4]=i,e[5]=a,e[6]=s,e[7]=o,e[8]=d,e[9]=h):h=e[9],h}function cj({value:t,onValueChange:e,placeholder:n="Select a connection...",binding:r,bindingType:i,onAddNew:s,className:o}){const a=lt(),[l,c]=P.useState(!1),{installByBinding:u,isInstalling:d}=Pf(),h=l||d,y=r?void 0:i||void 0,f=Bu(r?{binding:r}:y?{filters:[{column:"app_name",value:y}]}:{}),p=qu(t&&!f.some(E=>E.id===t)?t:void 0),b=p?[p,...f]:f,v=i?.startsWith("@"),w=async()=>{if(v&&i){c(!0);try{const E=await u(i);E&&e(E.id)}catch(E){const O=E instanceof Error?E.message:String(E);gr.error(a("details.mcpConfigurationForm.failedToConnectMcp",{message:O}))}finally{c(!1)}return}s?.()};return m.jsxs(Ju,{value:t,onValueChange:e,children:[m.jsx(Zu,{size:"sm",className:Dr("w-[200px]",o),children:m.jsx(Xu,{placeholder:n})}),m.jsxs(Qu,{children:[b.length===0?m.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:a("details.mcpConfigurationForm.noConnectionsFound")}):b.map(E=>m.jsx(ed,{value:E.id,children:m.jsxs("div",{className:"flex items-center gap-2",children:[E.icon?m.jsx("img",{src:E.icon,alt:E.title,className:"w-4 h-4 rounded"}):m.jsx("div",{className:"w-4 h-4 rounded bg-linear-to-br from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:E.title.slice(0,1).toUpperCase()}),m.jsx("span",{children:E.title})]})},E.id)),(s||v)&&m.jsx("div",{className:"border-t border-border",children:m.jsx(Rr,{onClick:E=>{E.preventDefault(),E.stopPropagation(),w()},disabled:h,variant:"ghost",className:"w-full justify-start gap-2 px-2 py-2 h-auto hover:bg-muted rounded-md text-sm disabled:opacity-50 disabled:cursor-not-allowed",type:"button",children:h?m.jsxs(m.Fragment,{children:[m.jsx(is,{className:"size-4"}),m.jsx("span",{children:a("details.mcpConfigurationForm.connecting")})]}):m.jsxs(m.Fragment,{children:[m.jsx(Yu,{size:16}),m.jsx("span",{children:a("details.mcpConfigurationForm.customConnection")})]})})})]})]})}function uj(t){const e=je.c(54),n=lt(),{schema:r,formData:i,title:s,description:o,registry:a}=t,l=a.formContext,c=s||"",u=s||"";if(oj(r)){const y=r;let f;e[0]!==y?(f=aj(y),e[0]=y,e[1]=f):f=e[1];const{bindingType:p,bindingSchema:b}=f,w=(l?.formData?.[c]?.value??i?.value)||"";let E;e[2]!==p||e[3]!==c||e[4]!==l||e[5]!==i?(E=F=>{const $={...i,value:F??"",...p&&{__type:p}};l?.onFieldChange(c,$)},e[2]=p,e[3]=c,e[4]=l,e[5]=i,e[6]=E):E=e[6];const O=E,g=fj;let x;e[7]!==u||e[8]!==c||e[9]!==s?(x=g(s||u||c),e[7]=u,e[8]=c,e[9]=s,e[10]=x):x=e[10];const S=x;if(p==="@deco/agent"){let F;e[11]!==S?(F=m.jsx("label",{className:"text-sm font-medium truncate block",children:S}),e[11]=S,e[12]=F):F=e[12];let $;e[13]!==o?($=o&&m.jsx("p",{className:"text-xs text-muted-foreground truncate",children:o}),e[13]=o,e[14]=$):$=e[14];let k;e[15]!==F||e[16]!==$?(k=m.jsxs("div",{className:"flex-1 min-w-0",children:[F,$]}),e[15]=F,e[16]=$,e[17]=k):k=e[17];const B=w||void 0;let L;e[18]!==S||e[19]!==n?(L=n("details.mcpConfigurationForm.selectPlaceholder",{title:S.toLowerCase()}),e[18]=S,e[19]=n,e[20]=L):L=e[20];let Y;e[21]!==O||e[22]!==B||e[23]!==L?(Y=m.jsx(sj,{selectedVirtualMcpId:B,onVirtualMcpChange:O,variant:"bordered",placeholder:L,className:"w-[200px] shrink-0"}),e[21]=O,e[22]=B,e[23]=L,e[24]=Y):Y=e[24];let re;return e[25]!==k||e[26]!==Y?(re=m.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[k,Y]}),e[25]=k,e[26]=Y,e[27]=re):re=e[27],re}let j;e[28]!==S?(j=m.jsx("label",{className:"text-sm font-medium truncate block",children:S}),e[28]=S,e[29]=j):j=e[29];let A;e[30]!==o?(A=o&&m.jsx("p",{className:"text-xs text-muted-foreground truncate",children:o}),e[30]=o,e[31]=A):A=e[31];let C;e[32]!==j||e[33]!==A?(C=m.jsxs("div",{className:"flex-1 min-w-0",children:[j,A]}),e[32]=j,e[33]=A,e[34]=C):C=e[34];let _;e[35]!==S||e[36]!==n?(_=n("details.mcpConfigurationForm.selectPlaceholder",{title:S.toLowerCase()}),e[35]=S,e[36]=n,e[37]=_):_=e[37];let I;e[38]!==l?(I=()=>l?.onAddNew(),e[38]=l,e[39]=I):I=e[39];let T;e[40]!==b||e[41]!==p||e[42]!==w||e[43]!==O||e[44]!==_||e[45]!==I?(T=m.jsx(lj,{bindingSchema:b,bindingType:p,currentValue:w,onValueChange:O,placeholder:_,onAddNew:I,className:"w-[200px] shrink-0"}),e[40]=b,e[41]=p,e[42]=w,e[43]=O,e[44]=_,e[45]=I,e[46]=T):T=e[46];let N;return e[47]!==C||e[48]!==T?(N=m.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[C,T]}),e[47]=C,e[48]=T,e[49]=N):N=e[49],N}let d;e[50]!==t.properties?(d=t.properties.map(dj),e[50]=t.properties,e[51]=d):d=e[51];let h;return e[52]!==d?(h=m.jsx("div",{className:"flex flex-col gap-4",children:d}),e[52]=d,e[53]=h):h=e[53],h}function dj(t){return t.content}function fj(t){return t.toLowerCase().replace(/_/g," ").replace(/\b\w/g,mj)}function mj(t){return t.toUpperCase()}function hj(t){const e=je.c(13),{label:n,children:r,description:i,id:s,schema:o}=t;if(s.includes("__type")||s.includes("__binding"))return null;if(o.type==="object")return r;let a;e[0]!==s||e[1]!==n?(a=n&&m.jsx("label",{className:"text-sm font-medium truncate block",htmlFor:s,children:n}),e[0]=s,e[1]=n,e[2]=a):a=e[2];let l;e[3]!==i?(l=i&&m.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i}),e[3]=i,e[4]=l):l=e[4];let c;e[5]!==a||e[6]!==l?(c=m.jsxs("div",{className:"flex-1 min-w-0",children:[a,l]}),e[5]=a,e[6]=l,e[7]=c):c=e[7];let u;e[8]!==r?(u=m.jsx("div",{className:"w-[200px] shrink-0",children:r}),e[8]=r,e[9]=u):u=e[9];let d;return e[10]!==c||e[11]!==u?(d=m.jsxs("div",{className:"flex items-center gap-3 justify-between",children:[c,u]}),e[10]=c,e[11]=u,e[12]=d):d=e[12],d}const pj={ObjectFieldTemplate:uj,FieldTemplate:hj};function gj(t){const e=je.c(19),{formKey:n,formState:r,onFormStateChange:i,stateSchema:s}=t,{org:o}=ts(),a=_u();let l;e[0]!==i?(l=w=>{w.formData&&i(w.formData)},e[0]=i,e[1]=l):l=e[1];const c=l;let u;e[2]!==r||e[3]!==i?(u=(w,E)=>{const O={...r,[w]:E};i(O)},e[2]=r,e[3]=i,e[4]=u):u=e[4];const d=u;let h;e[5]!==a||e[6]!==o?(h=()=>{a({to:"/$org/settings/connections",params:{org:o.slug},search:{action:"create"}})},e[5]=a,e[6]=o,e[7]=h):h=e[7];const y=h;let f;e[8]!==r||e[9]!==y||e[10]!==d?(f={onFieldChange:d,formData:r,onAddNew:y},e[8]=r,e[9]=y,e[10]=d,e[11]=f):f=e[11];const p=f;let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=m.jsx(m.Fragment,{}),e[12]=b):b=e[12];let v;return e[13]!==p||e[14]!==n||e[15]!==r||e[16]!==c||e[17]!==s?(v=m.jsx("div",{className:"flex flex-col h-full overflow-auto",children:m.jsx(Qw,{schema:s,validator:IS,formData:r,onChange:c,formContext:p,liveValidate:!1,showErrorList:!1,templates:pj,children:b},n)}),e[13]=p,e[14]=n,e[15]=r,e[16]=c,e[17]=s,e[18]=v):v=e[18],v}function yj(t){const e=je.c(14),{org:n}=ts();let r;e[0]!==t||e[1]!==n.id||e[2]!==n.slug?(r={connectionId:t,orgId:n.id,orgSlug:n.slug},e[0]=t,e[1]=n.id,e[2]=n.slug,e[3]=r):r=e[3];const i=Ru(r);let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={},e[4]=s):s=e[4];let o;e[5]!==i?(o={client:i,toolName:"MCP_CONFIGURATION",toolArguments:s,select:bj},e[5]=i,e[6]=o):o=e[6];const{data:a}=ku(o);let l;e[7]!==a.stateSchema?(l=a.stateSchema??{type:"object",properties:{}},e[7]=a.stateSchema,e[8]=l):l=e[8];const c=l;let u;e[9]!==a.scopes?(u=a.scopes??[],e[9]=a.scopes,e[10]=u):u=e[10];const d=u;let h;return e[11]!==d||e[12]!==c?(h={stateSchema:c,scopes:d},e[11]=d,e[12]=c,e[13]=h):h=e[13],h}function bj(t){return t.structuredContent??t}function xj(t){const e=je.c(20),{onAuthenticate:n,buttonText:r}=t,i=lt();let s;e[0]!==i?(s=i("details.settingsTab.authenticationRequired"),e[0]=i,e[1]=s):s=e[1];let o;e[2]!==s?(o=m.jsx("h3",{className:"text-sm font-semibold",children:s}),e[2]=s,e[3]=o):o=e[3];let a;e[4]!==i?(a=i("details.settingsTab.oauthAuthenticationDescription"),e[4]=i,e[5]=a):a=e[5];let l;e[6]!==a?(l=m.jsx("p",{className:"text-xs text-muted-foreground max-w-md text-center",children:a}),e[6]=a,e[7]=l):l=e[7];let c;e[8]!==o||e[9]!==l?(c=m.jsxs("div",{className:"flex flex-col gap-2",children:[o,l]}),e[8]=o,e[9]=l,e[10]=c):c=e[10];let u;e[11]!==r||e[12]!==i?(u=r??i("details.settingsTab.authenticate"),e[11]=r,e[12]=i,e[13]=u):u=e[13];let d;e[14]!==n||e[15]!==u?(d=m.jsx(Rr,{onClick:n,size:"default",children:u}),e[14]=n,e[15]=u,e[16]=d):d=e[16];let h;return e[17]!==c||e[18]!==d?(h=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[c,d]})}),e[17]=c,e[18]=d,e[19]=h):h=e[19],h}function vj(t){const e=je.c(19),{hasReadme:n,onViewReadme:r}=t,i=lt();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=m.jsx(Uu,{size:36,className:"text-muted-foreground"}),e[0]=s):s=e[0];let o;e[1]!==i?(o=i("details.settingsTab.manualAuthenticationRequired"),e[1]=i,e[2]=o):o=e[2];let a;e[3]!==o?(a=m.jsx("h3",{className:"text-sm font-semibold",children:o}),e[3]=o,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("details.settingsTab.manualAuthenticationDescription"),e[5]=i,e[6]=l):l=e[6];let c;e[7]!==l?(c=m.jsx("p",{className:"text-xs text-muted-foreground max-w-md text-center",children:l}),e[7]=l,e[8]=c):c=e[8];let u;e[9]!==a||e[10]!==c?(u=m.jsxs("div",{className:"flex flex-col gap-2",children:[a,c]}),e[9]=a,e[10]=c,e[11]=u):u=e[11];let d;e[12]!==n||e[13]!==r||e[14]!==i?(d=n&&r&&m.jsxs(Rr,{onClick:r,variant:"outline",size:"lg",children:[m.jsx(Mu,{size:18,className:"mr-2"}),i("details.settingsTab.viewReadme")]}),e[12]=n,e[13]=r,e[14]=i,e[15]=d):d=e[15];let h;return e[16]!==u||e[17]!==d?(h=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[s,u,d]})}),e[16]=u,e[17]=d,e[18]=h):h=e[18],h}function Sj(){const t=je.c(12),e=lt();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=m.jsx("img",{src:"/empty-state-error.svg",alt:"",width:160,height:160,"aria-hidden":"true"}),t[0]=n):n=t[0];let r;t[1]!==e?(r=e("details.settingsTab.serverError"),t[1]=e,t[2]=r):r=t[2];let i;t[3]!==r?(i=m.jsx("h3",{className:"text-lg font-semibold",children:r}),t[3]=r,t[4]=i):i=t[4];let s;t[5]!==e?(s=e("details.settingsTab.serverErrorDescription"),t[5]=e,t[6]=s):s=t[6];let o;t[7]!==s?(o=m.jsx("p",{className:"text-sm text-muted-foreground max-w-md text-center",children:s}),t[7]=s,t[8]=o):o=t[8];let a;return t[9]!==i||t[10]!==o?(a=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[n,m.jsxs("div",{className:"flex flex-col gap-2",children:[i,o]})]})}),t[9]=i,t[10]=o,t[11]=a):a=t[11],a}function wj(t){const e=je.c(19),{connection:n,form:r}=t,i=lt(),{stateSchema:s}=yj(n.id);let o;e[0]!==r.control?(o={control:r.control,name:"configuration_state"},e[0]=r.control,e[1]=o):o=e[1];const a=Tu(o);let l;e[2]!==r?(l=y=>{r.setValue("configuration_state",y,{shouldDirty:!0})},e[2]=r,e[3]=l):l=e[3];const c=l;if(!(s&&s.properties&&typeof s.properties=="object"&&Object.keys(s.properties).length>0)){let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx("img",{src:"/empty-state-success-muted.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e[4]=y):y=e[4];let f;e[5]!==i?(f=i("details.settingsTab.serverAllSet"),e[5]=i,e[6]=f):f=e[6];let p;e[7]!==i?(p=i("details.settingsTab.noAdditionalConfigurationNeeded"),e[7]=i,e[8]=p):p=e[8];let b;return e[9]!==f||e[10]!==p?(b=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx(Ka,{image:y,title:f,description:p})}),e[9]=f,e[10]=p,e[11]=b):b=e[11],b}let d;e[12]!==a?(d=a??{},e[12]=a,e[13]=d):d=e[13];let h;return e[14]!==n.id||e[15]!==c||e[16]!==s||e[17]!==d?(h=m.jsx("div",{className:"flex-1 overflow-auto",children:m.jsx(gj,{formKey:n.id,stateSchema:s,formState:d,onFormStateChange:c})}),e[14]=n.id,e[15]=c,e[16]=s,e[17]=d,e[18]=h):h=e[18],h}function jj(t){const e=je.c(18),n=lt(),{connection:r,form:i,hasMcpBinding:s,isMCPAuthenticated:o,supportsOAuth:a,isServerError:l,onAuthenticate:c,onViewReadme:u}=t,h=!!r?.metadata?.repository?.url;if(!o){if(l){let b;return e[0]===Symbol.for("react.memo_cache_sentinel")?(b=m.jsx(Sj,{}),e[0]=b):b=e[0],b}if(a){let b;return e[1]!==c?(b=m.jsx(xj,{onAuthenticate:c}),e[1]=c,e[2]=b):b=e[2],b}let p;return e[3]!==h||e[4]!==u?(p=m.jsx(vj,{hasReadme:h,onViewReadme:u}),e[3]=h,e[4]=u,e[5]=p):p=e[5],p}if(!s){let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=m.jsx("img",{src:"/empty-state-success-muted.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e[6]=p):p=e[6];let b;e[7]!==n?(b=n("details.settingsTab.serverAllSet"),e[7]=n,e[8]=b):b=e[8];let v;e[9]!==n?(v=n("details.settingsTab.noAdditionalConfigurationNeeded"),e[9]=n,e[10]=v):v=e[10];let w;return e[11]!==b||e[12]!==v?(w=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx(Ka,{image:p,title:b,description:v})}),e[11]=b,e[12]=v,e[13]=w):w=e[13],w}let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx("div",{className:"flex-1 flex items-center justify-center",children:m.jsx(is,{className:"size-8 text-muted-foreground"})}),e[14]=y):y=e[14];let f;return e[15]!==r||e[16]!==i?(f=m.jsx(Iu,{children:m.jsx(P.Suspense,{fallback:y,children:m.jsx(wj,{connection:r,form:i})})}),e[15]=r,e[16]=i,e[17]=f):f=e[17],f}function tO(t){const e=je.c(2);let n;return e[0]!==t?(n=m.jsx("div",{className:"flex-1 flex h-full",children:m.jsx(jj,{...t})}),e[0]=t,e[1]=n):n=e[1],n}export{vj as M,xj as O,tO as S,Qj as V,Xj as a,Zj as b,Jj as c};
|