decocms 4.610.0 → 4.611.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-fMLnhe4N.js → AlertCircle-CMQV10zH.js} +1 -1
- package/dist/client/assets/{AreaChart-BIuRZ0AZ.js → AreaChart-DuISTyQL.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BpQY_4Hb.js → ArrowLeft-C8Ca9SGj.js} +1 -1
- package/dist/client/assets/{ArrowRight-IsxFGu7t.js → ArrowRight-D_qjUhKl.js} +1 -1
- package/dist/client/assets/{ArrowUp-DJuAHozT.js → ArrowUp-BBzcACTp.js} +1 -1
- package/dist/client/assets/{BookOpen01-BiHF6zzZ.js → BookOpen01-rTD8nhQf.js} +1 -1
- package/dist/client/assets/{CartesianChart-GgdJZ46f.js → CartesianChart-CmdBWl1g.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CBDGrcDZ.js → CategoricalChart-CKf8Yyge.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dr7_heit.js → CheckCircle-Dsrl0sYA.js} +1 -1
- package/dist/client/assets/{ChevronDown-BoX4T_5s.js → ChevronDown-C50rJcMj.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D1NaGS7F.js → ChevronSelectorVertical-Djt3ttKm.js} +1 -1
- package/dist/client/assets/{ChevronUp-BRofWs4w.js → ChevronUp-D_FfEHpT.js} +1 -1
- package/dist/client/assets/{CreditCard01-ZTRIvIDz.js → CreditCard01-C86YFFFO.js} +1 -1
- package/dist/client/assets/{Eye-BivmnvvE.js → Eye-B6cCPf8y.js} +1 -1
- package/dist/client/assets/{File02-FY6zCZeY.js → File02-Bqga0RpU.js} +1 -1
- package/dist/client/assets/{Fingerprint04-B53NZ2UJ.js → Fingerprint04-e81t2Rsp.js} +1 -1
- package/dist/client/assets/{Globe04-BPI-tBR7.js → Globe04-B8ATzfZn.js} +1 -1
- package/dist/client/assets/{Image01-CcDDqrAs.js → Image01-BhuNuoo8.js} +1 -1
- package/dist/client/assets/{Key01-lhYXuGDp.js → Key01-DgTKBiC1.js} +1 -1
- package/dist/client/assets/{LayoutLeft-xchgd5Yi.js → LayoutLeft-NdGA068i.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DIf0b0rn.js → LinkBroken01-DdYCDQYH.js} +1 -1
- package/dist/client/assets/{MessageCircle01-B10kr5uX.js → MessageCircle01-BpQQiBmH.js} +1 -1
- package/dist/client/assets/{Minus-DnwYSFGD.js → Minus-DgevTSUu.js} +1 -1
- package/dist/client/assets/{Monitor01-Dlx-hfNO.js → Monitor01-QPUul6iy.js} +1 -1
- package/dist/client/assets/{Play-D05aqmG8.js → Play-B7Twjw53.js} +1 -1
- package/dist/client/assets/{Plus-3ew-qzRg.js → Plus-SDHe97GR.js} +1 -1
- package/dist/client/assets/{ReferenceLine-C6RjSes1.js → ReferenceLine-DotJhU5D.js} +1 -1
- package/dist/client/assets/{SearchMd-BVGIdSgF.js → SearchMd-BjPfVKIV.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Bp-vqf9J.js → ShoppingBag01-BOP8iPvg.js} +1 -1
- package/dist/client/assets/{Sun-lT-uDm7m.js → Sun-D-TVq6e8.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DmJYUvGl.js → SwitchHorizontal01-B39ZJ4UZ.js} +1 -1
- package/dist/client/assets/{Tool01-XvjOBq9P.js → Tool01-CcGB7LBy.js} +1 -1
- package/dist/client/assets/{Tooltip-cp6B_p4W.js → Tooltip-CU8tKWXR.js} +1 -1
- package/dist/client/assets/{Trash01-BAd16zlB.js → Trash01-Dd6dddL6.js} +1 -1
- package/dist/client/assets/{Upload01-UYtGRq9J.js → Upload01-Ceg_L_zO.js} +1 -1
- package/dist/client/assets/{UserCheck01-DcUjByxP.js → UserCheck01-CgjnWNg9.js} +1 -1
- package/dist/client/assets/{UserSquare-BruOWifD.js → UserSquare-BEv7rm2k.js} +1 -1
- package/dist/client/assets/{Users01-COqq34au.js → Users01-CDMnI452.js} +1 -1
- package/dist/client/assets/{XClose-CnRhNuQH.js → XClose-DhprECXU.js} +1 -1
- package/dist/client/assets/{Zap-BIlzDOzm.js → Zap-CxCLKK5S.js} +1 -1
- package/dist/client/assets/{access-gate-C0BZk8c2.js → access-gate-CDVSbtkj.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BjecimOb.js → add-connection-dialog-DnPaZnDA.js} +1 -1
- package/dist/client/assets/agent-app-CsGfS0zJ.js +1 -0
- package/dist/client/assets/{agent-assets-B3xVIbjO.js → agent-assets-BKvDQ6ZG.js} +1 -1
- package/dist/client/assets/{agent-automation-Cs5PlhS_.js → agent-automation-Bx-NuDZl.js} +1 -1
- package/dist/client/assets/{agent-automations-B0cI5z7i.js → agent-automations-CLe9w2t8.js} +1 -1
- package/dist/client/assets/{agent-blog-post-C7MCFiHJ.js → agent-blog-post-BaXgHzHt.js} +2 -2
- package/dist/client/assets/{agent-blog-DBkq-Lqv.js → agent-blog-saY0nlhI.js} +2 -2
- package/dist/client/assets/{agent-business-case-DGNDHfy8.js → agent-business-case-D1J_EJBP.js} +1 -1
- package/dist/client/assets/{agent-calendar-Cu-bFn_1.js → agent-calendar-DmHWjOEz.js} +1 -1
- package/dist/client/assets/{agent-capabilities-EFJ460FZ.js → agent-capabilities-CmfwlzZU.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DWW4lIzl.js → agent-connect-sources-CDCBitnG.js} +1 -1
- package/dist/client/assets/agent-deck-wiGmkegT.js +1 -0
- package/dist/client/assets/{agent-e2e-BAdG01pL.js → agent-e2e-BPS7jgkd.js} +1 -1
- package/dist/client/assets/agent-experiments-DC4xI5lD.js +1 -0
- package/dist/client/assets/agent-file-DY6_gTME.js +1 -0
- package/dist/client/assets/{agent-hosting-eAcCsqG1.js → agent-hosting-NwO2TKDF.js} +1 -1
- package/dist/client/assets/{agent-icon-BUzPMbYp.js → agent-icon-BULE2fWe.js} +1 -1
- package/dist/client/assets/agent-library-CY76yE28.js +1 -0
- package/dist/client/assets/agent-library-file-Bjei4utc.js +1 -0
- package/dist/client/assets/agent-overview-ivofqF2c.js +1 -0
- package/dist/client/assets/{agent-releases-CAwZrvbX.js → agent-releases-HCmP-qlK.js} +1 -1
- package/dist/client/assets/agent-settings-Bxo7o7gL.js +1 -0
- package/dist/client/assets/{agent-site-editor-D1Fw_nHF.js → agent-site-editor-GpNjnXGk.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-BMjZqAT2.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DK93H1Xk.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-1d9iwg6w.js +1 -0
- package/dist/client/assets/agent-view-CmiEQkVX.js +1 -0
- package/dist/client/assets/{agent-view-guard-COVmXMDj.js → agent-view-guard-BrhCLpkj.js} +1 -1
- package/dist/client/assets/{ai-providers-Dbisg2_X.js → ai-providers-CsLwpTHp.js} +1 -1
- package/dist/client/assets/{alert-C_fRLJHt.js → alert-BI4VuWlB.js} +1 -1
- package/dist/client/assets/{analytics-sections-OYaPNXoo.js → analytics-sections-D_43TpvM.js} +1 -1
- package/dist/client/assets/api-keys-DUArXFLt.js +1 -0
- package/dist/client/assets/{api-keys-CvOJ2C6O.js → api-keys-F4HzLSGA.js} +1 -1
- package/dist/client/assets/{app-editor-AIHC2CY6.js → app-editor-BvKQGVmd.js} +1 -1
- package/dist/client/assets/{asset-utils-DI8Mkfk2.js → asset-utils-B3p_FXzZ.js} +1 -1
- package/dist/client/assets/{auth-catchall-BI3ZQDNg.js → auth-catchall-D1jYu4R6.js} +1 -1
- package/dist/client/assets/{auth-entry-B6NVYIyy.js → auth-entry-Dgm3aW_D.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CcKew0_d.js → auth-split-layout-07QqI3zO.js} +1 -1
- package/dist/client/assets/{auth-CFZV8LNa.js → auth-xKzEv0UZ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B3x0DVvj.js → authenticate-and-persist-oauth-CKZj1IUu.js} +1 -1
- package/dist/client/assets/{automation-list-row-CmOp_sRJ.js → automation-list-row-BHqHOtQx.js} +1 -1
- package/dist/client/assets/{automation-runs-GGr3q_t6.js → automation-runs-CRciewSu.js} +1 -1
- package/dist/client/assets/{automations-FO50hUU_.js → automations-BWwcGlIf.js} +1 -1
- package/dist/client/assets/{badge-BEIqpSWr.js → badge-CFl-sPcD.js} +1 -1
- package/dist/client/assets/{block-document-BQyzUTQb.js → block-document-iHb56h21.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-nT1WU50c.js → blocks-preview-workspace-context-DBjLLOwy.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-C8b6r-Rr.js → blocks-tab-states-Bz9ljtyl.js} +1 -1
- package/dist/client/assets/{blog-preview-url-DnJG6GIX.js → blog-preview-url-1TkdoQtD.js} +1 -1
- package/dist/client/assets/{blog-schema-Cpxx5HQu.js → blog-schema-BZ0Jqy8M.js} +1 -1
- package/dist/client/assets/{blog-source-gate-ChzKUgJB.js → blog-source-gate-DjSc8yUZ.js} +1 -1
- package/dist/client/assets/{blog-view-gate-C8Zoi37Q.js → blog-view-gate-DgZTLgRJ.js} +1 -1
- package/dist/client/assets/{buckets-BJgVyZGc.js → buckets-DxoYBJcE.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DSYOXwvq.js → build-improve-prompt-doc-BMoym9Vj.js} +1 -1
- package/dist/client/assets/{calendar-BniyEQBg.js → calendar-CEemZB_B.js} +1 -1
- package/dist/client/assets/{capability-load-error-BzUBNDCP.js → capability-load-error-BTFUeIPH.js} +1 -1
- package/dist/client/assets/{category-editor-C8Q-BotL.js → category-editor-srri80CB.js} +1 -1
- package/dist/client/assets/{category-tree-BvOKDXJP.js → category-tree-CPPsewqr.js} +1 -1
- package/dist/client/assets/{chart-CNx1WxLV.js → chart-C-gDoxee.js} +1 -1
- package/dist/client/assets/chat-context-5XiEKH4L.js +44 -0
- package/dist/client/assets/{chat-draft-CUtr-Qmf.js → chat-draft-B6RBQpJw.js} +1 -1
- package/dist/client/assets/{checkbox-CH7V0LA5.js → checkbox-8SyXZvGW.js} +1 -1
- package/dist/client/assets/{choose-editor-Biv3zv_l.js → choose-editor-DxwGBSym.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B-EVIYaI.js → cli-auth-success-C9k5mfK6.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BUPG2UGb.js → cms-settings-editor-BsU3WNyc.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-D9aD7eqZ.js → cms-store-drafts-DWxn6u5u.js} +1 -1
- package/dist/client/assets/{collapsible-CUjrXLIK.js → collapsible-DRJg67rf.js} +1 -1
- package/dist/client/assets/{collection-detail-CpQCmGv5.js → collection-detail-BrKNh_sc.js} +1 -1
- package/dist/client/assets/{collection-display-button-Q9wOiUuQ.js → collection-display-button-BdtaL-mb.js} +1 -1
- package/dist/client/assets/{collection-search-BpBt8YLH.js → collection-search-BMrWPTLQ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B_FURvd1.js → collection-table-wrapper-BWN3xqpw.js} +1 -1
- package/dist/client/assets/{collection-tabs-C2qlQv4k.js → collection-tabs-D9CZUNPJ.js} +1 -1
- package/dist/client/assets/{combobox-27ivRGzf.js → combobox-DsfTnWMd.js} +1 -1
- package/dist/client/assets/{command-DET2-o7x.js → command-Bx6bzwV3.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DneX7Jzv.js → companion-mcps-section-C9QnKnjT.js} +1 -1
- package/dist/client/assets/{config-CNL9isfS.js → config-CReIzLqM.js} +1 -1
- package/dist/client/assets/{connect-key-e72ndoQz.js → connect-key-ChjP56x4.js} +1 -1
- package/dist/client/assets/{connect-layout-CvRxptQC.js → connect-layout-BZ0_MQQ4.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-D77DpEgz.js → connect-source-dialog-BXyFZL_X.js} +1 -1
- package/dist/client/assets/{connect-DfUKQrO1.js → connect-uMWVy558.js} +1 -1
- package/dist/client/assets/{connection-Y7iFDql6.js → connection-BlQeEUPX.js} +1 -1
- package/dist/client/assets/{connection-card-BoZq0Qgr.js → connection-card-C3Cm4Vsr.js} +1 -1
- package/dist/client/assets/{connection-detail-BnCsN0WR.js → connection-detail-Br3kvCLD.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B9uzJgKt.js → connection-form-helpers-B16n6soh.js} +1 -1
- package/dist/client/assets/{connection-slug-oFV7q3Mr.js → connection-slug-CavXizqw.js} +1 -1
- package/dist/client/assets/{connections-DHEhCPcn.js → connections-Ct4xUehR.js} +1 -1
- package/dist/client/assets/{content-changes-Cz_QO8b-.js → content-changes-C1IdGdFF.js} +1 -1
- package/dist/client/assets/{content-tab-DKZOC0hz.js → content-tab-Dp8TW9qo.js} +3 -3
- package/dist/client/assets/{context-Bb9gVzRf.js → context-B1WfVRke.js} +1 -1
- package/dist/client/assets/{context-menu-Bc9ShJiW.js → context-menu-DI3Zl6jz.js} +1 -1
- package/dist/client/assets/{context-shell-Dk2xTCQ_.js → context-shell-G6Gbdp0W.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-CfFS4qOF.js → create-organization-dialog-C6kVfnSi.js} +1 -1
- package/dist/client/assets/{daily-pulse-BxRZmy88.js → daily-pulse-D_AiA3QD.js} +1 -1
- package/dist/client/assets/{delete-copy-B9XfUYuD.js → delete-copy-DwOYB3lx.js} +1 -1
- package/dist/client/assets/{device-hint-D3HMygEx.js → device-hint-AUNfpJY-.js} +1 -1
- package/dist/client/assets/{discover-CdZx7BRU.js → discover-C3KvDhLe.js} +1 -1
- package/dist/client/assets/{domain-settings-DBkhaw5J.js → domain-settings-DKjGNSDn.js} +1 -1
- package/dist/client/assets/{drawer-BysblPi2.js → drawer-DXadnv_8.js} +1 -1
- package/dist/client/assets/{editor-BtdaQuHN.js → editor-CDRuQE8T.js} +1 -1
- package/dist/client/assets/{editor-classes-CxIZNugt.js → editor-classes-nFtrg95h.js} +1 -1
- package/dist/client/assets/{empty-state-z8d6CDxb.js → empty-state-Bq2pKAom.js} +1 -1
- package/dist/client/assets/{empty-state-BTtJHydu.js → empty-state-DsDTFIVX.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-D9gXTAbE.js → experiments-tab-choice-DXVI89Of.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BauA6Mrh.js → extract-connection-data-qg3jBD1i.js} +1 -1
- package/dist/client/assets/{feature-gate-BE5292u7.js → feature-gate-h5u-Zwbn.js} +1 -1
- package/dist/client/assets/{feature-paywall-Bl4fn5Eu.js → feature-paywall-Dob_ExVf.js} +1 -1
- package/dist/client/assets/{file-explorer-CHqr8v1J.js → file-explorer-CzlEqF_b.js} +1 -1
- package/dist/client/assets/{file-preview-jYURLVeg.js → file-preview-D4QUoORy.js} +1 -1
- package/dist/client/assets/{file-share-button-B3Eso6F1.js → file-share-button-CL3J0zEg.js} +1 -1
- package/dist/client/assets/{file-type-icon-CoN_4-an.js → file-type-icon-BSoZy34z.js} +1 -1
- package/dist/client/assets/{folder-icon-BzaGAHF2.js → folder-icon-DCn-k3hb.js} +1 -1
- package/dist/client/assets/{form-Z5FeDYMO.js → form-DC0J7PuZ.js} +1 -1
- package/dist/client/assets/{frame-navigation-CziYTYxO.js → frame-navigation-BLxrhab4.js} +1 -1
- package/dist/client/assets/{gateway-client-PxuT6Cn_.js → gateway-client-7v27Q-DB.js} +1 -1
- package/dist/client/assets/{general-ChYADWnU.js → general-BflUyDpv.js} +1 -1
- package/dist/client/assets/{github-icon-CD6EsDXg.js → github-icon-BiXr0BnT.js} +1 -1
- package/dist/client/assets/{held-block-view-D0DYh6G5.js → held-block-view-BlzwFREn.js} +1 -1
- package/dist/client/assets/{home-CK5gZJMZ.js → home-grRufnoO.js} +1 -1
- package/dist/client/assets/{home-overview-DuHc-wvZ.js → home-overview-DXw9jW2V.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-9Be5Kz_9.js → hosted-reconcile-DYem52V_.js} +1 -1
- package/dist/client/assets/{icon-button-Cnb4QZQ2.js → icon-button-CrmRSiE7.js} +1 -1
- package/dist/client/assets/{index-MbMJ4XU6.js → index-B1WaFOsQ.js} +1 -1
- package/dist/client/assets/{index-h5M7_u6d.js → index-BAkS3I9t.js} +6 -6
- package/dist/client/assets/{index-DBGg09pY.js → index-BXsKfYZJ.js} +1 -1
- package/dist/client/assets/{index-Cyo61QAa.js → index-BqCBhDK1.js} +1 -1
- package/dist/client/assets/{index-BGgVMoul.js → index-BuNHZe0j.js} +1 -1
- package/dist/client/assets/{index-BmjIBIfS.js → index-BzvjWc_o.js} +1 -1
- package/dist/client/assets/{index-_JW1v87_.js → index-C0knVPih.js} +1 -1
- package/dist/client/assets/{index-DNi8BL3Y.js → index-C9tmAxLB.js} +1 -1
- package/dist/client/assets/{index-qO5SB_wH.js → index-ClyKEqMi.js} +1 -1
- package/dist/client/assets/{index-CVxUE8AG.js → index-CvLxyrnp.js} +1 -1
- package/dist/client/assets/{index-CtSr04e6.js → index-D-nHomQz.js} +1 -1
- package/dist/client/assets/{index-BSAl9MOu.js → index-DLFVDiMO.js} +1 -1
- package/dist/client/assets/{index-Drv2p2KS.js → index-DPrn33Rq.js} +1 -1
- package/dist/client/assets/{index-C0yhoJT-.js → index-DWWehzpr.js} +1 -1
- package/dist/client/assets/{index-4gBtHFrE.js → index-De5CWr6j.js} +1 -1
- package/dist/client/assets/{index-Blc3Q4tn.js → index-Dtfv6swm.js} +1 -1
- package/dist/client/assets/{index-D4q_WpS5.js → index-OpwPUCZR.js} +1 -1
- package/dist/client/assets/{index-redirect-B-ZpFI6V.js → index-redirect-BX1uMWOl.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Do5Bs95Q.js → infiniteQueryObserver-BjwRt0P7.js} +1 -1
- package/dist/client/assets/{infra-billing-COWj38os.js → infra-billing-BtsuEBUg.js} +1 -1
- package/dist/client/assets/{input-DpQVw7n7.js → input-DyQNdUEN.js} +1 -1
- package/dist/client/assets/{input-DCdWeNDX.js → input-KiZyceF0.js} +11 -11
- package/dist/client/assets/{integration-icon-B5Wz15tf.js → integration-icon-xC728oQA.js} +1 -1
- package/dist/client/assets/{item-actions-CXqUCk79.js → item-actions-6XRfzKrK.js} +1 -1
- package/dist/client/assets/{jira-icon-BKxqkTxc.js → jira-icon-DGTJcb2Z.js} +1 -1
- package/dist/client/assets/{label-ByNDPW1G.js → label-C7M6CeY4.js} +1 -1
- package/dist/client/assets/{layout-Vxlf1o8W.js → layout-CXyhUfPs.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-ndm9cCzy.js → legacy-admin-welcome-dialog-BdilK4Du.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DMgm8PW4.js → legacy-agents-deep-B2Qna1Se.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BZMHplqE.js → legacy-main-redirect-EU3nqwLM.js} +1 -1
- package/dist/client/assets/library-BjHFUNKc.js +1 -0
- package/dist/client/assets/{library-tab-Bxhw1Y4E.js → library-tab-Bhd50tYr.js} +1 -1
- package/dist/client/assets/{login-BAvEuYWT.js → login-CP07qecU.js} +1 -1
- package/dist/client/assets/{markdown-wdQvukFe.js → markdown-7s6OBK-6.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-PzEL44dF.js → mcp-app-renderer-DG3_Q3ZF.js} +1 -1
- package/dist/client/assets/{mcp-oauth-C8ipBqY7.js → mcp-oauth-Br6rXuZJ.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ChzDIv6P.js → mcp-oauth-XaS9J9tP.js} +1 -1
- package/dist/client/assets/{members-D9Xtz8bv.js → members-XVVsOLwh.js} +1 -1
- package/dist/client/assets/{memory-Cenm5YiG.js → memory-CTdw0NXy.js} +1 -1
- package/dist/client/assets/{mock-board-CK_3OO-A.js → mock-board-FuXOTgCX.js} +3 -3
- package/dist/client/assets/{monaco-editor-BOl00D7O.js → monaco-editor-DquEynfh.js} +1 -1
- package/dist/client/assets/{monitoring-BWg5UnHg.js → monitoring-CeR9ea8R.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-3Dqx5OO0.js → monitoring-stats-row-BUs3iCrU.js} +1 -1
- package/dist/client/assets/{multi-select-BHBrBKF9.js → multi-select-LRLNCHIK.js} +1 -1
- package/dist/client/assets/{mustache-RaXjfeVp.js → mustache-D-yc8kJS.js} +1 -1
- package/dist/client/assets/{named-rule-step-CDWup8ng.js → named-rule-step-B0cFtbUw.js} +1 -1
- package/dist/client/assets/{named-rule-view-0ILXkgv7.js → named-rule-view-CJ1ry0oG.js} +1 -1
- package/dist/client/assets/{new-project-dialog-L4L31NPq.js → new-project-dialog-CJIzW540.js} +1 -1
- package/dist/client/assets/{new-project-store-gRG3bb0F.js → new-project-store-CUMGMx8W.js} +1 -1
- package/dist/client/assets/{oauth-callback-ClNBH-sv.js → oauth-callback-DIgJqEQi.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CAkTCYjv.js → oauth-callback-ai-provider-CEUK_lVE.js} +1 -1
- package/dist/client/assets/{oauth-consent-CjKOG8Cm.js → oauth-consent-C5gcHrmJ.js} +1 -1
- package/dist/client/assets/{onboarding-mHWmOamf.js → onboarding-Bqbi76HX.js} +1 -1
- package/dist/client/assets/{openai-conversation-CoF8YnH8.js → openai-conversation-CcQ5R9Ji.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DwuDaS_0.js → optimistic-project-sidebar-views-BtdqPF6r.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DcFTm9WF.js → order-monitor-day-B1hF8WjW.js} +1 -1
- package/dist/client/assets/{organization-choice-CVyQSR3o.js → organization-choice-C4PlHT4p.js} +1 -1
- package/dist/client/assets/{orgs-FiDI4ovr.js → orgs-DeLcshXN.js} +1 -1
- package/dist/client/assets/{own-accounts-section-Dr8fJUre.js → own-accounts-section-BslUDvUS.js} +1 -1
- package/dist/client/assets/{pair-DufFAuYI.js → pair-DXYob3uY.js} +1 -1
- package/dist/client/assets/{parse-sections-pp86q8J8.js → parse-sections-CRgnc3CL.js} +2 -2
- package/dist/client/assets/plan-Dzd3-KrG.js +1 -0
- package/dist/client/assets/{plan-ladder-BoR0dEZH.js → plan-ladder-CV9v5egR.js} +1 -1
- package/dist/client/assets/plan-page-Bs_KN9xq.js +6 -0
- package/dist/client/assets/{plan-usage-card-BIWfXczL.js → plan-usage-card-CLZWIQxf.js} +1 -1
- package/dist/client/assets/{popover-BXXtCYra.js → popover-zN1hNT-L.js} +1 -1
- package/dist/client/assets/{post-calendar-By3b8PUh.js → post-calendar-xK-rULPS.js} +1 -1
- package/dist/client/assets/{post-editor-SP9wZiEa.js → post-editor-DUv0sxb3.js} +1 -1
- package/dist/client/assets/{preview-content-DimkdLXi.js → preview-content-CUkQe6Yi.js} +1 -1
- package/dist/client/assets/{preview-dialog-e6FSlo-m.js → preview-dialog-C6O4hB_v.js} +1 -1
- package/dist/client/assets/{preview-panel-lYKWrzV2.js → preview-panel-CKfPvkWs.js} +1 -1
- package/dist/client/assets/{preview-tab-9CUnHIyI.js → preview-tab-CYbb7129.js} +3 -3
- package/dist/client/assets/{primitives-COmgcZSz.js → primitives-TI3e7ruV.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DeX55OcF.js → product-picker-dialog-CWKqQ6-J.js} +1 -1
- package/dist/client/assets/{profile-iyi7XS4l.js → profile-D-BxX6JD.js} +1 -1
- package/dist/client/assets/{project-app-view-7rXYHfnd.js → project-app-view-BGhxEQvx.js} +1 -1
- package/dist/client/assets/{project-apps-C_GEiKx3.js → project-apps-EC6j9CEa.js} +1 -1
- package/dist/client/assets/{project-icon-xkpd5H2A.js → project-icon-DzLoogsD.js} +1 -1
- package/dist/client/assets/{project-index-DYaVxQmQ.js → project-index-BeB0p8jY.js} +1 -1
- package/dist/client/assets/project-reports-gRtUO48c.js +1 -0
- package/dist/client/assets/project-tasks-vDppvwX_.js +1 -0
- package/dist/client/assets/{projects-zPdONEG4.js → projects-Q6qNofYq.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BAV9Ffjo.js → projects-empty-state-BnMrklD7.js} +1 -1
- package/dist/client/assets/{prompts-G3yYbKPD.js → prompts-CzsA1eKf.js} +1 -1
- package/dist/client/assets/record-editor-CIJfEBMQ.js +1 -0
- package/dist/client/assets/{redirect-editor-DTZSFCjX.js → redirect-editor-_Rzldltw.js} +1 -1
- package/dist/client/assets/{reports-jjX900h5.js → reports-BC_FTcir.js} +1 -1
- package/dist/client/assets/reports-D8RgSkdw.js +1 -0
- package/dist/client/assets/{reports-onboarding-BaNp7l8n.js → reports-onboarding-BRKwDg1B.js} +1 -1
- package/dist/client/assets/{reports-tab-DCes_sOj.js → reports-tab-nAGK9OJB.js} +2 -2
- package/dist/client/assets/{repositories-DRSJaviL.js → repositories-DwJmZQ_S.js} +1 -1
- package/dist/client/assets/repositories-fpX5qQ6d.js +1 -0
- package/dist/client/assets/{repository-binding-C2ttJKfq.js → repository-binding-3s1-jerc.js} +1 -1
- package/dist/client/assets/{repository-picker-3iPAo5jF.js → repository-picker-C6LBSgFD.js} +1 -1
- package/dist/client/assets/{require-capability-D00A2gpb.js → require-capability-CROnESqE.js} +1 -1
- package/dist/client/assets/{required-auth-layout-xd1kE6xL.js → required-auth-layout-msTgMG3w.js} +1 -1
- package/dist/client/assets/{reset-password-COr2KZJk.js → reset-password-CR_Pfo3L.js} +1 -1
- package/dist/client/assets/{resizable-xQBWzbNC.js → resizable-CifYESKN.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-2Wq7hmMQ.js → resolve-tab-icon-BWc2PXXt.js} +1 -1
- package/dist/client/assets/{review-settings-DupHsUxt.js → review-settings-BUsFAX4E.js} +1 -1
- package/dist/client/assets/{role-color-Do1LysZx.js → role-color-D1GxSeU5.js} +1 -1
- package/dist/client/assets/{roles-I7CPVpVS.js → roles-BsBfelAx.js} +1 -1
- package/dist/client/assets/route-BsnfBpCB.js +1 -0
- package/dist/client/assets/{route-BHS1eUVp.js → route-C6ggpVup.js} +1 -1
- package/dist/client/assets/{route-DM2qFCGb.js → route-CR_m6nNh.js} +1 -1
- package/dist/client/assets/{route-page-header-Te1-xCL8.js → route-page-header-Bt0DzG3W.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CXVfj6eY.js → sandbox-git-api-4eoXZPwi.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BZAbErHF.js → sandbox-lifecycle-context-YyDgegm5.js} +1 -1
- package/dist/client/assets/{save-status-DBthDxaG.js → save-status-BpImS5FL.js} +1 -1
- package/dist/client/assets/schema-CFHK_oTc.js +1 -0
- package/dist/client/assets/{schema-C0uHzQdv.js → schema-D1fWL_Uz.js} +1 -1
- package/dist/client/assets/{scroll-area-DC4PERKA.js → scroll-area-C44byneR.js} +1 -1
- package/dist/client/assets/{search-input-DmWvIiBD.js → search-input-zqijIb2Z.js} +1 -1
- package/dist/client/assets/{search-toggle-DIzJmBro.js → search-toggle-CxUOME3e.js} +1 -1
- package/dist/client/assets/{secret-picker-BVIZLHNq.js → secret-picker-DrXViE_v.js} +1 -1
- package/dist/client/assets/{secrets-DloYc21B.js → secrets-BSCWBi7n.js} +1 -1
- package/dist/client/assets/{section-array-field-tQPscYBU.js → section-array-field-0bB0SP9C.js} +1 -1
- package/dist/client/assets/{sections-DJ9Uw8Ig.js → sections-2cPOoMVo.js} +1 -1
- package/dist/client/assets/{sections-editor-DOdXmxbf.js → sections-editor-D17rjxVG.js} +1 -1
- package/dist/client/assets/{select-DJrmw6BE.js → select-DWaAXd8R.js} +1 -1
- package/dist/client/assets/{select-model-Oo3WCoc2.js → select-model-WPWRwY1V.js} +1 -1
- package/dist/client/assets/{seo-editor-DcVhskN_.js → seo-editor-DC0TldEc.js} +1 -1
- package/dist/client/assets/{separator-D3J6DIuQ.js → separator-BP-wYzTl.js} +1 -1
- package/dist/client/assets/{session-runtime-C5QSeCzi.js → session-runtime-CKIKfAeL.js} +1 -1
- package/dist/client/assets/settings-tab-De83D02t.js +1 -0
- package/dist/client/assets/{sheet-CaBxNWJg.js → sheet-H_DS9XJb.js} +1 -1
- package/dist/client/assets/{shell-layout-alWzS7OH.js → shell-layout-Br0U0ibo.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BXPpULlW.js → site-draft-actions-ChbTC35-.js} +1 -1
- package/dist/client/assets/{site-draft-view-pN0kLMFB.js → site-draft-view-YI-Ph6Gl.js} +1 -1
- package/dist/client/assets/site-editor-Cxbx95bH.js +1 -0
- package/dist/client/assets/{site-editor-toast-CDwS7PqN.js → site-editor-toast-BITU0E66.js} +1 -1
- package/dist/client/assets/{skills-COrgHtgF.js → skills-VJNxeXgC.js} +1 -1
- package/dist/client/assets/{slider-DlePwAki.js → slider-QPT-NoS7.js} +1 -1
- package/dist/client/assets/{sortable.esm-B-M5LtT1.js → sortable.esm-Doe7TvCi.js} +1 -1
- package/dist/client/assets/{sso-DNjzWg00.js → sso-BB-u0nk0.js} +1 -1
- package/dist/client/assets/{suggestion-C3Yq0VR4.js → suggestion-D8jM7QP6.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DQUSmsww.js → super-agent-icon-B2MlPZDw.js} +1 -1
- package/dist/client/assets/{switch-VNmTvSjQ.js → switch-DJRaFsox.js} +1 -1
- package/dist/client/assets/{synced-repos-Cxcrq7XH.js → synced-repos-XQs80J8E.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Dxg89nxz.js → tab-icon-glyph-DE9hxpjr.js} +1 -1
- package/dist/client/assets/{table-BPa5qlP8.js → table-B5Vk8PsH.js} +1 -1
- package/dist/client/assets/{tabs-gsKK5Z83.js → tabs-yUzyAuHo.js} +1 -1
- package/dist/client/assets/{task-board-DPQVIG08.js → task-board-_VqItTnn.js} +1 -1
- package/dist/client/assets/{task-key-CvnKgot5.js → task-key-HCYxchZ-.js} +1 -1
- package/dist/client/assets/{task-route-4Ffx__zo.js → task-route-DkFPGqqO.js} +1 -1
- package/dist/client/assets/{task-status-D_kG2AxO.js → task-status-xDg37uwv.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-qYx0x7wk.js → taskboard-analytics-16bhCjJF.js} +1 -1
- package/dist/client/assets/tasks-CRzQv2kZ.js +1 -0
- package/dist/client/assets/{tasks-BKbLDNZi.js → tasks-CbsSW8RH.js} +1 -1
- package/dist/client/assets/{textarea-D4AETCzr.js → textarea-Dyd14nGh.js} +1 -1
- package/dist/client/assets/{thread-analytics-Cq43267h.js → thread-analytics-Bg5H7a2G.js} +1 -1
- package/dist/client/assets/{thread-button-C6bVNcWa.js → thread-button-DJivMuaE.js} +1 -1
- package/dist/client/assets/{thread-intent-CWcX0xIz.js → thread-intent-Bc3EWL8B.js} +1 -1
- package/dist/client/assets/{thread-route-Bmhkgc3V.js → thread-route-BVbiqt2D.js} +1 -1
- package/dist/client/assets/{thread-route-DbIj-4pl.js → thread-route-CO4GyP6M.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Bh7Y8gpc.js → thread-sheet-body-xcI19ecO.js} +1 -1
- package/dist/client/assets/{time-range-picker-D_itCFav.js → time-range-picker-Kw3fXzvx.js} +1 -1
- package/dist/client/assets/{toggle-group-ChIbd7yf.js → toggle-group-D587KudN.js} +1 -1
- package/dist/client/assets/{tool-set-selector-DxNU0Tk2.js → tool-set-selector-BOpAW5Y1.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DfwHzQ1U.js → toolbar-icon-button-CkaO9hY_.js} +1 -1
- package/dist/client/assets/{tooltip-qtRvoONv.js → tooltip-Duum-wbC.js} +1 -1
- package/dist/client/assets/{tooltipContext-CQ-o3RLp.js → tooltipContext-CGwQLnqp.js} +1 -1
- package/dist/client/assets/{track-1YUi_zXD.js → track-BGMQL3S3.js} +1 -1
- package/dist/client/assets/{types-Dbc1mwzs.js → types-93zYNLaG.js} +1 -1
- package/dist/client/assets/{url-slug-C69P-992.js → url-slug-Bxh093Yo.js} +1 -1
- package/dist/client/assets/{usage-stats-9t2_M-_X.js → usage-stats-CG0HF4aR.js} +1 -1
- package/dist/client/assets/use-ai-providers-jcWnR4kL.js +1 -0
- package/dist/client/assets/{use-api-keys-CoQYKZvm.js → use-api-keys-D2JjTG-i.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-C6c41pMd.js → use-apply-named-rule-Cgp8LbdQ.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-BgJT5viH.js +1 -0
- package/dist/client/assets/{use-automations-DiAkQCce.js → use-automations-CCRh6J1K.js} +1 -1
- package/dist/client/assets/{use-autosave-CFd8OFFM.js → use-autosave-BcvItCaI.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-Bt5ze2gk.js +1 -0
- package/dist/client/assets/use-blog-view-D_th-kMW.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-0GuH45Fr.js → use-chat-layout-state-BHHHG0at.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-_hVvxJuC.js → use-cms-publish-actions-D4bs5F-E.js} +1 -1
- package/dist/client/assets/{use-connect-companion-HmjPTaqN.js → use-connect-companion-1EdDS_t5.js} +1 -1
- package/dist/client/assets/{use-connection-DEfaQgjd.js → use-connection-qfJQ-1Sx.js} +1 -1
- package/dist/client/assets/{use-content-sync-DY1Xa83w.js → use-content-sync-mcWKgd2x.js} +1 -1
- package/dist/client/assets/{use-copy-Ctkoq0el.js → use-copy-B0bJTc_A.js} +1 -1
- package/dist/client/assets/{use-current-view-Osva99rG.js → use-current-view-BveVb2BS.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BFjNToES.js → use-date-fns-locale-LScEMdLm.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CMjXPDh8.js → use-debounced-autosave-bJmRfXGh.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C0H-A83Z.js → use-debounced-value-DfrfrzHX.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DbIY0apq.js → use-deco-credits-Bg3ufOSK.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Br-3bz6F.js → use-decopilot-events-Df7BUQ9K.js} +1 -1
- package/dist/client/assets/{use-delete-block-9G55uQNy.js → use-delete-block-6fX0bkwu.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CNNeNYak.js → use-delete-connection-WCBhvytS.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Cma9Q0Nv.js → use-deployment-admin-9g3NnFUn.js} +1 -1
- package/dist/client/assets/{use-entitlements-CZg-IfPI.js → use-entitlements-DfsP8gtu.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-YkfRp5Y5.js → use-fast-preview-draft-url-X0WNIRyx.js} +1 -1
- package/dist/client/assets/{use-file-configs-BN106-dD.js → use-file-configs-DXrGvvLv.js} +1 -1
- package/dist/client/assets/{use-id-selection-v4dQRyB7.js → use-id-selection-BDavG4Tw.js} +1 -1
- package/dist/client/assets/{use-in-settings-CSD80tC3.js → use-in-settings-B3WNh2Ct.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-C4vHMqjF.js → use-inbox-feed-B1XRnR81.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-xMb15Ejb.js → use-infinite-scroll-zbNj6V3y.js} +1 -1
- package/dist/client/assets/{use-join-requests-Csz7IV7s.js → use-join-requests-DpyRq5P-.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BkO-TGsR.js → use-main-panel-tabs-BT_eBxjW.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-12_RYXF3.js → use-mcp-auth-status-CAcXwsqK.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CH6bskGM.js → use-mcp-client-hdH8Uz6-.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Nf2vBxrv.js → use-mcp-prompts-Bo4GYlhV.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cp5tZy-C.js → use-mcp-tools-qc6hBXfj.js} +1 -1
- package/dist/client/assets/{use-mobile-VHSlVnL-.js → use-mobile-U0e6QGNo.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DKWJxUtt.js → use-move-blocks-DxPhfmd5.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CnyUBPgz.js → use-navigate-to-agent-D9o_GRS4.js} +1 -1
- package/dist/client/assets/{use-never-published-o664b5-M.js → use-never-published-CKGn23rS.js} +1 -1
- package/dist/client/assets/{use-org-fs-bkWpzofB.js → use-org-fs-DlJPLDns.js} +1 -1
- package/dist/client/assets/{use-org-notice-BooyLawP.js → use-org-notice-BwrJDiul.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D8xHYdtx.js → use-org-repo-syncs-CkYZAGbj.js} +1 -1
- package/dist/client/assets/{use-org-sso-Cj-99lvX.js → use-org-sso-Cy23Rsh-.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bjs-pync.js → use-organization-settings-CK7vcd9v.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Cu4M1nkN.js → use-panel-navigate-DcQ09zcF.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-eDVIFrSv.js → use-project-native-view-presence-VcQ4wphD.js} +1 -1
- package/dist/client/assets/{use-project-scope-BDInf_KX.js → use-project-scope-DrIhuPRp.js} +1 -1
- package/dist/client/assets/{use-recent-apps-KlCOfma9.js → use-recent-apps-B7Pqr9ul.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Ds5b1C3b.js → use-reports-diagnostic-DLtkhYdg.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CciPXt5C.js → use-sandbox-events-C82W1a6-.js} +1 -1
- package/dist/client/assets/{use-secrets-C8uw__8j.js → use-secrets-C-GxHGg1.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-eeUG5sYr.js → use-section-preview-base-zzj5ZM4R.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BijNCAag.js → use-sidebar-collapsed-CRNsdAbB.js} +1 -1
- package/dist/client/assets/{use-tags-Ci9KoBHX.js → use-tags-SlNFtcxF.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-t93pM_aV.js → use-task-board-analytics-B8bUEPqV.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CPEdqE2N.js → use-task-board-item-prs-DXr8--1F.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CbzznfFt.js → use-task-board-items-DpI5X1-L.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-CavOml8i.js → use-task-board-prompts-xQb3froZ.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Vyk2w4F6.js → use-task-metadata-NKQ3nvsW.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DZyh4ROf.js → use-thread-outputs-BXlCD20Z.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-C3o_ZEOa.js → use-view-draft-kind-ZpRr9xSn.js} +1 -1
- package/dist/client/assets/{use-voice-input-DoWLxn0F.js → use-voice-input-DGpNCylm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D_OScDhL.js +1 -0
- package/dist/client/assets/{useQueries-lODZBARU.js → useQueries-BTdYDVOD.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B8OZl3RL.js +1 -0
- package/dist/client/assets/{users-CwtBqC8p.js → users-DaZoKAx4.js} +1 -1
- package/dist/client/assets/{utils-7dvG3Zcx.js → utils-DRn4O7AD.js} +1 -1
- package/dist/client/assets/{variant-calendar-CYrpUTQb.js → variant-calendar-NMOykMzc.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CbdFpu2V.js → variant-matcher-override-Cjj7k-fb.js} +1 -1
- package/dist/client/assets/{view-header-IBc_XU-f.js → view-header-CVNhMeEP.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C7awt5vu.js → virtual-mcp-DQXPz7Kb.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DaE5QfID.js → watch-sse-pool-CHnEHgBL.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +765 -765
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CY_peY26.js +0 -1
- package/dist/client/assets/agent-deck-BO0opKup.js +0 -1
- package/dist/client/assets/agent-experiments-CW7C-fZV.js +0 -1
- package/dist/client/assets/agent-file-DvQOcO5j.js +0 -1
- package/dist/client/assets/agent-library-BOVPDlx0.js +0 -1
- package/dist/client/assets/agent-library-file-CwKgVo3C.js +0 -1
- package/dist/client/assets/agent-overview-BlpKGy6_.js +0 -1
- package/dist/client/assets/agent-settings-CfA0v4u2.js +0 -1
- package/dist/client/assets/agent-site-editor-code-C0aN3J0F.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DFf7AvSd.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DuAYz352.js +0 -1
- package/dist/client/assets/agent-view-Dn0R3JvN.js +0 -1
- package/dist/client/assets/api-keys-Cfgf_CFf.js +0 -1
- package/dist/client/assets/chat-context-P9WWU84F.js +0 -44
- package/dist/client/assets/library-_WNCXPDS.js +0 -1
- package/dist/client/assets/plan-DQJ8rFRb.js +0 -1
- package/dist/client/assets/plan-page-DrTD0TsJ.js +0 -6
- package/dist/client/assets/project-reports-C7WT1YdD.js +0 -1
- package/dist/client/assets/project-tasks-DmIKhvKo.js +0 -1
- package/dist/client/assets/record-editor-DA6Q-jo_.js +0 -1
- package/dist/client/assets/reports-CxlZrs39.js +0 -1
- package/dist/client/assets/repositories-D9MHG-uk.js +0 -1
- package/dist/client/assets/route-ClMamn6O.js +0 -1
- package/dist/client/assets/schema-BXI5WQ8i.js +0 -1
- package/dist/client/assets/settings-tab-C6vXsH9X.js +0 -1
- package/dist/client/assets/site-editor-DOVMxVDH.js +0 -1
- package/dist/client/assets/tasks-CgHumZoi.js +0 -1
- package/dist/client/assets/use-ai-providers-CPLEUkQr.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BFd6fUkH.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-DfywwZ6H.js +0 -1
- package/dist/client/assets/use-blog-view-L6u-6Gn9.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D_KzZebo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DsyXMTZy.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BAvEuYWT.js","assets/auth-entry-B6NVYIyy.js","assets/Fingerprint04-B53NZ2UJ.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-CcKew0_d.js","assets/legacy-admin-welcome-dialog-ndm9cCzy.js","assets/drawer-BysblPi2.js","assets/use-mobile-VHSlVnL-.js","assets/cli-auth-success-B-EVIYaI.js","assets/oauth-callback-ClNBH-sv.js","assets/mcp-oauth-ChzDIv6P.js","assets/auth-CFZV8LNa.js","assets/oauth-consent-CjKOG8Cm.js","assets/layout-Vxlf1o8W.js","assets/required-auth-layout-xd1kE6xL.js","assets/use-deployment-admin-Cma9Q0Nv.js","assets/users-CwtBqC8p.js","assets/collection-table-wrapper-B_FURvd1.js","assets/table-BPa5qlP8.js","assets/ArrowUp-DJuAHozT.js","assets/empty-state-z8d6CDxb.js","assets/search-input-DmWvIiBD.js","assets/SearchMd-BVGIdSgF.js","assets/badge-BEIqpSWr.js","assets/use-debounced-value-C0H-A83Z.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-FiDI4ovr.js","assets/label-ByNDPW1G.js","assets/select-DJrmw6BE.js","assets/index-BdQq_4o_.js","assets/index-DBGg09pY.js","assets/ChevronDown-BoX4T_5s.js","assets/ChevronUp-BRofWs4w.js","assets/switch-VNmTvSjQ.js","assets/textarea-D4AETCzr.js","assets/roles-DW32thi2.js","assets/schema-BXI5WQ8i.js","assets/prompts-G3yYbKPD.js","assets/shell-layout-alWzS7OH.js","assets/Globe04-BPI-tBR7.js","assets/UserSquare-BruOWifD.js","assets/agent-icon-BUzPMbYp.js","assets/AlertCircle-fMLnhe4N.js","assets/UserCheck01-DcUjByxP.js","assets/Tool01-XvjOBq9P.js","assets/ArrowLeft-BpQY_4Hb.js","assets/ArrowRight-IsxFGu7t.js","assets/BookOpen01-BiHF6zzZ.js","assets/CheckCircle-Dr7_heit.js","assets/ChevronSelectorVertical-D1NaGS7F.js","assets/LinkBroken01-DIf0b0rn.js","assets/CreditCard01-ZTRIvIDz.js","assets/File02-FY6zCZeY.js","assets/MessageCircle01-B10kr5uX.js","assets/SwitchHorizontal01-DmJYUvGl.js","assets/Eye-BivmnvvE.js","assets/Image01-CcDDqrAs.js","assets/Key01-lhYXuGDp.js","assets/LayoutLeft-xchgd5Yi.js","assets/Minus-DnwYSFGD.js","assets/Monitor01-Dlx-hfNO.js","assets/Sun-lT-uDm7m.js","assets/Play-D05aqmG8.js","assets/Plus-3ew-qzRg.js","assets/ShoppingBag01-Bp-vqf9J.js","assets/Trash01-BAd16zlB.js","assets/Upload01-UYtGRq9J.js","assets/Users01-COqq34au.js","assets/XClose-CnRhNuQH.js","assets/Zap-BIlzDOzm.js","assets/use-org-notice-BooyLawP.js","assets/thread-intent-CWcX0xIz.js","assets/use-mcp-client-CH6bskGM.js","assets/watch-sse-pool-DaE5QfID.js","assets/task-board-DPQVIG08.js","assets/session-runtime-C5QSeCzi.js","assets/use-project-scope-BDInf_KX.js","assets/repository-binding-C2ttJKfq.js","assets/use-panel-navigate-Cu4M1nkN.js","assets/thread-route-DbIj-4pl.js","assets/command-DET2-o7x.js","assets/index-DNi8BL3Y.js","assets/integration-icon-B5Wz15tf.js","assets/project-icon-xkpd5H2A.js","assets/use-navigate-to-agent-CnyUBPgz.js","assets/new-project-dialog-L4L31NPq.js","assets/repository-picker-3iPAo5jF.js","assets/tooltip-qtRvoONv.js","assets/github-icon-CD6EsDXg.js","assets/useInfiniteQuery-D_KzZebo.js","assets/infiniteQueryObserver-Do5Bs95Q.js","assets/collection-search-BpBt8YLH.js","assets/use-organization-settings-Bjs-pync.js","assets/new-project-store-gRG3bb0F.js","assets/use-view-draft-kind-C3o_ZEOa.js","assets/use-blog-view-L6u-6Gn9.js","assets/use-org-sso-Cj-99lvX.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-mHWmOamf.js","assets/organization-choice-CVyQSR3o.js","assets/reports-onboarding-BaNp7l8n.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-CfFS4qOF.js","assets/form-Z5FeDYMO.js","assets/companion-mcps-section-DneX7Jzv.js","assets/use-connect-companion-HmjPTaqN.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-Cnb4QZQ2.js","assets/useQueries-lODZBARU.js","assets/authenticate-and-persist-oauth-B3x0DVvj.js","assets/mcp-oauth-C8ipBqY7.js","assets/track-1YUi_zXD.js","assets/extract-connection-data-BauA6Mrh.js","assets/connection-Y7iFDql6.js","assets/url-slug-C69P-992.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-Biv3zv_l.js","assets/site-editor-DOVMxVDH.js","assets/chat-context-P9WWU84F.js","assets/use-entitlements-CZg-IfPI.js","assets/use-ai-providers-CPLEUkQr.js","assets/use-current-view-Osva99rG.js","assets/use-in-settings-CSD80tC3.js","assets/use-decopilot-events-Br-3bz6F.js","assets/use-org-fs-bkWpzofB.js","assets/index-_JW1v87_.js","assets/thread-button-C6bVNcWa.js","assets/use-sidebar-collapsed-BijNCAag.js","assets/sheet-CaBxNWJg.js","assets/use-chat-layout-state-0GuH45Fr.js","assets/toolbar-icon-button-DfwHzQ1U.js","assets/resizable-xQBWzbNC.js","assets/route-page-header-Te1-xCL8.js","assets/index-D4q_WpS5.js","assets/task-key-CvnKgot5.js","assets/sortable.esm-B-M5LtT1.js","assets/context-menu-Bc9ShJiW.js","assets/project-apps-C_GEiKx3.js","assets/use-recent-apps-KlCOfma9.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-nT1WU50c.js","assets/site-editor-toast-CDwS7PqN.js","assets/content-changes-Cz_QO8b-.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-CciPXt5C.js","assets/use-blocks-v8-project-DfywwZ6H.js","assets/use-voice-input-DoWLxn0F.js","assets/popover-BXXtCYra.js","assets/index-BSAl9MOu.js","assets/checkbox-CH7V0LA5.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-7dvG3Zcx.js","assets/sandbox-git-api-CXVfj6eY.js","assets/preview-tab-9CUnHIyI.js","assets/save-status-DBthDxaG.js","assets/use-never-published-o664b5-M.js","assets/hosted-reconcile-9Be5Kz_9.js","assets/blocks-tab-states-C8b6r-Rr.js","assets/tabs-gsKK5Z83.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-BN106-dD.js","assets/asset-utils-DI8Mkfk2.js","assets/usage-stats-9t2_M-_X.js","assets/utils-CVEq3hMx.js","assets/markdown-wdQvukFe.js","assets/use-copy-Ctkoq0el.js","assets/gateway-client-PxuT6Cn_.js","assets/toggle-group-ChIbd7yf.js","assets/match-site-slug-config-B47_xZCi.js","assets/sandbox-lifecycle-context-BZAbErHF.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/frame-navigation-CziYTYxO.js","assets/variant-matcher-override-CbdFpu2V.js","assets/section-array-field-tQPscYBU.js","assets/use-fast-preview-draft-url-YkfRp5Y5.js","assets/parse-sections-pp86q8J8.js","assets/held-block-view-D0DYh6G5.js","assets/calendar-BniyEQBg.js","assets/editor-classes-CxIZNugt.js","assets/category-tree-BvOKDXJP.js","assets/pair-DufFAuYI.js","assets/collapsible-CUjrXLIK.js","assets/use-task-board-items-CbzznfFt.js","assets/config-CNL9isfS.js","assets/task-route-4Ffx__zo.js","assets/project-index-DYaVxQmQ.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-PzEL44dF.js","assets/types-Dbc1mwzs.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-DEfaQgjd.js","assets/use-mcp-prompts-Nf2vBxrv.js","assets/use-thread-outputs-DZyh4ROf.js","assets/file-type-icon-CoN_4-an.js","assets/named-rule-step-CDWup8ng.js","assets/slider-DlePwAki.js","assets/index-CtSr04e6.js","assets/tooltipContext-CQ-o3RLp.js","assets/CategoricalChart-CBDGrcDZ.js","assets/index-Cyo61QAa.js","assets/combobox-27ivRGzf.js","assets/scroll-area-DC4PERKA.js","assets/monaco-editor-BOl00D7O.js","assets/editor-BtdaQuHN.js","assets/blog-preview-url-DnJG6GIX.js","assets/device-hint-D3HMygEx.js","assets/alert-C_fRLJHt.js","assets/virtual-mcp-C7awt5vu.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-EFJ460FZ.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-Vyk2w4F6.js","assets/content-tab-DKZOC0hz.js","assets/delete-copy-B9XfUYuD.js","assets/index-BmjIBIfS.js","assets/view-header-IBc_XU-f.js","assets/use-cms-publish-actions-_hVvxJuC.js","assets/use-content-sync-DY1Xa83w.js","assets/use-delete-block-9G55uQNy.js","assets/item-actions-CXqUCk79.js","assets/date-utils-CrvIKg-s.js","assets/empty-state-BTtJHydu.js","assets/primitives-COmgcZSz.js","assets/use-move-blocks-DKWJxUtt.js","assets/mustache-RaXjfeVp.js","assets/tab-icon-glyph-Dxg89nxz.js","assets/resolve-tab-icon-2Wq7hmMQ.js","assets/agent-site-editor-D1Fw_nHF.js","assets/site-draft-actions-BXPpULlW.js","assets/separator-D3J6DIuQ.js","assets/cms-store-drafts-D9aD7eqZ.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-4gBtHFrE.js","assets/input-DCdWeNDX.js","assets/chat-draft-CUtr-Qmf.js","assets/use-deco-credits-DbIY0apq.js","assets/input-DpQVw7n7.js","assets/suggestion-C3Yq0VR4.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-Bl4fn5Eu.js","assets/plan-ladder-BoR0dEZH.js","assets/add-connection-dialog-BjecimOb.js","assets/connection-card-BoZq0Qgr.js","assets/connection-slug-oFV7q3Mr.js","assets/schema-C0uHzQdv.js","assets/connection-form-helpers-B9uzJgKt.js","assets/collection-tabs-C2qlQv4k.js","assets/use-infinite-scroll-xMb15Ejb.js","assets/useSuspenseInfiniteQuery-DsyXMTZy.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-pN0kLMFB.js","assets/blog-view-gate-C8Zoi37Q.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-jjX900h5.js","assets/reports-Dl0n8WK0.css","assets/route-BHS1eUVp.js","assets/use-inbox-feed-C4vHMqjF.js","assets/super-agent-icon-DQUSmsww.js","assets/optimistic-project-sidebar-views-DwuDaS_0.js","assets/use-project-native-view-presence-eDVIFrSv.js","assets/own-accounts-section-Dr8fJUre.js","assets/use-date-fns-locale-BFjNToES.js","assets/daily-pulse-BxRZmy88.js","assets/use-join-requests-Csz7IV7s.js","assets/thread-route-Bmhkgc3V.js","assets/use-reports-diagnostic-Ds5b1C3b.js","assets/connect-layout-CvRxptQC.js","assets/route-DM2qFCGb.js","assets/task-status-D_kG2AxO.js","assets/use-main-panel-tabs-BkO-TGsR.js","assets/use-mcp-tools-Cp5tZy-C.js","assets/legacy-main-redirect-BZMHplqE.js","assets/preview-dialog-e6FSlo-m.js","assets/preview-content-DimkdLXi.js","assets/file-share-button-B3Eso6F1.js","assets/file-preview-jYURLVeg.js","assets/home-CK5gZJMZ.js","assets/home-overview-DuHc-wvZ.js","assets/connect-key-e72ndoQz.js","assets/use-api-keys-CoQYKZvm.js","assets/chart-CNx1WxLV.js","assets/CartesianChart-GgdJZ46f.js","assets/ReferenceLine-C6RjSes1.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-BAV9Ffjo.js","assets/agent-overview-BlpKGy6_.js","assets/project-tasks-DmIKhvKo.js","assets/mock-board-CK_3OO-A.js","assets/use-task-board-analytics-t93pM_aV.js","assets/use-task-board-prompts-CavOml8i.js","assets/use-automations-DiAkQCce.js","assets/search-toggle-DIzJmBro.js","assets/use-tags-Ci9KoBHX.js","assets/index-Drv2p2KS.js","assets/index-C0yhoJT-.js","assets/use-task-board-item-prs-CPEdqE2N.js","assets/thread-sheet-body-Bh7Y8gpc.js","assets/feature-gate-BE5292u7.js","assets/project-reports-C7WT1YdD.js","assets/reports-tab-DCes_sOj.js","assets/project-profile-dMAv1_XF.js","assets/agent-blog-DBkq-Lqv.js","assets/blog-source-gate-ChzKUgJB.js","assets/agent-view-guard-COVmXMDj.js","assets/agent-blog-post-C7MCFiHJ.js","assets/agent-site-editor-preview-DuAYz352.js","assets/agent-site-editor-content-DFf7AvSd.js","assets/agent-site-editor-code-C0aN3J0F.js","assets/agent-automations-B0cI5z7i.js","assets/automation-list-row-CmOp_sRJ.js","assets/agent-automation-Cs5PlhS_.js","assets/select-model-Oo3WCoc2.js","assets/build-improve-prompt-doc-DSYOXwvq.js","assets/use-debounced-autosave-CMjXPDh8.js","assets/jira-icon-BKxqkTxc.js","assets/multi-select-BHBrBKF9.js","assets/automation-runs-GGr3q_t6.js","assets/use-id-selection-v4dQRyB7.js","assets/agent-settings-CfA0v4u2.js","assets/context-shell-Dk2xTCQ_.js","assets/require-capability-D00A2gpb.js","assets/access-gate-C0BZk8c2.js","assets/capability-load-error-BzUBNDCP.js","assets/sections-DJ9Uw8Ig.js","assets/use-ask-in-chat-BFd6fUkH.js","assets/index-Blc3Q4tn.js","assets/use-mcp-auth-status-12_RYXF3.js","assets/secret-picker-BVIZLHNq.js","assets/use-secrets-C8uw__8j.js","assets/agent-library-BOVPDlx0.js","assets/library-tab-Bxhw1Y4E.js","assets/use-org-repo-syncs-D8xHYdtx.js","assets/folder-icon-BzaGAHF2.js","assets/agent-assets-B3xVIbjO.js","assets/agent-releases-CAwZrvbX.js","assets/agent-hosting-eAcCsqG1.js","assets/settings-tab-C6vXsH9X.js","assets/agent-e2e-BAdG01pL.js","assets/taskboard-analytics-qYx0x7wk.js","assets/time-range-picker-D_itCFav.js","assets/analytics-sections-OYaPNXoo.js","assets/AreaChart-BIuRZ0AZ.js","assets/agent-experiments-CW7C-fZV.js","assets/experiments-tab-choice-D9gXTAbE.js","assets/named-rule-view-0ILXkgv7.js","assets/use-apply-named-rule-C6c41pMd.js","assets/agent-calendar-Cu-bFn_1.js","assets/agent-app-CY_peY26.js","assets/project-app-view-7rXYHfnd.js","assets/connect-source-dialog-D77DpEgz.js","assets/agent-view-Dn0R3JvN.js","assets/agent-file-DvQOcO5j.js","assets/agent-deck-BO0opKup.js","assets/agent-library-file-CwKgVo3C.js","assets/preview-panel-lYKWrzV2.js","assets/agent-connect-sources-DWW4lIzl.js","assets/legacy-agents-deep-DMgm8PW4.js","assets/tasks-CgHumZoi.js","assets/thread-analytics-Cq43267h.js","assets/reports-CxlZrs39.js","assets/library-_WNCXPDS.js","assets/plan-DQJ8rFRb.js","assets/plan-page-DrTD0TsJ.js","assets/plan-page-Ce0nH0bn.css","assets/monitoring-BWg5UnHg.js","assets/order-monitor-day-DcFTm9WF.js","assets/Tooltip-cp6B_p4W.js","assets/monitoring-D_tSeZWt.css","assets/agent-business-case-DGNDHfy8.js","assets/discover-CdZx7BRU.js","assets/index-MbMJ4XU6.js","assets/route-ClMamn6O.js","assets/plan-usage-card-BIWfXczL.js","assets/index-redirect-B-ZpFI6V.js","assets/connection-detail-BnCsN0WR.js","assets/index-qO5SB_wH.js","assets/index-CVxUE8AG.js","assets/use-delete-connection-CNNeNYak.js","assets/monitoring-stats-row-3Dqx5OO0.js","assets/collection-detail-CpQCmGv5.js","assets/index-BGgVMoul.js","assets/general-ChYADWnU.js","assets/review-settings-DupHsUxt.js","assets/domain-settings-DBkhaw5J.js","assets/connect-DfUKQrO1.js","assets/api-keys-CvOJ2C6O.js","assets/tool-set-selector-DxNU0Tk2.js","assets/ai-providers-Dbisg2_X.js","assets/infra-billing-COWj38os.js","assets/secrets-DloYc21B.js","assets/api-keys-Cfgf_CFf.js","assets/buckets-BJgVyZGc.js","assets/repositories-D9MHG-uk.js","assets/repositories-DRSJaviL.js","assets/synced-repos-Cxcrq7XH.js","assets/tasks-BKbLDNZi.js","assets/projects-zPdONEG4.js","assets/members-D9Xtz8bv.js","assets/collection-display-button-Q9wOiUuQ.js","assets/role-color-Do1LysZx.js","assets/roles-I7CPVpVS.js","assets/sso-DNjzWg00.js","assets/profile-iyi7XS4l.js","assets/automations-FO50hUU_.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-CP07qecU.js","assets/auth-entry-Dgm3aW_D.js","assets/Fingerprint04-e81t2Rsp.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-07QqI3zO.js","assets/legacy-admin-welcome-dialog-BdilK4Du.js","assets/drawer-DXadnv_8.js","assets/use-mobile-U0e6QGNo.js","assets/cli-auth-success-C9k5mfK6.js","assets/oauth-callback-DIgJqEQi.js","assets/mcp-oauth-XaS9J9tP.js","assets/auth-xKzEv0UZ.js","assets/oauth-consent-C5gcHrmJ.js","assets/layout-CXyhUfPs.js","assets/required-auth-layout-msTgMG3w.js","assets/use-deployment-admin-9g3NnFUn.js","assets/users-DaZoKAx4.js","assets/collection-table-wrapper-BWN3xqpw.js","assets/table-B5Vk8PsH.js","assets/ArrowUp-BBzcACTp.js","assets/empty-state-Bq2pKAom.js","assets/search-input-zqijIb2Z.js","assets/SearchMd-BjPfVKIV.js","assets/badge-CFl-sPcD.js","assets/use-debounced-value-DfrfrzHX.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-DeLcshXN.js","assets/label-C7M6CeY4.js","assets/select-DWaAXd8R.js","assets/index-BdQq_4o_.js","assets/index-BXsKfYZJ.js","assets/ChevronDown-C50rJcMj.js","assets/ChevronUp-D_FfEHpT.js","assets/switch-DJRaFsox.js","assets/textarea-Dyd14nGh.js","assets/roles-DW32thi2.js","assets/schema-CFHK_oTc.js","assets/prompts-CzsA1eKf.js","assets/shell-layout-Br0U0ibo.js","assets/Globe04-B8ATzfZn.js","assets/UserSquare-BEv7rm2k.js","assets/agent-icon-BULE2fWe.js","assets/AlertCircle-CMQV10zH.js","assets/UserCheck01-CgjnWNg9.js","assets/Tool01-CcGB7LBy.js","assets/ArrowLeft-C8Ca9SGj.js","assets/ArrowRight-D_qjUhKl.js","assets/BookOpen01-rTD8nhQf.js","assets/CheckCircle-Dsrl0sYA.js","assets/ChevronSelectorVertical-Djt3ttKm.js","assets/LinkBroken01-DdYCDQYH.js","assets/CreditCard01-C86YFFFO.js","assets/File02-Bqga0RpU.js","assets/MessageCircle01-BpQQiBmH.js","assets/SwitchHorizontal01-B39ZJ4UZ.js","assets/Eye-B6cCPf8y.js","assets/Image01-BhuNuoo8.js","assets/Key01-DgTKBiC1.js","assets/LayoutLeft-NdGA068i.js","assets/Minus-DgevTSUu.js","assets/Monitor01-QPUul6iy.js","assets/Sun-D-TVq6e8.js","assets/Play-B7Twjw53.js","assets/Plus-SDHe97GR.js","assets/ShoppingBag01-BOP8iPvg.js","assets/Trash01-Dd6dddL6.js","assets/Upload01-Ceg_L_zO.js","assets/Users01-CDMnI452.js","assets/XClose-DhprECXU.js","assets/Zap-CxCLKK5S.js","assets/use-org-notice-BwrJDiul.js","assets/thread-intent-Bc3EWL8B.js","assets/use-mcp-client-hdH8Uz6-.js","assets/watch-sse-pool-CHnEHgBL.js","assets/task-board-_VqItTnn.js","assets/session-runtime-CKIKfAeL.js","assets/use-project-scope-DrIhuPRp.js","assets/repository-binding-3s1-jerc.js","assets/use-panel-navigate-DcQ09zcF.js","assets/thread-route-CO4GyP6M.js","assets/command-Bx6bzwV3.js","assets/index-C9tmAxLB.js","assets/integration-icon-xC728oQA.js","assets/project-icon-DzLoogsD.js","assets/use-navigate-to-agent-D9o_GRS4.js","assets/new-project-dialog-CJIzW540.js","assets/repository-picker-C6LBSgFD.js","assets/tooltip-Duum-wbC.js","assets/github-icon-BiXr0BnT.js","assets/useInfiniteQuery-D_OScDhL.js","assets/infiniteQueryObserver-BjwRt0P7.js","assets/collection-search-BMrWPTLQ.js","assets/use-organization-settings-CK7vcd9v.js","assets/new-project-store-CUMGMx8W.js","assets/use-view-draft-kind-ZpRr9xSn.js","assets/use-blog-view-D_th-kMW.js","assets/use-org-sso-Cy23Rsh-.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-Bqbi76HX.js","assets/organization-choice-C4PlHT4p.js","assets/reports-onboarding-BRKwDg1B.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-C6kVfnSi.js","assets/form-DC0J7PuZ.js","assets/companion-mcps-section-C9QnKnjT.js","assets/use-connect-companion-1EdDS_t5.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-CrmRSiE7.js","assets/useQueries-BTdYDVOD.js","assets/authenticate-and-persist-oauth-CKZj1IUu.js","assets/mcp-oauth-Br6rXuZJ.js","assets/track-BGMQL3S3.js","assets/extract-connection-data-qg3jBD1i.js","assets/connection-BlQeEUPX.js","assets/url-slug-Bxh093Yo.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-DxwGBSym.js","assets/site-editor-Cxbx95bH.js","assets/chat-context-5XiEKH4L.js","assets/use-entitlements-DfsP8gtu.js","assets/use-ai-providers-jcWnR4kL.js","assets/use-current-view-BveVb2BS.js","assets/use-in-settings-B3WNh2Ct.js","assets/use-decopilot-events-Df7BUQ9K.js","assets/use-org-fs-DlJPLDns.js","assets/index-C0knVPih.js","assets/thread-button-DJivMuaE.js","assets/use-sidebar-collapsed-CRNsdAbB.js","assets/sheet-H_DS9XJb.js","assets/use-chat-layout-state-BHHHG0at.js","assets/toolbar-icon-button-CkaO9hY_.js","assets/resizable-CifYESKN.js","assets/route-page-header-Bt0DzG3W.js","assets/index-OpwPUCZR.js","assets/task-key-HCYxchZ-.js","assets/sortable.esm-Doe7TvCi.js","assets/context-menu-DI3Zl6jz.js","assets/project-apps-EC6j9CEa.js","assets/use-recent-apps-B7Pqr9ul.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-DBjLLOwy.js","assets/site-editor-toast-BITU0E66.js","assets/content-changes-C1IdGdFF.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-C82W1a6-.js","assets/use-blocks-v8-project-Bt5ze2gk.js","assets/use-voice-input-DGpNCylm.js","assets/popover-zN1hNT-L.js","assets/index-DLFVDiMO.js","assets/checkbox-8SyXZvGW.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-DRn4O7AD.js","assets/sandbox-git-api-4eoXZPwi.js","assets/preview-tab-CYbb7129.js","assets/save-status-BpImS5FL.js","assets/use-never-published-CKGn23rS.js","assets/hosted-reconcile-DYem52V_.js","assets/blocks-tab-states-Bz9ljtyl.js","assets/tabs-yUzyAuHo.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-DXrGvvLv.js","assets/asset-utils-B3p_FXzZ.js","assets/usage-stats-CG0HF4aR.js","assets/utils-CVEq3hMx.js","assets/markdown-7s6OBK-6.js","assets/use-copy-B0bJTc_A.js","assets/gateway-client-7v27Q-DB.js","assets/toggle-group-D587KudN.js","assets/match-site-slug-config-B47_xZCi.js","assets/sandbox-lifecycle-context-YyDgegm5.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/frame-navigation-BLxrhab4.js","assets/variant-matcher-override-Cjj7k-fb.js","assets/section-array-field-0bB0SP9C.js","assets/use-fast-preview-draft-url-X0WNIRyx.js","assets/parse-sections-CRgnc3CL.js","assets/held-block-view-BlzwFREn.js","assets/calendar-CEemZB_B.js","assets/editor-classes-nFtrg95h.js","assets/category-tree-CPPsewqr.js","assets/pair-DXYob3uY.js","assets/collapsible-DRJg67rf.js","assets/use-task-board-items-DpI5X1-L.js","assets/config-CReIzLqM.js","assets/task-route-DkFPGqqO.js","assets/project-index-BeB0p8jY.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-DG3_Q3ZF.js","assets/types-93zYNLaG.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-qfJQ-1Sx.js","assets/use-mcp-prompts-Bo4GYlhV.js","assets/use-thread-outputs-BXlCD20Z.js","assets/file-type-icon-BSoZy34z.js","assets/named-rule-step-B0cFtbUw.js","assets/slider-QPT-NoS7.js","assets/index-D-nHomQz.js","assets/tooltipContext-CGwQLnqp.js","assets/CategoricalChart-CKf8Yyge.js","assets/index-BqCBhDK1.js","assets/combobox-DsfTnWMd.js","assets/scroll-area-C44byneR.js","assets/monaco-editor-DquEynfh.js","assets/editor-CDRuQE8T.js","assets/blog-preview-url-1TkdoQtD.js","assets/device-hint-AUNfpJY-.js","assets/alert-BI4VuWlB.js","assets/virtual-mcp-DQXPz7Kb.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-CmfwlzZU.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-NKQ3nvsW.js","assets/content-tab-Dp8TW9qo.js","assets/delete-copy-DwOYB3lx.js","assets/index-BzvjWc_o.js","assets/view-header-CVNhMeEP.js","assets/use-cms-publish-actions-D4bs5F-E.js","assets/use-content-sync-mcWKgd2x.js","assets/use-delete-block-6fX0bkwu.js","assets/item-actions-6XRfzKrK.js","assets/date-utils-CrvIKg-s.js","assets/empty-state-DsDTFIVX.js","assets/primitives-TI3e7ruV.js","assets/use-move-blocks-DxPhfmd5.js","assets/mustache-D-yc8kJS.js","assets/tab-icon-glyph-DE9hxpjr.js","assets/resolve-tab-icon-BWc2PXXt.js","assets/agent-site-editor-GpNjnXGk.js","assets/site-draft-actions-ChbTC35-.js","assets/separator-BP-wYzTl.js","assets/cms-store-drafts-DWxn6u5u.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-De5CWr6j.js","assets/input-KiZyceF0.js","assets/chat-draft-B6RBQpJw.js","assets/use-deco-credits-Bg3ufOSK.js","assets/input-DyQNdUEN.js","assets/suggestion-D8jM7QP6.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-Dob_ExVf.js","assets/plan-ladder-CV9v5egR.js","assets/add-connection-dialog-DnPaZnDA.js","assets/connection-card-C3Cm4Vsr.js","assets/connection-slug-CavXizqw.js","assets/schema-D1fWL_Uz.js","assets/connection-form-helpers-B16n6soh.js","assets/collection-tabs-D9CZUNPJ.js","assets/use-infinite-scroll-zbNj6V3y.js","assets/useSuspenseInfiniteQuery-B8OZl3RL.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-YI-Ph6Gl.js","assets/blog-view-gate-DgZTLgRJ.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-BC_FTcir.js","assets/reports-Dl0n8WK0.css","assets/route-C6ggpVup.js","assets/use-inbox-feed-B1XRnR81.js","assets/super-agent-icon-B2MlPZDw.js","assets/optimistic-project-sidebar-views-BtdqPF6r.js","assets/use-project-native-view-presence-VcQ4wphD.js","assets/own-accounts-section-BslUDvUS.js","assets/use-date-fns-locale-LScEMdLm.js","assets/daily-pulse-D_AiA3QD.js","assets/use-join-requests-DpyRq5P-.js","assets/thread-route-BVbiqt2D.js","assets/use-reports-diagnostic-DLtkhYdg.js","assets/connect-layout-BZ0_MQQ4.js","assets/route-CR_m6nNh.js","assets/task-status-xDg37uwv.js","assets/use-main-panel-tabs-BT_eBxjW.js","assets/use-mcp-tools-qc6hBXfj.js","assets/legacy-main-redirect-EU3nqwLM.js","assets/preview-dialog-C6O4hB_v.js","assets/preview-content-CUkQe6Yi.js","assets/file-share-button-CL3J0zEg.js","assets/file-preview-D4QUoORy.js","assets/home-grRufnoO.js","assets/home-overview-DXw9jW2V.js","assets/connect-key-ChjP56x4.js","assets/use-api-keys-D2JjTG-i.js","assets/chart-C-gDoxee.js","assets/CartesianChart-CmdBWl1g.js","assets/ReferenceLine-DotJhU5D.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-BnMrklD7.js","assets/agent-overview-ivofqF2c.js","assets/project-tasks-vDppvwX_.js","assets/mock-board-FuXOTgCX.js","assets/use-task-board-analytics-B8bUEPqV.js","assets/use-task-board-prompts-xQb3froZ.js","assets/use-automations-CCRh6J1K.js","assets/search-toggle-CxUOME3e.js","assets/use-tags-SlNFtcxF.js","assets/index-DPrn33Rq.js","assets/index-DWWehzpr.js","assets/use-task-board-item-prs-DXr8--1F.js","assets/thread-sheet-body-xcI19ecO.js","assets/feature-gate-h5u-Zwbn.js","assets/project-reports-gRtUO48c.js","assets/reports-tab-nAGK9OJB.js","assets/project-profile-dMAv1_XF.js","assets/agent-blog-saY0nlhI.js","assets/blog-source-gate-DjSc8yUZ.js","assets/agent-view-guard-BrhCLpkj.js","assets/agent-blog-post-BaXgHzHt.js","assets/agent-site-editor-preview-1d9iwg6w.js","assets/agent-site-editor-content-DK93H1Xk.js","assets/agent-site-editor-code-BMjZqAT2.js","assets/agent-automations-CLe9w2t8.js","assets/automation-list-row-BHqHOtQx.js","assets/agent-automation-Bx-NuDZl.js","assets/select-model-WPWRwY1V.js","assets/build-improve-prompt-doc-BMoym9Vj.js","assets/use-debounced-autosave-bJmRfXGh.js","assets/jira-icon-DGTJcb2Z.js","assets/multi-select-LRLNCHIK.js","assets/automation-runs-CRciewSu.js","assets/use-id-selection-BDavG4Tw.js","assets/agent-settings-Bxo7o7gL.js","assets/context-shell-G6Gbdp0W.js","assets/require-capability-CROnESqE.js","assets/access-gate-CDVSbtkj.js","assets/capability-load-error-BTFUeIPH.js","assets/sections-2cPOoMVo.js","assets/use-ask-in-chat-BgJT5viH.js","assets/index-Dtfv6swm.js","assets/use-mcp-auth-status-CAcXwsqK.js","assets/secret-picker-DrXViE_v.js","assets/use-secrets-C-GxHGg1.js","assets/agent-library-CY76yE28.js","assets/library-tab-Bhd50tYr.js","assets/use-org-repo-syncs-CkYZAGbj.js","assets/folder-icon-DCn-k3hb.js","assets/agent-assets-BKvDQ6ZG.js","assets/agent-releases-HCmP-qlK.js","assets/agent-hosting-NwO2TKDF.js","assets/settings-tab-De83D02t.js","assets/agent-e2e-BPS7jgkd.js","assets/taskboard-analytics-16bhCjJF.js","assets/time-range-picker-Kw3fXzvx.js","assets/analytics-sections-D_43TpvM.js","assets/AreaChart-DuISTyQL.js","assets/agent-experiments-DC4xI5lD.js","assets/experiments-tab-choice-DXVI89Of.js","assets/named-rule-view-CJ1ry0oG.js","assets/use-apply-named-rule-Cgp8LbdQ.js","assets/agent-calendar-DmHWjOEz.js","assets/agent-app-CsGfS0zJ.js","assets/project-app-view-BGhxEQvx.js","assets/connect-source-dialog-BXyFZL_X.js","assets/agent-view-CmiEQkVX.js","assets/agent-file-DY6_gTME.js","assets/agent-deck-wiGmkegT.js","assets/agent-library-file-Bjei4utc.js","assets/preview-panel-CKfPvkWs.js","assets/agent-connect-sources-CDCBitnG.js","assets/legacy-agents-deep-B2Qna1Se.js","assets/tasks-CRzQv2kZ.js","assets/thread-analytics-Bg5H7a2G.js","assets/reports-D8RgSkdw.js","assets/library-BjHFUNKc.js","assets/plan-Dzd3-KrG.js","assets/plan-page-Bs_KN9xq.js","assets/plan-page-Ce0nH0bn.css","assets/monitoring-CeR9ea8R.js","assets/order-monitor-day-B1hF8WjW.js","assets/Tooltip-CU8tKWXR.js","assets/monitoring-D_tSeZWt.css","assets/agent-business-case-D1J_EJBP.js","assets/discover-C3KvDhLe.js","assets/index-B1WaFOsQ.js","assets/route-BsnfBpCB.js","assets/plan-usage-card-CLZWIQxf.js","assets/index-redirect-BX1uMWOl.js","assets/connection-detail-Br3kvCLD.js","assets/index-ClyKEqMi.js","assets/index-CvLxyrnp.js","assets/use-delete-connection-WCBhvytS.js","assets/monitoring-stats-row-BUs3iCrU.js","assets/collection-detail-BrKNh_sc.js","assets/index-BuNHZe0j.js","assets/general-BflUyDpv.js","assets/review-settings-BUsFAX4E.js","assets/domain-settings-DKjGNSDn.js","assets/connect-uMWVy558.js","assets/api-keys-F4HzLSGA.js","assets/tool-set-selector-BOpAW5Y1.js","assets/ai-providers-CsLwpTHp.js","assets/infra-billing-BtsuEBUg.js","assets/secrets-BSCWBi7n.js","assets/api-keys-DUArXFLt.js","assets/buckets-DxoYBJcE.js","assets/repositories-fpX5qQ6d.js","assets/repositories-DwJmZQ_S.js","assets/synced-repos-XQs80J8E.js","assets/tasks-CbsSW8RH.js","assets/projects-Q6qNofYq.js","assets/members-XVVsOLwh.js","assets/collection-display-button-BdtaL-mb.js","assets/role-color-D1GxSeU5.js","assets/roles-BsBfelAx.js","assets/sso-BB-u0nk0.js","assets/profile-D-BxX6JD.js","assets/automations-BWwcGlIf.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function wU(e,t){for(var o=0;o<t.length;o++){const a=t[o];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const r=Object.getOwnPropertyDescriptor(a,n);r&&Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();var BTe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yw={exports:{}},Vu={};var AA;function SU(){if(AA)return Vu;AA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,n,r){var i=null;if(r!==void 0&&(i=""+r),n.key!==void 0&&(i=""+n.key),"key"in n){r={};for(var c in n)c!=="key"&&(r[c]=n[c])}else r=n;return n=r.ref,{$$typeof:e,type:a,key:i,ref:n!==void 0?n:null,props:r}}return Vu.Fragment=t,Vu.jsx=o,Vu.jsxs=o,Vu}var RA;function TU(){return RA||(RA=1,Yw.exports=SU()),Yw.exports}var y=TU(),Zw={exports:{}},dt={};var DA;function xU(){if(DA)return dt;DA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=f&&M[f]||M["@@iterator"],typeof M=="function"?M:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function T(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||b}T.prototype.isReactComponent={},T.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},T.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=T.prototype;function C(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||b}var E=C.prototype=new k;E.constructor=C,w(E,T.prototype),E.isPureReactComponent=!0;var _=Array.isArray;function D(){}var R={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(M,G,V){var I=V.ref;return{$$typeof:e,type:M,key:G,ref:I!==void 0?I:null,props:V}}function U(M,G){return L(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function z(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(V){return G[V]})}var F=/\/+/g;function W(M,G){return typeof M=="object"&&M!==null&&M.key!=null?z(""+M.key):G.toString(36)}function oe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(D,D):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,G,V,I,j){var X=typeof M;(X==="undefined"||X==="boolean")&&(M=null);var de=!1;if(M===null)de=!0;else switch(X){case"bigint":case"string":case"number":de=!0;break;case"object":switch(M.$$typeof){case e:case t:de=!0;break;case m:return de=M._init,H(de(M._payload),G,V,I,j)}}if(de)return j=j(M),de=I===""?"."+W(M,0):I,_(j)?(V="",de!=null&&(V=de.replace(F,"$&/")+"/"),H(j,G,V,"",function(qe){return qe})):j!=null&&(B(j)&&(j=U(j,V+(j.key==null||M&&M.key===j.key?"":(""+j.key).replace(F,"$&/")+"/")+de)),G.push(j)),1;de=0;var ue=I===""?".":I+":";if(_(M))for(var Ee=0;Ee<M.length;Ee++)I=M[Ee],X=ue+W(I,Ee),de+=H(I,G,V,X,j);else if(Ee=v(M),typeof Ee=="function")for(M=Ee.call(M),Ee=0;!(I=M.next()).done;)I=I.value,X=ue+W(I,Ee++),de+=H(I,G,V,X,j);else if(X==="object"){if(typeof M.then=="function")return H(oe(M),G,V,I,j);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return de}function K(M,G,V){if(M==null)return M;var I=[],j=0;return H(M,I,"","",function(X){return G.call(V,X,j++)}),I}function J(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(V){(M._status===0||M._status===-1)&&(M._status=1,M._result=V)},function(V){(M._status===0||M._status===-1)&&(M._status=2,M._result=V)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var se=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:K,forEach:function(M,G,V){K(M,function(){G.apply(this,arguments)},V)},count:function(M){var G=0;return K(M,function(){G++}),G},toArray:function(M){return K(M,function(G){return G})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return dt.Activity=h,dt.Children=Q,dt.Component=T,dt.Fragment=o,dt.Profiler=n,dt.PureComponent=C,dt.StrictMode=a,dt.Suspense=d,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,dt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return R.H.useMemoCache(M)}},dt.cache=function(M){return function(){return M.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(M,G,V){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var I=w({},M.props),j=M.key;if(G!=null)for(X in G.key!==void 0&&(j=""+G.key),G)!O.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(I[X]=G[X]);var X=arguments.length-2;if(X===1)I.children=V;else if(1<X){for(var de=Array(X),ue=0;ue<X;ue++)de[ue]=arguments[ue+2];I.children=de}return L(M.type,j,I)},dt.createContext=function(M){return M={$$typeof:i,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:r,_context:M},M},dt.createElement=function(M,G,V){var I,j={},X=null;if(G!=null)for(I in G.key!==void 0&&(X=""+G.key),G)O.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(j[I]=G[I]);var de=arguments.length-2;if(de===1)j.children=V;else if(1<de){for(var ue=Array(de),Ee=0;Ee<de;Ee++)ue[Ee]=arguments[Ee+2];j.children=ue}if(M&&M.defaultProps)for(I in de=M.defaultProps,de)j[I]===void 0&&(j[I]=de[I]);return L(M,X,j)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(M){return{$$typeof:c,render:M}},dt.isValidElement=B,dt.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:J}},dt.memo=function(M,G){return{$$typeof:u,type:M,compare:G===void 0?null:G}},dt.startTransition=function(M){var G=R.T,V={};R.T=V;try{var I=M(),j=R.S;j!==null&&j(V,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(D,se)}catch(X){se(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),R.T=G}},dt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},dt.use=function(M){return R.H.use(M)},dt.useActionState=function(M,G,V){return R.H.useActionState(M,G,V)},dt.useCallback=function(M,G){return R.H.useCallback(M,G)},dt.useContext=function(M){return R.H.useContext(M)},dt.useDebugValue=function(){},dt.useDeferredValue=function(M,G){return R.H.useDeferredValue(M,G)},dt.useEffect=function(M,G){return R.H.useEffect(M,G)},dt.useEffectEvent=function(M){return R.H.useEffectEvent(M)},dt.useId=function(){return R.H.useId()},dt.useImperativeHandle=function(M,G,V){return R.H.useImperativeHandle(M,G,V)},dt.useInsertionEffect=function(M,G){return R.H.useInsertionEffect(M,G)},dt.useLayoutEffect=function(M,G){return R.H.useLayoutEffect(M,G)},dt.useMemo=function(M,G){return R.H.useMemo(M,G)},dt.useOptimistic=function(M,G){return R.H.useOptimistic(M,G)},dt.useReducer=function(M,G,V){return R.H.useReducer(M,G,V)},dt.useRef=function(M){return R.H.useRef(M)},dt.useState=function(M){return R.H.useState(M)},dt.useSyncExternalStore=function(M,G,V){return R.H.useSyncExternalStore(M,G,V)},dt.useTransition=function(){return R.H.useTransition()},dt.version="19.2.6",dt}var OA;function Gi(){return OA||(OA=1,Zw.exports=xU()),Zw.exports}var A=Gi();const ee=Yl(A),uk=wU({__proto__:null,default:ee},[A]);var Qw={exports:{}},Hu={},Jw={exports:{}},Xw={};var NA;function kU(){return NA||(NA=1,(function(e){function t(H,K){var J=H.length;H.push(K);e:for(;0<J;){var se=J-1>>>1,Q=H[se];if(0<n(Q,K))H[se]=K,H[J]=Q,J=se;else break e}}function o(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var K=H[0],J=H.pop();if(J!==K){H[0]=J;e:for(var se=0,Q=H.length,M=Q>>>1;se<M;){var G=2*(se+1)-1,V=H[G],I=G+1,j=H[I];if(0>n(V,J))I<Q&&0>n(j,V)?(H[se]=j,H[I]=J,se=I):(H[se]=V,H[G]=J,se=G);else if(I<Q&&0>n(j,J))H[se]=j,H[I]=J,se=I;else break e}}return K}function n(H,K){var J=H.sortIndex-K.sortIndex;return J!==0?J:H.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var d=[],u=[],m=1,h=null,f=3,v=!1,b=!1,w=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function E(H){for(var K=o(u);K!==null;){if(K.callback===null)a(u);else if(K.startTime<=H)a(u),K.sortIndex=K.expirationTime,t(d,K);else break;K=o(u)}}function _(H){if(w=!1,E(H),!b)if(o(d)!==null)b=!0,D||(D=!0,z());else{var K=o(u);K!==null&&oe(_,K.startTime-H)}}var D=!1,R=-1,O=5,L=-1;function U(){return x?!0:!(e.unstable_now()-L<O)}function B(){if(x=!1,D){var H=e.unstable_now();L=H;var K=!0;try{e:{b=!1,w&&(w=!1,k(R),R=-1),v=!0;var J=f;try{t:{for(E(H),h=o(d);h!==null&&!(h.expirationTime>H&&U());){var se=h.callback;if(typeof se=="function"){h.callback=null,f=h.priorityLevel;var Q=se(h.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){h.callback=Q,E(H),K=!0;break t}h===o(d)&&a(d),E(H)}else a(d);h=o(d)}if(h!==null)K=!0;else{var M=o(u);M!==null&&oe(_,M.startTime-H),K=!1}}break e}finally{h=null,f=J,v=!1}K=void 0}}finally{K?z():D=!1}}}var z;if(typeof C=="function")z=function(){C(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=B,z=function(){W.postMessage(null)}}else z=function(){T(B,0)};function oe(H,K){R=T(function(){H(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(H){switch(f){case 1:case 2:case 3:var K=3;break;default:K=f}var J=f;f=K;try{return H()}finally{f=J}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var J=f;f=H;try{return K()}finally{f=J}},e.unstable_scheduleCallback=function(H,K,J){var se=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?se+J:se):J=se,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=J+Q,H={id:m++,callback:K,priorityLevel:H,startTime:J,expirationTime:Q,sortIndex:-1},J>se?(H.sortIndex=J,t(u,H),o(d)===null&&H===o(u)&&(w?(k(R),R=-1):w=!0,oe(_,J-se))):(H.sortIndex=Q,t(d,H),b||v||(b=!0,D||(D=!0,z()))),H},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(Xw)),Xw}var MA;function EU(){return MA||(MA=1,Jw.exports=kU()),Jw.exports}var eS={exports:{}},Ia={};var IA;function CU(){if(IA)return Ia;IA=1;var e=Gi();function t(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},n=Symbol.for("react.portal");function r(d,u,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:d,containerInfo:u,implementation:m}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ia.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ia.createPortal=function(d,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return r(d,u,null,m)},Ia.flushSync=function(d){var u=i.T,m=a.p;try{if(i.T=null,a.p=2,d)return d()}finally{i.T=u,a.p=m,a.d.f()}},Ia.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(d,u))},Ia.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Ia.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,v=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?a.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:v}):m==="script"&&a.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ia.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var m=c(u.as,u.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(d)},Ia.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin);a.d.L(d,m,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ia.preloadModule=function(d,u){if(typeof d=="string")if(u){var m=c(u.as,u.crossOrigin);a.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(d)},Ia.requestFormReset=function(d){a.d.r(d)},Ia.unstable_batchedUpdates=function(d,u){return d(u)},Ia.useFormState=function(d,u,m){return i.H.useFormState(d,u,m)},Ia.useFormStatus=function(){return i.H.useHostTransitionStatus()},Ia.version="19.2.6",Ia}var LA;function _M(){if(LA)return eS.exports;LA=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),eS.exports=CU(),eS.exports}var BA;function PU(){if(BA)return Hu;BA=1;var e=EU(),t=Gi(),o=_M();function a(s){var l="https://react.dev/errors/"+s;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function r(s){var l=s,p=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&4098)!==0&&(p=l.return),s=l.return;while(s)}return l.tag===3?p:null}function i(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function c(s){if(s.tag===31){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function d(s){if(r(s)!==s)throw Error(a(188))}function u(s){var l=s.alternate;if(!l){if(l=r(s),l===null)throw Error(a(188));return l!==s?null:s}for(var p=s,g=l;;){var S=p.return;if(S===null)break;var P=S.alternate;if(P===null){if(g=S.return,g!==null){p=g;continue}break}if(S.child===P.child){for(P=S.child;P;){if(P===p)return d(S),s;if(P===g)return d(S),l;P=P.sibling}throw Error(a(188))}if(p.return!==g.return)p=S,g=P;else{for(var N=!1,q=S.child;q;){if(q===p){N=!0,p=S,g=P;break}if(q===g){N=!0,g=S,p=P;break}q=q.sibling}if(!N){for(q=P.child;q;){if(q===p){N=!0,p=P,g=S;break}if(q===g){N=!0,g=P,p=S;break}q=q.sibling}if(!N)throw Error(a(189))}}if(p.alternate!==g)throw Error(a(190))}if(p.tag!==3)throw Error(a(188));return p.stateNode.current===p?s:l}function m(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s;for(s=s.child;s!==null;){if(l=m(s),l!==null)return l;s=s.sibling}return null}var h=Object.assign,f=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function z(s){return s===null||typeof s!="object"?null:(s=B&&s[B]||s["@@iterator"],typeof s=="function"?s:null)}var F=Symbol.for("react.client.reference");function W(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===F?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case w:return"Fragment";case T:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case b:return"Portal";case C:return s.displayName||"Context";case k:return(s._context.displayName||"Context")+".Consumer";case E:var l=s.render;return s=s.displayName,s||(s=l.displayName||l.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case R:return l=s.displayName||null,l!==null?l:W(s.type)||"Memo";case O:l=s._payload,s=s._init;try{return W(s(l))}catch{}}return null}var oe=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},se=[],Q=-1;function M(s){return{current:s}}function G(s){0>Q||(s.current=se[Q],se[Q]=null,Q--)}function V(s,l){Q++,se[Q]=s.current,s.current=l}var I=M(null),j=M(null),X=M(null),de=M(null);function ue(s,l){switch(V(X,l),V(j,s),V(I,null),l.nodeType){case 9:case 11:s=(s=l.documentElement)&&(s=s.namespaceURI)?J1(s):0;break;default:if(s=l.tagName,l=l.namespaceURI)l=J1(l),s=X1(l,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}G(I),V(I,s)}function Ee(){G(I),G(j),G(X)}function qe(s){s.memoizedState!==null&&V(de,s);var l=I.current,p=X1(l,s.type);l!==p&&(V(j,s),V(I,p))}function Z(s){j.current===s&&(G(I),G(j)),de.current===s&&(G(de),zu._currentValue=J)}var ne,ve;function ie(s){if(ne===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ne=l&&l[1]||"",ve=-1<p.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ne+s+ve}var xe=!1;function Pe(s,l){if(!s||xe)return"";xe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(fe){var he=fe}Reflect.construct(s,[],ke)}else{try{ke.call()}catch(fe){he=fe}s.call(ke.prototype)}}else{try{throw Error()}catch(fe){he=fe}(ke=s())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(fe){if(fe&&he&&typeof fe.stack=="string")return[fe.stack,he.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=g.DetermineComponentFrameRoot(),N=P[0],q=P[1];if(N&&q){var te=N.split(`
|
|
@@ -52,7 +52,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
52
52
|
|| ${O} === "boolean" || ${D} === null`).assign(L,(0,a._)`[${D}]`)}}}function f({gen:k,parentData:C,parentDataProperty:E},_){k.if((0,a._)`${C} !== undefined`,()=>k.assign((0,a._)`${C}[${E}]`,_))}function v(k,C,E,_=r.Correct){const D=_===r.Correct?a.operators.EQ:a.operators.NEQ;let R;switch(k){case"null":return(0,a._)`${C} ${D} null`;case"array":R=(0,a._)`Array.isArray(${C})`;break;case"object":R=(0,a._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":R=O((0,a._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":R=O();break;default:return(0,a._)`typeof ${C} ${D} ${k}`}return _===r.Correct?R:(0,a.not)(R);function O(L=a.nil){return(0,a.and)((0,a._)`typeof ${C} == "number"`,L,E?(0,a._)`isFinite(${C})`:a.nil)}}xa.checkDataType=v;function b(k,C,E,_){if(k.length===1)return v(k[0],C,E,_);let D;const R=(0,n.toHash)(k);if(R.array&&R.object){const O=(0,a._)`typeof ${C} != "object"`;D=R.null?O:(0,a._)`!${C} || ${O}`,delete R.null,delete R.array,delete R.object}else D=a.nil;R.number&&delete R.integer;for(const O in R)D=(0,a.and)(D,v(O,C,E,_));return D}xa.checkDataTypes=b;const w={message:({schema:k})=>`must be ${k}`,params:({schema:k,schemaValue:C})=>typeof k=="string"?(0,a._)`{type: ${k}}`:(0,a._)`{type: ${C}}`};function x(k){const C=T(k);(0,o.reportError)(C,w)}xa.reportTypeError=x;function T(k){const{gen:C,data:E,schema:_}=k,D=(0,n.schemaRefOrVal)(k,_,"type");return{gen:C,keyword:"type",data:E,schema:_.type,schemaCode:D,schemaValue:D,parentSchema:_,params:{},it:k}}return xa}var Zu={},aD;function KZ(){if(aD)return Zu;aD=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.assignDefaults=void 0;const e=yt(),t=Ft();function o(n,r){const{properties:i,items:c}=n.schema;if(r==="object"&&i)for(const d in i)a(n,d,i[d].default);else r==="array"&&Array.isArray(c)&&c.forEach((d,u)=>a(n,u,d.default))}Zu.assignDefaults=o;function a(n,r,i){const{gen:c,compositeRule:d,data:u,opts:m}=n;if(i===void 0)return;const h=(0,e._)`${u}${(0,e.getProperty)(r)}`;if(d){(0,t.checkStrictMode)(n,`default is ignored for: ${h}`);return}let f=(0,e._)`${h} === undefined`;m.useDefaults==="empty"&&(f=(0,e._)`${f} || ${h} === null || ${h} === ""`),c.if(f,(0,e._)`${h} = ${(0,e.stringify)(i)}`)}return Zu}var fr={},Jt={},nD;function Or(){if(nD)return Jt;nD=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.validateUnion=Jt.validateArray=Jt.usePattern=Jt.callValidateCode=Jt.schemaProperties=Jt.allSchemaProperties=Jt.noPropertyInData=Jt.propertyInData=Jt.isOwnProperty=Jt.hasPropFunc=Jt.reportMissingProp=Jt.checkMissingProp=Jt.checkReportMissingProp=void 0;const e=yt(),t=Ft(),o=Ji(),a=Ft();function n(k,C){const{gen:E,data:_,it:D}=k;E.if(m(E,_,C,D.opts.ownProperties),()=>{k.setParams({missingProperty:(0,e._)`${C}`},!0),k.error()})}Jt.checkReportMissingProp=n;function r({gen:k,data:C,it:{opts:E}},_,D){return(0,e.or)(..._.map(R=>(0,e.and)(m(k,C,R,E.ownProperties),(0,e._)`${D} = ${R}`)))}Jt.checkMissingProp=r;function i(k,C){k.setParams({missingProperty:C},!0),k.error()}Jt.reportMissingProp=i;function c(k){return k.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Jt.hasPropFunc=c;function d(k,C,E){return(0,e._)`${c(k)}.call(${C}, ${E})`}Jt.isOwnProperty=d;function u(k,C,E,_){const D=(0,e._)`${C}${(0,e.getProperty)(E)} !== undefined`;return _?(0,e._)`${D} && ${d(k,C,E)}`:D}Jt.propertyInData=u;function m(k,C,E,_){const D=(0,e._)`${C}${(0,e.getProperty)(E)} === undefined`;return _?(0,e.or)(D,(0,e.not)(d(k,C,E))):D}Jt.noPropertyInData=m;function h(k){return k?Object.keys(k).filter(C=>C!=="__proto__"):[]}Jt.allSchemaProperties=h;function f(k,C){return h(C).filter(E=>!(0,t.alwaysValidSchema)(k,C[E]))}Jt.schemaProperties=f;function v({schemaCode:k,data:C,it:{gen:E,topSchemaRef:_,schemaPath:D,errorPath:R},it:O},L,U,B){const z=B?(0,e._)`${k}, ${C}, ${_}${D}`:C,F=[[o.default.instancePath,(0,e.strConcat)(o.default.instancePath,R)],[o.default.parentData,O.parentData],[o.default.parentDataProperty,O.parentDataProperty],[o.default.rootData,o.default.rootData]];O.opts.dynamicRef&&F.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const W=(0,e._)`${z}, ${E.object(...F)}`;return U!==e.nil?(0,e._)`${L}.call(${U}, ${W})`:(0,e._)`${L}(${W})`}Jt.callValidateCode=v;const b=(0,e._)`new RegExp`;function w({gen:k,it:{opts:C}},E){const _=C.unicodeRegExp?"u":"",{regExp:D}=C.code,R=D(E,_);return k.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,e._)`${D.code==="new RegExp"?b:(0,a.useFunc)(k,D)}(${E}, ${_})`})}Jt.usePattern=w;function x(k){const{gen:C,data:E,keyword:_,it:D}=k,R=C.name("valid");if(D.allErrors){const L=C.let("valid",!0);return O(()=>C.assign(L,!1)),L}return C.var(R,!0),O(()=>C.break()),R;function O(L){const U=C.const("len",(0,e._)`${E}.length`);C.forRange("i",0,U,B=>{k.subschema({keyword:_,dataProp:B,dataPropType:t.Type.Num},R),C.if((0,e.not)(R),L)})}}Jt.validateArray=x;function T(k){const{gen:C,schema:E,keyword:_,it:D}=k;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(U=>(0,t.alwaysValidSchema)(D,U))&&!D.opts.unevaluated)return;const O=C.let("valid",!1),L=C.name("_valid");C.block(()=>E.forEach((U,B)=>{const z=k.subschema({keyword:_,schemaProp:B,compositeRule:!0},L);C.assign(O,(0,e._)`${O} || ${L}`),k.mergeValidEvaluated(z,L)||C.if((0,e.not)(O))})),k.result(O,()=>k.reset(),()=>k.error(!0))}return Jt.validateUnion=T,Jt}var rD;function YZ(){if(rD)return fr;rD=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.validateKeywordUsage=fr.validSchemaType=fr.funcKeywordCode=fr.macroKeywordCode=void 0;const e=yt(),t=Ji(),o=Or(),a=nb();function n(f,v){const{gen:b,keyword:w,schema:x,parentSchema:T,it:k}=f,C=v.macro.call(k.self,x,T,k),E=u(b,w,C);k.opts.validateSchema!==!1&&k.self.validateSchema(C,!0);const _=b.name("valid");f.subschema({schema:C,schemaPath:e.nil,errSchemaPath:`${k.errSchemaPath}/${w}`,topSchemaRef:E,compositeRule:!0},_),f.pass(_,()=>f.error(!0))}fr.macroKeywordCode=n;function r(f,v){var b;const{gen:w,keyword:x,schema:T,parentSchema:k,$data:C,it:E}=f;d(E,v);const _=!C&&v.compile?v.compile.call(E.self,T,k,E):v.validate,D=u(w,x,_),R=w.let("valid");f.block$data(R,O),f.ok((b=v.valid)!==null&&b!==void 0?b:R);function O(){if(v.errors===!1)B(),v.modifying&&i(f),z(()=>f.error());else{const F=v.async?L():U();v.modifying&&i(f),z(()=>c(f,F))}}function L(){const F=w.let("ruleErrs",null);return w.try(()=>B((0,e._)`await `),W=>w.assign(R,!1).if((0,e._)`${W} instanceof ${E.ValidationError}`,()=>w.assign(F,(0,e._)`${W}.errors`),()=>w.throw(W))),F}function U(){const F=(0,e._)`${D}.errors`;return w.assign(F,null),B(e.nil),F}function B(F=v.async?(0,e._)`await `:e.nil){const W=E.opts.passContext?t.default.this:t.default.self,oe=!("compile"in v&&!C||v.schema===!1);w.assign(R,(0,e._)`${F}${(0,o.callValidateCode)(f,D,W,oe)}`,v.modifying)}function z(F){var W;w.if((0,e.not)((W=v.valid)!==null&&W!==void 0?W:R),F)}}fr.funcKeywordCode=r;function i(f){const{gen:v,data:b,it:w}=f;v.if(w.parentData,()=>v.assign(b,(0,e._)`${w.parentData}[${w.parentDataProperty}]`))}function c(f,v){const{gen:b}=f;b.if((0,e._)`Array.isArray(${v})`,()=>{b.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${v} : ${t.default.vErrors}.concat(${v})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,a.extendErrors)(f)},()=>f.error())}function d({schemaEnv:f},v){if(v.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,v,b){if(b===void 0)throw new Error(`keyword "${v}" failed to compile`);return f.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function m(f,v,b=!1){return!v.length||v.some(w=>w==="array"?Array.isArray(f):w==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==w||b&&typeof f>"u")}fr.validSchemaType=m;function h({schema:f,opts:v,self:b,errSchemaPath:w},x,T){if(Array.isArray(x.keyword)?!x.keyword.includes(T):x.keyword!==T)throw new Error("ajv implementation error");const k=x.dependencies;if(k?.some(C=>!Object.prototype.hasOwnProperty.call(f,C)))throw new Error(`parent schema must have dependencies of ${T}: ${k.join(",")}`);if(x.validateSchema&&!x.validateSchema(f[T])){const E=`keyword "${T}" value is invalid at path "${w}": `+b.errorsText(x.validateSchema.errors);if(v.validateSchema==="log")b.logger.error(E);else throw new Error(E)}}return fr.validateKeywordUsage=h,fr}var Ps={},sD;function ZZ(){if(sD)return Ps;sD=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.extendSubschemaMode=Ps.extendSubschemaData=Ps.getSubschema=void 0;const e=yt(),t=Ft();function o(r,{keyword:i,schemaProp:c,schema:d,schemaPath:u,errSchemaPath:m,topSchemaRef:h}){if(i!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const f=r.schema[i];return c===void 0?{schema:f,schemaPath:(0,e._)`${r.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${r.errSchemaPath}/${i}`}:{schema:f[c],schemaPath:(0,e._)`${r.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(c)}`,errSchemaPath:`${r.errSchemaPath}/${i}/${(0,t.escapeFragment)(c)}`}}if(d!==void 0){if(u===void 0||m===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:u,topSchemaRef:h,errSchemaPath:m}}throw new Error('either "keyword" or "schema" must be passed')}Ps.getSubschema=o;function a(r,i,{dataProp:c,dataPropType:d,data:u,dataTypes:m,propertyName:h}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=i;if(c!==void 0){const{errorPath:b,dataPathArr:w,opts:x}=i,T=f.let("data",(0,e._)`${i.data}${(0,e.getProperty)(c)}`,!0);v(T),r.errorPath=(0,e.str)`${b}${(0,t.getErrorPath)(c,d,x.jsPropertySyntax)}`,r.parentDataProperty=(0,e._)`${c}`,r.dataPathArr=[...w,r.parentDataProperty]}if(u!==void 0){const b=u instanceof e.Name?u:f.let("data",u,!0);v(b),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function v(b){r.data=b,r.dataLevel=i.dataLevel+1,r.dataTypes=[],i.definedProperties=new Set,r.parentData=i.data,r.dataNames=[...i.dataNames,b]}}Ps.extendSubschemaData=a;function n(r,{jtdDiscriminator:i,jtdMetadata:c,compositeRule:d,createErrors:u,allErrors:m}){d!==void 0&&(r.compositeRule=d),u!==void 0&&(r.createErrors=u),m!==void 0&&(r.allErrors=m),r.jtdDiscriminator=i,r.jtdMetadata=c}return Ps.extendSubschemaMode=n,Ps}var Ka={},TS,iD;function lB(){return iD||(iD=1,TS=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var a,n,r;if(Array.isArray(t)){if(a=t.length,a!=o.length)return!1;for(n=a;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(r=Object.keys(t),a=r.length,a!==Object.keys(o).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,r[n]))return!1;for(n=a;n--!==0;){var i=r[n];if(!e(t[i],o[i]))return!1}return!0}return t!==t&&o!==o}),TS}var xS={exports:{}},lD;function QZ(){if(lD)return xS.exports;lD=1;var e=xS.exports=function(a,n,r){typeof n=="function"&&(r=n,n={}),r=n.cb||r;var i=typeof r=="function"?r:r.pre||function(){},c=r.post||function(){};t(n,i,c,a,"",a)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(a,n,r,i,c,d,u,m,h,f){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,c,d,u,m,h,f);for(var v in i){var b=i[v];if(Array.isArray(b)){if(v in e.arrayKeywords)for(var w=0;w<b.length;w++)t(a,n,r,b[w],c+"/"+v+"/"+w,d,c,v,i,w)}else if(v in e.propsKeywords){if(b&&typeof b=="object")for(var x in b)t(a,n,r,b[x],c+"/"+v+"/"+o(x),d,c,v,i,x)}else(v in e.keywords||a.allKeys&&!(v in e.skipKeywords))&&t(a,n,r,b,c+"/"+v,d,c,v,i)}r(i,c,d,u,m,h,f)}}function o(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return xS.exports}var cD;function rb(){if(cD)return Ka;cD=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.getSchemaRefs=Ka.resolveUrl=Ka.normalizeId=Ka._getFullPath=Ka.getFullPath=Ka.inlineRef=void 0;const e=Ft(),t=lB(),o=QZ(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(w,x=!0){return typeof w=="boolean"?!0:x===!0?!i(w):x?c(w)<=x:!1}Ka.inlineRef=n;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(w){for(const x in w){if(r.has(x))return!0;const T=w[x];if(Array.isArray(T)&&T.some(i)||typeof T=="object"&&i(T))return!0}return!1}function c(w){let x=0;for(const T in w){if(T==="$ref")return 1/0;if(x++,!a.has(T)&&(typeof w[T]=="object"&&(0,e.eachItem)(w[T],k=>x+=c(k)),x===1/0))return 1/0}return x}function d(w,x="",T){T!==!1&&(x=h(x));const k=w.parse(x);return u(w,k)}Ka.getFullPath=d;function u(w,x){return w.serialize(x).split("#")[0]+"#"}Ka._getFullPath=u;const m=/#\/?$/;function h(w){return w?w.replace(m,""):""}Ka.normalizeId=h;function f(w,x,T){return T=h(T),w.resolve(x,T)}Ka.resolveUrl=f;const v=/^[a-z_][-a-z0-9._]*$/i;function b(w,x){if(typeof w=="boolean")return{};const{schemaId:T,uriResolver:k}=this.opts,C=h(w[T]||x),E={"":C},_=d(k,C,!1),D={},R=new Set;return o(w,{allKeys:!0},(U,B,z,F)=>{if(F===void 0)return;const W=_+B;let oe=E[F];typeof U[T]=="string"&&(oe=H.call(this,U[T])),K.call(this,U.$anchor),K.call(this,U.$dynamicAnchor),E[B]=oe;function H(J){const se=this.opts.uriResolver.resolve;if(J=h(oe?se(oe,J):J),R.has(J))throw L(J);R.add(J);let Q=this.refs[J];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?O(U,Q.schema,J):J!==h(W)&&(J[0]==="#"?(O(U,D[J],J),D[J]=U):this.refs[J]=W),J}function K(J){if(typeof J=="string"){if(!v.test(J))throw new Error(`invalid anchor "${J}"`);H.call(this,`#${J}`)}}}),D;function O(U,B,z){if(B!==void 0&&!t(U,B))throw L(z)}function L(U){return new Error(`reference "${U}" resolves to more than one schema`)}}return Ka.getSchemaRefs=b,Ka}var dD;function sb(){if(dD)return Es;dD=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.getData=Es.KeywordCxt=Es.validateFunctionCode=void 0;const e=WZ(),t=Qf(),o=iB(),a=Qf(),n=KZ(),r=YZ(),i=ZZ(),c=yt(),d=Ji(),u=rb(),m=Ft(),h=nb();function f(Z){if(_(Z)&&(R(Z),E(Z))){x(Z);return}v(Z,()=>(0,e.topBoolOrEmptySchema)(Z))}Es.validateFunctionCode=f;function v({gen:Z,validateName:ne,schema:ve,schemaEnv:ie,opts:xe},Pe){xe.code.es5?Z.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,ie.$async,()=>{Z.code((0,c._)`"use strict"; ${k(ve,xe)}`),w(Z,xe),Z.code(Pe)}):Z.func(ne,(0,c._)`${d.default.data}, ${b(xe)}`,ie.$async,()=>Z.code(k(ve,xe)).code(Pe))}function b(Z){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Z.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function w(Z,ne){Z.if(d.default.valCxt,()=>{Z.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Z.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Z.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Z.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Z.var(d.default.instancePath,(0,c._)`""`),Z.var(d.default.parentData,(0,c._)`undefined`),Z.var(d.default.parentDataProperty,(0,c._)`undefined`),Z.var(d.default.rootData,d.default.data),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function x(Z){const{schema:ne,opts:ve,gen:ie}=Z;v(Z,()=>{ve.$comment&&ne.$comment&&F(Z),U(Z),ie.let(d.default.vErrors,null),ie.let(d.default.errors,0),ve.unevaluated&&T(Z),O(Z),W(Z)})}function T(Z){const{gen:ne,validateName:ve}=Z;Z.evaluated=ne.const("evaluated",(0,c._)`${ve}.evaluated`),ne.if((0,c._)`${Z.evaluated}.dynamicProps`,()=>ne.assign((0,c._)`${Z.evaluated}.props`,(0,c._)`undefined`)),ne.if((0,c._)`${Z.evaluated}.dynamicItems`,()=>ne.assign((0,c._)`${Z.evaluated}.items`,(0,c._)`undefined`))}function k(Z,ne){const ve=typeof Z=="object"&&Z[ne.schemaId];return ve&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function C(Z,ne){if(_(Z)&&(R(Z),E(Z))){D(Z,ne);return}(0,e.boolOrEmptySchema)(Z,ne)}function E({schema:Z,self:ne}){if(typeof Z=="boolean")return!Z;for(const ve in Z)if(ne.RULES.all[ve])return!0;return!1}function _(Z){return typeof Z.schema!="boolean"}function D(Z,ne){const{schema:ve,gen:ie,opts:xe}=Z;xe.$comment&&ve.$comment&&F(Z),B(Z),z(Z);const Pe=ie.const("_errs",d.default.errors);O(Z,Pe),ie.var(ne,(0,c._)`${Pe} === ${d.default.errors}`)}function R(Z){(0,m.checkUnknownRules)(Z),L(Z)}function O(Z,ne){if(Z.opts.jtd)return H(Z,[],!1,ne);const ve=(0,t.getSchemaTypes)(Z.schema),ie=(0,t.coerceAndCheckDataType)(Z,ve);H(Z,ve,!ie,ne)}function L(Z){const{schema:ne,errSchemaPath:ve,opts:ie,self:xe}=Z;ne.$ref&&ie.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(ne,xe.RULES)&&xe.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function U(Z){const{schema:ne,opts:ve}=Z;ne.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,m.checkStrictMode)(Z,"default is ignored in the schema root")}function B(Z){const ne=Z.schema[Z.opts.schemaId];ne&&(Z.baseId=(0,u.resolveUrl)(Z.opts.uriResolver,Z.baseId,ne))}function z(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:Z,schemaEnv:ne,schema:ve,errSchemaPath:ie,opts:xe}){const Pe=ve.$comment;if(xe.$comment===!0)Z.code((0,c._)`${d.default.self}.logger.log(${Pe})`);else if(typeof xe.$comment=="function"){const it=(0,c.str)`${ie}/$comment`,ct=Z.scopeValue("root",{ref:ne.root});Z.code((0,c._)`${d.default.self}.opts.$comment(${Pe}, ${it}, ${ct}.schema)`)}}function W(Z){const{gen:ne,schemaEnv:ve,validateName:ie,ValidationError:xe,opts:Pe}=Z;ve.$async?ne.if((0,c._)`${d.default.errors} === 0`,()=>ne.return(d.default.data),()=>ne.throw((0,c._)`new ${xe}(${d.default.vErrors})`)):(ne.assign((0,c._)`${ie}.errors`,d.default.vErrors),Pe.unevaluated&&oe(Z),ne.return((0,c._)`${d.default.errors} === 0`))}function oe({gen:Z,evaluated:ne,props:ve,items:ie}){ve instanceof c.Name&&Z.assign((0,c._)`${ne}.props`,ve),ie instanceof c.Name&&Z.assign((0,c._)`${ne}.items`,ie)}function H(Z,ne,ve,ie){const{gen:xe,schema:Pe,data:it,allErrors:ct,opts:Ge,self:at}=Z,{RULES:Ne}=at;if(Pe.$ref&&(Ge.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(Pe,Ne))){xe.block(()=>de(Z,"$ref",Ne.all.$ref.definition));return}Ge.jtd||J(Z,ne),xe.block(()=>{for(const He of Ne.rules)Oe(He);Oe(Ne.post)});function Oe(He){(0,o.shouldUseGroup)(Pe,He)&&(He.type?(xe.if((0,a.checkDataType)(He.type,it,Ge.strictNumbers)),K(Z,He),ne.length===1&&ne[0]===He.type&&ve&&(xe.else(),(0,a.reportTypeError)(Z)),xe.endIf()):K(Z,He),ct||xe.if((0,c._)`${d.default.errors} === ${ie||0}`))}}function K(Z,ne){const{gen:ve,schema:ie,opts:{useDefaults:xe}}=Z;xe&&(0,n.assignDefaults)(Z,ne.type),ve.block(()=>{for(const Pe of ne.rules)(0,o.shouldUseRule)(ie,Pe)&&de(Z,Pe.keyword,Pe.definition,ne.type)})}function J(Z,ne){Z.schemaEnv.meta||!Z.opts.strictTypes||(se(Z,ne),Z.opts.allowUnionTypes||Q(Z,ne),M(Z,Z.dataTypes))}function se(Z,ne){if(ne.length){if(!Z.dataTypes.length){Z.dataTypes=ne;return}ne.forEach(ve=>{V(Z.dataTypes,ve)||j(Z,`type "${ve}" not allowed by context "${Z.dataTypes.join(",")}"`)}),I(Z,ne)}}function Q(Z,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&j(Z,"use allowUnionTypes to allow union type keyword")}function M(Z,ne){const ve=Z.self.RULES.all;for(const ie in ve){const xe=ve[ie];if(typeof xe=="object"&&(0,o.shouldUseRule)(Z.schema,xe)){const{type:Pe}=xe.definition;Pe.length&&!Pe.some(it=>G(ne,it))&&j(Z,`missing type "${Pe.join(",")}" for keyword "${ie}"`)}}}function G(Z,ne){return Z.includes(ne)||ne==="number"&&Z.includes("integer")}function V(Z,ne){return Z.includes(ne)||ne==="integer"&&Z.includes("number")}function I(Z,ne){const ve=[];for(const ie of Z.dataTypes)V(ne,ie)?ve.push(ie):ne.includes("integer")&&ie==="number"&&ve.push("integer");Z.dataTypes=ve}function j(Z,ne){const ve=Z.schemaEnv.baseId+Z.errSchemaPath;ne+=` at "${ve}" (strictTypes)`,(0,m.checkStrictMode)(Z,ne,Z.opts.strictTypes)}class X{constructor(ne,ve,ie){if((0,r.validateKeywordUsage)(ne,ve,ie),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=ie,this.data=ne.data,this.schema=ne.schema[ie],this.$data=ve.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,ie,this.$data),this.schemaType=ve.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=ve,this.$data)this.schemaCode=ne.gen.const("vSchema",qe(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,ve.schemaType,ve.allowUndefined))throw new Error(`${ie} value must be ${JSON.stringify(ve.schemaType)}`);("code"in ve?ve.trackErrors:ve.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,ve,ie){this.failResult((0,c.not)(ne),ve,ie)}failResult(ne,ve,ie){this.gen.if(ne),ie?ie():this.error(),ve?(this.gen.else(),ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,ve){this.failResult((0,c.not)(ne),void 0,ve)}fail(ne){if(ne===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ne),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ne){if(!this.$data)return this.fail(ne);const{schemaCode:ve}=this;this.fail((0,c._)`${ve} !== undefined && (${(0,c.or)(this.invalid$data(),ne)})`)}error(ne,ve,ie){if(ve){this.setParams(ve),this._error(ne,ie),this.setParams({});return}this._error(ne,ie)}_error(ne,ve){(ne?h.reportExtraError:h.reportError)(this,this.def.error,ve)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(ne){this.allErrors||this.gen.if(ne)}setParams(ne,ve){ve?Object.assign(this.params,ne):this.params=ne}block$data(ne,ve,ie=c.nil){this.gen.block(()=>{this.check$data(ne,ie),ve()})}check$data(ne=c.nil,ve=c.nil){if(!this.$data)return;const{gen:ie,schemaCode:xe,schemaType:Pe,def:it}=this;ie.if((0,c.or)((0,c._)`${xe} === undefined`,ve)),ne!==c.nil&&ie.assign(ne,!0),(Pe.length||it.validateSchema)&&(ie.elseIf(this.invalid$data()),this.$dataError(),ne!==c.nil&&ie.assign(ne,!1)),ie.else()}invalid$data(){const{gen:ne,schemaCode:ve,schemaType:ie,def:xe,it:Pe}=this;return(0,c.or)(it(),ct());function it(){if(ie.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const Ge=Array.isArray(ie)?ie:[ie];return(0,c._)`${(0,a.checkDataTypes)(Ge,ve,Pe.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}function ct(){if(xe.validateSchema){const Ge=ne.scopeValue("validate$data",{ref:xe.validateSchema});return(0,c._)`!${Ge}(${ve})`}return c.nil}}subschema(ne,ve){const ie=(0,i.getSubschema)(this.it,ne);(0,i.extendSubschemaData)(ie,this.it,ne),(0,i.extendSubschemaMode)(ie,ne);const xe={...this.it,...ie,items:void 0,props:void 0};return C(xe,ve),xe}mergeEvaluated(ne,ve){const{it:ie,gen:xe}=this;ie.opts.unevaluated&&(ie.props!==!0&&ne.props!==void 0&&(ie.props=m.mergeEvaluated.props(xe,ne.props,ie.props,ve)),ie.items!==!0&&ne.items!==void 0&&(ie.items=m.mergeEvaluated.items(xe,ne.items,ie.items,ve)))}mergeValidEvaluated(ne,ve){const{it:ie,gen:xe}=this;if(ie.opts.unevaluated&&(ie.props!==!0||ie.items!==!0))return xe.if(ve,()=>this.mergeEvaluated(ne,c.Name)),!0}}Es.KeywordCxt=X;function de(Z,ne,ve,ie){const xe=new X(Z,ve,ne);"code"in ve?ve.code(xe,ie):xe.$data&&ve.validate?(0,r.funcKeywordCode)(xe,ve):"macro"in ve?(0,r.macroKeywordCode)(xe,ve):(ve.compile||ve.validate)&&(0,r.funcKeywordCode)(xe,ve)}const ue=/^\/(?:[^~]|~0|~1)*$/,Ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function qe(Z,{dataLevel:ne,dataNames:ve,dataPathArr:ie}){let xe,Pe;if(Z==="")return d.default.rootData;if(Z[0]==="/"){if(!ue.test(Z))throw new Error(`Invalid JSON-pointer: ${Z}`);xe=Z,Pe=d.default.rootData}else{const at=Ee.exec(Z);if(!at)throw new Error(`Invalid JSON-pointer: ${Z}`);const Ne=+at[1];if(xe=at[2],xe==="#"){if(Ne>=ne)throw new Error(Ge("property/index",Ne));return ie[ne-Ne]}if(Ne>ne)throw new Error(Ge("data",Ne));if(Pe=ve[ne-Ne],!xe)return Pe}let it=Pe;const ct=xe.split("/");for(const at of ct)at&&(Pe=(0,c._)`${Pe}${(0,c.getProperty)((0,m.unescapeJsonPointer)(at))}`,it=(0,c._)`${it} && ${Pe}`);return it;function Ge(at,Ne){return`Cannot access ${at} ${Ne} levels up, current level is ${ne}`}}return Es.getData=qe,Es}var og={},uD;function Kk(){if(uD)return og;uD=1,Object.defineProperty(og,"__esModule",{value:!0});class e extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}return og.default=e,og}var ag={},pD;function ib(){if(pD)return ag;pD=1,Object.defineProperty(ag,"__esModule",{value:!0});const e=rb();class t extends Error{constructor(a,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,e.resolveUrl)(a,n,r),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(a,this.missingRef))}}return ag.default=t,ag}var _n={},mD;function Yk(){if(mD)return _n;mD=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.resolveSchema=_n.getCompilingSchema=_n.resolveRef=_n.compileSchema=_n.SchemaEnv=void 0;const e=yt(),t=Kk(),o=Ji(),a=rb(),n=Ft(),r=sb();class i{constructor(T){var k;this.refs={},this.dynamicAnchors={};let C;typeof T.schema=="object"&&(C=T.schema),this.schema=T.schema,this.schemaId=T.schemaId,this.root=T.root||this,this.baseId=(k=T.baseId)!==null&&k!==void 0?k:(0,a.normalizeId)(C?.[T.schemaId||"$id"]),this.schemaPath=T.schemaPath,this.localRefs=T.localRefs,this.meta=T.meta,this.$async=C?.$async,this.refs={}}}_n.SchemaEnv=i;function c(x){const T=m.call(this,x);if(T)return T;const k=(0,a.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:C,lines:E}=this.opts.code,{ownProperties:_}=this.opts,D=new e.CodeGen(this.scope,{es5:C,lines:E,ownProperties:_});let R;x.$async&&(R=D.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const O=D.scopeName("validate");x.validateName=O;const L={gen:D,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:D.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,e.stringify)(x.schema)}:{ref:x.schema}),validateName:O,ValidationError:R,schema:x.schema,schemaEnv:x,rootId:k,baseId:x.baseId||k,schemaPath:e.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let U;try{this._compilations.add(x),(0,r.validateFunctionCode)(L),D.optimize(this.opts.code.optimize);const B=D.toString();U=`${D.scopeRefs(o.default.scope)}return ${B}`,this.opts.code.process&&(U=this.opts.code.process(U,x));const F=new Function(`${o.default.self}`,`${o.default.scope}`,U)(this,this.scope.get());if(this.scope.value(O,{ref:F}),F.errors=null,F.schema=x.schema,F.schemaEnv=x,x.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:O,validateCode:B,scopeValues:D._values}),this.opts.unevaluated){const{props:W,items:oe}=L;F.evaluated={props:W instanceof e.Name?void 0:W,items:oe instanceof e.Name?void 0:oe,dynamicProps:W instanceof e.Name,dynamicItems:oe instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return x.validate=F,x}catch(B){throw delete x.validate,delete x.validateName,U&&this.logger.error("Error compiling schema, function code:",U),B}finally{this._compilations.delete(x)}}_n.compileSchema=c;function d(x,T,k){var C;k=(0,a.resolveUrl)(this.opts.uriResolver,T,k);const E=x.refs[k];if(E)return E;let _=f.call(this,x,k);if(_===void 0){const D=(C=x.localRefs)===null||C===void 0?void 0:C[k],{schemaId:R}=this.opts;D&&(_=new i({schema:D,schemaId:R,root:x,baseId:T}))}if(_!==void 0)return x.refs[k]=u.call(this,_)}_n.resolveRef=d;function u(x){return(0,a.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:c.call(this,x)}function m(x){for(const T of this._compilations)if(h(T,x))return T}_n.getCompilingSchema=m;function h(x,T){return x.schema===T.schema&&x.root===T.root&&x.baseId===T.baseId}function f(x,T){let k;for(;typeof(k=this.refs[T])=="string";)T=k;return k||this.schemas[T]||v.call(this,x,T)}function v(x,T){const k=this.opts.uriResolver.parse(T),C=(0,a._getFullPath)(this.opts.uriResolver,k);let E=(0,a.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&C===E)return w.call(this,k,x);const _=(0,a.normalizeId)(C),D=this.refs[_]||this.schemas[_];if(typeof D=="string"){const R=v.call(this,x,D);return typeof R?.schema!="object"?void 0:w.call(this,k,R)}if(typeof D?.schema=="object"){if(D.validate||c.call(this,D),_===(0,a.normalizeId)(T)){const{schema:R}=D,{schemaId:O}=this.opts,L=R[O];return L&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,L)),new i({schema:R,schemaId:O,root:x,baseId:E})}return w.call(this,k,D)}}_n.resolveSchema=v;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function w(x,{baseId:T,schema:k,root:C}){var E;if(((E=x.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const R of x.fragment.slice(1).split("/")){if(typeof k=="boolean")return;const O=k[(0,n.unescapeFragment)(R)];if(O===void 0)return;k=O;const L=typeof k=="object"&&k[this.opts.schemaId];!b.has(R)&&L&&(T=(0,a.resolveUrl)(this.opts.uriResolver,T,L))}let _;if(typeof k!="boolean"&&k.$ref&&!(0,n.schemaHasRulesButRef)(k,this.RULES)){const R=(0,a.resolveUrl)(this.opts.uriResolver,T,k.$ref);_=v.call(this,C,R)}const{schemaId:D}=this.opts;if(_=_||new i({schema:k,schemaId:D,root:C,baseId:T}),_.schema!==_.root.schema)return _}return _n}const JZ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",XZ="Meta-schema for $data reference (JSON AnySchema extension proposal)",eQ="object",tQ=["$data"],oQ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},aQ=!1,nQ={$id:JZ,description:XZ,type:eQ,required:tQ,properties:oQ,additionalProperties:aQ};var ng={},Qu={exports:{}},kS,hD;function cB(){if(hD)return kS;hD=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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);function o(f){let v="",b=0,w=0;for(w=0;w<f.length;w++)if(b=f[w].charCodeAt(0),b!==48){if(!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";v+=f[w];break}for(w+=1;w<f.length;w++){if(b=f[w].charCodeAt(0),!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";v+=f[w]}return v}const a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(f){return f.length=0,!0}function r(f,v,b){if(f.length){const w=o(f);if(w!=="")v.push(w);else return b.error=!0,!1;f.length=0}return!0}function i(f){let v=0;const b={error:!1,address:"",zone:""},w=[],x=[];let T=!1,k=!1,C=r;for(let E=0;E<f.length;E++){const _=f[E];if(!(_==="["||_==="]"))if(_===":"){if(T===!0&&(k=!0),!C(x,w,b))break;if(++v>7){b.error=!0;break}E>0&&f[E-1]===":"&&(T=!0),w.push(":");continue}else if(_==="%"){if(!C(x,w,b))break;C=n}else{x.push(_);continue}}return x.length&&(C===n?b.zone=x.join(""):k?w.push(x.join("")):w.push(o(x))),b.address=w.join(""),b}function c(f){if(d(f,":")<2)return{host:f,isIPV6:!1};const v=i(f);if(v.error)return{host:f,isIPV6:!1};{let b=v.address,w=v.address;return v.zone&&(b+="%"+v.zone,w+="%25"+v.zone),{host:b,isIPV6:!0,escapedHost:w}}}function d(f,v){let b=0;for(let w=0;w<f.length;w++)f[w]===v&&b++;return b}function u(f){let v=f;const b=[];let w=-1,x=0;for(;x=v.length;){if(x===1){if(v===".")break;if(v==="/"){b.push("/");break}else{b.push(v);break}}else if(x===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){b.push("/");break}}else if(x===3&&v==="/.."){b.length!==0&&b.pop(),b.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),b.length!==0&&b.pop();continue}}if((w=v.indexOf("/",1))===-1){b.push(v);break}else b.push(v.slice(0,w)),v=v.slice(w)}return b.join("")}function m(f,v){const b=v!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=b(f.scheme)),f.userinfo!==void 0&&(f.userinfo=b(f.userinfo)),f.host!==void 0&&(f.host=b(f.host)),f.path!==void 0&&(f.path=b(f.path)),f.query!==void 0&&(f.query=b(f.query)),f.fragment!==void 0&&(f.fragment=b(f.fragment)),f}function h(f){const v=[];if(f.userinfo!==void 0&&(v.push(f.userinfo),v.push("@")),f.host!==void 0){let b=unescape(f.host);if(!t(b)){const w=c(b);w.isIPV6===!0?b=`[${w.escapedHost}]`:b=f.host}v.push(b)}return(typeof f.port=="number"||typeof f.port=="string")&&(v.push(":"),v.push(String(f.port))),v.length?v.join(""):void 0}return kS={nonSimpleDomain:a,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:o},kS}var ES,gD;function rQ(){if(gD)return ES;gD=1;const{isUUID:e}=cB(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function a(_){return o.indexOf(_)!==-1}function n(_){return _.secure===!0?!0:_.secure===!1?!1:_.scheme?_.scheme.length===3&&(_.scheme[0]==="w"||_.scheme[0]==="W")&&(_.scheme[1]==="s"||_.scheme[1]==="S")&&(_.scheme[2]==="s"||_.scheme[2]==="S"):!1}function r(_){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_}function i(_){const D=String(_.scheme).toLowerCase()==="https";return(_.port===(D?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}function c(_){return _.secure=n(_),_.resourceName=(_.path||"/")+(_.query?"?"+_.query:""),_.path=void 0,_.query=void 0,_}function d(_){if((_.port===(n(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){const[D,R]=_.resourceName.split("?");_.path=D&&D!=="/"?D:void 0,_.query=R,_.resourceName=void 0}return _.fragment=void 0,_}function u(_,D){if(!_.path)return _.error="URN can not be parsed",_;const R=_.path.match(t);if(R){const O=D.scheme||_.scheme||"urn";_.nid=R[1].toLowerCase(),_.nss=R[2];const L=`${O}:${D.nid||_.nid}`,U=E(L);_.path=void 0,U&&(_=U.parse(_,D))}else _.error=_.error||"URN can not be parsed.";return _}function m(_,D){if(_.nid===void 0)throw new Error("URN without nid cannot be serialized");const R=D.scheme||_.scheme||"urn",O=_.nid.toLowerCase(),L=`${R}:${D.nid||O}`,U=E(L);U&&(_=U.serialize(_,D));const B=_,z=_.nss;return B.path=`${O||D.nid}:${z}`,D.skipEscape=!0,B}function h(_,D){const R=_;return R.uuid=R.nss,R.nss=void 0,!D.tolerant&&(!R.uuid||!e(R.uuid))&&(R.error=R.error||"UUID is not valid."),R}function f(_){const D=_;return D.nss=(_.uuid||"").toLowerCase(),D}const v={scheme:"http",domainHost:!0,parse:r,serialize:i},b={scheme:"https",domainHost:v.domainHost,parse:r,serialize:i},w={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:w.domainHost,parse:w.parse,serialize:w.serialize},C={http:v,https:b,ws:w,wss:x,urn:{scheme:"urn",parse:u,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(C,null);function E(_){return _&&(C[_]||C[_.toLowerCase()])||void 0}return ES={wsIsSecure:n,SCHEMES:C,isValidSchemeName:a,getSchemeHandler:E},ES}var fD;function sQ(){if(fD)return Qu.exports;fD=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:o,normalizeComponentEncoding:a,isIPv4:n,nonSimpleDomain:r}=cB(),{SCHEMES:i,getSchemeHandler:c}=rQ();function d(x,T){return typeof x=="string"?x=f(b(x,T),T):typeof x=="object"&&(x=b(f(x,T),T)),x}function u(x,T,k){const C=k?Object.assign({scheme:"null"},k):{scheme:"null"},E=m(b(x,C),b(T,C),C,!0);return C.skipEscape=!0,f(E,C)}function m(x,T,k,C){const E={};return C||(x=b(f(x,k),k),T=b(f(T,k),k)),k=k||{},!k.tolerant&&T.scheme?(E.scheme=T.scheme,E.userinfo=T.userinfo,E.host=T.host,E.port=T.port,E.path=t(T.path||""),E.query=T.query):(T.userinfo!==void 0||T.host!==void 0||T.port!==void 0?(E.userinfo=T.userinfo,E.host=T.host,E.port=T.port,E.path=t(T.path||""),E.query=T.query):(T.path?(T.path[0]==="/"?E.path=t(T.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?E.path="/"+T.path:x.path?E.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+T.path:E.path=T.path,E.path=t(E.path)),E.query=T.query):(E.path=x.path,T.query!==void 0?E.query=T.query:E.query=x.query),E.userinfo=x.userinfo,E.host=x.host,E.port=x.port),E.scheme=x.scheme),E.fragment=T.fragment,E}function h(x,T,k){return typeof x=="string"?(x=unescape(x),x=f(a(b(x,k),!0),{...k,skipEscape:!0})):typeof x=="object"&&(x=f(a(x,!0),{...k,skipEscape:!0})),typeof T=="string"?(T=unescape(T),T=f(a(b(T,k),!0),{...k,skipEscape:!0})):typeof T=="object"&&(T=f(a(T,!0),{...k,skipEscape:!0})),x.toLowerCase()===T.toLowerCase()}function f(x,T){const k={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},C=Object.assign({},T),E=[],_=c(C.scheme||k.scheme);_&&_.serialize&&_.serialize(k,C),k.path!==void 0&&(C.skipEscape?k.path=unescape(k.path):(k.path=escape(k.path),k.scheme!==void 0&&(k.path=k.path.split("%3A").join(":")))),C.reference!=="suffix"&&k.scheme&&E.push(k.scheme,":");const D=o(k);if(D!==void 0&&(C.reference!=="suffix"&&E.push("//"),E.push(D),k.path&&k.path[0]!=="/"&&E.push("/")),k.path!==void 0){let R=k.path;!C.absolutePath&&(!_||!_.absolutePath)&&(R=t(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),E.push(R)}return k.query!==void 0&&E.push("?",k.query),k.fragment!==void 0&&E.push("#",k.fragment),E.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(x,T){const k=Object.assign({},T),C={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let E=!1;k.reference==="suffix"&&(k.scheme?x=k.scheme+":"+x:x="//"+x);const _=x.match(v);if(_){if(C.scheme=_[1],C.userinfo=_[3],C.host=_[4],C.port=parseInt(_[5],10),C.path=_[6]||"",C.query=_[7],C.fragment=_[8],isNaN(C.port)&&(C.port=_[5]),C.host)if(n(C.host)===!1){const O=e(C.host);C.host=O.host.toLowerCase(),E=O.isIPV6}else E=!0;C.scheme===void 0&&C.userinfo===void 0&&C.host===void 0&&C.port===void 0&&C.query===void 0&&!C.path?C.reference="same-document":C.scheme===void 0?C.reference="relative":C.fragment===void 0?C.reference="absolute":C.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==C.reference&&(C.error=C.error||"URI is not a "+k.reference+" reference.");const D=c(k.scheme||C.scheme);if(!k.unicodeSupport&&(!D||!D.unicodeSupport)&&C.host&&(k.domainHost||D&&D.domainHost)&&E===!1&&r(C.host))try{C.host=URL.domainToASCII(C.host.toLowerCase())}catch(R){C.error=C.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(x.indexOf("%")!==-1&&(C.scheme!==void 0&&(C.scheme=unescape(C.scheme)),C.host!==void 0&&(C.host=unescape(C.host))),C.path&&(C.path=escape(unescape(C.path))),C.fragment&&(C.fragment=encodeURI(decodeURIComponent(C.fragment)))),D&&D.parse&&D.parse(C,k)}else C.error=C.error||"URI can not be parsed.";return C}const w={SCHEMES:i,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:b};return Qu.exports=w,Qu.exports.default=w,Qu.exports.fastUri=w,Qu.exports}var vD;function iQ(){if(vD)return ng;vD=1,Object.defineProperty(ng,"__esModule",{value:!0});const e=sQ();return e.code='require("ajv/dist/runtime/uri").default',ng.default=e,ng}var bD;function lQ(){return bD||(bD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=sb();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var o=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=Kk(),n=ib(),r=sB(),i=Yk(),c=yt(),d=rb(),u=Qf(),m=Ft(),h=nQ,f=iQ(),v=(Q,M)=>new RegExp(Q,M);v.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],w=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},T={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k=200;function C(Q){var M,G,V,I,j,X,de,ue,Ee,qe,Z,ne,ve,ie,xe,Pe,it,ct,Ge,at,Ne,Oe,He,Y,ae;const le=Q.strict,Ce=(M=Q.code)===null||M===void 0?void 0:M.optimize,Re=Ce===!0||Ce===void 0?1:Ce||0,De=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,Ie=(I=Q.uriResolver)!==null&&I!==void 0?I:f.default;return{strictSchema:(X=(j=Q.strictSchema)!==null&&j!==void 0?j:le)!==null&&X!==void 0?X:!0,strictNumbers:(ue=(de=Q.strictNumbers)!==null&&de!==void 0?de:le)!==null&&ue!==void 0?ue:!0,strictTypes:(qe=(Ee=Q.strictTypes)!==null&&Ee!==void 0?Ee:le)!==null&&qe!==void 0?qe:"log",strictTuples:(ne=(Z=Q.strictTuples)!==null&&Z!==void 0?Z:le)!==null&&ne!==void 0?ne:"log",strictRequired:(ie=(ve=Q.strictRequired)!==null&&ve!==void 0?ve:le)!==null&&ie!==void 0?ie:!1,code:Q.code?{...Q.code,optimize:Re,regExp:De}:{optimize:Re,regExp:De},loopRequired:(xe=Q.loopRequired)!==null&&xe!==void 0?xe:k,loopEnum:(Pe=Q.loopEnum)!==null&&Pe!==void 0?Pe:k,meta:(it=Q.meta)!==null&&it!==void 0?it:!0,messages:(ct=Q.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(Ge=Q.inlineRefs)!==null&&Ge!==void 0?Ge:!0,schemaId:(at=Q.schemaId)!==null&&at!==void 0?at:"$id",addUsedSchema:(Ne=Q.addUsedSchema)!==null&&Ne!==void 0?Ne:!0,validateSchema:(Oe=Q.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(He=Q.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Y=Q.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(ae=Q.int32range)!==null&&ae!==void 0?ae:!0,uriResolver:Ie}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...C(M)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:w,es5:G,lines:V}),this.logger=z(M.logger);const I=M.validateFormats;M.validateFormats=!1,this.RULES=(0,r.getRules)(),_.call(this,x,M,"NOT SUPPORTED"),_.call(this,T,M,"DEPRECATED","warn"),this._metaOpts=U.call(this),M.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&L.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),R.call(this),M.validateFormats=I}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:G,schemaId:V}=this.opts;let I=h;V==="id"&&(I={...h},I.id=I.$id,delete I.$id),G&&M&&this.addMetaSchema(I,I[V],!1)}defaultMeta(){const{meta:M,schemaId:G}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[G]||M:void 0}validate(M,G){let V;if(typeof M=="string"){if(V=this.getSchema(M),!V)throw new Error(`no schema with key or ref "${M}"`)}else V=this.compile(M);const I=V(G);return"$async"in V||(this.errors=V.errors),I}compile(M,G){const V=this._addSchema(M,G);return V.validate||this._compileSchemaEnv(V)}compileAsync(M,G){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return I.call(this,M,G);async function I(qe,Z){await j.call(this,qe.$schema);const ne=this._addSchema(qe,Z);return ne.validate||X.call(this,ne)}async function j(qe){qe&&!this.getSchema(qe)&&await I.call(this,{$ref:qe},!0)}async function X(qe){try{return this._compileSchemaEnv(qe)}catch(Z){if(!(Z instanceof n.default))throw Z;return de.call(this,Z),await ue.call(this,Z.missingSchema),X.call(this,qe)}}function de({missingSchema:qe,missingRef:Z}){if(this.refs[qe])throw new Error(`AnySchema ${qe} is loaded but ${Z} cannot be resolved`)}async function ue(qe){const Z=await Ee.call(this,qe);this.refs[qe]||await j.call(this,Z.$schema),this.refs[qe]||this.addSchema(Z,qe,G)}async function Ee(qe){const Z=this._loading[qe];if(Z)return Z;try{return await(this._loading[qe]=V(qe))}finally{delete this._loading[qe]}}}addSchema(M,G,V,I=this.opts.validateSchema){if(Array.isArray(M)){for(const X of M)this.addSchema(X,void 0,V,I);return this}let j;if(typeof M=="object"){const{schemaId:X}=this.opts;if(j=M[X],j!==void 0&&typeof j!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||j),this._checkUnique(G),this.schemas[G]=this._addSchema(M,V,G,I,!0),this}addMetaSchema(M,G,V=this.opts.validateSchema){return this.addSchema(M,G,!0,V),this}validateSchema(M,G){if(typeof M=="boolean")return!0;let V;if(V=M.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const I=this.validate(V,M);if(!I&&G){const j="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(j);else throw new Error(j)}return I}getSchema(M){let G;for(;typeof(G=D.call(this,M))=="string";)M=G;if(G===void 0){const{schemaId:V}=this.opts,I=new i.SchemaEnv({schema:{},schemaId:V});if(G=i.resolveSchema.call(this,I,M),!G)return;this.refs[M]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const G=D.call(this,M);return typeof G=="object"&&this._cache.delete(G.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const G=M;this._cache.delete(G);let V=M[this.opts.schemaId];return V&&(V=(0,d.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const G of M)this.addKeyword(G);return this}addKeyword(M,G){let V;if(typeof M=="string")V=M,typeof G=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=V);else if(typeof M=="object"&&G===void 0){if(G=M,V=G.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,V,G),!G)return(0,m.eachItem)(V,j=>oe.call(this,j)),this;K.call(this,G);const I={...G,type:(0,u.getJSONTypes)(G.type),schemaType:(0,u.getJSONTypes)(G.schemaType)};return(0,m.eachItem)(V,I.type.length===0?j=>oe.call(this,j,I):j=>I.type.forEach(X=>oe.call(this,j,I,X))),this}getKeyword(M){const G=this.RULES.all[M];return typeof G=="object"?G.definition:!!G}removeKeyword(M){const{RULES:G}=this;delete G.keywords[M],delete G.all[M];for(const V of G.rules){const I=V.rules.findIndex(j=>j.keyword===M);I>=0&&V.rules.splice(I,1)}return this}addFormat(M,G){return typeof G=="string"&&(G=new RegExp(G)),this.formats[M]=G,this}errorsText(M=this.errors,{separator:G=", ",dataVar:V="data"}={}){return!M||M.length===0?"No errors":M.map(I=>`${V}${I.instancePath} ${I.message}`).reduce((I,j)=>I+G+j)}$dataMetaSchema(M,G){const V=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const I of G){const j=I.split("/").slice(1);let X=M;for(const de of j)X=X[de];for(const de in V){const ue=V[de];if(typeof ue!="object")continue;const{$data:Ee}=ue.definition,qe=X[de];Ee&&qe&&(X[de]=se(qe))}}return M}_removeAllSchemas(M,G){for(const V in M){const I=M[V];(!G||G.test(V))&&(typeof I=="string"?delete M[V]:I&&!I.meta&&(this._cache.delete(I.schema),delete M[V]))}}_addSchema(M,G,V,I=this.opts.validateSchema,j=this.opts.addUsedSchema){let X;const{schemaId:de}=this.opts;if(typeof M=="object")X=M[de];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let ue=this._cache.get(M);if(ue!==void 0)return ue;V=(0,d.normalizeId)(X||V);const Ee=d.getSchemaRefs.call(this,M,V);return ue=new i.SchemaEnv({schema:M,schemaId:de,meta:G,baseId:V,localRefs:Ee}),this._cache.set(ue.schema,ue),j&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=ue),I&&this.validateSchema(M,!0),ue}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):i.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const G=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,M)}finally{this.opts=G}}}E.ValidationError=a.default,E.MissingRefError=n.default,e.default=E;function _(Q,M,G,V="error"){for(const I in Q){const j=I;j in M&&this.logger[V](`${G}: option ${I}. ${Q[j]}`)}}function D(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function R(){const Q=this.opts.schemas;if(Q)if(Array.isArray(Q))this.addSchema(Q);else for(const M in Q)this.addSchema(Q[M],M)}function O(){for(const Q in this.opts.formats){const M=this.opts.formats[Q];M&&this.addFormat(Q,M)}}function L(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in Q){const G=Q[M];G.keyword||(G.keyword=M),this.addKeyword(G)}}function U(){const Q={...this.opts};for(const M of b)delete Q[M];return Q}const B={log(){},warn(){},error(){}};function z(Q){if(Q===!1)return B;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function W(Q,M){const{RULES:G}=this;if((0,m.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!F.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function oe(Q,M,G){var V;const I=M?.post;if(G&&I)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:j}=this;let X=I?j.post:j.rules.find(({type:ue})=>ue===G);if(X||(X={type:G,rules:[]},j.rules.push(X)),j.keywords[Q]=!0,!M)return;const de={keyword:Q,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?H.call(this,X,de,M.before):X.rules.push(de),j.all[Q]=de,(V=M.implements)===null||V===void 0||V.forEach(ue=>this.addKeyword(ue))}function H(Q,M,G){const V=Q.rules.findIndex(I=>I.keyword===G);V>=0?Q.rules.splice(V,0,M):(Q.rules.push(M),this.logger.warn(`rule ${G} is not defined`))}function K(Q){let{metaSchema:M}=Q;M!==void 0&&(Q.$data&&this.opts.$data&&(M=se(M)),Q.validateSchema=this.compile(M,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(Q){return{anyOf:[Q,J]}}})(vS)),vS}var rg={},sg={},ig={},yD;function cQ(){if(yD)return ig;yD=1,Object.defineProperty(ig,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return ig.default=e,ig}var vi={},wD;function dQ(){if(wD)return vi;wD=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.callRef=vi.getValidate=void 0;const e=ib(),t=Or(),o=yt(),a=Ji(),n=Yk(),r=Ft(),i={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:v,schemaEnv:b,validateName:w,opts:x,self:T}=f,{root:k}=b;if((h==="#"||h==="#/")&&v===k.baseId)return E();const C=n.resolveRef.call(T,k,v,h);if(C===void 0)throw new e.default(f.opts.uriResolver,v,h);if(C instanceof n.SchemaEnv)return _(C);return D(C);function E(){if(b===k)return d(u,w,b,b.$async);const R=m.scopeValue("root",{ref:k});return d(u,(0,o._)`${R}.validate`,k,k.$async)}function _(R){const O=c(u,R);d(u,O,R,R.$async)}function D(R){const O=m.scopeValue("schema",x.code.source===!0?{ref:R,code:(0,o.stringify)(R)}:{ref:R}),L=m.name("valid"),U=u.subschema({schema:R,dataTypes:[],schemaPath:o.nil,topSchemaRef:O,errSchemaPath:h},L);u.mergeEvaluated(U),u.ok(L)}}};function c(u,m){const{gen:h}=u;return m.validate?h.scopeValue("validate",{ref:m.validate}):(0,o._)`${h.scopeValue("wrapper",{ref:m})}.validate`}vi.getValidate=c;function d(u,m,h,f){const{gen:v,it:b}=u,{allErrors:w,schemaEnv:x,opts:T}=b,k=T.passContext?a.default.this:o.nil;f?C():E();function C(){if(!x.$async)throw new Error("async schema referenced by sync schema");const R=v.let("valid");v.try(()=>{v.code((0,o._)`await ${(0,t.callValidateCode)(u,m,k)}`),D(m),w||v.assign(R,!0)},O=>{v.if((0,o._)`!(${O} instanceof ${b.ValidationError})`,()=>v.throw(O)),_(O),w||v.assign(R,!1)}),u.ok(R)}function E(){u.result((0,t.callValidateCode)(u,m,k),()=>D(m),()=>_(m))}function _(R){const O=(0,o._)`${R}.errors`;v.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${O} : ${a.default.vErrors}.concat(${O})`),v.assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`)}function D(R){var O;if(!b.opts.unevaluated)return;const L=(O=h?.validate)===null||O===void 0?void 0:O.evaluated;if(b.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(b.props=r.mergeEvaluated.props(v,L.props,b.props));else{const U=v.var("props",(0,o._)`${R}.evaluated.props`);b.props=r.mergeEvaluated.props(v,U,b.props,o.Name)}if(b.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(b.items=r.mergeEvaluated.items(v,L.items,b.items));else{const U=v.var("items",(0,o._)`${R}.evaluated.items`);b.items=r.mergeEvaluated.items(v,U,b.items,o.Name)}}}return vi.callRef=d,vi.default=i,vi}var SD;function uQ(){if(SD)return sg;SD=1,Object.defineProperty(sg,"__esModule",{value:!0});const e=cQ(),t=dQ(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return sg.default=o,sg}var lg={},cg={},TD;function pQ(){if(TD)return cg;TD=1,Object.defineProperty(cg,"__esModule",{value:!0});const e=yt(),t=e.operators,o={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},a={message:({keyword:r,schemaCode:i})=>(0,e.str)`must be ${o[r].okStr} ${i}`,params:({keyword:r,schemaCode:i})=>(0,e._)`{comparison: ${o[r].okStr}, limit: ${i}}`},n={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(r){const{keyword:i,data:c,schemaCode:d}=r;r.fail$data((0,e._)`${c} ${o[i].fail} ${d} || isNaN(${c})`)}};return cg.default=n,cg}var dg={},xD;function mQ(){if(xD)return dg;xD=1,Object.defineProperty(dg,"__esModule",{value:!0});const e=yt(),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,e._)`{multipleOf: ${a}}`},code(a){const{gen:n,data:r,schemaCode:i,it:c}=a,d=c.opts.multipleOfPrecision,u=n.let("res"),m=d?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${d}`:(0,e._)`${u} !== parseInt(${u})`;a.fail$data((0,e._)`(${i} === 0 || (${u} = ${r}/${i}, ${m}))`)}};return dg.default=o,dg}var ug={},pg={},kD;function hQ(){if(kD)return pg;kD=1,Object.defineProperty(pg,"__esModule",{value:!0});function e(t){const o=t.length;let a=0,n=0,r;for(;n<o;)a++,r=t.charCodeAt(n++),r>=55296&&r<=56319&&n<o&&(r=t.charCodeAt(n),(r&64512)===56320&&n++);return a}return pg.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',pg}var ED;function gQ(){if(ED)return ug;ED=1,Object.defineProperty(ug,"__esModule",{value:!0});const e=yt(),t=Ft(),o=hQ(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const c=r==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${i} characters`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:c,schemaCode:d,it:u}=r,m=i==="maxLength"?e.operators.GT:e.operators.LT,h=u.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(r.gen,o.default)}(${c})`;r.fail$data((0,e._)`${h} ${m} ${d}`)}};return ug.default=n,ug}var mg={},CD;function fQ(){if(CD)return mg;CD=1,Object.defineProperty(mg,"__esModule",{value:!0});const e=Or(),t=Ft(),o=yt(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,o.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,o._)`{pattern: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r,f=h.opts.unicodeRegExp?"u":"";if(d){const{regExp:v}=h.opts.code,b=v.code==="new RegExp"?(0,o._)`new RegExp`:(0,t.useFunc)(i,v),w=i.let("valid");i.try(()=>i.assign(w,(0,o._)`${b}(${m}, ${f}).test(${c})`),()=>i.assign(w,!1)),r.fail$data((0,o._)`!${w}`)}else{const v=(0,e.usePattern)(r,u);r.fail$data((0,o._)`!${v}.test(${c})`)}}};return mg.default=n,mg}var hg={},PD;function vQ(){if(PD)return hg;PD=1,Object.defineProperty(hg,"__esModule",{value:!0});const e=yt(),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:i}=a,c=n==="maxProperties"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`Object.keys(${r}).length ${c} ${i}`)}};return hg.default=o,hg}var gg={},_D;function bQ(){if(_D)return gg;_D=1,Object.defineProperty(gg,"__esModule",{value:!0});const e=Or(),t=yt(),o=Ft(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,t.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,t._)`{missingProperty: ${r}}`},code(r){const{gen:i,schema:c,schemaCode:d,data:u,$data:m,it:h}=r,{opts:f}=h;if(!m&&c.length===0)return;const v=c.length>=f.loopRequired;if(h.allErrors?b():w(),f.strictRequired){const k=r.parentSchema.properties,{definedProperties:C}=r.it;for(const E of c)if(k?.[E]===void 0&&!C.has(E)){const _=h.schemaEnv.baseId+h.errSchemaPath,D=`required property "${E}" is not defined at "${_}" (strictRequired)`;(0,o.checkStrictMode)(h,D,h.opts.strictRequired)}}function b(){if(v||m)r.block$data(t.nil,x);else for(const k of c)(0,e.checkReportMissingProp)(r,k)}function w(){const k=i.let("missing");if(v||m){const C=i.let("valid",!0);r.block$data(C,()=>T(k,C)),r.ok(C)}else i.if((0,e.checkMissingProp)(r,c,k)),(0,e.reportMissingProp)(r,k),i.else()}function x(){i.forOf("prop",d,k=>{r.setParams({missingProperty:k}),i.if((0,e.noPropertyInData)(i,u,k,f.ownProperties),()=>r.error())})}function T(k,C){r.setParams({missingProperty:k}),i.forOf(k,d,()=>{i.assign(C,(0,e.propertyInData)(i,u,k,f.ownProperties)),i.if((0,t.not)(C),()=>{r.error(),i.break()})},t.nil)}}};return gg.default=n,gg}var fg={},AD;function yQ(){if(AD)return fg;AD=1,Object.defineProperty(fg,"__esModule",{value:!0});const e=yt(),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:i}=a,c=n==="maxItems"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`${r}.length ${c} ${i}`)}};return fg.default=o,fg}var vg={},bg={},RD;function Zk(){if(RD)return bg;RD=1,Object.defineProperty(bg,"__esModule",{value:!0});const e=lB();return e.code='require("ajv/dist/runtime/equal").default',bg.default=e,bg}var DD;function wQ(){if(DD)return vg;DD=1,Object.defineProperty(vg,"__esModule",{value:!0});const e=Qf(),t=yt(),o=Ft(),a=Zk(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${i} are identical)`,params:({params:{i,j:c}})=>(0,t._)`{i: ${i}, j: ${c}}`},code(i){const{gen:c,data:d,$data:u,schema:m,parentSchema:h,schemaCode:f,it:v}=i;if(!u&&!m)return;const b=c.let("valid"),w=h.items?(0,e.getSchemaTypes)(h.items):[];i.block$data(b,x,(0,t._)`${f} === false`),i.ok(b);function x(){const E=c.let("i",(0,t._)`${d}.length`),_=c.let("j");i.setParams({i:E,j:_}),c.assign(b,!0),c.if((0,t._)`${E} > 1`,()=>(T()?k:C)(E,_))}function T(){return w.length>0&&!w.some(E=>E==="object"||E==="array")}function k(E,_){const D=c.name("item"),R=(0,e.checkDataTypes)(w,D,v.opts.strictNumbers,e.DataType.Wrong),O=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${E}--;`,()=>{c.let(D,(0,t._)`${d}[${E}]`),c.if(R,(0,t._)`continue`),w.length>1&&c.if((0,t._)`typeof ${D} == "string"`,(0,t._)`${D} += "_"`),c.if((0,t._)`typeof ${O}[${D}] == "number"`,()=>{c.assign(_,(0,t._)`${O}[${D}]`),i.error(),c.assign(b,!1).break()}).code((0,t._)`${O}[${D}] = ${E}`)})}function C(E,_){const D=(0,o.useFunc)(c,a.default),R=c.name("outer");c.label(R).for((0,t._)`;${E}--;`,()=>c.for((0,t._)`${_} = ${E}; ${_}--;`,()=>c.if((0,t._)`${D}(${d}[${E}], ${d}[${_}])`,()=>{i.error(),c.assign(b,!1).break(R)})))}}};return vg.default=r,vg}var yg={},OD;function SQ(){if(OD)return yg;OD=1,Object.defineProperty(yg,"__esModule",{value:!0});const e=yt(),t=Ft(),o=Zk(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,e._)`{allowedValue: ${r}}`},code(r){const{gen:i,data:c,$data:d,schemaCode:u,schema:m}=r;d||m&&typeof m=="object"?r.fail$data((0,e._)`!${(0,t.useFunc)(i,o.default)}(${c}, ${u})`):r.fail((0,e._)`${m} !== ${c}`)}};return yg.default=n,yg}var wg={},ND;function TQ(){if(ND)return wg;ND=1,Object.defineProperty(wg,"__esModule",{value:!0});const e=yt(),t=Ft(),o=Zk(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,e._)`{allowedValues: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r;if(!d&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=h.opts.loopEnum;let v;const b=()=>v??(v=(0,t.useFunc)(i,o.default));let w;if(f||d)w=i.let("valid"),r.block$data(w,x);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const k=i.const("vSchema",m);w=(0,e.or)(...u.map((C,E)=>T(k,E)))}r.pass(w);function x(){i.assign(w,!1),i.forOf("v",m,k=>i.if((0,e._)`${b()}(${c}, ${k})`,()=>i.assign(w,!0).break()))}function T(k,C){const E=u[C];return typeof E=="object"&&E!==null?(0,e._)`${b()}(${c}, ${k}[${C}])`:(0,e._)`${c} === ${E}`}}};return wg.default=n,wg}var MD;function xQ(){if(MD)return lg;MD=1,Object.defineProperty(lg,"__esModule",{value:!0});const e=pQ(),t=mQ(),o=gQ(),a=fQ(),n=vQ(),r=bQ(),i=yQ(),c=wQ(),d=SQ(),u=TQ(),m=[e.default,t.default,o.default,a.default,n.default,r.default,i.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,u.default];return lg.default=m,lg}var Sg={},Hc={},ID;function dB(){if(ID)return Hc;ID=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.validateAdditionalItems=void 0;const e=yt(),t=Ft(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,e.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,e._)`{limit: ${r}}`},code(r){const{parentSchema:i,it:c}=r,{items:d}=i;if(!Array.isArray(d)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(r,d)}};function n(r,i){const{gen:c,schema:d,data:u,keyword:m,it:h}=r;h.items=!0;const f=c.const("len",(0,e._)`${u}.length`);if(d===!1)r.setParams({len:i.length}),r.pass((0,e._)`${f} <= ${i.length}`);else if(typeof d=="object"&&!(0,t.alwaysValidSchema)(h,d)){const b=c.var("valid",(0,e._)`${f} <= ${i.length}`);c.if((0,e.not)(b),()=>v(b)),r.ok(b)}function v(b){c.forRange("i",i.length,f,w=>{r.subschema({keyword:m,dataProp:w,dataPropType:t.Type.Num},b),h.allErrors||c.if((0,e.not)(b),()=>c.break())})}}return Hc.validateAdditionalItems=n,Hc.default=a,Hc}var Tg={},Gc={},LD;function uB(){if(LD)return Gc;LD=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.validateTuple=void 0;const e=yt(),t=Ft(),o=Or(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:i,it:c}=r;if(Array.isArray(i))return n(r,"additionalItems",i);c.items=!0,!(0,t.alwaysValidSchema)(c,i)&&r.ok((0,o.validateArray)(r))}};function n(r,i,c=r.schema){const{gen:d,parentSchema:u,data:m,keyword:h,it:f}=r;w(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=t.mergeEvaluated.items(d,c.length,f.items));const v=d.name("valid"),b=d.const("len",(0,e._)`${m}.length`);c.forEach((x,T)=>{(0,t.alwaysValidSchema)(f,x)||(d.if((0,e._)`${b} > ${T}`,()=>r.subschema({keyword:h,schemaProp:T,dataProp:T},v)),r.ok(v))});function w(x){const{opts:T,errSchemaPath:k}=f,C=c.length,E=C===x.minItems&&(C===x.maxItems||x[i]===!1);if(T.strictTuples&&!E){const _=`"${h}" is ${C}-tuple, but minItems or maxItems/${i} are not specified or different at path "${k}"`;(0,t.checkStrictMode)(f,_,T.strictTuples)}}}return Gc.validateTuple=n,Gc.default=a,Gc}var BD;function kQ(){if(BD)return Tg;BD=1,Object.defineProperty(Tg,"__esModule",{value:!0});const e=uB(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,e.validateTuple)(o,"items")};return Tg.default=t,Tg}var xg={},FD;function EQ(){if(FD)return xg;FD=1,Object.defineProperty(xg,"__esModule",{value:!0});const e=yt(),t=Ft(),o=Or(),a=dB(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{schema:c,parentSchema:d,it:u}=i,{prefixItems:m}=d;u.items=!0,!(0,t.alwaysValidSchema)(u,c)&&(m?(0,a.validateAdditionalItems)(i,m):i.ok((0,o.validateArray)(i)))}};return xg.default=r,xg}var kg={},jD;function CQ(){if(jD)return kg;jD=1,Object.defineProperty(kg,"__esModule",{value:!0});const e=yt(),t=Ft(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:r}})=>r===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${r} valid item(s)`,params:({params:{min:n,max:r}})=>r===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{minContains: ${n}, maxContains: ${r}}`},code(n){const{gen:r,schema:i,parentSchema:c,data:d,it:u}=n;let m,h;const{minContains:f,maxContains:v}=c;u.opts.next?(m=f===void 0?1:f,h=v):m=1;const b=r.const("len",(0,e._)`${d}.length`);if(n.setParams({min:m,max:h}),h===void 0&&m===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&m>h){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(u,i)){let C=(0,e._)`${b} >= ${m}`;h!==void 0&&(C=(0,e._)`${C} && ${b} <= ${h}`),n.pass(C);return}u.items=!0;const w=r.name("valid");h===void 0&&m===1?T(w,()=>r.if(w,()=>r.break())):m===0?(r.let(w,!0),h!==void 0&&r.if((0,e._)`${d}.length > 0`,x)):(r.let(w,!1),x()),n.result(w,()=>n.reset());function x(){const C=r.name("_valid"),E=r.let("count",0);T(C,()=>r.if(C,()=>k(E)))}function T(C,E){r.forRange("i",0,b,_=>{n.subschema({keyword:"contains",dataProp:_,dataPropType:t.Type.Num,compositeRule:!0},C),E()})}function k(C){r.code((0,e._)`${C}++`),h===void 0?r.if((0,e._)`${C} >= ${m}`,()=>r.assign(w,!0).break()):(r.if((0,e._)`${C} > ${h}`,()=>r.assign(w,!1).break()),m===1?r.assign(w,!0):r.if((0,e._)`${C} >= ${m}`,()=>r.assign(w,!0)))}}};return kg.default=a,kg}var CS={},zD;function PQ(){return zD||(zD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=yt(),o=Ft(),a=Or();e.error={message:({params:{property:d,depsCount:u,deps:m}})=>{const h=u===1?"property":"properties";return(0,t.str)`must have ${h} ${m} when property ${d} is present`},params:({params:{property:d,depsCount:u,deps:m,missingProperty:h}})=>(0,t._)`{property: ${d},
|
|
53
53
|
missingProperty: ${h},
|
|
54
54
|
depsCount: ${u},
|
|
55
|
-
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const b in u){const w=u[b];if(w.length===0)continue;const x=(0,a.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,depsCount:w.length,deps:w.join(", ")}),f.allErrors?m.if(x,()=>{for(const T of w)(0,a.checkReportMissingProp)(d,T)}):(m.if((0,t._)`${x} && (${(0,a.checkMissingProp)(d,w,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}e.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,b=m.name("valid");for(const w in u)(0,o.alwaysValidSchema)(v,u[w])||(m.if((0,a.propertyInData)(m,h,w,v.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:w},b);d.mergeValidEvaluated(x,b)},()=>m.var(b,!0)),d.ok(b))}e.validateSchemaDeps=c,e.default=n})(CS)),CS}var Eg={},qD;function _Q(){if(qD)return Eg;qD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const e=yt(),t=Ft(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,t.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,e.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Eg.default=a,Eg}var Cg={},UD;function pB(){if(UD)return Cg;UD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const e=Or(),t=yt(),o=Ji(),a=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,t._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const w=(0,e.allSchemaProperties)(u.properties),x=(0,e.allSchemaProperties)(u.patternProperties);T(),i.ok((0,t._)`${h} === ${o.default.errors}`);function T(){c.forIn("key",m,D=>{!w.length&&!x.length?E(D):c.if(k(D),()=>E(D))})}function k(D){let R;if(w.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,e.isOwnProperty)(c,O,D)}else w.length?R=(0,t.or)(...w.map(O=>(0,t._)`${D} === ${O}`)):R=t.nil;return x.length&&(R=(0,t.or)(R,...x.map(O=>(0,t._)`${(0,e.usePattern)(i,O)}.test(${D})`))),(0,t.not)(R)}function C(D){c.code((0,t._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");b.removeAdditional==="failing"?(_(D,R,!1),c.if((0,t.not)(R),()=>{i.reset(),C(D)})):(_(D,R),v||c.if((0,t.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return Cg.default=r,Cg}var Pg={},$D;function AQ(){if($D)return Pg;$D=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e=sb(),t=Or(),o=Ft(),a=pB(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new e.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const x of h)m.definedProperties.add(x);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(i,(0,o.toHash)(h),m.props));const f=h.filter(x=>!(0,o.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const v=i.name("valid");for(const x of f)b(x)?w(x):(i.if((0,t.propertyInData)(i,u,x,m.opts.ownProperties)),w(x),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(x),r.ok(v);function b(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function w(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Pg.default=n,Pg}var _g={},VD;function RQ(){if(VD)return _g;VD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e=Or(),t=yt(),o=Ft(),a=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,e.allSchemaProperties)(c),v=f.filter(E=>(0,o.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=h.strictSchema&&!h.allowMatchingProperties&&u.properties,w=i.name("valid");m.props!==!0&&!(m.props instanceof t.Name)&&(m.props=(0,a.evaluatedPropsToName)(i,m.props));const{props:x}=m;T();function T(){for(const E of f)b&&k(E),m.allErrors?C(E):(i.var(w,!0),C(E),i.if(w))}function k(E){for(const _ in b)new RegExp(E).test(_)&&(0,o.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,_=>{i.if((0,t._)`${(0,e.usePattern)(r,E)}.test(${_})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:a.Type.Str},w),m.opts.unevaluated&&x!==!0?i.assign((0,t._)`${x}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,t.not)(w),()=>i.break())})})}}};return _g.default=n,_g}var Ag={},HD;function DQ(){if(HD)return Ag;HD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const e=Ft(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,e.alwaysValidSchema)(r,n)){o.fail();return}const i=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),o.failResult(i,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return Ag.default=t,Ag}var Rg={},GD;function OQ(){if(GD)return Rg;GD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Or().validateUnion,error:{message:"must match a schema in anyOf"}};return Rg.default=t,Rg}var Dg={},WD;function NQ(){if(WD)return Dg;WD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const e=yt(),t=Ft(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((b,w)=>{let x;(0,t.alwaysValidSchema)(d,b)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},f),w>0&&r.if((0,e._)`${f} && ${m}`).assign(m,!1).assign(h,(0,e._)`[${h}, ${w}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,w),x&&n.mergeEvaluated(x,e.Name)})})}}};return Dg.default=a,Dg}var Og={},KD;function MQ(){if(KD)return Og;KD=1,Object.defineProperty(Og,"__esModule",{value:!0});const e=Ft(),t={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=a.name("valid");n.forEach((c,d)=>{if((0,e.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},i);o.ok(i),o.mergeEvaluated(u)})}};return Og.default=t,Og}var Ng={},YD;function IQ(){if(YD)return Ng;YD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=yt(),t=Ft(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,e.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,e._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(v(),r.reset(),u&&m){const w=i.let("ifClause");r.setParams({ifClause:w}),i.if(f,b("then",w),b("else",w))}else u?i.if(f,b("then")):i.if((0,e.not)(f),b("else"));r.pass(h,()=>r.error(!0));function v(){const w=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(w)}function b(w,x){return()=>{const T=r.subschema({keyword:w},f);i.assign(h,f),r.mergeValidEvaluated(T,h),x?i.assign(x,(0,e._)`${w}`):r.setParams({ifClause:w})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,t.alwaysValidSchema)(r,c)}return Ng.default=a,Ng}var Mg={},ZD;function LQ(){if(ZD)return Mg;ZD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const e=Ft(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,e.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Mg.default=t,Mg}var QD;function BQ(){if(QD)return Sg;QD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const e=dB(),t=kQ(),o=uB(),a=EQ(),n=CQ(),r=PQ(),i=_Q(),c=pB(),d=AQ(),u=RQ(),m=DQ(),h=OQ(),f=NQ(),v=MQ(),b=IQ(),w=LQ();function x(T=!1){const k=[m.default,h.default,f.default,v.default,b.default,w.default,i.default,c.default,r.default,d.default,u.default];return T?k.push(t.default,a.default):k.push(e.default,o.default),k.push(n.default),k}return Sg.default=x,Sg}var Ig={},Lg={},JD;function FQ(){if(JD)return Lg;JD=1,Object.defineProperty(Lg,"__esModule",{value:!0});const e=yt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,e._)`{format: ${a}}`},code(a,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:b}=m;if(!h.validateFormats)return;c?w():x();function w(){const T=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,e._)`${T}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,e._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,e._)`${k}.type || "string"`).assign(E,(0,e._)`${k}.validate`),()=>r.assign(C,(0,e._)`"string"`).assign(E,k)),a.fail$data((0,e.or)(_(),D()));function _(){return h.strictSchema===!1?e.nil:(0,e._)`${u} && !${E}`}function D(){const R=v.$async?(0,e._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,e._)`${E}(${i})`,O=(0,e._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,e._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function x(){const T=b.formats[d];if(!T){_();return}if(T===!0)return;const[k,C,E]=D(T);k===n&&a.pass(R());function _(){if(h.strictSchema===!1){b.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,e.regexpCode)(O):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${U}.validate`]:["string",O,U]}function R(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${i})`}return typeof C=="function"?(0,e._)`${E}(${i})`:(0,e._)`${E}.test(${i})`}}}};return Lg.default=o,Lg}var XD;function jQ(){if(XD)return Ig;XD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=[FQ().default];return Ig.default=t,Ig}var Tl={},eO;function zQ(){return eO||(eO=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.contentVocabulary=Tl.metadataVocabulary=void 0,Tl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Tl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Tl}var tO;function qQ(){if(tO)return rg;tO=1,Object.defineProperty(rg,"__esModule",{value:!0});const e=uQ(),t=xQ(),o=BQ(),a=jQ(),n=zQ(),r=[e.default,t.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return rg.default=r,rg}var Bg={},Ju={},oO;function UQ(){if(oO)return Ju;oO=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Ju.DiscrError=e={})),Ju}var aO;function $Q(){if(aO)return Bg;aO=1,Object.defineProperty(Bg,"__esModule",{value:!0});const e=yt(),t=UQ(),o=Yk(),a=ib(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,e._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=m.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const w=d.let("valid",!1),x=d.const("tag",(0,e._)`${u}${(0,e.getProperty)(b)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>T(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:b})),c.ok(w);function T(){const E=C();d.if(!1);for(const _ in E)d.elseIf((0,e._)`${x} === ${_}`),d.assign(w,k(E[_]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:b}),d.endIf()}function k(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,e.Name),_}function C(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(E=z?.properties)===null||E===void 0?void 0:E[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${b}" values must be unique strings`);_[B]=z}}}};return Bg.default=i,Bg}const VQ="http://json-schema.org/draft-07/schema#",HQ="http://json-schema.org/draft-07/schema#",GQ="Core schema meta-schema",WQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},KQ=["object","boolean"],YQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},ZQ={$schema:VQ,$id:HQ,title:GQ,definitions:WQ,type:KQ,properties:YQ,default:!0};var nO;function QQ(){return nO||(nO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const o=lQ(),a=qQ(),n=$Q(),r=ZQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var u=sb();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=Kk();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=ib();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(eg,eg.exports)),eg.exports}var Fg={exports:{}},PS={},rO;function JQ(){return rO||(rO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(B,z){return{validate:B,compare:z}}e.fullFormats={date:t(r,i),time:t(d(!0),u),"date-time":t(f(!0),v),"iso-time":t(d(),m),"iso-date-time":t(f(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:T,"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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:U,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:C,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":t(/^\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,b),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},e.formatNames=Object.keys(e.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=oe-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function b(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=i(F,oe);if(K!==void 0)return K||u(W,H)}const w=/\/|:/,x=/^(?:[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 T(B){return w.test(B)&&x.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function C(B){return k.lastIndex=0,k.test(B)}const E=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(PS)),PS}var _S={},sO;function XQ(){return sO||(sO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=QQ(),o=yt(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:b}=f;if(!v.validateFormats)return;const w=new t.KeywordCxt(f,b.RULES.all.format.definition,"format");w.$data?x():T();function x(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${C}[${w.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,k(E)))}function T(){const C=w.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const _=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(C)}`:void 0});c.fail$data(k(_))}function k(C){return(0,o._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=i})(_S)),_S}var iO;function eJ(){return iO||(iO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=JQ(),a=XQ(),n=yt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,i]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const w of m)u.addFormat(w,h[w])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Fg,Fg.exports)),Fg.exports}var tJ=eJ();const _xe=Yl(tJ);function oJ({studioUrl:e,meshUrl:t},o){return e??t??o}let Qk;Qk=globalThis.crypto;async function aJ(e){return(await Qk).getRandomValues(new Uint8Array(e))}async function nJ(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%t.length;let a="";for(;a.length<e;){const n=await aJ(e-a.length);for(const r of n)r<o&&(a+=t[r%t.length])}return a}async function rJ(e){return await nJ(e)}async function sJ(e){const t=await(await Qk).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Axe(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await rJ(e),o=await sJ(t);return{code_verifier:t,code_challenge:o}}const Pa=yL().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:sK.custom,message:"URL must be parseable",fatal:!0}),p7}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Rxe=_a({resource:$().url(),authorization_servers:je(Pa).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),iJ=_a({issuer:$(),authorization_endpoint:Pa,token_endpoint:Pa,registration_endpoint:Pa.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Pa.optional(),revocation_endpoint:Pa.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),lJ=_a({issuer:$(),authorization_endpoint:Pa,token_endpoint:Pa,userinfo_endpoint:Pa.optional(),jwks_uri:Pa,registration_endpoint:Pa.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Pa.optional(),op_tos_uri:Pa.optional(),client_id_metadata_document_supported:Vt().optional()}),Dxe=Se({...lJ.shape,...iJ.pick({code_challenge_methods_supported:!0}).shape}),Oxe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:PL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Nxe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),lO=Pa.optional().or(Qe("").transform(()=>{})),cJ=Se({redirect_uris:je(Pa),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Pa.optional(),logo_uri:lO,scope:$().optional(),contacts:je($()).optional(),tos_uri:lO,policy_uri:$().optional(),jwks_uri:Pa.optional(),jwks:OW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),dJ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Lt().optional(),client_secret_expires_at:Lt().optional()}).strip(),Mxe=cJ.merge(dJ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class Na extends Error{constructor(t,o){super(t),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class bx extends Na{}bx.errorCode="invalid_request";class yx extends Na{}yx.errorCode="invalid_client";class wx extends Na{}wx.errorCode="invalid_grant";class Sx extends Na{}Sx.errorCode="unauthorized_client";class Tx extends Na{}Tx.errorCode="unsupported_grant_type";class xx extends Na{}xx.errorCode="invalid_scope";class kx extends Na{}kx.errorCode="access_denied";class Ex extends Na{}Ex.errorCode="server_error";class Cx extends Na{}Cx.errorCode="temporarily_unavailable";class Px extends Na{}Px.errorCode="unsupported_response_type";class _x extends Na{}_x.errorCode="unsupported_token_type";class Ax extends Na{}Ax.errorCode="invalid_token";class Rx extends Na{}Rx.errorCode="method_not_allowed";class Dx extends Na{}Dx.errorCode="too_many_requests";class Ox extends Na{}Ox.errorCode="invalid_client_metadata";class Nx extends Na{}Nx.errorCode="insufficient_scope";class Mx extends Na{}Mx.errorCode="invalid_target";const Ixe={[bx.errorCode]:bx,[yx.errorCode]:yx,[wx.errorCode]:wx,[Sx.errorCode]:Sx,[Tx.errorCode]:Tx,[xx.errorCode]:xx,[kx.errorCode]:kx,[Ex.errorCode]:Ex,[Cx.errorCode]:Cx,[Px.errorCode]:Px,[_x.errorCode]:_x,[Ax.errorCode]:Ax,[Rx.errorCode]:Rx,[Dx.errorCode]:Dx,[Ox.errorCode]:Ox,[Nx.errorCode]:Nx,[Mx.errorCode]:Mx};async function mB(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(o){if(o instanceof ab&&o.code===$p.MethodNotFound)return{resources:[]};throw o}}async function uJ(e,t){return await e.readResource({uri:t})}function Lxe(e){const t=ye.c(12);let o,a;t[0]!==e?({client:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=ca.mcpResourcesList(o),t[3]=o,t[4]=n):n=t[4];let r;t[5]!==o?(r=()=>mB(o),t[5]=o,t[6]=r):r=t[6];const i=a.staleTime??3e4;let c;return t[7]!==a||t[8]!==n||t[9]!==r||t[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=a,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Yi(c)}function Bxe(e){const t=ye.c(12);let o,a;t[0]!==e?({client:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=ca.mcpResourcesList(o),t[3]=o,t[4]=n):n=t[4];let r;t[5]!==o?(r=()=>mB(o),t[5]=o,t[6]=r):r=t[6];const i=a.staleTime??3e4;let c;return t[7]!==a||t[8]!==n||t[9]!==r||t[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=a,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Ki(c)}function Fxe(e){const t=ye.c(15);let o,a,n;t[0]!==e?({client:o,uri:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let r;t[4]!==o||t[5]!==n?(r=ca.mcpReadResource(o,n),t[4]=o,t[5]=n,t[6]=r):r=t[6];let i;t[7]!==o||t[8]!==n?(i=()=>uJ(o,n),t[7]=o,t[8]=n,t[9]=i):i=t[9];const c=a.staleTime??3e4;let d;return t[10]!==a||t[11]!==r||t[12]!==i||t[13]!==c?(d={...a,queryKey:r,queryFn:i,staleTime:c,retry:!1},t[10]=a,t[11]=r,t[12]=i,t[13]=c,t[14]=d):d=t[14],Yi(d)}const hB="ui-resource-html";function jxe(e){const t=ye.c(22);let o,a,n,r,i,c;t[0]!==e?({orgSlug:n,connectionId:o,uri:c,studioUrl:i,meshUrl:a,...r}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i,t[6]=c):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5],c=t[6]);let d;t[7]!==o||t[8]!==n||t[9]!==c?(d=ca.mcpUiResourceHtml(n,o,c),t[7]=o,t[8]=n,t[9]=c,t[10]=d):d=t[10];let u;t[11]!==o||t[12]!==a||t[13]!==n||t[14]!==i||t[15]!==c?(u=async()=>{const v=`${oJ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.text()},t[11]=o,t[12]=a,t[13]=n,t[14]=i,t[15]=c,t[16]=u):u=t[16];const m=r.staleTime??3e4;let h;return t[17]!==r||t[18]!==d||t[19]!==u||t[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},t[17]=r,t[18]=d,t[19]=u,t[20]=m,t[21]=h):h=t[21],Yi(h)}const gB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Jf extends Error{constructor(t,o,a,n){super(t),this.status=o,this.code=a,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function fB(e){return e instanceof Jf&&Object.values(gB).includes(e.code??"")?e.code:null}const pJ=6e4;function mJ(e){return!(e instanceof Jf)||e.status!==429?null:e.retryAfterMs??pJ}function hJ(e,t){if(typeof t=="object"&&t!==null&&"retryAfterMs"in t&&typeof t.retryAfterMs=="number"&&Number.isFinite(t.retryAfterMs))return Math.max(0,t.retryAfterMs);const o=e.headers.get("retry-after"),a=o?Number(o):Number.NaN;return Number.isFinite(a)?Math.max(0,a*1e3):void 0}async function gJ(e,t,o){const a=await fetch(`/api/${encodeURIComponent(e)}/tools/${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${t} failed (${a.status})`,r,i=null;try{i=await a.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Jf(n,a.status,r,a.status===429?hJ(a,i):void 0)}try{return await a.json()}catch{throw new Jf(`${t} returned a non-JSON response`,a.status)}}function Jk(){const e=ye.c(5),{org:t}=Qi(),o=t.slug;let a;e[0]!==o?(a=(r,i)=>gJ(o,r,i),e[0]=o,e[1]=a):a=e[1];let n;return e[2]!==o||e[3]!==a?(n={orgSlug:o,call:a},e[2]=o,e[3]=a,e[4]=n):n=e[4],n}function fJ(e){for(const t of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])e.getQueryDefaults([t]).gcTime!==1/0&&e.setQueryDefaults([t],{gcTime:1/0})}const vJ="studio-ui-resources",Xf="html",bJ=10080*60*1e3,yJ=50,wJ=16*1024*1024;function SJ(e){return e[0]==="mcp"&&e[1]===hB}function lb(){return new Promise((e,t)=>{const o=indexedDB.open(vJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function jd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function Ix(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function TJ(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),o=jd(t,"readonly"),a=await Ix(o.getAllKeys()),n=await Ix(o.getAll()),r=Date.now(),i=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>bJ||d>=yJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=jd(t,"readwrite");for(const m of c)u.delete(m)}}catch{}}function xJ(e){if(typeof indexedDB>"u")return()=>{};const t=lb().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!SJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>wJ||t.then(r=>{if(r)try{jd(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function kJ(){typeof indexedDB>"u"||lb().then(e=>jd(e,"readwrite").clear()).catch(()=>{})}async function zxe(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),o=await Ix(jd(t,"readonly").getAllKeys()),a=jd(t,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===hB&&r[3]===e&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Xk=1440*60*1e3,EJ=1e3,CJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),PJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let vB=!1,bB=!1;function _J(e){const t=e[0];return typeof t=="string"&&CJ.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&PJ.has(e[4])}function AJ(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>Xk;if(o.buster!=="4.610.0"||a||!o.state){window.localStorage.removeItem(ev);return}$V(e,o.state),e.invalidateQueries({queryKey:ca.publicConfig(),refetchType:"none"}),vB=!0}catch{IJ()}}function RJ(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const r=UV(e,{shouldDehydrateQuery:i=>i.state.status==="success"&&_J(i.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.610.0",timestamp:Date.now(),state:r}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,EJ))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const yB="studio:org-cache:",DJ=20;function OJ(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=Xk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>DJ;)o.shift();return Object.fromEntries(o)}function wB(e){return`${yB}${e}`}function NJ(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(wB(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>Xk?null:(bB=!0,a)}catch{return null}}function MJ(e,t,o){if(!(typeof window>"u"))try{const a=wB(e),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(OJ(r)))}catch{}}function IJ(){if(kJ(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(yB)&&window.localStorage.removeItem(t)}}catch{}}function LJ(){return vB}function BJ(){return bB}function cO(e){const t=fB(e);if(!t)return;const o=t===gB.aiBudgetExhausted?tv.budget||"This organization's AI allowance is used up.":tv.feature||"This organization's plan does not include that.";Fd.error(o,{id:`plan-refusal:${t}`})}const tv={feature:"",budget:""},Jl=new e7({queryCache:new pI({onError:cO}),mutationCache:new uI({onError:cO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(e,t)=>fB(t)===null&&mJ(t)===null&&e<1,gcTime:300*1e3}}});fJ(Jl);AJ(Jl);RJ(Jl);TJ(Jl);xJ(Jl);const eE=5*6e4;async function SB(){return(await(await fetch("/api/config")).json()).config}function TB(){const e=ye.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:ca.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0];const{data:o}=Yi(t);return o}function qxe(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:ca.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0],Ki(t).data}const xB=A.createContext(void 0);function FJ(e){const t=ye.c(3),{children:o}=e,a=TB();let n;return t[0]!==o||t[1]!==a.auth?(n=y.jsx(xB.Provider,{value:a.auth,children:o}),t[0]=o,t[1]=a.auth,t[2]=n):n=t[2],n}function Uxe(){const e=A.useContext(xB);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var jJ={},dO={};const wf=Object.create(null),Xu=e=>jJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?wf:globalThis),er=new Proxy(wf,{get(e,t){return Xu()[t]??wf[t]},has(e,t){return t in Xu()||t in wf},set(e,t,o){const a=Xu(!0);return a[t]=o,!0},deleteProperty(e,t){if(!t)return!1;const o=Xu(!0);return delete o[t],!0},ownKeys(){const e=Xu(!0);return Object.keys(e)}});function Zo(e,t){return typeof process<"u"&&dO?dO[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const ep=1,ma=4,Gr=8,Mn=24,uO={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Mn,putty:ma,st:ma,"rxvt-unicode-24bit":Mn,terminator:Mn,"xterm-kitty":Mn},zJ=new Map(Object.entries({APPVEYOR:Gr,BUILDKITE:Gr,CIRCLECI:Mn,DRONE:Gr,GITEA_ACTIONS:Mn,GITHUB_ACTIONS:Mn,GITLAB_CI:Gr,TRAVIS:Gr})),qJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function UJ(){if(Zo("FORCE_COLOR")!==void 0)switch(Zo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Gr;case"3":return Mn;default:return ep}if(Zo("NODE_DISABLE_COLORS")!==void 0&&Zo("NODE_DISABLE_COLORS")!==""||Zo("NO_COLOR")!==void 0&&Zo("NO_COLOR")!==""||Zo("TERM")==="dumb")return ep;if(Zo("TMUX"))return Mn;if("TF_BUILD"in er&&"AGENT_NAME"in er)return ma;if("CI"in er){for(const{0:e,1:t}of zJ)if(e in er)return t;return Zo("CI_NAME")==="codeship"?Gr:ep}if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Zo("TEAMCITY_VERSION"))!==null?ma:ep;switch(Zo("TERM_PROGRAM")){case"iTerm.app":return!Zo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Zo("TERM_PROGRAM_VERSION"))!==null?Gr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Gr}if(Zo("COLORTERM")==="truecolor"||Zo("COLORTERM")==="24bit")return Mn;if(Zo("TERM")){if(/truecolor/.exec(Zo("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Zo("TERM"))!==null)return Gr;const e=Zo("TERM").toLowerCase();if(uO[e])return uO[e];if(qJ.some(t=>t.exec(e)!==null))return ma}return Zo("COLORTERM")?ma:ep}const Wr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},Lx=["debug","info","success","warn","error"];function $J(e,t){return Lx.indexOf(t)>=Lx.indexOf(e)}const VJ={info:Wr.fg.blue,success:Wr.fg.green,warn:Wr.fg.yellow,error:Wr.fg.red,debug:Wr.fg.magenta},HJ=(e,t,o)=>{const a=new Date().toISOString();return o?`${Wr.dim}${a}${Wr.reset} ${VJ[e]}${e.toUpperCase()}${Wr.reset} ${Wr.bright}[Better Auth]:${Wr.reset} ${t}`:`${a} ${e.toUpperCase()} [Better Auth]: ${t}`},GJ=e=>{const t="warn",o=UJ()!==1,a=(n,r,i=[])=>{if(!$J(t,n))return;const c=HJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(Lx.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return t}}};GJ();function WJ(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Cp=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function KJ(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function YJ(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Cp(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Cp?t:new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function AS(e,t="/api/auth"){if(YJ(e),KJ(e))return e;const o=e.replace(/\/+$/,"");return!t||t==="/"?o:(t=t.startsWith("/")?t:`/${t}`,`${o}${t}`)}function ZJ(e,t,o,a,n){if(e)return AS(e,t);{const r=er.BETTER_AUTH_URL||er.NEXT_PUBLIC_BETTER_AUTH_URL||er.PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_AUTH_URL||(er.BASE_URL!=="/"?er.BASE_URL:void 0);if(r)return AS(r,t)}if(typeof window<"u"&&window.location)return AS(window.location.origin,t)}const QJ={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},JJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},XJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,pO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},eX=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function tX(e){return e instanceof Date&&!isNaN(e.getTime())}function oX(e){const t=eX.exec(e);if(!t)return null;const[,o,a,n,r,i,c,d,u,m,h]=t,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return tX(f)?f:null}function aX(e,t={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=t;if(typeof e!="string")return e;const i=e.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in pO)return pO[c];if(!XJ.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(JJ).some(([d,u])=>{const m=u.test(i);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=oX(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return e}}function nX(e,t={strict:!0}){return aX(e,t)}let vr=[],bi=0;const jg=4,rX=globalThis.nanostoresGlobal||={epoch:0},Il=e=>{let t=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:e,lc:0,listen(a){return o.lc=t.push(a),()=>{for(let r=bi+jg;r<vr.length;)vr[r]===a?vr.splice(r,jg):r+=jg;let n=t.indexOf(a);~n&&(t.splice(n,1),--o.lc||o.off())}},notify(a,n){rX.epoch++;let r=!vr.length;for(let i of t)vr.push(i,o.value,a,n);if(r){for(bi=0;bi<vr.length;bi+=jg)vr[bi](vr[bi+1],vr[bi+2],vr[bi+3]);vr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:e};return o},sX=5,zg=6,qg=10;let iX=(e,t,o,a)=>(e.events=e.events||{},e.events[o+qg]||(e.events[o+qg]=a(n=>{e.events[o].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),e.events[o]=e.events[o]||[],e.events[o].push(t),()=>{let n=e.events[o],r=n.indexOf(t);n.splice(r,1),n.length||(delete e.events[o],e.events[o+qg](),delete e.events[o+qg])});const lX=1e3;let kB=(e,t)=>iX(e,a=>{let n=t(a);n&&e.events[zg].push(n)},sX,a=>{let n=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,a()),n(...i));let r=e.off;return e.events[zg]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[zg])i();e.events[zg]=[]}},lX)},()=>{e.listen=n,e.off=r}});function cX(e,t,o){let a=new Set(t).add(void 0);return e.listen((n,r,i)=>{a.has(i)&&o(n,r,i)})}const dX=()=>typeof window>"u",fd=(e,t,o,a)=>{const n=Il({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(t,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});e=Array.isArray(e)?e:[e];let i=!1;for(const c of e)c.subscribe(async()=>{dX()||(i?await r():kB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},RS=Symbol.for("better-auth:broadcast-channel"),uX=()=>Math.floor(Date.now()/1e3);var pX=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:uX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const o=JSON.parse(t.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function DS(e="better-auth.message"){return globalThis[RS]||(globalThis[RS]=new pX(e)),globalThis[RS]}const OS=Symbol.for("better-auth:focus-manager");var mX=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function mO(){return globalThis[OS]||(globalThis[OS]=new mX),globalThis[OS]}const NS=Symbol.for("better-auth:online-manager");var hX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function MS(){return globalThis[NS]||(globalThis[NS]=new hX),globalThis[NS]}const Wc=()=>Math.floor(Date.now()/1e3),gX=5;function fX(e){const{sessionAtom:t,sessionSignal:o,$fetch:a,options:n={}}=e,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||MS().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Wc(),o.set(!o.get());return}const C=t.get();if(k?.event==="poll"){d.lastSessionRequest=Wc(),a("/get-session").then(E=>{E.error?t.set({...C,data:null,error:E.error}):t.set({...C,data:E.data,error:null}),d.lastSync=Wc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Wc()-d.lastSessionRequest<gX)return;d.lastSessionRequest=Wc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Wc(),o.set(!o.get()))},h=k=>{DS().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=DS().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=mO().subscribe(()=>{m({event:"visibilitychange"})}))},w=()=>{d.unsubscribeOnline=MS().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),w(),DS().setup(),mO().setup(),MS().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function vX(e,t){const o=Il(!1),a=fd(o,"/get-session",e,{method:"GET"});return kB(a,()=>{const n=fX({sessionAtom:a,sessionSignal:o,$fetch:e,options:t});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function IS(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Bx(e,t,o=".",a){if(!IS(t))return Bx(e,{},o,a);const n={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(a&&a(n,r,i,o)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:IS(i)&&IS(n[r])?n[r]=Bx(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function bX(e){return(...t)=>t.reduce((o,a)=>Bx(o,a,"",e),{})}const yX=bX();var wX=Object.defineProperty,SX=Object.defineProperties,TX=Object.getOwnPropertyDescriptors,hO=Object.getOwnPropertySymbols,xX=Object.prototype.hasOwnProperty,kX=Object.prototype.propertyIsEnumerable,gO=(e,t,o)=>t in e?wX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Sr=(e,t)=>{for(var o in t||(t={}))xX.call(t,o)&&gO(e,o,t[o]);if(hO)for(var o of hO(t))kX.call(t,o)&&gO(e,o,t[o]);return e},$r=(e,t)=>SX(e,TX(t)),EX=class extends Error{constructor(e,t,o){super(t||e.toString(),{cause:o}),this.status=e,this.statusText=t,this.error=o,Error.captureStackTrace(this,this.constructor)}},CX=async(e,t)=>{var o,a,n,r,i,c;let d=t||{};const u={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:u};for(const m of t?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,e.toString(),t));d=h.options||d,e=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:e,options:d,hooks:u}},fO=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},PX=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function _X(e){if(typeof e=="number")return new fO({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new fO(e);case"exponential":return new PX(e);default:throw new Error("Invalid retry strategy")}}var AX=async e=>{const t={},o=async a=>typeof a=="function"?await a():a;if(e?.auth){if(e.auth.type==="Bearer"){const a=await o(e.auth.token);if(!a)return t;t.authorization=`Bearer ${a}`}else if(e.auth.type==="Basic"){const[a,n]=await Promise.all([o(e.auth.username),o(e.auth.password)]);if(!a||!n)return t;t.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(e.auth.type==="Custom"){const[a,n]=await Promise.all([o(e.auth.prefix),o(e.auth.value)]);if(!n)return t;t.authorization=`${a??""} ${n}`}}return t},RX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function DX(e){const t=e.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const a=t.split(";").shift()||"";return RX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function OX(e){try{return JSON.parse(e),!0}catch{return!1}}function Fx(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function vO(e){try{return JSON.parse(e)}catch{return e}}function bO(e){return typeof e=="function"}function NX(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&bO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&bO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function MX(e){const t=new Headers(e?.headers),o=await AX(e);for(const[a,n]of Object.entries(o||{}))t.set(a,n);if(!t.has("content-type")){const a=IX(e?.body);a&&t.set("content-type",a)}return t}function IX(e){return Fx(e)?"application/json":null}function LX(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(Fx(e.body)&&!t.has("content-type")){for(const[o,a]of Object.entries(e?.body))a instanceof Date&&(e.body[o]=a.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&Fx(e.body)?new URLSearchParams(e.body).toString():e.body}function BX(e,t){var o;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const a=(o=e.split("@")[1])==null?void 0:o.split("/")[0];return CB.includes(a)?a.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function FX(e,t){let o;return!e?.signal&&e?.timeout&&(o=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var jX=class EB extends Error{constructor(t,o){super(o||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,EB.prototype)}};async function Sf(e,t){const o=await e["~standard"].validate(t);if(o.issues)throw new jX(o.issues);return o.value}var CB=["get","post","put","patch","delete"],zX=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,o){var a,n,r,i;const c=((n=(a=e.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||e.schema;if(c){let d=t;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(t=t.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=$r(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=$r(Sr({},m),{body:u.input?await Sf(u.input,o?.body):o?.body,params:u.params?await Sf(u.params,o?.params):o?.params,query:u.query?await Sf(u.query,o?.query):o?.query})),{url:t,options:m}}}return{url:t,options:o}}}),qX=e=>{async function t(o,a){const n=$r(Sr(Sr({},e),a),{plugins:[...e?.plugins||[],zX(e||{}),...a?.plugins||[]]});if(e?.catchAllError)try{return await jx(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await jx(o,n)}return t};function UX(e,t){const{baseURL:o,params:a,query:n}=t||{query:{},params:{},baseURL:""};let r=e.startsWith("http")?e.split("/").slice(0,3).join("/"):o||"";if(e.startsWith("@")){const h=e.toString().split("@")[1].split("/")[0];CB.includes(h)&&(e=e.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=e.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const b of f)d.append(h,b);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const b=a[f];i=i.replace(v,b)}}else for(const[h,f]of Object.entries(a))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var jx=async(e,t)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await CX(e,t),v=NX(f),b=new AbortController,w=(o=f.signal)!=null?o:b.signal,x=UX(h,f),T=LX(f),k=await MX(f),C=BX(h,f);let E=$r(Sr({},f),{url:x,headers:k,body:T,method:C,signal:w});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((a=t?.body)==null?void 0:a.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=FX(f,b);let D=await v(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F($r(Sr({},R),{response:(n=t?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=DX(D),oe={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:vO;oe.data=await K(H)}else oe.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(oe.data=await Sf(E.output,oe.data));for(const H of m.onSuccess)H&&await H($r(Sr({},oe),{response:(i=t?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return t?.throw?oe.data:{data:oe.data,error:null}}const O=(c=t?.jsonParser)!=null?c:vO,L=await D.text(),U=OX(L),B=U?await O(L):null,z={response:D,responseText:L,request:E,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F($r(Sr({},z),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(t?.retry){const F=_X(t.retry),W=(u=t.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await jx(e,$r(Sr({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new EX(D.status,D.statusText,U?B:L);return{data:null,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})}};const $X=(e,t)=>{const o="credentials"in Request.prototype,a=ZJ(e?.baseURL,e?.basePath)??"/api/auth",n=e?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=e?.fetchOptions||{},h=qX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?nX(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[QJ],...n]}),{$sessionSignal:f,session:v}=vX(h,e),b=e?.plugins||[];let w={};const x={$sessionSignal:f,session:v},T={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of b)E.getAtoms&&Object.assign(x,E.getAtoms?.(h)),E.pathMethods&&Object.assign(T,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{x[E].set(!x[E].get())},listen:(E,_)=>{x[E].subscribe(_)},atoms:x};for(const E of b)E.getActions&&(w=yX(E.getActions?.(h,C,e)??{},w));return{get baseURL(){return a},pluginsActions:w,pluginsAtoms:x,pluginPathMethods:T,atomListeners:k,$fetch:h,$store:C}};function VX(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function HX(e,t,o){const a=t[e],{fetchOptions:n,query:r,...i}=o||{};return a||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function GX(e,t,o,a,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=e;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||VX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...w}=h,x={...f,...b},T=HX(m,o,h);return await t(m,{...x,body:T==="GET"?void 0:{...w,...x?.body||{}},query:v||x?.query,method:T,async onSuccess(k){if(await x?.onSuccess?.(k),!n||x.disableSignal)return;const C=n.filter(_=>_.matcher(m));if(!C.length)return;const E=new Set;for(const _ of C){const D=a[_.signal];if(!D)return;if(E.has(_.signal))continue;E.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function WX(e,t={}){const o=A.useRef(e.get()),{keys:a,deps:n=[e,a]}=t,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(e.value),a?.length?cX(e,a,d):e.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function KX(e){return`use${WJ(e)}`}function YX(e){const{pluginPathMethods:t,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=$X(e),c={};for(const[d,u]of Object.entries(a))c[KX(d)]=()=>WX(u);return GX({...o,...c,$fetch:n,$store:r},n,t,a,i)}function ZX(e){return{authorize(t,o="AND"){let a=!1;for(const[n,r]of Object.entries(t)){const i=e[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>i.includes(d)):a=c.actions.every(d=>i.includes(d))}else throw new Cp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:e}}function PB(e){return{newRole(t){return ZX(t)},statements:e}}const QX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},_B=PB(QX),AB=_B.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),RB=_B.newRole({user:[],session:[]}),JX={admin:AB,user:RB},XX=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),o=e.options?.roles||JX;for(const a of t)if(o[a]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},eee=e=>{const t={admin:AB,user:RB,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>XX({role:o.role,options:{ac:e?.ac,roles:t},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},tee=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:e=>e==="/email-otp/verify-email"||e==="/sign-in/email-otp",signal:"$sessionSignal"}]}),oee=()=>({id:"magic-link",$InferServerPlugin:{}}),aee={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},tE=PB(aee),DB=tE.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),OB=tE.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),NB=tE.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),nee={admin:DB,owner:OB,member:NB},ree=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const o=e.role.split(","),a=e.options.creatorRole||"owner",n=o.includes(a),r=e.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of o)if(t[i]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},see=e=>ree(e,e.options.roles||nee),iee=e=>{const t=Il(!1),o=Il(!1),a=Il(!1),n=Il(!1),r={admin:DB,member:NB,owner:OB,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>see({role:u.role,options:{ac:e?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=fd(t,"/organization/list",i,{method:"GET"});return{$listOrg:t,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:fd([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:fd([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:fd([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},lee="1.6.11",cee=e=>({id:"sso-client",version:lee,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function Kr(e){const t=new Uint8Array(e);let o="";for(const n of t)o+=String.fromCharCode(n);return btoa(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ov(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=(4-t.length%4)%4,a=t.padEnd(t.length+o,"="),n=atob(a),r=new ArrayBuffer(n.length),i=new Uint8Array(r);for(let c=0;c<n.length;c++)i[c]=n.charCodeAt(c);return r}function oE(){return dee.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const dee={stubThis:e=>e};function MB(e){const{id:t}=e;return{...e,id:ov(t),transports:e.transports}}function IB(e){return e==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class ha extends Error{constructor({message:t,code:o,cause:a,name:n}){super(t,{cause:a}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??a.name,this.code=o}}function uee({error:e,options:t}){const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ha({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(o.authenticatorSelection?.requireResidentKey===!0)return new ha({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&o.authenticatorSelection?.userVerification==="required")return new ha({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(o.authenticatorSelection?.userVerification==="required")return new ha({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new ha({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new ha({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(n=>n.type==="public-key").length===0?new ha({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new ha({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=globalThis.location.hostname;if(IB(a)){if(o.rp.id!==a)return new ha({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ha({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new ha({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new ha({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}class pee{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const o=new Error("Cancelling existing WebAuthn API call for new one");o.name="AbortError",this.controller.abort(o)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const LB=new pee,mee=["cross-platform","platform"];function BB(e){if(e&&!(mee.indexOf(e)<0))return e}async function hee(e){!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useAutoRegister:o=!1}=e;if(!oE())throw new Error("WebAuthn is not supported in this browser");const a={...t,challenge:ov(t.challenge),user:{...t.user,id:ov(t.user.id)},excludeCredentials:t.excludeCredentials?.map(MB)},n={};o&&(n.mediation="conditional"),n.publicKey=a,n.signal=LB.createNewAbortSignal();let r;try{r=await navigator.credentials.create(n)}catch(b){throw uee({error:b,options:n})}if(!r)throw new Error("Registration was not completed");const{id:i,rawId:c,response:d,type:u}=r;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let h;if(typeof d.getPublicKeyAlgorithm=="function")try{h=d.getPublicKeyAlgorithm()}catch(b){LS("getPublicKeyAlgorithm()",b)}let f;if(typeof d.getPublicKey=="function")try{const b=d.getPublicKey();b!==null&&(f=Kr(b))}catch(b){LS("getPublicKey()",b)}let v;if(typeof d.getAuthenticatorData=="function")try{v=Kr(d.getAuthenticatorData())}catch(b){LS("getAuthenticatorData()",b)}return{id:i,rawId:Kr(c),response:{attestationObject:Kr(d.attestationObject),clientDataJSON:Kr(d.clientDataJSON),transports:m,publicKeyAlgorithm:h,publicKey:f,authenticatorData:v},type:u,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:BB(r.authenticatorAttachment)}}function LS(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
55
|
+
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const b in u){const w=u[b];if(w.length===0)continue;const x=(0,a.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,depsCount:w.length,deps:w.join(", ")}),f.allErrors?m.if(x,()=>{for(const T of w)(0,a.checkReportMissingProp)(d,T)}):(m.if((0,t._)`${x} && (${(0,a.checkMissingProp)(d,w,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}e.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,b=m.name("valid");for(const w in u)(0,o.alwaysValidSchema)(v,u[w])||(m.if((0,a.propertyInData)(m,h,w,v.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:w},b);d.mergeValidEvaluated(x,b)},()=>m.var(b,!0)),d.ok(b))}e.validateSchemaDeps=c,e.default=n})(CS)),CS}var Eg={},qD;function _Q(){if(qD)return Eg;qD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const e=yt(),t=Ft(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,t.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,e.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Eg.default=a,Eg}var Cg={},UD;function pB(){if(UD)return Cg;UD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const e=Or(),t=yt(),o=Ji(),a=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,t._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const w=(0,e.allSchemaProperties)(u.properties),x=(0,e.allSchemaProperties)(u.patternProperties);T(),i.ok((0,t._)`${h} === ${o.default.errors}`);function T(){c.forIn("key",m,D=>{!w.length&&!x.length?E(D):c.if(k(D),()=>E(D))})}function k(D){let R;if(w.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,e.isOwnProperty)(c,O,D)}else w.length?R=(0,t.or)(...w.map(O=>(0,t._)`${D} === ${O}`)):R=t.nil;return x.length&&(R=(0,t.or)(R,...x.map(O=>(0,t._)`${(0,e.usePattern)(i,O)}.test(${D})`))),(0,t.not)(R)}function C(D){c.code((0,t._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");b.removeAdditional==="failing"?(_(D,R,!1),c.if((0,t.not)(R),()=>{i.reset(),C(D)})):(_(D,R),v||c.if((0,t.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return Cg.default=r,Cg}var Pg={},$D;function AQ(){if($D)return Pg;$D=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e=sb(),t=Or(),o=Ft(),a=pB(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new e.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const x of h)m.definedProperties.add(x);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(i,(0,o.toHash)(h),m.props));const f=h.filter(x=>!(0,o.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const v=i.name("valid");for(const x of f)b(x)?w(x):(i.if((0,t.propertyInData)(i,u,x,m.opts.ownProperties)),w(x),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(x),r.ok(v);function b(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function w(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Pg.default=n,Pg}var _g={},VD;function RQ(){if(VD)return _g;VD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e=Or(),t=yt(),o=Ft(),a=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,e.allSchemaProperties)(c),v=f.filter(E=>(0,o.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=h.strictSchema&&!h.allowMatchingProperties&&u.properties,w=i.name("valid");m.props!==!0&&!(m.props instanceof t.Name)&&(m.props=(0,a.evaluatedPropsToName)(i,m.props));const{props:x}=m;T();function T(){for(const E of f)b&&k(E),m.allErrors?C(E):(i.var(w,!0),C(E),i.if(w))}function k(E){for(const _ in b)new RegExp(E).test(_)&&(0,o.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,_=>{i.if((0,t._)`${(0,e.usePattern)(r,E)}.test(${_})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:a.Type.Str},w),m.opts.unevaluated&&x!==!0?i.assign((0,t._)`${x}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,t.not)(w),()=>i.break())})})}}};return _g.default=n,_g}var Ag={},HD;function DQ(){if(HD)return Ag;HD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const e=Ft(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,e.alwaysValidSchema)(r,n)){o.fail();return}const i=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),o.failResult(i,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return Ag.default=t,Ag}var Rg={},GD;function OQ(){if(GD)return Rg;GD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Or().validateUnion,error:{message:"must match a schema in anyOf"}};return Rg.default=t,Rg}var Dg={},WD;function NQ(){if(WD)return Dg;WD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const e=yt(),t=Ft(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((b,w)=>{let x;(0,t.alwaysValidSchema)(d,b)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},f),w>0&&r.if((0,e._)`${f} && ${m}`).assign(m,!1).assign(h,(0,e._)`[${h}, ${w}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,w),x&&n.mergeEvaluated(x,e.Name)})})}}};return Dg.default=a,Dg}var Og={},KD;function MQ(){if(KD)return Og;KD=1,Object.defineProperty(Og,"__esModule",{value:!0});const e=Ft(),t={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=a.name("valid");n.forEach((c,d)=>{if((0,e.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},i);o.ok(i),o.mergeEvaluated(u)})}};return Og.default=t,Og}var Ng={},YD;function IQ(){if(YD)return Ng;YD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=yt(),t=Ft(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,e.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,e._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(v(),r.reset(),u&&m){const w=i.let("ifClause");r.setParams({ifClause:w}),i.if(f,b("then",w),b("else",w))}else u?i.if(f,b("then")):i.if((0,e.not)(f),b("else"));r.pass(h,()=>r.error(!0));function v(){const w=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(w)}function b(w,x){return()=>{const T=r.subschema({keyword:w},f);i.assign(h,f),r.mergeValidEvaluated(T,h),x?i.assign(x,(0,e._)`${w}`):r.setParams({ifClause:w})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,t.alwaysValidSchema)(r,c)}return Ng.default=a,Ng}var Mg={},ZD;function LQ(){if(ZD)return Mg;ZD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const e=Ft(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,e.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Mg.default=t,Mg}var QD;function BQ(){if(QD)return Sg;QD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const e=dB(),t=kQ(),o=uB(),a=EQ(),n=CQ(),r=PQ(),i=_Q(),c=pB(),d=AQ(),u=RQ(),m=DQ(),h=OQ(),f=NQ(),v=MQ(),b=IQ(),w=LQ();function x(T=!1){const k=[m.default,h.default,f.default,v.default,b.default,w.default,i.default,c.default,r.default,d.default,u.default];return T?k.push(t.default,a.default):k.push(e.default,o.default),k.push(n.default),k}return Sg.default=x,Sg}var Ig={},Lg={},JD;function FQ(){if(JD)return Lg;JD=1,Object.defineProperty(Lg,"__esModule",{value:!0});const e=yt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,e._)`{format: ${a}}`},code(a,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:b}=m;if(!h.validateFormats)return;c?w():x();function w(){const T=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,e._)`${T}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,e._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,e._)`${k}.type || "string"`).assign(E,(0,e._)`${k}.validate`),()=>r.assign(C,(0,e._)`"string"`).assign(E,k)),a.fail$data((0,e.or)(_(),D()));function _(){return h.strictSchema===!1?e.nil:(0,e._)`${u} && !${E}`}function D(){const R=v.$async?(0,e._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,e._)`${E}(${i})`,O=(0,e._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,e._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function x(){const T=b.formats[d];if(!T){_();return}if(T===!0)return;const[k,C,E]=D(T);k===n&&a.pass(R());function _(){if(h.strictSchema===!1){b.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,e.regexpCode)(O):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${U}.validate`]:["string",O,U]}function R(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${i})`}return typeof C=="function"?(0,e._)`${E}(${i})`:(0,e._)`${E}.test(${i})`}}}};return Lg.default=o,Lg}var XD;function jQ(){if(XD)return Ig;XD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=[FQ().default];return Ig.default=t,Ig}var Tl={},eO;function zQ(){return eO||(eO=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.contentVocabulary=Tl.metadataVocabulary=void 0,Tl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Tl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Tl}var tO;function qQ(){if(tO)return rg;tO=1,Object.defineProperty(rg,"__esModule",{value:!0});const e=uQ(),t=xQ(),o=BQ(),a=jQ(),n=zQ(),r=[e.default,t.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return rg.default=r,rg}var Bg={},Ju={},oO;function UQ(){if(oO)return Ju;oO=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Ju.DiscrError=e={})),Ju}var aO;function $Q(){if(aO)return Bg;aO=1,Object.defineProperty(Bg,"__esModule",{value:!0});const e=yt(),t=UQ(),o=Yk(),a=ib(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,e._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=m.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const w=d.let("valid",!1),x=d.const("tag",(0,e._)`${u}${(0,e.getProperty)(b)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>T(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:b})),c.ok(w);function T(){const E=C();d.if(!1);for(const _ in E)d.elseIf((0,e._)`${x} === ${_}`),d.assign(w,k(E[_]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:b}),d.endIf()}function k(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,e.Name),_}function C(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(E=z?.properties)===null||E===void 0?void 0:E[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${b}" values must be unique strings`);_[B]=z}}}};return Bg.default=i,Bg}const VQ="http://json-schema.org/draft-07/schema#",HQ="http://json-schema.org/draft-07/schema#",GQ="Core schema meta-schema",WQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},KQ=["object","boolean"],YQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},ZQ={$schema:VQ,$id:HQ,title:GQ,definitions:WQ,type:KQ,properties:YQ,default:!0};var nO;function QQ(){return nO||(nO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const o=lQ(),a=qQ(),n=$Q(),r=ZQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var u=sb();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=Kk();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=ib();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(eg,eg.exports)),eg.exports}var Fg={exports:{}},PS={},rO;function JQ(){return rO||(rO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(B,z){return{validate:B,compare:z}}e.fullFormats={date:t(r,i),time:t(d(!0),u),"date-time":t(f(!0),v),"iso-time":t(d(),m),"iso-date-time":t(f(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:T,"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|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\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:U,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:C,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":t(/^\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,b),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},e.formatNames=Object.keys(e.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=oe-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function b(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=i(F,oe);if(K!==void 0)return K||u(W,H)}const w=/\/|:/,x=/^(?:[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 T(B){return w.test(B)&&x.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function C(B){return k.lastIndex=0,k.test(B)}const E=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(PS)),PS}var _S={},sO;function XQ(){return sO||(sO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=QQ(),o=yt(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:b}=f;if(!v.validateFormats)return;const w=new t.KeywordCxt(f,b.RULES.all.format.definition,"format");w.$data?x():T();function x(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${C}[${w.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,k(E)))}function T(){const C=w.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const _=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(C)}`:void 0});c.fail$data(k(_))}function k(C){return(0,o._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=i})(_S)),_S}var iO;function eJ(){return iO||(iO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=JQ(),a=XQ(),n=yt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,i]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const w of m)u.addFormat(w,h[w])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Fg,Fg.exports)),Fg.exports}var tJ=eJ();const _xe=Yl(tJ);function oJ({studioUrl:e,meshUrl:t},o){return e??t??o}let Qk;Qk=globalThis.crypto;async function aJ(e){return(await Qk).getRandomValues(new Uint8Array(e))}async function nJ(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%t.length;let a="";for(;a.length<e;){const n=await aJ(e-a.length);for(const r of n)r<o&&(a+=t[r%t.length])}return a}async function rJ(e){return await nJ(e)}async function sJ(e){const t=await(await Qk).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Axe(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await rJ(e),o=await sJ(t);return{code_verifier:t,code_challenge:o}}const Pa=yL().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:sK.custom,message:"URL must be parseable",fatal:!0}),p7}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Rxe=_a({resource:$().url(),authorization_servers:je(Pa).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),iJ=_a({issuer:$(),authorization_endpoint:Pa,token_endpoint:Pa,registration_endpoint:Pa.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Pa.optional(),revocation_endpoint:Pa.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),lJ=_a({issuer:$(),authorization_endpoint:Pa,token_endpoint:Pa,userinfo_endpoint:Pa.optional(),jwks_uri:Pa,registration_endpoint:Pa.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Pa.optional(),op_tos_uri:Pa.optional(),client_id_metadata_document_supported:Vt().optional()}),Dxe=Se({...lJ.shape,...iJ.pick({code_challenge_methods_supported:!0}).shape}),Oxe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:PL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Nxe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),lO=Pa.optional().or(Qe("").transform(()=>{})),cJ=Se({redirect_uris:je(Pa),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Pa.optional(),logo_uri:lO,scope:$().optional(),contacts:je($()).optional(),tos_uri:lO,policy_uri:$().optional(),jwks_uri:Pa.optional(),jwks:OW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),dJ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Lt().optional(),client_secret_expires_at:Lt().optional()}).strip(),Mxe=cJ.merge(dJ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class Na extends Error{constructor(t,o){super(t),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class bx extends Na{}bx.errorCode="invalid_request";class yx extends Na{}yx.errorCode="invalid_client";class wx extends Na{}wx.errorCode="invalid_grant";class Sx extends Na{}Sx.errorCode="unauthorized_client";class Tx extends Na{}Tx.errorCode="unsupported_grant_type";class xx extends Na{}xx.errorCode="invalid_scope";class kx extends Na{}kx.errorCode="access_denied";class Ex extends Na{}Ex.errorCode="server_error";class Cx extends Na{}Cx.errorCode="temporarily_unavailable";class Px extends Na{}Px.errorCode="unsupported_response_type";class _x extends Na{}_x.errorCode="unsupported_token_type";class Ax extends Na{}Ax.errorCode="invalid_token";class Rx extends Na{}Rx.errorCode="method_not_allowed";class Dx extends Na{}Dx.errorCode="too_many_requests";class Ox extends Na{}Ox.errorCode="invalid_client_metadata";class Nx extends Na{}Nx.errorCode="insufficient_scope";class Mx extends Na{}Mx.errorCode="invalid_target";const Ixe={[bx.errorCode]:bx,[yx.errorCode]:yx,[wx.errorCode]:wx,[Sx.errorCode]:Sx,[Tx.errorCode]:Tx,[xx.errorCode]:xx,[kx.errorCode]:kx,[Ex.errorCode]:Ex,[Cx.errorCode]:Cx,[Px.errorCode]:Px,[_x.errorCode]:_x,[Ax.errorCode]:Ax,[Rx.errorCode]:Rx,[Dx.errorCode]:Dx,[Ox.errorCode]:Ox,[Nx.errorCode]:Nx,[Mx.errorCode]:Mx};async function mB(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(o){if(o instanceof ab&&o.code===$p.MethodNotFound)return{resources:[]};throw o}}async function uJ(e,t){return await e.readResource({uri:t})}function Lxe(e){const t=ye.c(12);let o,a;t[0]!==e?({client:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=ca.mcpResourcesList(o),t[3]=o,t[4]=n):n=t[4];let r;t[5]!==o?(r=()=>mB(o),t[5]=o,t[6]=r):r=t[6];const i=a.staleTime??3e4;let c;return t[7]!==a||t[8]!==n||t[9]!==r||t[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=a,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Yi(c)}function Bxe(e){const t=ye.c(12);let o,a;t[0]!==e?({client:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=ca.mcpResourcesList(o),t[3]=o,t[4]=n):n=t[4];let r;t[5]!==o?(r=()=>mB(o),t[5]=o,t[6]=r):r=t[6];const i=a.staleTime??3e4;let c;return t[7]!==a||t[8]!==n||t[9]!==r||t[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=a,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Ki(c)}function Fxe(e){const t=ye.c(15);let o,a,n;t[0]!==e?({client:o,uri:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let r;t[4]!==o||t[5]!==n?(r=ca.mcpReadResource(o,n),t[4]=o,t[5]=n,t[6]=r):r=t[6];let i;t[7]!==o||t[8]!==n?(i=()=>uJ(o,n),t[7]=o,t[8]=n,t[9]=i):i=t[9];const c=a.staleTime??3e4;let d;return t[10]!==a||t[11]!==r||t[12]!==i||t[13]!==c?(d={...a,queryKey:r,queryFn:i,staleTime:c,retry:!1},t[10]=a,t[11]=r,t[12]=i,t[13]=c,t[14]=d):d=t[14],Yi(d)}const hB="ui-resource-html";function jxe(e){const t=ye.c(22);let o,a,n,r,i,c;t[0]!==e?({orgSlug:n,connectionId:o,uri:c,studioUrl:i,meshUrl:a,...r}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i,t[6]=c):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5],c=t[6]);let d;t[7]!==o||t[8]!==n||t[9]!==c?(d=ca.mcpUiResourceHtml(n,o,c),t[7]=o,t[8]=n,t[9]=c,t[10]=d):d=t[10];let u;t[11]!==o||t[12]!==a||t[13]!==n||t[14]!==i||t[15]!==c?(u=async()=>{const v=`${oJ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.text()},t[11]=o,t[12]=a,t[13]=n,t[14]=i,t[15]=c,t[16]=u):u=t[16];const m=r.staleTime??3e4;let h;return t[17]!==r||t[18]!==d||t[19]!==u||t[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},t[17]=r,t[18]=d,t[19]=u,t[20]=m,t[21]=h):h=t[21],Yi(h)}const gB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Jf extends Error{constructor(t,o,a,n){super(t),this.status=o,this.code=a,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function fB(e){return e instanceof Jf&&Object.values(gB).includes(e.code??"")?e.code:null}const pJ=6e4;function mJ(e){return!(e instanceof Jf)||e.status!==429?null:e.retryAfterMs??pJ}function hJ(e,t){if(typeof t=="object"&&t!==null&&"retryAfterMs"in t&&typeof t.retryAfterMs=="number"&&Number.isFinite(t.retryAfterMs))return Math.max(0,t.retryAfterMs);const o=e.headers.get("retry-after"),a=o?Number(o):Number.NaN;return Number.isFinite(a)?Math.max(0,a*1e3):void 0}async function gJ(e,t,o){const a=await fetch(`/api/${encodeURIComponent(e)}/tools/${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${t} failed (${a.status})`,r,i=null;try{i=await a.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Jf(n,a.status,r,a.status===429?hJ(a,i):void 0)}try{return await a.json()}catch{throw new Jf(`${t} returned a non-JSON response`,a.status)}}function Jk(){const e=ye.c(5),{org:t}=Qi(),o=t.slug;let a;e[0]!==o?(a=(r,i)=>gJ(o,r,i),e[0]=o,e[1]=a):a=e[1];let n;return e[2]!==o||e[3]!==a?(n={orgSlug:o,call:a},e[2]=o,e[3]=a,e[4]=n):n=e[4],n}function fJ(e){for(const t of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])e.getQueryDefaults([t]).gcTime!==1/0&&e.setQueryDefaults([t],{gcTime:1/0})}const vJ="studio-ui-resources",Xf="html",bJ=10080*60*1e3,yJ=50,wJ=16*1024*1024;function SJ(e){return e[0]==="mcp"&&e[1]===hB}function lb(){return new Promise((e,t)=>{const o=indexedDB.open(vJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function jd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function Ix(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function TJ(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),o=jd(t,"readonly"),a=await Ix(o.getAllKeys()),n=await Ix(o.getAll()),r=Date.now(),i=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>bJ||d>=yJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=jd(t,"readwrite");for(const m of c)u.delete(m)}}catch{}}function xJ(e){if(typeof indexedDB>"u")return()=>{};const t=lb().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!SJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>wJ||t.then(r=>{if(r)try{jd(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function kJ(){typeof indexedDB>"u"||lb().then(e=>jd(e,"readwrite").clear()).catch(()=>{})}async function zxe(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),o=await Ix(jd(t,"readonly").getAllKeys()),a=jd(t,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===hB&&r[3]===e&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Xk=1440*60*1e3,EJ=1e3,CJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),PJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let vB=!1,bB=!1;function _J(e){const t=e[0];return typeof t=="string"&&CJ.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&PJ.has(e[4])}function AJ(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>Xk;if(o.buster!=="4.611.0"||a||!o.state){window.localStorage.removeItem(ev);return}$V(e,o.state),e.invalidateQueries({queryKey:ca.publicConfig(),refetchType:"none"}),vB=!0}catch{IJ()}}function RJ(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const r=UV(e,{shouldDehydrateQuery:i=>i.state.status==="success"&&_J(i.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.611.0",timestamp:Date.now(),state:r}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,EJ))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const yB="studio:org-cache:",DJ=20;function OJ(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=Xk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>DJ;)o.shift();return Object.fromEntries(o)}function wB(e){return`${yB}${e}`}function NJ(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(wB(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>Xk?null:(bB=!0,a)}catch{return null}}function MJ(e,t,o){if(!(typeof window>"u"))try{const a=wB(e),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(OJ(r)))}catch{}}function IJ(){if(kJ(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(yB)&&window.localStorage.removeItem(t)}}catch{}}function LJ(){return vB}function BJ(){return bB}function cO(e){const t=fB(e);if(!t)return;const o=t===gB.aiBudgetExhausted?tv.budget||"This organization's AI allowance is used up.":tv.feature||"This organization's plan does not include that.";Fd.error(o,{id:`plan-refusal:${t}`})}const tv={feature:"",budget:""},Jl=new e7({queryCache:new pI({onError:cO}),mutationCache:new uI({onError:cO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(e,t)=>fB(t)===null&&mJ(t)===null&&e<1,gcTime:300*1e3}}});fJ(Jl);AJ(Jl);RJ(Jl);TJ(Jl);xJ(Jl);const eE=5*6e4;async function SB(){return(await(await fetch("/api/config")).json()).config}function TB(){const e=ye.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:ca.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0];const{data:o}=Yi(t);return o}function qxe(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:ca.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0],Ki(t).data}const xB=A.createContext(void 0);function FJ(e){const t=ye.c(3),{children:o}=e,a=TB();let n;return t[0]!==o||t[1]!==a.auth?(n=y.jsx(xB.Provider,{value:a.auth,children:o}),t[0]=o,t[1]=a.auth,t[2]=n):n=t[2],n}function Uxe(){const e=A.useContext(xB);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var jJ={},dO={};const wf=Object.create(null),Xu=e=>jJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?wf:globalThis),er=new Proxy(wf,{get(e,t){return Xu()[t]??wf[t]},has(e,t){return t in Xu()||t in wf},set(e,t,o){const a=Xu(!0);return a[t]=o,!0},deleteProperty(e,t){if(!t)return!1;const o=Xu(!0);return delete o[t],!0},ownKeys(){const e=Xu(!0);return Object.keys(e)}});function Zo(e,t){return typeof process<"u"&&dO?dO[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const ep=1,ma=4,Gr=8,Mn=24,uO={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Mn,putty:ma,st:ma,"rxvt-unicode-24bit":Mn,terminator:Mn,"xterm-kitty":Mn},zJ=new Map(Object.entries({APPVEYOR:Gr,BUILDKITE:Gr,CIRCLECI:Mn,DRONE:Gr,GITEA_ACTIONS:Mn,GITHUB_ACTIONS:Mn,GITLAB_CI:Gr,TRAVIS:Gr})),qJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function UJ(){if(Zo("FORCE_COLOR")!==void 0)switch(Zo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Gr;case"3":return Mn;default:return ep}if(Zo("NODE_DISABLE_COLORS")!==void 0&&Zo("NODE_DISABLE_COLORS")!==""||Zo("NO_COLOR")!==void 0&&Zo("NO_COLOR")!==""||Zo("TERM")==="dumb")return ep;if(Zo("TMUX"))return Mn;if("TF_BUILD"in er&&"AGENT_NAME"in er)return ma;if("CI"in er){for(const{0:e,1:t}of zJ)if(e in er)return t;return Zo("CI_NAME")==="codeship"?Gr:ep}if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Zo("TEAMCITY_VERSION"))!==null?ma:ep;switch(Zo("TERM_PROGRAM")){case"iTerm.app":return!Zo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Zo("TERM_PROGRAM_VERSION"))!==null?Gr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Gr}if(Zo("COLORTERM")==="truecolor"||Zo("COLORTERM")==="24bit")return Mn;if(Zo("TERM")){if(/truecolor/.exec(Zo("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Zo("TERM"))!==null)return Gr;const e=Zo("TERM").toLowerCase();if(uO[e])return uO[e];if(qJ.some(t=>t.exec(e)!==null))return ma}return Zo("COLORTERM")?ma:ep}const Wr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},Lx=["debug","info","success","warn","error"];function $J(e,t){return Lx.indexOf(t)>=Lx.indexOf(e)}const VJ={info:Wr.fg.blue,success:Wr.fg.green,warn:Wr.fg.yellow,error:Wr.fg.red,debug:Wr.fg.magenta},HJ=(e,t,o)=>{const a=new Date().toISOString();return o?`${Wr.dim}${a}${Wr.reset} ${VJ[e]}${e.toUpperCase()}${Wr.reset} ${Wr.bright}[Better Auth]:${Wr.reset} ${t}`:`${a} ${e.toUpperCase()} [Better Auth]: ${t}`},GJ=e=>{const t="warn",o=UJ()!==1,a=(n,r,i=[])=>{if(!$J(t,n))return;const c=HJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(Lx.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return t}}};GJ();function WJ(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Cp=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function KJ(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function YJ(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Cp(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Cp?t:new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function AS(e,t="/api/auth"){if(YJ(e),KJ(e))return e;const o=e.replace(/\/+$/,"");return!t||t==="/"?o:(t=t.startsWith("/")?t:`/${t}`,`${o}${t}`)}function ZJ(e,t,o,a,n){if(e)return AS(e,t);{const r=er.BETTER_AUTH_URL||er.NEXT_PUBLIC_BETTER_AUTH_URL||er.PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_AUTH_URL||(er.BASE_URL!=="/"?er.BASE_URL:void 0);if(r)return AS(r,t)}if(typeof window<"u"&&window.location)return AS(window.location.origin,t)}const QJ={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},JJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},XJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,pO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},eX=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function tX(e){return e instanceof Date&&!isNaN(e.getTime())}function oX(e){const t=eX.exec(e);if(!t)return null;const[,o,a,n,r,i,c,d,u,m,h]=t,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return tX(f)?f:null}function aX(e,t={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=t;if(typeof e!="string")return e;const i=e.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in pO)return pO[c];if(!XJ.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(JJ).some(([d,u])=>{const m=u.test(i);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=oX(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return e}}function nX(e,t={strict:!0}){return aX(e,t)}let vr=[],bi=0;const jg=4,rX=globalThis.nanostoresGlobal||={epoch:0},Il=e=>{let t=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:e,lc:0,listen(a){return o.lc=t.push(a),()=>{for(let r=bi+jg;r<vr.length;)vr[r]===a?vr.splice(r,jg):r+=jg;let n=t.indexOf(a);~n&&(t.splice(n,1),--o.lc||o.off())}},notify(a,n){rX.epoch++;let r=!vr.length;for(let i of t)vr.push(i,o.value,a,n);if(r){for(bi=0;bi<vr.length;bi+=jg)vr[bi](vr[bi+1],vr[bi+2],vr[bi+3]);vr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:e};return o},sX=5,zg=6,qg=10;let iX=(e,t,o,a)=>(e.events=e.events||{},e.events[o+qg]||(e.events[o+qg]=a(n=>{e.events[o].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),e.events[o]=e.events[o]||[],e.events[o].push(t),()=>{let n=e.events[o],r=n.indexOf(t);n.splice(r,1),n.length||(delete e.events[o],e.events[o+qg](),delete e.events[o+qg])});const lX=1e3;let kB=(e,t)=>iX(e,a=>{let n=t(a);n&&e.events[zg].push(n)},sX,a=>{let n=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,a()),n(...i));let r=e.off;return e.events[zg]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[zg])i();e.events[zg]=[]}},lX)},()=>{e.listen=n,e.off=r}});function cX(e,t,o){let a=new Set(t).add(void 0);return e.listen((n,r,i)=>{a.has(i)&&o(n,r,i)})}const dX=()=>typeof window>"u",fd=(e,t,o,a)=>{const n=Il({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(t,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});e=Array.isArray(e)?e:[e];let i=!1;for(const c of e)c.subscribe(async()=>{dX()||(i?await r():kB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},RS=Symbol.for("better-auth:broadcast-channel"),uX=()=>Math.floor(Date.now()/1e3);var pX=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:uX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const o=JSON.parse(t.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function DS(e="better-auth.message"){return globalThis[RS]||(globalThis[RS]=new pX(e)),globalThis[RS]}const OS=Symbol.for("better-auth:focus-manager");var mX=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function mO(){return globalThis[OS]||(globalThis[OS]=new mX),globalThis[OS]}const NS=Symbol.for("better-auth:online-manager");var hX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function MS(){return globalThis[NS]||(globalThis[NS]=new hX),globalThis[NS]}const Wc=()=>Math.floor(Date.now()/1e3),gX=5;function fX(e){const{sessionAtom:t,sessionSignal:o,$fetch:a,options:n={}}=e,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||MS().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Wc(),o.set(!o.get());return}const C=t.get();if(k?.event==="poll"){d.lastSessionRequest=Wc(),a("/get-session").then(E=>{E.error?t.set({...C,data:null,error:E.error}):t.set({...C,data:E.data,error:null}),d.lastSync=Wc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Wc()-d.lastSessionRequest<gX)return;d.lastSessionRequest=Wc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Wc(),o.set(!o.get()))},h=k=>{DS().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=DS().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=mO().subscribe(()=>{m({event:"visibilitychange"})}))},w=()=>{d.unsubscribeOnline=MS().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),w(),DS().setup(),mO().setup(),MS().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function vX(e,t){const o=Il(!1),a=fd(o,"/get-session",e,{method:"GET"});return kB(a,()=>{const n=fX({sessionAtom:a,sessionSignal:o,$fetch:e,options:t});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function IS(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Bx(e,t,o=".",a){if(!IS(t))return Bx(e,{},o,a);const n={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(a&&a(n,r,i,o)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:IS(i)&&IS(n[r])?n[r]=Bx(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function bX(e){return(...t)=>t.reduce((o,a)=>Bx(o,a,"",e),{})}const yX=bX();var wX=Object.defineProperty,SX=Object.defineProperties,TX=Object.getOwnPropertyDescriptors,hO=Object.getOwnPropertySymbols,xX=Object.prototype.hasOwnProperty,kX=Object.prototype.propertyIsEnumerable,gO=(e,t,o)=>t in e?wX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Sr=(e,t)=>{for(var o in t||(t={}))xX.call(t,o)&&gO(e,o,t[o]);if(hO)for(var o of hO(t))kX.call(t,o)&&gO(e,o,t[o]);return e},$r=(e,t)=>SX(e,TX(t)),EX=class extends Error{constructor(e,t,o){super(t||e.toString(),{cause:o}),this.status=e,this.statusText=t,this.error=o,Error.captureStackTrace(this,this.constructor)}},CX=async(e,t)=>{var o,a,n,r,i,c;let d=t||{};const u={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:u};for(const m of t?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,e.toString(),t));d=h.options||d,e=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:e,options:d,hooks:u}},fO=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},PX=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function _X(e){if(typeof e=="number")return new fO({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new fO(e);case"exponential":return new PX(e);default:throw new Error("Invalid retry strategy")}}var AX=async e=>{const t={},o=async a=>typeof a=="function"?await a():a;if(e?.auth){if(e.auth.type==="Bearer"){const a=await o(e.auth.token);if(!a)return t;t.authorization=`Bearer ${a}`}else if(e.auth.type==="Basic"){const[a,n]=await Promise.all([o(e.auth.username),o(e.auth.password)]);if(!a||!n)return t;t.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(e.auth.type==="Custom"){const[a,n]=await Promise.all([o(e.auth.prefix),o(e.auth.value)]);if(!n)return t;t.authorization=`${a??""} ${n}`}}return t},RX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function DX(e){const t=e.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const a=t.split(";").shift()||"";return RX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function OX(e){try{return JSON.parse(e),!0}catch{return!1}}function Fx(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function vO(e){try{return JSON.parse(e)}catch{return e}}function bO(e){return typeof e=="function"}function NX(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&bO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&bO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function MX(e){const t=new Headers(e?.headers),o=await AX(e);for(const[a,n]of Object.entries(o||{}))t.set(a,n);if(!t.has("content-type")){const a=IX(e?.body);a&&t.set("content-type",a)}return t}function IX(e){return Fx(e)?"application/json":null}function LX(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(Fx(e.body)&&!t.has("content-type")){for(const[o,a]of Object.entries(e?.body))a instanceof Date&&(e.body[o]=a.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&Fx(e.body)?new URLSearchParams(e.body).toString():e.body}function BX(e,t){var o;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const a=(o=e.split("@")[1])==null?void 0:o.split("/")[0];return CB.includes(a)?a.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function FX(e,t){let o;return!e?.signal&&e?.timeout&&(o=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var jX=class EB extends Error{constructor(t,o){super(o||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,EB.prototype)}};async function Sf(e,t){const o=await e["~standard"].validate(t);if(o.issues)throw new jX(o.issues);return o.value}var CB=["get","post","put","patch","delete"],zX=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,o){var a,n,r,i;const c=((n=(a=e.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||e.schema;if(c){let d=t;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(t=t.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=$r(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=$r(Sr({},m),{body:u.input?await Sf(u.input,o?.body):o?.body,params:u.params?await Sf(u.params,o?.params):o?.params,query:u.query?await Sf(u.query,o?.query):o?.query})),{url:t,options:m}}}return{url:t,options:o}}}),qX=e=>{async function t(o,a){const n=$r(Sr(Sr({},e),a),{plugins:[...e?.plugins||[],zX(e||{}),...a?.plugins||[]]});if(e?.catchAllError)try{return await jx(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await jx(o,n)}return t};function UX(e,t){const{baseURL:o,params:a,query:n}=t||{query:{},params:{},baseURL:""};let r=e.startsWith("http")?e.split("/").slice(0,3).join("/"):o||"";if(e.startsWith("@")){const h=e.toString().split("@")[1].split("/")[0];CB.includes(h)&&(e=e.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=e.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const b of f)d.append(h,b);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const b=a[f];i=i.replace(v,b)}}else for(const[h,f]of Object.entries(a))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var jx=async(e,t)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await CX(e,t),v=NX(f),b=new AbortController,w=(o=f.signal)!=null?o:b.signal,x=UX(h,f),T=LX(f),k=await MX(f),C=BX(h,f);let E=$r(Sr({},f),{url:x,headers:k,body:T,method:C,signal:w});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((a=t?.body)==null?void 0:a.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=FX(f,b);let D=await v(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F($r(Sr({},R),{response:(n=t?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=DX(D),oe={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:vO;oe.data=await K(H)}else oe.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(oe.data=await Sf(E.output,oe.data));for(const H of m.onSuccess)H&&await H($r(Sr({},oe),{response:(i=t?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return t?.throw?oe.data:{data:oe.data,error:null}}const O=(c=t?.jsonParser)!=null?c:vO,L=await D.text(),U=OX(L),B=U?await O(L):null,z={response:D,responseText:L,request:E,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F($r(Sr({},z),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(t?.retry){const F=_X(t.retry),W=(u=t.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await jx(e,$r(Sr({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new EX(D.status,D.statusText,U?B:L);return{data:null,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})}};const $X=(e,t)=>{const o="credentials"in Request.prototype,a=ZJ(e?.baseURL,e?.basePath)??"/api/auth",n=e?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=e?.fetchOptions||{},h=qX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?nX(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[QJ],...n]}),{$sessionSignal:f,session:v}=vX(h,e),b=e?.plugins||[];let w={};const x={$sessionSignal:f,session:v},T={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of b)E.getAtoms&&Object.assign(x,E.getAtoms?.(h)),E.pathMethods&&Object.assign(T,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{x[E].set(!x[E].get())},listen:(E,_)=>{x[E].subscribe(_)},atoms:x};for(const E of b)E.getActions&&(w=yX(E.getActions?.(h,C,e)??{},w));return{get baseURL(){return a},pluginsActions:w,pluginsAtoms:x,pluginPathMethods:T,atomListeners:k,$fetch:h,$store:C}};function VX(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function HX(e,t,o){const a=t[e],{fetchOptions:n,query:r,...i}=o||{};return a||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function GX(e,t,o,a,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=e;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||VX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...w}=h,x={...f,...b},T=HX(m,o,h);return await t(m,{...x,body:T==="GET"?void 0:{...w,...x?.body||{}},query:v||x?.query,method:T,async onSuccess(k){if(await x?.onSuccess?.(k),!n||x.disableSignal)return;const C=n.filter(_=>_.matcher(m));if(!C.length)return;const E=new Set;for(const _ of C){const D=a[_.signal];if(!D)return;if(E.has(_.signal))continue;E.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function WX(e,t={}){const o=A.useRef(e.get()),{keys:a,deps:n=[e,a]}=t,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(e.value),a?.length?cX(e,a,d):e.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function KX(e){return`use${WJ(e)}`}function YX(e){const{pluginPathMethods:t,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=$X(e),c={};for(const[d,u]of Object.entries(a))c[KX(d)]=()=>WX(u);return GX({...o,...c,$fetch:n,$store:r},n,t,a,i)}function ZX(e){return{authorize(t,o="AND"){let a=!1;for(const[n,r]of Object.entries(t)){const i=e[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>i.includes(d)):a=c.actions.every(d=>i.includes(d))}else throw new Cp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:e}}function PB(e){return{newRole(t){return ZX(t)},statements:e}}const QX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},_B=PB(QX),AB=_B.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),RB=_B.newRole({user:[],session:[]}),JX={admin:AB,user:RB},XX=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),o=e.options?.roles||JX;for(const a of t)if(o[a]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},eee=e=>{const t={admin:AB,user:RB,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>XX({role:o.role,options:{ac:e?.ac,roles:t},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},tee=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:e=>e==="/email-otp/verify-email"||e==="/sign-in/email-otp",signal:"$sessionSignal"}]}),oee=()=>({id:"magic-link",$InferServerPlugin:{}}),aee={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},tE=PB(aee),DB=tE.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),OB=tE.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),NB=tE.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),nee={admin:DB,owner:OB,member:NB},ree=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const o=e.role.split(","),a=e.options.creatorRole||"owner",n=o.includes(a),r=e.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of o)if(t[i]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},see=e=>ree(e,e.options.roles||nee),iee=e=>{const t=Il(!1),o=Il(!1),a=Il(!1),n=Il(!1),r={admin:DB,member:NB,owner:OB,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>see({role:u.role,options:{ac:e?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=fd(t,"/organization/list",i,{method:"GET"});return{$listOrg:t,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:fd([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:fd([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:fd([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},lee="1.6.11",cee=e=>({id:"sso-client",version:lee,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function Kr(e){const t=new Uint8Array(e);let o="";for(const n of t)o+=String.fromCharCode(n);return btoa(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ov(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=(4-t.length%4)%4,a=t.padEnd(t.length+o,"="),n=atob(a),r=new ArrayBuffer(n.length),i=new Uint8Array(r);for(let c=0;c<n.length;c++)i[c]=n.charCodeAt(c);return r}function oE(){return dee.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const dee={stubThis:e=>e};function MB(e){const{id:t}=e;return{...e,id:ov(t),transports:e.transports}}function IB(e){return e==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class ha extends Error{constructor({message:t,code:o,cause:a,name:n}){super(t,{cause:a}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??a.name,this.code=o}}function uee({error:e,options:t}){const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ha({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(o.authenticatorSelection?.requireResidentKey===!0)return new ha({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&o.authenticatorSelection?.userVerification==="required")return new ha({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(o.authenticatorSelection?.userVerification==="required")return new ha({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new ha({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new ha({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return o.pubKeyCredParams.filter(n=>n.type==="public-key").length===0?new ha({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new ha({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=globalThis.location.hostname;if(IB(a)){if(o.rp.id!==a)return new ha({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ha({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new ha({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new ha({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}class pee{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const o=new Error("Cancelling existing WebAuthn API call for new one");o.name="AbortError",this.controller.abort(o)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const LB=new pee,mee=["cross-platform","platform"];function BB(e){if(e&&!(mee.indexOf(e)<0))return e}async function hee(e){!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useAutoRegister:o=!1}=e;if(!oE())throw new Error("WebAuthn is not supported in this browser");const a={...t,challenge:ov(t.challenge),user:{...t.user,id:ov(t.user.id)},excludeCredentials:t.excludeCredentials?.map(MB)},n={};o&&(n.mediation="conditional"),n.publicKey=a,n.signal=LB.createNewAbortSignal();let r;try{r=await navigator.credentials.create(n)}catch(b){throw uee({error:b,options:n})}if(!r)throw new Error("Registration was not completed");const{id:i,rawId:c,response:d,type:u}=r;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let h;if(typeof d.getPublicKeyAlgorithm=="function")try{h=d.getPublicKeyAlgorithm()}catch(b){LS("getPublicKeyAlgorithm()",b)}let f;if(typeof d.getPublicKey=="function")try{const b=d.getPublicKey();b!==null&&(f=Kr(b))}catch(b){LS("getPublicKey()",b)}let v;if(typeof d.getAuthenticatorData=="function")try{v=Kr(d.getAuthenticatorData())}catch(b){LS("getAuthenticatorData()",b)}return{id:i,rawId:Kr(c),response:{attestationObject:Kr(d.attestationObject),clientDataJSON:Kr(d.clientDataJSON),transports:m,publicKeyAlgorithm:h,publicKey:f,authenticatorData:v},type:u,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:BB(r.authenticatorAttachment)}}function LS(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
56
56
|
`,t)}function gee(){if(!oE())return BS.stubThis(new Promise(t=>t(!1)));const e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?BS.stubThis(new Promise(t=>t(!1))):BS.stubThis(e.isConditionalMediationAvailable())}const BS={stubThis:e=>e};function fee({error:e,options:t}){const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ha({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new ha({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const a=globalThis.location.hostname;if(IB(a)){if(o.rpId!==a)return new ha({message:`The RP ID "${o.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ha({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new ha({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}async function vee(e){!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useBrowserAutofill:o=!1,verifyBrowserAutofillInput:a=!0}=e;if(!oE())throw new Error("WebAuthn is not supported in this browser");let n;t.allowCredentials?.length!==0&&(n=t.allowCredentials?.map(MB));const r={...t,challenge:ov(t.challenge),allowCredentials:n},i={};if(o){if(!await gee())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&a)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');i.mediation="conditional",r.allowCredentials=[]}i.publicKey=r,i.signal=LB.createNewAbortSignal();let c;try{c=await navigator.credentials.get(i)}catch(v){throw fee({error:v,options:i})}if(!c)throw new Error("Authentication was not completed");const{id:d,rawId:u,response:m,type:h}=c;let f;return m.userHandle&&(f=Kr(m.userHandle)),{id:d,rawId:Kr(u),response:{authenticatorData:Kr(m.authenticatorData),clientDataJSON:Kr(m.clientDataJSON),signature:Kr(m.signature),userHandle:f},type:h,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:BB(c.authenticatorAttachment)}}const bee=(e,{$listPasskeys:t,$store:o})=>({signIn:{passkey:async(r,i)=>{const c=await e("/passkey/generate-authenticate-options",{method:"GET",throw:!1});if(!c.data)return c;try{const d=await e("/passkey/verify-authentication",{body:{response:await vee({optionsJSON:c.data,useBrowserAutofill:r?.autoFill})},...r?.fetchOptions,...i,method:"POST",throw:!1});return t.set(Math.random()),o.notify("$sessionSignal"),d}catch(d){return console.error("[Better Auth] Error verifying passkey",d),{data:null,error:{code:"AUTH_CANCELLED",message:"auth cancelled",status:400,statusText:"BAD_REQUEST"}}}}},passkey:{addPasskey:async(r,i)=>{const c=await e("/passkey/generate-register-options",{method:"GET",query:{...r?.authenticatorAttachment&&{authenticatorAttachment:r.authenticatorAttachment},...r?.name&&{name:r.name}},throw:!1});if(!c.data)return c;try{const d=await hee({optionsJSON:c.data,useAutoRegister:r?.useAutoRegister}),u=await e("/passkey/verify-registration",{...r?.fetchOptions,...i,body:{response:d,name:r?.name},method:"POST",throw:!1});return u.data&&t.set(Math.random()),u}catch(d){return d instanceof ha?d.code==="ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED"?{data:null,error:{code:d.code,message:"previously registered",status:400,statusText:"BAD_REQUEST"}}:d.code==="ERROR_CEREMONY_ABORTED"?{data:null,error:{code:d.code,message:"registration cancelled",status:400,statusText:"BAD_REQUEST"}}:{data:null,error:{code:d.code,message:d.message,status:400,statusText:"BAD_REQUEST"}}:{data:null,error:{code:"UNKNOWN_ERROR",message:d instanceof Error?d.message:"unknown error",status:500,statusText:"INTERNAL_SERVER_ERROR"}}}}},$Infer:{}}),yee=()=>{const e=Il();return{id:"passkey",$InferServerPlugin:{},getActions:(t,o)=>bee(t,{$listPasskeys:e,$store:o}),getAtoms(t){return{listPasskeys:fd(e,"/passkey/list-user-passkeys",t,{method:"GET"}),$listPasskeys:e}},pathMethods:{"/passkey/register":"POST","/passkey/authenticate":"POST"},atomListeners:[{matcher(t){return t==="/passkey/verify-registration"||t==="/passkey/delete-passkey"||t==="/passkey/update-passkey"||t==="/sign-out"},signal:"$listPasskeys"},{matcher:t=>t==="/passkey/verify-authentication",signal:"$sessionSignal"}]}};function wee(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return{}}return t&&typeof t=="object"&&!Array.isArray(t)?Object.fromEntries(Object.entries(t)):{}}function aE(e){return wee(e?.metadata).archived===!0}function FB(e){const t=new Set;return e.filter(o=>aE(o)||t.has(o.id)?!1:(t.add(o.id),!0))}const See="Organization is archived",fa=YX({plugins:[iee({}),eee(),cee(),oee(),tee(),yee()]}),Tee=8e3;let yO;function jB(){return yO??=new Promise(e=>{const t=setTimeout(e,Tee);fa.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(t),e()))})}),yO}const xee=Se({data:Se({user:Se({id:$()})}).nullish()});function kee(){const e=xee.safeParse(fa.$store.atoms.session?.get());return e.success?e.data.data?.user.id:void 0}const Eee=3e4;let fp=null,Ug=null;function zB(){if(fp&&fp.expiresAt>Date.now())return Promise.resolve(fp.result);if(Ug)return Ug;const e=fa.organization.list().then(t=>{const o=t.data?{...t,data:FB(t.data)}:t;return o.data&&(fp={result:o,expiresAt:Date.now()+Eee}),o}).finally(()=>{Ug=null});return Ug=e,e}function $xe(){const e=fa.useListOrganizations(),t=e.data?FB(e.data):void 0;return{...e,data:t}}function Vxe(){fp=null}const Cee="modulepreload",Pee=function(e){return"/"+e},wO={},Fe=function(t,o,a){let n=Promise.resolve();if(o&&o.length>0){let i=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=i(o.map(u=>{if(u=Pee(u),u in wO)return;wO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":Cee,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&r(c.reason);return t().catch(r)})};function _ee(e){try{return JSON.parse(e)}catch{return}}function SO(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const o=localStorage.getItem(e),a=o?_ee(o):void 0,n=typeof t=="function"?t(a):a??t;if(a===void 0||n!==a)try{const r=JSON.stringify(n);localStorage.setItem(e,r)}catch{}return n}function Aee(e,t){const o=ye.c(17),a=Zd();let n;o[0]!==e?(n=["localStorage",e],o[0]=e,o[1]=n):n=o[1];const r=n;let i,c;o[2]!==t||o[3]!==e?(i=()=>SO(e,t),c=()=>SO(e,t),o[2]=t,o[3]=e,o[4]=i,o[5]=c):(i=o[4],c=o[5]);let d;o[6]!==r||o[7]!==i||o[8]!==c?(d={queryKey:r,queryFn:i,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=r,o[7]=i,o[8]=c,o[9]=d):d=o[9];const{data:u}=Ki(d);let m;o[10]!==e||o[11]!==a||o[12]!==r?(m=b=>{const w=a.getQueryData(r),x=typeof b=="function"?b(w):b;if(typeof localStorage<"u")try{localStorage.setItem(e,JSON.stringify(x))}catch{}a.setQueryData(r,x)},o[10]=e,o[11]=a,o[12]=r,o[13]=m):m=o[13];const h=m,f=u;let v;return o[14]!==h||o[15]!==f?(v=[f,h],o[14]=h,o[15]=f,o[16]=v):v=o[16],v}const Nr={chatSelectedImageModel:e=>`studio:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`studio:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`studio:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`studio:chat:simpleModeTier:${e}`,chatAutosend:(e,t)=>`studio:chat:autosend:${e}:${t}`,chatThreadIntent:(e,t)=>`studio:chat:threadIntent:${e}:${t}`,homeTaskMode:e=>`home-task-mode:${e}`,chatDraft:(e,t)=>`studio:chat:draft:${e}:${t}`,taskBoardPrs:e=>`studio:task-board-prs:${e}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(e,t)=>`studio:task-board-assignee:${e}:${t}`,recentApps:e=>`studio:recent-apps:${e}`,recentProjects:e=>`studio:recent-projects:${e}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:e=>`studio:connections:tab:${e}`,taskLastViewed:e=>`studio:chat:task-last-viewed:${e}`,sidebarSectionOpen:(e,t)=>`studio:sidebar:section-open:${e}:${t}`,ptBrAnnouncementSeen:e=>`studio:announcement:pt-br:${e}`,legacyAdminArrival:()=>"studio:legacy-admin-arrival",localPreviewUrl:e=>`studio:local-preview-url:${e}`,previewDeviceSize:e=>`studio:preview:device-size:${e}`,previewEditingMode:e=>`studio:preview:editing-mode:${e}`,previewAppLayout:e=>`studio:preview:app-layout:${e}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(e,t)=>`studio:deco-serve-connection:${e}:${t}`,decoServeEndpoint:(e,t)=>`studio:deco-serve-endpoint:${e}:${t}`},qB=["en","pt-BR"],Hxe={en:"en-US","pt-BR":"pt-BR"};function nE(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Ree={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:nE(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[],contentFullscreen:!1},UB=["auto","readonly"],Gxe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Dee=["light","dark","system"];function Wxe(){try{const e=JSON.parse(localStorage.getItem(Nr.preferences())??"{}");if(UB.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function cb(){try{const e=JSON.parse(localStorage.getItem(Nr.preferences())??"{}");if(qB.includes(e.language))return e.language}catch{}return nE()}function Oee(e){const t={};if(Array.isArray(e.shownTaskBoardLanes))for(const a of e.shownTaskBoardLanes)typeof a=="string"&&(t[a]=!0);const o=e.taskBoardLaneVisibility;if(o&&typeof o=="object"&&!Array.isArray(o))for(const[a,n]of Object.entries(o))typeof n=="boolean"&&(t[a]=n);return t}function rE(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Nr.preferences(),e[0]=t):t=e[0],Aee(t,Nee)}function Nee(e){const t={...Ree,...e};return"showProjectSettingsGear"in t&&delete t.showProjectSettingsGear,"compactPageLayout"in t&&delete t.compactPageLayout,"projectFirstNav"in t&&delete t.projectFirstNav,UB.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Dee.includes(t.theme)||(t.theme="system"),qB.includes(t.language)||(t.language=nE()),t.taskBoardLaneVisibility=Oee(t),"shownTaskBoardLanes"in t&&delete t.shownTaskBoardLanes,Array.isArray(t.collapsedTaskBoardLanes)||(t.collapsedTaskBoardLanes=[]),typeof t.contentFullscreen!="boolean"&&(t.contentFullscreen=!1),t}const Mee={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.businessCase":"Business case","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.enterFullscreen":"Expand","page.exitFullscreen":"Show chat","page.openMainPanel":"Open panel","page.closeMainPanel":"Close","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},Iee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.blog":"Blog","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.automations":"Automations","projects.apps.calendar":"Calendar","projects.apps.experiments":"Experiments"},Lee={"virtualMcp.settings.assetStorage.label":"CMS Asset Storage","virtualMcp.settings.assetStorage.description":"Choose where this project browses and uploads images and files. Existing content URLs stay unchanged.","virtualMcp.settings.assetStorage.automatic":"Automatic (match the site)","virtualMcp.settings.assetStorage.missing":"The selected asset storage is unavailable. Choose another storage in project settings.","virtualMcp.settings.assetStorage.loading":"Loading storage configurations…","virtualMcp.settings.assetStorage.loadError":"Could not load storage configurations.","virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.repository.title":"Repository","virtualMcp.settings.repository.description":"The code this project is, and how its sandbox runs it.","virtualMcp.settings.repository.repoTitle":"Repository","virtualMcp.settings.repository.runtimeTitle":"How it runs","virtualMcp.settings.repository.runtimeDescription":"What the sandbox installs and starts to preview this project.","virtualMcp.settings.pageTitle":"Project settings","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"What opens first, and which views the sidebar shows.","virtualMcp.settings.cmsEmptyTitle":"No site content yet","virtualMcp.settings.repository.open":"Go to Repository","virtualMcp.settings.repository.none":"No repository connected","virtualMcp.settings.repository.noneDescription":"Connect a GitHub repository to edit and preview this project's site.","virtualMcp.settings.repository.connect":"Connect repository","virtualMcp.settings.repository.change":"Change","virtualMcp.settings.repository.connected":"Connected {name}","virtualMcp.settings.cmsEmpty":"Connect the site's repository to turn the CMS on.","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.blocksV8Site.label":"Blocks v8 site","virtualMcp.settings.blocksV8Site.description":"Edit this site with the Blocks v8 editor and hosted CMS. Off: v7, git-backed.","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.groups.details":"Details","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.createdBy":"Created by","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsedLabel":"Last used","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
57
57
|
Define who this agent is and what it specializes in.
|
|
58
58
|
Example: You are a support triage agent for B2B merchants.
|
|
@@ -97,7 +97,7 @@ Request: {idea}`,"plan.prompt.withoutObjective":`Let's build a business case for
|
|
|
97
97
|
|
|
98
98
|
Request: {idea}`,"plan.case.waiting":"Opening the business case…","plan.case.asking":"Answer in the chat","plan.case.assumption":"Assumption:","plan.case.progress":"{filled} of {total} filled","plan.case.openDocument":"Open the document","plan.case.invalid":"The latest update could not be read; showing the one before it.","plan.case.objective":"Store goal","plan.case.noObjective":"No goal yet. Write one on the Plan page.","plan.case.request":"What you asked","plan.case.status.framing":"Framing","plan.case.status.building":"Building","plan.case.status.ready":"Ready","plan.case.area.pdp":"Product page","plan.case.area.search":"Search","plan.case.area.category":"Category page","plan.case.area.home":"Home page","plan.case.area.cart":"Cart","plan.case.area.checkout":"Checkout","plan.case.area.shipping":"Shipping","plan.case.area.performance":"Performance","plan.case.area.paidMedia":"Paid media","plan.case.area.other":"Other","plan.case.card.problem":"The problem, measured","plan.case.card.problemQuestion":"Which step of the journey loses people, and how many?","plan.case.card.scope":"What we will change","plan.case.card.scopeQuestion":"Where in the store, on which device, and what exactly?","plan.case.card.money":"Money at stake","plan.case.card.moneyQuestion":"How much is a small gain on that step worth per month?","plan.case.card.competitors":"Who already does it","plan.case.card.competitorsQuestion":"Which competitors already do this, and how?","plan.case.card.measurement":"How we measure","plan.case.card.measurementQuestion":"Which metric proves it worked, and which must not get worse?","plan.case.card.abTest":"A/B test and timeline","plan.case.card.abTestQuestion":"How many people and how many weeks to know?","plan.case.card.effort":"Effort and deliveries","plan.case.card.effortQuestion":"How many days of work, and what changes in the store?","plan.case.card.risks":"Risks","plan.case.card.risksQuestion":"What could get worse, and what do we watch?","plan.case.card.unknowns":"What we still don't know","plan.case.card.unknownsQuestion":"What is missing, and how do we find out?","plan.cases.heading":"Your business cases","plan.cases.description":"Open one to see the canvas and keep talking.","plan.cases.updated":"Updated {when}","plan.cases.unreadable":"Could not read this case","plan.prompt.skipped":"(skipped: assume it and write the assumption on the card)","plan.prompt.guidedAnswers":`Before this chat I already answered the questions only I could answer. Do not ask them again, and do not ask me anything else unless something blocks the case: fill the cards these answers cover first, then research.
|
|
99
99
|
|
|
100
|
-
{answers}`,"plan.prompt.guidedNothing":"Before this chat I was asked whether anything only I know was missing, and nothing was. Do not ask me questions unless something blocks the case: assume, write the assumption on the card, and research.","plan.guide.thinking1":"Hmm, interesting idea…","plan.guide.thinking2":"Thinking about the next steps…","plan.guide.thinking3":"Let me see what is missing here…","plan.guide.thinking4":"This is good, let me shape it…","plan.guide.thinking5":"Putting the pieces together…","plan.guide.thinking6":"Hmm, there is something nice in this…","plan.guide.thinking7":"Sorting out the ideas…","plan.guide.thinking8":"One second, thinking…","plan.guide.building1":"Building your business case…","plan.guide.building2":"Calling the agent to research the numbers…","plan.guide.building3":"Getting the cards ready…","plan.guide.yourIdea":"Your idea","plan.guide.answerLabel":"Your answer","plan.guide.answerPlaceholder":"Write it your way…","plan.guide.continue":"Continue","plan.guide.skip":"Skip this one","plan.guide.back":"Back"},Nte={...Lee,...Bee,...Fee,...jee,...zee,...qee,...Uee,...$ee,...Vee,...Hee,...Gee,...Wee,...Kee,...Yee,...Zee,...Qee,...Jee,...Xee,...ete,...hte,...gte,...fte,...tte,...ote,...ate,...nte,...rte,...ste,...ite,...lte,...cte,...dte,...ute,...pte,...mte,...vte,...bte,...yte,...wte,...Ste,...Tte,...xte,...kte,...Ete,...Cte,...Pte,..._te,...Ate,...Rte,...Dte,...Ote,...Iee,...Mee};function $B(e,t){return t?e.replace(/\{(\w+)\}/g,(o,a)=>Object.hasOwn(t,a)?String(t[a]):o):e}const Mte={"page.overview":"Visão geral","page.app":"App","page.view":"Visualização","page.file":"Arquivo","page.document":"Documento","page.businessCase":"Business case","page.item":"Item","page.breadcrumbs":"Navegação estrutural","page.breadcrumbMenu":"Mostrar caminho de navegação","page.views":"Visualizações da página","page.openThread":"Abrir chat","page.closeThread":"Fechar chat","page.enterFullscreen":"Expandir","page.exitFullscreen":"Mostrar chat","page.openMainPanel":"Abrir painel","page.closeMainPanel":"Fechar","page.collapseSidebar":"Recolher barra lateral","page.expandSidebar":"Expandir barra lateral"},Ite={"projects.overview.metrics":"Métricas","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"Novo projeto","projects.card.updated":"Atualizado {time}","projects.empty.title":"Seu comércio, um projeto por vez","projects.empty.description":"Um site, um app, uma loja. Cada um com suas conexões, seu relatório e seu quadro.","projects.empty.readOnly":"Peça a um admin para criar o primeiro projeto.","projects.new.title":"Novo projeto","projects.new.subtitle":"O que você vai configurar?","projects.new.back":"Voltar","projects.new.create":"Criar projeto","projects.new.creating":"Criando…","projects.new.nameLabel":"Nome do projeto","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Dê um nome ao projeto","projects.new.failed":"Não foi possível criar o projeto","projects.new.created":"{title} está pronto","projects.new.path.repository":"Importar um código","projects.new.path.repository.hint":"Traga o código de um site ou app","projects.new.path.folder":"Nova pasta de projeto","projects.new.path.folder.hint":"Dê o nome agora, conecte depois","projects.new.step.folder.title":"Dê nome ao seu projeto","projects.reports.chooserTitle":"Continuar para Relatórios","projects.reports.chooserSubtitle":"Escolha um projeto para continuar","projects.reports.chooserSearch":"Buscar projeto…","projects.reports.chooserEmpty":"Nenhum projeto com esse nome.","projects.reports.status.ready":"Pronto","projects.reports.status.running":"Rodando","projects.reports.status.none":"Não rodou","projects.reports.status.locked":"Bloqueado","projects.connections.orgWide":"Toda a organização","projects.connections.usedBy":"{count} projetos","projects.settings.title":"Projetos","projects.settings.searchPlaceholder":"Buscar projetos…","projects.settings.open":"Abrir","projects.settings.openSettings":"Configurações","projects.settings.noResults":"Nenhum projeto corresponde a “{search}”","projects.identity.storeUrlLabel":"URL da loja","projects.identity.storeUrlDescription":"A loja no ar. Os relatórios rodam contra este endereço.","projects.apps.reports":"Relatório","projects.apps.blog":"Blog","projects.apps.siteEditor":"Editor de site","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"Testes ponta a ponta","projects.apps.automations":"Automações","projects.apps.calendar":"Calendário","projects.apps.experiments":"Experimentos"},Lte={"virtualMcp.settings.assetStorage.label":"Armazenamento de arquivos do CMS","virtualMcp.settings.assetStorage.description":"Escolha onde este projeto consulta e envia imagens e arquivos. As URLs do conteúdo existente não mudam.","virtualMcp.settings.assetStorage.automatic":"Automático (corresponder ao site)","virtualMcp.settings.assetStorage.missing":"O armazenamento selecionado está indisponível. Escolha outro nas configurações do projeto.","virtualMcp.settings.assetStorage.loading":"Carregando configurações de armazenamento…","virtualMcp.settings.assetStorage.loadError":"Não foi possível carregar as configurações de armazenamento.","virtualMcp.addConnectionDialog.addConnectionTitle":"Adicionar Conexão","virtualMcp.addConnectionDialog.authenticationFailedError":"Autenticação falhou: {error}","virtualMcp.addConnectionDialog.connected":"Conectado","virtualMcp.addConnectionDialog.connectedAuthenticated":"Conectado e autenticado","virtualMcp.addConnectionDialog.connectionsTitle":"Conexões","virtualMcp.addConnectionDialog.failedToAddConnection":"Falha ao adicionar conexão","virtualMcp.addConnectionDialog.failedToConnect":"Falha ao conectar","virtualMcp.addConnectionDialog.mcpServerConnectionError":"Este servidor MCP não pode ser conectado: nenhum método de conexão disponível","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Pesquisar conexões...","virtualMcp.addConnectionDialog.signInFailedDescription":"Foi adicionada ao seu projeto, mas sua configuração de login parece estar errada. Você pode tentar autenticar novamente mais tarde nas configurações da conexão. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Não foi possível fazer login nesta conexão","virtualMcp.connectionDialogContent.add":"Adicionar","virtualMcp.connectionDialogContent.added":"Adicionado","virtualMcp.connectionDialogContent.builtByDeco":"Construído e mantido pela Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Construído e mantido pelo fornecedor oficial","virtualMcp.connectionDialogContent.connect":"Conectar","virtualMcp.connectionDialogContent.connected":"Conectado","virtualMcp.connectionDialogContent.customConnection":"Conexão Personalizada","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"Nenhuma conexão disponível","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"Nenhuma conexão ainda","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'Nenhuma conexão corresponde a "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Feito por Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"Todas as conexões","virtualMcp.connectionDialogContent.sectionVerified":"Verificado","virtualMcp.connectionDialogContent.tabAll":"Todos","virtualMcp.connectionDialogContent.tabConnected":"Conectados","virtualMcp.connectionDialogContent.verifiedByDeco":"Verificado pelo time da Deco","virtualMcp.connectionItem.authorize":"Autorizar","virtualMcp.connectionItem.configureResources":"Configurar recursos","virtualMcp.connectionItem.connectionDisabled":"Conexão desativada","virtualMcp.connectionItem.connectionEnabled":"Conexão ativada","virtualMcp.connectionItem.connectionNotFound":"Conexão não encontrada","virtualMcp.connectionItem.connectionSettings":"Configurações de conexão","virtualMcp.connectionItem.disable":"Desativar","virtualMcp.connectionItem.disableConnection":"Desativar conexão","virtualMcp.connectionItem.disabled":"Desativada","virtualMcp.connectionItem.disabledError":"Desativada (erro)","virtualMcp.connectionItem.enable":"Ativar","virtualMcp.connectionItem.failedToUpdateConnection":"Falha ao atualizar a conexão","virtualMcp.connectionItem.needsAuthorization":"Requer autorização","virtualMcp.connectionItem.newInstance":"Nova instância","virtualMcp.connectionItem.remove":"Remover","virtualMcp.connectionItem.removeConnection":"Remover conexão","virtualMcp.dependencySelectionDialog.authorizationDescription":"Esta conexão deve ser autorizada antes de você poder configurar suas ferramentas e recursos.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Autorização obrigatória","virtualMcp.dependencySelectionDialog.authorize":"Autorizar","virtualMcp.dependencySelectionDialog.deselectAll":"Desselecionar tudo","virtualMcp.dependencySelectionDialog.done":"Concluído","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"Nenhuma ferramenta ativa selecionada","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"Nenhum prompt disponível","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"Nenhum recurso disponível","virtualMcp.dependencySelectionDialog.noToolsAvailable":"Nenhuma ferramenta disponível","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts não são suportados por este servidor","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Recursos não são suportados por este servidor","virtualMcp.dependencySelectionDialog.selectAll":"Selecionar tudo","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Algo deu errado","virtualMcp.dependencySelectionDialog.tabActive":"Ativas","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Recursos","virtualMcp.dependencySelectionDialog.tabTools":"Ferramentas","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Ferramentas não são suportadas por este servidor","virtualMcp.dependencySelectionDialog.unexpectedError":"Erro inesperado","virtualMcp.filesSection.add":"Adicionar","virtualMcp.filesSection.description":"Anexe arquivos e skills que o projeto sempre pode consultar.","virtualMcp.filesSection.failedUploadFile":"Falha ao enviar arquivo.","virtualMcp.filesSection.fileTooLargeDescription":"Excede o limite de 25MB, não enviado: {names}","virtualMcp.filesSection.fileTooLargeTitle":"Arquivo muito grande","virtualMcp.filesSection.filesAndSkills":"Arquivos e skills","virtualMcp.filesSection.kindFile":"Arquivo","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"Nenhum arquivo encontrado.","virtualMcp.filesSection.noFilesOrSkillsYet":"Nenhum arquivo ou skill ainda. Adicione um ou arraste e solte aqui.","virtualMcp.filesSection.noSkillsFound":"Nenhum skill encontrado.","virtualMcp.filesSection.removeAriaLabel":"Remover {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Pesquisar arquivos...","virtualMcp.filesSection.searchSkillsPlaceholder":"Pesquisar skills...","virtualMcp.filesSection.selectFileOrFolder":"Selecionar arquivo ou pasta","virtualMcp.filesSection.selectSkill":"Selecionar skill","virtualMcp.filesSection.uploadFile":"Enviar arquivo","virtualMcp.layoutTabContent.noMainView":"Sem visão principal","virtualMcp.layoutTabContent.automations":"Automações","virtualMcp.layoutTabContent.chatAlwaysShown":"O Chat sempre aparece quando é a visualização padrão","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Visualização principal","virtualMcp.layoutTabContent.mainViewDescription":"O que os usuários veem quando abrem este projeto pela primeira vez.","virtualMcp.layoutTabContent.settings":"Configurações","virtualMcp.layoutTabContent.showChat":"Mostrar chat","virtualMcp.layoutTabContent.showChatDescription":"Exibir Chat no painel lateral junto com a visualização principal.","virtualMcp.layoutTabContent.siteEditor":"Editor do site","virtualMcp.settings.title":"Configurações do projeto","virtualMcp.settings.navigation":"Seções das configurações do projeto","virtualMcp.settings.identity.icon":"Ícone do projeto","virtualMcp.settings.identity.iconDescription":"Como seu projeto aparece na barra lateral e no Studio.","virtualMcp.settings.identity.name":"Nome do projeto","virtualMcp.settings.identity.description":"Descrição","virtualMcp.settings.repository.title":"Repositório","virtualMcp.settings.repository.description":"O código deste projeto e como o sandbox roda ele.","virtualMcp.settings.repository.repoTitle":"Repositório","virtualMcp.settings.repository.runtimeTitle":"Como roda","virtualMcp.settings.repository.runtimeDescription":"O que o sandbox instala e sobe para mostrar o preview deste projeto.","virtualMcp.settings.pageTitle":"Configurações do projeto","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"O que abre primeiro e quais views aparecem na sidebar.","virtualMcp.settings.cmsEmptyTitle":"Nenhum conteúdo de site ainda","virtualMcp.settings.repository.open":"Ir para Repositório","virtualMcp.settings.repository.none":"Nenhum repositório conectado","virtualMcp.settings.repository.noneDescription":"Conecte um repositório do GitHub para editar e pré-visualizar o site deste projeto.","virtualMcp.settings.repository.connect":"Conectar repositório","virtualMcp.settings.repository.change":"Trocar","virtualMcp.settings.repository.connected":"{name} conectado","virtualMcp.settings.cmsEmpty":"Conecte o repositório do site para ligar o CMS.","virtualMcp.settings.general.title":"Geral","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site e sandbox","virtualMcp.settings.blocksV8Site.label":"Site Blocks v8","virtualMcp.settings.blocksV8Site.description":"Edite este site com o editor do Blocks v8 e o CMS hospedado. Desligado: v7, ligado ao git.","virtualMcp.settings.groups.advanced":"Avançado","virtualMcp.settings.groups.details":"Detalhes","virtualMcp.settings.connections.title":"Conexões","virtualMcp.settings.views.defaults":"Layout padrão","virtualMcp.settings.views.sidebar":"Visualizações","virtualMcp.settings.views.open":"Abrir","virtualMcp.settings.views.pin":"Fixar na barra lateral","virtualMcp.settings.views.unpin":"Remover da barra lateral","virtualMcp.settings.views.setMainView":"Definir como visualização principal","virtualMcp.settings.views.rowActions":"Opções da visualização","virtualMcp.virtualMcp.addConnection":"Adicionar conexão","virtualMcp.virtualMcp.agentDeleted":'Excluído "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agente","virtualMcp.virtualMcp.agentNamePlaceholder":"Nome do projeto","virtualMcp.virtualMcp.authenticationFailed":"Falha na autenticação: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Autenticação bem-sucedida","virtualMcp.virtualMcp.backToSpaces":"Voltar aos espaços","virtualMcp.virtualMcp.cancel":"Cancelar","virtualMcp.virtualMcp.connect":"Conectar","virtualMcp.virtualMcp.connections":"Conexões","virtualMcp.virtualMcp.created":"Criado em","virtualMcp.virtualMcp.createdBy":"Criado por","virtualMcp.virtualMcp.delete":"Excluir","virtualMcp.virtualMcp.deleteAgent":"Excluir projeto","virtualMcp.virtualMcp.deleteAgentConfirm":"Excluir Projeto?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"Esta ação não pode ser desfeita. Isto excluirá permanentemente {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Exclua permanentemente este projeto e todos os seus dados.","virtualMcp.virtualMcp.descriptionPlaceholder":"Adicionar uma descrição...","virtualMcp.virtualMcp.failedToCreateInstance":"Falha ao criar instância","virtualMcp.virtualMcp.fullscreen":"Tela cheia","virtualMcp.virtualMcp.improve":"Melhorar","virtualMcp.virtualMcp.instanceAlreadyAdded":"Esta instância já foi adicionada ao projeto","virtualMcp.virtualMcp.instructions":"Instruções","virtualMcp.virtualMcp.instructionsPlaceholder":"Defina como este agente deve se comportar, qual tom usar, qualquer restrição ou diretriz...","virtualMcp.virtualMcp.lastUsedLabel":"Último uso","virtualMcp.virtualMcp.neverUsed":"Nunca foi usado","virtualMcp.virtualMcp.newInstanceCreated":"Nova instância criada","virtualMcp.virtualMcp.noConnectionsYet":"Nenhuma conexão ainda. Adicione uma para começar.","virtualMcp.virtualMcp.openFullscreenEditor":"Abrir editor em tela cheia","virtualMcp.virtualMcp.promptTemplate":"+ Modelo de prompt","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
100
|
+
{answers}`,"plan.prompt.guidedNothing":"Before this chat I was asked whether anything only I know was missing, and nothing was. Do not ask me questions unless something blocks the case: assume, write the assumption on the card, and research.","plan.guide.thinking1":"Hmm, interesting idea…","plan.guide.thinking2":"Thinking about the next steps…","plan.guide.thinking3":"Let me see what is missing here…","plan.guide.thinking4":"This is good, let me shape it…","plan.guide.thinking5":"Putting the pieces together…","plan.guide.thinking6":"Hmm, there is something nice in this…","plan.guide.thinking7":"Sorting out the ideas…","plan.guide.thinking8":"One second, thinking…","plan.guide.building1":"Building your business case…","plan.guide.building2":"Calling the agent to research the numbers…","plan.guide.building3":"Getting the cards ready…","plan.guide.yourIdea":"Your idea","plan.guide.answerLabel":"Your answer","plan.guide.answerPlaceholder":"Write it your way…","plan.guide.continue":"Continue","plan.guide.skip":"Skip this one","plan.guide.back":"Back","plan.guide.resume.heading":"Your last case did not open","plan.guide.resume.description":"Your idea and answers are saved. Pick up where you left off.","plan.guide.resume.continue":"Continue","plan.guide.resume.discard":"Discard"},Nte={...Lee,...Bee,...Fee,...jee,...zee,...qee,...Uee,...$ee,...Vee,...Hee,...Gee,...Wee,...Kee,...Yee,...Zee,...Qee,...Jee,...Xee,...ete,...hte,...gte,...fte,...tte,...ote,...ate,...nte,...rte,...ste,...ite,...lte,...cte,...dte,...ute,...pte,...mte,...vte,...bte,...yte,...wte,...Ste,...Tte,...xte,...kte,...Ete,...Cte,...Pte,..._te,...Ate,...Rte,...Dte,...Ote,...Iee,...Mee};function $B(e,t){return t?e.replace(/\{(\w+)\}/g,(o,a)=>Object.hasOwn(t,a)?String(t[a]):o):e}const Mte={"page.overview":"Visão geral","page.app":"App","page.view":"Visualização","page.file":"Arquivo","page.document":"Documento","page.businessCase":"Business case","page.item":"Item","page.breadcrumbs":"Navegação estrutural","page.breadcrumbMenu":"Mostrar caminho de navegação","page.views":"Visualizações da página","page.openThread":"Abrir chat","page.closeThread":"Fechar chat","page.enterFullscreen":"Expandir","page.exitFullscreen":"Mostrar chat","page.openMainPanel":"Abrir painel","page.closeMainPanel":"Fechar","page.collapseSidebar":"Recolher barra lateral","page.expandSidebar":"Expandir barra lateral"},Ite={"projects.overview.metrics":"Métricas","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"Novo projeto","projects.card.updated":"Atualizado {time}","projects.empty.title":"Seu comércio, um projeto por vez","projects.empty.description":"Um site, um app, uma loja. Cada um com suas conexões, seu relatório e seu quadro.","projects.empty.readOnly":"Peça a um admin para criar o primeiro projeto.","projects.new.title":"Novo projeto","projects.new.subtitle":"O que você vai configurar?","projects.new.back":"Voltar","projects.new.create":"Criar projeto","projects.new.creating":"Criando…","projects.new.nameLabel":"Nome do projeto","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Dê um nome ao projeto","projects.new.failed":"Não foi possível criar o projeto","projects.new.created":"{title} está pronto","projects.new.path.repository":"Importar um código","projects.new.path.repository.hint":"Traga o código de um site ou app","projects.new.path.folder":"Nova pasta de projeto","projects.new.path.folder.hint":"Dê o nome agora, conecte depois","projects.new.step.folder.title":"Dê nome ao seu projeto","projects.reports.chooserTitle":"Continuar para Relatórios","projects.reports.chooserSubtitle":"Escolha um projeto para continuar","projects.reports.chooserSearch":"Buscar projeto…","projects.reports.chooserEmpty":"Nenhum projeto com esse nome.","projects.reports.status.ready":"Pronto","projects.reports.status.running":"Rodando","projects.reports.status.none":"Não rodou","projects.reports.status.locked":"Bloqueado","projects.connections.orgWide":"Toda a organização","projects.connections.usedBy":"{count} projetos","projects.settings.title":"Projetos","projects.settings.searchPlaceholder":"Buscar projetos…","projects.settings.open":"Abrir","projects.settings.openSettings":"Configurações","projects.settings.noResults":"Nenhum projeto corresponde a “{search}”","projects.identity.storeUrlLabel":"URL da loja","projects.identity.storeUrlDescription":"A loja no ar. Os relatórios rodam contra este endereço.","projects.apps.reports":"Relatório","projects.apps.blog":"Blog","projects.apps.siteEditor":"Editor de site","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"Testes ponta a ponta","projects.apps.automations":"Automações","projects.apps.calendar":"Calendário","projects.apps.experiments":"Experimentos"},Lte={"virtualMcp.settings.assetStorage.label":"Armazenamento de arquivos do CMS","virtualMcp.settings.assetStorage.description":"Escolha onde este projeto consulta e envia imagens e arquivos. As URLs do conteúdo existente não mudam.","virtualMcp.settings.assetStorage.automatic":"Automático (corresponder ao site)","virtualMcp.settings.assetStorage.missing":"O armazenamento selecionado está indisponível. Escolha outro nas configurações do projeto.","virtualMcp.settings.assetStorage.loading":"Carregando configurações de armazenamento…","virtualMcp.settings.assetStorage.loadError":"Não foi possível carregar as configurações de armazenamento.","virtualMcp.addConnectionDialog.addConnectionTitle":"Adicionar Conexão","virtualMcp.addConnectionDialog.authenticationFailedError":"Autenticação falhou: {error}","virtualMcp.addConnectionDialog.connected":"Conectado","virtualMcp.addConnectionDialog.connectedAuthenticated":"Conectado e autenticado","virtualMcp.addConnectionDialog.connectionsTitle":"Conexões","virtualMcp.addConnectionDialog.failedToAddConnection":"Falha ao adicionar conexão","virtualMcp.addConnectionDialog.failedToConnect":"Falha ao conectar","virtualMcp.addConnectionDialog.mcpServerConnectionError":"Este servidor MCP não pode ser conectado: nenhum método de conexão disponível","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Pesquisar conexões...","virtualMcp.addConnectionDialog.signInFailedDescription":"Foi adicionada ao seu projeto, mas sua configuração de login parece estar errada. Você pode tentar autenticar novamente mais tarde nas configurações da conexão. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Não foi possível fazer login nesta conexão","virtualMcp.connectionDialogContent.add":"Adicionar","virtualMcp.connectionDialogContent.added":"Adicionado","virtualMcp.connectionDialogContent.builtByDeco":"Construído e mantido pela Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Construído e mantido pelo fornecedor oficial","virtualMcp.connectionDialogContent.connect":"Conectar","virtualMcp.connectionDialogContent.connected":"Conectado","virtualMcp.connectionDialogContent.customConnection":"Conexão Personalizada","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"Nenhuma conexão disponível","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"Nenhuma conexão ainda","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'Nenhuma conexão corresponde a "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Feito por Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"Todas as conexões","virtualMcp.connectionDialogContent.sectionVerified":"Verificado","virtualMcp.connectionDialogContent.tabAll":"Todos","virtualMcp.connectionDialogContent.tabConnected":"Conectados","virtualMcp.connectionDialogContent.verifiedByDeco":"Verificado pelo time da Deco","virtualMcp.connectionItem.authorize":"Autorizar","virtualMcp.connectionItem.configureResources":"Configurar recursos","virtualMcp.connectionItem.connectionDisabled":"Conexão desativada","virtualMcp.connectionItem.connectionEnabled":"Conexão ativada","virtualMcp.connectionItem.connectionNotFound":"Conexão não encontrada","virtualMcp.connectionItem.connectionSettings":"Configurações de conexão","virtualMcp.connectionItem.disable":"Desativar","virtualMcp.connectionItem.disableConnection":"Desativar conexão","virtualMcp.connectionItem.disabled":"Desativada","virtualMcp.connectionItem.disabledError":"Desativada (erro)","virtualMcp.connectionItem.enable":"Ativar","virtualMcp.connectionItem.failedToUpdateConnection":"Falha ao atualizar a conexão","virtualMcp.connectionItem.needsAuthorization":"Requer autorização","virtualMcp.connectionItem.newInstance":"Nova instância","virtualMcp.connectionItem.remove":"Remover","virtualMcp.connectionItem.removeConnection":"Remover conexão","virtualMcp.dependencySelectionDialog.authorizationDescription":"Esta conexão deve ser autorizada antes de você poder configurar suas ferramentas e recursos.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Autorização obrigatória","virtualMcp.dependencySelectionDialog.authorize":"Autorizar","virtualMcp.dependencySelectionDialog.deselectAll":"Desselecionar tudo","virtualMcp.dependencySelectionDialog.done":"Concluído","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"Nenhuma ferramenta ativa selecionada","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"Nenhum prompt disponível","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"Nenhum recurso disponível","virtualMcp.dependencySelectionDialog.noToolsAvailable":"Nenhuma ferramenta disponível","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts não são suportados por este servidor","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Recursos não são suportados por este servidor","virtualMcp.dependencySelectionDialog.selectAll":"Selecionar tudo","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Algo deu errado","virtualMcp.dependencySelectionDialog.tabActive":"Ativas","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Recursos","virtualMcp.dependencySelectionDialog.tabTools":"Ferramentas","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Ferramentas não são suportadas por este servidor","virtualMcp.dependencySelectionDialog.unexpectedError":"Erro inesperado","virtualMcp.filesSection.add":"Adicionar","virtualMcp.filesSection.description":"Anexe arquivos e skills que o projeto sempre pode consultar.","virtualMcp.filesSection.failedUploadFile":"Falha ao enviar arquivo.","virtualMcp.filesSection.fileTooLargeDescription":"Excede o limite de 25MB, não enviado: {names}","virtualMcp.filesSection.fileTooLargeTitle":"Arquivo muito grande","virtualMcp.filesSection.filesAndSkills":"Arquivos e skills","virtualMcp.filesSection.kindFile":"Arquivo","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"Nenhum arquivo encontrado.","virtualMcp.filesSection.noFilesOrSkillsYet":"Nenhum arquivo ou skill ainda. Adicione um ou arraste e solte aqui.","virtualMcp.filesSection.noSkillsFound":"Nenhum skill encontrado.","virtualMcp.filesSection.removeAriaLabel":"Remover {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Pesquisar arquivos...","virtualMcp.filesSection.searchSkillsPlaceholder":"Pesquisar skills...","virtualMcp.filesSection.selectFileOrFolder":"Selecionar arquivo ou pasta","virtualMcp.filesSection.selectSkill":"Selecionar skill","virtualMcp.filesSection.uploadFile":"Enviar arquivo","virtualMcp.layoutTabContent.noMainView":"Sem visão principal","virtualMcp.layoutTabContent.automations":"Automações","virtualMcp.layoutTabContent.chatAlwaysShown":"O Chat sempre aparece quando é a visualização padrão","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Visualização principal","virtualMcp.layoutTabContent.mainViewDescription":"O que os usuários veem quando abrem este projeto pela primeira vez.","virtualMcp.layoutTabContent.settings":"Configurações","virtualMcp.layoutTabContent.showChat":"Mostrar chat","virtualMcp.layoutTabContent.showChatDescription":"Exibir Chat no painel lateral junto com a visualização principal.","virtualMcp.layoutTabContent.siteEditor":"Editor do site","virtualMcp.settings.title":"Configurações do projeto","virtualMcp.settings.navigation":"Seções das configurações do projeto","virtualMcp.settings.identity.icon":"Ícone do projeto","virtualMcp.settings.identity.iconDescription":"Como seu projeto aparece na barra lateral e no Studio.","virtualMcp.settings.identity.name":"Nome do projeto","virtualMcp.settings.identity.description":"Descrição","virtualMcp.settings.repository.title":"Repositório","virtualMcp.settings.repository.description":"O código deste projeto e como o sandbox roda ele.","virtualMcp.settings.repository.repoTitle":"Repositório","virtualMcp.settings.repository.runtimeTitle":"Como roda","virtualMcp.settings.repository.runtimeDescription":"O que o sandbox instala e sobe para mostrar o preview deste projeto.","virtualMcp.settings.pageTitle":"Configurações do projeto","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"O que abre primeiro e quais views aparecem na sidebar.","virtualMcp.settings.cmsEmptyTitle":"Nenhum conteúdo de site ainda","virtualMcp.settings.repository.open":"Ir para Repositório","virtualMcp.settings.repository.none":"Nenhum repositório conectado","virtualMcp.settings.repository.noneDescription":"Conecte um repositório do GitHub para editar e pré-visualizar o site deste projeto.","virtualMcp.settings.repository.connect":"Conectar repositório","virtualMcp.settings.repository.change":"Trocar","virtualMcp.settings.repository.connected":"{name} conectado","virtualMcp.settings.cmsEmpty":"Conecte o repositório do site para ligar o CMS.","virtualMcp.settings.general.title":"Geral","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site e sandbox","virtualMcp.settings.blocksV8Site.label":"Site Blocks v8","virtualMcp.settings.blocksV8Site.description":"Edite este site com o editor do Blocks v8 e o CMS hospedado. Desligado: v7, ligado ao git.","virtualMcp.settings.groups.advanced":"Avançado","virtualMcp.settings.groups.details":"Detalhes","virtualMcp.settings.connections.title":"Conexões","virtualMcp.settings.views.defaults":"Layout padrão","virtualMcp.settings.views.sidebar":"Visualizações","virtualMcp.settings.views.open":"Abrir","virtualMcp.settings.views.pin":"Fixar na barra lateral","virtualMcp.settings.views.unpin":"Remover da barra lateral","virtualMcp.settings.views.setMainView":"Definir como visualização principal","virtualMcp.settings.views.rowActions":"Opções da visualização","virtualMcp.virtualMcp.addConnection":"Adicionar conexão","virtualMcp.virtualMcp.agentDeleted":'Excluído "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agente","virtualMcp.virtualMcp.agentNamePlaceholder":"Nome do projeto","virtualMcp.virtualMcp.authenticationFailed":"Falha na autenticação: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Autenticação bem-sucedida","virtualMcp.virtualMcp.backToSpaces":"Voltar aos espaços","virtualMcp.virtualMcp.cancel":"Cancelar","virtualMcp.virtualMcp.connect":"Conectar","virtualMcp.virtualMcp.connections":"Conexões","virtualMcp.virtualMcp.created":"Criado em","virtualMcp.virtualMcp.createdBy":"Criado por","virtualMcp.virtualMcp.delete":"Excluir","virtualMcp.virtualMcp.deleteAgent":"Excluir projeto","virtualMcp.virtualMcp.deleteAgentConfirm":"Excluir Projeto?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"Esta ação não pode ser desfeita. Isto excluirá permanentemente {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Exclua permanentemente este projeto e todos os seus dados.","virtualMcp.virtualMcp.descriptionPlaceholder":"Adicionar uma descrição...","virtualMcp.virtualMcp.failedToCreateInstance":"Falha ao criar instância","virtualMcp.virtualMcp.fullscreen":"Tela cheia","virtualMcp.virtualMcp.improve":"Melhorar","virtualMcp.virtualMcp.instanceAlreadyAdded":"Esta instância já foi adicionada ao projeto","virtualMcp.virtualMcp.instructions":"Instruções","virtualMcp.virtualMcp.instructionsPlaceholder":"Defina como este agente deve se comportar, qual tom usar, qualquer restrição ou diretriz...","virtualMcp.virtualMcp.lastUsedLabel":"Último uso","virtualMcp.virtualMcp.neverUsed":"Nunca foi usado","virtualMcp.virtualMcp.newInstanceCreated":"Nova instância criada","virtualMcp.virtualMcp.noConnectionsYet":"Nenhuma conexão ainda. Adicione uma para começar.","virtualMcp.virtualMcp.openFullscreenEditor":"Abrir editor em tela cheia","virtualMcp.virtualMcp.promptTemplate":"+ Modelo de prompt","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
101
101
|
Defina quem é este agente e em que ele é especializado.
|
|
102
102
|
Exemplo: Você é um agente de triagem de suporte para comerciantes B2B.
|
|
103
103
|
</role>
|
|
@@ -141,7 +141,7 @@ Pedido: {idea}`,"plan.prompt.withoutObjective":`Vamos montar juntos um business
|
|
|
141
141
|
|
|
142
142
|
Pedido: {idea}`,"plan.case.waiting":"Abrindo o business case…","plan.case.asking":"Responda no chat","plan.case.assumption":"Suposição:","plan.case.progress":"{filled} de {total} preenchidos","plan.case.openDocument":"Abrir o documento","plan.case.invalid":"Não deu para ler a última atualização; mostrando a anterior.","plan.case.objective":"Objetivo da loja","plan.case.noObjective":"Ainda sem objetivo. Escreva um na página Plan.","plan.case.request":"O que você pediu","plan.case.status.framing":"Enquadrando","plan.case.status.building":"Construindo","plan.case.status.ready":"Pronto","plan.case.area.pdp":"Página de produto","plan.case.area.search":"Busca","plan.case.area.category":"Página de categoria","plan.case.area.home":"Home","plan.case.area.cart":"Carrinho","plan.case.area.checkout":"Checkout","plan.case.area.shipping":"Frete","plan.case.area.performance":"Performance","plan.case.area.paidMedia":"Mídia paga","plan.case.area.other":"Outra","plan.case.card.problem":"O problema, medido","plan.case.card.problemQuestion":"Em que passo da jornada as pessoas desistem, e quantas?","plan.case.card.scope":"O que vamos mexer","plan.case.card.scopeQuestion":"Onde na loja, em qual dispositivo, e o que exatamente?","plan.case.card.money":"Dinheiro em jogo","plan.case.card.moneyQuestion":"Quanto vale por mês um ganho pequeno nesse passo?","plan.case.card.competitors":"Quem já faz","plan.case.card.competitorsQuestion":"Quais concorrentes já fazem isso, e como?","plan.case.card.measurement":"Como vamos medir","plan.case.card.measurementQuestion":"Qual métrica prova que funcionou, e qual não pode piorar?","plan.case.card.abTest":"Teste A/B e prazo","plan.case.card.abTestQuestion":"Quantas pessoas e quantas semanas para saber?","plan.case.card.effort":"Esforço e entregas","plan.case.card.effortQuestion":"Quantos dias de trabalho, e o que muda na loja?","plan.case.card.risks":"Riscos","plan.case.card.risksQuestion":"O que pode piorar, e o que vamos vigiar?","plan.case.card.unknowns":"O que ainda não sabemos","plan.case.card.unknownsQuestion":"O que falta, e como descobrir?","plan.cases.heading":"Seus business cases","plan.cases.description":"Abra um para ver o canvas e continuar a conversa.","plan.cases.updated":"Atualizado {when}","plan.cases.unreadable":"Não deu para ler este case","plan.prompt.skipped":"(pulou: assuma e escreva a suposição no card)","plan.prompt.guidedAnswers":`Antes deste chat eu já respondi as perguntas que só eu sabia responder. Não pergunte de novo, nem me pergunte mais nada a não ser que algo trave o case: preencha primeiro os cards que essas respostas cobrem e depois pesquise.
|
|
143
143
|
|
|
144
|
-
{answers}`,"plan.prompt.guidedNothing":"Antes deste chat checaram se faltava algo que só eu sei, e não faltava nada. Não me faça perguntas a não ser que algo trave o case: assuma, escreva a suposição no card e pesquise.","plan.guide.thinking1":"Hum, ideia interessante…","plan.guide.thinking2":"Pensando nos próximos passos…","plan.guide.thinking3":"Deixa eu ver o que falta aqui…","plan.guide.thinking4":"Isso é bom, vou formular…","plan.guide.thinking5":"Juntando as peças…","plan.guide.thinking6":"Hum, dá pra fazer algo legal com isso…","plan.guide.thinking7":"Organizando as ideias…","plan.guide.thinking8":"Só um segundo, pensando…","plan.guide.building1":"Montando seu business case…","plan.guide.building2":"Chamando o agente para pesquisar os números…","plan.guide.building3":"Preparando os cards…","plan.guide.yourIdea":"Sua ideia","plan.guide.answerLabel":"Sua resposta","plan.guide.answerPlaceholder":"Escreva do seu jeito…","plan.guide.continue":"Continuar","plan.guide.skip":"Pular esta","plan.guide.back":"Voltar"},Noe={...Lte,...Bte,...Fte,...jte,...zte,...qte,...Ute,...$te,...Vte,...Hte,...Gte,...Wte,...Kte,...Yte,...Zte,...Qte,...Jte,...Xte,...eoe,...hoe,...goe,...foe,...toe,...ooe,...aoe,...noe,...roe,...soe,...ioe,...loe,...coe,...doe,...uoe,...poe,...moe,...voe,...boe,...yoe,...woe,...Soe,...Toe,...xoe,...koe,...Eoe,...Coe,...Poe,..._oe,...Aoe,...Roe,...Doe,...Ooe,...Ite,...Mte},VB={en:Nte,"pt-BR":Noe};function nr(e,t){return $B(VB[cb()][e],t)}function $a(){const e=ye.c(2),[t]=rE(),o=VB[t.language];let a;return e[0]!==o?(a=(n,r)=>$B(o[n],r),e[0]=o,e[1]=a):a=e[1],a}function HB(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=HB(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function sE(){for(var e,t,o=0,a="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=HB(e))&&(a&&(a+=" "),a+=t);return a}const TO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xO=sE,Xl=(e,t)=>o=>{var a;if(t?.variants==null)return xO(e,o?.class,o?.className);const{variants:n,defaultVariants:r}=t,i=Object.keys(n).map(u=>{const m=o?.[u],h=r?.[u];if(m===null)return null;const f=TO(m)||TO(h);return n[u][f]}),c=o&&Object.entries(o).reduce((u,m)=>{let[h,f]=m;return f===void 0||(u[h]=f),u},{}),d=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,m)=>{let{class:h,className:f,...v}=m;return Object.entries(v).every(b=>{let[w,x]=b;return Array.isArray(x)?x.includes({...r,...c}[w]):{...r,...c}[w]===x})?[...u,h,f]:u},[]);return xO(e,i,d,o?.class,o?.className)},Moe=(e,t)=>{const o=new Array(e.length+t.length);for(let a=0;a<e.length;a++)o[a]=e[a];for(let a=0;a<t.length;a++)o[e.length+a]=t[a];return o},Ioe=(e,t)=>({classGroupId:e,validator:t}),GB=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),av="-",kO=[],Loe="arbitrary..",Boe=e=>{const t=joe(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Foe(i);const c=i.split(av),d=c[0]===""&&c.length>1?1:0;return WB(c,d,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const d=a[i],u=o[i];return d?u?Moe(u,d):d:u||kO}return o[i]||kO}}},WB=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],r=o.nextPart.get(n);if(r){const u=WB(e,t+1,r);if(u)return u}const i=o.validators;if(i===null)return;const c=t===0?e.join(av):e.slice(t).join(av),d=i.length;for(let u=0;u<d;u++){const m=i[u];if(m.validator(c))return m.classGroupId}},Foe=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),a=t.slice(0,o);return a?Loe+a:void 0})(),joe=e=>{const{theme:t,classGroups:o}=e;return zoe(o,t)},zoe=(e,t)=>{const o=GB();for(const a in e){const n=e[a];iE(n,o,a,t)}return o},iE=(e,t,o,a)=>{const n=e.length;for(let r=0;r<n;r++){const i=e[r];qoe(i,t,o,a)}},qoe=(e,t,o,a)=>{if(typeof e=="string"){Uoe(e,t,o);return}if(typeof e=="function"){$oe(e,t,o,a);return}Voe(e,t,o,a)},Uoe=(e,t,o)=>{const a=e===""?t:KB(t,e);a.classGroupId=o},$oe=(e,t,o,a)=>{if(Hoe(e)){iE(e(a),t,o,a);return}t.validators===null&&(t.validators=[]),t.validators.push(Ioe(o,e))},Voe=(e,t,o,a)=>{const n=Object.entries(e),r=n.length;for(let i=0;i<r;i++){const[c,d]=n[i];iE(d,KB(t,c),o,a)}},KB=(e,t)=>{let o=e;const a=t.split(av),n=a.length;for(let r=0;r<n;r++){const i=a[r];let c=o.nextPart.get(i);c||(c=GB(),o.nextPart.set(i,c)),o=c}return o},Hoe=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Goe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),a=Object.create(null);const n=(r,i)=>{o[r]=i,t++,t>e&&(t=0,a=o,o=Object.create(null))};return{get(r){let i=o[r];if(i!==void 0)return i;if((i=a[r])!==void 0)return n(r,i),i},set(r,i){r in o?o[r]=i:n(r,i)}}},zx="!",EO=":",Woe=[],CO=(e,t,o,a,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:a,isExternal:n}),Koe=e=>{const{prefix:t,experimentalParseClassName:o}=e;let a=n=>{const r=[];let i=0,c=0,d=0,u;const m=n.length;for(let w=0;w<m;w++){const x=n[w];if(i===0&&c===0){if(x===EO){r.push(n.slice(d,w)),d=w+1;continue}if(x==="/"){u=w;continue}}x==="["?i++:x==="]"?i--:x==="("?c++:x===")"&&c--}const h=r.length===0?n:n.slice(d);let f=h,v=!1;h.endsWith(zx)?(f=h.slice(0,-1),v=!0):h.startsWith(zx)&&(f=h.slice(1),v=!0);const b=u&&u>d?u-d:void 0;return CO(r,v,f,b)};if(t){const n=t+EO,r=a;a=i=>i.startsWith(n)?r(i.slice(n.length)):CO(Woe,!1,i,void 0,!0)}if(o){const n=a;a=r=>o({className:r,parseClassName:n})}return a},Yoe=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,a)=>{t.set(o,1e6+a)}),o=>{const a=[];let n=[];for(let r=0;r<o.length;r++){const i=o[r],c=i[0]==="[",d=t.has(i);c||d?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(i)):n.push(i)}return n.length>0&&(n.sort(),a.push(...n)),a}},Zoe=e=>({cache:Goe(e.cacheSize),parseClassName:Koe(e),sortModifiers:Yoe(e),postfixLookupClassGroupIds:Qoe(e),...Boe(e)}),Qoe=e=>{const t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let a=0;a<o.length;a++)t[o[a]]=!0;return t},Joe=/\s+/,Xoe=(e,t)=>{const{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:r,postfixLookupClassGroupIds:i}=t,c=[],d=e.trim().split(Joe);let u="";for(let m=d.length-1;m>=0;m-=1){const h=d[m],{isExternal:f,modifiers:v,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:x}=o(h);if(f){u=h+(u.length>0?" "+u:u);continue}let T=!!x,k;if(T){const R=w.substring(0,x);k=a(R);const O=k&&i[k]?a(w):void 0;O&&O!==k&&(k=O,T=!1)}else k=a(w);if(!k){if(!T){u=h+(u.length>0?" "+u:u);continue}if(k=a(w),!k){u=h+(u.length>0?" "+u:u);continue}T=!1}const C=v.length===0?"":v.length===1?v[0]:r(v).join(":"),E=b?C+zx:C,_=E+k;if(c.indexOf(_)>-1)continue;c.push(_);const D=n(k,T);for(let R=0;R<D.length;++R){const O=D[R];c.push(E+O)}u=h+(u.length>0?" "+u:u)}return u},eae=(...e)=>{let t=0,o,a,n="";for(;t<e.length;)(o=e[t++])&&(a=YB(o))&&(n&&(n+=" "),n+=a);return n},YB=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=YB(e[a]))&&(o&&(o+=" "),o+=t);return o},tae=(e,...t)=>{let o,a,n,r;const i=d=>{const u=t.reduce((m,h)=>h(m),e());return o=Zoe(u),a=o.cache.get,n=o.cache.set,r=c,c(d)},c=d=>{const u=a(d);if(u)return u;const m=Xoe(d,o);return n(d,m),m};return r=i,(...d)=>r(eae(...d))},oae=[],oa=e=>{const t=o=>o[e]||oae;return t.isThemeGetter=!0,t},ZB=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,QB=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aae=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yi=e=>aae.test(e),bt=e=>!!e&&!Number.isNaN(Number(e)),zr=e=>!!e&&Number.isInteger(Number(e)),FS=e=>e.endsWith("%")&&bt(e.slice(0,-1)),_s=e=>nae.test(e),JB=()=>!0,cae=e=>rae.test(e)&&!sae.test(e),lE=()=>!1,dae=e=>iae.test(e),uae=e=>lae.test(e),pae=e=>!We(e)&&!Ye(e),mae=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),hae=e=>Xi(e,tF,lE),We=e=>ZB.test(e),xl=e=>Xi(e,oF,cae),PO=e=>Xi(e,Tae,bt),gae=e=>Xi(e,nF,JB),fae=e=>Xi(e,aF,lE),_O=e=>Xi(e,XB,lE),vae=e=>Xi(e,eF,uae),$g=e=>Xi(e,rF,dae),Ye=e=>QB.test(e),tp=e=>ec(e,oF),bae=e=>ec(e,aF),AO=e=>ec(e,XB),yae=e=>ec(e,tF),wae=e=>ec(e,eF),Vg=e=>ec(e,rF,!0),Sae=e=>ec(e,nF,!0),Xi=(e,t,o)=>{const a=ZB.exec(e);return a?a[1]?t(a[1]):o(a[2]):!1},ec=(e,t,o=!1)=>{const a=QB.exec(e);return a?a[1]?t(a[1]):o:!1},XB=e=>e==="position"||e==="percentage",eF=e=>e==="image"||e==="url",tF=e=>e==="length"||e==="size"||e==="bg-size",oF=e=>e==="length",Tae=e=>e==="number",aF=e=>e==="family-name",nF=e=>e==="number"||e==="weight",rF=e=>e==="shadow",xae=()=>{const e=oa("color"),t=oa("font"),o=oa("text"),a=oa("font-weight"),n=oa("tracking"),r=oa("leading"),i=oa("breakpoint"),c=oa("container"),d=oa("spacing"),u=oa("radius"),m=oa("shadow"),h=oa("inset-shadow"),f=oa("text-shadow"),v=oa("drop-shadow"),b=oa("blur"),w=oa("perspective"),x=oa("aspect"),T=oa("ease"),k=oa("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...E(),Ye,We],D=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],O=()=>[Ye,We,d],L=()=>[yi,"full","auto",...O()],U=()=>[zr,"none","subgrid",Ye,We],B=()=>["auto",{span:["full",zr,Ye,We]},zr,Ye,We],z=()=>[zr,"auto",Ye,We],F=()=>["auto","min","max","fr",Ye,We],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...O()],K=()=>[yi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],J=()=>[yi,"screen","full","dvw","lvw","svw","min","max","fit",...O()],se=()=>[yi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],Q=()=>[e,Ye,We],M=()=>[...E(),AO,_O,{position:[Ye,We]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",yae,hae,{size:[Ye,We]}],I=()=>[FS,tp,xl],j=()=>["","none","full",u,Ye,We],X=()=>["",bt,tp,xl],de=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[bt,FS,AO,_O],qe=()=>["","none",b,Ye,We],Z=()=>["none",bt,Ye,We],ne=()=>["none",bt,Ye,We],ve=()=>[bt,Ye,We],ie=()=>[yi,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_s],breakpoint:[_s],color:[JB],container:[_s],"drop-shadow":[_s],ease:["in","out","in-out"],font:[pae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_s],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_s],shadow:[_s],spacing:["px",bt],text:[_s],"text-shadow":[_s],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yi,We,Ye,x]}],container:["container"],"container-type":[{"@container":["","normal","size",Ye,We]}],"container-named":[mae],columns:[{columns:[bt,We,Ye,c]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[zr,"auto",Ye,We]}],basis:[{basis:[yi,"full","auto",c,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bt,yi,"auto","initial","none",We]}],grow:[{grow:["",bt,Ye,We]}],shrink:[{shrink:["",bt,Ye,We]}],order:[{order:[zr,"first","last","none",Ye,We]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[c,"screen",...K()]}],"min-w":[{"min-w":[c,"screen","none",...K()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",o,tp,xl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Sae,gae]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",FS,We]}],"font-family":[{font:[bae,fae,t]}],"font-features":[{"font-features":[We]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Ye,We]}],"line-clamp":[{"line-clamp":[bt,"none",Ye,PO]}],leading:[{leading:[r,...O()]}],"list-image":[{"list-image":["none",Ye,We]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ye,We]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",Ye,xl]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[bt,"auto",Ye,We]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[zr,Ye,We]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ye,We]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ye,We]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zr,Ye,We],radial:["",Ye,We],conic:[zr,Ye,We]},wae,vae]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bt,Ye,We]}],"outline-w":[{outline:["",bt,tp,xl]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",m,Vg,$g]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,Vg,$g]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[bt,xl]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",f,Vg,$g]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[bt,Ye,We]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[Ye,We]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ye,We]}],filter:[{filter:["","none",Ye,We]}],blur:[{blur:qe()}],brightness:[{brightness:[bt,Ye,We]}],contrast:[{contrast:[bt,Ye,We]}],"drop-shadow":[{"drop-shadow":["","none",v,Vg,$g]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",bt,Ye,We]}],"hue-rotate":[{"hue-rotate":[bt,Ye,We]}],invert:[{invert:["",bt,Ye,We]}],saturate:[{saturate:[bt,Ye,We]}],sepia:[{sepia:["",bt,Ye,We]}],"backdrop-filter":[{"backdrop-filter":["","none",Ye,We]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[bt,Ye,We]}],"backdrop-contrast":[{"backdrop-contrast":[bt,Ye,We]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,Ye,We]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,Ye,We]}],"backdrop-invert":[{"backdrop-invert":["",bt,Ye,We]}],"backdrop-opacity":[{"backdrop-opacity":[bt,Ye,We]}],"backdrop-saturate":[{"backdrop-saturate":[bt,Ye,We]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,Ye,We]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ye,We]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bt,"initial",Ye,We]}],ease:[{ease:["linear","initial",T,Ye,We]}],delay:[{delay:[bt,Ye,We]}],animate:[{animate:["none",k,Ye,We]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Ye,We]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[Ye,We,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],zoom:[{zoom:[zr,Ye,We]}],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ye,We]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Q()}],"scrollbar-track-color":[{"scrollbar-track":Q()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ye,We]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[bt,tp,xl,PO]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sF=tae(xae);function Je(...e){return sF(sE(e))}const kae=Xl("animate-spin shrink-0",{variants:{size:{"2xs":"size-3",xs:"size-4",sm:"size-6",default:"size-7",lg:"size-8",icon:"size-6"}},defaultVariants:{size:"default"}});function Eae(e){const t=ye.c(11),{size:o,className:a,style:n,label:r}=e;let i;t[0]!==r?(i=r?{role:"status","aria-label":r}:{"aria-hidden":!0},t[0]=r,t[1]=i):i=t[1];let c;t[2]!==a||t[3]!==o?(c=Je(kae({size:o}),a),t[2]=a,t[3]=o,t[4]=c):c=t[4];let d,u;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=y.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor",opacity:"0.2"}),u=y.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"}),t[5]=d,t[6]=u):(d=t[5],u=t[6]);let m;return t[7]!==n||t[8]!==i||t[9]!==c?(m=y.jsxs("svg",{...i,className:c,style:n,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d,u]}),t[7]=n,t[8]=i,t[9]=c,t[10]=m):m=t[10],m}function Xd(){const e=ye.c(4),t=$a();let o;e[0]!==t?(o=t("common.loading"),e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx("div",{"data-testid":"panel-loading",className:"flex flex-1 h-full w-full items-center justify-center",children:y.jsx(Eae,{className:"size-5 text-muted-foreground",label:o})}),e[2]=o,e[3]=a):a=e[3],a}function Kxe(e){const t=ye.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx(Xd,{}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=y.jsx(A.Suspense,{fallback:a,children:o}),t[1]=o,t[2]=n):n=t[2],n}const iF=lo([Vt(),Qe("chat"),Qe(0)]).optional().transform(e=>e===void 0?void 0:e===!0||e==="chat").catch(void 0),lF=Vt().optional().catch(void 0);function RO(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("bg-secondary-hover animate-pulse rounded-md",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{"data-slot":"skeleton",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function DO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fm(...e){return t=>{let o=!1;const a=e.map(n=>{const r=DO(n,t);return!o&&typeof r=="function"&&(o=!0),r});if(o)return()=>{for(let n=0;n<a.length;n++){const r=a[n];typeof r=="function"?r():DO(e[n],null)}}}}function $o(...e){return A.useCallback(fm(...e),e)}var Cae=Symbol.for("react.lazy"),nv=uk[" use ".trim().toString()];function Pae(e){return typeof e=="object"&&e!==null&&"then"in e}function cF(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Cae&&"_payload"in e&&Pae(e._payload)}function dF(e){const t=_ae(e),o=A.forwardRef((a,n)=>{let{children:r,...i}=a;cF(r)&&typeof nv=="function"&&(r=nv(r._payload));const c=A.Children.toArray(r),d=c.find(Rae);if(d){const u=d.props.children,m=c.map(h=>h===d?A.Children.count(u)>1?A.Children.only(null):A.isValidElement(u)?u.props.children:null:h);return y.jsx(t,{...i,ref:n,children:A.isValidElement(u)?A.cloneElement(u,void 0,m):null})}return y.jsx(t,{...i,ref:n,children:r})});return o.displayName=`${e}.Slot`,o}var db=dF("Slot");function _ae(e){const t=A.forwardRef((o,a)=>{let{children:n,...r}=o;if(cF(n)&&typeof nv=="function"&&(n=nv(n._payload)),A.isValidElement(n)){const i=Oae(n),c=Dae(r,n.props);return n.type!==A.Fragment&&(c.ref=a?fm(a,i):i),A.cloneElement(n,c)}return A.Children.count(n)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uF=Symbol("radix.slottable");function Aae(e){const t=({children:o})=>y.jsx(y.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=uF,t}var Yxe=Aae("Slottable");function Rae(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uF}function Dae(e,t){const o={...t};for(const a in t){const n=e[a],r=t[a];/^on[A-Z]/.test(a)?n&&r?o[a]=(...c)=>{const d=r(...c);return n(...c),d}:n&&(o[a]=n):a==="style"?o[a]={...n,...r}:a==="className"&&(o[a]=[n,r].filter(Boolean).join(" "))}return{...e,...o}}function Oae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}const Nae="bg-[var(--studio-secondary-background)] text-[color:var(--studio-secondary-foreground)] shadow-[var(--studio-secondary-shadow)] hover:bg-[var(--studio-secondary-hover-background)] hover:text-[color:var(--studio-secondary-hover-foreground)]",cE=Xl(["relative inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap","rounded-[var(--studio-button-radius)] text-sm font-medium","transition-[background-color,box-shadow,color,opacity] duration-150 ease-[var(--ease-out-cubic)]","active:translate-y-px active:transition-none motion-reduce:active:translate-y-0","focus-ring","disabled:pointer-events-none disabled:opacity-40","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","aria-invalid:outline-destructive"],{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/85 dark:bg-destructive/70",secondary:Nae,outline:"bg-card text-[color:var(--studio-outline-foreground)] shadow-edge hover:bg-[var(--studio-outline-hover-background)] hover:text-accent-foreground aria-pressed:bg-accent aria-pressed:text-accent-foreground data-[state=open]:bg-accent",success:"bg-success text-success-foreground hover:bg-success/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",brand:"bg-brand text-brand-foreground hover:bg-brand/85",special:"bg-special text-special-foreground hover:bg-special/90",ghost:"hover:bg-accent hover:text-accent-foreground","ghost-destructive":"text-muted-foreground hover:bg-accent hover:text-destructive",agent:"bg-card text-card-foreground shadow-edge hover:bg-accent has-[>[data-slot=agent-avatar]]:pl-[3px]",sidebar:"text-sidebar-foreground hover:bg-sidebar-accent aria-pressed:bg-sidebar-accent [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",link:"text-foreground/80 hover:text-foreground",tab:"text-muted-foreground hover:bg-accent hover:text-foreground aria-pressed:bg-card aria-pressed:text-card-foreground aria-pressed:shadow-edge aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-edge",menu:"w-full justify-start font-normal hover:bg-accent hover:text-accent-foreground"},size:{default:"h-8 px-3.5 has-[>svg]:px-3",sm:"h-7 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2.5 text-xs has-[>svg]:px-2",lg:"h-10 px-4.5 has-[>svg]:px-4",xl:"h-12 px-6 text-base has-[>svg]:px-5",icon:"size-8","icon-sm":"size-7","icon-xs":"size-6"}},defaultVariants:{variant:"default",size:"default"}});function yn(e){const t=ye.c(14);let o,a,n,r,i;t[0]!==e?({className:o,variant:i,size:n,asChild:r,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5]);const d=(r===void 0?!1:r)?db:"button";let u;t[6]!==o||t[7]!==n||t[8]!==i?(u=Je(cE({variant:i,size:n,className:o})),t[6]=o,t[7]=n,t[8]=i,t[9]=u):u=t[9];let m;return t[10]!==d||t[11]!==a||t[12]!==u?(m=y.jsx(d,{"data-slot":"button",className:u,...a}),t[10]=d,t[11]=a,t[12]=u,t[13]=m):m=t[13],m}const Vp=A.createContext(null);function Mae(e){const t=ye.c(18);let o,a,n,r;t[0]!==e?({children:o,className:a,variant:r,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r):(o=t[1],a=t[2],n=t[3],r=t[4]);const i=r===void 0?"card":r;let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c={left:null,center:null,right:null,"toolbar-left":null,"toolbar-center":null,"toolbar-right":null},t[5]=c):c=t[5];const[d,u]=A.useState(c);let m;t[6]!==d?(m={targets:d,setTargets:u},t[6]=d,t[7]=m):m=t[7];const h=i==="card"&&"rounded-xl shadow-edge [transform:translateZ(0)]";let f;t[8]!==a||t[9]!==h?(f=Je("flex h-full min-h-0 min-w-0 flex-col overflow-hidden bg-background",h,a),t[8]=a,t[9]=h,t[10]=f):f=t[10];let v;t[11]!==o||t[12]!==n||t[13]!==f?(v=y.jsx("div",{...n,"data-slot":"panel",className:f,children:o}),t[11]=o,t[12]=n,t[13]=f,t[14]=v):v=t[14];let b;return t[15]!==m||t[16]!==v?(b=y.jsx(Vp,{value:m,children:v}),t[15]=m,t[16]=v,t[17]=b):b=t[17],b}function Iae(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("@container/panel-header relative z-10 flex h-12 shrink-0 items-center justify-between gap-2 px-1.5",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("header",{...a,"data-slot":"panel-topbar",className:n}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Kc(e,t){const o=e.startsWith("toolbar-")?`panel-${e}`:`panel-topbar-${e}`;function a(i){const c=ye.c(8);let d,u;c[0]!==i?({className:d,...u}=i,c[0]=i,c[1]=d,c[2]=u):(d=c[1],u=c[2]);let m;c[3]!==d?(m=Je("flex min-w-0 items-center gap-1",t,d),c[3]=d,c[4]=m):m=c[4];let h;return c[5]!==u||c[6]!==m?(h=y.jsx("div",{...u,"data-slot":o,className:m}),c[5]=u,c[6]=m,c[7]=h):h=c[7],h}function n(i){const c=ye.c(16);let d,u,m;c[0]!==i?({className:d,fallback:u,...m}=i,c[0]=i,c[1]=d,c[2]=u,c[3]=m):(d=c[1],u=c[2],m=c[3]);const h=A.use(Vp);if(!h)throw new Error("Panel targets require a Panel");const{setTargets:f}=h;let v;c[4]!==f?(v=()=>C=>{if(C)return f(E=>{if(E[e]&&E[e]!==C)throw new Error(`Panel has two targets for ${e}`);return E[e]===C?E:{...E,[e]:C}}),()=>{f(E=>E[e]===C?{...E,[e]:null}:E)}},c[4]=f,c[5]=v):v=c[5];const[b]=A.useState(v);let w;c[6]!==d?(w=Je("peer contents empty:hidden",d),c[6]=d,c[7]=w):w=c[7];let x;c[8]!==m||c[9]!==w?(x=y.jsx("div",{"data-toolbar-content":e.startsWith("toolbar-")?"":void 0,...m,ref:b,"data-slot":`${o}-target`,className:w}),c[8]=m,c[9]=w,c[10]=x):x=c[10];let T;c[11]!==u?(T=u&&y.jsx("div",{className:"hidden peer-empty:contents",children:u}),c[11]=u,c[12]=T):T=c[12];let k;return c[13]!==x||c[14]!==T?(k=y.jsxs(y.Fragment,{children:[x,T]}),c[13]=x,c[14]=T,c[15]=k):k=c[15],k}function r({children:i,fallback:c=null}){const u=A.use(Vp)?.targets[e];return u?lm.createPortal(i,u):c}return Object.assign(a,{Target:n,Portal:r})}function Lae(e){const t=ye.c(12),{children:o}=e,a=A.use(Vp);if(!a)throw new Error("A toolbar scope requires a Panel");let n;t[0]!==a.targets?(n={...a.targets,"toolbar-left":null,"toolbar-center":null,"toolbar-right":null},t[0]=a.targets,t[1]=n):n=t[1];const[r,i]=A.useState(n),c=r["toolbar-left"],d=r["toolbar-center"],u=r["toolbar-right"];let m;t[2]!==a.targets||t[3]!==c||t[4]!==d||t[5]!==u?(m={...a.targets,"toolbar-left":c,"toolbar-center":d,"toolbar-right":u},t[2]=a.targets,t[3]=c,t[4]=d,t[5]=u,t[6]=m):m=t[6];const h=m;let f;t[7]!==h?(f={targets:h,setTargets:i},t[7]=h,t[8]=f):f=t[8];let v;return t[9]!==o||t[10]!==f?(v=y.jsx(Vp,{value:f,children:o}),t[9]=o,t[10]=f,t[11]=v):v=t[11],v}function Bae(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("@container/panel-toolbar relative z-10 flex min-h-11 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 px-3 py-1.5 [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{...a,"data-slot":"panel-toolbar",className:n}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Fae(e){const t=ye.c(11);let o,a,n;t[0]!==e?({className:o,mode:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const r=n===void 0?"canvas":n,i=r==="scroll"?"overflow-auto":"overflow-hidden";let c;t[4]!==o||t[5]!==i?(c=Je("flex min-h-0 min-w-0 flex-1 flex-col",i,o),t[4]=o,t[5]=i,t[6]=c):c=t[6];let d;return t[7]!==r||t[8]!==a||t[9]!==c?(d=y.jsx("div",{...a,"data-slot":"panel-content","data-mode":r,className:c}),t[7]=r,t[8]=a,t[9]=c,t[10]=d):d=t[10],d}const mn=Object.assign(Mae,{Topbar:Object.assign(Iae,{Left:Kc("left","shrink overflow-hidden"),Center:Kc("center","flex-1 justify-center"),Right:Kc("right","shrink justify-end")}),Toolbar:Object.assign(Bae,{Scope:Lae,Left:Kc("toolbar-left","shrink"),Center:Kc("toolbar-center","flex-1 justify-center"),Right:Kc("toolbar-right","ml-auto shrink-0 justify-end")}),Content:Fae});function mt(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}function jae(e,t){const o=A.createContext(t),a=r=>{const{children:i,...c}=r,d=A.useMemo(()=>c,Object.values(c));return y.jsx(o.Provider,{value:d,children:i})};a.displayName=e+"Provider";function n(r){const i=A.useContext(o);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}return[a,n]}function el(e,t=[]){let o=[];function a(r,i){const c=A.createContext(i),d=o.length;o=[...o,i];const u=h=>{const{scope:f,children:v,...b}=h,w=f?.[e]?.[d]||c,x=A.useMemo(()=>b,Object.values(b));return y.jsx(w.Provider,{value:x,children:v})};u.displayName=r+"Provider";function m(h,f){const v=f?.[e]?.[d]||c,b=A.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${r}\``)}return[u,m]}const n=()=>{const r=o.map(i=>A.createContext(i));return function(c){const d=c?.[e]||r;return A.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return n.scopeName=e,[a,zae(n,...t)]}function zae(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(r){const i=a.reduce((c,{useScope:d,scopeName:u})=>{const h=d(r)[`__scope${u}`];return{...c,...h}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}var Cr=globalThis?.document?A.useLayoutEffect:()=>{},qae=uk[" useInsertionEffect ".trim().toString()]||Cr;function vm({prop:e,defaultProp:t,onChange:o=()=>{},caller:a}){const[n,r,i]=Uae({defaultProp:t,onChange:o}),c=e!==void 0,d=c?e:n;{const m=A.useRef(e!==void 0);A.useEffect(()=>{const h=m.current;h!==c&&console.warn(`${a} is changing from ${h?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,a])}const u=A.useCallback(m=>{if(c){const h=$ae(m)?m(e):m;h!==e&&i.current?.(h)}else r(m)},[c,e,r,i]);return[d,u]}function Uae({defaultProp:e,onChange:t}){const[o,a]=A.useState(e),n=A.useRef(o),r=A.useRef(t);return qae(()=>{r.current=t},[t]),A.useEffect(()=>{n.current!==o&&(r.current?.(o),n.current=o)},[o,n]),[o,a,r]}function $ae(e){return typeof e=="function"}function Hp(e){const t=Vae(e),o=A.forwardRef((a,n)=>{const{children:r,...i}=a,c=A.Children.toArray(r),d=c.find(Gae);if(d){const u=d.props.children,m=c.map(h=>h===d?A.Children.count(u)>1?A.Children.only(null):A.isValidElement(u)?u.props.children:null:h);return y.jsx(t,{...i,ref:n,children:A.isValidElement(u)?A.cloneElement(u,void 0,m):null})}return y.jsx(t,{...i,ref:n,children:r})});return o.displayName=`${e}.Slot`,o}function Vae(e){const t=A.forwardRef((o,a)=>{const{children:n,...r}=o;if(A.isValidElement(n)){const i=Kae(n),c=Wae(r,n.props);return n.type!==A.Fragment&&(c.ref=a?fm(a,i):i),A.cloneElement(n,c)}return A.Children.count(n)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pF=Symbol("radix.slottable");function Hae(e){const t=({children:o})=>y.jsx(y.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=pF,t}function Gae(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pF}function Wae(e,t){const o={...t};for(const a in t){const n=e[a],r=t[a];/^on[A-Z]/.test(a)?n&&r?o[a]=(...c)=>{const d=r(...c);return n(...c),d}:n&&(o[a]=n):a==="style"?o[a]={...n,...r}:a==="className"&&(o[a]=[n,r].filter(Boolean).join(" "))}return{...e,...o}}function Kae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Yae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Do=Yae.reduce((e,t)=>{const o=Hp(`Primitive.${t}`),a=A.forwardRef((n,r)=>{const{asChild:i,...c}=n,d=i?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(d,{...c,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function mF(e,t){e&&lm.flushSync(()=>e.dispatchEvent(t))}function hF(e){const t=e+"CollectionProvider",[o,a]=el(t),[n,r]=o(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:x,children:T}=w,k=ee.useRef(null),C=ee.useRef(new Map).current;return y.jsx(n,{scope:x,itemMap:C,collectionRef:k,children:T})};i.displayName=t;const c=e+"CollectionSlot",d=Hp(c),u=ee.forwardRef((w,x)=>{const{scope:T,children:k}=w,C=r(c,T),E=$o(x,C.collectionRef);return y.jsx(d,{ref:E,children:k})});u.displayName=c;const m=e+"CollectionItemSlot",h="data-radix-collection-item",f=Hp(m),v=ee.forwardRef((w,x)=>{const{scope:T,children:k,...C}=w,E=ee.useRef(null),_=$o(x,E),D=r(m,T);return ee.useEffect(()=>(D.itemMap.set(E,{ref:E,...C}),()=>{D.itemMap.delete(E)})),y.jsx(f,{[h]:"",ref:_,children:k})});v.displayName=m;function b(w){const x=r(e+"CollectionConsumer",w);return ee.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const C=Array.from(k.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((D,R)=>C.indexOf(D.ref.current)-C.indexOf(R.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:v},b,a]}var Zae=A.createContext(void 0);function gF(e){const t=A.useContext(Zae);return e||t||"ltr"}function Pr(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...o)=>t.current?.(...o),[])}function Qae(e,t=globalThis?.document){const o=Pr(e);A.useEffect(()=>{const a=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[o,t])}var Jae="DismissableLayer",qx="dismissableLayer.update",Xae="dismissableLayer.pointerDownOutside",ene="dismissableLayer.focusOutside",OO,fF=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dE=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:r,onInteractOutside:i,onDismiss:c,...d}=e,u=A.useContext(fF),[m,h]=A.useState(null),f=m?.ownerDocument??globalThis?.document,[,v]=A.useState({}),b=$o(t,R=>h(R)),w=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(x),k=m?w.indexOf(m):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=k>=T,_=ane(R=>{const O=R.target,L=[...u.branches].some(U=>U.contains(O));!E||L||(n?.(R),i?.(R),R.defaultPrevented||c?.())},f),D=nne(R=>{const O=R.target;[...u.branches].some(U=>U.contains(O))||(r?.(R),i?.(R),R.defaultPrevented||c?.())},f);return Qae(R=>{k===u.layers.size-1&&(a?.(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},f),A.useEffect(()=>{if(m)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(OO=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),NO(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=OO)}},[m,f,o,u]),A.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),NO())},[m,u]),A.useEffect(()=>{const R=()=>v({});return document.addEventListener(qx,R),()=>document.removeEventListener(qx,R)},[]),y.jsx(Do.div,{...d,ref:b,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,D.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,_.onPointerDownCapture)})});dE.displayName=Jae;var tne="DismissableLayerBranch",one=A.forwardRef((e,t)=>{const o=A.useContext(fF),a=A.useRef(null),n=$o(t,a);return A.useEffect(()=>{const r=a.current;if(r)return o.branches.add(r),()=>{o.branches.delete(r)}},[o.branches]),y.jsx(Do.div,{...e,ref:n})});one.displayName=tne;function ane(e,t=globalThis?.document){const o=Pr(e),a=A.useRef(!1),n=A.useRef(()=>{});return A.useEffect(()=>{const r=c=>{if(c.target&&!a.current){let d=function(){vF(Xae,o,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=d,t.addEventListener("click",n.current,{once:!0})):d()}else t.removeEventListener("click",n.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",r),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>a.current=!0}}function nne(e,t=globalThis?.document){const o=Pr(e),a=A.useRef(!1);return A.useEffect(()=>{const n=r=>{r.target&&!a.current&&vF(ene,o,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,o]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function NO(){const e=new CustomEvent(qx);document.dispatchEvent(e)}function vF(e,t,o,{discrete:a}){const n=o.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&n.addEventListener(e,t,{once:!0}),a?mF(n,r):n.dispatchEvent(r)}var jS=0;function bF(){A.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??MO()),document.body.insertAdjacentElement("beforeend",e[1]??MO()),jS++,()=>{jS===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jS--}},[])}function MO(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var zS="focusScope.autoFocusOnMount",qS="focusScope.autoFocusOnUnmount",IO={bubbles:!1,cancelable:!0},rne="FocusScope",uE=A.forwardRef((e,t)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:r,...i}=e,[c,d]=A.useState(null),u=Pr(n),m=Pr(r),h=A.useRef(null),f=$o(t,w=>d(w)),v=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(a){let w=function(C){if(v.paused||!c)return;const E=C.target;c.contains(E)?h.current=E:_i(h.current,{select:!0})},x=function(C){if(v.paused||!c)return;const E=C.relatedTarget;E!==null&&(c.contains(E)||_i(h.current,{select:!0}))},T=function(C){if(document.activeElement===document.body)for(const _ of C)_.removedNodes.length>0&&_i(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",x);const k=new MutationObserver(T);return c&&k.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",x),k.disconnect()}}},[a,c,v.paused]),A.useEffect(()=>{if(c){BO.add(v);const w=document.activeElement;if(!c.contains(w)){const T=new CustomEvent(zS,IO);c.addEventListener(zS,u),c.dispatchEvent(T),T.defaultPrevented||(sne(une(yF(c)),{select:!0}),document.activeElement===w&&_i(c))}return()=>{c.removeEventListener(zS,u),setTimeout(()=>{const T=new CustomEvent(qS,IO);c.addEventListener(qS,m),c.dispatchEvent(T),T.defaultPrevented||_i(w??document.body,{select:!0}),c.removeEventListener(qS,m),BO.remove(v)},0)}}},[c,u,m,v]);const b=A.useCallback(w=>{if(!o&&!a||v.paused)return;const x=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(x&&T){const k=w.currentTarget,[C,E]=ine(k);C&&E?!w.shiftKey&&T===E?(w.preventDefault(),o&&_i(C,{select:!0})):w.shiftKey&&T===C&&(w.preventDefault(),o&&_i(E,{select:!0})):T===k&&w.preventDefault()}},[o,a,v.paused]);return y.jsx(Do.div,{tabIndex:-1,...i,ref:f,onKeyDown:b})});uE.displayName=rne;function sne(e,{select:t=!1}={}){const o=document.activeElement;for(const a of e)if(_i(a,{select:t}),document.activeElement!==o)return}function ine(e){const t=yF(e),o=LO(t,e),a=LO(t.reverse(),e);return[o,a]}function yF(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function LO(e,t){for(const o of e)if(!lne(o,{upTo:t}))return o}function lne(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cne(e){return e instanceof HTMLInputElement&&"select"in e}function _i(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&cne(e)&&t&&e.select()}}var BO=dne();function dne(){let e=[];return{add(t){const o=e[0];t!==o&&o?.pause(),e=FO(e,t),e.unshift(t)},remove(t){e=FO(e,t),e[0]?.resume()}}}function FO(e,t){const o=[...e],a=o.indexOf(t);return a!==-1&&o.splice(a,1),o}function une(e){return e.filter(t=>t.tagName!=="A")}var pne=uk[" useId ".trim().toString()]||(()=>{}),mne=0;function zi(e){const[t,o]=A.useState(pne());return Cr(()=>{o(a=>a??String(mne++))},[e]),t?`radix-${t}`:""}const wF=["top","right","bottom","left"],jO=["start","end"],zO=wF.reduce((e,t)=>e.concat(t,t+"-"+jO[0],t+"-"+jO[1]),[]),_r=Math.min,Fa=Math.max,rv=Math.round,Hg=Math.floor,Xr=e=>({x:e,y:e}),hne={left:"right",right:"left",bottom:"top",top:"bottom"};function Ux(e,t,o){return Fa(e,_r(t,o))}function Ar(e,t){return typeof e=="function"?e(t):e}function Fn(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function pE(e){return e==="x"?"y":"x"}function mE(e){return e==="y"?"height":"width"}function xr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function hE(e){return pE(xr(e))}function SF(e,t,o){o===void 0&&(o=!1);const a=kr(e),n=hE(e),r=mE(n);let i=n==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=iv(i)),[i,iv(i)]}function gne(e){const t=iv(e);return[sv(e),t,sv(t)]}function sv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const qO=["left","right"],UO=["right","left"],fne=["top","bottom"],vne=["bottom","top"];function bne(e,t,o){switch(e){case"top":case"bottom":return o?t?UO:qO:t?qO:UO;case"left":case"right":return t?fne:vne;default:return[]}}function yne(e,t,o,a){const n=kr(e);let r=bne(Fn(e),o==="start",a);return n&&(r=r.map(i=>i+"-"+n),t&&(r=r.concat(r.map(sv)))),r}function iv(e){const t=Fn(e);return hne[t]+e.slice(t.length)}function wne(e){return{top:0,right:0,bottom:0,left:0,...e}}function gE(e){return typeof e!="number"?wne(e):{top:e,right:e,bottom:e,left:e}}function zd(e){const{x:t,y:o,width:a,height:n}=e;return{width:a,height:n,top:o,left:t,right:t+a,bottom:o+n,x:t,y:o}}function $O(e,t,o){let{reference:a,floating:n}=e;const r=xr(t),i=hE(t),c=mE(i),d=Fn(t),u=r==="y",m=a.x+a.width/2-n.width/2,h=a.y+a.height/2-n.height/2,f=a[c]/2-n[c]/2;let v;switch(d){case"top":v={x:m,y:a.y-n.height};break;case"bottom":v={x:m,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:h};break;case"left":v={x:a.x-n.width,y:h};break;default:v={x:a.x,y:a.y}}switch(kr(t)){case"start":v[i]-=f*(o&&u?-1:1);break;case"end":v[i]+=f*(o&&u?-1:1);break}return v}async function Sne(e,t){var o;t===void 0&&(t={});const{x:a,y:n,platform:r,rects:i,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:f=!1,padding:v=0}=Ar(t,e),b=gE(v),x=c[f?h==="floating"?"reference":"floating":h],T=zd(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(x)))==null||o?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:d})),k=h==="floating"?{x:a,y:n,width:i.floating.width,height:i.floating.height}:i.reference,C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),E=await(r.isElement==null?void 0:r.isElement(C))?await(r.getScale==null?void 0:r.getScale(C))||{x:1,y:1}:{x:1,y:1},_=zd(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:C,strategy:d}):k);return{top:(T.top-_.top+b.top)/E.y,bottom:(_.bottom-T.bottom+b.bottom)/E.y,left:(T.left-_.left+b.left)/E.x,right:(_.right-T.right+b.right)/E.x}}const Tne=50,xne=async(e,t,o)=>{const{placement:a="bottom",strategy:n="absolute",middleware:r=[],platform:i}=o,c=i.detectOverflow?i:{...i,detectOverflow:Sne},d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:m,y:h}=$O(u,a,d),f=a,v=0;const b={};for(let w=0;w<r.length;w++){const x=r[w];if(!x)continue;const{name:T,fn:k}=x,{x:C,y:E,data:_,reset:D}=await k({x:m,y:h,initialPlacement:a,placement:f,strategy:n,middlewareData:b,rects:u,platform:c,elements:{reference:e,floating:t}});m=C??m,h=E??h,b[T]={...b[T],..._},D&&v<Tne&&(v++,typeof D=="object"&&(D.placement&&(f=D.placement),D.rects&&(u=D.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):D.rects),{x:m,y:h}=$O(u,f,d)),w=-1)}return{x:m,y:h,placement:f,strategy:n,middlewareData:b}},kne=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:a,placement:n,rects:r,platform:i,elements:c,middlewareData:d}=t,{element:u,padding:m=0}=Ar(e,t)||{};if(u==null)return{};const h=gE(m),f={x:o,y:a},v=hE(n),b=mE(v),w=await i.getDimensions(u),x=v==="y",T=x?"top":"left",k=x?"bottom":"right",C=x?"clientHeight":"clientWidth",E=r.reference[b]+r.reference[v]-f[v]-r.floating[b],_=f[v]-r.reference[v],D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let R=D?D[C]:0;(!R||!await(i.isElement==null?void 0:i.isElement(D)))&&(R=c.floating[C]||r.floating[b]);const O=E/2-_/2,L=R/2-w[b]/2-1,U=_r(h[T],L),B=_r(h[k],L),z=U,F=R-w[b]-B,W=R/2-w[b]/2+O,oe=Ux(z,W,F),H=!d.arrow&&kr(n)!=null&&W!==oe&&r.reference[b]/2-(W<z?U:B)-w[b]/2<0,K=H?W<z?W-z:W-F:0;return{[v]:f[v]+K,data:{[v]:oe,centerOffset:W-oe-K,...H&&{alignmentOffset:K}},reset:H}}});function Ene(e,t,o){return(e?[...o.filter(n=>kr(n)===e),...o.filter(n=>kr(n)!==e)]:o.filter(n=>Fn(n)===n)).filter(n=>e?kr(n)===e||(t?sv(n)!==n:!1):!0)}const Cne=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,a,n;const{rects:r,middlewareData:i,placement:c,platform:d,elements:u}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:f=zO,autoAlignment:v=!0,...b}=Ar(e,t),w=h!==void 0||f===zO?Ene(h||null,v,f):f,x=await d.detectOverflow(t,b),T=((o=i.autoPlacement)==null?void 0:o.index)||0,k=w[T];if(k==null)return{};const C=SF(k,r,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(c!==k)return{reset:{placement:w[0]}};const E=[x[Fn(k)],x[C[0]],x[C[1]]],_=[...((a=i.autoPlacement)==null?void 0:a.overflows)||[],{placement:k,overflows:E}],D=w[T+1];if(D)return{data:{index:T+1,overflows:_},reset:{placement:D}};const R=_.map(U=>{const B=kr(U.placement);return[U.placement,B&&m?U.overflows.slice(0,2).reduce((z,F)=>z+F,0):U.overflows[0],U.overflows]}).sort((U,B)=>U[1]-B[1]),L=((n=R.filter(U=>U[2].slice(0,kr(U[0])?2:3).every(B=>B<=0))[0])==null?void 0:n[0])||R[0][0];return L!==c?{data:{index:T+1,overflows:_},reset:{placement:L}}:{}}}},Pne=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,a;const{placement:n,middlewareData:r,rects:i,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...x}=Ar(e,t);if((o=r.arrow)!=null&&o.alignmentOffset)return{};const T=Fn(n),k=xr(c),C=Fn(c)===c,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),_=f||(C||!w?[iv(c)]:gne(c)),D=b!=="none";!f&&D&&_.push(...yne(c,w,b,E));const R=[c,..._],O=await d.detectOverflow(t,x),L=[];let U=((a=r.flip)==null?void 0:a.overflows)||[];if(m&&L.push(O[T]),h){const W=SF(n,i,E);L.push(O[W[0]],O[W[1]])}if(U=[...U,{placement:n,overflows:L}],!L.every(W=>W<=0)){var B,z;const W=(((B=r.flip)==null?void 0:B.index)||0)+1,oe=R[W];if(oe&&(!(h==="alignment"?k!==xr(oe):!1)||U.every(J=>xr(J.placement)===k?J.overflows[0]>0:!0)))return{data:{index:W,overflows:U},reset:{placement:oe}};let H=(z=U.filter(K=>K.overflows[0]<=0).sort((K,J)=>K.overflows[1]-J.overflows[1])[0])==null?void 0:z.placement;if(!H)switch(v){case"bestFit":{var F;const K=(F=U.filter(J=>{if(D){const se=xr(J.placement);return se===k||se==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(se=>se>0).reduce((se,Q)=>se+Q,0)]).sort((J,se)=>J[1]-se[1])[0])==null?void 0:F[0];K&&(H=K);break}case"initialPlacement":H=c;break}if(n!==H)return{reset:{placement:H}}}return{}}}};function VO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HO(e){return wF.some(t=>e[t]>=0)}const _ne=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o,platform:a}=t,{strategy:n="referenceHidden",...r}=Ar(e,t);switch(n){case"referenceHidden":{const i=await a.detectOverflow(t,{...r,elementContext:"reference"}),c=VO(i,o.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:HO(c)}}}case"escaped":{const i=await a.detectOverflow(t,{...r,altBoundary:!0}),c=VO(i,o.floating);return{data:{escapedOffsets:c,escaped:HO(c)}}}default:return{}}}}};function TF(e){const t=_r(...e.map(r=>r.left)),o=_r(...e.map(r=>r.top)),a=Fa(...e.map(r=>r.right)),n=Fa(...e.map(r=>r.bottom));return{x:t,y:o,width:a-t,height:n-o}}function Ane(e){const t=e.slice().sort((n,r)=>n.y-r.y),o=[];let a=null;for(let n=0;n<t.length;n++){const r=t[n];!a||r.y-a.y>a.height/2?o.push([r]):o[o.length-1].push(r),a=r}return o.map(n=>zd(TF(n)))}const Rne=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:o,elements:a,rects:n,platform:r,strategy:i}=t,{padding:c=2,x:d,y:u}=Ar(e,t),m=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(a.reference))||[]),h=Ane(m),f=zd(TF(m)),v=gE(c);function b(){if(h.length===2&&h[0].left>h[1].right&&d!=null&&u!=null)return h.find(x=>d>x.left-v.left&&d<x.right+v.right&&u>x.top-v.top&&u<x.bottom+v.bottom)||f;if(h.length>=2){if(xr(o)==="y"){const U=h[0],B=h[h.length-1],z=Fn(o)==="top",F=U.top,W=B.bottom,oe=z?U.left:B.left,H=z?U.right:B.right,K=H-oe,J=W-F;return{top:F,bottom:W,left:oe,right:H,width:K,height:J,x:oe,y:F}}const x=Fn(o)==="left",T=Fa(...h.map(U=>U.right)),k=_r(...h.map(U=>U.left)),C=h.filter(U=>x?U.left===k:U.right===T),E=C[0].top,_=C[C.length-1].bottom,D=k,R=T,O=R-D,L=_-E;return{top:E,bottom:_,left:D,right:R,width:O,height:L,x:D,y:E}}return f}const w=await r.getElementRects({reference:{getBoundingClientRect:b},floating:a.floating,strategy:i});return n.reference.x!==w.reference.x||n.reference.y!==w.reference.y||n.reference.width!==w.reference.width||n.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},xF=new Set(["left","top"]);async function Dne(e,t){const{placement:o,platform:a,elements:n}=e,r=await(a.isRTL==null?void 0:a.isRTL(n.floating)),i=Fn(o),c=kr(o),d=xr(o)==="y",u=xF.has(i)?-1:1,m=r&&d?-1:1,h=Ar(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof b=="number"&&(v=c==="end"?b*-1:b),d?{x:v*m,y:f*u}:{x:f*u,y:v*m}}const One=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,a;const{x:n,y:r,placement:i,middlewareData:c}=t,d=await Dne(t,e);return i===((o=c.offset)==null?void 0:o.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:n+d.x,y:r+d.y,data:{...d,placement:i}}}}},Nne=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:a,placement:n,platform:r}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:T=>{let{x:k,y:C}=T;return{x:k,y:C}}},...u}=Ar(e,t),m={x:o,y:a},h=await r.detectOverflow(t,u),f=xr(Fn(n)),v=pE(f);let b=m[v],w=m[f];if(i){const T=v==="y"?"top":"left",k=v==="y"?"bottom":"right",C=b+h[T],E=b-h[k];b=Ux(C,b,E)}if(c){const T=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=w+h[T],E=w-h[k];w=Ux(C,w,E)}const x=d.fn({...t,[v]:b,[f]:w});return{...x,data:{x:x.x-o,y:x.y-a,enabled:{[v]:i,[f]:c}}}}}},Mne=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:a,placement:n,rects:r,middlewareData:i}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Ar(e,t),m={x:o,y:a},h=xr(n),f=pE(h);let v=m[f],b=m[h];const w=Ar(c,t),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(d){const C=f==="y"?"height":"width",E=r.reference[f]-r.floating[C]+x.mainAxis,_=r.reference[f]+r.reference[C]-x.mainAxis;v<E?v=E:v>_&&(v=_)}if(u){var T,k;const C=f==="y"?"width":"height",E=xF.has(Fn(n)),_=r.reference[h]-r.floating[C]+(E&&((T=i.offset)==null?void 0:T[h])||0)+(E?0:x.crossAxis),D=r.reference[h]+r.reference[C]+(E?0:((k=i.offset)==null?void 0:k[h])||0)-(E?x.crossAxis:0);b<_?b=_:b>D&&(b=D)}return{[f]:v,[h]:b}}}},Ine=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,a;const{placement:n,rects:r,platform:i,elements:c}=t,{apply:d=()=>{},...u}=Ar(e,t),m=await i.detectOverflow(t,u),h=Fn(n),f=kr(n),v=xr(n)==="y",{width:b,height:w}=r.floating;let x,T;h==="top"||h==="bottom"?(x=h,T=f===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(T=h,x=f==="end"?"top":"bottom");const k=w-m.top-m.bottom,C=b-m.left-m.right,E=_r(w-m[x],k),_=_r(b-m[T],C),D=!t.middlewareData.shift;let R=E,O=_;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(O=C),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(R=k),D&&!f){const U=Fa(m.left,0),B=Fa(m.right,0),z=Fa(m.top,0),F=Fa(m.bottom,0);v?O=b-2*(U!==0||B!==0?U+B:Fa(m.left,m.right)):R=w-2*(z!==0||F!==0?z+F:Fa(m.top,m.bottom))}await d({...t,availableWidth:O,availableHeight:R});const L=await i.getDimensions(c.floating);return b!==L.width||w!==L.height?{reset:{rects:!0}}:{}}}};function ub(){return typeof window<"u"}function eu(e){return kF(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ts(e){var t;return(t=(kF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kF(e){return ub()?e instanceof Node||e instanceof Ln(e).Node:!1}function Rr(e){return ub()?e instanceof Element||e instanceof Ln(e).Element:!1}function zs(e){return ub()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function GO(e){return!ub()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}function bm(e){const{overflow:t,overflowX:o,overflowY:a,display:n}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+o)&&n!=="inline"&&n!=="contents"}function Lne(e){return/^(table|td|th)$/.test(eu(e))}function pb(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Bne=/transform|translate|scale|rotate|perspective|filter/,Fne=/paint|layout|strict|content/,kl=e=>!!e&&e!=="none";let US;function fE(e){const t=Rr(e)?Dr(e):e;return kl(t.transform)||kl(t.translate)||kl(t.scale)||kl(t.rotate)||kl(t.perspective)||!vE()&&(kl(t.backdropFilter)||kl(t.filter))||Bne.test(t.willChange||"")||Fne.test(t.contain||"")}function jne(e){let t=Hi(e);for(;zs(t)&&!qd(t);){if(fE(t))return t;if(pb(t))return null;t=Hi(t)}return null}function vE(){return US==null&&(US=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),US}function qd(e){return/^(html|body|#document)$/.test(eu(e))}function Dr(e){return Ln(e).getComputedStyle(e)}function mb(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hi(e){if(eu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||GO(e)&&e.host||ts(e);return GO(t)?t.host:t}function EF(e){const t=Hi(e);return qd(t)?e.ownerDocument?e.ownerDocument.body:e.body:zs(t)&&bm(t)?t:EF(t)}function Gp(e,t,o){var a;t===void 0&&(t=[]),o===void 0&&(o=!0);const n=EF(e),r=n===((a=e.ownerDocument)==null?void 0:a.body),i=Ln(n);if(r){const c=$x(i);return t.concat(i,i.visualViewport||[],bm(n)?n:[],c&&o?Gp(c):[])}else return t.concat(n,Gp(n,[],o))}function $x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CF(e){const t=Dr(e);let o=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=zs(e),r=n?e.offsetWidth:o,i=n?e.offsetHeight:a,c=rv(o)!==r||rv(a)!==i;return c&&(o=r,a=i),{width:o,height:a,$:c}}function bE(e){return Rr(e)?e:e.contextElement}function kd(e){const t=bE(e);if(!zs(t))return Xr(1);const o=t.getBoundingClientRect(),{width:a,height:n,$:r}=CF(t);let i=(r?rv(o.width):o.width)/a,c=(r?rv(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const zne=Xr(0);function PF(e){const t=Ln(e);return!vE()||!t.visualViewport?zne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qne(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Ln(e)?!1:t}function $l(e,t,o,a){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=e.getBoundingClientRect(),r=bE(e);let i=Xr(1);t&&(a?Rr(a)&&(i=kd(a)):i=kd(e));const c=qne(r,o,a)?PF(r):Xr(0);let d=(n.left+c.x)/i.x,u=(n.top+c.y)/i.y,m=n.width/i.x,h=n.height/i.y;if(r){const f=Ln(r),v=a&&Rr(a)?Ln(a):a;let b=f,w=$x(b);for(;w&&a&&v!==b;){const x=kd(w),T=w.getBoundingClientRect(),k=Dr(w),C=T.left+(w.clientLeft+parseFloat(k.paddingLeft))*x.x,E=T.top+(w.clientTop+parseFloat(k.paddingTop))*x.y;d*=x.x,u*=x.y,m*=x.x,h*=x.y,d+=C,u+=E,b=Ln(w),w=$x(b)}}return zd({width:m,height:h,x:d,y:u})}function hb(e,t){const o=mb(e).scrollLeft;return t?t.left+o:$l(ts(e)).left+o}function _F(e,t){const o=e.getBoundingClientRect(),a=o.left+t.scrollLeft-hb(e,o),n=o.top+t.scrollTop;return{x:a,y:n}}function Une(e){let{elements:t,rect:o,offsetParent:a,strategy:n}=e;const r=n==="fixed",i=ts(a),c=t?pb(t.floating):!1;if(a===i||c&&r)return o;let d={scrollLeft:0,scrollTop:0},u=Xr(1);const m=Xr(0),h=zs(a);if((h||!h&&!r)&&((eu(a)!=="body"||bm(i))&&(d=mb(a)),h)){const v=$l(a);u=kd(a),m.x=v.x+a.clientLeft,m.y=v.y+a.clientTop}const f=i&&!h&&!r?_F(i,d):Xr(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-d.scrollLeft*u.x+m.x+f.x,y:o.y*u.y-d.scrollTop*u.y+m.y+f.y}}function $ne(e){return Array.from(e.getClientRects())}function Vne(e){const t=ts(e),o=mb(e),a=e.ownerDocument.body,n=Fa(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=Fa(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-o.scrollLeft+hb(e);const c=-o.scrollTop;return Dr(a).direction==="rtl"&&(i+=Fa(t.clientWidth,a.clientWidth)-n),{width:n,height:r,x:i,y:c}}const WO=25;function Hne(e,t){const o=Ln(e),a=ts(e),n=o.visualViewport;let r=a.clientWidth,i=a.clientHeight,c=0,d=0;if(n){r=n.width,i=n.height;const m=vE();(!m||m&&t==="fixed")&&(c=n.offsetLeft,d=n.offsetTop)}const u=hb(a);if(u<=0){const m=a.ownerDocument,h=m.body,f=getComputedStyle(h),v=m.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(a.clientWidth-h.clientWidth-v);b<=WO&&(r-=b)}else u<=WO&&(r+=u);return{width:r,height:i,x:c,y:d}}function Gne(e,t){const o=$l(e,!0,t==="fixed"),a=o.top+e.clientTop,n=o.left+e.clientLeft,r=zs(e)?kd(e):Xr(1),i=e.clientWidth*r.x,c=e.clientHeight*r.y,d=n*r.x,u=a*r.y;return{width:i,height:c,x:d,y:u}}function KO(e,t,o){let a;if(t==="viewport")a=Hne(e,o);else if(t==="document")a=Vne(ts(e));else if(Rr(t))a=Gne(t,o);else{const n=PF(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return zd(a)}function AF(e,t){const o=Hi(e);return o===t||!Rr(o)||qd(o)?!1:Dr(o).position==="fixed"||AF(o,t)}function Wne(e,t){const o=t.get(e);if(o)return o;let a=Gp(e,[],!1).filter(c=>Rr(c)&&eu(c)!=="body"),n=null;const r=Dr(e).position==="fixed";let i=r?Hi(e):e;for(;Rr(i)&&!qd(i);){const c=Dr(i),d=fE(i);!d&&c.position==="fixed"&&(n=null),(r?!d&&!n:!d&&c.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||bm(i)&&!d&&AF(e,i))?a=a.filter(m=>m!==i):n=c,i=Hi(i)}return t.set(e,a),a}function Kne(e){let{element:t,boundary:o,rootBoundary:a,strategy:n}=e;const i=[...o==="clippingAncestors"?pb(t)?[]:Wne(t,this._c):[].concat(o),a],c=KO(t,i[0],n);let d=c.top,u=c.right,m=c.bottom,h=c.left;for(let f=1;f<i.length;f++){const v=KO(t,i[f],n);d=Fa(v.top,d),u=_r(v.right,u),m=_r(v.bottom,m),h=Fa(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function Yne(e){const{width:t,height:o}=CF(e);return{width:t,height:o}}function Zne(e,t,o){const a=zs(t),n=ts(t),r=o==="fixed",i=$l(e,!0,r,t);let c={scrollLeft:0,scrollTop:0};const d=Xr(0);function u(){d.x=hb(n)}if(a||!a&&!r)if((eu(t)!=="body"||bm(n))&&(c=mb(t)),a){const v=$l(t,!0,r,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else n&&u();r&&!a&&n&&u();const m=n&&!a&&!r?_F(n,c):Xr(0),h=i.left+c.scrollLeft-d.x-m.x,f=i.top+c.scrollTop-d.y-m.y;return{x:h,y:f,width:i.width,height:i.height}}function $S(e){return Dr(e).position==="static"}function YO(e,t){if(!zs(e)||Dr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ts(e)===o&&(o=o.ownerDocument.body),o}function RF(e,t){const o=Ln(e);if(pb(e))return o;if(!zs(e)){let n=Hi(e);for(;n&&!qd(n);){if(Rr(n)&&!$S(n))return n;n=Hi(n)}return o}let a=YO(e,t);for(;a&&Lne(a)&&$S(a);)a=YO(a,t);return a&&qd(a)&&$S(a)&&!fE(a)?o:a||jne(e)||o}const Qne=async function(e){const t=this.getOffsetParent||RF,o=this.getDimensions,a=await o(e.floating);return{reference:Zne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Jne(e){return Dr(e).direction==="rtl"}const Xne={convertOffsetParentRelativeRectToViewportRelativeRect:Une,getDocumentElement:ts,getClippingRect:Kne,getOffsetParent:RF,getElementRects:Qne,getClientRects:$ne,getDimensions:Yne,getScale:kd,isElement:Rr,isRTL:Jne};function DF(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ere(e,t){let o=null,a;const n=ts(e);function r(){var c;clearTimeout(a),(c=o)==null||c.disconnect(),o=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),r();const u=e.getBoundingClientRect(),{left:m,top:h,width:f,height:v}=u;if(c||t(),!f||!v)return;const b=Hg(h),w=Hg(n.clientWidth-(m+f)),x=Hg(n.clientHeight-(h+v)),T=Hg(m),C={rootMargin:-b+"px "+-w+"px "+-x+"px "+-T+"px",threshold:Fa(0,_r(1,d))||1};let E=!0;function _(D){const R=D[0].intersectionRatio;if(R!==d){if(!E)return i();R?i(!1,R):a=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!DF(u,e.getBoundingClientRect())&&i(),E=!1}try{o=new IntersectionObserver(_,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(_,C)}o.observe(e)}return i(!0),r}function tre(e,t,o,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=a,u=bE(e),m=n||r?[...u?Gp(u):[],...t?Gp(t):[]]:[];m.forEach(T=>{n&&T.addEventListener("scroll",o,{passive:!0}),r&&T.addEventListener("resize",o)});const h=u&&c?ere(u,o):null;let f=-1,v=null;i&&(v=new ResizeObserver(T=>{let[k]=T;k&&k.target===u&&v&&t&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),o()}),u&&!d&&v.observe(u),t&&v.observe(t));let b,w=d?$l(e):null;d&&x();function x(){const T=$l(e);w&&!DF(w,T)&&o(),w=T,b=requestAnimationFrame(x)}return o(),()=>{var T;m.forEach(k=>{n&&k.removeEventListener("scroll",o),r&&k.removeEventListener("resize",o)}),h?.(),(T=v)==null||T.disconnect(),v=null,d&&cancelAnimationFrame(b)}}const ore=One,Zxe=Cne,are=Nne,nre=Pne,rre=Ine,sre=_ne,ZO=kne,Qxe=Rne,ire=Mne,lre=(e,t,o)=>{const a=new Map,n={platform:Xne,...o},r={...n.platform,_c:a};return xne(e,t,{...n,platform:r})};var cre=typeof document<"u",dre=function(){},Tf=cre?A.useLayoutEffect:dre;function lv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,a,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(a=o;a--!==0;)if(!lv(e[a],t[a]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!{}.hasOwnProperty.call(t,n[a]))return!1;for(a=o;a--!==0;){const r=n[a];if(!(r==="_owner"&&e.$$typeof)&&!lv(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function OF(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function QO(e,t){const o=OF(e);return Math.round(t*o)/o}function VS(e){const t=A.useRef(e);return Tf(()=>{t.current=e}),t}function ure(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:n,elements:{reference:r,floating:i}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[m,h]=A.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=A.useState(a);lv(f,a)||v(a);const[b,w]=A.useState(null),[x,T]=A.useState(null),k=A.useCallback(J=>{J!==D.current&&(D.current=J,w(J))},[]),C=A.useCallback(J=>{J!==R.current&&(R.current=J,T(J))},[]),E=r||b,_=i||x,D=A.useRef(null),R=A.useRef(null),O=A.useRef(m),L=d!=null,U=VS(d),B=VS(n),z=VS(u),F=A.useCallback(()=>{if(!D.current||!R.current)return;const J={placement:t,strategy:o,middleware:f};B.current&&(J.platform=B.current),lre(D.current,R.current,J).then(se=>{const Q={...se,isPositioned:z.current!==!1};W.current&&!lv(O.current,Q)&&(O.current=Q,lm.flushSync(()=>{h(Q)}))})},[f,t,o,B,z]);Tf(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,h(J=>({...J,isPositioned:!1})))},[u]);const W=A.useRef(!1);Tf(()=>(W.current=!0,()=>{W.current=!1}),[]),Tf(()=>{if(E&&(D.current=E),_&&(R.current=_),E&&_){if(U.current)return U.current(E,_,F);F()}},[E,_,F,U,L]);const oe=A.useMemo(()=>({reference:D,floating:R,setReference:k,setFloating:C}),[k,C]),H=A.useMemo(()=>({reference:E,floating:_}),[E,_]),K=A.useMemo(()=>{const J={position:o,left:0,top:0};if(!H.floating)return J;const se=QO(H.floating,m.x),Q=QO(H.floating,m.y);return c?{...J,transform:"translate("+se+"px, "+Q+"px)",...OF(H.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:se,top:Q}},[o,c,H.floating,m.x,m.y]);return A.useMemo(()=>({...m,update:F,refs:oe,elements:H,floatingStyles:K}),[m,F,oe,H,K])}const pre=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:a,padding:n}=typeof e=="function"?e(o):e;return a&&t(a)?a.current!=null?ZO({element:a.current,padding:n}).fn(o):{}:a?ZO({element:a,padding:n}).fn(o):{}}}},mre=(e,t)=>{const o=ore(e);return{name:o.name,fn:o.fn,options:[e,t]}},hre=(e,t)=>{const o=are(e);return{name:o.name,fn:o.fn,options:[e,t]}},gre=(e,t)=>({fn:ire(e).fn,options:[e,t]}),fre=(e,t)=>{const o=nre(e);return{name:o.name,fn:o.fn,options:[e,t]}},vre=(e,t)=>{const o=rre(e);return{name:o.name,fn:o.fn,options:[e,t]}},bre=(e,t)=>{const o=sre(e);return{name:o.name,fn:o.fn,options:[e,t]}},yre=(e,t)=>{const o=pre(e);return{name:o.name,fn:o.fn,options:[e,t]}};var wre="Arrow",NF=A.forwardRef((e,t)=>{const{children:o,width:a=10,height:n=5,...r}=e;return y.jsx(Do.svg,{...r,ref:t,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});NF.displayName=wre;var Sre=NF;function MF(e){const[t,o]=A.useState(void 0);return Cr(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const r=n[0];let i,c;if("borderBoxSize"in r){const d=r.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,c=u.blockSize}else i=e.offsetWidth,c=e.offsetHeight;o({width:i,height:c})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else o(void 0)},[e]),t}var yE="Popper",[IF,LF]=el(yE),[Tre,BF]=IF(yE),FF=e=>{const{__scopePopper:t,children:o}=e,[a,n]=A.useState(null);return y.jsx(Tre,{scope:t,anchor:a,onAnchorChange:n,children:o})};FF.displayName=yE;var jF="PopperAnchor",zF=A.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:a,...n}=e,r=BF(jF,o),i=A.useRef(null),c=$o(t,i),d=A.useRef(null);return A.useEffect(()=>{const u=d.current;d.current=a?.current||i.current,u!==d.current&&r.onAnchorChange(d.current)}),a?null:y.jsx(Do.div,{...n,ref:c})});zF.displayName=jF;var wE="PopperContent",[xre,kre]=IF(wE),qF=A.forwardRef((e,t)=>{const{__scopePopper:o,side:a="bottom",sideOffset:n=0,align:r="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:b,...w}=e,x=BF(wE,o),[T,k]=A.useState(null),C=$o(t,de=>k(de)),[E,_]=A.useState(null),D=MF(E),R=D?.width??0,O=D?.height??0,L=a+(r!=="center"?"-"+r:""),U=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(u)?u:[u],z=B.length>0,F={padding:U,boundary:B.filter(Cre),altBoundary:z},{refs:W,floatingStyles:oe,placement:H,isPositioned:K,middlewareData:J}=ure({strategy:"fixed",placement:L,whileElementsMounted:(...de)=>tre(...de,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[mre({mainAxis:n+O,alignmentAxis:i}),d&&hre({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?gre():void 0,...F}),d&&fre({...F}),vre({...F,apply:({elements:de,rects:ue,availableWidth:Ee,availableHeight:qe})=>{const{width:Z,height:ne}=ue.reference,ve=de.floating.style;ve.setProperty("--radix-popper-available-width",`${Ee}px`),ve.setProperty("--radix-popper-available-height",`${qe}px`),ve.setProperty("--radix-popper-anchor-width",`${Z}px`),ve.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),E&&yre({element:E,padding:c}),Pre({arrowWidth:R,arrowHeight:O}),f&&bre({strategy:"referenceHidden",...F})]}),[se,Q]=VF(H),M=Pr(b);Cr(()=>{K&&M?.()},[K,M]);const G=J.arrow?.x,V=J.arrow?.y,I=J.arrow?.centerOffset!==0,[j,X]=A.useState();return Cr(()=>{T&&X(window.getComputedStyle(T).zIndex)},[T]),y.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:K?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[J.transformOrigin?.x,J.transformOrigin?.y].join(" "),...J.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(xre,{scope:o,placedSide:se,onArrowChange:_,arrowX:G,arrowY:V,shouldHideArrow:I,children:y.jsx(Do.div,{"data-side":se,"data-align":Q,...w,ref:C,style:{...w.style,animation:K?void 0:"none"}})})})});qF.displayName=wE;var UF="PopperArrow",Ere={top:"bottom",right:"left",bottom:"top",left:"right"},$F=A.forwardRef(function(t,o){const{__scopePopper:a,...n}=t,r=kre(UF,a),i=Ere[r.placedSide];return y.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:y.jsx(Sre,{...n,ref:o,style:{...n.style,display:"block"}})})});$F.displayName=UF;function Cre(e){return e!==null}var Pre=e=>({name:"transformOrigin",options:e,fn(t){const{placement:o,rects:a,middlewareData:n}=t,i=n.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,m]=VF(o),h={start:"0%",center:"50%",end:"100%"}[m],f=(n.arrow?.x??0)+c/2,v=(n.arrow?.y??0)+d/2;let b="",w="";return u==="bottom"?(b=i?h:`${f}px`,w=`${-d}px`):u==="top"?(b=i?h:`${f}px`,w=`${a.floating.height+d}px`):u==="right"?(b=`${-d}px`,w=i?h:`${v}px`):u==="left"&&(b=`${a.floating.width+d}px`,w=i?h:`${v}px`),{data:{x:b,y:w}}}});function VF(e){const[t,o="center"]=e.split("-");return[t,o]}var HF=FF,_re=zF,Are=qF,Rre=$F,Dre="Portal",SE=A.forwardRef((e,t)=>{const{container:o,...a}=e,[n,r]=A.useState(!1);Cr(()=>r(!0),[]);const i=o||n&&globalThis?.document?.body;return i?QM.createPortal(y.jsx(Do.div,{...a,ref:t}),i):null});SE.displayName=Dre;function Ore(e,t){return A.useReducer((o,a)=>t[o][a]??o,e)}var qs=e=>{const{present:t,children:o}=e,a=Nre(t),n=typeof o=="function"?o({present:a.isPresent}):A.Children.only(o),r=$o(a.ref,Mre(n));return typeof o=="function"||a.isPresent?A.cloneElement(n,{ref:r}):null};qs.displayName="Presence";function Nre(e){const[t,o]=A.useState(),a=A.useRef(null),n=A.useRef(e),r=A.useRef("none"),i=e?"mounted":"unmounted",[c,d]=Ore(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const u=Gg(a.current);r.current=c==="mounted"?u:"none"},[c]),Cr(()=>{const u=a.current,m=n.current;if(m!==e){const f=r.current,v=Gg(u);e?d("MOUNT"):v==="none"||u?.display==="none"?d("UNMOUNT"):d(m&&f!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,d]),Cr(()=>{if(t){let u;const m=t.ownerDocument.defaultView??window,h=v=>{const w=Gg(a.current).includes(CSS.escape(v.animationName));if(v.target===t&&w&&(d("ANIMATION_END"),!n.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=v=>{v.target===t&&(r.current=Gg(a.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:A.useCallback(u=>{a.current=u?getComputedStyle(u):null,o(u)},[])}}function Gg(e){return e?.animationName||"none"}function Mre(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var HS="rovingFocusGroup.onEntryFocus",Ire={bubbles:!1,cancelable:!0},ym="RovingFocusGroup",[Vx,GF,Lre]=hF(ym),[Bre,WF]=el(ym,[Lre]),[Fre,jre]=Bre(ym),KF=A.forwardRef((e,t)=>y.jsx(Vx.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Vx.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(zre,{...e,ref:t})})}));KF.displayName=ym;var zre=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,orientation:a,loop:n=!1,dir:r,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...h}=e,f=A.useRef(null),v=$o(t,f),b=gF(r),[w,x]=vm({prop:i,defaultProp:c??null,onChange:d,caller:ym}),[T,k]=A.useState(!1),C=Pr(u),E=GF(o),_=A.useRef(!1),[D,R]=A.useState(0);return A.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(HS,C),()=>O.removeEventListener(HS,C)},[C]),y.jsx(Fre,{scope:o,orientation:a,dir:b,loop:n,currentTabStopId:w,onItemFocus:A.useCallback(O=>x(O),[x]),onItemShiftTab:A.useCallback(()=>k(!0),[]),onFocusableItemAdd:A.useCallback(()=>R(O=>O+1),[]),onFocusableItemRemove:A.useCallback(()=>R(O=>O-1),[]),children:y.jsx(Do.div,{tabIndex:T||D===0?-1:0,"data-orientation":a,...h,ref:v,style:{outline:"none",...e.style},onMouseDown:mt(e.onMouseDown,()=>{_.current=!0}),onFocus:mt(e.onFocus,O=>{const L=!_.current;if(O.target===O.currentTarget&&L&&!T){const U=new CustomEvent(HS,Ire);if(O.currentTarget.dispatchEvent(U),!U.defaultPrevented){const B=E().filter(H=>H.focusable),z=B.find(H=>H.active),F=B.find(H=>H.id===w),oe=[z,F,...B].filter(Boolean).map(H=>H.ref.current);QF(oe,m)}}_.current=!1}),onBlur:mt(e.onBlur,()=>k(!1))})})}),YF="RovingFocusGroupItem",ZF=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,focusable:a=!0,active:n=!1,tabStopId:r,children:i,...c}=e,d=zi(),u=r||d,m=jre(YF,o),h=m.currentTabStopId===u,f=GF(o),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:w}=m;return A.useEffect(()=>{if(a)return v(),()=>b()},[a,v,b]),y.jsx(Vx.ItemSlot,{scope:o,id:u,focusable:a,active:n,children:y.jsx(Do.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:mt(e.onMouseDown,x=>{a?m.onItemFocus(u):x.preventDefault()}),onFocus:mt(e.onFocus,()=>m.onItemFocus(u)),onKeyDown:mt(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){m.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const T=$re(x,m.orientation,m.dir);if(T!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=f().filter(E=>E.focusable).map(E=>E.ref.current);if(T==="last")C.reverse();else if(T==="prev"||T==="next"){T==="prev"&&C.reverse();const E=C.indexOf(x.currentTarget);C=m.loop?Vre(C,E+1):C.slice(E+1)}setTimeout(()=>QF(C))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:w!=null}):i})})});ZF.displayName=YF;var qre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ure(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $re(e,t,o){const a=Ure(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return qre[a]}function QF(e,t=!1){const o=document.activeElement;for(const a of e)if(a===o||(a.focus({preventScroll:t}),document.activeElement!==o))return}function Vre(e,t){return e.map((o,a)=>e[(t+a)%e.length])}var Hre=KF,Gre=ZF,Wre=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yc=new WeakMap,Wg=new WeakMap,Kg={},GS=0,JF=function(e){return e&&(e.host||JF(e.parentNode))},Kre=function(e,t){return t.map(function(o){if(e.contains(o))return o;var a=JF(o);return a&&e.contains(a)?a:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},Yre=function(e,t,o,a){var n=Kre(t,Array.isArray(e)?e:[e]);Kg[o]||(Kg[o]=new WeakMap);var r=Kg[o],i=[],c=new Set,d=new Set(n),u=function(h){!h||c.has(h)||(c.add(h),u(h.parentNode))};n.forEach(u);var m=function(h){!h||d.has(h)||Array.prototype.forEach.call(h.children,function(f){if(c.has(f))m(f);else try{var v=f.getAttribute(a),b=v!==null&&v!=="false",w=(Yc.get(f)||0)+1,x=(r.get(f)||0)+1;Yc.set(f,w),r.set(f,x),i.push(f),w===1&&b&&Wg.set(f,!0),x===1&&f.setAttribute(o,"true"),b||f.setAttribute(a,"true")}catch(T){console.error("aria-hidden: cannot operate on ",f,T)}})};return m(t),c.clear(),GS++,function(){i.forEach(function(h){var f=Yc.get(h)-1,v=r.get(h)-1;Yc.set(h,f),r.set(h,v),f||(Wg.has(h)||h.removeAttribute(a),Wg.delete(h)),v||h.removeAttribute(o)}),GS--,GS||(Yc=new WeakMap,Yc=new WeakMap,Wg=new WeakMap,Kg={})}},XF=function(e,t,o){o===void 0&&(o="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),n=Wre(e);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),Yre(a,n,o,"aria-hidden")):function(){return null}},Yr=function(){return Yr=Object.assign||function(t){for(var o,a=1,n=arguments.length;a<n;a++){o=arguments[a];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},Yr.apply(this,arguments)};function ej(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o}function Zre(e,t,o){if(o||arguments.length===2)for(var a=0,n=t.length,r;a<n;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var xf="right-scroll-bar-position",kf="width-before-scroll-bar",Qre="with-scroll-bars-hidden",Jre="--removed-body-scroll-bar-size";function WS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xre(e,t){var o=A.useState(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(a){var n=o.value;n!==a&&(o.value=a,o.callback(a,n))}}}})[0];return o.callback=t,o.facade}var ese=typeof window<"u"?A.useLayoutEffect:A.useEffect,JO=new WeakMap;function tse(e,t){var o=Xre(null,function(a){return e.forEach(function(n){return WS(n,a)})});return ese(function(){var a=JO.get(o);if(a){var n=new Set(a),r=new Set(e),i=o.current;n.forEach(function(c){r.has(c)||WS(c,null)}),r.forEach(function(c){n.has(c)||WS(c,i)})}JO.set(o,e)},[e]),o}function ose(e){return e}function ase(e,t){t===void 0&&(t=ose);var o=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(r){var i=t(r,a);return o.push(i),function(){o=o.filter(function(c){return c!==i})}},assignSyncMedium:function(r){for(a=!0;o.length;){var i=o;o=[],i.forEach(r)}o={push:function(c){return r(c)},filter:function(){return o}}},assignMedium:function(r){a=!0;var i=[];if(o.length){var c=o;o=[],c.forEach(r),i=o}var d=function(){var m=i;i=[],m.forEach(r)},u=function(){return Promise.resolve().then(d)};u(),o={push:function(m){i.push(m),u()},filter:function(m){return i=i.filter(m),o}}}};return n}function nse(e){e===void 0&&(e={});var t=ase(null);return t.options=Yr({async:!0,ssr:!1},e),t}var tj=function(e){var t=e.sideCar,o=ej(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return A.createElement(a,Yr({},o))};tj.isSideCarExport=!0;function rse(e,t){return e.useMedium(t),tj}var oj=nse(),KS=function(){},gb=A.forwardRef(function(e,t){var o=A.useRef(null),a=A.useState({onScrollCapture:KS,onWheelCapture:KS,onTouchMoveCapture:KS}),n=a[0],r=a[1],i=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,m=e.enabled,h=e.shards,f=e.sideCar,v=e.noRelative,b=e.noIsolation,w=e.inert,x=e.allowPinchZoom,T=e.as,k=T===void 0?"div":T,C=e.gapMode,E=ej(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,D=tse([o,t]),R=Yr(Yr({},E),n);return A.createElement(A.Fragment,null,m&&A.createElement(_,{sideCar:oj,removeScrollBar:u,shards:h,noRelative:v,noIsolation:b,inert:w,setCallbacks:r,allowPinchZoom:!!x,lockRef:o,gapMode:C}),i?A.cloneElement(A.Children.only(c),Yr(Yr({},R),{ref:D})):A.createElement(k,Yr({},R,{className:d,ref:D}),c))});gb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gb.classNames={fullWidth:kf,zeroRight:xf};var sse=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ise(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sse();return t&&e.setAttribute("nonce",t),e}function lse(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cse(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dse=function(){var e=0,t=null;return{add:function(o){e==0&&(t=ise())&&(lse(t,o),cse(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},use=function(){var e=dse();return function(t,o){A.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},aj=function(){var e=use(),t=function(o){var a=o.styles,n=o.dynamic;return e(a,n),null};return t},pse={left:0,top:0,right:0,gap:0},YS=function(e){return parseInt(e||"",10)||0},mse=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[YS(o),YS(a),YS(n)]},hse=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pse;var t=mse(e),o=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-o+t[2]-t[0])}},gse=aj(),Ed="data-scroll-locked",fse=function(e,t,o,a){var n=e.left,r=e.top,i=e.right,c=e.gap;return o===void 0&&(o="margin"),`
|
|
144
|
+
{answers}`,"plan.prompt.guidedNothing":"Antes deste chat checaram se faltava algo que só eu sei, e não faltava nada. Não me faça perguntas a não ser que algo trave o case: assuma, escreva a suposição no card e pesquise.","plan.guide.thinking1":"Hum, ideia interessante…","plan.guide.thinking2":"Pensando nos próximos passos…","plan.guide.thinking3":"Deixa eu ver o que falta aqui…","plan.guide.thinking4":"Isso é bom, vou formular…","plan.guide.thinking5":"Juntando as peças…","plan.guide.thinking6":"Hum, dá pra fazer algo legal com isso…","plan.guide.thinking7":"Organizando as ideias…","plan.guide.thinking8":"Só um segundo, pensando…","plan.guide.building1":"Montando seu business case…","plan.guide.building2":"Chamando o agente para pesquisar os números…","plan.guide.building3":"Preparando os cards…","plan.guide.yourIdea":"Sua ideia","plan.guide.answerLabel":"Sua resposta","plan.guide.answerPlaceholder":"Escreva do seu jeito…","plan.guide.continue":"Continuar","plan.guide.skip":"Pular esta","plan.guide.back":"Voltar","plan.guide.resume.heading":"Seu último case não abriu","plan.guide.resume.description":"Sua ideia e suas respostas estão salvas. Continue de onde parou.","plan.guide.resume.continue":"Continuar","plan.guide.resume.discard":"Descartar"},Noe={...Lte,...Bte,...Fte,...jte,...zte,...qte,...Ute,...$te,...Vte,...Hte,...Gte,...Wte,...Kte,...Yte,...Zte,...Qte,...Jte,...Xte,...eoe,...hoe,...goe,...foe,...toe,...ooe,...aoe,...noe,...roe,...soe,...ioe,...loe,...coe,...doe,...uoe,...poe,...moe,...voe,...boe,...yoe,...woe,...Soe,...Toe,...xoe,...koe,...Eoe,...Coe,...Poe,..._oe,...Aoe,...Roe,...Doe,...Ooe,...Ite,...Mte},VB={en:Nte,"pt-BR":Noe};function nr(e,t){return $B(VB[cb()][e],t)}function $a(){const e=ye.c(2),[t]=rE(),o=VB[t.language];let a;return e[0]!==o?(a=(n,r)=>$B(o[n],r),e[0]=o,e[1]=a):a=e[1],a}function HB(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=HB(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function sE(){for(var e,t,o=0,a="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=HB(e))&&(a&&(a+=" "),a+=t);return a}const TO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xO=sE,Xl=(e,t)=>o=>{var a;if(t?.variants==null)return xO(e,o?.class,o?.className);const{variants:n,defaultVariants:r}=t,i=Object.keys(n).map(u=>{const m=o?.[u],h=r?.[u];if(m===null)return null;const f=TO(m)||TO(h);return n[u][f]}),c=o&&Object.entries(o).reduce((u,m)=>{let[h,f]=m;return f===void 0||(u[h]=f),u},{}),d=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((u,m)=>{let{class:h,className:f,...v}=m;return Object.entries(v).every(b=>{let[w,x]=b;return Array.isArray(x)?x.includes({...r,...c}[w]):{...r,...c}[w]===x})?[...u,h,f]:u},[]);return xO(e,i,d,o?.class,o?.className)},Moe=(e,t)=>{const o=new Array(e.length+t.length);for(let a=0;a<e.length;a++)o[a]=e[a];for(let a=0;a<t.length;a++)o[e.length+a]=t[a];return o},Ioe=(e,t)=>({classGroupId:e,validator:t}),GB=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),av="-",kO=[],Loe="arbitrary..",Boe=e=>{const t=joe(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Foe(i);const c=i.split(av),d=c[0]===""&&c.length>1?1:0;return WB(c,d,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const d=a[i],u=o[i];return d?u?Moe(u,d):d:u||kO}return o[i]||kO}}},WB=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const n=e[t],r=o.nextPart.get(n);if(r){const u=WB(e,t+1,r);if(u)return u}const i=o.validators;if(i===null)return;const c=t===0?e.join(av):e.slice(t).join(av),d=i.length;for(let u=0;u<d;u++){const m=i[u];if(m.validator(c))return m.classGroupId}},Foe=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),a=t.slice(0,o);return a?Loe+a:void 0})(),joe=e=>{const{theme:t,classGroups:o}=e;return zoe(o,t)},zoe=(e,t)=>{const o=GB();for(const a in e){const n=e[a];iE(n,o,a,t)}return o},iE=(e,t,o,a)=>{const n=e.length;for(let r=0;r<n;r++){const i=e[r];qoe(i,t,o,a)}},qoe=(e,t,o,a)=>{if(typeof e=="string"){Uoe(e,t,o);return}if(typeof e=="function"){$oe(e,t,o,a);return}Voe(e,t,o,a)},Uoe=(e,t,o)=>{const a=e===""?t:KB(t,e);a.classGroupId=o},$oe=(e,t,o,a)=>{if(Hoe(e)){iE(e(a),t,o,a);return}t.validators===null&&(t.validators=[]),t.validators.push(Ioe(o,e))},Voe=(e,t,o,a)=>{const n=Object.entries(e),r=n.length;for(let i=0;i<r;i++){const[c,d]=n[i];iE(d,KB(t,c),o,a)}},KB=(e,t)=>{let o=e;const a=t.split(av),n=a.length;for(let r=0;r<n;r++){const i=a[r];let c=o.nextPart.get(i);c||(c=GB(),o.nextPart.set(i,c)),o=c}return o},Hoe=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Goe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),a=Object.create(null);const n=(r,i)=>{o[r]=i,t++,t>e&&(t=0,a=o,o=Object.create(null))};return{get(r){let i=o[r];if(i!==void 0)return i;if((i=a[r])!==void 0)return n(r,i),i},set(r,i){r in o?o[r]=i:n(r,i)}}},zx="!",EO=":",Woe=[],CO=(e,t,o,a,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:a,isExternal:n}),Koe=e=>{const{prefix:t,experimentalParseClassName:o}=e;let a=n=>{const r=[];let i=0,c=0,d=0,u;const m=n.length;for(let w=0;w<m;w++){const x=n[w];if(i===0&&c===0){if(x===EO){r.push(n.slice(d,w)),d=w+1;continue}if(x==="/"){u=w;continue}}x==="["?i++:x==="]"?i--:x==="("?c++:x===")"&&c--}const h=r.length===0?n:n.slice(d);let f=h,v=!1;h.endsWith(zx)?(f=h.slice(0,-1),v=!0):h.startsWith(zx)&&(f=h.slice(1),v=!0);const b=u&&u>d?u-d:void 0;return CO(r,v,f,b)};if(t){const n=t+EO,r=a;a=i=>i.startsWith(n)?r(i.slice(n.length)):CO(Woe,!1,i,void 0,!0)}if(o){const n=a;a=r=>o({className:r,parseClassName:n})}return a},Yoe=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,a)=>{t.set(o,1e6+a)}),o=>{const a=[];let n=[];for(let r=0;r<o.length;r++){const i=o[r],c=i[0]==="[",d=t.has(i);c||d?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(i)):n.push(i)}return n.length>0&&(n.sort(),a.push(...n)),a}},Zoe=e=>({cache:Goe(e.cacheSize),parseClassName:Koe(e),sortModifiers:Yoe(e),postfixLookupClassGroupIds:Qoe(e),...Boe(e)}),Qoe=e=>{const t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let a=0;a<o.length;a++)t[o[a]]=!0;return t},Joe=/\s+/,Xoe=(e,t)=>{const{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:r,postfixLookupClassGroupIds:i}=t,c=[],d=e.trim().split(Joe);let u="";for(let m=d.length-1;m>=0;m-=1){const h=d[m],{isExternal:f,modifiers:v,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:x}=o(h);if(f){u=h+(u.length>0?" "+u:u);continue}let T=!!x,k;if(T){const R=w.substring(0,x);k=a(R);const O=k&&i[k]?a(w):void 0;O&&O!==k&&(k=O,T=!1)}else k=a(w);if(!k){if(!T){u=h+(u.length>0?" "+u:u);continue}if(k=a(w),!k){u=h+(u.length>0?" "+u:u);continue}T=!1}const C=v.length===0?"":v.length===1?v[0]:r(v).join(":"),E=b?C+zx:C,_=E+k;if(c.indexOf(_)>-1)continue;c.push(_);const D=n(k,T);for(let R=0;R<D.length;++R){const O=D[R];c.push(E+O)}u=h+(u.length>0?" "+u:u)}return u},eae=(...e)=>{let t=0,o,a,n="";for(;t<e.length;)(o=e[t++])&&(a=YB(o))&&(n&&(n+=" "),n+=a);return n},YB=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=YB(e[a]))&&(o&&(o+=" "),o+=t);return o},tae=(e,...t)=>{let o,a,n,r;const i=d=>{const u=t.reduce((m,h)=>h(m),e());return o=Zoe(u),a=o.cache.get,n=o.cache.set,r=c,c(d)},c=d=>{const u=a(d);if(u)return u;const m=Xoe(d,o);return n(d,m),m};return r=i,(...d)=>r(eae(...d))},oae=[],oa=e=>{const t=o=>o[e]||oae;return t.isThemeGetter=!0,t},ZB=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,QB=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aae=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yi=e=>aae.test(e),bt=e=>!!e&&!Number.isNaN(Number(e)),zr=e=>!!e&&Number.isInteger(Number(e)),FS=e=>e.endsWith("%")&&bt(e.slice(0,-1)),_s=e=>nae.test(e),JB=()=>!0,cae=e=>rae.test(e)&&!sae.test(e),lE=()=>!1,dae=e=>iae.test(e),uae=e=>lae.test(e),pae=e=>!We(e)&&!Ye(e),mae=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),hae=e=>Xi(e,tF,lE),We=e=>ZB.test(e),xl=e=>Xi(e,oF,cae),PO=e=>Xi(e,Tae,bt),gae=e=>Xi(e,nF,JB),fae=e=>Xi(e,aF,lE),_O=e=>Xi(e,XB,lE),vae=e=>Xi(e,eF,uae),$g=e=>Xi(e,rF,dae),Ye=e=>QB.test(e),tp=e=>ec(e,oF),bae=e=>ec(e,aF),AO=e=>ec(e,XB),yae=e=>ec(e,tF),wae=e=>ec(e,eF),Vg=e=>ec(e,rF,!0),Sae=e=>ec(e,nF,!0),Xi=(e,t,o)=>{const a=ZB.exec(e);return a?a[1]?t(a[1]):o(a[2]):!1},ec=(e,t,o=!1)=>{const a=QB.exec(e);return a?a[1]?t(a[1]):o:!1},XB=e=>e==="position"||e==="percentage",eF=e=>e==="image"||e==="url",tF=e=>e==="length"||e==="size"||e==="bg-size",oF=e=>e==="length",Tae=e=>e==="number",aF=e=>e==="family-name",nF=e=>e==="number"||e==="weight",rF=e=>e==="shadow",xae=()=>{const e=oa("color"),t=oa("font"),o=oa("text"),a=oa("font-weight"),n=oa("tracking"),r=oa("leading"),i=oa("breakpoint"),c=oa("container"),d=oa("spacing"),u=oa("radius"),m=oa("shadow"),h=oa("inset-shadow"),f=oa("text-shadow"),v=oa("drop-shadow"),b=oa("blur"),w=oa("perspective"),x=oa("aspect"),T=oa("ease"),k=oa("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...E(),Ye,We],D=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],O=()=>[Ye,We,d],L=()=>[yi,"full","auto",...O()],U=()=>[zr,"none","subgrid",Ye,We],B=()=>["auto",{span:["full",zr,Ye,We]},zr,Ye,We],z=()=>[zr,"auto",Ye,We],F=()=>["auto","min","max","fr",Ye,We],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...O()],K=()=>[yi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],J=()=>[yi,"screen","full","dvw","lvw","svw","min","max","fit",...O()],se=()=>[yi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],Q=()=>[e,Ye,We],M=()=>[...E(),AO,_O,{position:[Ye,We]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",yae,hae,{size:[Ye,We]}],I=()=>[FS,tp,xl],j=()=>["","none","full",u,Ye,We],X=()=>["",bt,tp,xl],de=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[bt,FS,AO,_O],qe=()=>["","none",b,Ye,We],Z=()=>["none",bt,Ye,We],ne=()=>["none",bt,Ye,We],ve=()=>[bt,Ye,We],ie=()=>[yi,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_s],breakpoint:[_s],color:[JB],container:[_s],"drop-shadow":[_s],ease:["in","out","in-out"],font:[pae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_s],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_s],shadow:[_s],spacing:["px",bt],text:[_s],"text-shadow":[_s],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yi,We,Ye,x]}],container:["container"],"container-type":[{"@container":["","normal","size",Ye,We]}],"container-named":[mae],columns:[{columns:[bt,We,Ye,c]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[zr,"auto",Ye,We]}],basis:[{basis:[yi,"full","auto",c,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bt,yi,"auto","initial","none",We]}],grow:[{grow:["",bt,Ye,We]}],shrink:[{shrink:["",bt,Ye,We]}],order:[{order:[zr,"first","last","none",Ye,We]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[c,"screen",...K()]}],"min-w":[{"min-w":[c,"screen","none",...K()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",o,tp,xl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Sae,gae]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",FS,We]}],"font-family":[{font:[bae,fae,t]}],"font-features":[{"font-features":[We]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Ye,We]}],"line-clamp":[{"line-clamp":[bt,"none",Ye,PO]}],leading:[{leading:[r,...O()]}],"list-image":[{"list-image":["none",Ye,We]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ye,We]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",Ye,xl]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[bt,"auto",Ye,We]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[zr,Ye,We]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ye,We]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ye,We]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zr,Ye,We],radial:["",Ye,We],conic:[zr,Ye,We]},wae,vae]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bt,Ye,We]}],"outline-w":[{outline:["",bt,tp,xl]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",m,Vg,$g]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,Vg,$g]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[bt,xl]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",f,Vg,$g]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[bt,Ye,We]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[Ye,We]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ye,We]}],filter:[{filter:["","none",Ye,We]}],blur:[{blur:qe()}],brightness:[{brightness:[bt,Ye,We]}],contrast:[{contrast:[bt,Ye,We]}],"drop-shadow":[{"drop-shadow":["","none",v,Vg,$g]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",bt,Ye,We]}],"hue-rotate":[{"hue-rotate":[bt,Ye,We]}],invert:[{invert:["",bt,Ye,We]}],saturate:[{saturate:[bt,Ye,We]}],sepia:[{sepia:["",bt,Ye,We]}],"backdrop-filter":[{"backdrop-filter":["","none",Ye,We]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[bt,Ye,We]}],"backdrop-contrast":[{"backdrop-contrast":[bt,Ye,We]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,Ye,We]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,Ye,We]}],"backdrop-invert":[{"backdrop-invert":["",bt,Ye,We]}],"backdrop-opacity":[{"backdrop-opacity":[bt,Ye,We]}],"backdrop-saturate":[{"backdrop-saturate":[bt,Ye,We]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,Ye,We]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ye,We]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bt,"initial",Ye,We]}],ease:[{ease:["linear","initial",T,Ye,We]}],delay:[{delay:[bt,Ye,We]}],animate:[{animate:["none",k,Ye,We]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Ye,We]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Z()}],"rotate-x":[{"rotate-x":Z()}],"rotate-y":[{"rotate-y":Z()}],"rotate-z":[{"rotate-z":Z()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[Ye,We,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],zoom:[{zoom:[zr,Ye,We]}],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ye,We]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Q()}],"scrollbar-track-color":[{"scrollbar-track":Q()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ye,We]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[bt,tp,xl,PO]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sF=tae(xae);function Je(...e){return sF(sE(e))}const kae=Xl("animate-spin shrink-0",{variants:{size:{"2xs":"size-3",xs:"size-4",sm:"size-6",default:"size-7",lg:"size-8",icon:"size-6"}},defaultVariants:{size:"default"}});function Eae(e){const t=ye.c(11),{size:o,className:a,style:n,label:r}=e;let i;t[0]!==r?(i=r?{role:"status","aria-label":r}:{"aria-hidden":!0},t[0]=r,t[1]=i):i=t[1];let c;t[2]!==a||t[3]!==o?(c=Je(kae({size:o}),a),t[2]=a,t[3]=o,t[4]=c):c=t[4];let d,u;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=y.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor",opacity:"0.2"}),u=y.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"}),t[5]=d,t[6]=u):(d=t[5],u=t[6]);let m;return t[7]!==n||t[8]!==i||t[9]!==c?(m=y.jsxs("svg",{...i,className:c,style:n,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d,u]}),t[7]=n,t[8]=i,t[9]=c,t[10]=m):m=t[10],m}function Xd(){const e=ye.c(4),t=$a();let o;e[0]!==t?(o=t("common.loading"),e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=y.jsx("div",{"data-testid":"panel-loading",className:"flex flex-1 h-full w-full items-center justify-center",children:y.jsx(Eae,{className:"size-5 text-muted-foreground",label:o})}),e[2]=o,e[3]=a):a=e[3],a}function Kxe(e){const t=ye.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx(Xd,{}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=y.jsx(A.Suspense,{fallback:a,children:o}),t[1]=o,t[2]=n):n=t[2],n}const iF=lo([Vt(),Qe("chat"),Qe(0)]).optional().transform(e=>e===void 0?void 0:e===!0||e==="chat").catch(void 0),lF=Vt().optional().catch(void 0);function RO(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("bg-secondary-hover animate-pulse rounded-md",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{"data-slot":"skeleton",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function DO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fm(...e){return t=>{let o=!1;const a=e.map(n=>{const r=DO(n,t);return!o&&typeof r=="function"&&(o=!0),r});if(o)return()=>{for(let n=0;n<a.length;n++){const r=a[n];typeof r=="function"?r():DO(e[n],null)}}}}function $o(...e){return A.useCallback(fm(...e),e)}var Cae=Symbol.for("react.lazy"),nv=uk[" use ".trim().toString()];function Pae(e){return typeof e=="object"&&e!==null&&"then"in e}function cF(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Cae&&"_payload"in e&&Pae(e._payload)}function dF(e){const t=_ae(e),o=A.forwardRef((a,n)=>{let{children:r,...i}=a;cF(r)&&typeof nv=="function"&&(r=nv(r._payload));const c=A.Children.toArray(r),d=c.find(Rae);if(d){const u=d.props.children,m=c.map(h=>h===d?A.Children.count(u)>1?A.Children.only(null):A.isValidElement(u)?u.props.children:null:h);return y.jsx(t,{...i,ref:n,children:A.isValidElement(u)?A.cloneElement(u,void 0,m):null})}return y.jsx(t,{...i,ref:n,children:r})});return o.displayName=`${e}.Slot`,o}var db=dF("Slot");function _ae(e){const t=A.forwardRef((o,a)=>{let{children:n,...r}=o;if(cF(n)&&typeof nv=="function"&&(n=nv(n._payload)),A.isValidElement(n)){const i=Oae(n),c=Dae(r,n.props);return n.type!==A.Fragment&&(c.ref=a?fm(a,i):i),A.cloneElement(n,c)}return A.Children.count(n)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uF=Symbol("radix.slottable");function Aae(e){const t=({children:o})=>y.jsx(y.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=uF,t}var Yxe=Aae("Slottable");function Rae(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uF}function Dae(e,t){const o={...t};for(const a in t){const n=e[a],r=t[a];/^on[A-Z]/.test(a)?n&&r?o[a]=(...c)=>{const d=r(...c);return n(...c),d}:n&&(o[a]=n):a==="style"?o[a]={...n,...r}:a==="className"&&(o[a]=[n,r].filter(Boolean).join(" "))}return{...e,...o}}function Oae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}const Nae="bg-[var(--studio-secondary-background)] text-[color:var(--studio-secondary-foreground)] shadow-[var(--studio-secondary-shadow)] hover:bg-[var(--studio-secondary-hover-background)] hover:text-[color:var(--studio-secondary-hover-foreground)]",cE=Xl(["relative inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap","rounded-[var(--studio-button-radius)] text-sm font-medium","transition-[background-color,box-shadow,color,opacity] duration-150 ease-[var(--ease-out-cubic)]","active:translate-y-px active:transition-none motion-reduce:active:translate-y-0","focus-ring","disabled:pointer-events-none disabled:opacity-40","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","aria-invalid:outline-destructive"],{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hover",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/85 dark:bg-destructive/70",secondary:Nae,outline:"bg-card text-[color:var(--studio-outline-foreground)] shadow-edge hover:bg-[var(--studio-outline-hover-background)] hover:text-accent-foreground aria-pressed:bg-accent aria-pressed:text-accent-foreground data-[state=open]:bg-accent",success:"bg-success text-success-foreground hover:bg-success/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",brand:"bg-brand text-brand-foreground hover:bg-brand/85",special:"bg-special text-special-foreground hover:bg-special/90",ghost:"hover:bg-accent hover:text-accent-foreground","ghost-destructive":"text-muted-foreground hover:bg-accent hover:text-destructive",agent:"bg-card text-card-foreground shadow-edge hover:bg-accent has-[>[data-slot=agent-avatar]]:pl-[3px]",sidebar:"text-sidebar-foreground hover:bg-sidebar-accent aria-pressed:bg-sidebar-accent [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",link:"text-foreground/80 hover:text-foreground",tab:"text-muted-foreground hover:bg-accent hover:text-foreground aria-pressed:bg-card aria-pressed:text-card-foreground aria-pressed:shadow-edge aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-edge",menu:"w-full justify-start font-normal hover:bg-accent hover:text-accent-foreground"},size:{default:"h-8 px-3.5 has-[>svg]:px-3",sm:"h-7 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2.5 text-xs has-[>svg]:px-2",lg:"h-10 px-4.5 has-[>svg]:px-4",xl:"h-12 px-6 text-base has-[>svg]:px-5",icon:"size-8","icon-sm":"size-7","icon-xs":"size-6"}},defaultVariants:{variant:"default",size:"default"}});function yn(e){const t=ye.c(14);let o,a,n,r,i;t[0]!==e?({className:o,variant:i,size:n,asChild:r,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5]);const d=(r===void 0?!1:r)?db:"button";let u;t[6]!==o||t[7]!==n||t[8]!==i?(u=Je(cE({variant:i,size:n,className:o})),t[6]=o,t[7]=n,t[8]=i,t[9]=u):u=t[9];let m;return t[10]!==d||t[11]!==a||t[12]!==u?(m=y.jsx(d,{"data-slot":"button",className:u,...a}),t[10]=d,t[11]=a,t[12]=u,t[13]=m):m=t[13],m}const Vp=A.createContext(null);function Mae(e){const t=ye.c(18);let o,a,n,r;t[0]!==e?({children:o,className:a,variant:r,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r):(o=t[1],a=t[2],n=t[3],r=t[4]);const i=r===void 0?"card":r;let c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c={left:null,center:null,right:null,"toolbar-left":null,"toolbar-center":null,"toolbar-right":null},t[5]=c):c=t[5];const[d,u]=A.useState(c);let m;t[6]!==d?(m={targets:d,setTargets:u},t[6]=d,t[7]=m):m=t[7];const h=i==="card"&&"rounded-xl shadow-edge [transform:translateZ(0)]";let f;t[8]!==a||t[9]!==h?(f=Je("flex h-full min-h-0 min-w-0 flex-col overflow-hidden bg-background",h,a),t[8]=a,t[9]=h,t[10]=f):f=t[10];let v;t[11]!==o||t[12]!==n||t[13]!==f?(v=y.jsx("div",{...n,"data-slot":"panel",className:f,children:o}),t[11]=o,t[12]=n,t[13]=f,t[14]=v):v=t[14];let b;return t[15]!==m||t[16]!==v?(b=y.jsx(Vp,{value:m,children:v}),t[15]=m,t[16]=v,t[17]=b):b=t[17],b}function Iae(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("@container/panel-header relative z-10 flex h-12 shrink-0 items-center justify-between gap-2 px-1.5",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("header",{...a,"data-slot":"panel-topbar",className:n}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Kc(e,t){const o=e.startsWith("toolbar-")?`panel-${e}`:`panel-topbar-${e}`;function a(i){const c=ye.c(8);let d,u;c[0]!==i?({className:d,...u}=i,c[0]=i,c[1]=d,c[2]=u):(d=c[1],u=c[2]);let m;c[3]!==d?(m=Je("flex min-w-0 items-center gap-1",t,d),c[3]=d,c[4]=m):m=c[4];let h;return c[5]!==u||c[6]!==m?(h=y.jsx("div",{...u,"data-slot":o,className:m}),c[5]=u,c[6]=m,c[7]=h):h=c[7],h}function n(i){const c=ye.c(16);let d,u,m;c[0]!==i?({className:d,fallback:u,...m}=i,c[0]=i,c[1]=d,c[2]=u,c[3]=m):(d=c[1],u=c[2],m=c[3]);const h=A.use(Vp);if(!h)throw new Error("Panel targets require a Panel");const{setTargets:f}=h;let v;c[4]!==f?(v=()=>C=>{if(C)return f(E=>{if(E[e]&&E[e]!==C)throw new Error(`Panel has two targets for ${e}`);return E[e]===C?E:{...E,[e]:C}}),()=>{f(E=>E[e]===C?{...E,[e]:null}:E)}},c[4]=f,c[5]=v):v=c[5];const[b]=A.useState(v);let w;c[6]!==d?(w=Je("peer contents empty:hidden",d),c[6]=d,c[7]=w):w=c[7];let x;c[8]!==m||c[9]!==w?(x=y.jsx("div",{"data-toolbar-content":e.startsWith("toolbar-")?"":void 0,...m,ref:b,"data-slot":`${o}-target`,className:w}),c[8]=m,c[9]=w,c[10]=x):x=c[10];let T;c[11]!==u?(T=u&&y.jsx("div",{className:"hidden peer-empty:contents",children:u}),c[11]=u,c[12]=T):T=c[12];let k;return c[13]!==x||c[14]!==T?(k=y.jsxs(y.Fragment,{children:[x,T]}),c[13]=x,c[14]=T,c[15]=k):k=c[15],k}function r({children:i,fallback:c=null}){const u=A.use(Vp)?.targets[e];return u?lm.createPortal(i,u):c}return Object.assign(a,{Target:n,Portal:r})}function Lae(e){const t=ye.c(12),{children:o}=e,a=A.use(Vp);if(!a)throw new Error("A toolbar scope requires a Panel");let n;t[0]!==a.targets?(n={...a.targets,"toolbar-left":null,"toolbar-center":null,"toolbar-right":null},t[0]=a.targets,t[1]=n):n=t[1];const[r,i]=A.useState(n),c=r["toolbar-left"],d=r["toolbar-center"],u=r["toolbar-right"];let m;t[2]!==a.targets||t[3]!==c||t[4]!==d||t[5]!==u?(m={...a.targets,"toolbar-left":c,"toolbar-center":d,"toolbar-right":u},t[2]=a.targets,t[3]=c,t[4]=d,t[5]=u,t[6]=m):m=t[6];const h=m;let f;t[7]!==h?(f={targets:h,setTargets:i},t[7]=h,t[8]=f):f=t[8];let v;return t[9]!==o||t[10]!==f?(v=y.jsx(Vp,{value:f,children:o}),t[9]=o,t[10]=f,t[11]=v):v=t[11],v}function Bae(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("@container/panel-toolbar relative z-10 flex min-h-11 shrink-0 flex-wrap items-center gap-x-2 gap-y-1 px-3 py-1.5 [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{...a,"data-slot":"panel-toolbar",className:n}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Fae(e){const t=ye.c(11);let o,a,n;t[0]!==e?({className:o,mode:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const r=n===void 0?"canvas":n,i=r==="scroll"?"overflow-auto":"overflow-hidden";let c;t[4]!==o||t[5]!==i?(c=Je("flex min-h-0 min-w-0 flex-1 flex-col",i,o),t[4]=o,t[5]=i,t[6]=c):c=t[6];let d;return t[7]!==r||t[8]!==a||t[9]!==c?(d=y.jsx("div",{...a,"data-slot":"panel-content","data-mode":r,className:c}),t[7]=r,t[8]=a,t[9]=c,t[10]=d):d=t[10],d}const mn=Object.assign(Mae,{Topbar:Object.assign(Iae,{Left:Kc("left","shrink overflow-hidden"),Center:Kc("center","flex-1 justify-center"),Right:Kc("right","shrink justify-end")}),Toolbar:Object.assign(Bae,{Scope:Lae,Left:Kc("toolbar-left","shrink"),Center:Kc("toolbar-center","flex-1 justify-center"),Right:Kc("toolbar-right","ml-auto shrink-0 justify-end")}),Content:Fae});function mt(e,t,{checkForDefaultPrevented:o=!0}={}){return function(n){if(e?.(n),o===!1||!n.defaultPrevented)return t?.(n)}}function jae(e,t){const o=A.createContext(t),a=r=>{const{children:i,...c}=r,d=A.useMemo(()=>c,Object.values(c));return y.jsx(o.Provider,{value:d,children:i})};a.displayName=e+"Provider";function n(r){const i=A.useContext(o);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}return[a,n]}function el(e,t=[]){let o=[];function a(r,i){const c=A.createContext(i),d=o.length;o=[...o,i];const u=h=>{const{scope:f,children:v,...b}=h,w=f?.[e]?.[d]||c,x=A.useMemo(()=>b,Object.values(b));return y.jsx(w.Provider,{value:x,children:v})};u.displayName=r+"Provider";function m(h,f){const v=f?.[e]?.[d]||c,b=A.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${r}\``)}return[u,m]}const n=()=>{const r=o.map(i=>A.createContext(i));return function(c){const d=c?.[e]||r;return A.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return n.scopeName=e,[a,zae(n,...t)]}function zae(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(r){const i=a.reduce((c,{useScope:d,scopeName:u})=>{const h=d(r)[`__scope${u}`];return{...c,...h}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}var Cr=globalThis?.document?A.useLayoutEffect:()=>{},qae=uk[" useInsertionEffect ".trim().toString()]||Cr;function vm({prop:e,defaultProp:t,onChange:o=()=>{},caller:a}){const[n,r,i]=Uae({defaultProp:t,onChange:o}),c=e!==void 0,d=c?e:n;{const m=A.useRef(e!==void 0);A.useEffect(()=>{const h=m.current;h!==c&&console.warn(`${a} is changing from ${h?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,a])}const u=A.useCallback(m=>{if(c){const h=$ae(m)?m(e):m;h!==e&&i.current?.(h)}else r(m)},[c,e,r,i]);return[d,u]}function Uae({defaultProp:e,onChange:t}){const[o,a]=A.useState(e),n=A.useRef(o),r=A.useRef(t);return qae(()=>{r.current=t},[t]),A.useEffect(()=>{n.current!==o&&(r.current?.(o),n.current=o)},[o,n]),[o,a,r]}function $ae(e){return typeof e=="function"}function Hp(e){const t=Vae(e),o=A.forwardRef((a,n)=>{const{children:r,...i}=a,c=A.Children.toArray(r),d=c.find(Gae);if(d){const u=d.props.children,m=c.map(h=>h===d?A.Children.count(u)>1?A.Children.only(null):A.isValidElement(u)?u.props.children:null:h);return y.jsx(t,{...i,ref:n,children:A.isValidElement(u)?A.cloneElement(u,void 0,m):null})}return y.jsx(t,{...i,ref:n,children:r})});return o.displayName=`${e}.Slot`,o}function Vae(e){const t=A.forwardRef((o,a)=>{const{children:n,...r}=o;if(A.isValidElement(n)){const i=Kae(n),c=Wae(r,n.props);return n.type!==A.Fragment&&(c.ref=a?fm(a,i):i),A.cloneElement(n,c)}return A.Children.count(n)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pF=Symbol("radix.slottable");function Hae(e){const t=({children:o})=>y.jsx(y.Fragment,{children:o});return t.displayName=`${e}.Slottable`,t.__radixId=pF,t}function Gae(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pF}function Wae(e,t){const o={...t};for(const a in t){const n=e[a],r=t[a];/^on[A-Z]/.test(a)?n&&r?o[a]=(...c)=>{const d=r(...c);return n(...c),d}:n&&(o[a]=n):a==="style"?o[a]={...n,...r}:a==="className"&&(o[a]=[n,r].filter(Boolean).join(" "))}return{...e,...o}}function Kae(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Yae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Do=Yae.reduce((e,t)=>{const o=Hp(`Primitive.${t}`),a=A.forwardRef((n,r)=>{const{asChild:i,...c}=n,d=i?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(d,{...c,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function mF(e,t){e&&lm.flushSync(()=>e.dispatchEvent(t))}function hF(e){const t=e+"CollectionProvider",[o,a]=el(t),[n,r]=o(t,{collectionRef:{current:null},itemMap:new Map}),i=w=>{const{scope:x,children:T}=w,k=ee.useRef(null),C=ee.useRef(new Map).current;return y.jsx(n,{scope:x,itemMap:C,collectionRef:k,children:T})};i.displayName=t;const c=e+"CollectionSlot",d=Hp(c),u=ee.forwardRef((w,x)=>{const{scope:T,children:k}=w,C=r(c,T),E=$o(x,C.collectionRef);return y.jsx(d,{ref:E,children:k})});u.displayName=c;const m=e+"CollectionItemSlot",h="data-radix-collection-item",f=Hp(m),v=ee.forwardRef((w,x)=>{const{scope:T,children:k,...C}=w,E=ee.useRef(null),_=$o(x,E),D=r(m,T);return ee.useEffect(()=>(D.itemMap.set(E,{ref:E,...C}),()=>{D.itemMap.delete(E)})),y.jsx(f,{[h]:"",ref:_,children:k})});v.displayName=m;function b(w){const x=r(e+"CollectionConsumer",w);return ee.useCallback(()=>{const k=x.collectionRef.current;if(!k)return[];const C=Array.from(k.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((D,R)=>C.indexOf(D.ref.current)-C.indexOf(R.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:v},b,a]}var Zae=A.createContext(void 0);function gF(e){const t=A.useContext(Zae);return e||t||"ltr"}function Pr(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...o)=>t.current?.(...o),[])}function Qae(e,t=globalThis?.document){const o=Pr(e);A.useEffect(()=>{const a=n=>{n.key==="Escape"&&o(n)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[o,t])}var Jae="DismissableLayer",qx="dismissableLayer.update",Xae="dismissableLayer.pointerDownOutside",ene="dismissableLayer.focusOutside",OO,fF=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dE=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:r,onInteractOutside:i,onDismiss:c,...d}=e,u=A.useContext(fF),[m,h]=A.useState(null),f=m?.ownerDocument??globalThis?.document,[,v]=A.useState({}),b=$o(t,R=>h(R)),w=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(x),k=m?w.indexOf(m):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=k>=T,_=ane(R=>{const O=R.target,L=[...u.branches].some(U=>U.contains(O));!E||L||(n?.(R),i?.(R),R.defaultPrevented||c?.())},f),D=nne(R=>{const O=R.target;[...u.branches].some(U=>U.contains(O))||(r?.(R),i?.(R),R.defaultPrevented||c?.())},f);return Qae(R=>{k===u.layers.size-1&&(a?.(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},f),A.useEffect(()=>{if(m)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(OO=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),NO(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=OO)}},[m,f,o,u]),A.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),NO())},[m,u]),A.useEffect(()=>{const R=()=>v({});return document.addEventListener(qx,R),()=>document.removeEventListener(qx,R)},[]),y.jsx(Do.div,{...d,ref:b,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,D.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,_.onPointerDownCapture)})});dE.displayName=Jae;var tne="DismissableLayerBranch",one=A.forwardRef((e,t)=>{const o=A.useContext(fF),a=A.useRef(null),n=$o(t,a);return A.useEffect(()=>{const r=a.current;if(r)return o.branches.add(r),()=>{o.branches.delete(r)}},[o.branches]),y.jsx(Do.div,{...e,ref:n})});one.displayName=tne;function ane(e,t=globalThis?.document){const o=Pr(e),a=A.useRef(!1),n=A.useRef(()=>{});return A.useEffect(()=>{const r=c=>{if(c.target&&!a.current){let d=function(){vF(Xae,o,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=d,t.addEventListener("click",n.current,{once:!0})):d()}else t.removeEventListener("click",n.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",r),t.removeEventListener("click",n.current)}},[t,o]),{onPointerDownCapture:()=>a.current=!0}}function nne(e,t=globalThis?.document){const o=Pr(e),a=A.useRef(!1);return A.useEffect(()=>{const n=r=>{r.target&&!a.current&&vF(ene,o,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,o]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function NO(){const e=new CustomEvent(qx);document.dispatchEvent(e)}function vF(e,t,o,{discrete:a}){const n=o.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&n.addEventListener(e,t,{once:!0}),a?mF(n,r):n.dispatchEvent(r)}var jS=0;function bF(){A.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??MO()),document.body.insertAdjacentElement("beforeend",e[1]??MO()),jS++,()=>{jS===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jS--}},[])}function MO(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var zS="focusScope.autoFocusOnMount",qS="focusScope.autoFocusOnUnmount",IO={bubbles:!1,cancelable:!0},rne="FocusScope",uE=A.forwardRef((e,t)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:r,...i}=e,[c,d]=A.useState(null),u=Pr(n),m=Pr(r),h=A.useRef(null),f=$o(t,w=>d(w)),v=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(a){let w=function(C){if(v.paused||!c)return;const E=C.target;c.contains(E)?h.current=E:_i(h.current,{select:!0})},x=function(C){if(v.paused||!c)return;const E=C.relatedTarget;E!==null&&(c.contains(E)||_i(h.current,{select:!0}))},T=function(C){if(document.activeElement===document.body)for(const _ of C)_.removedNodes.length>0&&_i(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",x);const k=new MutationObserver(T);return c&&k.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",x),k.disconnect()}}},[a,c,v.paused]),A.useEffect(()=>{if(c){BO.add(v);const w=document.activeElement;if(!c.contains(w)){const T=new CustomEvent(zS,IO);c.addEventListener(zS,u),c.dispatchEvent(T),T.defaultPrevented||(sne(une(yF(c)),{select:!0}),document.activeElement===w&&_i(c))}return()=>{c.removeEventListener(zS,u),setTimeout(()=>{const T=new CustomEvent(qS,IO);c.addEventListener(qS,m),c.dispatchEvent(T),T.defaultPrevented||_i(w??document.body,{select:!0}),c.removeEventListener(qS,m),BO.remove(v)},0)}}},[c,u,m,v]);const b=A.useCallback(w=>{if(!o&&!a||v.paused)return;const x=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(x&&T){const k=w.currentTarget,[C,E]=ine(k);C&&E?!w.shiftKey&&T===E?(w.preventDefault(),o&&_i(C,{select:!0})):w.shiftKey&&T===C&&(w.preventDefault(),o&&_i(E,{select:!0})):T===k&&w.preventDefault()}},[o,a,v.paused]);return y.jsx(Do.div,{tabIndex:-1,...i,ref:f,onKeyDown:b})});uE.displayName=rne;function sne(e,{select:t=!1}={}){const o=document.activeElement;for(const a of e)if(_i(a,{select:t}),document.activeElement!==o)return}function ine(e){const t=yF(e),o=LO(t,e),a=LO(t.reverse(),e);return[o,a]}function yF(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function LO(e,t){for(const o of e)if(!lne(o,{upTo:t}))return o}function lne(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cne(e){return e instanceof HTMLInputElement&&"select"in e}function _i(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&cne(e)&&t&&e.select()}}var BO=dne();function dne(){let e=[];return{add(t){const o=e[0];t!==o&&o?.pause(),e=FO(e,t),e.unshift(t)},remove(t){e=FO(e,t),e[0]?.resume()}}}function FO(e,t){const o=[...e],a=o.indexOf(t);return a!==-1&&o.splice(a,1),o}function une(e){return e.filter(t=>t.tagName!=="A")}var pne=uk[" useId ".trim().toString()]||(()=>{}),mne=0;function zi(e){const[t,o]=A.useState(pne());return Cr(()=>{o(a=>a??String(mne++))},[e]),t?`radix-${t}`:""}const wF=["top","right","bottom","left"],jO=["start","end"],zO=wF.reduce((e,t)=>e.concat(t,t+"-"+jO[0],t+"-"+jO[1]),[]),_r=Math.min,Fa=Math.max,rv=Math.round,Hg=Math.floor,Xr=e=>({x:e,y:e}),hne={left:"right",right:"left",bottom:"top",top:"bottom"};function Ux(e,t,o){return Fa(e,_r(t,o))}function Ar(e,t){return typeof e=="function"?e(t):e}function Fn(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function pE(e){return e==="x"?"y":"x"}function mE(e){return e==="y"?"height":"width"}function xr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function hE(e){return pE(xr(e))}function SF(e,t,o){o===void 0&&(o=!1);const a=kr(e),n=hE(e),r=mE(n);let i=n==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=iv(i)),[i,iv(i)]}function gne(e){const t=iv(e);return[sv(e),t,sv(t)]}function sv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const qO=["left","right"],UO=["right","left"],fne=["top","bottom"],vne=["bottom","top"];function bne(e,t,o){switch(e){case"top":case"bottom":return o?t?UO:qO:t?qO:UO;case"left":case"right":return t?fne:vne;default:return[]}}function yne(e,t,o,a){const n=kr(e);let r=bne(Fn(e),o==="start",a);return n&&(r=r.map(i=>i+"-"+n),t&&(r=r.concat(r.map(sv)))),r}function iv(e){const t=Fn(e);return hne[t]+e.slice(t.length)}function wne(e){return{top:0,right:0,bottom:0,left:0,...e}}function gE(e){return typeof e!="number"?wne(e):{top:e,right:e,bottom:e,left:e}}function zd(e){const{x:t,y:o,width:a,height:n}=e;return{width:a,height:n,top:o,left:t,right:t+a,bottom:o+n,x:t,y:o}}function $O(e,t,o){let{reference:a,floating:n}=e;const r=xr(t),i=hE(t),c=mE(i),d=Fn(t),u=r==="y",m=a.x+a.width/2-n.width/2,h=a.y+a.height/2-n.height/2,f=a[c]/2-n[c]/2;let v;switch(d){case"top":v={x:m,y:a.y-n.height};break;case"bottom":v={x:m,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:h};break;case"left":v={x:a.x-n.width,y:h};break;default:v={x:a.x,y:a.y}}switch(kr(t)){case"start":v[i]-=f*(o&&u?-1:1);break;case"end":v[i]+=f*(o&&u?-1:1);break}return v}async function Sne(e,t){var o;t===void 0&&(t={});const{x:a,y:n,platform:r,rects:i,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:f=!1,padding:v=0}=Ar(t,e),b=gE(v),x=c[f?h==="floating"?"reference":"floating":h],T=zd(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(x)))==null||o?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:d})),k=h==="floating"?{x:a,y:n,width:i.floating.width,height:i.floating.height}:i.reference,C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),E=await(r.isElement==null?void 0:r.isElement(C))?await(r.getScale==null?void 0:r.getScale(C))||{x:1,y:1}:{x:1,y:1},_=zd(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:C,strategy:d}):k);return{top:(T.top-_.top+b.top)/E.y,bottom:(_.bottom-T.bottom+b.bottom)/E.y,left:(T.left-_.left+b.left)/E.x,right:(_.right-T.right+b.right)/E.x}}const Tne=50,xne=async(e,t,o)=>{const{placement:a="bottom",strategy:n="absolute",middleware:r=[],platform:i}=o,c=i.detectOverflow?i:{...i,detectOverflow:Sne},d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:m,y:h}=$O(u,a,d),f=a,v=0;const b={};for(let w=0;w<r.length;w++){const x=r[w];if(!x)continue;const{name:T,fn:k}=x,{x:C,y:E,data:_,reset:D}=await k({x:m,y:h,initialPlacement:a,placement:f,strategy:n,middlewareData:b,rects:u,platform:c,elements:{reference:e,floating:t}});m=C??m,h=E??h,b[T]={...b[T],..._},D&&v<Tne&&(v++,typeof D=="object"&&(D.placement&&(f=D.placement),D.rects&&(u=D.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):D.rects),{x:m,y:h}=$O(u,f,d)),w=-1)}return{x:m,y:h,placement:f,strategy:n,middlewareData:b}},kne=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:a,placement:n,rects:r,platform:i,elements:c,middlewareData:d}=t,{element:u,padding:m=0}=Ar(e,t)||{};if(u==null)return{};const h=gE(m),f={x:o,y:a},v=hE(n),b=mE(v),w=await i.getDimensions(u),x=v==="y",T=x?"top":"left",k=x?"bottom":"right",C=x?"clientHeight":"clientWidth",E=r.reference[b]+r.reference[v]-f[v]-r.floating[b],_=f[v]-r.reference[v],D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let R=D?D[C]:0;(!R||!await(i.isElement==null?void 0:i.isElement(D)))&&(R=c.floating[C]||r.floating[b]);const O=E/2-_/2,L=R/2-w[b]/2-1,U=_r(h[T],L),B=_r(h[k],L),z=U,F=R-w[b]-B,W=R/2-w[b]/2+O,oe=Ux(z,W,F),H=!d.arrow&&kr(n)!=null&&W!==oe&&r.reference[b]/2-(W<z?U:B)-w[b]/2<0,K=H?W<z?W-z:W-F:0;return{[v]:f[v]+K,data:{[v]:oe,centerOffset:W-oe-K,...H&&{alignmentOffset:K}},reset:H}}});function Ene(e,t,o){return(e?[...o.filter(n=>kr(n)===e),...o.filter(n=>kr(n)!==e)]:o.filter(n=>Fn(n)===n)).filter(n=>e?kr(n)===e||(t?sv(n)!==n:!1):!0)}const Cne=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,a,n;const{rects:r,middlewareData:i,placement:c,platform:d,elements:u}=t,{crossAxis:m=!1,alignment:h,allowedPlacements:f=zO,autoAlignment:v=!0,...b}=Ar(e,t),w=h!==void 0||f===zO?Ene(h||null,v,f):f,x=await d.detectOverflow(t,b),T=((o=i.autoPlacement)==null?void 0:o.index)||0,k=w[T];if(k==null)return{};const C=SF(k,r,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(c!==k)return{reset:{placement:w[0]}};const E=[x[Fn(k)],x[C[0]],x[C[1]]],_=[...((a=i.autoPlacement)==null?void 0:a.overflows)||[],{placement:k,overflows:E}],D=w[T+1];if(D)return{data:{index:T+1,overflows:_},reset:{placement:D}};const R=_.map(U=>{const B=kr(U.placement);return[U.placement,B&&m?U.overflows.slice(0,2).reduce((z,F)=>z+F,0):U.overflows[0],U.overflows]}).sort((U,B)=>U[1]-B[1]),L=((n=R.filter(U=>U[2].slice(0,kr(U[0])?2:3).every(B=>B<=0))[0])==null?void 0:n[0])||R[0][0];return L!==c?{data:{index:T+1,overflows:_},reset:{placement:L}}:{}}}},Pne=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,a;const{placement:n,middlewareData:r,rects:i,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...x}=Ar(e,t);if((o=r.arrow)!=null&&o.alignmentOffset)return{};const T=Fn(n),k=xr(c),C=Fn(c)===c,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),_=f||(C||!w?[iv(c)]:gne(c)),D=b!=="none";!f&&D&&_.push(...yne(c,w,b,E));const R=[c,..._],O=await d.detectOverflow(t,x),L=[];let U=((a=r.flip)==null?void 0:a.overflows)||[];if(m&&L.push(O[T]),h){const W=SF(n,i,E);L.push(O[W[0]],O[W[1]])}if(U=[...U,{placement:n,overflows:L}],!L.every(W=>W<=0)){var B,z;const W=(((B=r.flip)==null?void 0:B.index)||0)+1,oe=R[W];if(oe&&(!(h==="alignment"?k!==xr(oe):!1)||U.every(J=>xr(J.placement)===k?J.overflows[0]>0:!0)))return{data:{index:W,overflows:U},reset:{placement:oe}};let H=(z=U.filter(K=>K.overflows[0]<=0).sort((K,J)=>K.overflows[1]-J.overflows[1])[0])==null?void 0:z.placement;if(!H)switch(v){case"bestFit":{var F;const K=(F=U.filter(J=>{if(D){const se=xr(J.placement);return se===k||se==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(se=>se>0).reduce((se,Q)=>se+Q,0)]).sort((J,se)=>J[1]-se[1])[0])==null?void 0:F[0];K&&(H=K);break}case"initialPlacement":H=c;break}if(n!==H)return{reset:{placement:H}}}return{}}}};function VO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HO(e){return wF.some(t=>e[t]>=0)}const _ne=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o,platform:a}=t,{strategy:n="referenceHidden",...r}=Ar(e,t);switch(n){case"referenceHidden":{const i=await a.detectOverflow(t,{...r,elementContext:"reference"}),c=VO(i,o.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:HO(c)}}}case"escaped":{const i=await a.detectOverflow(t,{...r,altBoundary:!0}),c=VO(i,o.floating);return{data:{escapedOffsets:c,escaped:HO(c)}}}default:return{}}}}};function TF(e){const t=_r(...e.map(r=>r.left)),o=_r(...e.map(r=>r.top)),a=Fa(...e.map(r=>r.right)),n=Fa(...e.map(r=>r.bottom));return{x:t,y:o,width:a-t,height:n-o}}function Ane(e){const t=e.slice().sort((n,r)=>n.y-r.y),o=[];let a=null;for(let n=0;n<t.length;n++){const r=t[n];!a||r.y-a.y>a.height/2?o.push([r]):o[o.length-1].push(r),a=r}return o.map(n=>zd(TF(n)))}const Rne=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:o,elements:a,rects:n,platform:r,strategy:i}=t,{padding:c=2,x:d,y:u}=Ar(e,t),m=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(a.reference))||[]),h=Ane(m),f=zd(TF(m)),v=gE(c);function b(){if(h.length===2&&h[0].left>h[1].right&&d!=null&&u!=null)return h.find(x=>d>x.left-v.left&&d<x.right+v.right&&u>x.top-v.top&&u<x.bottom+v.bottom)||f;if(h.length>=2){if(xr(o)==="y"){const U=h[0],B=h[h.length-1],z=Fn(o)==="top",F=U.top,W=B.bottom,oe=z?U.left:B.left,H=z?U.right:B.right,K=H-oe,J=W-F;return{top:F,bottom:W,left:oe,right:H,width:K,height:J,x:oe,y:F}}const x=Fn(o)==="left",T=Fa(...h.map(U=>U.right)),k=_r(...h.map(U=>U.left)),C=h.filter(U=>x?U.left===k:U.right===T),E=C[0].top,_=C[C.length-1].bottom,D=k,R=T,O=R-D,L=_-E;return{top:E,bottom:_,left:D,right:R,width:O,height:L,x:D,y:E}}return f}const w=await r.getElementRects({reference:{getBoundingClientRect:b},floating:a.floating,strategy:i});return n.reference.x!==w.reference.x||n.reference.y!==w.reference.y||n.reference.width!==w.reference.width||n.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},xF=new Set(["left","top"]);async function Dne(e,t){const{placement:o,platform:a,elements:n}=e,r=await(a.isRTL==null?void 0:a.isRTL(n.floating)),i=Fn(o),c=kr(o),d=xr(o)==="y",u=xF.has(i)?-1:1,m=r&&d?-1:1,h=Ar(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof b=="number"&&(v=c==="end"?b*-1:b),d?{x:v*m,y:f*u}:{x:f*u,y:v*m}}const One=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,a;const{x:n,y:r,placement:i,middlewareData:c}=t,d=await Dne(t,e);return i===((o=c.offset)==null?void 0:o.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:n+d.x,y:r+d.y,data:{...d,placement:i}}}}},Nne=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:a,placement:n,platform:r}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:T=>{let{x:k,y:C}=T;return{x:k,y:C}}},...u}=Ar(e,t),m={x:o,y:a},h=await r.detectOverflow(t,u),f=xr(Fn(n)),v=pE(f);let b=m[v],w=m[f];if(i){const T=v==="y"?"top":"left",k=v==="y"?"bottom":"right",C=b+h[T],E=b-h[k];b=Ux(C,b,E)}if(c){const T=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=w+h[T],E=w-h[k];w=Ux(C,w,E)}const x=d.fn({...t,[v]:b,[f]:w});return{...x,data:{x:x.x-o,y:x.y-a,enabled:{[v]:i,[f]:c}}}}}},Mne=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:a,placement:n,rects:r,middlewareData:i}=t,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=Ar(e,t),m={x:o,y:a},h=xr(n),f=pE(h);let v=m[f],b=m[h];const w=Ar(c,t),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(d){const C=f==="y"?"height":"width",E=r.reference[f]-r.floating[C]+x.mainAxis,_=r.reference[f]+r.reference[C]-x.mainAxis;v<E?v=E:v>_&&(v=_)}if(u){var T,k;const C=f==="y"?"width":"height",E=xF.has(Fn(n)),_=r.reference[h]-r.floating[C]+(E&&((T=i.offset)==null?void 0:T[h])||0)+(E?0:x.crossAxis),D=r.reference[h]+r.reference[C]+(E?0:((k=i.offset)==null?void 0:k[h])||0)-(E?x.crossAxis:0);b<_?b=_:b>D&&(b=D)}return{[f]:v,[h]:b}}}},Ine=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,a;const{placement:n,rects:r,platform:i,elements:c}=t,{apply:d=()=>{},...u}=Ar(e,t),m=await i.detectOverflow(t,u),h=Fn(n),f=kr(n),v=xr(n)==="y",{width:b,height:w}=r.floating;let x,T;h==="top"||h==="bottom"?(x=h,T=f===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(T=h,x=f==="end"?"top":"bottom");const k=w-m.top-m.bottom,C=b-m.left-m.right,E=_r(w-m[x],k),_=_r(b-m[T],C),D=!t.middlewareData.shift;let R=E,O=_;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(O=C),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(R=k),D&&!f){const U=Fa(m.left,0),B=Fa(m.right,0),z=Fa(m.top,0),F=Fa(m.bottom,0);v?O=b-2*(U!==0||B!==0?U+B:Fa(m.left,m.right)):R=w-2*(z!==0||F!==0?z+F:Fa(m.top,m.bottom))}await d({...t,availableWidth:O,availableHeight:R});const L=await i.getDimensions(c.floating);return b!==L.width||w!==L.height?{reset:{rects:!0}}:{}}}};function ub(){return typeof window<"u"}function eu(e){return kF(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ts(e){var t;return(t=(kF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kF(e){return ub()?e instanceof Node||e instanceof Ln(e).Node:!1}function Rr(e){return ub()?e instanceof Element||e instanceof Ln(e).Element:!1}function zs(e){return ub()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function GO(e){return!ub()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}function bm(e){const{overflow:t,overflowX:o,overflowY:a,display:n}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+o)&&n!=="inline"&&n!=="contents"}function Lne(e){return/^(table|td|th)$/.test(eu(e))}function pb(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Bne=/transform|translate|scale|rotate|perspective|filter/,Fne=/paint|layout|strict|content/,kl=e=>!!e&&e!=="none";let US;function fE(e){const t=Rr(e)?Dr(e):e;return kl(t.transform)||kl(t.translate)||kl(t.scale)||kl(t.rotate)||kl(t.perspective)||!vE()&&(kl(t.backdropFilter)||kl(t.filter))||Bne.test(t.willChange||"")||Fne.test(t.contain||"")}function jne(e){let t=Hi(e);for(;zs(t)&&!qd(t);){if(fE(t))return t;if(pb(t))return null;t=Hi(t)}return null}function vE(){return US==null&&(US=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),US}function qd(e){return/^(html|body|#document)$/.test(eu(e))}function Dr(e){return Ln(e).getComputedStyle(e)}function mb(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hi(e){if(eu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||GO(e)&&e.host||ts(e);return GO(t)?t.host:t}function EF(e){const t=Hi(e);return qd(t)?e.ownerDocument?e.ownerDocument.body:e.body:zs(t)&&bm(t)?t:EF(t)}function Gp(e,t,o){var a;t===void 0&&(t=[]),o===void 0&&(o=!0);const n=EF(e),r=n===((a=e.ownerDocument)==null?void 0:a.body),i=Ln(n);if(r){const c=$x(i);return t.concat(i,i.visualViewport||[],bm(n)?n:[],c&&o?Gp(c):[])}else return t.concat(n,Gp(n,[],o))}function $x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CF(e){const t=Dr(e);let o=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const n=zs(e),r=n?e.offsetWidth:o,i=n?e.offsetHeight:a,c=rv(o)!==r||rv(a)!==i;return c&&(o=r,a=i),{width:o,height:a,$:c}}function bE(e){return Rr(e)?e:e.contextElement}function kd(e){const t=bE(e);if(!zs(t))return Xr(1);const o=t.getBoundingClientRect(),{width:a,height:n,$:r}=CF(t);let i=(r?rv(o.width):o.width)/a,c=(r?rv(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const zne=Xr(0);function PF(e){const t=Ln(e);return!vE()||!t.visualViewport?zne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qne(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Ln(e)?!1:t}function $l(e,t,o,a){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=e.getBoundingClientRect(),r=bE(e);let i=Xr(1);t&&(a?Rr(a)&&(i=kd(a)):i=kd(e));const c=qne(r,o,a)?PF(r):Xr(0);let d=(n.left+c.x)/i.x,u=(n.top+c.y)/i.y,m=n.width/i.x,h=n.height/i.y;if(r){const f=Ln(r),v=a&&Rr(a)?Ln(a):a;let b=f,w=$x(b);for(;w&&a&&v!==b;){const x=kd(w),T=w.getBoundingClientRect(),k=Dr(w),C=T.left+(w.clientLeft+parseFloat(k.paddingLeft))*x.x,E=T.top+(w.clientTop+parseFloat(k.paddingTop))*x.y;d*=x.x,u*=x.y,m*=x.x,h*=x.y,d+=C,u+=E,b=Ln(w),w=$x(b)}}return zd({width:m,height:h,x:d,y:u})}function hb(e,t){const o=mb(e).scrollLeft;return t?t.left+o:$l(ts(e)).left+o}function _F(e,t){const o=e.getBoundingClientRect(),a=o.left+t.scrollLeft-hb(e,o),n=o.top+t.scrollTop;return{x:a,y:n}}function Une(e){let{elements:t,rect:o,offsetParent:a,strategy:n}=e;const r=n==="fixed",i=ts(a),c=t?pb(t.floating):!1;if(a===i||c&&r)return o;let d={scrollLeft:0,scrollTop:0},u=Xr(1);const m=Xr(0),h=zs(a);if((h||!h&&!r)&&((eu(a)!=="body"||bm(i))&&(d=mb(a)),h)){const v=$l(a);u=kd(a),m.x=v.x+a.clientLeft,m.y=v.y+a.clientTop}const f=i&&!h&&!r?_F(i,d):Xr(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-d.scrollLeft*u.x+m.x+f.x,y:o.y*u.y-d.scrollTop*u.y+m.y+f.y}}function $ne(e){return Array.from(e.getClientRects())}function Vne(e){const t=ts(e),o=mb(e),a=e.ownerDocument.body,n=Fa(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=Fa(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-o.scrollLeft+hb(e);const c=-o.scrollTop;return Dr(a).direction==="rtl"&&(i+=Fa(t.clientWidth,a.clientWidth)-n),{width:n,height:r,x:i,y:c}}const WO=25;function Hne(e,t){const o=Ln(e),a=ts(e),n=o.visualViewport;let r=a.clientWidth,i=a.clientHeight,c=0,d=0;if(n){r=n.width,i=n.height;const m=vE();(!m||m&&t==="fixed")&&(c=n.offsetLeft,d=n.offsetTop)}const u=hb(a);if(u<=0){const m=a.ownerDocument,h=m.body,f=getComputedStyle(h),v=m.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(a.clientWidth-h.clientWidth-v);b<=WO&&(r-=b)}else u<=WO&&(r+=u);return{width:r,height:i,x:c,y:d}}function Gne(e,t){const o=$l(e,!0,t==="fixed"),a=o.top+e.clientTop,n=o.left+e.clientLeft,r=zs(e)?kd(e):Xr(1),i=e.clientWidth*r.x,c=e.clientHeight*r.y,d=n*r.x,u=a*r.y;return{width:i,height:c,x:d,y:u}}function KO(e,t,o){let a;if(t==="viewport")a=Hne(e,o);else if(t==="document")a=Vne(ts(e));else if(Rr(t))a=Gne(t,o);else{const n=PF(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return zd(a)}function AF(e,t){const o=Hi(e);return o===t||!Rr(o)||qd(o)?!1:Dr(o).position==="fixed"||AF(o,t)}function Wne(e,t){const o=t.get(e);if(o)return o;let a=Gp(e,[],!1).filter(c=>Rr(c)&&eu(c)!=="body"),n=null;const r=Dr(e).position==="fixed";let i=r?Hi(e):e;for(;Rr(i)&&!qd(i);){const c=Dr(i),d=fE(i);!d&&c.position==="fixed"&&(n=null),(r?!d&&!n:!d&&c.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||bm(i)&&!d&&AF(e,i))?a=a.filter(m=>m!==i):n=c,i=Hi(i)}return t.set(e,a),a}function Kne(e){let{element:t,boundary:o,rootBoundary:a,strategy:n}=e;const i=[...o==="clippingAncestors"?pb(t)?[]:Wne(t,this._c):[].concat(o),a],c=KO(t,i[0],n);let d=c.top,u=c.right,m=c.bottom,h=c.left;for(let f=1;f<i.length;f++){const v=KO(t,i[f],n);d=Fa(v.top,d),u=_r(v.right,u),m=_r(v.bottom,m),h=Fa(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function Yne(e){const{width:t,height:o}=CF(e);return{width:t,height:o}}function Zne(e,t,o){const a=zs(t),n=ts(t),r=o==="fixed",i=$l(e,!0,r,t);let c={scrollLeft:0,scrollTop:0};const d=Xr(0);function u(){d.x=hb(n)}if(a||!a&&!r)if((eu(t)!=="body"||bm(n))&&(c=mb(t)),a){const v=$l(t,!0,r,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else n&&u();r&&!a&&n&&u();const m=n&&!a&&!r?_F(n,c):Xr(0),h=i.left+c.scrollLeft-d.x-m.x,f=i.top+c.scrollTop-d.y-m.y;return{x:h,y:f,width:i.width,height:i.height}}function $S(e){return Dr(e).position==="static"}function YO(e,t){if(!zs(e)||Dr(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return ts(e)===o&&(o=o.ownerDocument.body),o}function RF(e,t){const o=Ln(e);if(pb(e))return o;if(!zs(e)){let n=Hi(e);for(;n&&!qd(n);){if(Rr(n)&&!$S(n))return n;n=Hi(n)}return o}let a=YO(e,t);for(;a&&Lne(a)&&$S(a);)a=YO(a,t);return a&&qd(a)&&$S(a)&&!fE(a)?o:a||jne(e)||o}const Qne=async function(e){const t=this.getOffsetParent||RF,o=this.getDimensions,a=await o(e.floating);return{reference:Zne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Jne(e){return Dr(e).direction==="rtl"}const Xne={convertOffsetParentRelativeRectToViewportRelativeRect:Une,getDocumentElement:ts,getClippingRect:Kne,getOffsetParent:RF,getElementRects:Qne,getClientRects:$ne,getDimensions:Yne,getScale:kd,isElement:Rr,isRTL:Jne};function DF(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ere(e,t){let o=null,a;const n=ts(e);function r(){var c;clearTimeout(a),(c=o)==null||c.disconnect(),o=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),r();const u=e.getBoundingClientRect(),{left:m,top:h,width:f,height:v}=u;if(c||t(),!f||!v)return;const b=Hg(h),w=Hg(n.clientWidth-(m+f)),x=Hg(n.clientHeight-(h+v)),T=Hg(m),C={rootMargin:-b+"px "+-w+"px "+-x+"px "+-T+"px",threshold:Fa(0,_r(1,d))||1};let E=!0;function _(D){const R=D[0].intersectionRatio;if(R!==d){if(!E)return i();R?i(!1,R):a=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!DF(u,e.getBoundingClientRect())&&i(),E=!1}try{o=new IntersectionObserver(_,{...C,root:n.ownerDocument})}catch{o=new IntersectionObserver(_,C)}o.observe(e)}return i(!0),r}function tre(e,t,o,a){a===void 0&&(a={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=a,u=bE(e),m=n||r?[...u?Gp(u):[],...t?Gp(t):[]]:[];m.forEach(T=>{n&&T.addEventListener("scroll",o,{passive:!0}),r&&T.addEventListener("resize",o)});const h=u&&c?ere(u,o):null;let f=-1,v=null;i&&(v=new ResizeObserver(T=>{let[k]=T;k&&k.target===u&&v&&t&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),o()}),u&&!d&&v.observe(u),t&&v.observe(t));let b,w=d?$l(e):null;d&&x();function x(){const T=$l(e);w&&!DF(w,T)&&o(),w=T,b=requestAnimationFrame(x)}return o(),()=>{var T;m.forEach(k=>{n&&k.removeEventListener("scroll",o),r&&k.removeEventListener("resize",o)}),h?.(),(T=v)==null||T.disconnect(),v=null,d&&cancelAnimationFrame(b)}}const ore=One,Zxe=Cne,are=Nne,nre=Pne,rre=Ine,sre=_ne,ZO=kne,Qxe=Rne,ire=Mne,lre=(e,t,o)=>{const a=new Map,n={platform:Xne,...o},r={...n.platform,_c:a};return xne(e,t,{...n,platform:r})};var cre=typeof document<"u",dre=function(){},Tf=cre?A.useLayoutEffect:dre;function lv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,a,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(a=o;a--!==0;)if(!lv(e[a],t[a]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!{}.hasOwnProperty.call(t,n[a]))return!1;for(a=o;a--!==0;){const r=n[a];if(!(r==="_owner"&&e.$$typeof)&&!lv(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function OF(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function QO(e,t){const o=OF(e);return Math.round(t*o)/o}function VS(e){const t=A.useRef(e);return Tf(()=>{t.current=e}),t}function ure(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:n,elements:{reference:r,floating:i}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[m,h]=A.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=A.useState(a);lv(f,a)||v(a);const[b,w]=A.useState(null),[x,T]=A.useState(null),k=A.useCallback(J=>{J!==D.current&&(D.current=J,w(J))},[]),C=A.useCallback(J=>{J!==R.current&&(R.current=J,T(J))},[]),E=r||b,_=i||x,D=A.useRef(null),R=A.useRef(null),O=A.useRef(m),L=d!=null,U=VS(d),B=VS(n),z=VS(u),F=A.useCallback(()=>{if(!D.current||!R.current)return;const J={placement:t,strategy:o,middleware:f};B.current&&(J.platform=B.current),lre(D.current,R.current,J).then(se=>{const Q={...se,isPositioned:z.current!==!1};W.current&&!lv(O.current,Q)&&(O.current=Q,lm.flushSync(()=>{h(Q)}))})},[f,t,o,B,z]);Tf(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,h(J=>({...J,isPositioned:!1})))},[u]);const W=A.useRef(!1);Tf(()=>(W.current=!0,()=>{W.current=!1}),[]),Tf(()=>{if(E&&(D.current=E),_&&(R.current=_),E&&_){if(U.current)return U.current(E,_,F);F()}},[E,_,F,U,L]);const oe=A.useMemo(()=>({reference:D,floating:R,setReference:k,setFloating:C}),[k,C]),H=A.useMemo(()=>({reference:E,floating:_}),[E,_]),K=A.useMemo(()=>{const J={position:o,left:0,top:0};if(!H.floating)return J;const se=QO(H.floating,m.x),Q=QO(H.floating,m.y);return c?{...J,transform:"translate("+se+"px, "+Q+"px)",...OF(H.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:se,top:Q}},[o,c,H.floating,m.x,m.y]);return A.useMemo(()=>({...m,update:F,refs:oe,elements:H,floatingStyles:K}),[m,F,oe,H,K])}const pre=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:a,padding:n}=typeof e=="function"?e(o):e;return a&&t(a)?a.current!=null?ZO({element:a.current,padding:n}).fn(o):{}:a?ZO({element:a,padding:n}).fn(o):{}}}},mre=(e,t)=>{const o=ore(e);return{name:o.name,fn:o.fn,options:[e,t]}},hre=(e,t)=>{const o=are(e);return{name:o.name,fn:o.fn,options:[e,t]}},gre=(e,t)=>({fn:ire(e).fn,options:[e,t]}),fre=(e,t)=>{const o=nre(e);return{name:o.name,fn:o.fn,options:[e,t]}},vre=(e,t)=>{const o=rre(e);return{name:o.name,fn:o.fn,options:[e,t]}},bre=(e,t)=>{const o=sre(e);return{name:o.name,fn:o.fn,options:[e,t]}},yre=(e,t)=>{const o=pre(e);return{name:o.name,fn:o.fn,options:[e,t]}};var wre="Arrow",NF=A.forwardRef((e,t)=>{const{children:o,width:a=10,height:n=5,...r}=e;return y.jsx(Do.svg,{...r,ref:t,width:a,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});NF.displayName=wre;var Sre=NF;function MF(e){const[t,o]=A.useState(void 0);return Cr(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;const r=n[0];let i,c;if("borderBoxSize"in r){const d=r.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,c=u.blockSize}else i=e.offsetWidth,c=e.offsetHeight;o({width:i,height:c})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else o(void 0)},[e]),t}var yE="Popper",[IF,LF]=el(yE),[Tre,BF]=IF(yE),FF=e=>{const{__scopePopper:t,children:o}=e,[a,n]=A.useState(null);return y.jsx(Tre,{scope:t,anchor:a,onAnchorChange:n,children:o})};FF.displayName=yE;var jF="PopperAnchor",zF=A.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:a,...n}=e,r=BF(jF,o),i=A.useRef(null),c=$o(t,i),d=A.useRef(null);return A.useEffect(()=>{const u=d.current;d.current=a?.current||i.current,u!==d.current&&r.onAnchorChange(d.current)}),a?null:y.jsx(Do.div,{...n,ref:c})});zF.displayName=jF;var wE="PopperContent",[xre,kre]=IF(wE),qF=A.forwardRef((e,t)=>{const{__scopePopper:o,side:a="bottom",sideOffset:n=0,align:r="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:v="optimized",onPlaced:b,...w}=e,x=BF(wE,o),[T,k]=A.useState(null),C=$o(t,de=>k(de)),[E,_]=A.useState(null),D=MF(E),R=D?.width??0,O=D?.height??0,L=a+(r!=="center"?"-"+r:""),U=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(u)?u:[u],z=B.length>0,F={padding:U,boundary:B.filter(Cre),altBoundary:z},{refs:W,floatingStyles:oe,placement:H,isPositioned:K,middlewareData:J}=ure({strategy:"fixed",placement:L,whileElementsMounted:(...de)=>tre(...de,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[mre({mainAxis:n+O,alignmentAxis:i}),d&&hre({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?gre():void 0,...F}),d&&fre({...F}),vre({...F,apply:({elements:de,rects:ue,availableWidth:Ee,availableHeight:qe})=>{const{width:Z,height:ne}=ue.reference,ve=de.floating.style;ve.setProperty("--radix-popper-available-width",`${Ee}px`),ve.setProperty("--radix-popper-available-height",`${qe}px`),ve.setProperty("--radix-popper-anchor-width",`${Z}px`),ve.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),E&&yre({element:E,padding:c}),Pre({arrowWidth:R,arrowHeight:O}),f&&bre({strategy:"referenceHidden",...F})]}),[se,Q]=VF(H),M=Pr(b);Cr(()=>{K&&M?.()},[K,M]);const G=J.arrow?.x,V=J.arrow?.y,I=J.arrow?.centerOffset!==0,[j,X]=A.useState();return Cr(()=>{T&&X(window.getComputedStyle(T).zIndex)},[T]),y.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:K?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[J.transformOrigin?.x,J.transformOrigin?.y].join(" "),...J.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(xre,{scope:o,placedSide:se,onArrowChange:_,arrowX:G,arrowY:V,shouldHideArrow:I,children:y.jsx(Do.div,{"data-side":se,"data-align":Q,...w,ref:C,style:{...w.style,animation:K?void 0:"none"}})})})});qF.displayName=wE;var UF="PopperArrow",Ere={top:"bottom",right:"left",bottom:"top",left:"right"},$F=A.forwardRef(function(t,o){const{__scopePopper:a,...n}=t,r=kre(UF,a),i=Ere[r.placedSide];return y.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:y.jsx(Sre,{...n,ref:o,style:{...n.style,display:"block"}})})});$F.displayName=UF;function Cre(e){return e!==null}var Pre=e=>({name:"transformOrigin",options:e,fn(t){const{placement:o,rects:a,middlewareData:n}=t,i=n.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,m]=VF(o),h={start:"0%",center:"50%",end:"100%"}[m],f=(n.arrow?.x??0)+c/2,v=(n.arrow?.y??0)+d/2;let b="",w="";return u==="bottom"?(b=i?h:`${f}px`,w=`${-d}px`):u==="top"?(b=i?h:`${f}px`,w=`${a.floating.height+d}px`):u==="right"?(b=`${-d}px`,w=i?h:`${v}px`):u==="left"&&(b=`${a.floating.width+d}px`,w=i?h:`${v}px`),{data:{x:b,y:w}}}});function VF(e){const[t,o="center"]=e.split("-");return[t,o]}var HF=FF,_re=zF,Are=qF,Rre=$F,Dre="Portal",SE=A.forwardRef((e,t)=>{const{container:o,...a}=e,[n,r]=A.useState(!1);Cr(()=>r(!0),[]);const i=o||n&&globalThis?.document?.body;return i?QM.createPortal(y.jsx(Do.div,{...a,ref:t}),i):null});SE.displayName=Dre;function Ore(e,t){return A.useReducer((o,a)=>t[o][a]??o,e)}var qs=e=>{const{present:t,children:o}=e,a=Nre(t),n=typeof o=="function"?o({present:a.isPresent}):A.Children.only(o),r=$o(a.ref,Mre(n));return typeof o=="function"||a.isPresent?A.cloneElement(n,{ref:r}):null};qs.displayName="Presence";function Nre(e){const[t,o]=A.useState(),a=A.useRef(null),n=A.useRef(e),r=A.useRef("none"),i=e?"mounted":"unmounted",[c,d]=Ore(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const u=Gg(a.current);r.current=c==="mounted"?u:"none"},[c]),Cr(()=>{const u=a.current,m=n.current;if(m!==e){const f=r.current,v=Gg(u);e?d("MOUNT"):v==="none"||u?.display==="none"?d("UNMOUNT"):d(m&&f!==v?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,d]),Cr(()=>{if(t){let u;const m=t.ownerDocument.defaultView??window,h=v=>{const w=Gg(a.current).includes(CSS.escape(v.animationName));if(v.target===t&&w&&(d("ANIMATION_END"),!n.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=v=>{v.target===t&&(r.current=Gg(a.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:A.useCallback(u=>{a.current=u?getComputedStyle(u):null,o(u)},[])}}function Gg(e){return e?.animationName||"none"}function Mre(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var HS="rovingFocusGroup.onEntryFocus",Ire={bubbles:!1,cancelable:!0},ym="RovingFocusGroup",[Vx,GF,Lre]=hF(ym),[Bre,WF]=el(ym,[Lre]),[Fre,jre]=Bre(ym),KF=A.forwardRef((e,t)=>y.jsx(Vx.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Vx.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(zre,{...e,ref:t})})}));KF.displayName=ym;var zre=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,orientation:a,loop:n=!1,dir:r,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:m=!1,...h}=e,f=A.useRef(null),v=$o(t,f),b=gF(r),[w,x]=vm({prop:i,defaultProp:c??null,onChange:d,caller:ym}),[T,k]=A.useState(!1),C=Pr(u),E=GF(o),_=A.useRef(!1),[D,R]=A.useState(0);return A.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(HS,C),()=>O.removeEventListener(HS,C)},[C]),y.jsx(Fre,{scope:o,orientation:a,dir:b,loop:n,currentTabStopId:w,onItemFocus:A.useCallback(O=>x(O),[x]),onItemShiftTab:A.useCallback(()=>k(!0),[]),onFocusableItemAdd:A.useCallback(()=>R(O=>O+1),[]),onFocusableItemRemove:A.useCallback(()=>R(O=>O-1),[]),children:y.jsx(Do.div,{tabIndex:T||D===0?-1:0,"data-orientation":a,...h,ref:v,style:{outline:"none",...e.style},onMouseDown:mt(e.onMouseDown,()=>{_.current=!0}),onFocus:mt(e.onFocus,O=>{const L=!_.current;if(O.target===O.currentTarget&&L&&!T){const U=new CustomEvent(HS,Ire);if(O.currentTarget.dispatchEvent(U),!U.defaultPrevented){const B=E().filter(H=>H.focusable),z=B.find(H=>H.active),F=B.find(H=>H.id===w),oe=[z,F,...B].filter(Boolean).map(H=>H.ref.current);QF(oe,m)}}_.current=!1}),onBlur:mt(e.onBlur,()=>k(!1))})})}),YF="RovingFocusGroupItem",ZF=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:o,focusable:a=!0,active:n=!1,tabStopId:r,children:i,...c}=e,d=zi(),u=r||d,m=jre(YF,o),h=m.currentTabStopId===u,f=GF(o),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:w}=m;return A.useEffect(()=>{if(a)return v(),()=>b()},[a,v,b]),y.jsx(Vx.ItemSlot,{scope:o,id:u,focusable:a,active:n,children:y.jsx(Do.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:mt(e.onMouseDown,x=>{a?m.onItemFocus(u):x.preventDefault()}),onFocus:mt(e.onFocus,()=>m.onItemFocus(u)),onKeyDown:mt(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){m.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const T=$re(x,m.orientation,m.dir);if(T!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=f().filter(E=>E.focusable).map(E=>E.ref.current);if(T==="last")C.reverse();else if(T==="prev"||T==="next"){T==="prev"&&C.reverse();const E=C.indexOf(x.currentTarget);C=m.loop?Vre(C,E+1):C.slice(E+1)}setTimeout(()=>QF(C))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:w!=null}):i})})});ZF.displayName=YF;var qre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ure(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $re(e,t,o){const a=Ure(e.key,o);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return qre[a]}function QF(e,t=!1){const o=document.activeElement;for(const a of e)if(a===o||(a.focus({preventScroll:t}),document.activeElement!==o))return}function Vre(e,t){return e.map((o,a)=>e[(t+a)%e.length])}var Hre=KF,Gre=ZF,Wre=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yc=new WeakMap,Wg=new WeakMap,Kg={},GS=0,JF=function(e){return e&&(e.host||JF(e.parentNode))},Kre=function(e,t){return t.map(function(o){if(e.contains(o))return o;var a=JF(o);return a&&e.contains(a)?a:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},Yre=function(e,t,o,a){var n=Kre(t,Array.isArray(e)?e:[e]);Kg[o]||(Kg[o]=new WeakMap);var r=Kg[o],i=[],c=new Set,d=new Set(n),u=function(h){!h||c.has(h)||(c.add(h),u(h.parentNode))};n.forEach(u);var m=function(h){!h||d.has(h)||Array.prototype.forEach.call(h.children,function(f){if(c.has(f))m(f);else try{var v=f.getAttribute(a),b=v!==null&&v!=="false",w=(Yc.get(f)||0)+1,x=(r.get(f)||0)+1;Yc.set(f,w),r.set(f,x),i.push(f),w===1&&b&&Wg.set(f,!0),x===1&&f.setAttribute(o,"true"),b||f.setAttribute(a,"true")}catch(T){console.error("aria-hidden: cannot operate on ",f,T)}})};return m(t),c.clear(),GS++,function(){i.forEach(function(h){var f=Yc.get(h)-1,v=r.get(h)-1;Yc.set(h,f),r.set(h,v),f||(Wg.has(h)||h.removeAttribute(a),Wg.delete(h)),v||h.removeAttribute(o)}),GS--,GS||(Yc=new WeakMap,Yc=new WeakMap,Wg=new WeakMap,Kg={})}},XF=function(e,t,o){o===void 0&&(o="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),n=Wre(e);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),Yre(a,n,o,"aria-hidden")):function(){return null}},Yr=function(){return Yr=Object.assign||function(t){for(var o,a=1,n=arguments.length;a<n;a++){o=arguments[a];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},Yr.apply(this,arguments)};function ej(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o}function Zre(e,t,o){if(o||arguments.length===2)for(var a=0,n=t.length,r;a<n;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var xf="right-scroll-bar-position",kf="width-before-scroll-bar",Qre="with-scroll-bars-hidden",Jre="--removed-body-scroll-bar-size";function WS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xre(e,t){var o=A.useState(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(a){var n=o.value;n!==a&&(o.value=a,o.callback(a,n))}}}})[0];return o.callback=t,o.facade}var ese=typeof window<"u"?A.useLayoutEffect:A.useEffect,JO=new WeakMap;function tse(e,t){var o=Xre(null,function(a){return e.forEach(function(n){return WS(n,a)})});return ese(function(){var a=JO.get(o);if(a){var n=new Set(a),r=new Set(e),i=o.current;n.forEach(function(c){r.has(c)||WS(c,null)}),r.forEach(function(c){n.has(c)||WS(c,i)})}JO.set(o,e)},[e]),o}function ose(e){return e}function ase(e,t){t===void 0&&(t=ose);var o=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(r){var i=t(r,a);return o.push(i),function(){o=o.filter(function(c){return c!==i})}},assignSyncMedium:function(r){for(a=!0;o.length;){var i=o;o=[],i.forEach(r)}o={push:function(c){return r(c)},filter:function(){return o}}},assignMedium:function(r){a=!0;var i=[];if(o.length){var c=o;o=[],c.forEach(r),i=o}var d=function(){var m=i;i=[],m.forEach(r)},u=function(){return Promise.resolve().then(d)};u(),o={push:function(m){i.push(m),u()},filter:function(m){return i=i.filter(m),o}}}};return n}function nse(e){e===void 0&&(e={});var t=ase(null);return t.options=Yr({async:!0,ssr:!1},e),t}var tj=function(e){var t=e.sideCar,o=ej(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return A.createElement(a,Yr({},o))};tj.isSideCarExport=!0;function rse(e,t){return e.useMedium(t),tj}var oj=nse(),KS=function(){},gb=A.forwardRef(function(e,t){var o=A.useRef(null),a=A.useState({onScrollCapture:KS,onWheelCapture:KS,onTouchMoveCapture:KS}),n=a[0],r=a[1],i=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,m=e.enabled,h=e.shards,f=e.sideCar,v=e.noRelative,b=e.noIsolation,w=e.inert,x=e.allowPinchZoom,T=e.as,k=T===void 0?"div":T,C=e.gapMode,E=ej(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,D=tse([o,t]),R=Yr(Yr({},E),n);return A.createElement(A.Fragment,null,m&&A.createElement(_,{sideCar:oj,removeScrollBar:u,shards:h,noRelative:v,noIsolation:b,inert:w,setCallbacks:r,allowPinchZoom:!!x,lockRef:o,gapMode:C}),i?A.cloneElement(A.Children.only(c),Yr(Yr({},R),{ref:D})):A.createElement(k,Yr({},R,{className:d,ref:D}),c))});gb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gb.classNames={fullWidth:kf,zeroRight:xf};var sse=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ise(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sse();return t&&e.setAttribute("nonce",t),e}function lse(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cse(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var dse=function(){var e=0,t=null;return{add:function(o){e==0&&(t=ise())&&(lse(t,o),cse(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},use=function(){var e=dse();return function(t,o){A.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},aj=function(){var e=use(),t=function(o){var a=o.styles,n=o.dynamic;return e(a,n),null};return t},pse={left:0,top:0,right:0,gap:0},YS=function(e){return parseInt(e||"",10)||0},mse=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[YS(o),YS(a),YS(n)]},hse=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pse;var t=mse(e),o=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-o+t[2]-t[0])}},gse=aj(),Ed="data-scroll-locked",fse=function(e,t,o,a){var n=e.left,r=e.top,i=e.right,c=e.gap;return o===void 0&&(o="margin"),`
|
|
145
145
|
.`.concat(Qre,` {
|
|
146
146
|
overflow: hidden `).concat(a,`;
|
|
147
147
|
padding-right: `).concat(c,"px ").concat(a,`;
|
|
@@ -182,7 +182,7 @@ Pedido: {idea}`,"plan.case.waiting":"Abrindo o business case…","plan.case.aski
|
|
|
182
182
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
183
183
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
184
184
|
`)},_se=0,Qc=[];function Ase(e){var t=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(_se++)[0],r=A.useState(aj)[0],i=A.useRef(e);A.useEffect(function(){i.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var w=Zre([e.lockRef.current],(e.shards||[]).map(o2),!0).filter(Boolean);return w.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),w.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var c=A.useCallback(function(w,x){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!i.current.allowPinchZoom;var T=Zg(w),k=o.current,C="deltaX"in w?w.deltaX:k[0]-T[0],E="deltaY"in w?w.deltaY:k[1]-T[1],_,D=w.target,R=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in w&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,U=L?L===D||L.contains(D):!1;if(U)return!1;var B=e2(R,D);if(!B)return!0;if(B?_=R:(_=R==="v"?"h":"v",B=e2(R,D)),!B)return!1;if(!a.current&&"changedTouches"in w&&(C||E)&&(a.current=_),!_)return!0;var z=a.current||_;return Ese(z,x,w,z==="h"?C:E)},[]),d=A.useCallback(function(w){var x=w;if(!(!Qc.length||Qc[Qc.length-1]!==r)){var T="deltaY"in x?t2(x):Zg(x),k=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&Cse(_.delta,T)})[0];if(k&&k.should){x.cancelable&&x.preventDefault();return}if(!k){var C=(i.current.shards||[]).map(o2).filter(Boolean).filter(function(_){return _.contains(x.target)}),E=C.length>0?c(x,C[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=A.useCallback(function(w,x,T,k){var C={name:w,delta:x,target:T,should:k,shadowParent:Rse(T)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),m=A.useCallback(function(w){o.current=Zg(w),a.current=void 0},[]),h=A.useCallback(function(w){u(w.type,t2(w),w.target,c(w,e.lockRef.current))},[]),f=A.useCallback(function(w){u(w.type,Zg(w),w.target,c(w,e.lockRef.current))},[]);A.useEffect(function(){return Qc.push(r),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Zc),document.addEventListener("touchmove",d,Zc),document.addEventListener("touchstart",m,Zc),function(){Qc=Qc.filter(function(w){return w!==r}),document.removeEventListener("wheel",d,Zc),document.removeEventListener("touchmove",d,Zc),document.removeEventListener("touchstart",m,Zc)}},[]);var v=e.removeScrollBar,b=e.inert;return A.createElement(A.Fragment,null,b?A.createElement(r,{styles:Pse(n)}):null,v?A.createElement(bse,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Rse(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Dse=rse(oj,Ase);var TE=A.forwardRef(function(e,t){return A.createElement(gb,Yr({},e,{ref:t,sideCar:Dse}))});TE.classNames=gb.classNames;var Gx=["Enter"," "],Ose=["ArrowDown","PageUp","Home"],ij=["ArrowUp","PageDown","End"],Nse=[...Ose,...ij],Mse={ltr:[...Gx,"ArrowRight"],rtl:[...Gx,"ArrowLeft"]},Ise={ltr:["ArrowLeft"],rtl:["ArrowRight"]},wm="Menu",[Wp,Lse,Bse]=hF(wm),[tc,lj]=el(wm,[Bse,LF,WF]),Sm=LF(),cj=WF(),[dj,tl]=tc(wm),[Fse,Tm]=tc(wm),uj=e=>{const{__scopeMenu:t,open:o=!1,children:a,dir:n,onOpenChange:r,modal:i=!0}=e,c=Sm(t),[d,u]=A.useState(null),m=A.useRef(!1),h=Pr(r),f=gF(n);return A.useEffect(()=>{const v=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),y.jsx(HF,{...c,children:y.jsx(dj,{scope:t,open:o,onOpenChange:h,content:d,onContentChange:u,children:y.jsx(Fse,{scope:t,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:i,children:a})})})};uj.displayName=wm;var jse="MenuAnchor",xE=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=Sm(o);return y.jsx(_re,{...n,...a,ref:t})});xE.displayName=jse;var kE="MenuPortal",[zse,pj]=tc(kE,{forceMount:void 0}),mj=e=>{const{__scopeMenu:t,forceMount:o,children:a,container:n}=e,r=tl(kE,t);return y.jsx(zse,{scope:t,forceMount:o,children:y.jsx(qs,{present:o||r.open,children:y.jsx(SE,{asChild:!0,container:n,children:a})})})};mj.displayName=kE;var rr="MenuContent",[qse,EE]=tc(rr),hj=A.forwardRef((e,t)=>{const o=pj(rr,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,r=tl(rr,e.__scopeMenu),i=Tm(rr,e.__scopeMenu);return y.jsx(Wp.Provider,{scope:e.__scopeMenu,children:y.jsx(qs,{present:a||r.open,children:y.jsx(Wp.Slot,{scope:e.__scopeMenu,children:i.modal?y.jsx(Use,{...n,ref:t}):y.jsx($se,{...n,ref:t})})})})}),Use=A.forwardRef((e,t)=>{const o=tl(rr,e.__scopeMenu),a=A.useRef(null),n=$o(t,a);return A.useEffect(()=>{const r=a.current;if(r)return XF(r)},[]),y.jsx(CE,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),$se=A.forwardRef((e,t)=>{const o=tl(rr,e.__scopeMenu);return y.jsx(CE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),Vse=Hp("MenuContent.ScrollLock"),CE=A.forwardRef((e,t)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,disableOutsideScroll:b,...w}=e,x=tl(rr,o),T=Tm(rr,o),k=Sm(o),C=cj(o),E=Lse(o),[_,D]=A.useState(null),R=A.useRef(null),O=$o(t,R,x.onContentChange),L=A.useRef(0),U=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),oe=b?TE:A.Fragment,H=b?{as:Vse,allowPinchZoom:!0}:void 0,K=se=>{const Q=U.current+se,M=E().filter(de=>!de.disabled),G=document.activeElement,V=M.find(de=>de.ref.current===G)?.textValue,I=M.map(de=>de.textValue),j=oie(I,Q,V),X=M.find(de=>de.textValue===j)?.ref.current;(function de(ue){U.current=ue,window.clearTimeout(L.current),ue!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),bF();const J=A.useCallback(se=>F.current===z.current?.side&&nie(se,z.current?.area),[]);return y.jsx(qse,{scope:o,searchRef:U,onItemEnter:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),onItemLeave:A.useCallback(se=>{J(se)||(R.current?.focus(),D(null))},[J]),onTriggerLeave:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(se=>{z.current=se},[]),children:y.jsx(oe,{...H,children:y.jsx(uE,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,se=>{se.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:y.jsx(dE,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:y.jsx(Hre,{asChild:!0,...C,dir:T.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,se=>{T.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(Are,{role:"menu","aria-orientation":"vertical","data-state":Dj(x.open),"data-radix-menu-content":"",dir:T.dir,...k,...w,ref:O,style:{outline:"none",...w.style},onKeyDown:mt(w.onKeyDown,se=>{const M=se.target.closest("[data-radix-menu-content]")===se.currentTarget,G=se.ctrlKey||se.altKey||se.metaKey,V=se.key.length===1;M&&(se.key==="Tab"&&se.preventDefault(),!G&&V&&K(se.key));const I=R.current;if(se.target!==I||!Nse.includes(se.key))return;se.preventDefault();const X=E().filter(de=>!de.disabled).map(de=>de.ref.current);ij.includes(se.key)&&X.reverse(),eie(X)}),onBlur:mt(e.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(L.current),U.current="")}),onPointerMove:mt(e.onPointerMove,Kp(se=>{const Q=se.target,M=W.current!==se.clientX;if(se.currentTarget.contains(Q)&&M){const G=se.clientX>W.current?"right":"left";F.current=G,W.current=se.clientX}}))})})})})})})});hj.displayName=rr;var Hse="MenuGroup",PE=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return y.jsx(Do.div,{role:"group",...a,ref:t})});PE.displayName=Hse;var Gse="MenuLabel",gj=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return y.jsx(Do.div,{...a,ref:t})});gj.displayName=Gse;var cv="MenuItem",a2="menu.itemSelect",fb=A.forwardRef((e,t)=>{const{disabled:o=!1,onSelect:a,...n}=e,r=A.useRef(null),i=Tm(cv,e.__scopeMenu),c=EE(cv,e.__scopeMenu),d=$o(t,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!o&&h){const f=new CustomEvent(a2,{bubbles:!0,cancelable:!0});h.addEventListener(a2,v=>a?.(v),{once:!0}),mF(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return y.jsx(fj,{...n,ref:d,disabled:o,onClick:mt(e.onClick,m),onPointerDown:h=>{e.onPointerDown?.(h),u.current=!0},onPointerUp:mt(e.onPointerUp,h=>{u.current||h.currentTarget?.click()}),onKeyDown:mt(e.onKeyDown,h=>{const f=c.searchRef.current!=="";o||f&&h.key===" "||Gx.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});fb.displayName=cv;var fj=A.forwardRef((e,t)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...r}=e,i=EE(cv,o),c=cj(o),d=A.useRef(null),u=$o(t,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[r.children]),y.jsx(Wp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:y.jsx(Gre,{asChild:!0,...c,focusable:!a,children:y.jsx(Do.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...r,ref:u,onPointerMove:mt(e.onPointerMove,Kp(b=>{a?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(e.onPointerLeave,Kp(b=>i.onItemLeave(b))),onFocus:mt(e.onFocus,()=>h(!0)),onBlur:mt(e.onBlur,()=>h(!1))})})})}),Wse="MenuCheckboxItem",vj=A.forwardRef((e,t)=>{const{checked:o=!1,onCheckedChange:a,...n}=e;return y.jsx(Tj,{scope:e.__scopeMenu,checked:o,children:y.jsx(fb,{role:"menuitemcheckbox","aria-checked":dv(o)?"mixed":o,...n,ref:t,"data-state":RE(o),onSelect:mt(n.onSelect,()=>a?.(dv(o)?!0:!o),{checkForDefaultPrevented:!1})})})});vj.displayName=Wse;var bj="MenuRadioGroup",[Kse,Yse]=tc(bj,{value:void 0,onValueChange:()=>{}}),yj=A.forwardRef((e,t)=>{const{value:o,onValueChange:a,...n}=e,r=Pr(a);return y.jsx(Kse,{scope:e.__scopeMenu,value:o,onValueChange:r,children:y.jsx(PE,{...n,ref:t})})});yj.displayName=bj;var wj="MenuRadioItem",Sj=A.forwardRef((e,t)=>{const{value:o,...a}=e,n=Yse(wj,e.__scopeMenu),r=o===n.value;return y.jsx(Tj,{scope:e.__scopeMenu,checked:r,children:y.jsx(fb,{role:"menuitemradio","aria-checked":r,...a,ref:t,"data-state":RE(r),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});Sj.displayName=wj;var _E="MenuItemIndicator",[Tj,Zse]=tc(_E,{checked:!1}),xj=A.forwardRef((e,t)=>{const{__scopeMenu:o,forceMount:a,...n}=e,r=Zse(_E,o);return y.jsx(qs,{present:a||dv(r.checked)||r.checked===!0,children:y.jsx(Do.span,{...n,ref:t,"data-state":RE(r.checked)})})});xj.displayName=_E;var Qse="MenuSeparator",kj=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return y.jsx(Do.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});kj.displayName=Qse;var Jse="MenuArrow",Ej=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=Sm(o);return y.jsx(Rre,{...n,...a,ref:t})});Ej.displayName=Jse;var AE="MenuSub",[Xse,Cj]=tc(AE),Pj=e=>{const{__scopeMenu:t,children:o,open:a=!1,onOpenChange:n}=e,r=tl(AE,t),i=Sm(t),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Pr(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),y.jsx(HF,{...i,children:y.jsx(dj,{scope:t,open:a,onOpenChange:h,content:u,onContentChange:m,children:y.jsx(Xse,{scope:t,contentId:zi(),triggerId:zi(),trigger:c,onTriggerChange:d,children:o})})})};Pj.displayName=AE;var vp="MenuSubTrigger",_j=A.forwardRef((e,t)=>{const o=tl(vp,e.__scopeMenu),a=Tm(vp,e.__scopeMenu),n=Cj(vp,e.__scopeMenu),r=EE(vp,e.__scopeMenu),i=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=r,u={__scopeMenu:e.__scopeMenu},m=A.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),d(null)}},[c,d]),y.jsx(xE,{asChild:!0,...u,children:y.jsx(fj,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":Dj(o.open),...e,ref:fm(t,n.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(e.onPointerMove,Kp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!o.open&&!i.current&&(r.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100))})),onPointerLeave:mt(e.onPointerLeave,Kp(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",w=b?-5:5,x=f[b?"left":"right"],T=f[b?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+w,y:h.clientY},{x,y:f.top},{x:T,y:f.top},{x:T,y:f.bottom},{x,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(h),h.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:mt(e.onKeyDown,h=>{const f=r.searchRef.current!=="";e.disabled||f&&h.key===" "||Mse[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});_j.displayName=vp;var Aj="MenuSubContent",Rj=A.forwardRef((e,t)=>{const o=pj(rr,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,r=tl(rr,e.__scopeMenu),i=Tm(rr,e.__scopeMenu),c=Cj(Aj,e.__scopeMenu),d=A.useRef(null),u=$o(t,d);return y.jsx(Wp.Provider,{scope:e.__scopeMenu,children:y.jsx(qs,{present:a||r.open,children:y.jsx(Wp.Slot,{scope:e.__scopeMenu,children:y.jsx(CE,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{i.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:mt(e.onFocusOutside,m=>{m.target!==c.trigger&&r.onOpenChange(!1)}),onEscapeKeyDown:mt(e.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:mt(e.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=Ise[i.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});Rj.displayName=Aj;function Dj(e){return e?"open":"closed"}function dv(e){return e==="indeterminate"}function RE(e){return dv(e)?"indeterminate":e?"checked":"unchecked"}function eie(e){const t=document.activeElement;for(const o of e)if(o===t||(o.focus(),document.activeElement!==t))return}function tie(e,t){return e.map((o,a)=>e[(t+a)%e.length])}function oie(e,t,o){const n=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,r=o?e.indexOf(o):-1;let i=tie(e,Math.max(r,0));n.length===1&&(i=i.filter(u=>u!==o));const d=i.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return d!==o?d:void 0}function aie(e,t){const{x:o,y:a}=e;let n=!1;for(let r=0,i=t.length-1;r<t.length;i=r++){const c=t[r],d=t[i],u=c.x,m=c.y,h=d.x,f=d.y;m>a!=f>a&&o<(h-u)*(a-m)/(f-m)+u&&(n=!n)}return n}function nie(e,t){if(!t)return!1;const o={x:e.clientX,y:e.clientY};return aie(o,t)}function Kp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var rie=uj,sie=xE,iie=mj,lie=hj,cie=PE,die=gj,uie=fb,pie=vj,mie=yj,hie=Sj,gie=xj,fie=kj,vie=Ej,bie=Pj,yie=_j,wie=Rj,vb="DropdownMenu",[Sie]=el(vb,[lj]),Va=lj(),[Tie,Oj]=Sie(vb),Nj=e=>{const{__scopeDropdownMenu:t,children:o,dir:a,open:n,defaultOpen:r,onOpenChange:i,modal:c=!0}=e,d=Va(t),u=A.useRef(null),[m,h]=vm({prop:n,defaultProp:r??!1,onChange:i,caller:vb});return y.jsx(Tie,{scope:t,triggerId:zi(),triggerRef:u,contentId:zi(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:y.jsx(rie,{...d,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};Nj.displayName=vb;var Mj="DropdownMenuTrigger",Ij=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=e,r=Oj(Mj,o),i=Va(o);return y.jsx(sie,{asChild:!0,...i,children:y.jsx(Do.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:fm(t,r.triggerRef),onPointerDown:mt(e.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(e.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Ij.displayName=Mj;var xie="DropdownMenuPortal",Lj=e=>{const{__scopeDropdownMenu:t,...o}=e,a=Va(t);return y.jsx(iie,{...a,...o})};Lj.displayName=xie;var Bj="DropdownMenuContent",Fj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Oj(Bj,o),r=Va(o),i=A.useRef(!1);return y.jsx(lie,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...a,ref:t,onCloseAutoFocus:mt(e.onCloseAutoFocus,c=>{i.current||n.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:mt(e.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,m=d.button===2||u;(!n.modal||m)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Fj.displayName=Bj;var kie="DropdownMenuGroup",Eie=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(cie,{...n,...a,ref:t})});Eie.displayName=kie;var Cie="DropdownMenuLabel",jj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(die,{...n,...a,ref:t})});jj.displayName=Cie;var Pie="DropdownMenuItem",zj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(uie,{...n,...a,ref:t})});zj.displayName=Pie;var _ie="DropdownMenuCheckboxItem",qj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(pie,{...n,...a,ref:t})});qj.displayName=_ie;var Aie="DropdownMenuRadioGroup",Uj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(mie,{...n,...a,ref:t})});Uj.displayName=Aie;var Rie="DropdownMenuRadioItem",$j=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(hie,{...n,...a,ref:t})});$j.displayName=Rie;var Die="DropdownMenuItemIndicator",Vj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(gie,{...n,...a,ref:t})});Vj.displayName=Die;var Oie="DropdownMenuSeparator",Hj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(fie,{...n,...a,ref:t})});Hj.displayName=Oie;var Nie="DropdownMenuArrow",Mie=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(vie,{...n,...a,ref:t})});Mie.displayName=Nie;var Iie=e=>{const{__scopeDropdownMenu:t,children:o,open:a,onOpenChange:n,defaultOpen:r}=e,i=Va(t),[c,d]=vm({prop:a,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return y.jsx(bie,{...i,open:c,onOpenChange:d,children:o})},Lie="DropdownMenuSubTrigger",Gj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(yie,{...n,...a,ref:t})});Gj.displayName=Lie;var Bie="DropdownMenuSubContent",Wj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=Va(o);return y.jsx(wie,{...n,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wj.displayName=Bie;var Kj=Nj,Yj=Ij,Zj=Lj,Qj=Fj,Fie=jj,Jj=zj,jie=qj,zie=Uj,qie=$j,Xj=Vj,Uie=Hj,$ie=Iie,Vie=Gj,Hie=Wj;const DE=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));DE.displayName="AlertTriangle";const e3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));e3.displayName="Archive";const t3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));t3.displayName="ArrowUpRight";const o3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 6 9 17l-5-5"}));o3.displayName="Check";const OE=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));OE.displayName="ChevronRight";const a3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));a3.displayName="Circle";const n3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M9 2v2m6-2v2M9 20v2m6-2v2m5-13h2m-2 5h2M2 9h2m-2 5h2m4.8 6h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 17.72 20 16.88 20 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 4 16.88 4 15.2 4H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 6.28 4 7.12 4 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 20 7.12 20 8.8 20Zm1.8-5h2.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C15 14.24 15 13.96 15 13.4v-2.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 9 13.96 9 13.4 9h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 9.76 9 10.04 9 10.6v2.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C9.76 15 10.04 15 10.6 15Z"}));n3.displayName="CpuChip01";const r3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));r3.displayName="DotsHorizontal";const s3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));s3.displayName="GitBranch01";const i3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M2.5 12h19M6 16h4M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));i3.displayName="HardDrive";const l3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));l3.displayName="LinkExternal01";const c3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));c3.displayName="Lock01";const d3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));d3.displayName="RefreshCw01";const u3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));u3.displayName="Server01";const p3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M11.302 21.615c.221.129.332.194.488.227.122.026.298.026.42 0 .156-.034.267-.098.488-.227C14.646 20.478 20 16.908 20 12V7.217c0-.799 0-1.199-.13-1.542a2 2 0 0 0-.548-.79c-.275-.243-.65-.383-1.398-.664l-5.362-2.01c-.208-.078-.312-.117-.419-.133a1 1 0 0 0-.286 0c-.107.016-.21.055-.419.133L6.076 4.22c-.748.28-1.122.421-1.398.664a2 2 0 0 0-.547.79C4 6.018 4 6.418 4 7.217V12c0 4.908 5.354 8.478 7.302 9.615Z"}));p3.displayName="Shield01";const m3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));m3.displayName="User01";const h3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));h3.displayName="Users03";const g3=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));g3.displayName="X";function Gie(e){const t=ye.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=y.jsx(Kj,{"data-slot":"dropdown-menu",...o}),t[2]=o,t[3]=a):a=t[3],a}function Wie(e){const t=ye.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=y.jsx(Yj,{"data-slot":"dropdown-menu-trigger",...o}),t[2]=o,t[3]=a):a=t[3],a}function Kie(e){const t=ye.c(10);let o,a,n;t[0]!==e?({className:o,sideOffset:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const r=n===void 0?4:n;let i;t[4]!==o?(i=Je("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-md",o),t[4]=o,t[5]=i):i=t[5];let c;return t[6]!==a||t[7]!==r||t[8]!==i?(c=y.jsx(Zj,{children:y.jsx(Qj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:i,...a})}),t[6]=a,t[7]=r,t[8]=i,t[9]=c):c=t[9],c}function Yie(e){const t=ye.c(12);let o,a,n,r;t[0]!==e?({className:o,inset:a,variant:r,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r):(o=t[1],a=t[2],n=t[3],r=t[4]);const i=r===void 0?"default":r;let c;t[5]!==o?(c=Je("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),t[5]=o,t[6]=c):c=t[6];let d;return t[7]!==a||t[8]!==n||t[9]!==c||t[10]!==i?(d=y.jsx(Jj,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":i,className:c,...n}),t[7]=a,t[8]=n,t[9]=c,t[10]=i,t[11]=d):d=t[11],d}function Jxe(e){const t=ye.c(13);let o,a,n,r;t[0]!==e?({className:n,children:a,checked:o,...r}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r):(o=t[1],a=t[2],n=t[3],r=t[4]);let i;t[5]!==n?(i=Je("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),t[5]=n,t[6]=i):i=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Xj,{children:y.jsx(o3,{className:"size-4"})})}),t[7]=c):c=t[7];let d;return t[8]!==o||t[9]!==a||t[10]!==r||t[11]!==i?(d=y.jsxs(jie,{"data-slot":"dropdown-menu-checkbox-item",className:i,checked:o,...r,children:[c,a]}),t[8]=o,t[9]=a,t[10]=r,t[11]=i,t[12]=d):d=t[12],d}function Xxe(e){const t=ye.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=y.jsx(zie,{"data-slot":"dropdown-menu-radio-group",...o}),t[2]=o,t[3]=a):a=t[3],a}function e0e(e){const t=ye.c(11);let o,a,n;t[0]!==e?({className:a,children:o,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let r;t[4]!==a?(r=Je("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),t[4]=a,t[5]=r):r=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Xj,{children:y.jsx(a3,{className:"size-2 fill-current"})})}),t[6]=i):i=t[6];let c;return t[7]!==o||t[8]!==n||t[9]!==r?(c=y.jsxs(qie,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[i,o]}),t[7]=o,t[8]=n,t[9]=r,t[10]=c):c=t[10],c}function t0e(e){const t=ye.c(10);let o,a,n;t[0]!==e?({className:o,inset:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let r;t[4]!==o?(r=Je("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),t[4]=o,t[5]=r):r=t[5];let i;return t[6]!==a||t[7]!==n||t[8]!==r?(i=y.jsx(Fie,{"data-slot":"dropdown-menu-label","data-inset":a,className:r,...n}),t[6]=a,t[7]=n,t[8]=r,t[9]=i):i=t[9],i}function o0e(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("bg-border -mx-1 my-1 h-px",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(Uie,{"data-slot":"dropdown-menu-separator",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function a0e(e){const t=ye.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=y.jsx($ie,{"data-slot":"dropdown-menu-sub",...o}),t[2]=o,t[3]=a):a=t[3],a}function n0e(e){const t=ye.c(13);let o,a,n,r;t[0]!==e?({className:a,inset:n,children:o,...r}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r):(o=t[1],a=t[2],n=t[3],r=t[4]);let i;t[5]!==a?(i=Je("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),t[5]=a,t[6]=i):i=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx(OE,{className:"ml-auto size-4"}),t[7]=c):c=t[7];let d;return t[8]!==o||t[9]!==n||t[10]!==r||t[11]!==i?(d=y.jsxs(Vie,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:i,...r,children:[o,c]}),t[8]=o,t[9]=n,t[10]=r,t[11]=i,t[12]=d):d=t[12],d}function r0e(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(Hie,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Zie(){const e=ye.c(3),[t,o]=A.useState(-1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=i=>{if(!i)return;const c=()=>o(i.clientWidth);c();const d=new ResizeObserver(c);return d.observe(i),()=>d.disconnect()},e[0]=a):a=e[0];const n=a;let r;return e[1]!==t?(r=[t,n],e[1]=t,e[2]=r):r=e[2],r}function Qie(){let e=new Map;const t=new Set,o=()=>t.forEach(a=>a());return{getSnapshot:()=>e,subscribe(a){return t.add(a),()=>{t.delete(a)}},register(a){if(e.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return e=new Map(e).set(a.after,a),o(),()=>{if(e.get(a.after)!==a)return;const n=new Map(e);n.delete(a.after),e=n,o()}}}}const NE=A.createContext(null);function Jie(e){const t=ye.c(3),{children:o}=e,[a]=A.useState(Qie);let n;return t[0]!==o||t[1]!==a?(n=y.jsx(NE,{value:a,children:o}),t[0]=o,t[1]=a,t[2]=n):n=t[2],n}function Xie(e){const t=ye.c(2),{children:o}=e;let a;return t[0]!==o?(a=y.jsx(NE,{value:null,children:o}),t[0]=o,t[1]=a):a=t[1],a}function bb(){return A.use(NE)}function f3(e){const t=ye.c(3),o=bb();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return t[0]!==e||t[1]!==o?(a=y.jsx("span",{hidden:!0,ref:n=>n?o.register(e):void 0}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function ele(e,t){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const r=t.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(a)??[]]};return e.flatMap(a)}function tle(e,t){const o=e.map(a=>a.label).filter(a=>typeof a=="string").reverse();return t&&o.push(t),o.map(a=>a.trim()).filter(Boolean).join(" · ")}const v3=5;function ole(e,t=!1,o=v3){const a=e.map(i=>({type:"item",item:i}));if(e.length<=(t?1:o))return a;const n=t?0:1,r=e.length-(t?1:2);return a.splice(n,r-n,{type:"menu",items:e.slice(n,r)}),a}const b3=aV(function(t){return y.jsx("a",{...t,"aria-current":void 0})});function ale(e){const t=ye.c(12),{items:o}=e,a=$a();let n;t[0]!==a?(n=a("page.breadcrumbMenu"),t[0]=a,t[1]=n):n=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(r3,{"aria-hidden":"true",className:"size-4"}),t[2]=r):r=t[2];let i;t[3]!==n?(i=y.jsx(Wie,{asChild:!0,children:y.jsx(yn,{variant:"ghost",size:"icon-xs",className:"shrink-0","aria-label":n,children:r})}),t[3]=n,t[4]=i):i=t[4];let c;t[5]!==o?(c=o.map(nle),t[5]=o,t[6]=c):c=t[6];let d;t[7]!==c?(d=y.jsx(Kie,{align:"start",children:c}),t[7]=c,t[8]=d):d=t[8];let u;return t[9]!==i||t[10]!==d?(u=y.jsxs(Gie,{children:[i,d]}),t[9]=i,t[10]=d,t[11]=u):u=t[11],u}function nle(e){const t=y.jsx("span",{className:"max-w-64 truncate",title:typeof e.label=="string"?e.label:void 0,children:e.label});return y.jsx(Yie,{asChild:!!e.link&&!e.onSelect,onSelect:e.onSelect,disabled:!e.onSelect&&!e.link,children:e.link&&!e.onSelect?y.jsx(b3,{...e.link,children:t}):t},e.key)}function rle(e){const t=ye.c(14),{item:o,current:a}=e,n=typeof o.label=="string"?o.label:void 0;if(a){let i;return t[0]!==o.label||t[1]!==n?(i=y.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),t[0]=o.label,t[1]=n,t[2]=i):i=t[2],i}if(o.onSelect){let i;return t[3]!==o.label||t[4]!==o.onSelect||t[5]!==n?(i=y.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),t[3]=o.label,t[4]=o.onSelect,t[5]=n,t[6]=i):i=t[6],i}if(o.link){let i;return t[7]!==o.label||t[8]!==o.link||t[9]!==n?(i=y.jsx(b3,{...o.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),t[7]=o.label,t[8]=o.link,t[9]=n,t[10]=i):i=t[10],i}let r;return t[11]!==o.label||t[12]!==n?(r=y.jsx("span",{title:n,className:"block max-w-48 truncate",children:o.label}),t[11]=o.label,t[12]=n,t[13]=r):r=t[13],r}function y3(e){const t=ye.c(21),{items:o}=e,a=$a(),[n,r]=Zie();let i,c,d,u,m,h;if(t[0]!==o||t[1]!==r||t[2]!==a||t[3]!==n){const b=ole(o,n>=0&&n<200,v3);u=r,t[10]!==a?(m=a("page.breadcrumbs"),t[10]=a,t[11]=m):m=t[11],h='min-w-0 flex-1 first:pl-3 [&:has(~[data-slot="panel-topbar-left-target"]:not(:empty))]:flex-initial',i="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",d=b.map((w,x)=>y.jsxs("li",{className:Je("flex min-w-0 items-center gap-2",x>0&&"min-w-5",w.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[x>0&&y.jsx(OE,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),w.type==="item"?y.jsx(rle,{item:w.item,current:x===b.length-1}):y.jsx(ale,{items:w.items})]},w.type==="item"?`item:${w.item.key}`:"menu")),t[0]=o,t[1]=r,t[2]=a,t[3]=n,t[4]=i,t[5]=c,t[6]=d,t[7]=u,t[8]=m,t[9]=h}else i=t[4],c=t[5],d=t[6],u=t[7],m=t[8],h=t[9];let f;t[12]!==i||t[13]!==c||t[14]!==d?(f=y.jsx("ol",{"data-slot":i,className:c,children:d}),t[12]=i,t[13]=c,t[14]=d,t[15]=f):f=t[15];let v;return t[16]!==u||t[17]!==m||t[18]!==h||t[19]!==f?(v=y.jsx("nav",{ref:u,"aria-label":m,className:h,children:f}),t[16]=u,t[17]=m,t[18]=h,t[19]=f,t[20]=v):v=t[20],v}function sle(e){const t=ye.c(12),{items:o,scope:a}=e,n=bb();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const r=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let i,c;t[0]!==r||t[1]!==o||t[2]!==a?(i=ele(o,r),c=tle(i,a),t[0]=r,t[1]=o,t[2]=a,t[3]=i,t[4]=c):(i=t[3],c=t[4]);const d=c;let u;t[5]!==d?(u=d&&y.jsx("title",{children:d}),t[5]=d,t[6]=u):u=t[6];let m;t[7]!==i?(m=y.jsx(y3,{items:i}),t[7]=i,t[8]=m):m=t[8];let h;return t[9]!==u||t[10]!==m?(h=y.jsxs(y.Fragment,{children:[u,m]}),t[9]=u,t[10]=m,t[11]=h):h=t[11],h}function ile(e){const t=ye.c(3),o=bb();let a;return t[0]!==e||t[1]!==o?(a=o?y.jsx(f3,{...e}):y.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:y.jsx(y3,{items:e.items??[]})}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}const lle=Object.assign(ile,{Provider:Jie,Detached:Xie});function cle(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{...a,"data-slot":"page",className:n}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function dle(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("min-h-0 min-w-0 flex-1 overflow-auto",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{...a,"data-slot":"page-content",className:n}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}const ule={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},ple="px-4 md:pl-6 md:pr-8",w3=A.createContext(!1);function mle(e){const t=ye.c(12);let o,a,n;t[0]!==e?({className:o,width:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const r=n===void 0?"wide":n,i=A.use(w3);let c;t[4]!==o||t[5]!==i||t[6]!==r?(c=Je("w-full",i?Je(ple,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",ule[r],o),t[4]=o,t[5]=i,t[6]=r,t[7]=c):c=t[7];let d;return t[8]!==a||t[9]!==c||t[10]!==r?(d=y.jsx("div",{...a,"data-slot":"page-container","data-width":r,className:c}),t[8]=a,t[9]=c,t[10]=r,t[11]=d):d=t[11],d}function hle(e){const t=ye.c(9),{children:o,actions:a,className:n}=e,r=bb();let i;t[0]!==o||t[1]!==n||t[2]!==r?(i=r?y.jsx(f3,{after:"page",parent:{label:o}}):y.jsx("div",{"data-slot":"page-title",className:Je("flex flex-wrap items-center justify-between gap-3",n),children:y.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),t[0]=o,t[1]=n,t[2]=r,t[3]=i):i=t[3];let c;t[4]!==a?(c=a&&y.jsx(S3,{children:a}),t[4]=a,t[5]=c):c=t[5];let d;return t[6]!==i||t[7]!==c?(d=y.jsxs(y.Fragment,{children:[i,c]}),t[6]=i,t[7]=c,t[8]=d):d=t[8],d}function S3(e){const t=ye.c(3),{children:o,secondary:a}=e;let n;if(t[0]!==o||t[1]!==a){const r=y.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=y.jsx(mn.Topbar.Right.Portal,{fallback:r,children:r}),t[0]=o,t[1]=a,t[2]=n}else n=t[2];return n}function gle(e){const t=ye.c(28),{breadcrumbs:o,scope:a,leading:n,actions:r,navigation:i,trailingActions:c}=e;let d;t[0]!==o||t[1]!==a?(d=y.jsx(sle,{items:o,scope:a}),t[0]=o,t[1]=a,t[2]=d):d=t[2];let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=y.jsx(mn.Topbar.Left.Target,{}),t[3]=u):u=t[3];let m;t[4]!==n||t[5]!==d?(m=y.jsxs(mn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,u]}),t[4]=n,t[5]=d,t[6]=m):m=t[6];let h;t[7]!==r?(h=y.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:r}),t[7]=r,t[8]=h):h=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=y.jsx(mn.Topbar.Right.Target,{className:"flex items-center gap-2 before:hidden before:h-4 before:w-px before:shrink-0 before:bg-border peer-[:not(:empty)]:before:block"}),t[9]=f):f=t[9];let v;t[10]!==h||t[11]!==c?(v=y.jsxs(mn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),t[10]=h,t[11]=c,t[12]=v):v=t[12];let b;t[13]!==m||t[14]!==v?(b=y.jsxs(mn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,v]}),t[13]=m,t[14]=v,t[15]=b):b=t[15];let w;t[16]!==i?(w=y.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:i}),t[16]=i,t[17]=w):w=t[17];let x;t[18]===Symbol.for("react.memo_cache_sentinel")?(x=y.jsx(mn.Toolbar.Left.Target,{}),t[18]=x):x=t[18];let T;t[19]!==w?(T=y.jsxs(mn.Toolbar.Left,{children:[w,x]}),t[19]=w,t[20]=T):T=t[20];let k;t[21]===Symbol.for("react.memo_cache_sentinel")?(k=y.jsx(mn.Toolbar.Center,{className:"max-md:@max-xl/panel-toolbar:order-last max-md:@max-xl/panel-toolbar:basis-full md:min-w-48 md:@max-[22rem]/panel-toolbar:order-last md:@max-[22rem]/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:y.jsx(mn.Toolbar.Center.Target,{})}),t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=y.jsx(mn.Toolbar.Right,{children:y.jsx(mn.Toolbar.Right.Target,{})}),t[22]=C):C=t[22];let E;t[23]!==T?(E=y.jsxs(mn.Toolbar,{children:[T,k,C]}),t[23]=T,t[24]=E):E=t[24];let _;return t[25]!==E||t[26]!==b?(_=y.jsxs(y.Fragment,{children:[b,E]}),t[25]=E,t[26]=b,t[27]=_):_=t[27],_}function fle(e){const t=ye.c(11);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);const n=$a();let r;t[3]!==n?(r=n("page.views"),t[3]=n,t[4]=r):r=t[4];let i;t[5]!==o?(i=Je("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),t[5]=o,t[6]=i):i=t[6];let c;return t[7]!==a||t[8]!==r||t[9]!==i?(c=y.jsx("nav",{"aria-label":r,...a,"data-slot":"page-tabs",className:i}),t[7]=a,t[8]=r,t[9]=i,t[10]=c):c=t[10],c}function vle(e){const t=ye.c(14);let o,a,n,r;t[0]!==e?({active:o,asChild:r,className:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r):(o=t[1],a=t[2],n=t[3],r=t[4]);const i=r===void 0?!1:r,c=i?void 0:"button",d=i&&o?"page":void 0,u=i?void 0:o;let m;t[5]!==a?(m=Je("shrink-0",a),t[5]=a,t[6]=m):m=t[6];let h;return t[7]!==i||t[8]!==n||t[9]!==c||t[10]!==d||t[11]!==u||t[12]!==m?(h=y.jsx(yn,{asChild:i,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":u,"data-slot":"page-tab",className:m}),t[7]=i,t[8]=n,t[9]=c,t[10]=d,t[11]=u,t[12]=m,t[13]=h):h=t[13],h}const Cd=Object.assign(cle,{Header:gle,Tabs:fle,Tab:vle,Actions:S3,Content:dle,Container:Object.assign(mle,{Inset:w3}),Title:hle,Breadcrumbs:lle});var ge=typeof window<"u"?window:void 0,ia=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(ia.self=ia),typeof File>"u"&&(ia.File=function(){});var In=ia?.navigator,ze=ia?.document,Ea=ia?.location,Wx=ia?.fetch,Kx=ia!=null&&ia.XMLHttpRequest&&"withCredentials"in new ia.XMLHttpRequest?ia.XMLHttpRequest:void 0,n2=ia?.AbortController,ble=ia?.CompressionStream,hn=In?.userAgent,ot=ge??{},r2="1.372.3",Ja={DEBUG:!1,LIB_VERSION:r2,LIB_NAME:"web",JS_SDK_VERSION:r2};function s2(e,t,o,a,n,r,i){try{var c=e[r](i),d=c.value}catch(u){return void o(u)}c.done?t(d):Promise.resolve(d).then(a,n)}function tr(e){return function(){var t=this,o=arguments;return new Promise((function(a,n){var r=e.apply(t,o);function i(d){s2(r,a,n,i,c,"next",d)}function c(d){s2(r,a,n,i,c,"throw",d)}i(void 0)}))}}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Me.apply(null,arguments)}function T3(e,t){if(e==null)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;o[a]=e[a]}return o}function Yx(){return Yx=tr((function*(e,t,o){t===void 0&&(t=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),r=n.write(new TextEncoder().encode(e)).then((()=>n.close())).catch((function(){var d=tr((function*(u){try{yield n.abort(u)}catch{}throw u}));return function(u){return d.apply(this,arguments)}})()),i=new Response(a.readable).blob(),[c]=yield Promise.all([i,r]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return t&&console.error("Failed to gzip compress data",d),null}})),Yx.apply(this,arguments)}var yle=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],i2=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return yle.concat(t).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},wle=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Et(e,t){return e.indexOf(t)!==-1}var yb=function(e){return e.trim()},Zx=function(e){return e.replace(/^\$/,"")},x3=Object.prototype,k3=x3.hasOwnProperty,wb=x3.toString,Bt=Array.isArray||function(e){return wb.call(e)==="[object Array]"},Os=e=>typeof e=="function",Fo=e=>e===Object(e)&&!Bt(e),vd=e=>{if(Fo(e)){for(var t in e)if(k3.call(e,t))return!1;return!0}return!1},$e=e=>e===void 0,Po=e=>wb.call(e)=="[object String]",Ef=e=>Po(e)&&e.trim().length===0,Us=e=>e===null,Pt=e=>$e(e)||Us(e),ir=e=>wb.call(e)=="[object Number]"&&e==e,cd=e=>ir(e)&&e>0,Qr=e=>wb.call(e)==="[object Boolean]",Sle=e=>e instanceof FormData,Tle=e=>Et(wle,e);function E3(e){return e===null||typeof e!="object"}function uv(e,t){return{}.toString.call(e)==="[object "+t+"]"}function ME(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var xle=[!0,"true",1,"1","yes"],ZS=e=>Et(xle,e),kle=[!1,"false",0,"0","no"];function Jr(e,t,o,a,n){return t>o&&(a.warn("min cannot be greater than max."),t=o),ir(e)?e>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(a.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),Jr(n||o,t,o,a))}let Ele=class{constructor(t){this.$t={},this.zt=t.zt,this.Ut=Jr(t.bucketSize,0,100,t.Gt),this.Wt=Jr(t.refillRate,0,this.Ut,t.Gt),this.Xt=Jr(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var a=Math.floor((o-t.lastAccess)/this.Xt);a>0&&(t.tokens=Math.min(t.tokens+a*this.Wt,this.Ut),t.lastAccess=t.lastAccess+a*this.Xt)}consumeRateLimit(t){var o,a=Date.now(),n=String(t),r=this.$t[n];return r?this.Jt(r,a):this.$t[n]=r={tokens:this.Ut,lastAccess:a},r.tokens===0||(r.tokens--,r.tokens===0&&((o=this.zt)==null||o.call(this,t)),r.tokens===0)}stop(){this.$t={}}};var Qg,l2,QS,Bn="Mobile",pv="iOS",Ls="Android",Ud="Tablet",C3=Ls+" "+Ud,P3="iPad",_3="Apple",A3=_3+" Watch",Pp="Safari",$d="BlackBerry",R3="Samsung",D3=R3+"Browser",O3=R3+" Internet",zl="Chrome",Cle=zl+" OS",N3=zl+" "+pv,IE="Internet Explorer",M3=IE+" "+Bn,LE="Opera",Ple=LE+" Mini",BE="Edge",I3="Microsoft "+BE,Pd="Firefox",L3=Pd+" "+pv,Yp="Nintendo",Zp="PlayStation",_d="Xbox",B3=Ls+" "+Bn,F3=Bn+" "+Pp,bp="Windows",Qx=bp+" Phone",c2="Nokia",Jx="Ouya",j3="Generic",_le=j3+" "+Bn.toLowerCase(),z3=j3+" "+Ud.toLowerCase(),Xx="Konqueror",Qa="(\\d+(\\.\\d+)?)",JS=new RegExp("Version/"+Qa),Ale=new RegExp(_d,"i"),Rle=new RegExp(Zp+" \\w+","i"),Dle=new RegExp(Yp+" \\w+","i"),FE=new RegExp($d+"|PlayBook|BB10","i"),Ole={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},q3=function(e,t){return t=t||"",Et(e," OPR/")&&Et(e,"Mini")?Ple:Et(e," OPR/")?LE:FE.test(e)?$d:Et(e,"IE"+Bn)||Et(e,"WPDesktop")?M3:Et(e,D3)?O3:Et(e,BE)||Et(e,"Edg/")?I3:Et(e,"FBIOS")?"Facebook "+Bn:Et(e,"UCWEB")||Et(e,"UCBrowser")?"UC Browser":Et(e,"CriOS")?N3:Et(e,"CrMo")||Et(e,zl)?zl:Et(e,Ls)&&Et(e,Pp)?B3:Et(e,"FxiOS")?L3:Et(e.toLowerCase(),Xx.toLowerCase())?Xx:((o,a)=>a&&Et(a,_3)||(function(n){return Et(n,Pp)&&!Et(n,zl)&&!Et(n,Ls)})(o))(e,t)?Et(e,Bn)?F3:Pp:Et(e,Pd)?Pd:Et(e,"MSIE")||Et(e,"Trident/")?IE:Et(e,"Gecko")?Pd:""},Nle={[M3]:[new RegExp("rv:"+Qa)],[I3]:[new RegExp(BE+"?\\/"+Qa)],[zl]:[new RegExp("("+zl+"|CrMo)\\/"+Qa)],[N3]:[new RegExp("CriOS\\/"+Qa)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Qa)],[Pp]:[JS],[F3]:[JS],[LE]:[new RegExp("(Opera|OPR)\\/"+Qa)],[Pd]:[new RegExp(Pd+"\\/"+Qa)],[L3]:[new RegExp("FxiOS\\/"+Qa)],[Xx]:[new RegExp("Konqueror[:/]?"+Qa,"i")],[$d]:[new RegExp($d+" "+Qa),JS],[B3]:[new RegExp("android\\s"+Qa,"i")],[O3]:[new RegExp(D3+"\\/"+Qa)],[IE]:[new RegExp("(rv:|MSIE )"+Qa)],Mozilla:[new RegExp("rv:"+Qa)]},Mle=function(e,t){var o=q3(e,t),a=Nle[o];if($e(a))return null;for(var n=0;a.length>n;n++){var r=e.match(a[n]);if(r)return parseFloat(r[r.length-2])}return null},d2=[[new RegExp(_d+"; "+_d+" (.*?)[);]","i"),e=>[_d,e&&e[1]||""]],[new RegExp(Yp,"i"),[Yp,""]],[new RegExp(Zp,"i"),[Zp,""]],[FE,[$d,""]],[new RegExp(bp,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Qx,""];if(new RegExp(Bn).test(t)&&!/IEMobile\b/.test(t))return[bp+" "+Bn,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var a=Ole[o[1]]||"";return/arm/i.test(t)&&(a="RT"),[bp,a]}return[bp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[pv,[e[3],e[4],e[5]||"0"].join(".")]:[pv,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=$e(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Ls+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ls+")","i"),e=>e&&e[2]?[Ls,[e[2],e[3],e[4]||"0"].join(".")]:[Ls,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Cle,""]],[/Linux|debian/i,["Linux",""]]],u2=function(e){return Dle.test(e)?Yp:Rle.test(e)?Zp:Ale.test(e)?_d:new RegExp(Jx,"i").test(e)?Jx:new RegExp("("+Qx+"|WPDesktop)","i").test(e)?Qx:/iPad/.test(e)?P3:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?A3:FE.test(e)?$d:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(c2,"i").test(e)?c2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(Bn).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Ls:C3:new RegExp("(pda|"+Bn+")","i").test(e)?_le:new RegExp(Ud,"i").test(e)&&!new RegExp(Ud+" pc","i").test(e)?z3:""},Ile=e=>e instanceof Error,U3={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},Lle=U3.info;function $3(e){if(Qr(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Bt(e))return{arrayValue:{values:e.map((t=>$3(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function p2(e){var t=[];for(var o in e){var a=e[o];Us(a)||$e(a)||t.push({key:o,value:$3(a)})}return t}function Ble(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return QS&&o.length===l2||(l2=o.length,QS=o.reduce(((a,n)=>{Qg||(Qg={});var r=Qg[n];if(r)a[r[0]]=r[1];else for(var i=e(n),c=i.length-1;c>=0;c--){var d=i[c],u=d?.filename,m=t[n];if(u&&m){a[u]=m,Qg[n]=[u,m];break}}return a}),{})),QS}}class Fle{constructor(t,o,a){a===void 0&&(a=[]),this.coercers=t,this.stackParser=o,this.modifiers=a}buildFromUnknown(t,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(t),r=this.buildParsingContext(o),i=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(i,a),$exception_level:"error"}}modifyFrames(t){var o=this;return tr((function*(){for(var a of t)a.stacktrace&&a.stacktrace.frames&&Bt(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var a,n;return t.cause!=null&&(a=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(n=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Me({},t,{cause:a,stack:n})}applyChunkIds(t,o){return t.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(t,o){for(var a of this.coercers)if(a.match(t))return a.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return tr((function*(){var a=t;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(t,o){var a,n,r,i={type:t.type,value:t.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(r=t.synthetic)!==null&&r!==void 0&&r}};t.stack&&(i.stacktrace={type:"raw",frames:t.stack});var c=[i];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Me({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:Ble(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,a){a===void 0&&(a=0);var n=(r,i)=>{if(4>=i){var c=this.buildCoercingContext(t,o,i);return this.applyCoercers(r,c)}};return Me({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:t,apply:r=>n(r,a),next:r=>n(r,a+1)})}}var Vd="?";function e0(e,t,o,a,n){var r={platform:e,filename:t,function:o==="<anonymous>"?Vd:o,in_app:!0};return $e(a)||(r.lineno=a),$e(n)||(r.colno=n),r}var V3=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return o||a?[e.indexOf("@")!==-1?e.split("@")[0]:Vd,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},jle=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,zle=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,qle=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ule=(e,t)=>{var o=jle.exec(e);if(o){var[,a,n,r]=o;return e0(t,a,Vd,+n,+r)}var i=zle.exec(e);if(i){if(i[2]&&i[2].indexOf("eval")===0){var c=qle.exec(i[2]);c&&(i[2]=c[1],i[3]=c[2],i[4]=c[3])}var[d,u]=V3(i[1]||Vd,i[2]);return e0(t,u,d,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},$le=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Vle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Hle=(e,t)=>{var o=$le.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=Vle.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],r=o[1]||Vd;return[r,n]=V3(r,n),e0(t,n,r,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},m2=/\(error: (.*)\)/;let Gle=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var a=Po(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:a?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return uv(t,"DOMException")}isDOMError(t){return uv(t,"DOMError")}};class Wle{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var a=t.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(t){return t.stacktrace||t.stack||void 0}}let Kle=class{constructor(){}match(t){return uv(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var a;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var Yle=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let Zle=class{match(t){return typeof t=="string"}coerce(t,o){var a,[n,r]=this.getInfos(t);return{type:n??"Error",value:r??t,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(t){var o="Error",a=t,n=t.match(Yle);return n&&(o=n[1],a=n[2]),[o,a]}};var Qle=["fatal","error","warning","log","info","debug"];function H3(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var a=o.length;a>0;a--){var n=o.slice(0,a).join(", ");if(t>=n.length)return a===o.length?n:n.length>t?n.slice(0,t)+"...":n}return""}let Jle=class{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var a,n=this.getErrorPropertyFromObject(t);return n?o.apply(n):{type:this.getType(t),value:this.getValue(t),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return ME(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var a=this.getObjectClassName(t);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+H3(t)}isSeverityLevel(t){return Po(t)&&!Ef(t)&&Qle.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var a=t[o];if(Ile(a))return a}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}},Xle=class{match(t){return ME(t)}coerce(t,o){var a,n=t.constructor.name;return{type:n,value:n+" captured as exception with keys: "+H3(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},ece=class{match(t){return E3(t)}coerce(t,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},tce=class{match(t){return uv(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!ME(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var a,n=this.getUnhandledRejectionReason(t);return E3(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}:o.apply(n)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var mv="$message",hv="$timestamp",oce=new Set([mv,hv]),XS={enabled:!0,max_bytes:32768};function gv(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:XS.enabled,max_bytes:nce(e.max_bytes,XS.max_bytes)}:Me({},XS)}let ace=class{constructor(t){this.Kt=[],this.Qt=0,this.Bt=gv(t)}setConfig(t){this.Bt=gv(t),this.er()}add(t){var o=(function(n){var r=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((f,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(h.has(v))return"[Circular]";h.add(v)}return v}}))}catch{return}})(n);if(r)try{var i=JSON.parse(r);if(!Fo(i))return;var c=i,d=c[mv],u=c[hv];return!Po(d)||d.trim().length===0||!Po(u)&&!ir(u)?void 0:{step:c,json:r}}catch{return}})(t);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var r=encodeURIComponent(n),i=0,c=0;r.length>c;c++)r[c]==="%"?(i+=1,c+=2):i+=1;return i})(o.json);a>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:a}),this.Qt+=a,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}};function nce(e,t){if(!ir(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var G3=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,a={C(n){if(ge&&(Ja.DEBUG||ot.POSTHOG_DEBUG||o)&&!$e(ge.console)&&ge.console){for(var r=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],i=arguments.length,c=new Array(i>1?i-1:0),d=1;i>d;d++)c[d-1]=arguments[d];r(e,...c)}},info(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("log",...r)},warn(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("warn",...r)},error(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("error",...r)},critical(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];console.error(e,...r)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>G3(e+" "+n,r)};return a},Ue=G3("[PostHog.js]"),xo=Ue.createLogger,rce=xo("[ExternalScriptsLoader]"),eT=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return rce.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var a=ze?.querySelectorAll("script");if(a){for(var n,r=function(){if(a[i].src===t){var d=a[i];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(u=>{d.__posthog_loading_callback_fired=!0,o(void 0,u)})),d.onerror=u=>o(u),{v:void 0})}},i=0;a.length>i;i++)if(n=r())return n.v}var c=()=>{if(!ze)return o("document not found");var d=ze.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=h=>{d.__posthog_loading_callback_fired=!0,o(void 0,h)},d.onerror=h=>o(h),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")ze.head.appendChild(d);else{var u,m=ze.querySelectorAll("body > script");m.length>0?(u=m[0].parentNode)==null||u.insertBefore(d,m[0]):ze.body.appendChild(d)}};ze!=null&&ze.body?c():ze?.addEventListener("DOMContentLoaded",c)};ot.__PosthogExtensions__=ot.__PosthogExtensions__||{},ot.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var a;if(e.config.__preview_external_dependency_versioned_paths)a=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var n="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}a=e.requestRouter.endpointFor("assets",n)}eT(e,a,o)}else{var i=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");eT(e,i,o)}},ot.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var a=e.requestRouter.endpointFor("api",t);eT(e,a,o)};var W3="$people_distinct_id",fv="$device_id",yp="__alias",wp="__timers",t0="$autocapture_disabled_server_side",o0="$heatmaps_enabled_server_side",a0="$exception_capture_enabled_server_side",n0="$error_tracking_suppression_rules",r0="$error_tracking_capture_extension_exceptions",s0="$web_vitals_enabled_server_side",jE="$dead_clicks_enabled_server_side",i0="$product_tours_enabled_server_side",l0="$web_vitals_allowed_metrics",Sp="$session_recording_remote_config",K3="$replay_override_sampling",Y3="$replay_override_linked_flag",Z3="$replay_override_url_trigger",Q3="$replay_override_event_trigger",vv="$sesid",zE="$session_is_sampled",bd="$enabled_feature_flags",Cf="$active_feature_flags",Tp="$early_access_features",c0="$feature_flag_details",d0="$feature_flag_payloads",u0="$feature_flag_request_id",Ds="$override_feature_flags",dd="$override_feature_flag_payloads",xp="$stored_person_properties",Rl="$stored_group_properties",p0="$surveys",m0="$surveys_activated",Pf="ph_product_tours",_p="$flag_call_reported",h0="$flag_call_reported_session_id",g0="$feature_flag_errors",bv="$feature_flag_evaluated_at",yr="$user_state",f0="$client_session_props",v0="$capture_rate_limit",b0="$initial_campaign_params",y0="$initial_referrer_info",yv="$initial_person_info",wv="$epp",J3="__POSTHOG_TOOLBAR__",Jg="$posthog_cookieless",X3="$sdk_debug_extensions_init_method",e4="$sdk_debug_extensions_init_time_ms",t4="$sdk_debug_recording_script_not_loaded",qE="PostHog loadExternalDependency extension not found.",Dl="on_reject",Ns="always",Jc="anonymous",Xc="identified",w0="identified_only",Sv="visibilitychange",Tv="beforeunload",ud="$pageview",tT="$pageleave",oT="$identify",h2="$groupidentify";function Xg(e,t){Bt(e)&&e.forEach(t)}function bo(e,t){if(!Pt(e))if(Bt(e))e.forEach(t);else if(Sle(e))e.forEach(((a,n)=>t(a,n)));else for(var o in e)k3.call(e,o)&&t(e[o],o)}var Mo=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;t>a;a++)o[a-1]=arguments[a];for(var n of o)for(var r in n)n[r]!==void 0&&(e[r]=n[r]);return e};function _f(e){for(var t=Object.keys(e),o=t.length,a=new Array(o);o--;)a[o]=[t[o],e[t[o]]];return a}var g2=function(e){try{return e()}catch{return}},sce=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),a=0;t>a;a++)o[a]=arguments[a];return e.apply(this,o)}catch(n){Ue.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ue.critical(n)}}},UE=function(e){var t={};return bo(e,(function(o,a){(Po(o)&&o.length>0||ir(o))&&(t[a]=o)})),t},ice=["herokuapp.com","vercel.app","netlify.app"];function lce(e){var t=e?.hostname;if(!Po(t))return!1;var o=t.split(".").slice(-2).join(".");for(var a of ice)if(o===a)return!1;return!0}function Jo(e,t,o,a){var{capture:n=!1,passive:r=!0}=a??{};e?.addEventListener(t,o,{capture:n,passive:r})}function o4(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return ir(e)&&isFinite(e)&&Math.floor(e)===e});class xv{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,a,n){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>t||0>o||0>a||0>n||t>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=t/Math.pow(2,40),r[1]=t/Math.pow(2,32),r[2]=t/Math.pow(2,24),r[3]=t/Math.pow(2,16),r[4]=t/Math.pow(2,8),r[5]=t,r[6]=112|o>>>8,r[7]=o,r[8]=128|a>>>24,r[9]=a>>>16,r[10]=a>>>8,r[11]=a,r[12]=n>>>24,r[13]=n>>>16,r[14]=n>>>8,r[15]=n,new xv(r)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new xv(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var a=this.bytes[o]-t.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class cce{constructor(){this.I=0,this.S=0,this.k=new dce}generate(){var t=this.generateOrAbort();if($e(t)){this.I=0;var o=this.generateOrAbort();if($e(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return xv.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var f2,a4=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};ge&&!$e(ge.crypto)&&crypto.getRandomValues&&(a4=e=>crypto.getRandomValues(e));class dce{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(a4(this.T),this.N=0),this.T[this.N++]}}var Oi=()=>uce().toString(),uce=()=>(f2||(f2=new cce)).generate(),op="",pce=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Zr={R:()=>!!ze,B(e){Ue.error("cookieStore error: "+e)},O(e){if(ze){try{for(var t=e+"=",o=ze.cookie.split(";").filter((r=>r.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return decodeURIComponent(n.substring(t.length,n.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(Zr.O(e))||{}}catch{}return t},M(e,t,o,a,n){if(ze)try{var r="",i="",c=(function(m,h){if(h){var f=(function(b,w){if(w===void 0&&(w=ze),op)return op;if(!w||["localhost","127.0.0.1"].includes(b))return"";for(var x=b.split("."),T=Math.min(x.length,8),k="dmn_chk_"+Oi();!op&&T--;){var C=x.slice(T).join("."),E=k+"=1;domain=."+C+";path=/";w.cookie=E+";max-age=3",w.cookie.includes(k)&&(w.cookie=E+";max-age=0",op=C)}return op})(m);if(!f){var v=(b=>{var w=b.match(pce);return w?w[0]:""})(m);v!==f&&Ue.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}return f?"; domain=."+f:""}return""})(ze.location.hostname,a);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),r="; expires="+d.toUTCString()}n&&(i="; secure");var u=e+"="+encodeURIComponent(JSON.stringify(t))+r+"; SameSite=Lax; path=/"+c+i;return u.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(e,t){if(ze!=null&&ze.cookie)try{Zr.M(e,"",-1,t)}catch{return}}},aT=null,Co={R(){if(!Us(aT))return aT;var e=!0;if($e(ge))e=!1;else try{var t="__mplssupport__";Co.M(t,"xyz"),Co.O(t)!=='"xyz"'&&(e=!1),Co.F(t)}catch{e=!1}return e||Ue.error("localStorage unsupported; falling back to cookie store"),aT=e,e},B(e){Ue.error("localStorage error: "+e)},O(e){try{return ge?.localStorage.getItem(e)}catch(t){Co.B(t)}return null},Z(e){try{return JSON.parse(Co.O(e))||{}}catch{}return null},M(e,t){try{ge?.localStorage.setItem(e,JSON.stringify(t))}catch(o){Co.B(o)}},F(e){try{ge?.localStorage.removeItem(e)}catch(t){Co.B(t)}}},mce=[fv,"distinct_id",vv,zE,wv,yv,yr],ef={},hce={R:()=>!0,B(e){Ue.error("memoryStorage error: "+e)},O:e=>ef[e]||null,Z:e=>ef[e]||null,M(e,t){ef[e]=t},F(e){delete ef[e]}},El=null,Ca={R(){if(!Us(El))return El;if(El=!0,$e(ge))El=!1;else try{var e="__support__";Ca.M(e,"xyz"),Ca.O(e)!=='"xyz"'&&(El=!1),Ca.F(e)}catch{El=!1}return El},B(e){Ue.error("sessionStorage error: ",e)},O(e){try{return ge?.sessionStorage.getItem(e)}catch(t){Ca.B(t)}return null},Z(e){try{return JSON.parse(Ca.O(e))||null}catch{}return null},M(e,t){try{ge?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){Ca.B(o)}},F(e){try{ge?.sessionStorage.removeItem(e)}catch(t){Ca.B(t)}}};class gce{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Ns||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Dl}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return ZS(t)?1:Et(kle,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?Co:Zr;if(!this.ar||this.ar!==o){this.ar=o;var a=t==="localStorage"?Zr:Co;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(ZS(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[In?.doNotTrack,In?.msDoNotTrack,ot.doNotTrack].some((t=>ZS(t)))}}var tf=xo("[Dead Clicks]"),fce=()=>!0,vce=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(jE)),a=e.instance.config.capture_dead_clicks;return Qr(a)?a:!!Fo(a)||o};class v2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,a){this.instance=t,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[jE]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?tf.error("failed to load script",n):t()}))}hr(){var t;if(ze){if(!this.lr&&(t=ot.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Fo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=ot.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(ze),tf.info("starting...")}}else tf.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,tf.info("stopping..."))}}var nT=xo("[SegmentIntegration]"),n4="posthog-js";function r4(e,t){var{organization:o,projectId:a,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:i=!0}=t===void 0?{}:t;return c=>{var d,u,m,h,f;if(r!=="*"&&!r.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var b,w=((d=c.exception)==null?void 0:d.values)||[],x=w.map((k=>Me({},k,{stacktrace:k.stacktrace?Me({},k.stacktrace,{type:"raw",frames:(k.stacktrace.frames||[]).map((C=>Me({},C,{platform:"web:javascript"})))}):void 0}))),T={$exception_message:((u=w[0])==null?void 0:u.value)||c.message,$exception_type:(m=w[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((h=w[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(f=w[0])==null?void 0:f.type,$sentry_tags:c.tags};return o&&a&&(T.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),i&&((b=e.exceptions)==null||b.sendExceptionEvent(T)),c}}class bce{constructor(t,o,a,n,r,i){this.name=n4,this.setupOnce=function(c){c(r4(t,{organization:o,projectId:a,prefix:n,severityAllowList:r,sendExceptionsToPostHog:i==null||i}))}}}class b2{constructor(t){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(Ue.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var a,n=this.gr(t,o);return this.dr={pathname:(a=ge?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),n}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:i,lastScrollY:c,maxScrollY:d,maxContentHeight:u,lastContentY:m,maxContentY:h}=r;if(!($e(i)||$e(c)||$e(d)||$e(u)||$e(m)||$e(h))){i=Math.ceil(i),c=Math.ceil(c),d=Math.ceil(d),u=Math.ceil(u),m=Math.ceil(m),h=Math.ceil(h);var f=i>1?Jr(c/i,0,1,Ue):1,v=i>1?Jr(d/i,0,1,Ue):1,b=u>1?Jr(m/u,0,1,Ue):1,w=u>1?Jr(h/u,0,1,Ue):1;n=Mo(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:b,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:w})}}return a.pathname&&(n.$prev_pageview_pathname=a.pathname),a.timestamp&&(n.$prev_pageview_duration=(t.getTime()-a.timestamp.getTime())/1e3),n}}var yce={[W3]:{exposure:"hidden"},[yp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[wp]:{exposure:"hidden"},[t0]:{exposure:"event"},[o0]:{exposure:"hidden"},[a0]:{exposure:"event"},[n0]:{exposure:"hidden"},[r0]:{exposure:"event"},[s0]:{exposure:"event"},[jE]:{exposure:"event"},[i0]:{exposure:"hidden"},[l0]:{exposure:"event"},[Sp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[vv]:{exposure:"hidden"},[zE]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[bd]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Fo(e))return{};for(var t={},o=Object.keys(e),a=0;o.length>a;a++)t["$feature/"+o[a]]=e[o[a]];return t}},[Cf]:{exposure:"event"},[Tp]:{exposure:"hidden"},[c0]:{exposure:"hidden"},[d0]:{exposure:"event"},[u0]:{exposure:"event"},[Ds]:{exposure:"event"},[dd]:{exposure:"hidden"},[xp]:{exposure:"hidden"},[Rl]:{exposure:"hidden"},[p0]:{exposure:"hidden"},[m0]:{exposure:"event"},[Pf]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[_p]:{exposure:"hidden"},[h0]:{exposure:"hidden"},[g0]:{exposure:"hidden"},[bv]:{exposure:"hidden"},[yr]:{exposure:"hidden"},[f0]:{exposure:"hidden"},[v0]:{exposure:"hidden"},[b0]:{exposure:"hidden"},[y0]:{exposure:"hidden"},[yv]:{exposure:"hidden"},[wv]:{exposure:"hidden"},[K3]:{exposure:"event"},[Y3]:{exposure:"event"},[Z3]:{exposure:"event"},[Q3]:{exposure:"event"},[X3]:{exposure:"event"},[e4]:{exposure:"event"},[t4]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},wce=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],kv=e=>{var t=ze?.createElement("a");return $e(t)?null:(t.href=e,t)},Ev=function(e,t){for(var o,a=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var r=a[n].split("=");if(r[0]===t){o=r;break}}if(!Bt(o)||2>o.length)return"";var i=o[1];try{i=decodeURIComponent(i)}catch{Ue.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},Qp=function(e,t,o){if(!e||!t||!t.length)return e;for(var a=e.split("#"),n=a[1],r=(a[0]||"").split("?"),i=r[1],c=r[0],d=(i||"").split("&"),u=[],m=0;d.length>m;m++){var h=d[m].split("=");Bt(h)&&(t.includes(h[0])?u.push(h[0]+"="+o):u.push(d[m]))}var f=c;return i!=null&&(f+="?"+u.join("&")),n!=null&&(f+="#"+n),f},Cv=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},of="https?://(.*)",Hd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Sce=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Hd],Jp="<masked>",Tce=["li_fat_id"];function s4(e,t,o){if(!ze)return{};var a,n=t?[...Hd,...o||[]]:[],r=i4(Qp(ze.URL,n,Jp),e),i=(a={},bo(Tce,(function(c){var d=Zr.O(c);a[c]=d||null})),a);return Mo(i,r)}function i4(e,t){var o=Sce.concat(t||[]),a={};return bo(o,(function(n){var r=Ev(e,n);a[n]=r||null})),a}function l4(e){var t=(function(r){return r?r.search(of+"google.([^/?]*)")===0?"google":r.search(of+"bing.com")===0?"bing":r.search(of+"yahoo.com")===0?"yahoo":r.search(of+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",a={};if(!Us(t)){a.$search_engine=t;var n=ze?Ev(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function y2(){return navigator.language||navigator.userLanguage}var Pv="$direct";function c4(){return ze?.referrer||Pv}function d4(e,t){var o=e?[...Hd,...t||[]]:[],a=Ea?.href.substring(0,1e3);return{r:c4().substring(0,1e3),u:a?Qp(a,o,Jp):void 0}}function u4(e){var t,{r:o,u:a}=e,n={$referrer:o,$referring_domain:o==null?void 0:o==Pv?Pv:(t=kv(o))==null?void 0:t.host};if(a){n.$current_url=a;var r=kv(a);n.$host=r?.host,n.$pathname=r?.pathname;var i=i4(a);Mo(n,i)}if(o){var c=l4(o);Mo(n,c)}return n}function p4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function xce(){try{return new Date().getTimezoneOffset()}catch{return}}var kce=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class rT{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(a=>{var n="";return a.token&&(n=a.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),a.persistence_name?"ph_"+a.persistence_name:"ph_"+n+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&Ue.info("Persistence loaded",t.persistence,Me({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){kce.indexOf(t.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var r=[...mce,...n];return Me({},Co,{Z(i){try{var c={};try{c=Zr.Z(i)||{}}catch{}var d=Mo(c,JSON.parse(Co.O(i)||"{}"));return Co.M(i,d),d}catch{}return null},M(i,c,d,u,m,h){try{Co.M(i,c,void 0,void 0,h);var f={};r.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Zr.M(i,f,d,u,m,h)}catch(v){Co.B(v)}},F(i,c){try{ge?.localStorage.removeItem(i),Zr.F(i,c)}catch(d){Co.B(d)}}})})(t.cookie_persisted_properties||[]),a=t.persistence.toLowerCase();return a==="localstorage"&&Co.R()?Co:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&Ca.R()?Ca:a==="memory"?hce:a==="cookie"?Zr:o.R()?o:Zr}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[bv];return!a||typeof a!="number"||Date.now()-a>o}properties(){var t={};return bo(this.props,((o,a)=>{var n=(r=>{var i=yce[r];if(i)return i;for(var[c,d]of wce)if(r.indexOf(c)===0)return d})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===bd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Mo(t,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(t[a]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=Mo({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,a){if(Fo(t)){$e(o)&&(o="None"),this.Ir=$e(a)?this.kr:a;var n=!1;if(bo(t,((r,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==o||(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}register(t,o){if(Fo(t)){this.Ir=$e(o)?this.kr:o;var a=!1;if(bo(t,((n,r)=>{t.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),a=!0)})),a)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=s4(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);vd(UE(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=ze?.referrer)?l4(t):{})}update_referrer_info(){var t;this.register_once({$referrer:c4(),$referring_domain:ze!=null&&ze.referrer&&((t=kv(ze.referrer))==null?void 0:t.host)||Pv},void 0)}set_initial_person_info(){this.props[b0]||this.props[y0]||this.register_once({[yv]:d4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};bo([y0,b0],(i=>{var c=this.props[i];c&&bo(c,(function(d,u){t["$initial_"+Zx(u)]=d}))}));var o,a,n=this.props[yv];if(n){var r=(o=u4(n),a={},bo(o,(function(i,c){a["$initial_"+Zx(c)]=i})),a);Mo(t,r)}return t}safe_merge(t){return bo(this.props,(function(o,a){a in t||(t[a]=o)})),t}update_config(t,o,a){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!a),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((i,c)=>{if(i.length!==c.length)return!1;var d=[...i].sort(),u=[...c].sort();return d.every(((m,h)=>m===u[h]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(t),r=this.props;this.clear(),this.nr=n,this.props=r,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var a=this.props[wp]||{};a[t]=o,this.Tr(wp,a),this.save()}remove_event_timer(t){var o=this.props[wp]||{},a=o[t];return $e(a)||(delete o[t],this.Tr(wp,o),this.save()),a}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var ap={Activation:"events",Cancellation:"cancelEvents"},sT={Popover:"popover",API:"api",Widget:"widget"},kp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},iT={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},S0={Popover:"popover",Inline:"inline"},Ece={SHOWN:"product tour shown"},w2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},S2=xo("[RateLimiter]");class Cce{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{S2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void S2.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,a,n;t===void 0&&(t=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:i}=this,c=new Date().getTime(),d=(o=(a=this.instance.persistence)==null?void 0:a.get_property(v0))!==null&&o!==void 0?o:{tokens:r,last:c};d.tokens+=(c-d.last)/1e3*i,d.last=c,d.tokens>r&&(d.tokens=r);var u=1>d.tokens;return u||t||(d.tokens=Math.max(0,d.tokens-1)),!u||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+i+" events per second and "+r+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(n=this.instance.persistence)==null||n.set_property(v0,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var np=xo("[RemoteConfig]");class m4{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=ot._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return np.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void np.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return np.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){np.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||np.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var Vr={GZipJS:"gzip-js",Base64:"base64"},sr=Uint8Array,vn=Uint16Array,Gd=Uint32Array,$E=new sr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),VE=new sr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),T2=new sr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h4=function(e,t){for(var o=new vn(31),a=0;31>a;++a)o[a]=t+=1<<e[a-1];var n=new Gd(o[30]);for(a=1;30>a;++a)for(var r=o[a];o[a+1]>r;++r)n[r]=r-o[a]<<5|a;return[o,n]},g4=h4($E,2),T0=g4[1];g4[0][28]=258,T0[258]=28;for(var x2=h4(VE,0)[1],f4=new vn(32768),yo=0;32768>yo;++yo){var ed=(43690&yo)>>>1|(21845&yo)<<1;f4[yo]=((65280&(ed=(61680&(ed=(52428&ed)>>>2|(13107&ed)<<2))>>>4|(3855&ed)<<4))>>>8|(255&ed)<<8)>>>1}var Ap=function(e,t,o){for(var a=e.length,n=0,r=new vn(t);a>n;++n)++r[e[n]-1];var i,c=new vn(t);for(n=0;t>n;++n)c[n]=c[n-1]+r[n-1]<<1;for(i=new vn(a),n=0;a>n;++n)i[n]=f4[c[e[n]-1]++]>>>15-e[n];return i},Vl=new sr(288);for(yo=0;144>yo;++yo)Vl[yo]=8;for(yo=144;256>yo;++yo)Vl[yo]=9;for(yo=256;280>yo;++yo)Vl[yo]=7;for(yo=280;288>yo;++yo)Vl[yo]=8;var _v=new sr(32);for(yo=0;32>yo;++yo)_v[yo]=5;var Pce=Ap(Vl,9),_ce=Ap(_v,5),v4=function(e){return(e/8>>0)+(7&e&&1)},b4=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var a=new(e instanceof vn?vn:e instanceof Gd?Gd:sr)(o-t);return a.set(e.subarray(t,o)),a},As=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8},rp=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8,e[a+2]|=o>>>16},lT=function(e,t){for(var o=[],a=0;e.length>a;++a)e[a]&&o.push({s:a,f:e[a]});var n=o.length,r=o.slice();if(!n)return[new sr(0),0];if(n==1){var i=new sr(o[0].s+1);return i[o[0].s]=1,[i,1]}o.sort((function(_,D){return _.f-D.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],u=0,m=1,h=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};m!=n-1;)c=o[o[h].f>o[u].f?u++:h++],d=o[u!=m&&o[h].f>o[u].f?u++:h++],o[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=r[0].s;for(a=1;n>a;++a)r[a].s>f&&(f=r[a].s);var v=new vn(f+1),b=x0(o[m-1],v,0);if(b>t){a=0;var w=0,x=b-t,T=1<<x;for(r.sort((function(_,D){return v[D.s]-v[_.s]||_.f-D.f}));n>a;++a){var k=r[a].s;if(t>=v[k])break;w+=T-(1<<b-v[k]),v[k]=t}for(w>>>=x;w>0;){var C=r[a].s;t>v[C]?w-=1<<t-v[C]++-1:++a}for(;a>=0&&w;--a){var E=r[a].s;v[E]==t&&(--v[E],++w)}b=t}return[new sr(v),b]},x0=function(e,t,o){return e.s==-1?Math.max(x0(e.l,t,o+1),x0(e.r,t,o+1)):t[e.s]=o},k2=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new vn(++t),a=0,n=e[0],r=1,i=function(d){o[a++]=d},c=1;t>=c;++c)if(e[c]==n&&c!=t)++r;else{if(!n&&r>2){for(;r>138;r-=138)i(32754);r>2&&(i(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(i(n),--r;r>6;r-=6)i(8304);r>2&&(i(r-3<<5|8208),r=0)}for(;r--;)i(n);r=1,n=e[c]}return[o.subarray(0,a),t]},sp=function(e,t){for(var o=0,a=0;t.length>a;++a)o+=e[a]*t[a];return o},k0=function(e,t,o){var a=o.length,n=v4(t+2);e[n]=255&a,e[n+1]=a>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var r=0;a>r;++r)e[n+r+4]=o[r];return 8*(n+4+a)},E2=function(e,t,o,a,n,r,i,c,d,u,m){As(t,m++,o),++n[256];for(var h=lT(n,15),f=h[0],v=h[1],b=lT(r,15),w=b[0],x=b[1],T=k2(f),k=T[0],C=T[1],E=k2(w),_=E[0],D=E[1],R=new vn(19),O=0;k.length>O;++O)R[31&k[O]]++;for(O=0;_.length>O;++O)R[31&_[O]]++;for(var L=lT(R,7),U=L[0],B=L[1],z=19;z>4&&!U[T2[z-1]];--z);var F,W,oe,H,K=u+5<<3,J=sp(n,Vl)+sp(r,_v)+i,se=sp(n,f)+sp(r,w)+i+14+3*z+sp(R,U)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&se>=K)return k0(t,m,e.subarray(d,d+u));if(As(t,m,1+(J>se)),m+=2,J>se){F=Ap(f,v),W=f,oe=Ap(w,x),H=w;var Q=Ap(U,B);for(As(t,m,C-257),As(t,m+5,D-1),As(t,m+10,z-4),m+=14,O=0;z>O;++O)As(t,m+3*O,U[T2[O]]);m+=3*z;for(var M=[k,_],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)As(t,m,Q[I=31&V[O]]),m+=U[I],I>15&&(As(t,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=Pce,W=Vl,oe=_ce,H=_v;for(O=0;c>O;++O)if(a[O]>255){var I;rp(t,m,F[257+(I=a[O]>>>18&31)]),m+=W[I+257],I>7&&(As(t,m,a[O]>>>23&31),m+=$E[I]);var j=31&a[O];rp(t,m,oe[j]),m+=H[j],j>3&&(rp(t,m,a[O]>>>5&8191),m+=VE[j])}else rp(t,m,F[a[O]]),m+=W[a[O]];return rp(t,m,F[256]),m+W[256]},Ace=new Gd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Rce=(function(){for(var e=new Gd(256),t=0;256>t;++t){for(var o=t,a=9;--a;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),cT=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function Dce(e,t){t===void 0&&(t={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,b=0;f.length>b;++b)v=Rce[255&v^f[b]]^v>>>8;h=v},d(){return 4294967295^h}}})(),a=e.length;o.p(e);var n,r,i,c,d,u=(c=10+((n=t).filename&&n.filename.length+1||0),d=8,(function(h,f,v,b,w,x){var T=h.length,k=new sr(b+T+5*(1+Math.floor(T/7e3))+w),C=k.subarray(b,k.length-w),E=0;if(!f||8>T)for(var _=0;T>=_;_+=65535){var D=_+65535;T>D?E=k0(C,E,h.subarray(_,D)):(C[_]=!0,E=k0(C,E,h.subarray(_,T)))}else{for(var R=Ace[f-1],O=R>>>13,L=8191&R,U=(1<<v)-1,B=new vn(32768),z=new vn(U+1),F=Math.ceil(v/3),W=2*F,oe=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&U},H=new Gd(25e3),K=new vn(288),J=new vn(32),se=0,Q=0,M=(_=0,0),G=0,V=0;T>_;++_){var I=oe(_),j=32767&_,X=z[I];if(B[j]=X,z[I]=j,_>=G){var de=T-_;if((se>7e3||M>24576)&&de>423){E=E2(h,C,0,H,K,J,Q,M,V,_-V,E),M=se=Q=0,V=_;for(var ue=0;286>ue;++ue)K[ue]=0;for(ue=0;30>ue;++ue)J[ue]=0}var Ee=2,qe=0,Z=L,ne=j-X&32767;if(de>2&&I==oe(_-ne))for(var ve=Math.min(O,de)-1,ie=Math.min(32767,_),xe=Math.min(258,de);ie>=ne&&--Z&&j!=X;){if(h[_+Ee]==h[_+Ee-ne]){for(var Pe=0;xe>Pe&&h[_+Pe]==h[_+Pe-ne];++Pe);if(Pe>Ee){if(Ee=Pe,qe=ne,Pe>ve)break;var it=Math.min(ne,Pe-2),ct=0;for(ue=0;it>ue;++ue){var Ge=_-ne+ue+32768&32767,at=Ge-B[Ge]+32768&32767;at>ct&&(ct=at,X=Ge)}}}ne+=(j=X)-(X=B[j])+32768&32767}if(qe){H[M++]=268435456|T0[Ee]<<18|x2[qe];var Ne=31&T0[Ee],Oe=31&x2[qe];Q+=$E[Ne]+VE[Oe],++K[257+Ne],++J[Oe],G=_+Ee,++se}else H[M++]=h[_],++K[h[_]]}}E=E2(h,C,!0,H,K,J,Q,M,V,_-V,E)}return b4(k,0,b+v4(E)+w)})(r=e,(i=t).level==null?6:i.level,i.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+i.mem,c,d)),m=u.length;return(function(h,f){var v=f.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>f.level?4:f.level==9?2:0,h[9]=3,f.mtime!=0&&cT(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){h[3]=8;for(var b=0;v.length>=b;++b)h[b+10]=v.charCodeAt(b)}})(u,t),cT(u,m-8,o.d()),cT(u,m-4,a),u}var Oce=!!Kx||!!Wx,y4="text/plain",C2=!1,Sb=function(e,t,o){var a;o===void 0&&(o=!0);var[n,r]=e.split("?"),i=Me({},t),c=(a=r?.split("&").map((u=>{var m,[h,f]=u.split("="),v=o&&(m=i[h])!==null&&m!==void 0?m:f;return delete i[h],h+"="+v})))!==null&&a!==void 0?a:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var v=[];return bo(u,(function(b,w){$e(b)||$e(w)||w==="undefined"||(h=encodeURIComponent((x=>x instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(w),v[v.length]=f+"="+h)})),v.join(m)})(i);return d&&c.push(d),n+"?"+c.join("&")},yd=(e,t)=>JSON.stringify(e,((o,a)=>typeof a=="bigint"?a.toString():a),t),dT=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===Vr.GZipJS){var a=Dce((function(c,d){var u=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new sr(c.length+(c.length>>>1)),h=0,f=function(x){m[h++]=x},v=0;u>v;++v){if(h+5>m.length){var b=new sr(h+8+(u-v<<1));b.set(m),m=b}var w=c.charCodeAt(v);128>w?f(w):2048>w?(f(192|w>>>6),f(128|63&w)):w>55295&&57344>w?(f(240|(w=65536+(1047552&w)|1023&c.charCodeAt(++v))>>>18),f(128|w>>>12&63),f(128|w>>>6&63),f(128|63&w)):(f(224|w>>>12),f(128|w>>>6&63),f(128|63&w))}return b4(m,0,h)})(yd(t)),{mtime:0});return{contentType:y4,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===Vr.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(yd(t)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:yd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var i=yd(t);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},Nce=(function(){var e=tr((function*(t){var o=yd(t.data),a=yield(function(r,i,c){return Yx.apply(this,arguments)})(o,Ja.DEBUG,{rethrow:!0});if(!a)return t;var n=yield a.arrayBuffer();return Me({},t,{tr:{contentType:y4,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),P2=(e,t)=>Sb(e,{_:new Date().getTime().toString(),ver:Ja.JS_SDK_VERSION,compression:t}),Af=[];Wx&&Af.push({transport:"fetch",method(e){var t,o,{contentType:a,body:n,estimatedSize:r}=(t=dT(e))!==null&&t!==void 0?t:{},i=new Headers;bo(e.headers,(function(m,h){i.append(h,m)})),a&&i.append("Content-Type",a);var c=e.url,d=null;if(n2){var u=new n2;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),e.timeout)}}Wx(c,Me({method:e?.method||"GET",headers:i,keepalive:e.method==="POST"&&52428.8>(r||0),body:n,signal:(o=d)==null?void 0:o.signal},e.fetchOptions)).then((m=>m.text().then((h=>{var f={statusCode:m.status,text:h};if(m.status===200)try{f.json=JSON.parse(h)}catch(v){Ue.error(v)}e.callback==null||e.callback(f)})))).catch((m=>{Ue.error(m),e.callback==null||e.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),Kx&&Af.push({transport:"XHR",method(e){var t,o=new Kx;o.open(e.method||"GET",e.url,!0);var{contentType:a,body:n}=(t=dT(e))!==null&&t!==void 0?t:{};bo(e.headers,(function(r,i){o.setRequestHeader(i,r)})),a&&o.setRequestHeader("Content-Type",a),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var r={statusCode:o.status,text:o.responseText};if(o.status===200)try{r.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(r)}},o.send(n)}}),In!=null&&In.sendBeacon&&Af.push({transport:"sendBeacon",method(e){var t=Sb(e.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=dT(e))!==null&&o!==void 0?o:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:a});In.sendBeacon(t,r)}catch{}}});var E0=3e3;class Mce{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=Jr(o?.flush_interval_ms||E0,250,5e3,Ue.createLogger("flush interval"),E0),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Me({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var r=o[n],i=new Date().getTime();r.data&&Bt(r.data)&&bo(r.data,(c=>{c.offset=Math.abs(c.timestamp-i),delete c.timestamp})),t.Br(r)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return bo(this.Lr,(o=>{var a,n=o,r=(n?n.batchKey:null)||n.url;$e(t[r])&&(t[r]=Me({},n,{data:[]})),(a=t[r].data)==null||a.push(n.data)})),this.Lr=[],t}}var Ice=["retriesPerformedSoFar"];class Lce{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!$e(ge)&&"onLine"in ge.navigator&&(this.zr=ge.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Jo(ge,"online",this.Ur),Jo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,a=T3(t,Ice);cd(o)&&(a.url=Sb(a.url,{retry_count:o})),this._instance._send_request(Me({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Me({retriesPerformedSoFar:o},a))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var a=(function(i){var c=3e3*Math.pow(2,i),d=c/2,u=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(u+m*(u-d))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:t});var r="Enqueued failed request for retry in "+a;navigator.onLine||(r+=" (Browser is offline)"),Ue.warn(r),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],a=this.Lr.filter((r=>t>r.retryAt||(o.push(r),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,$e(ge)||(this.Ur&&(ge.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(ge.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Me({},t,{transport:"sendBeacon"}))}catch(o){Ue.error(o)}this.Lr=[]}}class Bce{constructor(t){this.Kr=()=>{var o,a,n,r;this.Qr||(this.Qr={});var i=this.scrollElement(),c=this.scrollY(),d=i?Math.max(0,i.scrollHeight-i.clientHeight):0,u=c+(i?.clientHeight||0),m=i?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(d,(a=this.Qr.maxScrollHeight)!==null&&a!==void 0?a:0),this.Qr.lastContentY=u,this.Qr.maxContentY=Math.max(u,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(m,(r=this.Qr.maxContentHeight)!==null&&r!==void 0?r:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){Jo(ge,"scroll",this.Kr,{capture:!0}),Jo(ge,"scrollend",this.Kr,{capture:!0}),Jo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var t=Bt(this.ei)?this.ei:[this.ei];for(var o of t){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var Fce=e=>d4(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class _2{constructor(t,o,a,n){this.ti=r=>{var i=this.ri();if(!i||i.sessionId!==r){var c={sessionId:r,props:this.ii(this._instance)};this.ni.register({[f0]:c})}},this._instance=t,this.si=o,this.ni=a,this.ii=n||Fce,this.si.onSessionId(this.ti)}ri(){return this.ni.props[f0]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?u4(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var t={};return bo(UE(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),t["$session_entry_"+Zx(a)]=o})),t}}class HE{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((a=>a!==o))}}emit(t,o){for(var a of this.oi[t]||[])a(o);for(var n of this.oi["*"]||[])n(t,o)}}var uT=xo("[SessionId]");class A2{on(t,o){return this.ai.on(t,o)}constructor(t,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new HE,this.hi=(u,m)=>!(!cd(u)||!cd(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===Ns)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||Oi,this.fi=a||Oi;var r=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Jr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,uT.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+r+"_window_id",this.mi="ph_"+r+"_primary_window_exists",this.yi()){var i=Ca.Z(this.gi),c=Ca.Z(this.mi);i&&!c?this.ci=i:Ca.F(this.gi),Ca.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var d=(u=>{var m=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(u){uT.error("Invalid sessionID in bootstrap",u)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return $e(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Ca.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&Ca.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?Ca.Z(this.gi):null}bi(t,o,a){t===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[vv]:[o,t,a]}))}Si(){var t=this.ni.props[vv];return Bt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(Tv,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Ca.F(this.mi)},Jo(ge,Tv,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Ns)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,r,i]=this.Si(),c=this.Ci(),d=cd(i)&&Math.abs(a-i)>864e5,u=!1,m=!r,h=!m&&!t&&this.hi(a,n);m||h||d?(r=this.vi(),c=this.fi(),uT.info("new session ID generated",{sessionId:r,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}}),i=a,u=!0):c||(c=this.fi(),u=!0);var f=cd(n)&&t&&!d?n:a,v=cd(i)?i:new Date().getTime();return this.Ii(c),this.bi(r,f,v),t||this.pi(),u&&this.li.forEach((b=>b(r,c,u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:r,windowId:c,sessionStartTimestamp:v,changeReason:u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var w4=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&i2(o,t))return!0;try{var a=e?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>i2(n?.brand,t))))return!0}catch{}return!!e.webdriver},Av=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function R2(e,t,o){return yd({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var S4={exact:(e,t)=>t.some((o=>e.some((a=>o===a)))),is_not:(e,t)=>t.every((o=>e.every((a=>o!==a)))),regex:(e,t)=>t.some((o=>e.some((a=>Av(o,a))))),not_regex:(e,t)=>t.every((o=>e.every((a=>!Av(o,a))))),icontains:(e,t)=>t.map(af).some((o=>e.map(af).some((a=>o.includes(a))))),not_icontains:(e,t)=>t.map(af).every((o=>e.map(af).every((a=>!o.includes(a))))),gt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a>parseFloat(n)))})),lt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a<parseFloat(n)))}))},af=e=>e.toLowerCase();function T4(e,t){return!e||Object.entries(e).every((o=>{var[a,n]=o,r=t?.[a];if($e(r)||Us(r))return!1;var i=[String(r)],c=S4[n.operator];return!!c&&c(n.values,i)}))}var C0="custom",D2="i.posthog.com",jce=/^\/static\//;class zce{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,o=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+D2,".posthog.com")),o==="https://app.posthog.com"?"https://us.posthog.com":o}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":C0),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&jce.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===C0)return this.apiHost+o;var n=D2+o;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var no=xo("[Surveys]"),P0="seenSurvey_",qce=[sT.Popover,sT.Widget,sT.API],Uce={ignoreConditions:!1,ignoreDelay:!1,displayType:S0.Popover},$ce=xo("[PostHog ExternalIntegrations]"),Vce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Hce{constructor(t){this._instance=t}ur(t,o){var a;(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,t,(n=>{if(n)return $ce.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var t=this,o=function(i){var c,d,u;!n||(c=ot.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[i]||t.ur(Vce[i],(()=>{var m;(m=ot.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[i])==null||m.start(t._instance)})),!n&&(d=ot.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[i]&&((u=ot.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[i])==null||u.stop())};for(var[a,n]of Object.entries((r=this._instance.config.integrations)!==null&&r!==void 0?r:{})){var r;o(a)}}}var td,Rp={},pT=0,_0=()=>{},O2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',ip="Surveys module not available",N2="sanitize_properties is deprecated. Use before_send instead",x4="Invalid value for property_denylist config: ",pd="posthog",k4=!Oce&&hn?.indexOf("MSIE")===-1&&hn?.indexOf("Mozilla")===-1,M2=e=>{var t;return Me({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:lce(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:_0,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:Ea&&Po(Ea?.search)&&Ea.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(ge==null||(t=ge.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){Ue.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:w0,before_send:void 0,request_queue_config:{flush_interval_ms:E0},error_tracking:{},_onCapture:_0,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Gce=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],I2=e=>{var t={};for(var[o,a]of Gce)$e(e[o])||(t[a]=e[o]);var n=Mo({},t,e);return Bt(e.property_blacklist)&&($e(e.property_denylist)?n.property_denylist=e.property_blacklist:Bt(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ue.error(x4+e.property_denylist)),n};class Wce{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class or{Ei(t,o){if(t){var a=this.Ri.indexOf(t);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===Ns||this.config.cookieless_mode===Dl&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Wce,this.Mi=!1,this.version=Ja.LIB_VERSION,this.Fi=new HE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=M2(),this.SentryIntegration=bce,this.sentryIntegration=a=>(function(n,r){var i=r4(n,r);return{name:n4,processEvent:c=>i(c)}})(this,a),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new Bce(this),this.pageViewManager=new b2(this),this.rateLimiter=new Cce(this),this.requestRouter=new zce(this),this.consent=new gce(this),this.externalIntegrations=new Hce(this);var o=(t=or.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(a,n,r)=>{var i=Po(a)?{[a]:n}:a;this.setPersonProperties(i),r?.({})},set_once:(a,n,r)=>{var i=Po(a)?{[a]:n}:a;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(a=>Ue.info('send "'+a?.event+'"',a)))}init(t,o,a){if(a&&a!==pd){var n,r=(n=Rp[a])!==null&&n!==void 0?n:new or;return r._init(t,o,a),Rp[a]=r,Rp[pd][a]=r,r}return this._init(t,o,a)}_init(t,o,a){var n,r;if(o===void 0&&(o={}),$e(t)||Ef(t))return Ue.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(Mo({},M2(o.defaults),I2(o),{name:a,token:t})),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:Vr.GZipJS;var i=this.qi();this.persistence=new rT(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new rT(Me({},this.config,{persistence:"sessionStorage"}),i);var c=Me({},this.persistence.props),d=Me({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new Mce((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new Lce(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new A2(this),this.sessionPropsManager=new _2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(Ue.info("Initializing extensions synchronously"),this.zi(u)),Ja.DEBUG=Ja.DEBUG||this.config.debug,Ja.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:o,thisC:Me({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Me({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((r=o.bootstrap)==null?void 0:r.distinctID)!==void 0){var m=o.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(yr);if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Jc)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Xc)Ue.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(Oi()),b=o.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(yr,o.bootstrap.isIdentifiedID?Xc:Jc),this.register({distinct_id:m,$device_id:b})}}if(u)this.register_once({distinct_id:Jg,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(Oi());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(yr,Jc)}return Jo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(x,T){var k=x.config.segment;if(!k)return T();(function(C,E){var _=C.config.segment;if(!_)return E();var D=O=>{var L=()=>O.anonymousId()||Oi();C.config.get_device_id=L,O.id()&&(C.register({distinct_id:O.id(),$device_id:L()}),C.persistence.set_property(yr,Xc)),E()},R=_.user();"then"in R&&Os(R.then)?R.then(D):D(R)})(x,(()=>{k.register((C=>{Promise&&Promise.resolve||nT.warn("This browser does not have Promise support, and can not use the segment integration");var E=(_,D)=>{if(!D)return _;_.event.userId||_.event.anonymousId===C.get_distinct_id()||(nT.info("No userId set, resetting PostHog"),C.reset()),_.event.userId&&_.event.userId!==C.get_distinct_id()&&(nT.info("UserId set, identifying with PostHog"),C.identify(_.event.userId));var R=C.calculateEventProperties(D,_.event.properties);return _.event.properties=Object.assign({},R,_.event.properties),_};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:_=>E(_,_.event.event),page:_=>E(_,ud),identify:_=>E(_,oT),screen:_=>E(_,"$screen")}})(x)).then((()=>{T()}))}))})(this,(()=>this.Ui())):this.Ui(),Os(this.config._onCapture)&&this.config._onCapture!==_0&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&Ue.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,a,n,r,i,c,d,u=performance.now(),m=Me({},or.__defaultExtensionClasses,this.config.__extensionClasses),h=[];m.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new m.featureFlags(this)),m.exceptions&&this.Ri.push(this.exceptions=(a=this.exceptions)!==null&&a!==void 0?a:new m.exceptions(this)),m.historyAutocapture&&this.Ri.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.Ri.push(new m.tracingHeaders(this)),m.siteApps&&this.Ri.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||h.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.Ri.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new m.surveys(this)),m.logs&&this.Ri.push(this.logs=(r=this.logs)!==null&&r!==void 0?r:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(i=this.conversations)!==null&&i!==void 0?i:new m.conversations(this)),m.productTours&&this.Ri.push(this.productTours=new m.productTours(this)),m.heatmaps&&this.Ri.push(this.heatmaps=new m.heatmaps(this)),m.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new m.webVitalsAutocapture(this)),m.exceptionObserver&&this.Ri.push(this.exceptionObserver=new m.exceptionObserver(this)),m.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new m.deadClicksAutocapture(this,vce)),m.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new m.toolbar(this)),m.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new m.experiments(this)),this.Ri.forEach((f=>{f.initialize&&h.push((()=>{f.initialize==null||f.initialize()}))})),h.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(h,u)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var a=t.shift();if(a)try{a()}catch(r){Ue.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-o);this.register_for_session({[X3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[e4]:n}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+n+"ms)")}Nr(t){var o;if(!ze||!ze.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Et(t.supportedCompression,Vr.GZipJS)?Vr.GZipJS:Et(t.supportedCompression,Vr.Base64)?Vr.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:w0}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(a){Ue.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&Ea!=null&&Ea.hostname){var t=Ea.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?t===o:o.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new m4(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Xg(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,a,n;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(tT),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(tT,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(k4?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Sb(t.url,{ip:this.config.ip?1:0}),t.headers=Me({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var a,n,r,i=Me({},o);i.timeout=i.timeout||6e4,i.url=P2(i.url,i.compression);var c=(a=i.transport)!==null&&a!==void 0?a:"fetch",d=Af.filter((m=>!i.disableTransport||!m.transport||!i.disableTransport.includes(m.transport))),u=(n=(r=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(d))==null?void 0:r.method)!==null&&n!==void 0?n:d[0].method;if(!u)throw new Error("No available transport method");c!=="sendBeacon"&&i.data&&i.compression===Vr.GZipJS&&ble&&!C2?Nce(i).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return C2=!0,void u(Me({},i,{compression:void 0,url:P2(o.url,void 0)}));u(i)})):u(i)})(Me({},t,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){pT++;try{var o,a=[],n=[],r=[];Xg(t,(c=>{c&&(Bt(o=c[0])?r.push(c):Os(c)?c.call(this):Bt(c)&&o==="alias"?a.push(c):Bt(c)&&o.indexOf("capture")!==-1&&Os(this[o])?r.push(c):n.push(c))}));var i=function(c,d){Xg(c,(function(u){if(Bt(u[0])){var m=d;bo(u,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[u[0]].apply(d,u.slice(1))}))};i(a,this),i(n,this),i(r,this)}finally{pT--}}push(t){if(pT>0&&Bt(t)&&Po(t[0])){var o=or.prototype[t[0]];Os(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,a){var n,r,i,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(t)&&Po(t)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var m=a!=null&&a.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){o!=null&&o.$current_url&&!Po(o?.$current_url)&&(Ue.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||a!=null&&a.en||Ue.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var h=new Date,f=a?.timestamp||h,v=Oi(),b={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},f,v)};t===ud&&this.config.__preview_capture_bot_pageviews&&u&&(b.event="$bot_pageview",b.properties.$browser_type="bot"),m&&(b.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),a?.$set&&(b.$set=a?.$set);var w,x,T,k=this.tn(a?.$set_once,t!==h2,t===oT);if(k&&(b.$set_once=k),a!=null&&a._noTruncate||(r=this.config.properties_string_max_length,i=b,c=L=>Po(L)?L.slice(0,r):L,d=new Set,b=(function L(U,B){return U!==Object(U)?c?c(U):U:d.has(U)?void 0:(d.add(U),Bt(U)?(z=[],Xg(U,(F=>{z.push(L(F))}))):(z={},bo(U,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(i)),b.timestamp=f,$e(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=h),t===kp.DISMISSED||t===kp.SENT){var C=o?.[iT.SURVEY_ID],E=o?.[iT.SURVEY_ITERATION];(L=>{try{var U=(B=>((z,F)=>{var W=""+P0+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+P0+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem(U))return;localStorage.setItem(U,"true")}catch(B){no.error("Failed to persist survey seen state",B)}})({id:C,current_iteration:E}),b.$set=Me({},b.$set,{[(w={id:C,current_iteration:E},x=t===kp.SENT?"responded":"dismissed",T="$survey_"+x+"/"+w.id,w.current_iteration&&w.current_iteration>0&&(T="$survey_"+x+"/"+w.id+"/"+w.current_iteration),T)]:!0})}else t===kp.SHOWN&&(b.$set=Me({},b.$set,{[iT.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===Ece.SHOWN){var _=o?.[w2.TOUR_TYPE];_&&(b.$set=Me({},b.$set,{[w2.TOUR_LAST_SEEN_DATE+"/"+_]:new Date().toISOString()}))}var D=Me({},b.properties.$set,b.$set);if(vd(D)||this.setPersonPropertiesForFlags(D),!Pt(this.config.before_send)){var R=this.rn(b);if(!R)return;b=R}this.Fi.emit("eventCaptured",b);var O={method:"POST",url:(n=a?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:b,compression:"best-available",batchKey:a?._batchKey};return!this.config.request_batching||a&&(a==null||!a._batchKey)||a!=null&&a.send_instantly?this.Vi(O):this.Zi.enqueue(O),b}Ue.critical("This capture call is ignored due to client rate limiting.")}}else Ue.error("No event name provided to posthog.capture")}else Ue.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,a,n,r){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var i=r?void 0:this.persistence.remove_event_timer(t),c=Me({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Me({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Po(c.distinct_id)&&!ir(c.distinct_id)||Ef(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(T,k){var C,E,_,D;if(!hn)return{};var R,O,L,U,B,z,F,W,oe=T?[...Hd,...k||[]]:[],[H,K]=(function(J){for(var se=0;d2.length>se;se++){var[Q,M]=d2[se],G=Q.exec(J),V=G&&(Os(M)?M(G,J):M);if(V)return V}return["",""]})(hn);return Mo(UE({$os:H,$os_version:K,$browser:q3(hn,navigator.vendor),$device:u2(hn),$device_type:(O=hn,L={userAgentDataPlatform:(C=navigator)==null||(C=C.userAgentData)==null?void 0:C.platform,maxTouchPoints:(E=navigator)==null?void 0:E.maxTouchPoints,screenWidth:ge==null||(_=ge.screen)==null?void 0:_.width,screenHeight:ge==null||(D=ge.screen)==null?void 0:D.height,devicePixelRatio:ge?.devicePixelRatio},W=u2(O),W===P3||W===C3||W==="Kobo"||W==="Kindle Fire"||W===z3?Ud:W===Yp||W===_d||W===Zp||W===Jx?"Console":W===A3?"Wearable":W?Bn:L?.userAgentDataPlatform==="Android"&&((U=L?.maxTouchPoints)!==null&&U!==void 0?U:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(z=L?.screenHeight)!==null&&z!==void 0?z:0)/((F=L?.devicePixelRatio)!==null&&F!==void 0?F:1)?Bn:Ud:"Desktop"),$timezone:p4(),$timezone_offset:xce()}),{$current_url:Qp(Ea?.href,oe,Jp),$host:Ea?.host,$pathname:Ea?.pathname,$raw_user_agent:hn.length>1e3?hn.substring(0,997)+"...":hn,$browser_version:Mle(hn,navigator.vendor),$browser_language:y2(),$browser_language_prefix:(R=y2(),typeof R=="string"?R.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Ja.LIB_NAME,$lib_version:Ja.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:h,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(r,a.getTime());c.$session_id=h,c.$window_id=f}this.sessionPropsManager&&Mo(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Mo(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(T){c.$sdk_debug_error_capturing_properties=String(T)}if(this.requestRouter.region===C0&&(c.$lib_custom_api_host=this.config.api_host),u=t!==ud||r?t!==tT||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Mo(c,u),t===ud&&ze&&(c.title=ze.title),!$e(i)){var b=a.getTime()-i;c.$duration=parseFloat((b/1e3).toFixed(3))}hn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Mo({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Bt(this.config.property_denylist)?bo(this.config.property_denylist,(function(T){delete c[T]})):Ue.error(x4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var w=this.config.sanitize_properties;w&&(Ue.error(N2),c=w(c,t));var x=this.nn();return c.$process_person_profile=x,x&&!r&&this.sn("_calculate_event_properties"),c}tn(t,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return t;var r=this.persistence.get_initial_props(),i=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Mo({},r,i||{},t||{}),d=this.config.sanitize_properties;return d&&(Ue.error(N2),c=d(c,"$set_once")),o&&(this.Mi=!0),vd(c)?void 0:c}register(t,o){var a;(a=this.persistence)==null||a.register(t,o)}register_once(t,o,a){var n;(n=this.persistence)==null||n.register_once(t,o,a)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(t,o,a)}updateEarlyAccessFeatureEnrollment(t,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(t,o,a)}getEarlyAccessFeatures(t,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(t,o,a)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:ip}),()=>{})}onSessionId(t){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:ip})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:ip})}renderSurvey(t,o){var a;(a=this.surveys)==null||a.renderSurvey(t,o)}displaySurvey(t,o){var a;o===void 0&&(o=Uce),(a=this.surveys)==null||a.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:ip}}canRenderSurveyAsync(t,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(t,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:ip})}ln(t){return!t||Ef(t)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):t===Jg?(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,a){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(ir(t)&&(t=t.toString(),Ue.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:t}),this.get_property(fv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),t!==n&&t!==this.get_property(yp)&&(this.unregister(yp),this.register({distinct_id:t}));var r,i=(this.persistence.get_property(yr)||Jc)===Jc;t!==n&&i?(this.persistence.set_property(yr,Xc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(oT,{distinct_id:t,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=R2(t,o,a),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),t!==n&&(this.reloadFeatureFlags(),this.unregister(_p))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var a=R2(this.get_distinct_id(),t,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=a):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,a){if(t&&o){var n=this.getGroups(),r=n[t]!==o;if(r&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Me({},n,{[t]:o})}),r||a){var i={$group_type:t,$group_key:o};a&&(i.$group_set=a),this.capture(h2,i)}a&&this.setGroupPropertiesForFlags({[t]:a}),r&&!a&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,a,n,r,i,c,d,u;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var m=this.get_property(fv);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(r=this.Ki)==null||r.stop(),(i=this.featureFlags)==null||i.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(yr,Jc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Ns)this.register_once({distinct_id:Jg,$device_id:null},"");else{var h=this.config.get_device_id(Oi());this.register_once({distinct_id:h,$device_id:t?h:m},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var a;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(a=this.conversations)==null||a.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:a}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&a){var r,i=(r=t.timestampLookBack)!==null&&r!==void 0?r:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-i,0)}return n}alias(t,o){return t===this.get_property(W3)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(o)&&(o=this.get_distinct_id()),t!==o?(this.an(yp,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Me({},this.config);if(Fo(t)){var a,n,r,i,c,d,u,m,h,f;Mo(this.config,I2(t));var v=this.qi();(a=this.persistence)==null||a.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new rT(Me({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);Qr(b)&&(this.config.debug=b),Qr(this.config.debug)&&(this.config.debug?(Ja.DEBUG=!0,Co.R()&&Co.M("ph_debug",!0),Ue.info("set_config",{config:t,oldConfig:o,newConfig:Me({},this.config)})):(Ja.DEBUG=!1,Co.R()&&Co.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(r=this.exceptions)==null||r.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(u=this.exceptionObserver)==null||u.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Ja.LIB_NAME=t,Ja.LIB_VERSION=o}startSessionRecording(t){var o,a,n,r,i,c=t===!0,d={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((a=this.sessionRecording)==null||a.overrideSampling()),d.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),d.url_trigger&&((r=this.sessionRecording)==null||r.overrideTrigger("url")),d.event_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(t,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Me({},n,o))}}addExceptionStep(t,o){var a;(a=this.exceptions)==null||a.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:or.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:pd;return o!==pd&&(o=pd+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(yr))===Xc||((o=this.sessionPersistence)==null?void 0:o.get_property(yr))===Xc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===w0&&!this._isIdentified()&&vd(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[yp])&&((o=this.persistence)==null||(o=o.props)==null||!o[wv]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(Ue.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(wv,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Dl)}cn(){var t,o,a,n,r=this.qi();return((t=this.persistence)==null?void 0:t._r)!==r&&((a=this.persistence)==null||a.set_disabled(r)),((o=this.sessionPersistence)==null?void 0:o._r)!==r&&((n=this.sessionPersistence)==null||n.set_disabled(r)),r}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==Ns){if(this.Ni()){var a,n,r,i,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new A2(this),this.pageViewManager=new b2(this),this.persistence&&(this.sessionPropsManager=new _2(this,this.sessionManager,this.persistence));var d,u=(r=(i=this.config.__extensionClasses)==null?void 0:i.sessionRecording)!==null&&r!==void 0?r:(c=or.__defaultExtensionClasses)==null?void 0:c.sessionRecording;u&&(this.sessionRecording=this.Ei(this.sessionRecording,new u(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var m,h;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==Dl&&((m=this.surveys)==null||m.loadIfEnabled()),($e(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((h=t?.captureEventName)!==null&&h!==void 0?h:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Ue.warn(O2)}opt_out_capturing(){var t,o,a;this.config.cookieless_mode!==Ns?(this.config.cookieless_mode===Dl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Dl&&(this.register({distinct_id:Jg,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(a=this.sessionRecording)==null||a.stopRecording(),this.sessionRecording=void 0,this.Ji())):Ue.warn(O2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ns||(this.config.cookieless_mode===Dl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return In?w4(In,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(ud,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(Sv,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Jo(ze,Sv,this.Pi)))}debug(t){t===!1?(ge?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,a,n,r,i,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ue.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(a="advanced_disable_decide",n=Ue,r=(o="advanced_disable_flags")in(t=c)&&!Pt(t[o]),i=a in t&&!Pt(t[a]),r?t[o]:!!i&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[a]))}rn(t){if(Pt(this.config.before_send))return t;var o=Bt(this.config.before_send)?this.config.before_send:[this.config.before_send],a=t;for(var n of o){if(a=n(a),Pt(a)){var r="Event '"+t.event+"' was rejected in beforeSend function";return Tle(t.event)?Ue.warn(r+". This can cause unexpected behavior."):Ue.info(r),null}a.properties&&!vd(a.properties)||Ue.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,a){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(t){var o=Qr(t)&&!t,a=Co.R()&&Co.O("ph_debug")==="true";return!o&&(!!a||t)}}function L2(e){return e instanceof Element&&(e.id===J3||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Tb(e){return!!e&&e.nodeType===1}function qi(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function E4(e){return!!e&&e.nodeType===3}function C4(e){return!!e&&e.nodeType===11}function GE(e){return e?yb(e).split(/\s+/):[]}function B2(e){var t=ge?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Rv(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return GE(t)}function P4(e){return Pt(e)?null:yb(e).split(/(\s+)/).filter((t=>Dp(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Xp(e){var t="";return R0(e)&&!A4(e)&&e.childNodes&&e.childNodes.length&&bo(e.childNodes,(function(o){var a;E4(o)&&o.textContent&&(t+=(a=P4(o.textContent))!==null&&a!==void 0?a:"")})),yb(t)}function F2(e){return $e(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}or.__defaultExtensionClasses={},or.dn={trace:td=()=>{},debug:td,info:td,warn:td,error:td,fatal:td},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=sce(e.prototype[t[o]])})(or,["identify"]);var WE=["a","button","form","input","select","textarea","label"];function j2(e,t){if($e(t))return!0;var o,a=function(r){if(t.some((i=>r.matches(i))))return{v:!0}};for(var n of e)if(o=a(n))return o.v;return!1}function _4(e){var t=e.parentNode;return!(!t||!Tb(t))&&t}var Kce=["next","previous","prev",">","<"],z2=[".ph-no-rageclick",".ph-no-capture"],A0=e=>!e||qi(e,"html")||!Tb(e),q2=(e,t)=>{if(!ge||A0(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[e],n=e;n.parentNode&&!qi(n,"body");)if(C4(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var r=_4(n);if(!r)break;if(t||WE.indexOf(r.tagName.toLowerCase())>-1)o=!0;else{var i=ge.getComputedStyle(r);i&&i.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(r),n=r}return{parentIsUsefulElement:o,targetElementList:a}};function R0(e){for(var t=e;t.parentNode&&!qi(t,"body");t=t.parentNode){var o=Rv(t);if(Et(o,"ph-sensitive")||Et(o,"ph-no-capture"))return!1}if(Et(Rv(e),"ph-include"))return!0;var a=e.type||"";if(Po(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=e.name||e.id||"";return!Po(n)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,""))}function A4(e){return!!(qi(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||qi(e,"select")||qi(e,"textarea")||e.getAttribute("contenteditable")==="true")}var R4="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Yce=new RegExp("^(?:"+R4+")$"),Zce=new RegExp(R4),D4="\\d{3}-?\\d{2}-?\\d{4}",Qce=new RegExp("^("+D4+")$"),Jce=new RegExp("("+D4+")");function Dp(e,t){return t===void 0&&(t=!0),!(Pt(e)||Po(e)&&(e=yb(e),(t?Yce:Zce).test((e||"").replace(/[- ]/g,""))||(t?Qce:Jce).test(e)))}function U2(e){var t=Xp(e);return Dp(t=(t+" "+O4(e)).trim())?t:""}function O4(e){var t="";return e&&e.childNodes&&e.childNodes.length&&bo(e.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Xp(o);t=(t+" "+n).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+O4(o)).trim())}catch(r){Ue.error("[AutoCapture]",r)}})),t}function $2(e){return e.replace(/"|\\"/g,'\\"')}function Xce(e){var t=e.attr__class;return t?Bt(t)?t:GE(t):void 0}class V2{constructor(t){this.disabled=t===!1;var o=Fo(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(t-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:t,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:a}];return!1}}var mT="$copy_autocapture",H2=xo("[AutoCapture]");function hT(e,t){return t.length>e?t.slice(0,e)+"...":t}function ede(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Tb(t));return t}function tde(e,t){for(var o,a,{e:n,maskAllElementAttributes:r,maskAllText:i,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,u=[e],m=e;m.parentNode&&!qi(m,"body");)C4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,v=[],b={},w=!1,x=!1;if(bo(u,(_=>{var D=R0(_);_.tagName.toLowerCase()==="a"&&(w=_.getAttribute("href"),w=D&&w&&Dp(w)&&w),Et(Rv(_),"ph-no-capture")&&(x=!0),v.push((function(O,L,U,B){var z=O.tagName.toLowerCase(),F={tag_name:z};WE.indexOf(z)>-1&&!U&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?hT(1024,U2(O)):hT(1024,Xp(O)));var W=Rv(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),bo(O.attributes,(function(J){var se;if((!A4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&Dp(J.value)&&(!Po(se=J.name)||se.substring(0,10)!=="_ngcontent"&&se.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=GE(Q).join(" ")),F["attr__"+J.name]=hT(1024,Q)}}));for(var oe=1,H=1,K=O;K=ede(K);)oe++,K.tagName===O.tagName&&H++;return F.nth_child=oe,F.nth_of_type=H,F})(_,r,i,c));var R=(function(O){if(!R0(O))return{};var L={};return bo(O.attributes,(function(U){if(U.name&&U.name.indexOf("data-ph-capture-attribute")===0){var B=U.name.replace("data-ph-capture-attribute-",""),z=U.value;B&&z&&Dp(z)&&(L[B]=z)}})),L})(_);Mo(b,R)})),x)return{props:{},explicitNoCapture:x};if(i||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?U2(e):Xp(e)),w){var T,k;v[0].attr__href=w;var C=(T=kv(w))==null?void 0:T.host,E=ge==null||(k=ge.location)==null?void 0:k.host;C&&E&&C!==E&&(h=w)}return{props:Mo({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(_){return _.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var U of(D.attr_class.sort(),D.attr_class))L+="."+U.replace(/"/g,"");var B=Me({},D.text?{text:D.text}:{},{"nth-child":(R=D.nth_child)!==null&&R!==void 0?R:0,"nth-of-type":(O=D.nth_of_type)!==null&&O!==void 0?O:0},D.href?{href:D.href}:{},D.attr_id?{attr_id:D.attr_id}:{},D.attributes),z={};return _f(B).sort(((F,W)=>{var[oe]=F,[H]=W;return oe.localeCompare(H)})).forEach((F=>{var[W,oe]=F;return z[$2(W.toString())]=$2(oe.toString())})),(L+=":")+_f(z).map((F=>{var[W,oe]=F;return W+'="'+oe+'"'})).join("")})).join(";")})((function(_){return _.map((D=>{var R,O,L={text:(R=D.$el_text)==null?void 0:R.slice(0,400),tag_name:D.tag_name,href:(O=D.attr__href)==null?void 0:O.slice(0,2048),attr_class:Xce(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return _f(D).filter((U=>{var[B]=U;return B.indexOf("attr__")===0})).forEach((U=>{var[B,z]=U;return L.attributes[B]=z})),L}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},b)}}var lp=xo("[ExceptionAutocapture]");function G2(e,t,o){try{if(!(t in e))return()=>{};var a=e[t],n=o(a);return Os(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var ode=xo("[TracingHeaders]"),wi=xo("[Web Vitals]"),W2=9e5,K2="disabled",Y2="lazy_loading",cp="awaiting_config",nf="missing_config";xo("[SessionRecording]"),xo("[SessionRecording]");var D0="[SessionRecording]",Si=xo(D0),ade=xo("[Heatmaps]");function Z2(e){return Fo(e)&&"clientX"in e&&"clientY"in e&&ir(e.clientX)&&ir(e.clientY)}var Q2=xo("[Product Tours]"),nde=["$set_once","$set"],Ti=xo("[SiteApps]"),J2="Error while initializing PostHog app with config id ";function od(e,t,o){if(Pt(e))return!1;switch(o){case"exact":return e===t;case"contains":var a=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class rde{constructor(t){this.vn=new HE,this.fn=(o,a)=>this.pn(o,a)&&this.gn(o,a)&&this.mn(o,a)&&this.yn(o,a),this.pn=(o,a)=>a==null||!a.event||o?.event===a?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;$e((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(t){var o,a;if(!$e((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((i=>{var c,d;(c=this._n)==null||c.add(i),(d=i.steps)==null||d.forEach((u=>{var m;(m=this.bn)==null||m.add(u?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,r=new Set;t.forEach((i=>{var c;(c=i.steps)==null||c.forEach((d=>{d!=null&&d.selector&&r.add(d?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(t,o){var a;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((a=this._n)==null?void 0:a.size)>0&&this._n.forEach((n=>{this.wn(o,n)&&this.vn.emit("actionCaptured",n.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(t,a))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var a,n=t==null||(a=t.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!od(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var a;if(o==null||!o.href)return!0;var n=this.kn(t);if(n.length>0)return n.some((c=>od(c.href,o.href,o.href_matching||"exact")));var r,i=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!i&&od((r=i.match(/(?::|")href="(.*?)"/))?r[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var a;if(o==null||!o.text)return!0;var n=this.kn(t);if(n.length>0)return n.some((u=>od(u.text,o.text,o.text_matching||"exact")||od(u.$el_text,o.text,o.text_matching||"exact")));var r,i,c,d=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!Pt(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h})(d),i=o.text,c=o.text_matching||"exact",r.some((u=>od(u,i,c))))}xn(t,o){var a,n;if(o==null||!o.selector)return!0;var r=t==null||(a=t.properties)==null?void 0:a.$element_selectors;if(r!=null&&r.includes(o.selector))return!0;var i=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&i)try{return new RegExp(o.selector_regex).test(i)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||T4(o.properties.reduce(((a,n)=>{var r=Bt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:r,operator:n.operator||"exact"},a}),{}),t?.properties)}}class sde{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&T4(t.propertyFilters,o?.properties)}Nn(t,o){var a=new Map;return t.forEach((n=>{var r;(r=n.conditions)==null||(r=r[o])==null||(r=r.values)==null||r.forEach((i=>{if(i!=null&&i.name){var c=a.get(i.name)||[];c.push(n.id),a.set(i.name,c)}}))})),a}Mn(t,o,a){var n=(a===ap.Activation?this.Tn:this.An).get(t),r=[];return this.Fn((i=>{r=i.filter((c=>n?.includes(c.id)))})),r.filter((i=>{var c,d=(c=i.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((u=>u.name===t));return this.Rn(d,o)}))}register(t){var o;$e((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((a=>{var n,r;return((n=a.conditions)==null?void 0:n.actions)&&((r=a.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new rde(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,r,i,c,d;a.conditions&&(n=a.conditions)!=null&&n.actions&&(r=a.conditions)!=null&&(r=r.actions)!=null&&r.values&&((i=a.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0&&((c=this.Ln)==null||c.register(a.conditions.actions.values),(d=a.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((u=>{if(u&&u.name){var m=this.En.get(u.name);m&&m.push(a.id),this.En.set(u.name,m||[a.id])}})))})))}On(t){var o,a=t.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.events)&&((c=r.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=t.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.cancelEvents)&&((c=r.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));a.length===0&&n.length===0||((o=this._instance)==null||o._addCaptureHook(((r,i)=>{this.onEvent(r,i)})),this.Tn=this.Nn(t,ap.Activation),this.An=this.Nn(t,ap.Cancellation))}onEvent(t,o){var a,n=this.le(),r=this.Dn(),i=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[r])||[];if(i===t&&o&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var m=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(u=o.properties)==null?void 0:u.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(t)){var f=this.Mn(t,o,ap.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:f.map((b=>b.id))}),f.forEach((b=>{var w=c.indexOf(b.id);0>w||c.splice(w,1),this.$n(b.id)})),this.jn(c))}if(this.Tn.has(t)){n.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,ap.Activation);this.jn(c.concat(v.map((b=>b.id))||[]))}}}onAction(t){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(t)&&this.jn(n.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),a=[...new Set(t)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class ide extends sde{constructor(t){super(t)}Dn(){return m0}Bn(){return kp.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return no}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[m0]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var gT="SDK is not enabled or survey functionality is not yet loaded",X2="Disabled. Not loading surveys.",lde=ge!=null&&ge.location?Cv(ge.location.hash,"__posthog")||Cv(location.hash,"state"):null,eN="_postHogToolbarParams",tN=xo("[Toolbar]"),Ya=xo("[FeatureFlags]"),Cl=xo("[FeatureFlags]",{debugEnabled:!0}),fT=`" failed. Feature flags didn't load in time.`,oN=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},aN=e=>{var t={};for(var[o,a]of _f(e||{}))a&&(t[o]=a);return t},Rs=xo("[Error tracking]"),nN="Refusing to render web experiment since the viewer is a likely bot",cde={icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ge&&Av(t.href,e),not_regex:(e,t)=>!!ge&&!Av(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Ba{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{Ba.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var i;o.zn&&(Ba.Hn("setting flag key ",r.feature_flag_key," to web experiment ",r),(i=o.zn)==null||i.set(r.feature_flag_key,r));var c=o._instance.getFeatureFlag(r.feature_flag_key);Po(c)&&r.variants[c]&&o.Un(r.name,c,r.variants[c].transforms)}else if(r.variants)for(var d in r.variants){var u=r.variants[d];Ba.Yn(u)&&o.Un(r.name,d,u.transforms)}}))}),a)},this._instance=t,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Ba.Hn(nN);else if(!this.Bt.disable_web_experiments){if(Pt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Ba.Hn("applying feature flags",t),t.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,r=this._instance.getFeatureFlag(o),i=(n=this.zn)==null?void 0:n.get(o);r&&i!=null&&i.variants[r]&&this.Un(i.name,r,i.variants[r].transforms)}}))}}previewWebExperiment(){var t=Ba.getWindowLocation();if(t!=null&&t.search){var o=Ev(t?.search,"__experiment_id"),a=Ev(t?.search,"__experiment_variant");o&&a&&(Ba.Hn("previewing web experiments "+o+" && "+a),this.getWebExperiments((n=>{this.Gn(parseInt(o),a,n)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,a){if(this.Bt.disable_web_experiments&&!a)return t([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return t(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:r=>t(r.statusCode===200&&r.json&&r.json.experiments||[])})}Gn(t,o,a){var n=a.filter((r=>r.id===t));n&&n.length>0&&(Ba.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(t){return!Pt(t.conditions)&&Ba.Wn(t)&&Ba.Xn(t)}static Wn(t){var o;if(Pt(t.conditions)||Pt((o=t.conditions)==null?void 0:o.url))return!0;var a,n,r,i=Ba.getWindowLocation();return!!i&&((a=t.conditions)==null||!a.url||cde[(n=(r=t.conditions)==null?void 0:r.urlMatchType)!==null&&n!==void 0?n:"icontains"](t.conditions.url,i))}static getWindowLocation(){return ge?.location}static Xn(t){var o;if(Pt(t.conditions)||Pt((o=t.conditions)==null?void 0:o.utm))return!0;var a=s4();if(a.utm_source){var n,r,i,c,d,u,m,h,f=(n=t.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=t.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==a.utm_campaign,v=(i=t.conditions)==null||(i=i.utm)==null||!i.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,b=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((u=t.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==a.utm_medium,w=(m=t.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==a.utm_term;return f&&b&&w&&v}return!1}static Hn(t){for(var o=arguments.length,a=new Array(o>1?o-1:0),n=1;o>n;n++)a[n-1]=arguments[n];Ue.info("[WebExperiments] "+t,a)}Un(t,o,a){this._is_bot()?Ba.Hn(nN):o!=="control"?a.forEach((n=>{if(n.selector){var r;Ba.Hn("applying transform of variant "+o+" for experiment "+t+" ",n);var i=(r=document)==null?void 0:r.querySelectorAll(n.selector);i?.forEach((c=>{var d=c;n.html&&(d.innerHTML=n.html),n.css&&d.setAttribute("style",n.css)}))}})):Ba.Hn("Control variants leave the page unmodified.")}_is_bot(){return In&&this._instance?w4(In,this.Bt.custom_blocked_useragents):void 0}}var Qn=xo("[Conversations]"),Pl="Conversations not available yet.",xb={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ya.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ya.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||Ya.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,a=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(a).length){var n,r,i=(n=(r=o.bootstrap)==null?void 0:r.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((u=>!!a[u])).reduce(((u,m)=>(u[m]=a[m]||!1,u)),{}),d=Object.keys(i).filter((u=>c[u])).reduce(((u,m)=>(i[m]&&(u[m]=i[m]),u)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(e,t,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},r=Me({},a,e),i=Me({},n,t),c={};for(var[d,u]of Object.entries(r)){var m=typeof u=="string";c[d]={key:d,enabled:!!m||!!u,variant:m?u:void 0,reason:void 0,metadata:$e(i?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:i[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(c0),t=this.os(Ds),o=this.os(dd);if(!o&&!t)return e||{};var a=Mo({},e||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var r of n){var i,c,d=a[r],u=t?.[r],m=$e(u)?(i=d?.enabled)!==null&&i!==void 0&&i:!!u,h=$e(u)?d.variant:typeof u=="string"?u:void 0,f=o?.[r],v=Me({},d,{enabled:m,variant:m?h??d?.variant:void 0});m!==d?.enabled&&(v.original_enabled=d?.enabled),h!==d?.variant&&(v.original_variant=d?.variant),f&&(v.metadata=Me({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),a[r]=v}return this.Jn||(Ya.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var e=this.os(bd),t=this.os(Ds);if(!t)return e||{};for(var o=Mo({},e),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(Ya.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(d0),t=this.os(dd);if(!t)return e||{};for(var o=Mo({},e||{}),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(Ya.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(fv),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Me({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(xp)||{}),group_properties:this.os(Rl),timezone:p4()};Us(a)||$e(a)||(n.$device_id=a),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var r=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:r,data:n,compression:this.Bt.disable_compression?void 0:Vr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:i=>{var c,d,u,m=!0;if(i.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),m=!1),this.Qn=!1,!n.disable_flags||this.ts){this.rs=!m;var h=[];i.error?i.error instanceof Error?h.push(i.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):i.statusCode!==200&&h.push("api_error_"+i.statusCode),(c=i.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,v=!((d=i.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(u=this.ni)==null||u.register({[g0]:h}),v?Ya.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(n.disable_flags||this.receivedFeatureFlags((f=i.json)!==null&&f!==void 0?f:{},m,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(e,t);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else Ya.warn('getFeatureFlag for key "'+e+fT)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=e in o,n=o[e],r=this.getFlagPayloads()[e],i=String(n),c=this.os(u0)||void 0,d=this.os(bv)||void 0,u=this.os(_p)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(h0);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[_p]:u,[h0]:h}))}if((t.send_event||!("send_event"in t))&&(!(e in u)||!u[e].includes(i))){var v,b,w,x,T,k,C,E,_,D;Bt(u[e])?u[e].push(i):u[e]=[i],(v=this.ni)==null||v.register({[_p]:u});var R=this.getFeatureFlagDetails(e),O=[...(b=this.os(g0))!==null&&b!==void 0?b:[]];$e(n)&&O.push("flag_missing");var L={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:r||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((w=this.Bt.bootstrap)==null||(w=w.featureFlags)==null?void 0:w[e])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[e])||null,$used_bootstrap_value:!this.rs};$e(R==null||(T=R.metadata)==null?void 0:T.version)||(L.$feature_flag_version=R.metadata.version);var U,B=(k=R==null||(C=R.reason)==null?void 0:C.description)!==null&&k!==void 0?k:R==null||(E=R.reason)==null?void 0:E.code;B&&(L.$feature_flag_reason=B),R!=null&&(_=R.metadata)!=null&&_.id&&(L.$feature_flag_id=R.metadata.id),$e(R?.original_variant)&&$e(R?.original_enabled)||(L.$feature_flag_original_response=$e(R.original_variant)?R.original_enabled:R.original_variant),R!=null&&(D=R.metadata)!=null&&D.original_payload&&(L.$feature_flag_original_payload=R==null||(U=R.metadata)==null?void 0:U.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var z=r;if(!$e(r))try{z=JSON.parse(r)}catch{}return{key:e,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Ya.warn('getFeatureFlagResult for key "'+e+fT)}getRemoteConfigPayload(e,t){var o=this.Bt.token,a={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(a.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:a,compression:this.Bt.disable_compression?void 0:Vr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var r,i=(r=n.json)==null?void 0:r.featureFlagPayloads;t(i?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return $e(o)?void 0:!!o}Ya.warn('isFeatureEnabled for key "'+e+fT)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),r=this.getFlagsWithDetails();(function(i,c,d,u,m,h){d===void 0&&(d={}),u===void 0&&(u={}),m===void 0&&(m={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map((U=>{var B;return[U,(B=L[U].variant)!==null&&B!==void 0?B:L[U].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((U=>L[U].enabled)).filter((U=>{var B;return(B=L[U].metadata)==null?void 0:B.payload})).map((U=>{var B;return[U,(B=L[U].metadata)==null?void 0:B.payload]})))):Ya.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(i),v=f.flags,b=f.featureFlags,w=f.featureFlagPayloads;if(b){var x=i.requestId,T=i.evaluatedAt;if(Bt(b)){Ya.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(b)for(var C=0;b.length>C;C++)k[b[C]]=!0;c&&c.register({[Cf]:b,[bd]:k})}else{var E=b,_=w,D=v;if(h!=null&&h.partialResponse)E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);else if(i.errorsWhileComputingFlags)if(v){var R=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));E=Me({},d,Object.fromEntries(Object.entries(E).filter((O=>{var[L]=O;return R.has(L)})))),_=Me({},u,Object.fromEntries(Object.entries(_||{}).filter((O=>{var[L]=O;return R.has(L)})))),D=Me({},m,Object.fromEntries(Object.entries(D||{}).filter((O=>{var[L]=O;return R.has(L)}))))}else E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);c&&c.register(Me({[Cf]:Object.keys(aN(E)),[bd]:E||{},[d0]:_||{},[c0]:D||{}},x?{[u0]:x}:{},T?{[bv]:T}:{}))}}})(e,this.ni,a,n,r,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Ya.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Ya.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(Ds),this.ni.unregister(dd),this.ps(),Cl.info("All overrides cleared");if(Bt(e)){var t=oN(e);return this.ni.register({[Ds]:t}),this.ps(),Cl.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,a=e;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(Ds),Cl.info("Flag overrides cleared");else if(a.flags){if(Bt(a.flags)){var n=oN(a.flags);this.ni.register({[Ds]:n})}else this.ni.register({[Ds]:a.flags});Cl.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(dd),Cl.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[dd]:a.payloads}),Cl.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[Ds]:e}),this.ps(),Cl.info("Flag overrides set",{flags:e});Ya.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var a,n=(this.os(Tp)||[]).find((d=>d.flagKey===e)),r={["$feature_enrollment/"+e]:t},i={$feature_flag:e,$feature_enrollment:t,$set:r};n&&(i.$early_access_feature_name=n.name),o&&(i.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",i),this.setPersonPropertiesForFlags(r,!1);var c=Me({},this.getFlagVariants(),{[e]:t});(a=this.ni)==null||a.register({[Cf]:Object.keys(aN(c)),[bd]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var a=this.os(Tp),n=o?"&"+o.map((r=>"stage="+r)).join("&"):"";if(a&&!t)return e(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:r=>{var i,c;if(r.json){var d=r.json.earlyAccessFeatures;return(i=this.ni)==null||i.unregister(Tp),(c=this.ni)==null||c.register({[Tp]:d}),e(d)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,a)=>(o[a]=t[a],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(xp)||{},a=e?.$set||(e!=null&&e.$set_once?{}:e),n=e?.$set_once,r={};if(n)for(var i in n)({}).hasOwnProperty.call(n,i)&&(i in o||(r[i]=n[i]));this._instance.register({[xp]:Me({},o,r,a)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(xp)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(Rl)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Me({},o[a],e[a]),delete e[a]})),this._instance.register({[Rl]:Me({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(Rl)||{};this._instance.register({[Rl]:Me({},t,{[e]:{}})})}else this._instance.unregister(Rl)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},dde={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===cp||this.bs===nf?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=K2,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Si.error("started without valid sessionManager"),new Error(D0+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Ns)throw new Error(D0+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Sp))==null||!e.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&t&&o&&!a}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!$e(Object.assign)&&!$e(Array.from);this.ws&&o?(this.Is(e),Si.info("starting")):(this.bs=K2,this.stopRecording())}}Is(e){var t,o,a;this.ws&&(this.bs!==cp&&this.bs!==nf&&(this.bs=Y2),ot!=null&&(t=ot.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=ot.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return Si.error("could not load recorder",n);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(zE)}Ts(e,t){if(Pt(e))return null;var o,a=ir(e)?e:parseFloat(e);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(Si.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):a}As(e){if(this.ni){var t,o,a=this.ni,n=()=>{var r,i=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((r=this.Bt.session_recording)==null?void 0:r.sampleRate,"session_recording.sampleRate"),d=this.Ts(i?.sampleRate,"remote config sampleRate"),u=c??d;Pt(u)&&this.ks();var m=i?.minimumDurationMilliseconds;a.register({[Sp]:Me({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:Me({capturePerformance:e.capturePerformance},i?.networkPayloadCapture),canvasRecording:{enabled:i?.recordCanvas,fps:i?.canvasFps,quality:i?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:$e(m)?null:m,endpoint:i?.endpoint,triggerMatchType:i?.triggerMatchType,masking:i?.masking,urlTriggers:i?.urlTriggers,version:i?.version,triggerGroups:i?.triggerGroups})})};n(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===cp&&(this.bs=nf,Si.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):Si.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Sp);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(Sp);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=ot.__PosthogExtensions__)==null||!t.initSessionRecording)return Si.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[t4]:!0});if(this.ys||(this.ys=(o=ot.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===nf||this.bs===cp?void 0:(this.bs=cp,Si.info("persisted remote config is stale, requesting fresh config before starting"),void new m4(this._instance).load());this.bs=Y2,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[Y3]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[K3]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?Z3:Q3]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(e,t))}}},ude={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new V2(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Fo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((a=>new RegExp(a))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(ge&&ze){var e=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){H2.error("Failed to capture event",a)}};if(Jo(ze,"submit",e,{capture:!0}),Jo(ze,"change",e,{capture:!0}),Jo(ze,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||ge?.event,mT)};Jo(ze,"copy",t,{capture:!0}),Jo(ze,"cut",t,{capture:!0})}}}else H2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[t0]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((a=>{var n=ze?.querySelectorAll(a);n?.forEach((r=>{e===r&&o.push(a)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[t0];if(Us(this.Ns)&&!Qr(o)&&!this.instance.Fr())return!1;var a=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!a}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,a=F2(e);E4(a)&&(a=a.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||A0(h))return!1;var v,b,w;if(Qr(f)?(v=!!f&&z2,b=void 0):(v=(w=f?.css_selector_ignorelist)!==null&&w!==void 0?w:z2,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:x}=q2(h,!1);return!(function(T,k){if(T===!1||$e(T))return!1;var C;if(T===!0)C=Kce;else{if(!Bt(T))return!1;if(T.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;C=T.map((E=>E.toLowerCase()))}return k.some((E=>{var{safeText:_,ariaLabel:D}=E;return C.some((R=>_.includes(R)||D.includes(R)))}))})(b,x.map((T=>{var k;return{safeText:Xp(T).toLowerCase(),ariaLabel:((k=T.getAttribute("aria-label"))==null?void 0:k.toLowerCase().trim())||""}})))&&!j2(x,v)})(a,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var n=t===mT;if(a&&(function(h,f,v,b,w){var x,T,k,C;if(v===void 0&&(v=void 0),!ge||A0(h)||(x=v)!=null&&x.url_allowlist&&!B2(v.url_allowlist)||(T=v)!=null&&T.url_ignorelist&&B2(v.url_ignorelist))return!1;if((k=v)!=null&&k.dom_event_allowlist){var E=v.dom_event_allowlist;if(E&&!E.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:_,targetElementList:D}=q2(h,b);if(!(function(L,U){var B=U?.element_allowlist;if($e(B))return!0;var z,F=function(oe){if(B.some((H=>oe.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(z=F(W))return z.v;return!1})(D,v)||!j2(D,(C=v)==null?void 0:C.css_selector_allowlist))return!1;var R=ge.getComputedStyle(h);if(R&&R.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=h.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(w||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(w||["change","click"]).indexOf(f.type)>=0;default:return _?(w||["click"]).indexOf(f.type)>=0:(w||["click"]).indexOf(f.type)>=0&&(WE.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,e,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:i}=tde(a,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(i)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(r.$element_selectors=c),t===mT){var d,u=P4(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=e.type||"clipboard";if(!u)return!1;r.$selected_content=u,r.$copy_type=m}return this.instance.capture(t,r),!0}}}isBrowserSupported(){return Os(ze?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(ge==null||(t=ge.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ue.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Ue.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(ge&&ge.history){var o=this;(e=ge.history.pushState)!=null&&e.__posthog_wrapped__||G2(ge.history,"pushState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("pushState")})),(t=ge.history.replaceState)!=null&&t.__posthog_wrapped__||G2(ge.history,"replaceState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=ge==null||(t=ge.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(ud,{navigation_type:e}),this.Ls=o}catch(a){Ue.error("Error capturing "+e+" pageview",a)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Jo(ge,"popstate",e),this.Ds=()=>{ge&&ge.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[o0]),this.rageclicks=new V2(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Fo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Pt(this.Bt.capture_heatmaps)?Pt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;ade.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[o0]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=ze?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){ge&&ze&&(this.zs=this.Yr.bind(this),Jo(ge,Tv,this.zs),this.Us=e=>this.Tt(e||ge?.event),Jo(ze,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||ge?.event),Jo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new v2(this.instance,fce,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Jo(ze,Sv,this.Xs),this.Rs=!0)}Vs(){var e;ge&&ze&&(this.zs&&ge.removeEventListener(Tv,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(Sv,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=(function(i,c,d){for(var u=i;u&&Tb(u)&&!qi(u,"body");){if(u===d)return!1;if(Et(c,ge?.getComputedStyle(u).position))return!0;u=_4(u)}return!1})(F2(e),["fixed","sticky"],n);return{x:e.clientX+(r?0:a),y:e.clientY+(r?0:o),target_fixed:r,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!L2(e.target)&&Z2(e)){var a=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Me({},a,{type:"rageclick"})),this.Qs(a)}}Gs(e){!L2(e.target)&&Z2(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(ge){var t=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...Hd,...o||[]]:[],n=Qp(t,a,Jp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(e)}}Yr(){this.T&&!vd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:v2,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,a)=>Me({},o,{["$web_vitals_"+a.name+"_event"]:Me({},a),["$web_vitals_"+a.name+"_value"]:a.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var a,n=(a=this._instance.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0);if($e(n))wi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.io();$e(r)||(Pt(o?.name)||Pt(o?.value)?wi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==r&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),$e(this.T.url)&&(this.T.url=r),this.T.firstMetricTimestamp=$e(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Me({},o,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):wi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,r,i=ot.__PosthogExtensions__;$e(i)||$e(i.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),o&&a&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this.ht.bind(this)),this.Rs=!0):wi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[s0]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Fo(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Pt(o)?((t=this._instance.persistence)==null?void 0:t.props[l0])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Fo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Fo(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Fo(this.oo)&&ir(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:W2;return e>0&&6e4>=e?W2:e}get isEnabled(){var e=Ea?.protocol;if(e!=="http:"&&e!=="https:")return wi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Fo(this.oo)?this.oo.web_vitals:Qr(this.oo)?this.oo:void 0;return Qr(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(wi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Fo(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Fo(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[s0]:t}),this._instance.persistence.register({[l0]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=ot.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?wi.error("failed to load script",a):e()}))}io(){var e=ge?ge.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...Hd,...t||[]]:[];return Qp(e,o,Jp)}wi.error("Could not determine current URL")}}},pde={exceptionObserver:class{constructor(e){var t,o,a;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=ot.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=ot.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=ot.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=ot.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=r(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=i(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){lp.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[a0]),this.do=new Ele({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:10,refillInterval:1e4,Gt:lp}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Fo(e)?t=Me({},t,e):($e(e)?this.co:e)&&(t=Me({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(lp.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=ot.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return lp.error("failed to load script",a);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[a0]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,a,n=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(n)?lp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new Fle([new Gle,new tce,new Kle,new Wle,new Xle,new Jle,new Zle,new ece],(function(a){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];return function(c,d){d===void 0&&(d=0);for(var u=[],m=c.split(`
|
|
185
|
-
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=m2.test(f)?f.replace(m2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var w=b(v,a);if(w){u.push(w);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var T=Array.from(x);return T.reverse(),T.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(C=T,C[C.length-1]||{}).filename,function:k.function||Vd});var C}))})(u)}})("web:javascript",Ule,Hle)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(n0))!==null&&t!==void 0?t:[],this.mo=gv(this.yo()),this.bo=new ace(this.mo)}onConfigChange(){this.mo=gv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],r=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[n0]:this.fo,[r0]:r})}}get _o(){var e,t=!!this._instance.get_property(r0),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Po(e)||e.trim().length===0)return void Rs.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>oce.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&Rs.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[mv]:e,[hv]:new Date().toISOString()},a))}catch(r){Rs.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Rs.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Rs.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Rs.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Rs.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Rs.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Me({},e,{$exception_steps:t})}catch(o){return Rs.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[mv]:e,[hv]:new Date().toISOString()})}wo(e){return Fo(e)?Me({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:r}=a;return Po(n)&&n.length>0&&o.$exception_types.push(n),Po(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,i=S4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=t[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,r=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],i=r[r.length-1];return(a=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Pt(e)&&Bt(e)}}},mde=Me({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[i0]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(i0)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?Q2.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Bt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[Pf];if(Bt(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return Q2.error(i),void e([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[Pf]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Pf)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},xb),hde={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=ot._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,r,i,c;if(!e)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:b}=e;return{event:Me({},T3(e,nde),{properties:Me({},e.properties,b?{$set:Me({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Me({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(i=e.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var i;!t.errored&&this.No.length&&(Ti.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},a=!1,n=i=>{t.errored=!i,t.loaded=!0,Ti.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),a&&o()};try{var{processEvent:r}=e.init({posthog:this._instance,callback(i){n(i)}});r&&(t.processEvent=r),a=!0}catch(i){Ti.error(J2+e.id,i),n(!1)}if(a&&t.loaded)try{o()}catch(i){Ti.error("Error while processing buffered events PostHog app with config id "+e.id,i),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){Ti.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return Ti.error(J2+d,m)}))};for(var{id:i,url:c}of e.siteApps)r(i)}else Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},gde={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];$e(this.Lo)&&((t=ot.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=ot.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return ode.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},fde=Me({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return no.warn("Flags not loaded yet. Not loading surveys.");var o=Bt(t);this.jo=o?t.length>0:t,no.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(P0)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)no.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)no.info(X2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())no.info("Not loading surveys in cookieless mode without consent.");else{var e=ot?.__PosthogExtensions__;if(e){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho(qE);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else no.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new ide(this._instance),no.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){no.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return no.info(X2),e([]);var o,a=this._instance.get_property(p0);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return e(r,i)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;no.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var w;return!((w=b.conditions)==null||(w=w.events)==null||(w=w.values)==null||!w.length)})(v)||(function(b){var w;return!((w=b.conditions)==null||(w=w.actions)==null||(w=w.values)==null||!w.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[p0]:m});var f={isLoaded:!0};e(m,f),o?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){no.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);no.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:gT};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return no.warn("init was not called"),{visible:!1,disabledReason:gT};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(no.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:gT})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);o({visible:i.eligible,disabledReason:i.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Pt(this._surveyManager))no.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(qce.includes(n.type)){var r=ze?.querySelector(t);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(no.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;no.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),no.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);no.warn("Survey element not found")}else no.warn("Surveys of type "+n.type+" cannot be rendered in the app");else no.warn("Survey not found")}}displaySurvey(e,t){var o;if(Pt(this._surveyManager))no.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Me({},a,{appearance:Me({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==S0.Popover&&t.initialResponses&&no.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void no.warn("Survey is not eligible to be displayed: ",r.disabledReason)}t.displayType!==S0.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else no.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?no.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},xb),vde={toolbar:class{constructor(e){this.instance=e}Go(e){ot.ph_toolbar_state=e}Wo(){var e;return(e=ot.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),o4(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=lde||Cv(e.hash,"__posthog")||Cv(e.hash,"state"),r=n?g2((()=>JSON.parse(atob(decodeURIComponent(n)))))||g2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?e.hash=r.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem(eN)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=ot.ph_load_toolbar||ot.ph_load_editor;!Pt(t)&&Os(t)?t(e,this.instance):tN.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(J3));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Me({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(eN,JSON.stringify(Me({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return tN.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Jo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},bde=Me({experiments:Ba},xb),yde={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Pt(t)||(Qr(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||o4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=ot?.__PosthogExtensions__;if(e&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(qE);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Qn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Qn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Qn.error("Cannot complete initialization: remote config is null")}ra(e,t){Qn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Qn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Us(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return tr((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Qn.warn(Pl),null)}))()}getMessages(e,t){var o=this;return tr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Qn.warn(Pl),null)}))()}markAsRead(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Qn.warn(Pl),null)}))()}getTickets(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Qn.warn(Pl),null)}))()}requestRestoreLink(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Qn.warn(Pl),null)}))()}restoreFromToken(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Qn.warn(Pl),null)}))()}restoreFromUrlToken(){var e=this;return tr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Qn.warn(Pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},wde={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=xo("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=ot?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(qE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,r,i;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:b,number:w}=U3[v]||Lle,x=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var k=Me({},T,h.attributes||{}),C={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:w,severityText:b,body:{stringValue:h.body},attributes:p2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(e,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Me({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:p2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(t.map((i=>i.record)),a,Ja.LIB_NAME,Ja.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(ot!=null&&(e=ot.location)!=null&&e.href&&(t.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},Sde=Me({},xb,dde,ude,pde,mde,hde,fde,gde,vde,bde,yde,wde);or.__defaultExtensionClasses=Me({},Sde);var rN,$s=(rN=Rp[pd]=new or,(function(){function e(){e.done||(e.done=!0,k4=!1,bo(Rp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Jo(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),rN);let Fs=!1,O0=null,sN=!1;const KE="studio:lp-distinct-id",N4="mesh:lp-distinct-id",vT="/api/_reports/link-token/",Tde=1440*60*1e3;function M4(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(vT)&&n.pathname!==vT&&(n.pathname=`${vT}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function bT(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?M4(o):o]))}const xde=e=>e?(e.properties=bT(e.properties),e.$set&&(e.$set=bT(e.$set)),e.$set_once&&(e.$set_once=bT(e.$set_once)),e):null;function I4(){try{const e=window.localStorage.getItem(KE)??window.localStorage.getItem(N4);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=Tde?t:void 0}catch{return}}function kde(){try{window.localStorage.removeItem(KE),window.localStorage.removeItem(N4)}catch{}}function Ede(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(KE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??I4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function Cde(e){const t=I4();if(t&&(kde(),t!==e))try{$s.alias(t)}catch{}}function Pde(e,t){if(Fs||typeof window>"u")return;const o=Ede();$s.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:xde,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:M4(a.name)}:{}})},person_profiles:"identified_only"}),Fs=!0}function _de(e,t){Fs&&($s.identify(e,t),Cde(e))}function Ade(){Fs&&($s.reset(),O0=null)}function L4(e,t){Fs&&$s.capture(e,t)}function g0e(){return Fs}function f0e(){if(!Fs||sN||typeof performance>"u")return;sN=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};L4("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:LJ(),org_cache_restored:BJ()})}function v0e(e,t){Fs&&e!==O0&&($s.group("organization",e,t),O0=e)}function B4(e,t){if(Fs)try{$s.captureException(e,t)}catch{}}const Rde=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Dde(e){const t=ye.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Rde}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,y.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function F4(e){const t=ye.c(20),{orgName:o}=e,a=$a(),n=Ode;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(e3,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=r):r=t[0];let i;t[1]!==a?(i=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=i):i=t[2];let c;t[3]!==i?(c=y.jsx("h3",{className:"text-lg font-medium",children:i}),t[3]=i,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=d):d=t[7];let u;t[8]!==d?(u=y.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=u):u=t[9];let m;t[10]!==c||t[11]!==u?(m=y.jsxs("div",{className:"space-y-2",children:[c,u]}),t[10]=c,t[11]=u,t[12]=m):m=t[12];let h;t[13]!==a?(h=a("common.goHome"),t[13]=a,t[14]=h):h=t[14];let f;t[15]!==h?(f=y.jsx(yn,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=y.jsxs(Dde,{children:[r,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function Ode(){window.location.href="/"}function Nde(){const e=ye.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=im(t);let a;return e[1]!==o?(a=y.jsx(yn,{variant:"outline",size:"sm",asChild:!0,children:y.jsx(Zl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Mde(e){const t=ye.c(13),{area:o,description:a,action:n}=e,r=o?`No access to ${o}`:"No access",i=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(c3,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),t[1]=r,t[2]=d):d=t[2];let u;t[3]!==i?(u=y.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),t[3]=i,t[4]=u):u=t[4];let m;t[5]!==d||t[6]!==u?(m=y.jsxs("div",{className:"space-y-1",children:[d,u]}),t[5]=d,t[6]=u,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??y.jsx(Nde,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=y.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const iN="__studio_chunk_reload_ts";function j4(e){return e?.message===See}function Ide(e){return!!e?.message?.includes("Access denied")}function lN(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Lde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),B4(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:j4(this.state.error)?y.jsx(F4,{}):Ide(this.state.error)?y.jsx(Mde,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Bde(e){const t=ye.c(3),o=$a();let a;return t[0]!==e||t[1]!==o?(a=y.jsx(Lde,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class Fde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=lN(t);if(B4(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(iN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(iN,String(r)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&lN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(d3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),y.jsx(yn,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?j4(this.state.error)?y.jsx(F4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function jde(e){const t=ye.c(3),o=$a();let a;return t[0]!==e||t[1]!==o?(a=y.jsx(Fde,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}const zde=Xl("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function qde(e){const t=ye.c(14);let o,a,n,r,i;t[0]!==e?({className:o,size:r,interactive:a,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5]);const d=(i===void 0?!1:i)?db:"div";let u;t[6]!==o||t[7]!==a||t[8]!==r?(u=Je(zde({size:r,interactive:a}),o),t[6]=o,t[7]=a,t[8]=r,t[9]=u):u=t[9];let m;return t[10]!==d||t[11]!==n||t[12]!==u?(m=y.jsx(d,{"data-slot":"card",className:u,...n}),t[10]=d,t[11]=n,t[12]=u,t[13]=m):m=t[13],m}function b0e(e){const t=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:i,children:c}=e;let d;t[0]!==i?(d=Je("flex flex-col gap-3",i),t[0]=i,t[1]=d):d=t[1];let u;t[2]!==r||t[3]!==a||t[4]!==n||t[5]!==o?(u=(o||a||n||r)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(t3,{size:12})]})]})]}),r&&y.jsx("div",{className:"shrink-0",children:r})]}),t[2]=r,t[3]=a,t[4]=n,t[5]=o,t[6]=u):u=t[6];let m;return t[7]!==c||t[8]!==d||t[9]!==u?(m=y.jsxs("section",{className:d,children:[u,c]}),t[7]=c,t[8]=d,t[9]=u,t[10]=m):m=t[10],m}function y0e(e){const t=ye.c(11),{className:o,children:a}=e;let n,r,i;if(t[0]!==a||t[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=qde,t[5]!==o?(r=Je("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=r):r=t[6],i=d.map(Ude),t[0]=a,t[1]=o,t[2]=n,t[3]=r,t[4]=i}else n=t[2],r=t[3],i=t[4];let c;return t[7]!==n||t[8]!==r||t[9]!==i?(c=y.jsx(n,{className:r,children:i}),t[7]=n,t[8]=r,t[9]=i,t[10]=c):c=t[10],c}function Ude(e,t){return y.jsxs("div",{children:[t>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function w0e(e){const t=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:i,className:c,children:d}=e,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;t[0]!==c||t[1]!==u||t[2]!==m?(h=Je(u,m,c),t[0]=c,t[1]=u,t[2]=m,t[3]=h):h=t[3];const f=i?"button":void 0,v=i?0:void 0;let b;t[4]!==i?(b=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,t[4]=i,t[5]=b):b=t[5];let w;t[6]!==o?(w=o&&y.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=w):w=t[7];let x;t[8]!==a?(x=y.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=x):x=t[9];let T;t[10]!==n?(T=n&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let k;t[12]!==d||t[13]!==x||t[14]!==T?(k=y.jsxs("div",{className:"flex-1 min-w-0",children:[x,T,d]}),t[12]=d,t[13]=x,t[14]=T,t[15]=k):k=t[15];let C;t[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:$de,children:r}),t[16]=r,t[17]=C):C=t[17];let E;return t[18]!==i||t[19]!==k||t[20]!==C||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==w?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[w,k,C]}),t[18]=i,t[19]=k,t[20]=C,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=w,t[26]=E):E=t[26],E}function $de(e){return e.stopPropagation()}function S0e(e){const t=ye.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Je("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let r;return t[2]!==a||t[3]!==n?(r=y.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=r):r=t[4],r}function T0e(e){const t=ye.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=Je("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==o||t[3]!==n?(r=y.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=r):r=t[4],r}function Vde(e){const t=ye.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Je("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let r;return t[2]!==a||t[3]!==n?(r=y.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=r):r=t[4],r}const kb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:h3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:p3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:n3,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:u3,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:i3,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:s3,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function x0e(e){const t=kb[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function k0e(e){return kb[e].tabs.length>0}const Hde=new Set(["owner","admin"]);function z4(){const e=ye.c(11),{org:t,locator:o}=Qi();let a;e[0]!==o?(a=ca.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},e[2]=t,e[3]=n):n=e[3];let r;e[4]!==a||e[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=r):r=e[6];const{data:i,isLoading:c,isError:d}=Ki(r);let u;return e[7]!==i||e[8]!==d||e[9]!==c?(u={data:i,loading:c,error:d},e[7]=i,e[8]=d,e[9]=c,e[10]=u):u=e[10],u}function E0e(e){const t=ye.c(8),{data:o,loading:a,error:n}=z4();if(a){let u;return t[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=u):u=t[0],u}if(n){let u;return t[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=u):u=t[1],u}const r=o?.role??null;if(!r){let u;return t[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=u):u=t[2],u}if(r==="owner"){let u;return t[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=u):u=t[3],u}if(r==="admin"){let u;return t[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=u):u=t[4],u}const i=o?.capabilities?.[e]===!0,c=i?"role":"denied";let d;return t[5]!==i||t[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},t[5]=i,t[6]=c,t[7]=d):d=t[7],d}function q4(){const e=ye.c(10),{data:t,loading:o,error:a}=z4(),n=t?.role??void 0;let r;e[0]!==n?(r=n?Hde.has(n):!1,e[0]=n,e[1]=r):r=e[1];const i=r;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const d=c;let u;return e[4]!==a||e[5]!==i||e[6]!==o||e[7]!==n||e[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:i,roleSlug:n},e[4]=a,e[5]=i,e[6]=o,e[7]=n,e[8]=d,e[9]=u):u=e[9],u}function Gde(){const e=ye.c(13),{org:t}=Qi(),o=Jk(),{capabilities:a,isPrivileged:n}=q4(),r=n||!!a["members:manage"];let i;e[0]!==t.id?(i=ca.infraBillingSites(t.id),e[0]=t.id,e[1]=i):i=e[1];const c=!!t.id&&r;let d;e[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==c||e[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},e[4]=i,e[5]=c,e[6]=d,e[7]=u):u=e[7];const{data:m,isLoading:h}=Ki(u);let f;e[8]!==m?.sites?(f=m?.sites.map(Wde)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function Wde(e){return e.slug}function C0e(){const e=ye.c(7),t=Jk(),o=$a();let a;e[0]!==t?(a=i=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=i=>Fd.error(o("settings.infraBilling.portalError",{message:i.message})),e[2]=o,e[3]=n):n=e[3];let r;return e[4]!==a||e[5]!==n?(r={mutationFn:a,onSuccess:Kde,onError:n},e[4]=a,e[5]=n,e[6]=r):r=e[6],yf(r)}function Kde(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function P0e(e,t){const o=ye.c(14),{org:a}=Qi(),n=Jk();let r,i,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(r=[...e].sort(),c=Ki,i=ca.infraBilling(a.id,r.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=r,o[4]=i,o[5]=c):(r=o[3],i=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==t||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:t}),o[6]=t,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==i||o[11]!==d||o[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},o[10]=i,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function Yde(){const e=ye.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=q4(),{sites:r,isLoading:i}=Gde(),c=r.length>0;let d;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||t[m.requires]:!0;d=Object.fromEntries(Object.values(kb).map(m=>[m.key,m.tabs.filter(u)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=i,e[6]=d}else d=e[6];return d}function Zde(e){const t=ye.c(16),{group:o}=e,a=$a();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:r}=im(n);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Qde},t[1]=i):i=t[1];const c=Tk(i),d=Yde()[o],{titleKey:u}=kb[o];let m;t[2]!==a||t[3]!==u?(m=a(u),t[2]=a,t[3]=u,t[4]=m):m=t[4];let h;t[5]!==m?(h=y.jsx(Cd.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==o||t[8]!==r||t[9]!==c||t[10]!==a||t[11]!==d?(f=d.length>1&&y.jsx(mn.Toolbar.Left.Portal,{children:y.jsx(Cd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const w=b.to.replace("$org",r),x=c===w||c.startsWith(`${w}/`);return y.jsx(Cd.Tab,{active:x,asChild:!0,children:y.jsx(Zl,{to:b.to,params:{org:r},onClick:()=>L4("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=r,t[9]=c,t[10]=a,t[11]=d,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=y.jsxs(y.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function Qde(e){return e.location.pathname}function U4(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(RO,{className:"h-32 w-full"}),y.jsx(RO,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function Jde(e){const t=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=e;let c;t[0]!==o?(c=y.jsx(Zde,{group:o}),t[0]=o,t[1]=c):c=t[1];let d;t[2]!==a?(d=a??y.jsx(U4,{}),t[2]=a,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==d?(u=y.jsx(A.Suspense,{fallback:d,children:i}),t[4]=i,t[5]=d,t[6]=u):u=t[6];let m;t[7]!==n||t[8]!==u?(m=y.jsx(Bde,{fallback:n,children:u}),t[7]=n,t[8]=u,t[9]=m):m=t[9];let h;return t[10]!==r||t[11]!==c||t[12]!==m?(h=y.jsx(Cd,{children:y.jsx(Cd.Content,{children:y.jsx(Cd.Container,{children:y.jsxs(Vde,{className:r,children:[c,m]})})})}),t[10]=r,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Vs(e){return function(){return y.jsx(Jde,{group:e,children:y.jsx(U4,{})})}}function Xde(e){try{localStorage.setItem(Nr.lastLocation(),JSON.stringify(e))}catch{}}function eue(){try{const e=localStorage.getItem(Nr.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function _0e(){try{localStorage.removeItem(Nr.lastLocation())}catch{}}function tue(e,t){const o=e&&t?NJ(t,e):null;return{queryKey:ca.activeOrganization(e),queryFn:async()=>{if(!e)return null;const a={organizationSlug:e};performance.mark("mesh:active-org-fetch:start");const{data:n}=await fa.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=aE(n);return n&&!r&&localStorage.setItem(Nr.lastOrgSlug(),e),t&&n&&MJ(t,e,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let cN;async function oue(e){cN=e,await jB();const t=kee();if(!t)return;const o=await Jl.ensureQueryData(tue(e,t)).catch(()=>null);o&&!aE(o)&&cN===e&&Xde({org:e})}const Ct={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},Ke={root:Ct.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",blog:"/$org/projects/$agentId/blog",blogPost:"/$org/projects/$agentId/blog/posts/$postId",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",businessCase:"/$org/projects/$agentId/plan/case",monitoring:"/$org/projects/$agentId/monitoring"};function A0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:aue},e[0]=t):t=e[0],Tk(t)}function aue(e){return e.matches.at(-1)?.fullPath??""}function R0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:nue},e[0]=t):t=e[0],Tk(t)}function nue(e){return e.matches.findLast(rue)?.staticData.mainView}function rue(e){return e.staticData.mainView}function Rf(e){return`agent-view:${encodeURIComponent(e)}`}function sue(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function $4(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function iue(e){return`blog-post:${encodeURIComponent(e)}`}function lue(e){if(!e?.startsWith("blog-post:"))return null;const t=e.slice(10);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function YE(e,t){return`app:${e}:${t}`}function cue(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function V4(e){return`deck:${encodeURIComponent(e)}`}function due(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function uue(e){return`case:${encodeURIComponent(e)}`}function pue(e){if(!e||!e.startsWith("case:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function H4(e){return`file:${encodeURIComponent(e)}`}function mue(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function G4(e){return`library-file:${encodeURIComponent(e)}`}function hue(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function W4(e){return`code:${encodeURIComponent(e)}`}function gue(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const K4=["overview","settings","automations","site-editor","code","content","blog","assets","hosting","e2e","analytics","cdn"],fue=new Set(K4),Y4=new Set(["hosting","e2e","analytics","cdn"]),vue=new Set(["board","files","connect-sources","reports"]);function D0e(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("case:")||e.startsWith("library-file:")||e.startsWith("code:")}const bue=new Map([["preview","site-editor"],["git","site-editor"]]);function Eb(e){return bue.get(e)??e}const ZE=new Set(["instructions","connections","layout","settings"]);function yue(e){return!!e&&ZE.has(e)}const wue=new Set(["overview","board","reports"]);function Z4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Eb(t.type);if(ZE.has(o))return"settings";if(fue.has(o)||wue.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return YE(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?Rf(t.id):n[0]?Rf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?Rf(a):"settings"}function Q4(e){const t={...e};return Reflect.deleteProperty(t,"projectOverview"),Reflect.deleteProperty(t,"appTakeover"),t}const O0e=e=>({...Q4(e),projectOverview:!0});function Sue(e){return typeof e=="object"&&e!==null&&"projectOverview"in e&&e.projectOverview===!0}const N0e=e=>({...Q4(e),appTakeover:!0});function M0e(e){return typeof e=="object"&&e!==null&&"appTakeover"in e&&e.appTakeover===!0}function I0e(e){const t=e?.defaultMainView?.type;if(!t||t==="chat")return null;const o=Z4(e);return o==="overview"?null:o}function L0e(e){const t=e.routeDefaultMain||Z4(e.metadata),o=e.panelTabId&&ZE.has(e.panelTabId)?"settings":e.panelTabId?Eb(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function B0e(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function F0e(e){return e.mainOpen?e.activeTab==="automations"?!0:$4(e.activeTab)!==null:!1}const Tue=new Set([...K4.filter(e=>!Y4.has(e)),...vue,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function xue(e){return!!e&&Tue.has(e)}function kue(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?YE(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?H4(t.key):void 0;case"deck":return t.deck?V4(t.deck):void 0;case"library-file":return t.path?G4(t.path):void 0;case"code":return t.file?W4(t.file):"code";default:{const o=Eb(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function j0e(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?W4(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"blog-post":return t.postId?iue(t.postId):"blog";case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?YE(t.connectionId,t.toolName):void 0;case"view":return t.viewId?Rf(t.viewId):void 0;case"file":return o.key?H4(o.key):void 0;case"deck":return o.path?V4(o.path):void 0;case"business-case":return o.path?uue(o.path):void 0;case"library-file":return o.path?G4(o.path):void 0;default:return e.mainView}}const Eue={files:"library",discover:"discover"},Cue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},Pue={analytics:"audience",cdn:"performance"},_ue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function J4(e){const t=sue(e);if(t)return{kind:"agent-view",viewId:t.id};const o=cue(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=$4(e);if(a)return{kind:"automations",automationId:a.id};const n=lue(e);if(n)return{kind:"blog",postId:n.id};const r=mue(e);if(r)return{kind:"output-file",key:r.key};const i=due(e);if(i)return{kind:"output-deck",path:i.path};const c=pue(e);if(c)return{kind:"business-case",path:c.path};const d=hue(e);if(d)return{kind:"library-file",path:d.path};const u=gue(e);if(u)return{kind:"site-editor",view:"code",...u.path?{file:u.path}:{}};if(yue(e))return{kind:"agent-section",section:"settings"};const m=Eb(e);if(m==="overview")return{kind:"agent-overview"};if(m==="site-editor")return{kind:"site-editor",view:"preview"};if(m==="content")return{kind:"site-editor",view:"content"};if(m==="blog")return{kind:"blog"};if(m==="automations")return{kind:"automations"};if(m==="connect-sources")return{kind:"connect-sources"};const h=Cue[m];if(h){const b=Pue[m];return{kind:"project-destination",destination:h,...b?{monitorView:b}:{}}}const f=Eue[m];if(f)return{kind:"org-destination",destination:f};const v=_ue[m];return v?{kind:"agent-section",section:v}:{kind:"agent-view",viewId:m}}function Hl(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=J4(e.tabId);switch(n.kind){case"project-destination":{const r=e.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Ke.tasks,params:{...a,taskKey:e.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:t},search:{}}:{to:Ke.reports,params:a,search:{}};case"plan":return r?{to:Ct.plan,params:{org:t},search:{}}:{to:Ke.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:t},search:i}:{to:Ke.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};case"library":return{to:Ct.library,params:{org:t},search:{}}}case"agent-overview":return{to:Ke.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:Ke.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:Ke.siteEditorCode,params:a,search:{file:n.file}}:{to:Ke.siteEditor,params:a,search:{}};case"agent-section":return{to:Ke[n.section],params:a,search:{}};case"blog":return n.postId?{to:Ke.blogPost,params:{...a,postId:n.postId},search:{}}:{to:Ke.blog,params:a,search:{}};case"automations":return n.automationId?{to:Ke.automation,params:{...a,automationId:n.automationId},search:{}}:{to:Ke.automations,params:a,search:{}};case"app":return{to:Ke.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:Ke.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:Ke.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:Ke.outputDeck,params:a,search:{path:n.path}};case"business-case":return{to:Ke.businessCase,params:a,search:{path:n.path}};case"library-file":return{to:Ke.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:Ke.connectSources,params:a,search:{}}}}function z0e(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ct.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&J4(t).kind==="org-destination"?"overview":t;return Hl({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Aue(e,t,o={}){const a=r=>({...o.search?.(r)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ct.tasks:e({to:Ct.tasks,params:t.params,search:a,replace:n});return;case Ct.home:e({to:Ct.home,params:t.params,search:a,replace:n});return;case Ct.reports:e({to:Ct.reports,params:t.params,search:a,replace:n});return;case Ct.discover:e({to:Ct.discover,params:t.params,search:a,replace:n});return;case Ct.plan:e({to:Ct.plan,params:t.params,search:a,replace:n});return;case Ct.monitoring:e({to:Ct.monitoring,params:t.params,search:a,replace:n});return;case Ct.library:e({to:Ct.library,params:t.params,search:a,replace:n});return;case Ke.root:e({to:Ke.root,params:t.params,search:a,replace:n});return;case Ke.tasks:e({to:Ke.tasks,params:t.params,search:a,replace:n});return;case Ke.reports:e({to:Ke.reports,params:t.params,search:a,replace:n});return;case Ke.plan:e({to:Ke.plan,params:t.params,search:a,replace:n});return;case Ke.monitoring:e({to:Ke.monitoring,params:t.params,search:a,replace:n});return;case Ke.siteEditor:e({to:Ke.siteEditor,params:t.params,search:a,replace:n});return;case Ke.siteEditorContent:e({to:Ke.siteEditorContent,params:t.params,search:a,replace:n});return;case Ke.siteEditorCode:e({to:Ke.siteEditorCode,params:t.params,search:a,replace:n});return;case Ke.automations:e({to:Ke.automations,params:t.params,search:a,replace:n});return;case Ke.automation:e({to:Ke.automation,params:t.params,search:a,replace:n});return;case Ke.app:e({to:Ke.app,params:t.params,search:a,replace:n});return;case Ke.view:e({to:Ke.view,params:t.params,search:a,replace:n});return;case Ke.outputFile:e({to:Ke.outputFile,params:t.params,search:a,replace:n});return;case Ke.outputDeck:e({to:Ke.outputDeck,params:t.params,search:a,replace:n});return;case Ke.businessCase:e({to:Ke.businessCase,params:t.params,search:a,replace:n});return;case Ke.libraryFile:e({to:Ke.libraryFile,params:t.params,search:a,replace:n});return;case Ke.connectSources:e({to:Ke.connectSources,params:t.params,search:a,replace:n});return;case Ke.blog:e({to:Ke.blog,params:t.params,search:a,replace:n});return;case Ke.blogPost:e({to:Ke.blogPost,params:t.params,search:a,replace:n});return;case Ke.settings:case Ke.assets:case Ke.releases:case Ke.hosting:case Ke.e2e:case Ke.calendar:case Ke.experiments:e({to:t.to,params:t.params,search:a,replace:n});return;default:return Rue(t)}}function Rue(e){throw new Error(`Unhandled tab route target: ${JSON.stringify(e)}`)}function q0e(e,t){Aue(e,Hl(t),t)}function Due(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function Oue(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const Nue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),X4=new Set(["main"]),Mue=new Set(["virtualmcpid"]);function Cb(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function ql(e,t){return{...Cb(e,Nue),...t.search}}function Iue(e){return Cb(e,Mue)}function U0e(e){if(e.search.virtualmcpid===void 0)return null;const t=Er(e.search.virtualmcpid);if(t){const o=e.routePath===Ct.tasks?"board":e.routePath===Ct.reports?"reports":null;if(e.routePath===Ct.home||o){const a=o?Hl({org:e.org,agentId:t,tabId:o}):Wd(e.org,t);return{kind:"canonical",route:a,search:ql(e.search,a)}}}return e.routePath===Ct.home||e.routePath===Ct.tasks||e.routePath===Ct.reports||e.routePath===Ct.library?{kind:"same-route",search:Iue(e.search)}:null}function Er(e){return e?.trim()||void 0}function e5(e){return xue(e)||e!==void 0&&Y4.has(e)}function t5(e){const t=Er(e);return t?t.startsWith("vir_")&&t.length>4||tB(t)!==null||nZ(t)!==null||rZ(t)!==null||aB(t)||nB(t):!1}function Lue(e){const t=Er(e.agentIdParam),o=e5(t);return t&&!o?t:Er(e.virtualMcpIdSearch)??Er(e.fallbackAgentId)}function $0e(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const i=N0({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!t||Oue(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!t5(t);if(!(e5(t)||o))return null;const n=Lue({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),r=N0({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function Bue(e,t,o,a){const n=Er(a);switch(e){case"board":return n?Hl({org:t,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const r=Ai(o.path);return{to:Ct.library,params:{org:t},search:r?{path:r}:{}}}case"reports":return n?Hl({org:t,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:t},search:{}};case"overview":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};default:return null}}function em(e){const t=Bue(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Wd(e.org,e.agentId);const o=Er(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:Ke.root,params:{org:e.org,agentId:o},search:{}}:Hl({org:e.org,agentId:o,tabId:e.tabId}):null}function Wd(e,t){const o=Er(t);return o?{to:Ke.root,params:{org:e,agentId:o},search:{}}:{to:Ct.home,params:{org:e},search:{}}}function Fue(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Cb(o,X4),mainpanel:!1}};if(t==="chat"){const n=Wd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...ql(o,n),sidepanel:!0,mainpanel:!1}}}const a=em({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:ql(o,a)}:null}function Ai(e){return typeof e=="string"&&e.length>0?e:void 0}function N0(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const i=N0({...e,search:Cb(t,X4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(t.main!==void 0)return Fue({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=Er(e.agentId),a=e.panel;if(!a){const i=Wd(e.org,o);return{kind:"canonical",route:i,search:ql(t,i)}}const n=kue(a,{file:Ai(t.file),key:Ai(t.key),deck:Ai(t.deck),path:Ai(t.path),connection:Ai(t.connection),tool:Ai(t.tool),automation:Ai(t.automation)}),r=n?e.source==="project-first"&&n==="overview"&&o?Hl({org:e.org,agentId:o,tabId:n}):em({org:e.org,agentId:o,tabId:n,search:t}):em({org:e.org,agentId:o,tabId:"",search:t});return r?{kind:"canonical",route:r,search:n==="chat"?{...ql(t,r),sidepanel:!0,mainpanel:!1}:ql(t,r)}:null}function V0e(e){const t=e.search??{},o=Er(t.virtualmcpid),a=Er(e.fallbackAgentId),n=t.main;let r;if(n==="chat")r=Wd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=em({org:e.org,agentId:o,tabId:n,search:t}),c=!i&&n.trim().length>0&&a?em({org:e.org,agentId:a,tabId:n,search:t}):null;r=i??c??{to:Ct.home,params:{org:e.org},search:{}}}else r=Wd(e.org,o);return{route:r,search:{...ql(t,r),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function o5(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const jue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},a5=jue,QE={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},zue=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Dv={fileView:Wt(["all","documents","media"]).catch("all").optional(),modified:Wt(["any","today","week","month"]).catch("any").optional(),layout:Wt(["list","grid"]).catch("list").optional(),sort:Wt(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:fx().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:Wt(zue).catch("files").optional(),scope:Wt(["user"]).optional().catch(void 0),action:Wt(["create"]).optional().catch(void 0),tab:Wt(["all","connected"]).optional().catch(void 0)},que={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:eb().optional(),siteUrl:$().optional(),...a5},n5={...que,task:$().optional(),project:$().optional(),...QE,skill:Dv.skill,brand:Dv.brand},xm=Se(n5),r5="blog-manager/posts/";function H0e(e){return e.startsWith(r5)}function Uue(e){return e.split("/").pop()??e}function G0e(e){return`${r5}${e}`}function W0e(e){return`collections/blog/posts/${e}`}const $ue=["context","posts","authors","categories","post-schedule"],s5=Wt($ue),Vue={blogCollection:s5.optional(),blogItem:$().optional()};function K0e(e,t){return e==="context"&&!t?"posts":e}const Hue=Wt(["edit","preview"]),Gue={blogView:Hue.optional()};function Y0e(e){const t=s5.safeParse(e.contentCollection);if(!t.success)return null;const o=t.data,a=e.contentItem;return o==="posts"?a?{collection:o,postId:Uue(a)}:{collection:o}:a?{collection:o,item:a}:{collection:o}}function Z0e(e){const t=e.blogCollection;return t==="authors"||t==="categories"?e.blogItem?{contentCollection:t,contentItem:e.blogItem}:{contentCollection:t}:{contentCollection:"posts"}}const Ha=lV({component:()=>y.jsx(jde,{children:y.jsx(Sk,{})})}),Wue=Ae({getParentRoute:()=>Ha,path:"/login",component:Be(()=>Fe(()=>import("./login-BAvEuYWT.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),validateSearch:es(()=>Se({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Kue=Ae({getParentRoute:()=>Ha,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-B-EVIYaI.js"),__vite__mapDeps([9,5])))}),Yue=Ae({getParentRoute:()=>Ha,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-COr2KZJk.js"),[])),validateSearch:es(()=>Se({token:$().optional(),error:$().optional()}))}),Zue=Ae({getParentRoute:()=>Ha,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-BI3ZQDNg.js"),[]))}),Que=Ae({getParentRoute:()=>Ha,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-ClNBH-sv.js"),__vite__mapDeps([10,11,12])))}),Jue=Ae({getParentRoute:()=>Ha,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-CjKOG8Cm.js"),__vite__mapDeps([13,5,1,2,3,4])))}),Xue=Ae({getParentRoute:()=>Ha,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-CAkTCYjv.js"),[]))}),km=Ae({getParentRoute:()=>Ha,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-Vxlf1o8W.js"),__vite__mapDeps([14,15,16])))}),epe=Ae({getParentRoute:()=>km,path:"/",beforeLoad:()=>{throw po({to:"/_admin/users"})}}),tpe=Ae({getParentRoute:()=>km,path:"/users",component:Be(()=>Fe(()=>import("./users-CwtBqC8p.js"),__vite__mapDeps([17,18,19,20,21,22,23,24,25,26])))}),ope=Ae({getParentRoute:()=>km,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-FiDI4ovr.js"),__vite__mapDeps([27,18,19,20,21,22,23,28,25,29,30,31,32,33,34,35,24,36,37,26])))}),ape=Ae({getParentRoute:()=>km,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-G3yYbKPD.js"),__vite__mapDeps([38,21,28,35,26])))}),npe=km.addChildren([epe,tpe,ope,ape]),JE=Ae({getParentRoute:()=>Ha,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-alWzS7OH.js").then(e=>e.s),__vite__mapDeps([39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,71,72,73,12,4,3,74,75,37,76,77,78,79,80,81,82,83,84,85,25,86,28,87,88,31,89,90,91,92,93,94,6,7,8,15,95,96,97,98])))}),rpe=Ae({getParentRoute:()=>JE,path:"/",beforeLoad:async()=>{const e=eue();if(e)throw po({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Nr.lastOrgSlug());if(t)throw po({to:"/$org",params:{org:t}});const{data:o}=await zB();if(!o)return;const a=o[0];throw po(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),spe=Ae({getParentRoute:()=>Ha,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await zB();if(e&&e.length>0)throw po({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-mHWmOamf.js"),__vite__mapDeps([99,15,5,100,64,28,34,40,49,67])))}),i5=es(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),ipe=Ae({getParentRoute:()=>Ha,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-BaNp7l8n.js"),__vite__mapDeps([101,102,1,2,3,4,5,100,64,103,104,28,105,73,12,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,54,55,56,57,58,59,60,61,62,63,23,65,66,67,68,69,70,88,31,107,108,109,110,25,111,112,113,11,114,115,116,117,118,119]))),validateSearch:i5}),lpe=Ae({getParentRoute:()=>Ha,path:"/commerce-onboarding",validateSearch:i5,beforeLoad:({search:e})=>{throw po({to:"/reports-onboarding",search:e})}}),cpe=Ae({getParentRoute:()=>Ha,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-Biv3zv_l.js"),__vite__mapDeps([120,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,15]))),validateSearch:es(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),XE=Ae({getParentRoute:()=>Ha,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-DOVMxVDH.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])))}),dpe=Ae({getParentRoute:()=>XE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-DOVMxVDH.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorPreview")}),upe=Ae({getParentRoute:()=>XE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-DOVMxVDH.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorContent")}),ppe=Ae({getParentRoute:()=>Ha,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-jjX900h5.js"),__vite__mapDeps([259,114,4,1,2,3,260])))}),Pb=Ae({getParentRoute:()=>JE,path:"/$org",loader:({params:e})=>oue(e.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-BHS1eUVp.js"),__vite__mapDeps([261,137,131,8,132,88,31,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,140,71,72,73,12,4,3,74,75,37,76,103,104,28,141,142,96,93,78,85,77,81,82,25,143,35,130,133,79,80,134,126,151,7,16,240,124,123,245,206,30,262,90,91,263,24,264,265,173,165,149,154,266,34,89,267,155,214,231,230,268,188,94,84,187,127,190,153,110,269,243])))}),_b=Ae({getParentRoute:()=>Pb,id:"org-shell",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./thread-route-Bmhkgc3V.js"),__vite__mapDeps([270,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,102,271,107,108,109,47,105,106,83,51,42,43,44,45,20,46,48,40,49,32,50,33,41,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,88,31,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),mpe=Se({sidepanel:iF,mainpanel:lF,main:lo([$(),Qe(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),tn=Ae({getParentRoute:()=>_b,id:"agent-shell",validateSearch:mpe,search:{middlewares:[O$(["sidepanel","thread"])]},pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-DM2qFCGb.js"),__vite__mapDeps([273,237,20,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,168,169,170,42,43,44,45,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,193,194,132,197,146,214,274,174,148,147,175,21,235,236,149,129,130,131,134,135,136,22,275,276,231,216,215,265,173,165,212,230,141,277,278,279,280,281,156,208,144])))}),hpe=xm.extend({virtualmcpid:$().optional()}),gpe=Ae({getParentRoute:()=>tn,path:"/$taskId",validateSearch:hpe,component:()=>null}),Rt=Be(()=>Fe(()=>import("./index-_JW1v87_.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutPending"),Dt=Be(()=>Fe(()=>import("./index-_JW1v87_.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutError"),fpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-CK5gZJMZ.js"),__vite__mapDeps([282,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,289,281,156,208,278,279,280,86,85,87,89,25,94,290,262,142])))}),vpe=Ae({getParentRoute:()=>tn,path:"/projects",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const o=(t.project??t.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw po({to:"/$org/home",params:{org:e.org},search:a,hash:!0,replace:!0});const n=t.task?.trim();throw po(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a,hash:!0,replace:!0})}}),Yt=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/projects/$agentId",validateSearch:xm,beforeLoad:({cause:e,location:t})=>({enteredProject:e!=="preload"&&!Sue(t.state)}),component:Sk}),bpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-BlpKGy6_.js"),__vite__mapDeps([291,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,262,277])))}),ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...QE}),beforeLoad:({params:e,search:t})=>{const o=o5(e.taskKey,t);if(o)throw po({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-DmIKhvKo.js"),__vite__mapDeps([292,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),wpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-C7WT1YdD.js"),__vite__mapDeps([304,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Ab=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...a5}),component:Be(()=>Fe(()=>import("./agent-site-editor-D1Fw_nHF.js"),__vite__mapDeps([232,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,233,234,145,146,147,148,149,150,151,7,88,31,8,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,152,153,29,30,154,155,156,157,71,134,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,191,192,193,194,132,197,214,221,222,210,211,178,208,255,174,175,256,226,129,130,131,135,136,257,258])))}),Spe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog"},validateSearch:Se(Vue),component:Be(()=>Fe(()=>import("./agent-blog-DBkq-Lqv.js"),__vite__mapDeps([307,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,206,218,160,161,22,165,166,184,219,223,224,225,226,173,227,228,207,308,209,309,275,276,231,216,215,265,257])))}),Tpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog/posts/$postId",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog-post"},validateSearch:Se(Gue),component:Be(()=>Fe(()=>import("./agent-blog-post-C7MCFiHJ.js"),__vite__mapDeps([310,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,226,184,227,228,161,176,209,308,257])))}),xpe=Ae({getParentRoute:()=>Ab,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-DuAYz352.js"),__vite__mapDeps([311,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,158,159,160,145,156,157,161,162,21,22,166,34,174,175,176,134,177,178,179,180,181,182,183,139,184,199,200,201,202,203,204,205,206,207,208,111,209,144,135,210,211,213])))}),kpe=Ae({getParentRoute:()=>Ab,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-DFf7AvSd.js"),__vite__mapDeps([312,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,217,181,160,145,156,157,161,162,21,22,166,159,34,182,183,139,184,175,178,199,200,201,202,203,204,205,206,218,219,220,221,222,223,224,225,226,227,228,207,208,174,180,229,18,19])))}),Epe=Ae({getParentRoute:()=>Ab,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-C0aN3J0F.js"),__vite__mapDeps([313,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,21])))}),Cpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw po({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-B0cI5z7i.js"),__vite__mapDeps([314,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,64,44,70,22,23,21,296,315,24,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,56,2,57,58,60,61,62,63,65,67,68])))}),Ppe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:Wt(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-Cs5PlhS_.js"),__vite__mapDeps([316,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,153,34,151,81,82,171,195,276,83,317,7,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,152,29,30,154,155,318,296,186,39,16,26,71,84,85,25,86,28,87,89,92,94,6,15,97,98,319,241,242,167,168,169,170,104,196,320,188,138,321,163,164,207,208,322,19,21,323,252,274,302,253,185,187,189,190,191,192,193,194,197,198,251])))}),_pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-CfA0v4u2.js"),__vite__mapDeps([324,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,170,36,212,147,333,334,194,213,236])))}),Ape=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./agent-library-BOVPDlx0.js"),__vite__mapDeps([335,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,336,56,64,67,22,23,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,25,337,35,32,33,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,55,2,57,58,60,61,62,63,65,66,68,70,169,170,325,326,327,328,329,21,330,39,16,26,71,81,82,83,84,85,86,28,87,89,92,94,6,7,15,97,98,280,151,278,279,110,281,156,208,198,338,226,19,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,36,212,147,333,334,194,213,236])))}),Rpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-B3xVIbjO.js"),__vite__mapDeps([339,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,22,166,226])))}),Dpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-CAwZrvbX.js"),__vite__mapDeps([340,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,226,145,156,157,222])))}),Ope=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-eAcCsqG1.js"),__vite__mapDeps([341,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,24,226,149,43,44,42,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,110,19,186,28,29,30,172,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,264,329,170,36,212,147,333,334,194,213,236])))}),Npe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-BAdG01pL.js"),__vite__mapDeps([343,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,28,29,30,19,226,186,163,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Mpe=Ae({getParentRoute:()=>Yt,path:"/analytics",validateSearch:Se({view:$().optional()}),beforeLoad:({params:e,search:t})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:t.view==="experiments"?"experiments":"audience"},replace:!0})}}),Ipe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-qYx0x7wk.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Lpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-CW7C-fZV.js"),__vite__mapDeps([348,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,349,226,350,199,200,201,202,203,204,351,161,228,220,256])))}),Bpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-Cu-bFn_1.js"),__vite__mapDeps([352,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,226,206,220,350,199,200,201,202,203,204,351,161,228,225,256,342,331,318,267,319,332,276,34,265,173,165,264,329,36,333,334,213])))}),Fpe=Ae({getParentRoute:()=>Yt,path:"/cdn",beforeLoad:({params:e})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:"performance"},replace:!0})}}),l5=Se({args:$().optional()}),jpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/apps/$connectionId/$toolName",validateSearch:l5,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-CY_peY26.js"),__vite__mapDeps([353,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,216,72,4,3,74,75,37,76,354,171,276,191,192,193,122,95,96,93,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117])))}),zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/views/$viewId",validateSearch:l5,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-Dn0R3JvN.js"),__vite__mapDeps([356,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,354,171,276,191,192,193,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117,342,331,318,21,267,35,195,319,246,247,248,29,30,249,250,251,24,252,253,198,332,153,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-DvQOcO5j.js"),__vite__mapDeps([357,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,198,281,128,90,91,156,208,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,197,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),Upe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-BO0opKup.js"),__vite__mapDeps([358,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,280,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,128,90,91,151,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),$pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-CwKgVo3C.js"),__vite__mapDeps([359,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,360,279,110,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,280,128,90,91,151,281,156,208,198,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),Vpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-DWW4lIzl.js"),__vite__mapDeps([361,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,105,102,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,107,108,109,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),Hpe=Ae({getParentRoute:()=>Yt,path:"/$legacyView",component:()=>null}),Gpe=Ae({getParentRoute:()=>tn,path:"/agents",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw po(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),Wpe=Ae({getParentRoute:()=>tn,path:"/agents/$",validateSearch:xm,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!t5(o))return;const a=Due(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw po({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-DMgm8PW4.js"),__vite__mapDeps([362,277,80])))}),Kpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...QE}),beforeLoad:({params:e,search:t})=>{const o=o5(e.taskKey,t);if(o)throw po({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-CgHumZoi.js"),__vite__mapDeps([363,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),Ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-qYx0x7wk.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-Cq43267h.js"),__vite__mapDeps([364,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,346,286,203,204,202,287,19,43,20,44,172,164,24,188,138,49,56,75,37,347,74,3,205,50,81,82,23,151,29,30,32,33,163,302,253,91,51,185,42,45,46,47,48,40,41,52,53,55,2,57,58,60,61,62,63,64,65,66,67,68,70,186,170,167,168,169,122,95,96,93,72,4,76,123,124,127,128,90,171,104,28,187,189,190,39,16,26,71,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,195,196,197,198,252,274])))}),Qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-CxlZrs39.js"),__vite__mapDeps([365,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Jpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./library-_WNCXPDS.js"),__vite__mapDeps([366,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,129,88,31,54,69,130,131,132,133,134,135,136,59,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,360,279,110,280,151,281,156,208,198,169,170,336,22,337,278,338,226,19])))}),Xpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-DQJ8rFRb.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,35,39,16,26,71,72,4,3,74,75,37,76,81,82,83,84,85,25,86,28,87,89,90,91,92,93,94,6,7,15,95,96,97,98,122,123,124,127,128,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),c5=Se({view:Wt(["metrics","alerts","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:gL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),eme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-BWg5UnHg.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,226,151,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,205,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),tme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-DQJ8rFRb.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,35,39,16,26,71,72,4,3,74,75,37,76,81,82,83,84,85,25,86,28,87,89,90,91,92,93,94,6,7,15,95,96,97,98,122,123,124,127,128,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),ome=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan/case",staticData:{pageTitle:"page.businessCase",defaultMain:"business-case",mainView:"business-case"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-business-case-DGNDHfy8.js"),__vite__mapDeps([374,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,35,39,16,26,71,72,4,3,74,75,37,76,81,82,83,84,85,25,86,28,87,89,90,91,92,93,94,6,7,15,95,96,97,98,122,123,124,127,128,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),ame=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-BWg5UnHg.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,226,151,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,205,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),nme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-CdZx7BRU.js"),__vite__mapDeps([375,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,47,53,57,64,68,89,195,165,173,212,117,76])))}),rme=Ae({getParentRoute:()=>Pb,path:"/members",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/members",params:{org:e.org}})}}),sme=Se({main:lo([$(),Qe(0)]).optional(),virtualmcpid:$().optional(),...n5,sidepanel:iF,mainpanel:lF,thread:$().optional()}),ime=Ae({getParentRoute:()=>_b,path:"/",validateSearch:sme,pendingComponent:Xd,component:Be(()=>Fe(()=>import("./index-MbMJ4XU6.js"),__vite__mapDeps([376,277,80])))}),lme=Ae({getParentRoute:()=>_b,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw po({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),co=Ae({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Pb,path:"/settings",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-ClMamn6O.js"),__vite__mapDeps([377,8,136,59,131,132,88,31,134,77,78,73,12,125,126,80,378,64,24,151,172,164,124,123,245])))}),cme=Ae({getParentRoute:()=>co,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-B-ZpFI6V.js"),__vite__mapDeps([379,328])))}),dme=Ae({getParentRoute:()=>co,path:"/connections",validateSearch:es(()=>Se({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()})),beforeLoad:({params:e,search:t})=>{throw po({to:"/$org/library",params:{org:e.org},search:{section:"connections",...t},replace:!0})}}),ume=Ae({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-BnCsN0WR.js"),__vite__mapDeps([380,115,108,116,117,21,250,64,66,381,73,12,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,23,65,67,68,69,70,195,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,332,24,193,11,113,83,132,104,28,196,383,384,286,203,202,287,347,163,164,248,192,92]))),validateSearch:es(()=>Se({tab:$().optional()}))}),pme=Ae({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-CpQCmGv5.js"),__vite__mapDeps([385,21,73,12,104,28,35,381,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,115,108,116,117,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,192,193,211,248,332,24,11,191,83,122,79,80,77,95,96,93,123,124,125,126,127,128,90,91,39,16,26,71,81,84,25,86,87,89,92,94,6,7,15,97,98,207,208,226]))),validateSearch:es(()=>Se({replayId:$().optional()}))}),mme=Ae({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Be(()=>Fe(()=>import("./index-BGgVMoul.js"),__vite__mapDeps([386,22,23,21,326,327,328,185,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,65,66,67,68,69,70,186,170,167,168,169,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,88,31,171,104,28,138,187,188,189,190,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,132,195,196,197,198,248,24,151,207,208,321,153,29,30,345,206,182,35,251,34,211,384,286,203,204,202,287,347,302,253,252,274,19,323,296,322,226,371,111,288,303,244,245]))),validateSearch:es(()=>Se({tab:Wt(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:Wt(["all","success","errors"]).default("all"),search:$().default(""),page:Lt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),hme=Ae({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Be(()=>Fe(()=>import("./general-ChYADWnU.js"),__vite__mapDeps([387,319,388,34,48,41,93,37,75,195,73,12,389,24,29,30,31,32,33,328])))}),gme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./connect-DfUKQrO1.js"),__vite__mapDeps([390,211,24,29,30,31,32,33,163,164,170,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,284,285,73,12,326,327,328,391,226,28,382,276,153,22,83,392,252,253,91,92,116,117,195])))}),fme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./ai-providers-Dbisg2_X.js"),__vite__mapDeps([393,43,124,49,93,37,75,317,7,8,122,79,80,77,78,73,12,95,96,72,4,3,74,76,123,125,126,127,128,90,91,152,153,60,29,30,31,32,33,46,50,58,45,23,154,155,61,56,57,319,378,64,24,151,172,164,88,245,266,34,89,66,267,326,327,328])))}),vme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),bme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./infra-billing-COWj38os.js"),__vite__mapDeps([394,52,24,321,153,60,32,81,82,23,151,29,30,31,33,19,287,203,204,372,347,326,327,328])))}),yme=Ae({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-DloYc21B.js"),__vite__mapDeps([395,43,64,68,226,28,29,30,31,32,33,35,334,326,327,328])))}),wme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./api-keys-Cfgf_CFf.js"),__vite__mapDeps([396,391,43,42,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,226,28,24,382,29,30,31,73,12,276,153,22,83,392,252,253,91,92,116,117,195,285,326,327,328])))}),Sme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./buckets-BJgVyZGc.js"),__vite__mapDeps([397,43,64,66,24,226,28,29,30,31,32,33,34,35,165,326,327,328])))}),Tme=Ae({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,path:"/repositories",validateSearch:Se({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Lt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Vs("repositories"),component:Be(()=>Fe(()=>import("./repositories-D9MHG-uk.js"),__vite__mapDeps([398,399,87,46,64,88,31,28,89,90,91,92,23,48,65,25,93,37,75,47,153,60,51,68,226,24,211,110,186,29,30,32,33,35,66,333,334,326,327,328])))}),xme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./synced-repos-Cxcrq7XH.js"),__vite__mapDeps([400,64,226,87,46,88,31,28,89,90,91,92,23,48,65,25,93,37,75,337,326,327,328])))}),kme=Ae({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-BKbLDNZi.js"),__vite__mapDeps([401,153,60,35,50,63,64,205,81,82,23,151,321,24,32,29,30,31,33,34,320,388,48,41,93,37,75,195,73,12,25,296,295,69,70,110,88,132,128,90,91,77,78,74,3,326,327,328])))}),Eme=Ae({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/task-board",params:{org:e.org}})}}),Cme=Ae({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Be(()=>Fe(()=>import("./projects-zPdONEG4.js"),__vite__mapDeps([402,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,24,22,86,28,73,12,85,78,72,4,3,74,75,37,76,87,88,31,89,90,91,92,25,93,94,290,267,271,107,108,109,306,77,195])))}),Pme=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./members-D9Xtz8bv.js"),__vite__mapDeps([403,404,20,55,88,31,172,164,24,22,23,18,19,21,104,28,29,30,32,33,35,405,269,58,66,69,153,60,81,82,151,64,298,326,327,328])))}),_me=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./roles-I7CPVpVS.js"),__vite__mapDeps([406,405,24,55,64,66,18,19,20,21,22,23,154,392,83,51,42,43,44,45,46,47,48,40,49,32,50,33,41,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,70,252,153,253,91,73,12,92,116,117,195,78,124,34,88,31,84,77,327,328]))),validateSearch:es(()=>Se({role:$().optional()}))}),Ame=Ae({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Be(()=>Fe(()=>import("./sso-DNjzWg00.js"),__vite__mapDeps([407,389,24,29,30,31,32,33,34,97,66,326,327,328])))}),Rme=Ae({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Be(()=>Fe(()=>import("./profile-iyi7XS4l.js"),__vite__mapDeps([408,200,201,30,66,67,34,29,31,32,33,172,164,88,61,62,63,319,243,2,64])))}),Dme=Ae({getParentRoute:()=>co,path:"/agents",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/projects",params:{org:e.org}})}}),Ome=Ae({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Be(()=>Fe(()=>import("./automations-FO50hUU_.js"),__vite__mapDeps([409,64,70,22,23,21,296,73,12,85,78,72,4,3,74,75,37,76,315,24,44,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,326,327,328])))}),Nme=Ae({getParentRoute:()=>co,path:"/skills",beforeLoad:({params:e})=>{throw po({to:"/$org/library",params:{org:e.org},search:{section:"skills"},replace:!0})}}),Mme=Ae({getParentRoute:()=>co,path:"/memory",validateSearch:es(()=>Se({scope:Wt(["user"]).optional()})),beforeLoad:({params:e,search:t})=>{throw po({to:"/$org/library",params:{org:e.org},search:{section:"memory",...t},replace:!0})}}),Ime=co.addChildren([cme,dme,ume,pme,Dme,Ome,Nme,Mme,mme,hme,gme,fme,vme,bme,yme,wme,Sme,Tme,xme,kme,Eme,Cme,Pme,_me,Ame,Rme]),Lme=Ab.addChildren([xpe,kpe,Epe]),Bme=Yt.addChildren([bpe,ype,wpe,Lme,Spe,Tpe,Cpe,Ppe,_pe,Ape,Rpe,Dpe,Ope,Npe,Mpe,Ipe,Lpe,Bpe,Fpe,jpe,zpe,qpe,Upe,$pe,Vpe,Hpe,tme,ome,ame]),Fme=tn.addChildren([gpe,fpe,vpe,Bme,Gpe,Wpe,Kpe,Ype,Zpe,Qpe,Jpe,nme,Xpe,eme]),jme=_b.addChildren([ime,lme,Fme]),zme=Pb.addChildren([jme,rme,Ime]),qme=JE.addChildren([rpe,zme]),Ume=Ha.addChildren([qme,npe,spe,ipe,lpe,cpe,XE.addChildren([dpe,upe]),ppe,Wue,Kue,Yue,Zue,Que,Jue,Xue]);function $me(){const e=ye.c(16),t=$a();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=y.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==n?(r=y.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=r):r=e[7];let i;e[8]!==t?(i=t("common.goBack"),e[8]=t,e[9]=i):i=e[9];let c;e[10]!==i?(c=y.jsx("button",{type:"button",onClick:Vme,className:"text-sm text-primary hover:underline",children:i}),e[10]=i,e[11]=c):c=e[11];let d;return e[12]!==a||e[13]!==r||e[14]!==c?(d=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),e[12]=a,e[13]=r,e[14]=c,e[15]=d):d=e[15],d}function Vme(){return window.history.back()}const Rb=yV({routeTree:Ume,defaultPendingComponent:Xd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:$me});function _e(...e){return sF(sE(e))}function Hme(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function Vo({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const r=e.error.code;if(t?.[r])return t[r]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function oc(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function M0(e,t){for(const o in e)if(e[o]===t)return o}function tm(e,t){let o=$().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Gme={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Wme={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Kme={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Yme={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Zme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Qme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Jme={...Zme,...Qme},Xme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},ehe={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},the={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},ohe={INVALID_SESSION_TOKEN:"Invalid session token"},ahe={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},nhe={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},rhe={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},she={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},ihe={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},lhe={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},che={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},dhe={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Yme,...Gme,...Wme,...Kme,...Jme,...Xme,...ehe,...the,...ohe,...ahe,...nhe,...rhe,...she,...ihe,...lhe,...che},uhe={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},dN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},uN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const d5=A.createContext({});function u5(){return A.useContext(d5)}var yT,pN;function phe(){if(pN)return yT;pN=1;var e=function(){};return yT=e,yT}var mhe=phe();const hhe=Yl(mhe);function ghe({async:e,appendTo:t,defer:o,id:a,nonce:n,src:r}){const i=document.createElement("script");e!==void 0&&(i.async=e),o!==void 0&&(i.defer=o),a&&(i.id=a),n&&i.setAttribute("nonce",n),i.src=r,(t==="head"?document.head:document.body).appendChild(i)}var fhe=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let Op=null,om=!1;const Ov=new Set,Nv=new Set,vhe=typeof window<"u",Ad="___grecaptcha_cfg",p5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function bhe(){if(!vhe)return;function e(o){if(om)o();else{window[Ad]||(window[Ad]={});const a=window[Ad];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){om=!0;for(const o of Nv)o();Nv.clear()}window[p5]=t}function yhe({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function whe({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=yhe({language:e,onLoadCallbackName:p5,render:t,useEnterprise:a,useRecaptchaNet:n});if(Op){if(Op!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Op=i,ghe(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function She(e){if(!window[Ad])return;const t=window[Ad];t.clients&&delete t.clients[e]}function The(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=fhe(t,["onLoadCallback","onLoadCallbackName"]);if(Ov.size===0&&bhe(),whe(n),Ov.add(e),o&&(om?o():Nv.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};om?r():Nv.add(r)}}function xhe(e){var t,o,a;Ov.delete(e),Ov.size===0&&(window.grecaptcha=void 0,window[Ad]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${Op}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Op=null,om=!1)}let mN=!1;function khe({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[w,x]=A.useState(null),[T,k]=A.useState(null),C=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return The(b,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{xhe(b),x(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!e?.element||!w?.render)return;const U={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((R=e.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=w.render(B,U);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(mN||(hhe(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),mN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),C.current=!0,()=>{k(null),C.current=!1,She(z),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(u=e?.parameters)===null||u===void 0?void 0:u.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,w,a]);const E=!!e?.element,_=E?T:a,D=A.useMemo(()=>_!==null&&w?.execute?R=>{if(_===null||!w?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):w.execute(_,{action:R})}:void 0,[_,w,E]);return y.jsx(d5.Provider,{value:{container:e?.element,executeRecaptcha:D,reCaptchaInstance:w},children:t})}var Ehe=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Jn=new Ehe;function Che(){return()=>{}}function Hs(){return A.useSyncExternalStore(Che,()=>!0,()=>!1)}function m5(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function eC(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function Phe({children:e}){const t=Hs(),{captcha:o}=A.useContext(wt);return o?.provider!=="google-recaptcha-v3"?e:y.jsxs(khe,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&y.jsx("style",{children:`
|
|
185
|
+
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=m2.test(f)?f.replace(m2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var w=b(v,a);if(w){u.push(w);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var T=Array.from(x);return T.reverse(),T.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(C=T,C[C.length-1]||{}).filename,function:k.function||Vd});var C}))})(u)}})("web:javascript",Ule,Hle)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(n0))!==null&&t!==void 0?t:[],this.mo=gv(this.yo()),this.bo=new ace(this.mo)}onConfigChange(){this.mo=gv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],r=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[n0]:this.fo,[r0]:r})}}get _o(){var e,t=!!this._instance.get_property(r0),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Po(e)||e.trim().length===0)return void Rs.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>oce.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&Rs.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[mv]:e,[hv]:new Date().toISOString()},a))}catch(r){Rs.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Rs.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Rs.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Rs.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Rs.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Rs.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Me({},e,{$exception_steps:t})}catch(o){return Rs.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[mv]:e,[hv]:new Date().toISOString()})}wo(e){return Fo(e)?Me({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:r}=a;return Po(n)&&n.length>0&&o.$exception_types.push(n),Po(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,i=S4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=t[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,r=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],i=r[r.length-1];return(a=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Pt(e)&&Bt(e)}}},mde=Me({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[i0]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(i0)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?Q2.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Bt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[Pf];if(Bt(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return Q2.error(i),void e([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[Pf]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Pf)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},xb),hde={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=ot._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,r,i,c;if(!e)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:b}=e;return{event:Me({},T3(e,nde),{properties:Me({},e.properties,b?{$set:Me({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Me({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(i=e.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var i;!t.errored&&this.No.length&&(Ti.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},a=!1,n=i=>{t.errored=!i,t.loaded=!0,Ti.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),a&&o()};try{var{processEvent:r}=e.init({posthog:this._instance,callback(i){n(i)}});r&&(t.processEvent=r),a=!0}catch(i){Ti.error(J2+e.id,i),n(!1)}if(a&&t.loaded)try{o()}catch(i){Ti.error("Error while processing buffered events PostHog app with config id "+e.id,i),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){Ti.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return Ti.error(J2+d,m)}))};for(var{id:i,url:c}of e.siteApps)r(i)}else Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},gde={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];$e(this.Lo)&&((t=ot.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=ot.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return ode.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},fde=Me({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return no.warn("Flags not loaded yet. Not loading surveys.");var o=Bt(t);this.jo=o?t.length>0:t,no.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(P0)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)no.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)no.info(X2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())no.info("Not loading surveys in cookieless mode without consent.");else{var e=ot?.__PosthogExtensions__;if(e){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho(qE);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else no.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new ide(this._instance),no.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){no.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return no.info(X2),e([]);var o,a=this._instance.get_property(p0);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return e(r,i)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;no.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var w;return!((w=b.conditions)==null||(w=w.events)==null||(w=w.values)==null||!w.length)})(v)||(function(b){var w;return!((w=b.conditions)==null||(w=w.actions)==null||(w=w.values)==null||!w.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[p0]:m});var f={isLoaded:!0};e(m,f),o?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){no.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);no.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:gT};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return no.warn("init was not called"),{visible:!1,disabledReason:gT};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(no.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:gT})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);o({visible:i.eligible,disabledReason:i.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Pt(this._surveyManager))no.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(qce.includes(n.type)){var r=ze?.querySelector(t);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(no.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;no.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),no.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);no.warn("Survey element not found")}else no.warn("Surveys of type "+n.type+" cannot be rendered in the app");else no.warn("Survey not found")}}displaySurvey(e,t){var o;if(Pt(this._surveyManager))no.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Me({},a,{appearance:Me({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==S0.Popover&&t.initialResponses&&no.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void no.warn("Survey is not eligible to be displayed: ",r.disabledReason)}t.displayType!==S0.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else no.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?no.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},xb),vde={toolbar:class{constructor(e){this.instance=e}Go(e){ot.ph_toolbar_state=e}Wo(){var e;return(e=ot.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),o4(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=lde||Cv(e.hash,"__posthog")||Cv(e.hash,"state"),r=n?g2((()=>JSON.parse(atob(decodeURIComponent(n)))))||g2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?e.hash=r.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem(eN)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=ot.ph_load_toolbar||ot.ph_load_editor;!Pt(t)&&Os(t)?t(e,this.instance):tN.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(J3));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Me({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(eN,JSON.stringify(Me({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return tN.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Jo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},bde=Me({experiments:Ba},xb),yde={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Pt(t)||(Qr(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||o4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=ot?.__PosthogExtensions__;if(e&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(qE);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Qn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Qn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Qn.error("Cannot complete initialization: remote config is null")}ra(e,t){Qn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Qn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Us(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return tr((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Qn.warn(Pl),null)}))()}getMessages(e,t){var o=this;return tr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Qn.warn(Pl),null)}))()}markAsRead(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Qn.warn(Pl),null)}))()}getTickets(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Qn.warn(Pl),null)}))()}requestRestoreLink(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Qn.warn(Pl),null)}))()}restoreFromToken(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Qn.warn(Pl),null)}))()}restoreFromUrlToken(){var e=this;return tr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Qn.warn(Pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},wde={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=xo("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=ot?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(qE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,r,i;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:b,number:w}=U3[v]||Lle,x=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var k=Me({},T,h.attributes||{}),C={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:w,severityText:b,body:{stringValue:h.body},attributes:p2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(e,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Me({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:p2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(t.map((i=>i.record)),a,Ja.LIB_NAME,Ja.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(ot!=null&&(e=ot.location)!=null&&e.href&&(t.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},Sde=Me({},xb,dde,ude,pde,mde,hde,fde,gde,vde,bde,yde,wde);or.__defaultExtensionClasses=Me({},Sde);var rN,$s=(rN=Rp[pd]=new or,(function(){function e(){e.done||(e.done=!0,k4=!1,bo(Rp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Jo(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),rN);let Fs=!1,O0=null,sN=!1;const KE="studio:lp-distinct-id",N4="mesh:lp-distinct-id",vT="/api/_reports/link-token/",Tde=1440*60*1e3;function M4(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(vT)&&n.pathname!==vT&&(n.pathname=`${vT}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function bT(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?M4(o):o]))}const xde=e=>e?(e.properties=bT(e.properties),e.$set&&(e.$set=bT(e.$set)),e.$set_once&&(e.$set_once=bT(e.$set_once)),e):null;function I4(){try{const e=window.localStorage.getItem(KE)??window.localStorage.getItem(N4);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=Tde?t:void 0}catch{return}}function kde(){try{window.localStorage.removeItem(KE),window.localStorage.removeItem(N4)}catch{}}function Ede(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(KE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??I4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function Cde(e){const t=I4();if(t&&(kde(),t!==e))try{$s.alias(t)}catch{}}function Pde(e,t){if(Fs||typeof window>"u")return;const o=Ede();$s.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:xde,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:M4(a.name)}:{}})},person_profiles:"identified_only"}),Fs=!0}function _de(e,t){Fs&&($s.identify(e,t),Cde(e))}function Ade(){Fs&&($s.reset(),O0=null)}function L4(e,t){Fs&&$s.capture(e,t)}function g0e(){return Fs}function f0e(){if(!Fs||sN||typeof performance>"u")return;sN=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};L4("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:LJ(),org_cache_restored:BJ()})}function v0e(e,t){Fs&&e!==O0&&($s.group("organization",e,t),O0=e)}function B4(e,t){if(Fs)try{$s.captureException(e,t)}catch{}}const Rde=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Dde(e){const t=ye.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Rde}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,y.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function F4(e){const t=ye.c(20),{orgName:o}=e,a=$a(),n=Ode;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(e3,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=r):r=t[0];let i;t[1]!==a?(i=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=i):i=t[2];let c;t[3]!==i?(c=y.jsx("h3",{className:"text-lg font-medium",children:i}),t[3]=i,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=d):d=t[7];let u;t[8]!==d?(u=y.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=u):u=t[9];let m;t[10]!==c||t[11]!==u?(m=y.jsxs("div",{className:"space-y-2",children:[c,u]}),t[10]=c,t[11]=u,t[12]=m):m=t[12];let h;t[13]!==a?(h=a("common.goHome"),t[13]=a,t[14]=h):h=t[14];let f;t[15]!==h?(f=y.jsx(yn,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=y.jsxs(Dde,{children:[r,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function Ode(){window.location.href="/"}function Nde(){const e=ye.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=im(t);let a;return e[1]!==o?(a=y.jsx(yn,{variant:"outline",size:"sm",asChild:!0,children:y.jsx(Zl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Mde(e){const t=ye.c(13),{area:o,description:a,action:n}=e,r=o?`No access to ${o}`:"No access",i=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(c3,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),t[1]=r,t[2]=d):d=t[2];let u;t[3]!==i?(u=y.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),t[3]=i,t[4]=u):u=t[4];let m;t[5]!==d||t[6]!==u?(m=y.jsxs("div",{className:"space-y-1",children:[d,u]}),t[5]=d,t[6]=u,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??y.jsx(Nde,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=y.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const iN="__studio_chunk_reload_ts";function j4(e){return e?.message===See}function Ide(e){return!!e?.message?.includes("Access denied")}function lN(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Lde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),B4(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:j4(this.state.error)?y.jsx(F4,{}):Ide(this.state.error)?y.jsx(Mde,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Bde(e){const t=ye.c(3),o=$a();let a;return t[0]!==e||t[1]!==o?(a=y.jsx(Lde,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class Fde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=lN(t);if(B4(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(iN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(iN,String(r)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&lN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(d3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),y.jsx(yn,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?j4(this.state.error)?y.jsx(F4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function jde(e){const t=ye.c(3),o=$a();let a;return t[0]!==e||t[1]!==o?(a=y.jsx(Fde,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}const zde=Xl("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function qde(e){const t=ye.c(14);let o,a,n,r,i;t[0]!==e?({className:o,size:r,interactive:a,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5]);const d=(i===void 0?!1:i)?db:"div";let u;t[6]!==o||t[7]!==a||t[8]!==r?(u=Je(zde({size:r,interactive:a}),o),t[6]=o,t[7]=a,t[8]=r,t[9]=u):u=t[9];let m;return t[10]!==d||t[11]!==n||t[12]!==u?(m=y.jsx(d,{"data-slot":"card",className:u,...n}),t[10]=d,t[11]=n,t[12]=u,t[13]=m):m=t[13],m}function b0e(e){const t=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:i,children:c}=e;let d;t[0]!==i?(d=Je("flex flex-col gap-3",i),t[0]=i,t[1]=d):d=t[1];let u;t[2]!==r||t[3]!==a||t[4]!==n||t[5]!==o?(u=(o||a||n||r)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(t3,{size:12})]})]})]}),r&&y.jsx("div",{className:"shrink-0",children:r})]}),t[2]=r,t[3]=a,t[4]=n,t[5]=o,t[6]=u):u=t[6];let m;return t[7]!==c||t[8]!==d||t[9]!==u?(m=y.jsxs("section",{className:d,children:[u,c]}),t[7]=c,t[8]=d,t[9]=u,t[10]=m):m=t[10],m}function y0e(e){const t=ye.c(11),{className:o,children:a}=e;let n,r,i;if(t[0]!==a||t[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=qde,t[5]!==o?(r=Je("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=r):r=t[6],i=d.map(Ude),t[0]=a,t[1]=o,t[2]=n,t[3]=r,t[4]=i}else n=t[2],r=t[3],i=t[4];let c;return t[7]!==n||t[8]!==r||t[9]!==i?(c=y.jsx(n,{className:r,children:i}),t[7]=n,t[8]=r,t[9]=i,t[10]=c):c=t[10],c}function Ude(e,t){return y.jsxs("div",{children:[t>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function w0e(e){const t=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:i,className:c,children:d}=e,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;t[0]!==c||t[1]!==u||t[2]!==m?(h=Je(u,m,c),t[0]=c,t[1]=u,t[2]=m,t[3]=h):h=t[3];const f=i?"button":void 0,v=i?0:void 0;let b;t[4]!==i?(b=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,t[4]=i,t[5]=b):b=t[5];let w;t[6]!==o?(w=o&&y.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=w):w=t[7];let x;t[8]!==a?(x=y.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=x):x=t[9];let T;t[10]!==n?(T=n&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let k;t[12]!==d||t[13]!==x||t[14]!==T?(k=y.jsxs("div",{className:"flex-1 min-w-0",children:[x,T,d]}),t[12]=d,t[13]=x,t[14]=T,t[15]=k):k=t[15];let C;t[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:$de,children:r}),t[16]=r,t[17]=C):C=t[17];let E;return t[18]!==i||t[19]!==k||t[20]!==C||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==w?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[w,k,C]}),t[18]=i,t[19]=k,t[20]=C,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=w,t[26]=E):E=t[26],E}function $de(e){return e.stopPropagation()}function S0e(e){const t=ye.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Je("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let r;return t[2]!==a||t[3]!==n?(r=y.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=r):r=t[4],r}function T0e(e){const t=ye.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=Je("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==o||t[3]!==n?(r=y.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=r):r=t[4],r}function Vde(e){const t=ye.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=Je("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let r;return t[2]!==a||t[3]!==n?(r=y.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=r):r=t[4],r}const kb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:h3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:p3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:n3,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:u3,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:i3,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:s3,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function x0e(e){const t=kb[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function k0e(e){return kb[e].tabs.length>0}const Hde=new Set(["owner","admin"]);function z4(){const e=ye.c(11),{org:t,locator:o}=Qi();let a;e[0]!==o?(a=ca.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},e[2]=t,e[3]=n):n=e[3];let r;e[4]!==a||e[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=r):r=e[6];const{data:i,isLoading:c,isError:d}=Ki(r);let u;return e[7]!==i||e[8]!==d||e[9]!==c?(u={data:i,loading:c,error:d},e[7]=i,e[8]=d,e[9]=c,e[10]=u):u=e[10],u}function E0e(e){const t=ye.c(8),{data:o,loading:a,error:n}=z4();if(a){let u;return t[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=u):u=t[0],u}if(n){let u;return t[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=u):u=t[1],u}const r=o?.role??null;if(!r){let u;return t[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=u):u=t[2],u}if(r==="owner"){let u;return t[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=u):u=t[3],u}if(r==="admin"){let u;return t[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=u):u=t[4],u}const i=o?.capabilities?.[e]===!0,c=i?"role":"denied";let d;return t[5]!==i||t[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},t[5]=i,t[6]=c,t[7]=d):d=t[7],d}function q4(){const e=ye.c(10),{data:t,loading:o,error:a}=z4(),n=t?.role??void 0;let r;e[0]!==n?(r=n?Hde.has(n):!1,e[0]=n,e[1]=r):r=e[1];const i=r;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const d=c;let u;return e[4]!==a||e[5]!==i||e[6]!==o||e[7]!==n||e[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:i,roleSlug:n},e[4]=a,e[5]=i,e[6]=o,e[7]=n,e[8]=d,e[9]=u):u=e[9],u}function Gde(){const e=ye.c(13),{org:t}=Qi(),o=Jk(),{capabilities:a,isPrivileged:n}=q4(),r=n||!!a["members:manage"];let i;e[0]!==t.id?(i=ca.infraBillingSites(t.id),e[0]=t.id,e[1]=i):i=e[1];const c=!!t.id&&r;let d;e[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==c||e[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},e[4]=i,e[5]=c,e[6]=d,e[7]=u):u=e[7];const{data:m,isLoading:h}=Ki(u);let f;e[8]!==m?.sites?(f=m?.sites.map(Wde)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function Wde(e){return e.slug}function C0e(){const e=ye.c(7),t=Jk(),o=$a();let a;e[0]!==t?(a=i=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=i=>Fd.error(o("settings.infraBilling.portalError",{message:i.message})),e[2]=o,e[3]=n):n=e[3];let r;return e[4]!==a||e[5]!==n?(r={mutationFn:a,onSuccess:Kde,onError:n},e[4]=a,e[5]=n,e[6]=r):r=e[6],yf(r)}function Kde(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function P0e(e,t){const o=ye.c(14),{org:a}=Qi(),n=Jk();let r,i,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(r=[...e].sort(),c=Ki,i=ca.infraBilling(a.id,r.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=r,o[4]=i,o[5]=c):(r=o[3],i=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==t||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:t}),o[6]=t,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==i||o[11]!==d||o[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},o[10]=i,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function Yde(){const e=ye.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=q4(),{sites:r,isLoading:i}=Gde(),c=r.length>0;let d;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||t[m.requires]:!0;d=Object.fromEntries(Object.values(kb).map(m=>[m.key,m.tabs.filter(u)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=i,e[6]=d}else d=e[6];return d}function Zde(e){const t=ye.c(16),{group:o}=e,a=$a();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:r}=im(n);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Qde},t[1]=i):i=t[1];const c=Tk(i),d=Yde()[o],{titleKey:u}=kb[o];let m;t[2]!==a||t[3]!==u?(m=a(u),t[2]=a,t[3]=u,t[4]=m):m=t[4];let h;t[5]!==m?(h=y.jsx(Cd.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==o||t[8]!==r||t[9]!==c||t[10]!==a||t[11]!==d?(f=d.length>1&&y.jsx(mn.Toolbar.Left.Portal,{children:y.jsx(Cd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const w=b.to.replace("$org",r),x=c===w||c.startsWith(`${w}/`);return y.jsx(Cd.Tab,{active:x,asChild:!0,children:y.jsx(Zl,{to:b.to,params:{org:r},onClick:()=>L4("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=r,t[9]=c,t[10]=a,t[11]=d,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=y.jsxs(y.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function Qde(e){return e.location.pathname}function U4(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(RO,{className:"h-32 w-full"}),y.jsx(RO,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function Jde(e){const t=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=e;let c;t[0]!==o?(c=y.jsx(Zde,{group:o}),t[0]=o,t[1]=c):c=t[1];let d;t[2]!==a?(d=a??y.jsx(U4,{}),t[2]=a,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==d?(u=y.jsx(A.Suspense,{fallback:d,children:i}),t[4]=i,t[5]=d,t[6]=u):u=t[6];let m;t[7]!==n||t[8]!==u?(m=y.jsx(Bde,{fallback:n,children:u}),t[7]=n,t[8]=u,t[9]=m):m=t[9];let h;return t[10]!==r||t[11]!==c||t[12]!==m?(h=y.jsx(Cd,{children:y.jsx(Cd.Content,{children:y.jsx(Cd.Container,{children:y.jsxs(Vde,{className:r,children:[c,m]})})})}),t[10]=r,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Vs(e){return function(){return y.jsx(Jde,{group:e,children:y.jsx(U4,{})})}}function Xde(e){try{localStorage.setItem(Nr.lastLocation(),JSON.stringify(e))}catch{}}function eue(){try{const e=localStorage.getItem(Nr.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function _0e(){try{localStorage.removeItem(Nr.lastLocation())}catch{}}function tue(e,t){const o=e&&t?NJ(t,e):null;return{queryKey:ca.activeOrganization(e),queryFn:async()=>{if(!e)return null;const a={organizationSlug:e};performance.mark("mesh:active-org-fetch:start");const{data:n}=await fa.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=aE(n);return n&&!r&&localStorage.setItem(Nr.lastOrgSlug(),e),t&&n&&MJ(t,e,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let cN;async function oue(e){cN=e,await jB();const t=kee();if(!t)return;const o=await Jl.ensureQueryData(tue(e,t)).catch(()=>null);o&&!aE(o)&&cN===e&&Xde({org:e})}const Ct={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},Ke={root:Ct.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",blog:"/$org/projects/$agentId/blog",blogPost:"/$org/projects/$agentId/blog/posts/$postId",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",businessCase:"/$org/projects/$agentId/plan/case",monitoring:"/$org/projects/$agentId/monitoring"};function A0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:aue},e[0]=t):t=e[0],Tk(t)}function aue(e){return e.matches.at(-1)?.fullPath??""}function R0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:nue},e[0]=t):t=e[0],Tk(t)}function nue(e){return e.matches.findLast(rue)?.staticData.mainView}function rue(e){return e.staticData.mainView}function Rf(e){return`agent-view:${encodeURIComponent(e)}`}function sue(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function $4(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function iue(e){return`blog-post:${encodeURIComponent(e)}`}function lue(e){if(!e?.startsWith("blog-post:"))return null;const t=e.slice(10);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function YE(e,t){return`app:${e}:${t}`}function cue(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function V4(e){return`deck:${encodeURIComponent(e)}`}function due(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function uue(e){return`case:${encodeURIComponent(e)}`}function pue(e){if(!e||!e.startsWith("case:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function H4(e){return`file:${encodeURIComponent(e)}`}function mue(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function G4(e){return`library-file:${encodeURIComponent(e)}`}function hue(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function W4(e){return`code:${encodeURIComponent(e)}`}function gue(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const K4=["overview","settings","automations","site-editor","code","content","blog","assets","hosting","e2e","analytics","cdn"],fue=new Set(K4),Y4=new Set(["hosting","e2e","analytics","cdn"]),vue=new Set(["board","files","connect-sources","reports"]);function D0e(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("case:")||e.startsWith("library-file:")||e.startsWith("code:")}const bue=new Map([["preview","site-editor"],["git","site-editor"]]);function Eb(e){return bue.get(e)??e}const ZE=new Set(["instructions","connections","layout","settings"]);function yue(e){return!!e&&ZE.has(e)}const wue=new Set(["overview","board","reports"]);function Z4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Eb(t.type);if(ZE.has(o))return"settings";if(fue.has(o)||wue.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return YE(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?Rf(t.id):n[0]?Rf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?Rf(a):"settings"}function Q4(e){const t={...e};return Reflect.deleteProperty(t,"projectOverview"),Reflect.deleteProperty(t,"appTakeover"),t}const O0e=e=>({...Q4(e),projectOverview:!0});function Sue(e){return typeof e=="object"&&e!==null&&"projectOverview"in e&&e.projectOverview===!0}const N0e=e=>({...Q4(e),appTakeover:!0});function M0e(e){return typeof e=="object"&&e!==null&&"appTakeover"in e&&e.appTakeover===!0}function I0e(e){const t=e?.defaultMainView?.type;if(!t||t==="chat")return null;const o=Z4(e);return o==="overview"?null:o}function L0e(e){const t=e.routeDefaultMain||Z4(e.metadata),o=e.panelTabId&&ZE.has(e.panelTabId)?"settings":e.panelTabId?Eb(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function B0e(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function F0e(e){return e.mainOpen?e.activeTab==="automations"?!0:$4(e.activeTab)!==null:!1}const Tue=new Set([...K4.filter(e=>!Y4.has(e)),...vue,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function xue(e){return!!e&&Tue.has(e)}function kue(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?YE(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?H4(t.key):void 0;case"deck":return t.deck?V4(t.deck):void 0;case"library-file":return t.path?G4(t.path):void 0;case"code":return t.file?W4(t.file):"code";default:{const o=Eb(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function j0e(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?W4(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"blog-post":return t.postId?iue(t.postId):"blog";case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?YE(t.connectionId,t.toolName):void 0;case"view":return t.viewId?Rf(t.viewId):void 0;case"file":return o.key?H4(o.key):void 0;case"deck":return o.path?V4(o.path):void 0;case"business-case":return o.path?uue(o.path):void 0;case"library-file":return o.path?G4(o.path):void 0;default:return e.mainView}}const Eue={files:"library",discover:"discover"},Cue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},Pue={analytics:"audience",cdn:"performance"},_ue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function J4(e){const t=sue(e);if(t)return{kind:"agent-view",viewId:t.id};const o=cue(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=$4(e);if(a)return{kind:"automations",automationId:a.id};const n=lue(e);if(n)return{kind:"blog",postId:n.id};const r=mue(e);if(r)return{kind:"output-file",key:r.key};const i=due(e);if(i)return{kind:"output-deck",path:i.path};const c=pue(e);if(c)return{kind:"business-case",path:c.path};const d=hue(e);if(d)return{kind:"library-file",path:d.path};const u=gue(e);if(u)return{kind:"site-editor",view:"code",...u.path?{file:u.path}:{}};if(yue(e))return{kind:"agent-section",section:"settings"};const m=Eb(e);if(m==="overview")return{kind:"agent-overview"};if(m==="site-editor")return{kind:"site-editor",view:"preview"};if(m==="content")return{kind:"site-editor",view:"content"};if(m==="blog")return{kind:"blog"};if(m==="automations")return{kind:"automations"};if(m==="connect-sources")return{kind:"connect-sources"};const h=Cue[m];if(h){const b=Pue[m];return{kind:"project-destination",destination:h,...b?{monitorView:b}:{}}}const f=Eue[m];if(f)return{kind:"org-destination",destination:f};const v=_ue[m];return v?{kind:"agent-section",section:v}:{kind:"agent-view",viewId:m}}function Hl(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=J4(e.tabId);switch(n.kind){case"project-destination":{const r=e.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Ke.tasks,params:{...a,taskKey:e.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:t},search:{}}:{to:Ke.reports,params:a,search:{}};case"plan":return r?{to:Ct.plan,params:{org:t},search:{}}:{to:Ke.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:t},search:i}:{to:Ke.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};case"library":return{to:Ct.library,params:{org:t},search:{}}}case"agent-overview":return{to:Ke.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:Ke.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:Ke.siteEditorCode,params:a,search:{file:n.file}}:{to:Ke.siteEditor,params:a,search:{}};case"agent-section":return{to:Ke[n.section],params:a,search:{}};case"blog":return n.postId?{to:Ke.blogPost,params:{...a,postId:n.postId},search:{}}:{to:Ke.blog,params:a,search:{}};case"automations":return n.automationId?{to:Ke.automation,params:{...a,automationId:n.automationId},search:{}}:{to:Ke.automations,params:a,search:{}};case"app":return{to:Ke.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:Ke.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:Ke.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:Ke.outputDeck,params:a,search:{path:n.path}};case"business-case":return{to:Ke.businessCase,params:a,search:{path:n.path}};case"library-file":return{to:Ke.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:Ke.connectSources,params:a,search:{}}}}function z0e(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ct.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&J4(t).kind==="org-destination"?"overview":t;return Hl({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Aue(e,t,o={}){const a=r=>({...o.search?.(r)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ct.tasks:e({to:Ct.tasks,params:t.params,search:a,replace:n});return;case Ct.home:e({to:Ct.home,params:t.params,search:a,replace:n});return;case Ct.reports:e({to:Ct.reports,params:t.params,search:a,replace:n});return;case Ct.discover:e({to:Ct.discover,params:t.params,search:a,replace:n});return;case Ct.plan:e({to:Ct.plan,params:t.params,search:a,replace:n});return;case Ct.monitoring:e({to:Ct.monitoring,params:t.params,search:a,replace:n});return;case Ct.library:e({to:Ct.library,params:t.params,search:a,replace:n});return;case Ke.root:e({to:Ke.root,params:t.params,search:a,replace:n});return;case Ke.tasks:e({to:Ke.tasks,params:t.params,search:a,replace:n});return;case Ke.reports:e({to:Ke.reports,params:t.params,search:a,replace:n});return;case Ke.plan:e({to:Ke.plan,params:t.params,search:a,replace:n});return;case Ke.monitoring:e({to:Ke.monitoring,params:t.params,search:a,replace:n});return;case Ke.siteEditor:e({to:Ke.siteEditor,params:t.params,search:a,replace:n});return;case Ke.siteEditorContent:e({to:Ke.siteEditorContent,params:t.params,search:a,replace:n});return;case Ke.siteEditorCode:e({to:Ke.siteEditorCode,params:t.params,search:a,replace:n});return;case Ke.automations:e({to:Ke.automations,params:t.params,search:a,replace:n});return;case Ke.automation:e({to:Ke.automation,params:t.params,search:a,replace:n});return;case Ke.app:e({to:Ke.app,params:t.params,search:a,replace:n});return;case Ke.view:e({to:Ke.view,params:t.params,search:a,replace:n});return;case Ke.outputFile:e({to:Ke.outputFile,params:t.params,search:a,replace:n});return;case Ke.outputDeck:e({to:Ke.outputDeck,params:t.params,search:a,replace:n});return;case Ke.businessCase:e({to:Ke.businessCase,params:t.params,search:a,replace:n});return;case Ke.libraryFile:e({to:Ke.libraryFile,params:t.params,search:a,replace:n});return;case Ke.connectSources:e({to:Ke.connectSources,params:t.params,search:a,replace:n});return;case Ke.blog:e({to:Ke.blog,params:t.params,search:a,replace:n});return;case Ke.blogPost:e({to:Ke.blogPost,params:t.params,search:a,replace:n});return;case Ke.settings:case Ke.assets:case Ke.releases:case Ke.hosting:case Ke.e2e:case Ke.calendar:case Ke.experiments:e({to:t.to,params:t.params,search:a,replace:n});return;default:return Rue(t)}}function Rue(e){throw new Error(`Unhandled tab route target: ${JSON.stringify(e)}`)}function q0e(e,t){Aue(e,Hl(t),t)}function Due(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function Oue(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const Nue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),X4=new Set(["main"]),Mue=new Set(["virtualmcpid"]);function Cb(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function ql(e,t){return{...Cb(e,Nue),...t.search}}function Iue(e){return Cb(e,Mue)}function U0e(e){if(e.search.virtualmcpid===void 0)return null;const t=Er(e.search.virtualmcpid);if(t){const o=e.routePath===Ct.tasks?"board":e.routePath===Ct.reports?"reports":null;if(e.routePath===Ct.home||o){const a=o?Hl({org:e.org,agentId:t,tabId:o}):Wd(e.org,t);return{kind:"canonical",route:a,search:ql(e.search,a)}}}return e.routePath===Ct.home||e.routePath===Ct.tasks||e.routePath===Ct.reports||e.routePath===Ct.library?{kind:"same-route",search:Iue(e.search)}:null}function Er(e){return e?.trim()||void 0}function e5(e){return xue(e)||e!==void 0&&Y4.has(e)}function t5(e){const t=Er(e);return t?t.startsWith("vir_")&&t.length>4||tB(t)!==null||nZ(t)!==null||rZ(t)!==null||aB(t)||nB(t):!1}function Lue(e){const t=Er(e.agentIdParam),o=e5(t);return t&&!o?t:Er(e.virtualMcpIdSearch)??Er(e.fallbackAgentId)}function $0e(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const i=N0({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!t||Oue(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!t5(t);if(!(e5(t)||o))return null;const n=Lue({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),r=N0({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function Bue(e,t,o,a){const n=Er(a);switch(e){case"board":return n?Hl({org:t,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const r=Ai(o.path);return{to:Ct.library,params:{org:t},search:r?{path:r}:{}}}case"reports":return n?Hl({org:t,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:t},search:{}};case"overview":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};default:return null}}function em(e){const t=Bue(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Wd(e.org,e.agentId);const o=Er(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:Ke.root,params:{org:e.org,agentId:o},search:{}}:Hl({org:e.org,agentId:o,tabId:e.tabId}):null}function Wd(e,t){const o=Er(t);return o?{to:Ke.root,params:{org:e,agentId:o},search:{}}:{to:Ct.home,params:{org:e},search:{}}}function Fue(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Cb(o,X4),mainpanel:!1}};if(t==="chat"){const n=Wd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...ql(o,n),sidepanel:!0,mainpanel:!1}}}const a=em({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:ql(o,a)}:null}function Ai(e){return typeof e=="string"&&e.length>0?e:void 0}function N0(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const i=N0({...e,search:Cb(t,X4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(t.main!==void 0)return Fue({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=Er(e.agentId),a=e.panel;if(!a){const i=Wd(e.org,o);return{kind:"canonical",route:i,search:ql(t,i)}}const n=kue(a,{file:Ai(t.file),key:Ai(t.key),deck:Ai(t.deck),path:Ai(t.path),connection:Ai(t.connection),tool:Ai(t.tool),automation:Ai(t.automation)}),r=n?e.source==="project-first"&&n==="overview"&&o?Hl({org:e.org,agentId:o,tabId:n}):em({org:e.org,agentId:o,tabId:n,search:t}):em({org:e.org,agentId:o,tabId:"",search:t});return r?{kind:"canonical",route:r,search:n==="chat"?{...ql(t,r),sidepanel:!0,mainpanel:!1}:ql(t,r)}:null}function V0e(e){const t=e.search??{},o=Er(t.virtualmcpid),a=Er(e.fallbackAgentId),n=t.main;let r;if(n==="chat")r=Wd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=em({org:e.org,agentId:o,tabId:n,search:t}),c=!i&&n.trim().length>0&&a?em({org:e.org,agentId:a,tabId:n,search:t}):null;r=i??c??{to:Ct.home,params:{org:e.org},search:{}}}else r=Wd(e.org,o);return{route:r,search:{...ql(t,r),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function o5(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const jue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},a5=jue,QE={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},zue=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Dv={fileView:Wt(["all","documents","media"]).catch("all").optional(),modified:Wt(["any","today","week","month"]).catch("any").optional(),layout:Wt(["list","grid"]).catch("list").optional(),sort:Wt(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:fx().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:Wt(zue).catch("files").optional(),scope:Wt(["user"]).optional().catch(void 0),action:Wt(["create"]).optional().catch(void 0),tab:Wt(["all","connected"]).optional().catch(void 0)},que={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:eb().optional(),siteUrl:$().optional(),...a5},n5={...que,task:$().optional(),project:$().optional(),...QE,skill:Dv.skill,brand:Dv.brand},xm=Se(n5),r5="blog-manager/posts/";function H0e(e){return e.startsWith(r5)}function Uue(e){return e.split("/").pop()??e}function G0e(e){return`${r5}${e}`}function W0e(e){return`collections/blog/posts/${e}`}const $ue=["context","posts","authors","categories","post-schedule"],s5=Wt($ue),Vue={blogCollection:s5.optional(),blogItem:$().optional()};function K0e(e,t){return e==="context"&&!t?"posts":e}const Hue=Wt(["edit","preview"]),Gue={blogView:Hue.optional()};function Y0e(e){const t=s5.safeParse(e.contentCollection);if(!t.success)return null;const o=t.data,a=e.contentItem;return o==="posts"?a?{collection:o,postId:Uue(a)}:{collection:o}:a?{collection:o,item:a}:{collection:o}}function Z0e(e){const t=e.blogCollection;return t==="authors"||t==="categories"?e.blogItem?{contentCollection:t,contentItem:e.blogItem}:{contentCollection:t}:{contentCollection:"posts"}}const Ha=lV({component:()=>y.jsx(jde,{children:y.jsx(Sk,{})})}),Wue=Ae({getParentRoute:()=>Ha,path:"/login",component:Be(()=>Fe(()=>import("./login-CP07qecU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),validateSearch:es(()=>Se({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Kue=Ae({getParentRoute:()=>Ha,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-C9k5mfK6.js"),__vite__mapDeps([9,5])))}),Yue=Ae({getParentRoute:()=>Ha,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-CR_Pfo3L.js"),[])),validateSearch:es(()=>Se({token:$().optional(),error:$().optional()}))}),Zue=Ae({getParentRoute:()=>Ha,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-D1jYu4R6.js"),[]))}),Que=Ae({getParentRoute:()=>Ha,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-DIgJqEQi.js"),__vite__mapDeps([10,11,12])))}),Jue=Ae({getParentRoute:()=>Ha,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-C5gcHrmJ.js"),__vite__mapDeps([13,5,1,2,3,4])))}),Xue=Ae({getParentRoute:()=>Ha,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-CEUK_lVE.js"),[]))}),km=Ae({getParentRoute:()=>Ha,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-CXyhUfPs.js"),__vite__mapDeps([14,15,16])))}),epe=Ae({getParentRoute:()=>km,path:"/",beforeLoad:()=>{throw po({to:"/_admin/users"})}}),tpe=Ae({getParentRoute:()=>km,path:"/users",component:Be(()=>Fe(()=>import("./users-DaZoKAx4.js"),__vite__mapDeps([17,18,19,20,21,22,23,24,25,26])))}),ope=Ae({getParentRoute:()=>km,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-DeLcshXN.js"),__vite__mapDeps([27,18,19,20,21,22,23,28,25,29,30,31,32,33,34,35,24,36,37,26])))}),ape=Ae({getParentRoute:()=>km,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-CzsA1eKf.js"),__vite__mapDeps([38,21,28,35,26])))}),npe=km.addChildren([epe,tpe,ope,ape]),JE=Ae({getParentRoute:()=>Ha,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-Br0U0ibo.js").then(e=>e.s),__vite__mapDeps([39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,71,72,73,12,4,3,74,75,37,76,77,78,79,80,81,82,83,84,85,25,86,28,87,88,31,89,90,91,92,93,94,6,7,8,15,95,96,97,98])))}),rpe=Ae({getParentRoute:()=>JE,path:"/",beforeLoad:async()=>{const e=eue();if(e)throw po({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Nr.lastOrgSlug());if(t)throw po({to:"/$org",params:{org:t}});const{data:o}=await zB();if(!o)return;const a=o[0];throw po(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),spe=Ae({getParentRoute:()=>Ha,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await zB();if(e&&e.length>0)throw po({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-Bqbi76HX.js"),__vite__mapDeps([99,15,5,100,64,28,34,40,49,67])))}),i5=es(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),ipe=Ae({getParentRoute:()=>Ha,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-BRKwDg1B.js"),__vite__mapDeps([101,102,1,2,3,4,5,100,64,103,104,28,105,73,12,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,54,55,56,57,58,59,60,61,62,63,23,65,66,67,68,69,70,88,31,107,108,109,110,25,111,112,113,11,114,115,116,117,118,119]))),validateSearch:i5}),lpe=Ae({getParentRoute:()=>Ha,path:"/commerce-onboarding",validateSearch:i5,beforeLoad:({search:e})=>{throw po({to:"/reports-onboarding",search:e})}}),cpe=Ae({getParentRoute:()=>Ha,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-DxwGBSym.js"),__vite__mapDeps([120,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,15]))),validateSearch:es(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),XE=Ae({getParentRoute:()=>Ha,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-Cxbx95bH.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])))}),dpe=Ae({getParentRoute:()=>XE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-Cxbx95bH.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorPreview")}),upe=Ae({getParentRoute:()=>XE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-Cxbx95bH.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorContent")}),ppe=Ae({getParentRoute:()=>Ha,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-BC_FTcir.js"),__vite__mapDeps([259,114,4,1,2,3,260])))}),Pb=Ae({getParentRoute:()=>JE,path:"/$org",loader:({params:e})=>oue(e.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-C6ggpVup.js"),__vite__mapDeps([261,137,131,8,132,88,31,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,140,71,72,73,12,4,3,74,75,37,76,103,104,28,141,142,96,93,78,85,77,81,82,25,143,35,130,133,79,80,134,126,151,7,16,240,124,123,245,206,30,262,90,91,263,24,264,265,173,165,149,154,266,34,89,267,155,214,231,230,268,188,94,84,187,127,190,153,110,269,243])))}),_b=Ae({getParentRoute:()=>Pb,id:"org-shell",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./thread-route-BVbiqt2D.js"),__vite__mapDeps([270,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,102,271,107,108,109,47,105,106,83,51,42,43,44,45,20,46,48,40,49,32,50,33,41,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,88,31,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),mpe=Se({sidepanel:iF,mainpanel:lF,main:lo([$(),Qe(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),tn=Ae({getParentRoute:()=>_b,id:"agent-shell",validateSearch:mpe,search:{middlewares:[O$(["sidepanel","thread"])]},pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-CR_m6nNh.js"),__vite__mapDeps([273,237,20,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,168,169,170,42,43,44,45,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,193,194,132,197,146,214,274,174,148,147,175,21,235,236,149,129,130,131,134,135,136,22,275,276,231,216,215,265,173,165,212,230,141,277,278,279,280,281,156,208,144])))}),hpe=xm.extend({virtualmcpid:$().optional()}),gpe=Ae({getParentRoute:()=>tn,path:"/$taskId",validateSearch:hpe,component:()=>null}),Rt=Be(()=>Fe(()=>import("./index-C0knVPih.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutPending"),Dt=Be(()=>Fe(()=>import("./index-C0knVPih.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutError"),fpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-grRufnoO.js"),__vite__mapDeps([282,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,289,281,156,208,278,279,280,86,85,87,89,25,94,290,262,142])))}),vpe=Ae({getParentRoute:()=>tn,path:"/projects",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const o=(t.project??t.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw po({to:"/$org/home",params:{org:e.org},search:a,hash:!0,replace:!0});const n=t.task?.trim();throw po(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a,hash:!0,replace:!0})}}),Yt=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/projects/$agentId",validateSearch:xm,beforeLoad:({cause:e,location:t})=>({enteredProject:e!=="preload"&&!Sue(t.state)}),component:Sk}),bpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-ivofqF2c.js"),__vite__mapDeps([291,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,262,277])))}),ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...QE}),beforeLoad:({params:e,search:t})=>{const o=o5(e.taskKey,t);if(o)throw po({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-vDppvwX_.js"),__vite__mapDeps([292,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),wpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-gRtUO48c.js"),__vite__mapDeps([304,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Ab=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...a5}),component:Be(()=>Fe(()=>import("./agent-site-editor-GpNjnXGk.js"),__vite__mapDeps([232,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,233,234,145,146,147,148,149,150,151,7,88,31,8,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,152,153,29,30,154,155,156,157,71,134,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,191,192,193,194,132,197,214,221,222,210,211,178,208,255,174,175,256,226,129,130,131,135,136,257,258])))}),Spe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog"},validateSearch:Se(Vue),component:Be(()=>Fe(()=>import("./agent-blog-saY0nlhI.js"),__vite__mapDeps([307,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,206,218,160,161,22,165,166,184,219,223,224,225,226,173,227,228,207,308,209,309,275,276,231,216,215,265,257])))}),Tpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog/posts/$postId",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog-post"},validateSearch:Se(Gue),component:Be(()=>Fe(()=>import("./agent-blog-post-BaXgHzHt.js"),__vite__mapDeps([310,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,226,184,227,228,161,176,209,308,257])))}),xpe=Ae({getParentRoute:()=>Ab,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-1d9iwg6w.js"),__vite__mapDeps([311,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,158,159,160,145,156,157,161,162,21,22,166,34,174,175,176,134,177,178,179,180,181,182,183,139,184,199,200,201,202,203,204,205,206,207,208,111,209,144,135,210,211,213])))}),kpe=Ae({getParentRoute:()=>Ab,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-DK93H1Xk.js"),__vite__mapDeps([312,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,217,181,160,145,156,157,161,162,21,22,166,159,34,182,183,139,184,175,178,199,200,201,202,203,204,205,206,218,219,220,221,222,223,224,225,226,227,228,207,208,174,180,229,18,19])))}),Epe=Ae({getParentRoute:()=>Ab,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-BMjZqAT2.js"),__vite__mapDeps([313,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,21])))}),Cpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw po({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-CLe9w2t8.js"),__vite__mapDeps([314,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,64,44,70,22,23,21,296,315,24,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,56,2,57,58,60,61,62,63,65,67,68])))}),Ppe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:Wt(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-Bx-NuDZl.js"),__vite__mapDeps([316,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,153,34,151,81,82,171,195,276,83,317,7,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,152,29,30,154,155,318,296,186,39,16,26,71,84,85,25,86,28,87,89,92,94,6,15,97,98,319,241,242,167,168,169,170,104,196,320,188,138,321,163,164,207,208,322,19,21,323,252,274,302,253,185,187,189,190,191,192,193,194,197,198,251])))}),_pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-Bxo7o7gL.js"),__vite__mapDeps([324,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,170,36,212,147,333,334,194,213,236])))}),Ape=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./agent-library-CY76yE28.js"),__vite__mapDeps([335,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,336,56,64,67,22,23,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,25,337,35,32,33,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,55,2,57,58,60,61,62,63,65,66,68,70,169,170,325,326,327,328,329,21,330,39,16,26,71,81,82,83,84,85,86,28,87,89,92,94,6,7,15,97,98,280,151,278,279,110,281,156,208,198,338,226,19,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,36,212,147,333,334,194,213,236])))}),Rpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-BKvDQ6ZG.js"),__vite__mapDeps([339,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,22,166,226])))}),Dpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-HCmP-qlK.js"),__vite__mapDeps([340,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,226,145,156,157,222])))}),Ope=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-NwO2TKDF.js"),__vite__mapDeps([341,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,24,226,149,43,44,42,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,110,19,186,28,29,30,172,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,264,329,170,36,212,147,333,334,194,213,236])))}),Npe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-BPS7jgkd.js"),__vite__mapDeps([343,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,28,29,30,19,226,186,163,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Mpe=Ae({getParentRoute:()=>Yt,path:"/analytics",validateSearch:Se({view:$().optional()}),beforeLoad:({params:e,search:t})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:t.view==="experiments"?"experiments":"audience"},replace:!0})}}),Ipe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-16bhCjJF.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Lpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-DC4xI5lD.js"),__vite__mapDeps([348,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,349,226,350,199,200,201,202,203,204,351,161,228,220,256])))}),Bpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-DmHWjOEz.js"),__vite__mapDeps([352,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,226,206,220,350,199,200,201,202,203,204,351,161,228,225,256,342,331,318,267,319,332,276,34,265,173,165,264,329,36,333,334,213])))}),Fpe=Ae({getParentRoute:()=>Yt,path:"/cdn",beforeLoad:({params:e})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:"performance"},replace:!0})}}),l5=Se({args:$().optional()}),jpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/apps/$connectionId/$toolName",validateSearch:l5,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-CsGfS0zJ.js"),__vite__mapDeps([353,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,216,72,4,3,74,75,37,76,354,171,276,191,192,193,122,95,96,93,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117])))}),zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/views/$viewId",validateSearch:l5,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-CmiEQkVX.js"),__vite__mapDeps([356,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,354,171,276,191,192,193,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117,342,331,318,21,267,35,195,319,246,247,248,29,30,249,250,251,24,252,253,198,332,153,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-DY6_gTME.js"),__vite__mapDeps([357,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,198,281,128,90,91,156,208,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,197,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),Upe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-wiGmkegT.js"),__vite__mapDeps([358,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,280,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,128,90,91,151,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),$pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-Bjei4utc.js"),__vite__mapDeps([359,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,360,279,110,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,280,128,90,91,151,281,156,208,198,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),Vpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-CDCBitnG.js"),__vite__mapDeps([361,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,105,102,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,107,108,109,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),Hpe=Ae({getParentRoute:()=>Yt,path:"/$legacyView",component:()=>null}),Gpe=Ae({getParentRoute:()=>tn,path:"/agents",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw po(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),Wpe=Ae({getParentRoute:()=>tn,path:"/agents/$",validateSearch:xm,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!t5(o))return;const a=Due(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw po({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-B2Qna1Se.js"),__vite__mapDeps([362,277,80])))}),Kpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...QE}),beforeLoad:({params:e,search:t})=>{const o=o5(e.taskKey,t);if(o)throw po({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-CRzQv2kZ.js"),__vite__mapDeps([363,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),Ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-16bhCjJF.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-Bg5H7a2G.js"),__vite__mapDeps([364,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,346,286,203,204,202,287,19,43,20,44,172,164,24,188,138,49,56,75,37,347,74,3,205,50,81,82,23,151,29,30,32,33,163,302,253,91,51,185,42,45,46,47,48,40,41,52,53,55,2,57,58,60,61,62,63,64,65,66,67,68,70,186,170,167,168,169,122,95,96,93,72,4,76,123,124,127,128,90,171,104,28,187,189,190,39,16,26,71,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,195,196,197,198,252,274])))}),Qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-D8RgSkdw.js"),__vite__mapDeps([365,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Jpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./library-BjHFUNKc.js"),__vite__mapDeps([366,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,129,88,31,54,69,130,131,132,133,134,135,136,59,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,360,279,110,280,151,281,156,208,198,169,170,336,22,337,278,338,226,19])))}),Xpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-Dzd3-KrG.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,35,39,16,26,71,72,4,3,74,75,37,76,81,82,83,84,85,25,86,28,87,89,90,91,92,93,94,6,7,15,95,96,97,98,122,123,124,127,128,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),c5=Se({view:Wt(["metrics","alerts","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:gL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),eme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-CeR9ea8R.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,226,151,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,205,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),tme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-Dzd3-KrG.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,35,39,16,26,71,72,4,3,74,75,37,76,81,82,83,84,85,25,86,28,87,89,90,91,92,93,94,6,7,15,95,96,97,98,122,123,124,127,128,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),ome=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan/case",staticData:{pageTitle:"page.businessCase",defaultMain:"business-case",mainView:"business-case"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-business-case-D1J_EJBP.js"),__vite__mapDeps([374,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,35,39,16,26,71,72,4,3,74,75,37,76,81,82,83,84,85,25,86,28,87,89,90,91,92,93,94,6,7,15,95,96,97,98,122,123,124,127,128,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),ame=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-CeR9ea8R.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,226,151,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,205,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),nme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-C3KvDhLe.js"),__vite__mapDeps([375,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,47,53,57,64,68,89,195,165,173,212,117,76])))}),rme=Ae({getParentRoute:()=>Pb,path:"/members",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/members",params:{org:e.org}})}}),sme=Se({main:lo([$(),Qe(0)]).optional(),virtualmcpid:$().optional(),...n5,sidepanel:iF,mainpanel:lF,thread:$().optional()}),ime=Ae({getParentRoute:()=>_b,path:"/",validateSearch:sme,pendingComponent:Xd,component:Be(()=>Fe(()=>import("./index-B1WaFOsQ.js"),__vite__mapDeps([376,277,80])))}),lme=Ae({getParentRoute:()=>_b,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw po({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),co=Ae({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Pb,path:"/settings",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-BsnfBpCB.js"),__vite__mapDeps([377,8,136,59,131,132,88,31,134,77,78,73,12,125,126,80,378,64,24,151,172,164,124,123,245])))}),cme=Ae({getParentRoute:()=>co,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-BX1uMWOl.js"),__vite__mapDeps([379,328])))}),dme=Ae({getParentRoute:()=>co,path:"/connections",validateSearch:es(()=>Se({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()})),beforeLoad:({params:e,search:t})=>{throw po({to:"/$org/library",params:{org:e.org},search:{section:"connections",...t},replace:!0})}}),ume=Ae({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-Br3kvCLD.js"),__vite__mapDeps([380,115,108,116,117,21,250,64,66,381,73,12,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,23,65,67,68,69,70,195,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,332,24,193,11,113,83,132,104,28,196,383,384,286,203,202,287,347,163,164,248,192,92]))),validateSearch:es(()=>Se({tab:$().optional()}))}),pme=Ae({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-BrKNh_sc.js"),__vite__mapDeps([385,21,73,12,104,28,35,381,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,115,108,116,117,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,192,193,211,248,332,24,11,191,83,122,79,80,77,95,96,93,123,124,125,126,127,128,90,91,39,16,26,71,81,84,25,86,87,89,92,94,6,7,15,97,98,207,208,226]))),validateSearch:es(()=>Se({replayId:$().optional()}))}),mme=Ae({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Be(()=>Fe(()=>import("./index-BuNHZe0j.js"),__vite__mapDeps([386,22,23,21,326,327,328,185,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,65,66,67,68,69,70,186,170,167,168,169,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,88,31,171,104,28,138,187,188,189,190,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,132,195,196,197,198,248,24,151,207,208,321,153,29,30,345,206,182,35,251,34,211,384,286,203,204,202,287,347,302,253,252,274,19,323,296,322,226,371,111,288,303,244,245]))),validateSearch:es(()=>Se({tab:Wt(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:Wt(["all","success","errors"]).default("all"),search:$().default(""),page:Lt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),hme=Ae({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Be(()=>Fe(()=>import("./general-BflUyDpv.js"),__vite__mapDeps([387,319,388,34,48,41,93,37,75,195,73,12,389,24,29,30,31,32,33,328])))}),gme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./connect-uMWVy558.js"),__vite__mapDeps([390,211,24,29,30,31,32,33,163,164,170,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,284,285,73,12,326,327,328,391,226,28,382,276,153,22,83,392,252,253,91,92,116,117,195])))}),fme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./ai-providers-CsLwpTHp.js"),__vite__mapDeps([393,43,124,49,93,37,75,317,7,8,122,79,80,77,78,73,12,95,96,72,4,3,74,76,123,125,126,127,128,90,91,152,153,60,29,30,31,32,33,46,50,58,45,23,154,155,61,56,57,319,378,64,24,151,172,164,88,245,266,34,89,66,267,326,327,328])))}),vme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),bme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./infra-billing-BtsuEBUg.js"),__vite__mapDeps([394,52,24,321,153,60,32,81,82,23,151,29,30,31,33,19,287,203,204,372,347,326,327,328])))}),yme=Ae({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-BSCWBi7n.js"),__vite__mapDeps([395,43,64,68,226,28,29,30,31,32,33,35,334,326,327,328])))}),wme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./api-keys-DUArXFLt.js"),__vite__mapDeps([396,391,43,42,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,226,28,24,382,29,30,31,73,12,276,153,22,83,392,252,253,91,92,116,117,195,285,326,327,328])))}),Sme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./buckets-DxoYBJcE.js"),__vite__mapDeps([397,43,64,66,24,226,28,29,30,31,32,33,34,35,165,326,327,328])))}),Tme=Ae({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,path:"/repositories",validateSearch:Se({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Lt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Vs("repositories"),component:Be(()=>Fe(()=>import("./repositories-fpX5qQ6d.js"),__vite__mapDeps([398,399,87,46,64,88,31,28,89,90,91,92,23,48,65,25,93,37,75,47,153,60,51,68,226,24,211,110,186,29,30,32,33,35,66,333,334,326,327,328])))}),xme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./synced-repos-XQs80J8E.js"),__vite__mapDeps([400,64,226,87,46,88,31,28,89,90,91,92,23,48,65,25,93,37,75,337,326,327,328])))}),kme=Ae({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-CbsSW8RH.js"),__vite__mapDeps([401,153,60,35,50,63,64,205,81,82,23,151,321,24,32,29,30,31,33,34,320,388,48,41,93,37,75,195,73,12,25,296,295,69,70,110,88,132,128,90,91,77,78,74,3,326,327,328])))}),Eme=Ae({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/task-board",params:{org:e.org}})}}),Cme=Ae({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Be(()=>Fe(()=>import("./projects-Q6qNofYq.js"),__vite__mapDeps([402,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,24,22,86,28,73,12,85,78,72,4,3,74,75,37,76,87,88,31,89,90,91,92,25,93,94,290,267,271,107,108,109,306,77,195])))}),Pme=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./members-XVVsOLwh.js"),__vite__mapDeps([403,404,20,55,88,31,172,164,24,22,23,18,19,21,104,28,29,30,32,33,35,405,269,58,66,69,153,60,81,82,151,64,298,326,327,328])))}),_me=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./roles-BsBfelAx.js"),__vite__mapDeps([406,405,24,55,64,66,18,19,20,21,22,23,154,392,83,51,42,43,44,45,46,47,48,40,49,32,50,33,41,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,70,252,153,253,91,73,12,92,116,117,195,78,124,34,88,31,84,77,327,328]))),validateSearch:es(()=>Se({role:$().optional()}))}),Ame=Ae({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Be(()=>Fe(()=>import("./sso-BB-u0nk0.js"),__vite__mapDeps([407,389,24,29,30,31,32,33,34,97,66,326,327,328])))}),Rme=Ae({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Be(()=>Fe(()=>import("./profile-D-BxX6JD.js"),__vite__mapDeps([408,200,201,30,66,67,34,29,31,32,33,172,164,88,61,62,63,319,243,2,64])))}),Dme=Ae({getParentRoute:()=>co,path:"/agents",beforeLoad:({params:e})=>{throw po({to:"/$org/settings/projects",params:{org:e.org}})}}),Ome=Ae({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Be(()=>Fe(()=>import("./automations-BWwcGlIf.js"),__vite__mapDeps([409,64,70,22,23,21,296,73,12,85,78,72,4,3,74,75,37,76,315,24,44,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,326,327,328])))}),Nme=Ae({getParentRoute:()=>co,path:"/skills",beforeLoad:({params:e})=>{throw po({to:"/$org/library",params:{org:e.org},search:{section:"skills"},replace:!0})}}),Mme=Ae({getParentRoute:()=>co,path:"/memory",validateSearch:es(()=>Se({scope:Wt(["user"]).optional()})),beforeLoad:({params:e,search:t})=>{throw po({to:"/$org/library",params:{org:e.org},search:{section:"memory",...t},replace:!0})}}),Ime=co.addChildren([cme,dme,ume,pme,Dme,Ome,Nme,Mme,mme,hme,gme,fme,vme,bme,yme,wme,Sme,Tme,xme,kme,Eme,Cme,Pme,_me,Ame,Rme]),Lme=Ab.addChildren([xpe,kpe,Epe]),Bme=Yt.addChildren([bpe,ype,wpe,Lme,Spe,Tpe,Cpe,Ppe,_pe,Ape,Rpe,Dpe,Ope,Npe,Mpe,Ipe,Lpe,Bpe,Fpe,jpe,zpe,qpe,Upe,$pe,Vpe,Hpe,tme,ome,ame]),Fme=tn.addChildren([gpe,fpe,vpe,Bme,Gpe,Wpe,Kpe,Ype,Zpe,Qpe,Jpe,nme,Xpe,eme]),jme=_b.addChildren([ime,lme,Fme]),zme=Pb.addChildren([jme,rme,Ime]),qme=JE.addChildren([rpe,zme]),Ume=Ha.addChildren([qme,npe,spe,ipe,lpe,cpe,XE.addChildren([dpe,upe]),ppe,Wue,Kue,Yue,Zue,Que,Jue,Xue]);function $me(){const e=ye.c(16),t=$a();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=y.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==n?(r=y.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=r):r=e[7];let i;e[8]!==t?(i=t("common.goBack"),e[8]=t,e[9]=i):i=e[9];let c;e[10]!==i?(c=y.jsx("button",{type:"button",onClick:Vme,className:"text-sm text-primary hover:underline",children:i}),e[10]=i,e[11]=c):c=e[11];let d;return e[12]!==a||e[13]!==r||e[14]!==c?(d=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),e[12]=a,e[13]=r,e[14]=c,e[15]=d):d=e[15],d}function Vme(){return window.history.back()}const Rb=yV({routeTree:Ume,defaultPendingComponent:Xd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:$me});function _e(...e){return sF(sE(e))}function Hme(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function Vo({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const r=e.error.code;if(t?.[r])return t[r]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function oc(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function M0(e,t){for(const o in e)if(e[o]===t)return o}function tm(e,t){let o=$().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Gme={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Wme={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Kme={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Yme={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Zme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Qme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Jme={...Zme,...Qme},Xme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},ehe={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},the={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},ohe={INVALID_SESSION_TOKEN:"Invalid session token"},ahe={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},nhe={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},rhe={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},she={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},ihe={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},lhe={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},che={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},dhe={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Yme,...Gme,...Wme,...Kme,...Jme,...Xme,...ehe,...the,...ohe,...ahe,...nhe,...rhe,...she,...ihe,...lhe,...che},uhe={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},dN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},uN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const d5=A.createContext({});function u5(){return A.useContext(d5)}var yT,pN;function phe(){if(pN)return yT;pN=1;var e=function(){};return yT=e,yT}var mhe=phe();const hhe=Yl(mhe);function ghe({async:e,appendTo:t,defer:o,id:a,nonce:n,src:r}){const i=document.createElement("script");e!==void 0&&(i.async=e),o!==void 0&&(i.defer=o),a&&(i.id=a),n&&i.setAttribute("nonce",n),i.src=r,(t==="head"?document.head:document.body).appendChild(i)}var fhe=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let Op=null,om=!1;const Ov=new Set,Nv=new Set,vhe=typeof window<"u",Ad="___grecaptcha_cfg",p5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function bhe(){if(!vhe)return;function e(o){if(om)o();else{window[Ad]||(window[Ad]={});const a=window[Ad];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){om=!0;for(const o of Nv)o();Nv.clear()}window[p5]=t}function yhe({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function whe({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=yhe({language:e,onLoadCallbackName:p5,render:t,useEnterprise:a,useRecaptchaNet:n});if(Op){if(Op!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Op=i,ghe(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function She(e){if(!window[Ad])return;const t=window[Ad];t.clients&&delete t.clients[e]}function The(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=fhe(t,["onLoadCallback","onLoadCallbackName"]);if(Ov.size===0&&bhe(),whe(n),Ov.add(e),o&&(om?o():Nv.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};om?r():Nv.add(r)}}function xhe(e){var t,o,a;Ov.delete(e),Ov.size===0&&(window.grecaptcha=void 0,window[Ad]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${Op}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Op=null,om=!1)}let mN=!1;function khe({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[w,x]=A.useState(null),[T,k]=A.useState(null),C=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return The(b,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{xhe(b),x(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!e?.element||!w?.render)return;const U={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((R=e.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=w.render(B,U);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(mN||(hhe(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),mN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),C.current=!0,()=>{k(null),C.current=!1,She(z),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(u=e?.parameters)===null||u===void 0?void 0:u.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,w,a]);const E=!!e?.element,_=E?T:a,D=A.useMemo(()=>_!==null&&w?.execute?R=>{if(_===null||!w?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):w.execute(_,{action:R})}:void 0,[_,w,E]);return y.jsx(d5.Provider,{value:{container:e?.element,executeRecaptcha:D,reCaptchaInstance:w},children:t})}var Ehe=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Jn=new Ehe;function Che(){return()=>{}}function Hs(){return A.useSyncExternalStore(Che,()=>!0,()=>!1)}function m5(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function eC(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function Phe({children:e}){const t=Hs(),{captcha:o}=A.useContext(wt);return o?.provider!=="google-recaptcha-v3"?e:y.jsxs(khe,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&y.jsx("style",{children:`
|
|
186
186
|
.grecaptcha-badge {
|
|
187
187
|
visibility: hidden;
|
|
188
188
|
border-radius: var(--radius) !important;
|
|
@@ -266,4 +266,4 @@ Alternatively, you can use your own component as a description by assigning it a
|
|
|
266
266
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return A.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},lwe=dz,cwe=uz,dwe=pz,uwe=mz,pwe=bz,mwe=wz,hwe=gz,gwe=vz;function Sz(e){const t=ye.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=y.jsx(lwe,{"data-slot":"alert-dialog",...o}),t[2]=o,t[3]=a):a=t[3],a}function fwe(e){const t=ye.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=y.jsx(cwe,{"data-slot":"alert-dialog-portal",...o}),t[2]=o,t[3]=a):a=t[3],a}function vwe(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-scrim",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(dwe,{"data-slot":"alert-dialog-overlay",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Tz(e){const t=ye.c(13);let o,a,n;t[0]!==e?({className:o,onOpenAutoFocus:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let r;t[4]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(vwe,{}),t[4]=r):r=t[4];let i;t[5]!==a?(i=u=>{a?.(u),!u.defaultPrevented&&(u.preventDefault(),u.currentTarget?.focus())},t[5]=a,t[6]=i):i=t[6];let c;t[7]!==o?(c=Je("glass outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-[0.96] data-[state=open]:zoom-in-[0.96] fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-5 rounded-2xl p-6 duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] sm:max-w-lg",o),t[7]=o,t[8]=c):c=t[8];let d;return t[9]!==n||t[10]!==i||t[11]!==c?(d=y.jsxs(fwe,{children:[r,y.jsx(uwe,{"data-slot":"alert-dialog-content",onOpenAutoFocus:i,className:c,...n})]}),t[9]=n,t[10]=i,t[11]=c,t[12]=d):d=t[12],d}function xz(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("flex flex-col gap-1 text-center sm:text-left",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{"data-slot":"alert-dialog-header",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function tk(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx("div",{"data-slot":"alert-dialog-footer",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function kz(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("text-[1.375rem] leading-tight font-medium tracking-[-0.02em]",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(hwe,{"data-slot":"alert-dialog-title",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Ez(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("text-muted-foreground text-xs",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(gwe,{"data-slot":"alert-dialog-description",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function uke(e){const t=ye.c(10);let o,a,n;t[0]!==e?({className:o,variant:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let r;t[4]!==o||t[5]!==n?(r=Je(cE({variant:n}),o),t[4]=o,t[5]=n,t[6]=r):r=t[6];let i;return t[7]!==a||t[8]!==r?(i=y.jsx(pwe,{className:r,...a}),t[7]=a,t[8]=r,t[9]=i):i=t[9],i}function pke(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je(cE({variant:"outline"}),o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(mwe,{className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}const mke="website/loaders/secret.ts",hke=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],bwe=/^(?:[0-9a-f]{2})*$/i;function ywe(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e.__resolveType;return typeof t=="string"&&(t.endsWith("/secret.ts")||t.includes("loaders/secret"))}function wwe(e){return typeof e=="string"&&bwe.test(e)}class Swe extends Error{constructor(t){super(`Secret at "${t}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=t,this.name="PlaintextSecretError"}path}function ok(e,t=""){if(Array.isArray(e))return e.map((a,n)=>ok(a,`${t}/${n}`));if(!e||typeof e!="object")return e;const o=Object.entries(e);if(ywe(e)){const a=e.encrypted;if(a!==void 0&&!wwe(a))throw new Swe(t||"/");return Object.fromEntries(o.filter(([n])=>n!=="value"))}return Object.fromEntries(o.map(([a,n])=>[a,ok(n,`${t}/${a}`)]))}function la(e){return JSON.stringify(e,(t,o)=>{if(!o||typeof o!="object"||Array.isArray(o))return o;const a={};for(const n of Object.keys(o).sort())a[n]=o[n];return a})}async function gke(e){const t=la(ok(e)),o=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(t));return Array.from(new Uint8Array(o),a=>a.toString(16).padStart(2,"0")).join("")}class mf extends Error{constructor(t){super(t),this.name="CanonicalJsonError"}}function ak(e,t,o,a){if(e===null){a.push("null");return}switch(typeof e){case"string":a.push(JSON.stringify(e));return;case"boolean":a.push(e?"true":"false");return;case"number":if(!Number.isFinite(e))throw new mf(`${t}: ${e} can't be represented in JSON`);a.push(Object.is(e,-0)?"0":JSON.stringify(e));return;case"object":break;default:throw new mf(`${t}: a ${typeof e} can't be represented in JSON`)}const n=e;if(o.has(n))throw new mf(`${t}: a cycle can't be represented in JSON`);if(o.add(n),Array.isArray(n))a.push("["),n.forEach((r,i)=>{i>0&&a.push(","),ak(r,`${t}/${i}`,o,a)}),a.push("]");else{const r=Object.getPrototypeOf(n);if(r!==Object.prototype&&r!==null)throw new mf(`${t}: only plain objects can be represented in JSON`);const i=Object.keys(n).sort();a.push("{"),i.forEach((c,d)=>{d>0&&a.push(","),a.push(JSON.stringify(c),":"),ak(n[c],`${t}/${c}`,o,a)}),a.push("}")}o.delete(n)}function Twe(e){const t=[];return ak(e,"",new Set,t),t.join("")}const nk=".json";[...Array.from({length:9},(e,t)=>`COM${t+1}`),...Array.from({length:9},(e,t)=>`LPT${t+1}`)];new TextEncoder;function xwe(e){return`${encodeURIComponent(e)}${nk}`}function Cz(e){return e.endsWith(nk)?e.slice(0,-nk.length):e}function fke(e){const t=Cz(e);try{return decodeURIComponent(t)}catch{return t}}function kwe(e){let t=Cz(e),o=0;for(;t.includes("%");){let a;try{a=decodeURIComponent(t)}catch{break}if(a===t)break;t=a,o++}return{name:t,passes:o}}function vke(e){return kwe(xwe(e)).name}function Pz(){const e=ye.c(32),{org:t}=Qi(),o=t.id;let a;e[0]!==o?(a=E=>(_=>fa.organization[E]({..._??{},organizationId:o})),e[0]=o,e[1]=a):a=e[1];const n=a;let r;e[2]!==o?(r=E=>(_=>{const D={..._??{}},R=D.query??{};return D.query={...R,organizationId:o},fa.organization[E](D)}),e[2]=o,e[3]=r):r=e[3];const i=r;let c,d;e[4]!==i?(c=i("listMembers"),d=i("listRoles"),e[4]=i,e[5]=c,e[6]=d):(c=e[5],d=e[6]);let u,m,h,f,v,b,w,x,T;e[7]!==n?(f=n("inviteMember"),v=n("removeMember"),b=n("updateMemberRole"),w=n("addMember"),x=n("createRole"),T=n("updateRole"),u=n("deleteRole"),m=n("cancelInvitation"),h=n("update"),e[7]=n,e[8]=u,e[9]=m,e[10]=h,e[11]=f,e[12]=v,e[13]=b,e[14]=w,e[15]=x,e[16]=T):(u=e[8],m=e[9],h=e[10],f=e[11],v=e[12],b=e[13],w=e[14],x=e[15],T=e[16]);let k;e[17]!==i?(k=i("getActiveMember"),e[17]=i,e[18]=k):k=e[18];let C;return e[19]!==u||e[20]!==m||e[21]!==h||e[22]!==k||e[23]!==c||e[24]!==d||e[25]!==f||e[26]!==v||e[27]!==b||e[28]!==w||e[29]!==x||e[30]!==T?(C={organization:{listMembers:c,listRoles:d,inviteMember:f,removeMember:v,updateMemberRole:b,addMember:w,createRole:x,updateRole:T,deleteRole:u,cancelInvitation:m,update:h,getActiveMember:k,acceptInvitation:fa.organization.acceptInvitation,rejectInvitation:fa.organization.rejectInvitation,getInvitation:fa.organization.getInvitation,list:fa.organization.list,create:fa.organization.create,getFullOrganization:fa.organization.getFullOrganization}},e[19]=u,e[20]=m,e[21]=h,e[22]=k,e[23]=c,e[24]=d,e[25]=f,e[26]=v,e[27]=b,e[28]=w,e[29]=x,e[30]=T,e[31]=C):C=e[31],C}const Ewe=300*1e3;function bke(){const e=ye.c(7),{locator:t}=Qi(),o=Pz();let a;e[0]!==t?(a=ca.members(t),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=()=>o.organization.listMembers(),e[2]=o,e[3]=n):n=e[3];let r;return e[4]!==a||e[5]!==n?(r={queryKey:a,queryFn:n},e[4]=a,e[5]=n,e[6]=r):r=e[6],Yi(r)}function _z(e){const t=ye.c(10);let o;t[0]!==e?(o=e===void 0?{}:e,t[0]=e,t[1]=o):o=t[1];const{enabled:a}=o,n=a===void 0?!0:a,{locator:r}=Qi(),i=Pz();let c;t[2]!==r?(c=ca.members(r),t[2]=r,t[3]=c):c=t[3];let d;t[4]!==i?(d=()=>i.organization.listMembers(),t[4]=i,t[5]=d):d=t[5];let u;return t[6]!==n||t[7]!==c||t[8]!==d?(u={queryKey:c,queryFn:d,staleTime:Ewe,enabled:n},t[6]=n,t[7]=c,t[8]=d,t[9]=u):u=t[9],Ki(u)}function RC(e){let t=2166136261,o=0;for(let a=0;a<e.length;a++){const n=e.charCodeAt(a);t=Math.imul(t^n,16777619),o=Math.imul(o,31)+n|0}return`${(t>>>0).toString(36)}${(o>>>0).toString(36)}:${e.length}`}function yke(e,t,o){const a=o.editor,n=a&&typeof a.userId=="string"&&typeof a.at=="number"&&Number.isFinite(a.at)?{userId:a.userId,at:new Date(a.at*1e3).toISOString()}:null;e.setQueryData(ca.conflictEditor(t,RC(la(o.block??null))),n)}function Cwe(e,t){return!t||!e||!Object.hasOwn(e,t)?null:RC(la(e[t]??null))}function wke(e,t){return e.kind==="protocol"&&e.source==="github"?t:null}const mM=e=>e.split(/\s+/)[0]??e;function Az(e,t,o){const a=t.find(d=>d.userId===e.userId),n=a?.user?.name?.trim(),r=a?.user?.image??void 0,i=n?mM(n):void 0,c=!!i&&t.some(d=>d.userId!==e.userId&&mM(d.user?.name?.trim()??"").toLocaleLowerCase()===i.toLocaleLowerCase());return{...n?{name:n,shortName:c?n:i}:{},...r?{avatarUrl:r}:{},at:e.at,you:!!o&&e.userId===o}}function Ske(e,t,o){const a=ye.c(8),{change:n,pending:r}=Rz(e,t,o),i=!!n;let c;a[0]!==i?(c={enabled:i},a[0]=i,a[1]=c):c=a[1];const d=_z(c);let u;a[2]!==d.data?(u=d.data?.data?.members??[],a[2]=d.data,a[3]=u):u=a[3];const m=u,{data:h}=fa.useSession();if(r)return;if(!n)return null;if(d.isLoading&&d.failureCount===0)return;const f=h?.user?.id??null;let v;return a[4]!==n||a[5]!==m||a[6]!==f?(v=Az(n,m,f),a[4]=n,a[5]=m,a[6]=f,a[7]=v):v=a[7],v}function Pwe(e,t,o){const a=ye.c(7),{change:n}=Rz(e,t,o),r=Zd(),{data:i}=fa.useSession();let c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c={predicate:hM},a[0]=c):c=a[0];const d=u7(c)>0;if(!n)return null;let u,m;if(a[1]!==n||a[2]!==d||a[3]!==r||a[4]!==i?.user?.id){m=Symbol.for("react.early_return_sentinel");e:{const h=r.getQueriesData({predicate:hM}).flatMap(_we);if(h.length===0&&d){m=void 0;break e}u=Az(n,h,i?.user?.id??null)}a[1]=n,a[2]=d,a[3]=r,a[4]=i?.user?.id,a[5]=u,a[6]=m}else u=a[5],m=a[6];return m!==Symbol.for("react.early_return_sentinel")?m:u}function _we(e){const[,t]=e;return t?.data?.members??[]}const hM=e=>e.queryKey[1]==="members";function Rz(e,t,o){const a=!!e&&!!t&&o!==null,{data:n}=Ki({queryKey:ca.conflictEditor(t??"",o??""),queryFn:()=>null,enabled:!1,placeholderData:(r,i)=>i?.queryKey[1]===(t??"")?r:void 0,staleTime:Number.POSITIVE_INFINITY,gcTime:10*6e4});return a?{change:n??null,pending:!1}:{change:null,pending:!1}}function Tke(e){const t=ye.c(2);let o;t[0]!==e?(o={enabled:e},t[0]=e,t[1]=o):o=t[1],_z(o)}function Awe(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("relative flex size-8 shrink-0 overflow-hidden rounded-full",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(t6,{"data-slot":"avatar",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Rwe(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("aspect-square size-full",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(o6,{"data-slot":"avatar-image",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}function Dwe(e){const t=ye.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=Je("bg-muted flex size-full items-center justify-center rounded-full",o),t[3]=o,t[4]=n):n=t[4];let r;return t[5]!==a||t[6]!==n?(r=y.jsx(a6,{"data-slot":"avatar-fallback",className:n,...a}),t[5]=a,t[6]=n,t[7]=r):r=t[7],r}const Owe={tint:["bg-brand-lime-tint text-brand-green-dark dark:bg-brand/20 dark:text-brand","bg-brand-purple-tint text-brand-purple-dark dark:bg-brand-purple/20 dark:text-brand-purple","bg-brand-yellow-tint text-brand-yellow-dark dark:bg-brand-yellow/20 dark:text-brand-yellow","bg-brand-blue-tint text-brand-blue-dark dark:bg-brand-blue/20 dark:text-brand-blue"],solid:["bg-brand text-brand-green-dark","bg-brand-purple text-brand-purple-dark","bg-brand-yellow text-brand-yellow-dark","bg-brand-blue text-brand-blue-dark"]},Nwe="bg-muted text-muted-foreground";function Mwe(e,t){let o=0;for(let n=0;n<e.length;n++)o=e.charCodeAt(n)+((o<<5)-o);const a=Owe[t];return a[Math.abs(o)%a.length]}function Iwe(e){const t=e.trim().split(/\s+/).filter(Boolean),o=t[0]?.charAt(0)??"",a=t.length>1?t.at(-1)?.charAt(0)??"":"";return(o+a).toUpperCase()||"?"}const Dz=Xl("font-medium",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"size-3 text-[0.4375rem]","2xs":"size-4 text-[0.5625rem]",xs:"size-6 text-[0.625rem]",sm:"size-8 text-xs",md:"size-9 text-sm",base:"size-10 text-sm",lg:"size-12 text-lg",xl:"size-16 text-2xl","2xl":"size-20 text-3xl","3xl":"size-32 text-5xl"}},compoundVariants:[{shape:"square",size:"3xs",class:"rounded-[0.1875rem]"},{shape:"square",size:"2xs",class:"rounded-sm"},{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-[0.625rem]"},{shape:"square",size:"md",class:"rounded-[0.6875rem]"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-[0.875rem]"},{shape:"square",size:"xl",class:"rounded-[1.125rem]"},{shape:"square",size:"2xl",class:"rounded-[1.375rem]"},{shape:"square",size:"3xl",class:"rounded-[2.25rem]"}],defaultVariants:{shape:"square",size:"base"}}),Lwe=Xl("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),Bwe={"3xs":8,"2xs":8,xs:12,sm:16,md:18,base:20,lg:24,xl:32,"2xl":40,"3xl":64};function Mf({shape:e="square",size:t="base",url:o,fallback:a,objectFit:n="cover",className:r,muted:i=!1,tone:c=e==="circle"?"solid":"tint",selected:d=!1,...u}){const m=i?Nwe:Mwe(typeof a=="string"?a:"",c),h=Je("flex size-full items-center justify-center",m);return y.jsx(Awe,{className:Je(Dz({shape:e,size:t}),o&&"outline-1 -outline-offset-1 outline-hairline",d&&"outline-2 outline-offset-0 outline-foreground",r),...u,children:o?.startsWith("icon://")?y.jsx("div",{className:h,children:y.jsx(m3,{size:Bwe[t??"base"]})}):y.jsxs(y.Fragment,{children:[o&&y.jsx(Rwe,{src:o,loading:"lazy",alt:"Avatar",className:Lwe({objectFit:n})}),y.jsx(Dwe,{className:Je(h,"rounded-none"),delayMs:o?600:0,children:typeof a=="string"?Iwe(a):a})]})})}Mf.Skeleton=function({shape:t="square",size:o="base",className:a}){return y.jsx("div",{className:Je(Dz({shape:t,size:o}),"bg-muted animate-pulse",a)})};const xke=6048e5,kke=864e5,Eke=43200,Cke=1440,gM=Symbol.for("constructDateFrom");function Fwe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&gM in e?e[gM](t):e instanceof Date?new e.constructor(t):new Date(t)}function fM(e,t){return Fwe(t||e,e)}function jwe(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function zwe(e,t){return+fM(e)-+fM(t)}function qwe(e,t,o){const a=zwe(e,t)/1e3;return jwe(o?.roundingMethod)(a)}function Pke(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function _ke(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const o=Date.now()-t.getTime(),a=Math.floor(o/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;const n=Math.floor(a/60);if(n<24)return`${n}h ago`;const r=Math.floor(n/24);return r<30?`${r}d ago`:t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ake(e){const t=qwe(new Date,e);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function Uwe(e,t,o=Date.now()){const a=Math.round((o-e.getTime())/1e3),n=new Intl.RelativeTimeFormat(t,{numeric:"auto"}),r=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]];for(const[i,c]of r)if(Math.abs(a)>=c)return n.format(-Math.floor(a/c),i);return n.format(0,"second")}function Rke(e){if(e==null||e==="")return null;const t=e instanceof Date?e.getTime():Date.parse(e);return Number.isFinite(t)?t:null}function Dke(e,t){const o=t-e;return o>0?o:0}function Oke(e){if(e<60)return`${e.toFixed(1)}s`;const t=Math.round(e%60*10)/10,o=t>=60?1:0;return`${Math.floor(e/60)+o}m ${(o?0:t).toFixed(1)}s`}const Oz=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),Ci=Oz?"⌘":"Ctrl",Xn={commandPalette:{keys:[Ci,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[Ci,"["],description:"Back to previous"},focusChatInput:{keys:[Ci,"L"],description:"Focus chat input"},saveAndFormat:{keys:[Ci,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[Ci,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[Ci,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",Ci,"S"],description:"New task"},toggleDaemon:{keys:[Ci,"D"],description:"Toggle daemon logs"}},Nke=[{label:"General",shortcuts:[Xn.commandPalette,Xn.keyboardShortcuts,Xn.back,Xn.newTask,Xn.toggleDaemon]},{label:"Editor",shortcuts:[Xn.saveAndFormat]},{label:"Chat",shortcuts:[Xn.focusChatInput,Xn.togglePlanMode,Xn.sendMessage,Xn.newLine]},{label:"Questions",shortcuts:[Xn.selectOption]},{label:"Monitoring",shortcuts:[Xn.applyFilter]}];function Mke(e){return Oz?e.metaKey:e.ctrlKey}function $we(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}const vM=3;function Vwe(e,t,o=!1){let a=t;return e.split("/").slice(1).map(n=>n.replaceAll("~1","/").replaceAll("~0","~")).map(n=>{if(/^\d+$/.test(n)&&(!a||!a.properties?.[n]))return a=a?.items,String(Number(n)+1);const r=a?.properties?.[n];a=r;const i=r?.title?.trim();return i||(o?Hwe(n):n)})}function Hwe(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(new RegExp("^\\p{Ll}","u"),t=>t.toUpperCase())}function Nz(e,t,o=!1){const a=Vwe(e,t,o);return a.length>0?a.join(" › "):"*"}function Ike(e,t){const o=[...new Set(e.map(r=>Nz(r,t)))],a=o.slice(0,vM).join(", "),n=o.length-vM;return n>0?`${a} (+${n})`:a}const Lke="oklch(0.7278 0.151 289)",Mz="website/matchers/always.ts",Iz="website/matchers/never.ts",Lz="website/flags/multivariate.ts",DC="website/flags/multivariate/section.ts",Gwe=new Set([Mz,"$live/matchers/MatchAlways.ts"]);function Wwe(e,t=!1){return typeof e=="string"&&(Gwe.has(e)||t&&e==="always")}function Kwe(e,t=!1){return typeof e=="string"&&(e===Iz||t&&e==="never")}function Bz(e,t){return XL(e)?Object.hasOwn(e?.manifest?.blocks?.matchers??{},t):!1}function Ywe(e){return Bz(e,"always")?"always":Mz}function Zwe(e){return Bz(e,"never")?"never":Iz}function Qwe(e){return{__resolveType:Ywe(e)}}function Pi(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,a=>a.toUpperCase())||e}const Jwe=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),Xwe=5,eSe=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]);function tSe(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;const o=e,a=typeof o.__resolveType=="string"?o.__resolveType:"";return!eSe.has(a)||!Array.isArray(o.matchers)||o.matchers.length<2?!1:(o.op==="OR"?"OR":"AND")!==t}const bM=new Map;function OC(e){const t=bM.get(e);if(t)return t;const o={dateTime:new Intl.DateTimeFormat(e,{dateStyle:"medium",timeStyle:"short"}),date:new Intl.DateTimeFormat(e,{dateStyle:"medium"}),day:new Intl.DateTimeFormat(e,{month:"short",day:"numeric"})};return bM.set(e,o),o}function Fz(e){const t=e.getHours(),o=e.getMinutes();return t===0&&o===0||t===23&&o===59}const rm=e=>{if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t};function JT(e){const{start:t,end:o}=e,a=rm(typeof t=="string"?t:""),n=rm(typeof o=="string"?o:"");if(!a&&!n)return null;const i=[a,n].filter(m=>m!==null).every(Fz),c=a!==null&&n!==null&&a.getFullYear()===n.getFullYear(),d=OC(cb()),u=(m,h)=>i?(h?d.day:d.date).format(m):d.dateTime.format(m);return a&&n?nr("sectionsEditor.formatMatcher.dateRange",{start:u(a,i&&c),end:u(n,!1)}):a?nr("sectionsEditor.formatMatcher.fromDate",{date:u(a,!1)}):nr("sectionsEditor.formatMatcher.untilDate",{date:u(n,!1)})}function oSe(e){const t=rm(e.start??""),o=rm(e.end??"");if(!t&&!o)return null;const a=[t,o].filter(m=>m!==null),n=a.every(Fz),r=o&&n&&o.getHours()===0&&o.getMinutes()===0?new Date(o.getTime()-1):o,i=new Date().getFullYear(),c=a.every(m=>m.getFullYear()===i),d=OC(cb()),u=m=>n?(c?d.day:d.date).format(m):d.dateTime.format(m);return t&&r?nr("sectionsEditor.formatMatcher.windowRange",{start:u(t),end:u(r)}):t?nr("sectionsEditor.formatMatcher.windowFrom",{date:u(t)}):nr("sectionsEditor.formatMatcher.windowUntil",{date:u(r)})}function Bke(e){if(typeof e!="string")return null;const t=rm(e);return t?OC(cb()).dateTime.format(t):null}function aSe(e,t){const o=typeof e.name=="string"?e.name.trim():"";if(!o)return nr("sectionsEditor.formatMatcher.experiment");const a=t&&Object.hasOwn(t.experiments,o)?t.experiments[o]:void 0;return a===void 0?nr("sectionsEditor.formatMatcher.experimentNamed",{name:o}):nr("sectionsEditor.formatMatcher.experimentShare",{name:o,share:String(a)})}function nSe(e,t){const o=typeof e.name=="string"?e.name.trim():"";if(!o)return nr("sectionsEditor.formatMatcher.campaign");const a=t&&Object.hasOwn(t.campaigns,o)?oSe(t.campaigns[o]):null;return a===null?nr("sectionsEditor.formatMatcher.campaignNamed",{name:o}):nr("sectionsEditor.formatMatcher.campaignWindow",{name:o,window:a})}const rSe=new Set(["always","never","device","date","campaign","experiment"]),sSe="\0";function jz(e,t,o=!1){return zz(e,0,t,o)}function Fke(e){return(t,o)=>jz(t,o,e)}function zz(e,t,o,a){if(!e)return"Default";if(t>Xwe)return"...";const n=e.__resolveType??"";if(["website/matchers/always.ts","$live/matchers/MatchAlways.ts",...a?["always"]:[]].includes(n)||n==="")return"Default";switch(!a&&rSe.has(n)?sSe:n){case"website/matchers/never.ts":case"never":return"Hidden";case"website/matchers/device.ts":case"$live/matchers/MatchDevice.ts":case"device":{const{mobile:i,tablet:c,desktop:d,devices:u=[]}=e,m=[...u];return i&&m.push("Mobile"),c&&m.push("Tablet"),d&&m.push("Desktop"),m.length>0?m.map(Jwe).join(" & "):Pi(n)}case"website/matchers/date.ts":case"$live/matchers/MatchDate.ts":return JT(e)??Pi(n);case"campaign":return nSe(e,o);case"date":return JT(e)??Pi(n);case"experiment":return aSe(e,o);case"website/matchers/random.ts":case"$live/matchers/MatchRandom.ts":{const{traffic:i}=e;return typeof i=="number"?`${Math.ceil(i*100)}% of sessions`:Pi(n)}case"website/matchers/host.ts":case"$live/matchers/MatchHost.ts":{const{includes:i,match:c}=e,d=[];return i&&d.push(i),c&&d.push(c),d.length>0?d.join(" - "):Pi(n)}case"website/matchers/pathname.ts":{const i=e.case,{type:c,pathname:d}=i??{};return c&&d?`Pathname ${c} ${d}`:Pi(n)}case"website/matchers/location.ts":case"$live/matchers/MatchLocation.ts":{const{includeLocations:i,excludeLocations:c}=e,d=h=>[h.city,h.regionCode,h.country].filter(Boolean).join(" - "),u=i?.[0];if(u){const h=(i?.length??0)-1;return`${d(u)}${h>0?` +${h}`:""}`}const m=c?.[0];if(m){const h=(c?.length??0)-1;return`Except ${d(m)}${h>0?` +${h}`:""}`}return"Any location"}case"website/matchers/multi.ts":case"$live/matchers/MatchMulti.ts":{const{matchers:i,op:c="AND"}=e;if(i&&i.length>0){const d=c==="OR"?"OR":"AND";return i.map(u=>{const m=zz(u,t+1,o,a);return tSe(u,d)?`(${m})`:m}).join(` ${d} `)}return Pi(n)}default:{const i=JT(e);return i||Pi(n)||"Default"}}}const iSe=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],yM="website/sections/Rendering/Lazy.tsx";function wn(e){return iSe.some(t=>e.endsWith(t))}const qz="lazy";function NC(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&e.__resolveType===qz&&"value"in e}function lSe(e){return NC(e)?e.value:e}function cSe(e){if(e!==void 0)return NC(e)?e:{__resolveType:qz,value:e}}function jke(e){return e.lazy===!0&&!!e.properties?.value}const Wl="multivariate",Uz=new Set([Lz,DC]);function $z(e){if(!XL(e))return!1;const t=e?.manifest?.blocks??{};return Object.values(t).some(o=>Object.hasOwn(o??{},Wl))}function Vz(e){return $z(e)?Wl:DC}function zke(e){return $z(e)?Wl:Lz}function dSe(e){return typeof e=="string"&&(e===Wl||Uz.has(e))}function uSe(e){return e===Wl}function ac(e){if(!(!e||typeof e!="object"))return lSe(e.value)}function Fb(e,t,o){return uSe(e)||NC(o)?cSe(t):t}function qke(e,t,o){return{...t,value:Fb(e,o,t.value)}}function Hz(e,t){return t?dSe(e):typeof e=="string"&&Uz.has(e)}function MC(e,t){if(t)return ac(e);if(!(!e||typeof e!="object"))return e.value}function Gz(e){const t=e.__resolveType??"";return wn(t)?e.section??e:e}function jv(e,t){const r=(wn(e.__resolveType??"")?e.section:e)?.variants?.[0],i=r?.rule;return Kwe(i?.__resolveType,t)?MC(r,t)??null:null}function Uke(e,t){const o=Gz(e),a=Vz(t);return{__resolveType:a,variants:[{value:Fb(a,o),rule:{__resolveType:Zwe(t)}}]}}function $ke(e){const t=e.__resolveType??"";if(!t)return null;if(wn(t))return e.section??null;const o=jv(e,!1);return o?wn(o.__resolveType??"")?o:{__resolveType:yM,section:Gz(o)}:{__resolveType:yM,section:e}}function hf(e){const t=e.__resolveType??"";if(!t)return null;if(wn(t)){const o=e.section,a=o?.__resolveType??"";return!a||!o?null:{resolveType:a,data:o}}return{resolveType:t,data:e}}function Vke(e,t=!1){const o=jv(e,t);if(o)return hf(o);if(wn(e.__resolveType??"")){const n=e.section;if(!n)return null;const r=jv(n,t);return hf(r||n)}return hf(e)}function Hke(e,t=!1){return jv(e,t)}function Wz(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:Wwe(t)||t.includes("always")}function Kz(e,t){if(!t)return e.length;const o=e[e.length-1];return o&&Wz(o.rule)?e.length-1:e.length}function pSe(e,t,o){return Math.min(t+1,Kz(e,o))}function mSe(e){const t=e.variants??[];if(t.length===0)return-1;const o=t.findIndex(a=>Wz(a.rule));return o!==-1?o:t.length-1}function Gke(e,t,o){const a=o.variants??[];if(a.length===0)return null;const n=mSe(o),r=ac(a[n]);if(!r)return null;const i=structuredClone(r);return t.isLazy?{...e,section:i}:i}function IC(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function hSe(e){const t=new Map;for(const a of e)t.set(a,(t.get(a)??0)+1);const o=new Map;return e.map(a=>{if((t.get(a)??0)<2)return a;const n=(o.get(a)??0)+1;return o.set(a,n),`${a} ${n}`})}function gSe(e,t,o=!1){if(!Array.isArray(e.variants))return[];const a=e.variants.map((r,i)=>({label:t(r.rule)||`Variant ${i+1}`,value:ac(r)??{},rule:r.rule}));if(!o)return a;const n=hSe(a.map(r=>r.label));return a.map((r,i)=>({...r,label:n[i]}))}function fSe(e,t){const o=e.__resolveType??"";if(!o)return null;if(wn(o)){const a=e.section??e,n=a.__resolveType??o;if(!n.includes("/")&&n in t){const r=t[n]??{};return{data:{...r},resolveType:r.__resolveType??n}}return{data:{...a},resolveType:n}}if(!o.includes("/")&&o in t){const a=t[o]??{};return{data:{...a},resolveType:a.__resolveType??o}}return{data:{...e},resolveType:o}}function vSe(e,t){const o=e.__resolveType??"";return wn(o)?{...e,section:t}:t}function bSe(e,t,o){return t.isLazy?{...e,section:o}:o}function Wke(e,t,o){const a=[...e.variants??[]],n=a[t];if(!n)return e;const r=ac(n)??{};return a[t]={...n,value:Fb(e.__resolveType,vSe(r,o),n.value)},{...e,variants:a}}function Kke(e,t,o){const a=[...e.variants??[]];return a[t]?(a[t]={...a[t],rule:o},{...e,variants:a}):e}function Yke(e,t,o=!1){const a=[...e.variants??[]],n=a[t];return n?(a.splice(pSe(a,t,o),0,structuredClone(n)),{...e,variants:a}):e}function Zke(e,t,o){const a=[...e.variants??[]];if(t===o||t<0||o<0||t>=a.length||o>=a.length)return e;const[n]=a.splice(t,1);return n?(a.splice(o,0,n),{...e,variants:a}):e}function Qke(e,t){const o=[...e.variants??[]];return o.length<=1?null:(o.splice(t,1),{...e,variants:o})}function rk(e,t,o){return{rule:Qwe(t),value:Fb(o,structuredClone(e))}}function Yz(e,t){return e?e.__resolveType===Wl?Wl:DC:Vz(t)}function Zz(e,t,o){return{...o,__resolveType:t,variants:e}}function Jke(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function ySe(e,t){if(t.isHidden)return null;if(t.isMultivariate){const a=IC(e,t)?.variants??[],n=ac(a[a.length-1]);return n?structuredClone(n):null}if(t.isLazy){const o=e.section;return o?structuredClone(o):null}return structuredClone(e)}function wSe(e,t,o,a){if(t.isMultivariate||t.isHidden)return null;const n=ySe(e,t);if(!n)return null;const r=Yz(void 0,a),i=Zz([rk(n,a,r),rk(n,a,r)],r);return t.isLazy?{...e,section:i}:i}function Xke(e,t,o,a,n=!1){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const i=IC(e,t);if(!i)return null;const c=i.variants??[],d=ac(c[c.length-1]);if(!d)return null;const u=Yz(i,a),m=Kz(c,n),h=[...c];h.splice(m,0,rk(d,a,u));const f=Zz(h,u,i);return{section:bSe(e,t,f),newVariantIndex:m}}const r=wSe(e,t,o,a);return r?{section:r,newVariantIndex:n?0:1}:null}function eEe(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function tEe(e){return e.includes("@")}function wM(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function oEe(e,t){if(e===t)return!0;const o=wM(e);return o?t===o||wM(t)===o:!1}function Dm(e,t){const o=e.manifest?.blocks??{};for(const[a,n]of Object.entries(o))if(t in n)return a;return null}function aEe(e,t){return Dm(e,t)!==null}function nEe(e,t){const o=Dm(e,t);return o!==null&&o.includes("sections")}function rEe(e,t){const o=Dm(e,t);return o!==null&&o.includes("apps")}function sEe(e,t){const o=Dm(e,t);return o!==null&&o.includes("matchers")}function Qz(e,t){return!(!e||t&&Dm(t,e)!==null||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function iEe(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}function LC(e,t){if(!Object.hasOwn(t,e))return null;const o=t[e]??{},a=o.__resolveType??e;return{data:{...o},resolveType:a}}function Jz(e,t,o,a){if(!e)return null;if(Hz(e,a)){const n=MC(t.variants?.[0],a);return n?sk(n,o,a):null}return!Qz(e)||!Object.hasOwn(o,e)?{data:{...t},resolveType:e}:LC(e,o)}function sk(e,t,o){const a=e.__resolveType??"";if(!a)return null;if(wn(a)){const n=e.section??{};return Xz(n,t,o)}return Jz(a,e,t,o)}function Xz(e,t,o){const a=e.__resolveType??"";return Jz(a,e,t,o)}function lEe(e,t){if(!e||typeof e!="object"||Array.isArray(e))return null;const a=e.__resolveType;if(typeof a!="string"||!Qz(a)||!Object.hasOwn(t,a))return null;const n=LC(a,t);return n?{blockKey:a,...n}:null}function cEe(e,t){if(!t.isSavedBlock)return null;if(t.isHidden){const n=wn(e.__resolveType)?e.section:e,r=ac(n?.variants?.[0]);if(!r)return null;const i=r.__resolveType??"";return wn(i)?r.section?.__resolveType??i??null:i||null}return(t.isLazy?e.section?.__resolveType??e.__resolveType:e.__resolveType)||null}function SSe(e,t,o,a){if(t.isMultivariate)return null;if(t.isSavedBlock&&!t.isHidden){const n=t.isLazy?e.section?.__resolveType??e.__resolveType:e.__resolveType;return LC(n,o)}if(t.isHidden){const r=wn(e.__resolveType)?e.section:e,i=MC(r?.variants?.[0],a)??e,c=i.__resolveType??"",d=wn(c)?i.section?.__resolveType??c:c;return Hz(d,a)?null:sk(i,o,a)}if(t.isLazy||wn(e.__resolveType)){const n=e.section??{};return Xz(n,o,a)}return sk(e,o,a)}const TSe=6e4;function xSe(e,t=TSe){const o=AbortSignal.timeout(t);return e?AbortSignal.any([e,o]):o}const kSe=/^[a-z0-9][a-z0-9-]{0,59}$/;function eq(e){return kSe.test(e)}function ESe(e){const t=o=>typeof o=="string"?o.trim().toLowerCase():"";return t(e?.metadata?.siteSlug)||t(e?.title)||null}function dEe(e){const t=typeof e?.metadata?.analyticsSiteSlug=="string"?e.metadata.analyticsSiteSlug.trim().toLowerCase():"";return t&&eq(t)?t:ESe(e)}function uEe(e){const t=e?.siteSlug;return typeof t=="string"&&eq(t)?t:null}function tq(e,t){return`/api/cms/${encodeURIComponent(e)}/${t}`}function pEe(e,t){return new URL(tq(e,`drafts/${encodeURIComponent(t)}/rpc`),window.location.origin).href}class ik extends Error{constructor(t,o,a){super(t),this.status=o,this.code=a,this.name="CmsRequestError"}status;code}async function CSe(e){let t;try{t=await e.json()}catch{if(e.ok)throw new ik("The CMS returned invalid JSON",e.status,"invalid_response")}if(!e.ok){const o=t!==null&&typeof t=="object"?t:{},a="code"in o&&typeof o.code=="string"?o.code:null,n="error"in o&&typeof o.error=="string"?o.error:`HTTP ${e.status}`;throw new ik(n,e.status,a)}return t}async function PSe(e,t,o){return CSe(await fetch(tq(e,t),{cache:"no-store",credentials:"same-origin",...o,signal:xSe(o?.signal)}))}const _Se=Mk("result",[Se({result:Qe("published"),revision:$().min(1),previous:$().min(1).nullable()}),Se({result:Qe("up-to-date"),revision:$().min(1).nullable()})]);function mEe(e){const t=_Se.safeParse(e);if(!t.success)throw new ik("The CMS returned an invalid publication response",200,"invalid_response");return t.data}async function hEe(e,t){return PSe(e,"drafts",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:t})})}async function ASe(e){const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(Twe(e))),o=new Uint8Array(t).subarray(0,16);let a="";for(const n of o)a+=String.fromCharCode(n);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const RSe="__indexStub",DSe="__indexRefs";function oq(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&Object.hasOwn(e,RSe)}function gEe(e){if(!oq(e))return[];const t=e[DSe];return Array.isArray(t)?t.filter(o=>typeof o=="string"):[]}function fEe(e){return Object.entries(e??{}).filter(([,t])=>zv(t)).map(([t])=>t)}function zv(e){return oq(e)?!0:Array.isArray(e)?e.some(zv):!!e&&typeof e=="object"&&Object.values(e).some(zv)}function OSe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&!zv(e)}function NSe(e){return ASe(e)}async function SM(e,t,o){if(e===void 0||!OSe(t))return e;if(e===null&&o===void 0)return null;const a=await NSe(t);return e===null&&a===o?null:a}function vEe(e,t,o){const a=e.getQueryData(ca.contentIndex(t));if(!(!a||Object.hasOwn(a.draft,o)))return a.entries[o]?.version??null}function bEe(e,t,o,a,n){if(!e||!t)return null;if(!t.isMultivariate)return SSe(e,t,a,n)?.data??null;const r=IC(e,t),i=r?gSe(r,jz)[o]:void 0;return i?fSe(i.value,a)?.data??null:null}const MSe=50;function yEe(e,t){e.own.push(la(t)),e.own.length>MSe&&e.own.shift()}function wEe(e,t){return e.own.includes(la(t))}function SEe(e,t){const{sectionIndex:o,variantIndex:a,shown:n,next:r,sectionCount:i}=t;return e&&e.sectionIndex===o&&e.variantIndex===a&&e.emitted===n?(e.emitted=r,e):n?{sectionIndex:o,variantIndex:a,base:n,emitted:r,sectionCount:i,own:[la(n)]}:null}function aq(e,t){return t!==null&&la(e)!==la(t)}function ISe(e,t){return e.__resolveType!==t.__resolveType}function TEe(e,t,o,a){if(t.length===a)return"here";const n=la(e),r=t.flatMap((i,c)=>c!==o&&i!==null&&la(i)===n?[c]:[]);return r.length===1?r[0]:"unknown"}function xEe({startedFrom:e,stored:t,rebased:o,refused:a}){return t&&(o||a&&aq(e,t))?t:e}function kEe({formBase:e,rebased:t,versionOf:o,productionVersionOf:a,copy:n}){let r=null;const i=c=>c===void 0||r===null?void 0:{[r]:c};return n?{ifMatch:async c=>{if(r=c,e&&e.version!==void 0&&!t)return i(e.version===null?await SM(null,n.value,a?.(c)):e.version);const d=await SM(o(c),n.value,a?.(c));return e&&(e.version=d),i(d)},onApplied:c=>{e&&r!==null&&Object.hasOwn(c,r)&&(e.version=c[r])},reloadOnConflict:!0}:{ifMatch:c=>{r=c,e&&(e.version===void 0||t)&&(e.version=o(c));const d=e?e.version:o(c);return d===void 0?void 0:{[c]:d}},onApplied:c=>{e&&r!==null&&Object.hasOwn(c,r)&&(e.version=c[r])},reloadOnConflict:!0}}function EEe({merged:e,tracked:t,current:o,saved:a}){return!!e&&!!t&&o===t&&t.emitted===a}function CEe(e,t){return!!e&&!!t&&e.contains(t)}const LSe=1e3;function PEe(e,t){return t?{delay:0,immediate:!0}:{delay:LSe*2**e,immediate:!1}}function BSe(e,t,o,a){return t&&e.some(r=>r.formBase===t)?t:e.find(r=>r.formBase.sectionIndex===a&&r.target.pageKey===o.pageKey&&r.target.global===o.global&&r.target.pageVariantIndex===o.pageVariantIndex&&r.target.sectionVariantIndex===o.sectionVariantIndex)?.formBase??null}function _Ee(e,t,o,a,n){if(!n)return{base:t,runNow:!1};const r=BSe(e,t,o,a);return{base:r,runNow:r!==null}}function FSe(e){const t=[],o=lk("",e.ancestor,e.mine,e.theirs,t);return{...e,merged:o,pointers:t}}function lk(e,t,o,a,n){const r=(i,c)=>la(i)===la(c);if(r(o,a)||r(t,a))return o;if(r(t,o))return a;if(XT(o)&&XT(a)){const i=XT(t)?t:{},c={},d=[...Object.keys(o),...Object.keys(a).filter(u=>!(u in o))];for(const u of d){const m=lk(`${e}/${u.replaceAll("~","~0").replaceAll("/","~1")}`,i[u],o[u],a[u],n);m!==void 0&&(c[u]=m)}return c}return Array.isArray(t)&&Array.isArray(o)&&Array.isArray(a)&&o.length===t.length&&a.length===t.length?t.map((i,c)=>lk(`${e}/${c}`,i,o[c],a[c],n)):(n.push(e),a)}function XT(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function jSe(e,t){let o=e.merged;for(const a of e.pointers)t[a]==="mine"&&(o=$Se(o,a,Kl(e.mine,a)));return o}function AEe(e,t){return e.pointers.length===0||e.pointers.some(o=>t[o]!=="theirs")?!1:la(jSe(e,t))===la(e.theirs)}function zSe(e,t){return Object.fromEntries(e.pointers.map(o=>[o,t]))}function nq(e){return zSe(e,"mine")}function qSe(e,t,o){const a=nq(o);for(const n of o.pointers){const r=t[n];if(!r||!e.pointers.includes(n))continue;["mine","theirs"].every(c=>la(Kl(e[c],n))===la(Kl(o[c],n)))&&(a[n]=r)}return a}function USe(e,t,o={}){const a=t.pointers.filter(n=>!e.pointers.includes(n)||la(Kl(e.theirs,n))!==la(Kl(t.theirs,n)));return a.length===0?o:{...o,...Object.fromEntries(a.map(n=>[n,(o[n]??0)+1]))}}function REe(e,t,o){if(!t||ISe(e.plan.ancestor,t)||!aq(e.plan.theirs,t)||o(t))return null;const a=FSe({...e.plan,theirs:t});return a.pointers.length===0?null:{plan:a,choices:qSe(e.plan,e.choices,a),fresh:USe(e.plan,a,e.fresh)}}function DEe(e,t,o=!1){return e.pointers.map(a=>({pointer:a,label:Nz(a,t,o),mine:Kl(e.mine,a),theirs:Kl(e.theirs,a),schema:VSe(t??null,a)}))}function BC(e){return e.split("/").slice(1).map(t=>t.replaceAll("~1","/").replaceAll("~0","~"))}function Kl(e,t){let o=e;for(const a of BC(t))if(Array.isArray(o))o=o[Number(a)];else if(o&&typeof o=="object")o=o[a];else return;return o}function $Se(e,t,o){const a=BC(t),n=(r,i)=>{if(i===a.length)return o;const c=a[i];if(Array.isArray(r)){const m=[...r];return m[Number(c)]=n(r[Number(c)],i+1),m}const d=r&&typeof r=="object"?{...r}:{},u=n(d[c],i+1);return u===void 0?delete d[c]:d[c]=u,d};return n(e,0)}function VSe(e,t){let o=e;for(const a of BC(t)){if(!o)return null;o=/^\d+$/.test(a)&&!o.properties?.[a]?o.items:o.properties?.[a]}return o??null}const HSe=/\.(png|jpe?g|gif|webp|avif|svg)(\?.*)?$/i,TM=60,GSe=3;function rq(e,t){return t?.format==="image-uri"?!0:e.startsWith("data:image/")||/^(https?:)?\/\//.test(e)&&HSe.test(e)}function ck(e,t){if(!(t?.format==="rich-text"||t?.format==="rich-text-inline"||t?.format==="html"||/<\/?[a-z][^>]*>/i.test(e)))return e;const a=e.replace(/<br\s*\/?>/gi,`
|
|
267
267
|
`).replace(/<\/(p|div|li|h[1-6])>/gi,`
|
|
268
268
|
`);return KSe(a).replace(/\u00a0/g," ").replace(/\n{2,}/g,`
|
|
269
|
-
`).trim()}const WSe={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'"};function KSe(e){if(typeof DOMParser<"u")return new DOMParser().parseFromString(e,"text/html").body.textContent??"";let t=e;for(let o="";o!==t;)o=t,t=t.replace(/<[^<>]*>/g,"");return t.replace(/<|>/g,"").replace(/&(nbsp|amp|lt|gt|quot|#39);/g,o=>WSe[o]??o)}function If(e){const t=e.replace(/\s+/g," ").trim();return t.length>TM?`${t.slice(0,TM-1)}…`:t}function YSe(e){if(e.startsWith("data:"))return"image";const t=e.split(/[?#]/)[0]??e;return decodeURIComponent(t.split("/").pop()||e)}function qv(e,t){if(e==null||e==="")return{kind:"empty"};if(typeof e=="string")return rq(e,t)?{kind:"image",src:e}:{kind:"text",text:ck(e,t)};if(typeof e=="number"||typeof e=="bigint")return{kind:"text",text:String(e)};if(typeof e=="boolean")return{kind:"yesNo",value:e};if(Array.isArray(e)){const o=t?.items??null;return{kind:"list",count:e.length,items:e.slice(0,GSe).map(a=>ZSe(a,o)??"")}}if(typeof e=="object"){const o=e;if("value"in o&&Object.keys(o).length<=2)return qv(o.value,t?.properties?.value??t);const a=Object.entries(o).filter(([n,r])=>!n.startsWith("__")&&r!==void 0).flatMap(([n,r])=>{const i=t?.properties?.[n]??null,c=qv(r,i);if(c.kind==="empty")return[];const d=c.kind==="text"?If(c.text):c.kind==="image"?YSe(c.src):c.kind==="yesNo"?c.value?"✓":"✗":c.kind==="list"?`${c.count}`:"…";return[{label:i?.title?.trim()||n,text:d}]}).slice(0,4);return a.length>0?{kind:"fields",entries:a}:{kind:"empty"}}return{kind:"text",text:String(e)}}function ZSe(e,t){if(typeof e=="string")return If(ck(e,t));if(!e||typeof e!="object"||Array.isArray(e))return null;const o=e,a=t?.titleBy,n=a?o[a]:void 0;if(typeof n=="string"&&n.trim())return If(n);for(const[r,i]of Object.entries(o))if(!(r.startsWith("__")||typeof i!="string"||!i.trim())&&!rq(i,t?.properties?.[r]??null))return If(ck(i,null));return null}const xM=1500;function QSe(e,t){const o=e.split(/(\s+)/).filter(m=>m!==""),a=t.split(/(\s+)/).filter(m=>m!=="");if(o.length>xM||a.length>xM)return{mine:[{text:e,kind:"changed"}],theirs:[{text:t,kind:"changed"}]};const n=Array.from({length:o.length+1},()=>new Array(a.length+1).fill(0));for(let m=o.length-1;m>=0;m--)for(let h=a.length-1;h>=0;h--){const f=n[m];f[h]=o[m]===a[h]?n[m+1][h+1]+1:Math.max(n[m+1][h],f[h+1])}const r=[],i=[],c=(m,h,f)=>{const v=m.at(-1);v&&(v.kind===f||f==="same"&&!h.trim())?v.text+=h:m.push({text:h,kind:f})};let d=0,u=0;for(;d<o.length&&u<a.length;)o[d]===a[u]?(c(r,o[d],"same"),c(i,a[u],"same"),d++,u++):n[d+1][u]>=n[d][u+1]?(c(r,o[d],"changed"),d++):(c(i,a[u],"changed"),u++);for(;d<o.length;d++)c(r,o[d],"changed");for(;u<a.length;u++)c(i,a[u],"changed");return{mine:r,theirs:i}}const JSe=700,XSe=new Set(["text","search","url","tel",""]);function eTe(e){if(!e)return!1;if(e.tagName==="TEXTAREA")return!e.readOnly;if(e.tagName!=="INPUT")return!1;const t=e;return XSe.has(t.type.toLowerCase())&&!t.readOnly&&!t.disabled}function tTe(e,t){const o=e.value,a=e.selectionStart??o.length,n=e.selectionEnd??a;let r,i;if(t==="Backspace"){const d=a===n?Math.max(0,a-1):a;r=o.slice(0,d)+o.slice(n),i=d}else r=o.slice(0,a)+t+o.slice(n),i=a+t.length;const c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value")?.set;c?c.call(e,r):e.value=r,e.setSelectionRange?.(i,i),e.dispatchEvent(new Event("input",{bubbles:!0}))}const oTe={now:()=>globalThis.performance.now(),typedAt:e=>e.timeStamp};function aTe(e,t){const o=ye.c(12),a=oTe,n=A.useRef(null),r=A.useRef(null);let i;o[0]!==a?(i=()=>{const h=globalThis.document;if(r.current||!h)return;const f=b=>{const w=n.current;if(!w||b.key==="Shift"||b.key==="CapsLock")return;const x=a.typedAt(b);if(!((b.key.length===1||b.key==="Backspace")&&!b.ctrlKey&&!b.metaKey&&!b.altKey&&!b.isComposing)||x-w.last>JSe||!w.field.isConnected||b.target===w.field){n.current=null;return}b.preventDefault(),b.stopPropagation(),w.last=Math.max(w.last,x),tTe(w.field,b.key)},v=()=>{n.current=null};h.addEventListener("keydown",f,!0),h.addEventListener("pointerdown",v,!0),r.current=()=>{h.removeEventListener("keydown",f,!0),h.removeEventListener("pointerdown",v,!0),r.current=null,n.current=null}},o[0]=a,o[1]=i):i=o[1];const c=i;let d;o[2]!==c||o[3]!==e?(d=()=>{if(e)return c(),()=>r.current?.()},o[2]=c,o[3]=e,o[4]=d):d=o[4];let u;o[5]!==a||o[6]!==e?(u=[e,a],o[5]=a,o[6]=e,o[7]=u):u=o[7],A.useEffect(d,u);let m;return o[8]!==c||o[9]!==a||o[10]!==e?(m=()=>{const h=globalThis.document?.activeElement??null;if(!e||!eTe(h)){n.current=null;return}c(),n.current={field:h,last:a.now()}},o[8]=c,o[9]=a,o[10]=e,o[11]=m):m=o[11],m}function nTe(e){const t=ye.c(20);let o,a,n,r,i;t[0]!==e?({open:o,authorPending:n,waitForAuthor:r,keepTyping:i,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5]);const c=n===void 0?!1:n,d=r===void 0?!1:r,u=i===void 0?!1:i,{data:m}=fa.useSession(),h=d&&c;let f;t[6]!==c||t[7]!==d?(f=()=>c&&!d,t[6]=c,t[7]=d,t[8]=f):f=t[8];const[v]=A.useState(f),b=aTe(u&&o&&!h),w=o&&!h;let x;t[9]===Symbol.for("react.memo_cache_sentinel")?(x=Je("max-h-[85vh] grid-rows-[auto_minmax(0,1fr)_auto] sm:max-w-lg"),t[9]=x):x=t[9];const T=a.anonymousTitle??v,k=m?.user??null;let C;t[10]!==a||t[11]!==T||t[12]!==k?(C=y.jsx(uTe,{...a,anonymousTitle:T,viewer:k,heading:rTe}),t[10]=a,t[11]=T,t[12]=k,t[13]=C):C=t[13];let E;t[14]!==b||t[15]!==C?(E=y.jsx(Tz,{className:x,"data-testid":"form-conflict-dialog",onOpenAutoFocus:b,onEscapeKeyDown:sTe,children:C}),t[14]=b,t[15]=C,t[16]=E):E=t[16];let _;return t[17]!==E||t[18]!==w?(_=y.jsx(Sz,{open:w,children:E}),t[17]=E,t[18]=w,t[19]=_):_=t[19],_}function rTe(e,t){return y.jsxs(xz,{className:"text-left",children:[y.jsx(kz,{children:e}),y.jsx(Ez,{children:t})]})}function sTe(e){return e.preventDefault()}const iTe={},lTe=(e,t)=>y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("h2",{className:"text-lg font-semibold",children:e}),y.jsx("p",{className:"text-sm text-muted-foreground",children:t})]});function cTe(e,t,o=0,a={},n=null,r,{anonymous:i=!1,asLabeled:c=!1}={}){const d=t[Math.min(o,t.length-1)],u=n?.you?void 0:n?.shortName??n?.name?.split(/\s+/)[0],m={field:d?r||c?d.label:dTe(d.label):"",label:d?.label??"",name:u??"",block:r??""},h=i&&!n?.you&&!u,f=(w,x,T,k)=>e(h?k:n?.you?T:u?x:w,m),v=d?.phrase,b=(w,x,T,k)=>e(h?k:n?.you?T:u?x:w,{thing:v??"",Thing:v?v.charAt(0).toLocaleUpperCase()+v.slice(1):"",label:d?.label??"",name:u??""});return v?t.length<=1?{title:b("sectionsEditor.formConflict.titlePhraseOne","sectionsEditor.formConflict.titlePhraseOneNamed","sectionsEditor.formConflict.titlePhraseOneYou","sectionsEditor.formConflict.titlePhraseOneAnonymous"),description:e("sectionsEditor.formConflict.descriptionOne")}:{title:b("sectionsEditor.formConflict.titlePhraseStep","sectionsEditor.formConflict.titlePhraseStepNamed","sectionsEditor.formConflict.titlePhraseStepYou","sectionsEditor.formConflict.titlePhraseStepAnonymous"),description:o>=t.length-1?y.jsx(kM,{t:e,fields:t,choices:a,name:u}):e("sectionsEditor.formConflict.descriptionStep")}:t.length<=1?{title:r?f("sectionsEditor.formConflict.titleOneIn","sectionsEditor.formConflict.titleOneInNamed","sectionsEditor.formConflict.titleOneInYou","sectionsEditor.formConflict.titleOneInAnonymous"):f("sectionsEditor.formConflict.titleOne","sectionsEditor.formConflict.titleOneNamed","sectionsEditor.formConflict.titleOneYou","sectionsEditor.formConflict.titleOneAnonymous"),description:e("sectionsEditor.formConflict.descriptionOne")}:{title:r?f("sectionsEditor.formConflict.titleStepIn","sectionsEditor.formConflict.titleStepInNamed","sectionsEditor.formConflict.titleStepInYou","sectionsEditor.formConflict.titleStepInAnonymous"):f("sectionsEditor.formConflict.titleStep","sectionsEditor.formConflict.titleStepNamed","sectionsEditor.formConflict.titleStepYou","sectionsEditor.formConflict.titleStepAnonymous"),description:o>=t.length-1?y.jsx(kM,{t:e,fields:t,choices:a,name:u}):e("sectionsEditor.formConflict.descriptionStep")}}function kM(e){const t=ye.c(11),{t:o,fields:a,choices:n,name:r}=e;let i;if(t[0]!==n||t[1]!==a||t[2]!==r||t[3]!==o){let d;t[5]!==n||t[6]!==r||t[7]!==o?(d=(u,m)=>y.jsxs(A.Fragment,{children:[m>0&&" · ",`${u.label}: `,y.jsx("span",{className:"font-medium text-foreground",children:o((n[u.pointer]??"mine")==="mine"?"sectionsEditor.formConflict.summaryYours":r?"sectionsEditor.formConflict.summaryTheirsNamed":"sectionsEditor.formConflict.summaryTheirs",{name:r??""})})]},u.pointer),t[5]=n,t[6]=r,t[7]=o,t[8]=d):d=t[8],i=a.map(d),t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=i}else i=t[4];let c;return t[9]!==i?(c=y.jsx("span",{"data-testid":"form-conflict-summary",children:i}),t[9]=i,t[10]=c):c=t[10],c}function dTe(e){return/^[A-Z][a-z]/.test(e)&&!e.includes("›")?e.charAt(0).toLowerCase()+e.slice(1):e}function uTe(e){const t=ye.c(68),o=$a(),{fields:a,choices:n,changedAgain:r,fresh:i,heading:c}=e,d=r===void 0?!1:r,u=i===void 0?iTe:i,m=c===void 0?lTe:c,h=a.length>1,[f,v]=A.useState(0),[b,w]=A.useState(pTe);let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x={},t[0]=x):x=t[0];const[T,k]=A.useState(x),C=Math.max(0,Math.min(f,a.length-1)),E=a[C],_=C===a.length-1;let D;t[1]!==C||t[2]!==a||t[3]!==u?(D=j=>{const X=a[C],de=a[j];!X||!de||j===C||(w(ue=>new Set(ue).add(X.pointer)),k(ue=>({...ue,[X.pointer]:u[X.pointer]??0,[de.pointer]:u[de.pointer]??0})),v(j))},t[1]=C,t[2]=a,t[3]=u,t[4]=D):D=t[4];const R=D;let O;t[5]!==C||t[6]!==R?(O=j=>{if(!j)return;const X=de=>{const ue={ArrowLeft:-1,ArrowRight:1}[de.key];!ue||de.defaultPrevented||de.altKey||de.ctrlKey||de.metaKey||de.shiftKey||$we(de.target)||(de.preventDefault(),R(C+ue))};return j.ownerDocument.addEventListener("keydown",X),()=>j.ownerDocument.removeEventListener("keydown",X)},t[5]=C,t[6]=R,t[7]=O):O=t[7];const L=O;if(!E)return null;let U,B,z,F,W;if(t[8]!==b||t[9]!==C||t[10]!==n||t[11]!==a||t[12]!==u||t[13]!==R||t[14]!==m||t[15]!==L||t[16]!==h||t[17]!==e||t[18]!==T||t[19]!==o){const{title:j,description:X}=cTe(o,a,C,n,e.author??null,e.block,{anonymous:e.anonymousTitle,asLabeled:e.fieldsAsLabeled});let de;t[25]!==e?(de=ue=>{ue.detail>1||e.onApply()},t[25]=e,t[26]=de):de=t[26],U=de,B=h?L:void 0,z="flex min-w-0 flex-col gap-3",t[27]!==b||t[28]!==C||t[29]!==a||t[30]!==u||t[31]!==R||t[32]!==h||t[33]!==T||t[34]!==o?(F=h&&y.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y.jsx("div",{role:"group","aria-label":o("sectionsEditor.formConflict.steps"),className:"-m-1 flex flex-wrap items-center",children:a.map((ue,Ee)=>{const qe=Ee!==C&&(u[ue.pointer]??0)>(T[ue.pointer]??0);return y.jsx("button",{type:"button","aria-label":qe?o("sectionsEditor.formConflict.stepChangedAgain",{label:ue.label}):ue.label,"aria-current":Ee===C?"step":void 0,"data-answered":Ee!==C&&b.has(ue.pointer)?"":void 0,"data-changed-again":qe?"":void 0,onClick:()=>R(Ee),className:"group cursor-pointer rounded-full p-1 focus-ring",children:y.jsx("span",{className:Je("block h-2 w-2 rounded-full bg-border transition-[width,background-color,box-shadow] motion-reduce:transition-none","group-hover:bg-muted-foreground/60","group-data-[answered]:bg-foreground/45","group-aria-[current=step]:w-5 group-aria-[current=step]:bg-foreground","group-data-[changed-again]:ring-2 group-data-[changed-again]:ring-warning group-data-[changed-again]:ring-offset-1 group-data-[changed-again]:ring-offset-background")})},ue.pointer)})}),y.jsx("span",{className:"shrink-0 text-xs tabular-nums text-muted-foreground",children:o("sectionsEditor.formConflict.stepCount",{step:String(C+1),count:String(a.length)})})]}),t[27]=b,t[28]=C,t[29]=a,t[30]=u,t[31]=R,t[32]=h,t[33]=T,t[34]=o,t[35]=F):F=t[35],W=m(j,X),t[8]=b,t[9]=C,t[10]=n,t[11]=a,t[12]=u,t[13]=R,t[14]=m,t[15]=L,t[16]=h,t[17]=e,t[18]=T,t[19]=o,t[20]=U,t[21]=B,t[22]=z,t[23]=F,t[24]=W}else U=t[20],B=t[21],z=t[22],F=t[23],W=t[24];let oe;t[36]!==B||t[37]!==z||t[38]!==F||t[39]!==W?(oe=y.jsxs("div",{ref:B,className:z,children:[F,W]}),t[36]=B,t[37]=z,t[38]=F,t[39]=W,t[40]=oe):oe=t[40];const H=!d&&"sr-only";let K;t[41]!==H?(K=Je("text-sm text-muted-foreground",H),t[41]=H,t[42]=K):K=t[42];let J;t[43]!==d||t[44]!==h||t[45]!==o?(J=d?o(h?"sectionsEditor.formConflict.changedAgainSteps":"sectionsEditor.formConflict.changedAgain"):"",t[43]=d,t[44]=h,t[45]=o,t[46]=J):J=t[46];let se;t[47]!==K||t[48]!==J?(se=y.jsx("p",{role:"status",className:K,children:J}),t[47]=K,t[48]=J,t[49]=se):se=t[49];const Q=h?"vertical":"all";let M;t[50]!==E||t[51]!==e||t[52]!==Q?(M=y.jsx(fTe,{field:E,...e,arrows:Q}),t[50]=E,t[51]=e,t[52]=Q,t[53]=M):M=t[53];let G;t[54]!==se||t[55]!==M?(G=y.jsxs("div",{className:"-mx-2 flex min-h-0 flex-col gap-3 overflow-y-auto px-2 py-1",children:[se,M]}),t[54]=se,t[55]=M,t[56]=G):G=t[56];let V;t[57]!==U||t[58]!==C||t[59]!==R||t[60]!==_||t[61]!==h||t[62]!==o?(V=h?y.jsxs(tk,{className:"flex-row flex-wrap items-center justify-between gap-2 sm:justify-between",children:[y.jsx(yn,{type:"button",variant:"outline","aria-disabled":C===0,onClick:()=>R(C-1),className:"aria-disabled:cursor-default aria-disabled:opacity-45",children:o("sectionsEditor.formConflict.back")}),y.jsx(yn,{type:"button","data-testid":"form-conflict-primary",onClick:_?U:()=>R(C+1),children:o(_?"sectionsEditor.formConflict.ok":"sectionsEditor.formConflict.next")})]}):y.jsx(tk,{className:"items-center gap-2",children:y.jsx(yn,{type:"button","data-testid":"form-conflict-primary",onClick:U,children:o("sectionsEditor.formConflict.ok")})}),t[57]=U,t[58]=C,t[59]=R,t[60]=_,t[61]=h,t[62]=o,t[63]=V):V=t[63];let I;return t[64]!==oe||t[65]!==G||t[66]!==V?(I=y.jsxs(y.Fragment,{children:[oe,G,V]}),t[64]=oe,t[65]=G,t[66]=V,t[67]=I):I=t[67],I}function pTe(){return new Set}function mTe(e){const t=qv(e.mine,e.schema),o=qv(e.theirs,e.schema),a=t.kind==="text"&&o.kind==="text"?QSe(t.text,o.text):null;return n=>a?y.jsx(bTe,{parts:a[n]}):y.jsx(wTe,{preview:n==="mine"?t:o})}const hTe={all:{ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1},vertical:{ArrowDown:1,ArrowUp:-1}};function gTe(e,t){const o=hTe[t][e.key];if(!o)return;const a=[...e.currentTarget.querySelectorAll('[role="radio"]')],n=a.indexOf(document.activeElement);if(n<0)return;e.preventDefault();const r=a[(n+o+a.length)%a.length];r?.focus(),r?.click()}function fTe(e){const t=ye.c(67),{field:o,choices:a,viewer:n,author:r,anonymousTitle:i,onChoose:c,arrows:d}=e,u=r===void 0?null:r,m=i===void 0?!1:i,h=$a(),[f]=rE(),{language:v}=f;let b,w,x,T,k,C,E,_,D,R,O,L,U,B;if(t[0]!==m||t[1]!==d||t[2]!==u||t[3]!==a||t[4]!==o||t[5]!==v||t[6]!==c||t[7]!==h||t[8]!==n?.image||t[9]!==n?.name){const W=mTe(o),oe=a[o.pointer]??"mine",H=n?.image??void 0;let K;t[24]!==h||t[25]!==n?.name?(K=n?.name?.trim()||h("sectionsEditor.formConflict.you"),t[24]=h,t[25]=n?.name,t[26]=K):K=t[26];let J;t[27]!==H||t[28]!==K?(J=y.jsx(Mf,{url:H,fallback:K,shape:"circle",size:"sm",className:"text-xs"}),t[27]=H,t[28]=K,t[29]=J):J=t[29];const se=J;let Q;t[30]!==u||t[31]!==se?(Q=u?.you?se:u?.name?y.jsx(Mf,{url:u.avatarUrl,fallback:u.name,shape:"circle",size:"sm",className:"text-xs"}):y.jsx(Mf,{url:"icon://user",fallback:"",muted:!0,shape:"circle",size:"sm"}),t[30]=u,t[31]=se,t[32]=Q):Q=t[32];const M=Q,G=u?new Date(u.at):null,V=m&&!u;T="radiogroup",k=o.label,C="flex flex-col gap-2",t[33]!==d?(E=de=>gTe(de,d),t[33]=d,t[34]=E):E=t[34];let I;t[35]!==o.pointer||t[36]!==c?(I=()=>c(o.pointer,"mine"),t[35]=o.pointer,t[36]=c,t[37]=I):I=t[37];let j;t[38]!==h?(j=h("sectionsEditor.formConflict.you"),t[38]=h,t[39]=j):j=t[39];let X;t[40]!==h?(X=h("sectionsEditor.formConflict.yourVersionNotSaved"),t[40]=h,t[41]=X):X=t[41],_=y.jsx(EM,{side:"mine",checked:oe==="mine",onChoose:I,avatar:se,who:j,meta:X,children:W("mine")}),b=EM,D="theirs",R=oe==="theirs",t[42]!==o.pointer||t[43]!==c?(O=()=>c(o.pointer,"theirs"),t[42]=o.pointer,t[43]=c,t[44]=O):O=t[44],L=M,t[45]!==u?.name||t[46]!==u?.you||t[47]!==V||t[48]!==h?(U=V?h("sectionsEditor.formConflict.theirVersion"):u?.you?h("sectionsEditor.formConflict.youElsewhere"):u?.name||h("sectionsEditor.formConflict.someoneElse"),t[45]=u?.name,t[46]=u?.you,t[47]=V,t[48]=h,t[49]=U):U=t[49],B=V?h("sectionsEditor.formConflict.alreadySaved"):G?h("sectionsEditor.formConflict.savedAt",{when:Uwe(G,v)}):h("sectionsEditor.formConflict.theirVersionSaved"),w=G?vTe(G,v):void 0,x=W("theirs"),t[0]=m,t[1]=d,t[2]=u,t[3]=a,t[4]=o,t[5]=v,t[6]=c,t[7]=h,t[8]=n?.image,t[9]=n?.name,t[10]=b,t[11]=w,t[12]=x,t[13]=T,t[14]=k,t[15]=C,t[16]=E,t[17]=_,t[18]=D,t[19]=R,t[20]=O,t[21]=L,t[22]=U,t[23]=B}else b=t[10],w=t[11],x=t[12],T=t[13],k=t[14],C=t[15],E=t[16],_=t[17],D=t[18],R=t[19],O=t[20],L=t[21],U=t[22],B=t[23];let z;t[50]!==b||t[51]!==w||t[52]!==x||t[53]!==D||t[54]!==R||t[55]!==O||t[56]!==L||t[57]!==U||t[58]!==B?(z=y.jsx(b,{side:D,checked:R,onChoose:O,avatar:L,who:U,meta:B,metaTitle:w,children:x}),t[50]=b,t[51]=w,t[52]=x,t[53]=D,t[54]=R,t[55]=O,t[56]=L,t[57]=U,t[58]=B,t[59]=z):z=t[59];let F;return t[60]!==T||t[61]!==k||t[62]!==C||t[63]!==E||t[64]!==_||t[65]!==z?(F=y.jsxs("div",{role:T,"aria-label":k,className:C,onKeyDown:E,children:[_,z]}),t[60]=T,t[61]=k,t[62]=C,t[63]=E,t[64]=_,t[65]=z,t[66]=F):F=t[66],F}const vTe=(e,t)=>e.toLocaleString(t,{dateStyle:"medium",timeStyle:"short"});function EM(e){const t=ye.c(28),{side:o,checked:a,onChoose:n,avatar:r,who:i,meta:c,metaTitle:d,children:u}=e,m=A.useId(),h=`${m}-who`,f=`${m}-meta ${m}-value`,v=a?0:-1,b=a?"border-primary bg-primary/5 ring-1 ring-primary":"hover:bg-accent";let w;t[0]!==b?(w=Je("grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)] items-start gap-3 rounded-xl border bg-background p-3 text-left transition-[border-color,box-shadow,background-color] focus-ring",b),t[0]=b,t[1]=w):w=t[1];const x=`${m}-who`;let T;t[2]!==x||t[3]!==i?(T=y.jsx("span",{id:x,className:"text-sm font-medium text-foreground",children:i}),t[2]=x,t[3]=i,t[4]=T):T=t[4];const k=`${m}-meta`;let C;t[5]!==c||t[6]!==d||t[7]!==k?(C=y.jsx("span",{id:k,title:d,children:c}),t[5]=c,t[6]=d,t[7]=k,t[8]=C):C=t[8];let E;t[9]!==T||t[10]!==C?(E=y.jsxs("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-xs text-muted-foreground",children:[T,C]}),t[9]=T,t[10]=C,t[11]=E):E=t[11];const _=`${m}-value`,D=`conflict-${o}`;let R;t[12]!==u||t[13]!==_||t[14]!==D?(R=y.jsx("span",{id:_,"data-testid":D,className:"min-w-0 text-sm",children:u}),t[12]=u,t[13]=_,t[14]=D,t[15]=R):R=t[15];let O;t[16]!==E||t[17]!==R?(O=y.jsxs("span",{className:"flex min-w-0 flex-col gap-1",children:[E,R]}),t[16]=E,t[17]=R,t[18]=O):O=t[18];let L;return t[19]!==r||t[20]!==a||t[21]!==n||t[22]!==h||t[23]!==O||t[24]!==f||t[25]!==v||t[26]!==w?(L=y.jsxs("button",{type:"button",role:"radio","aria-checked":a,"aria-labelledby":h,"aria-describedby":f,tabIndex:v,onClick:n,className:w,children:[r,O]}),t[19]=r,t[20]=a,t[21]=n,t[22]=h,t[23]=O,t[24]=f,t[25]=v,t[26]=w,t[27]=L):L=t[27],L}function bTe(e){const t=ye.c(4),{parts:o}=e;let a;t[0]!==o?(a=o.map(yTe),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==a?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:a}),t[2]=a,t[3]=n):n=t[3],n}function yTe(e,t){return e.kind==="changed"?y.jsx("mark",{className:"rounded-sm bg-warning/20 px-0.5 text-foreground",children:e.text},t):y.jsx("span",{children:e.text},t)}function wTe(e){const t=ye.c(29),{preview:o}=e,a=$a();switch(o.kind){case"empty":{let n;t[0]!==a?(n=a("sectionsEditor.formConflict.empty"),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==n?(r=y.jsx("span",{className:"italic text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3],r}case"text":{let n;return t[4]!==o.text?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:o.text}),t[4]=o.text,t[5]=n):n=t[5],n}case"image":{let n;return t[6]!==o.src?(n=y.jsx("img",{src:o.src,alt:"",className:"max-h-24 max-w-full rounded border object-contain"}),t[6]=o.src,t[7]=n):n=t[7],n}case"yesNo":{const n=o.value?"sectionsEditor.formConflict.yes":"sectionsEditor.formConflict.no";let r;t[8]!==a||t[9]!==n?(r=a(n),t[8]=a,t[9]=n,t[10]=r):r=t[10];let i;return t[11]!==r?(i=y.jsx("span",{children:r}),t[11]=r,t[12]=i):i=t[12],i}case"list":{const n=o.count===1?"sectionsEditor.formConflict.oneItem":"sectionsEditor.formConflict.items",r=String(o.count);let i;t[13]!==a||t[14]!==n||t[15]!==r?(i=a(n,{count:r}),t[13]=a,t[14]=n,t[15]=r,t[16]=i):i=t[16];let c;t[17]!==i?(c=y.jsx("span",{className:"text-muted-foreground",children:i}),t[17]=i,t[18]=c):c=t[18];let d;t[19]!==o.count||t[20]!==o.items?(d=o.items.some(Boolean)&&y.jsxs("span",{className:"flex flex-col",children:[o.items.map(TTe),o.count>o.items.length&&y.jsx("span",{children:"…"})]}),t[19]=o.count,t[20]=o.items,t[21]=d):d=t[21];let u;return t[22]!==c||t[23]!==d?(u=y.jsxs("span",{className:"flex flex-col gap-1",children:[c,d]}),t[22]=c,t[23]=d,t[24]=u):u=t[24],u}case"fields":{let n;t[25]!==o.entries?(n=o.entries.map(STe),t[25]=o.entries,t[26]=n):n=t[26];let r;return t[27]!==n?(r=y.jsx("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-2 gap-y-0.5",children:n}),t[27]=n,t[28]=r):r=t[28],r}}}function STe(e){return y.jsxs("div",{className:"contents",children:[y.jsx("dt",{className:"text-muted-foreground",children:e.label}),y.jsx("dd",{className:"truncate",children:e.text})]},e.label)}function TTe(e,t){return y.jsx("span",{className:"truncate",children:`${t+1}. ${e||"…"}`},t)}let sm=[],md=[],sq=0;const dk=new Set;function Uv(){for(const e of dk)e()}function xTe(e){return dk.add(e),()=>{dk.delete(e)}}function OEe(){return md.length>0}function iq(e){sm=[...sm,e],Uv()}function lq(e){sm=sm.filter(t=>t.id!==e),Uv()}function NEe(e,t,o){return new Promise(a=>{const n=++sq;iq({id:n,kind:"values",plan:e,fields:t,about:o,answer:r=>{lq(n),a(r)}})})}function MEe(e){return new Promise(t=>{const o=++sq;iq({id:o,kind:"deleted",conflict:e,answer:a=>{lq(o),t(a)}})})}function kTe(){const e=ye.c(9),[t]=A.useState(CTe);let o,a;e[0]!==t?(o=()=>(md=[...md,t],Uv(),()=>{md=md.filter(c=>c!==t),Uv()}),a=[t],e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]),A.useEffect(o,a);let n;e[3]!==t?(n=()=>md[0]===t?sm[0]??null:null,e[3]=t,e[4]=n):n=e[4];const r=A.useSyncExternalStore(xTe,n,ETe);if(!r)return null;if(r.kind==="deleted"){let c;return e[5]!==r?(c=y.jsx(PTe,{question:r},r.id),e[5]=r,e[6]=c):c=e[6],c}let i;return e[7]!==r?(i=y.jsx(ATe,{question:r},r.id),e[7]=r,e[8]=i):i=e[8],i}function ETe(){return null}function CTe(){return Symbol("named-rule-conflict-host")}function PTe(e){const t=ye.c(36),{question:o}=e,a=$a(),{kind:n,label:r}=o.conflict,i=n==="theyDeleted";let c;t[0]!==r||t[1]!==a||t[2]!==i?(c=i?a("sectionsEditor.deletedConflict.theyDeletedTitle",{name:r}):a("sectionsEditor.deletedConflict.youDeletedTitle",{name:r}),t[0]=r,t[1]=a,t[2]=i,t[3]=c):c=t[3];let d;t[4]!==c?(d=y.jsx(kz,{children:c}),t[4]=c,t[5]=d):d=t[5];let u;t[6]!==a||t[7]!==i?(u=a(i?"sectionsEditor.deletedConflict.theyDeletedDescription":"sectionsEditor.deletedConflict.youDeletedDescription"),t[6]=a,t[7]=i,t[8]=u):u=t[8];let m;t[9]!==u?(m=y.jsx(Ez,{children:u}),t[9]=u,t[10]=m):m=t[10];let h;t[11]!==d||t[12]!==m?(h=y.jsxs(xz,{className:"text-left",children:[d,m]}),t[11]=d,t[12]=m,t[13]=h):h=t[13];let f;t[14]!==o?(f=()=>o.answer("theirs"),t[14]=o,t[15]=f):f=t[15];let v;t[16]!==a||t[17]!==i?(v=a(i?"sectionsEditor.deletedConflict.leaveDeleted":"sectionsEditor.deletedConflict.keepTheirs"),t[16]=a,t[17]=i,t[18]=v):v=t[18];let b;t[19]!==f||t[20]!==v?(b=y.jsx(yn,{variant:"outline",onClick:f,children:v}),t[19]=f,t[20]=v,t[21]=b):b=t[21];let w;t[22]!==o?(w=()=>o.answer("mine"),t[22]=o,t[23]=w):w=t[23];let x;t[24]!==a||t[25]!==i?(x=a(i?"sectionsEditor.deletedConflict.keepMine":"sectionsEditor.deletedConflict.deleteAnyway"),t[24]=a,t[25]=i,t[26]=x):x=t[26];let T;t[27]!==x||t[28]!==w?(T=y.jsx(yn,{autoFocus:!0,onClick:w,children:x}),t[27]=x,t[28]=w,t[29]=T):T=t[29];let k;t[30]!==T||t[31]!==b?(k=y.jsxs(tk,{children:[b,T]}),t[30]=T,t[31]=b,t[32]=k):k=t[32];let C;return t[33]!==k||t[34]!==h?(C=y.jsx(Sz,{open:!0,children:y.jsxs(Tz,{className:"sm:max-w-md","data-testid":"deleted-conflict-dialog",onEscapeKeyDown:_Te,children:[h,k]})}),t[33]=k,t[34]=h,t[35]=C):C=t[35],C}function _Te(e){return e.preventDefault()}function ATe(e){const t=ye.c(16),{question:o}=e;let a;t[0]!==o.plan?(a=()=>nq(o.plan),t[0]=o.plan,t[1]=a):a=t[1];const[n,r]=A.useState(a),i=o.about?.author??null;let c;t[2]!==i||t[3]!==o.plan.theirs?(c=i?.keyed?Cwe(o.plan.theirs,i.blockKey):RC(la(o.plan.theirs)),t[2]=i,t[3]=o.plan.theirs,t[4]=c):c=t[4];const d=Pwe(i?.draft??null,i?.blockKey??null,c),u=d??null,m=d===void 0,h=o.about?.block;let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=(w,x)=>r(T=>({...T,[w]:x})),t[5]=f):f=t[5];let v;t[6]!==n||t[7]!==o?(v=()=>o.answer(n),t[6]=n,t[7]=o,t[8]=v):v=t[8];let b;return t[9]!==n||t[10]!==o.fields||t[11]!==u||t[12]!==m||t[13]!==h||t[14]!==v?(b=y.jsx(nTe,{open:!0,fields:o.fields,author:u,authorPending:m,waitForAuthor:!0,block:h,choices:n,onChoose:f,onApply:v}),t[9]=n,t[10]=o.fields,t[11]=u,t[12]=m,t[13]=h,t[14]=v,t[15]=b):b=t[15],b}function RTe({children:e}){const t=$a();return tv.feature=t("settings.paywall.serverRefusedFeature"),tv.budget=t("settings.paywall.serverRefusedBudget"),LZ({itemCreatedSuccessfully:t("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:t("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:t("collections.mutations.itemDeletedSuccessfully"),createItemFailed:t("collections.mutations.createItemFailed"),updateItemFailed:t("collections.mutations.updateItemFailed"),deleteItemFailed:t("collections.mutations.deleteItemFailed")}),y.jsx(y.Fragment,{children:e})}function DTe(e){const t=ye.c(8),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx(IZ,{}),t[0]=a):a=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=y.jsx(Iye,{}),t[1]=n):n=t[1];let r;t[2]!==o?(r=y.jsx(Nye,{children:o}),t[2]=o,t[3]=r):r=t[3];let i,c;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx(Qye,{}),c=y.jsx(kTe,{}),t[4]=i,t[5]=c):(i=t[4],c=t[5]);let d;return t[6]!==r?(d=y.jsxs(t7,{client:Jl,children:[a,y.jsx(A.Suspense,{fallback:n,children:y.jsx(Fye,{children:y.jsx(FJ,{children:y.jsx(Sye,{children:y.jsx(Rye,{children:y.jsxs(RTe,{children:[r,i,c]})})})})})})]}),t[6]=r,t[7]=d):d=t[7],d}const OTe=[["mesh:","studio:"],["mesh-","studio-"]];function NTe(e){const t=Array.from({length:e.length},(o,a)=>e.key(a)).filter(o=>o!==null);for(const o of t){const a=OTe.find(([d])=>o.startsWith(d));if(!a)continue;const[n,r]=a,i=`${r}${o.slice(n.length)}`;if(e.getItem(i)!==null)continue;const c=e.getItem(o);c!==null&&e.setItem(i,c)}}const CM="from",PM="legacy-admin";function MTe(e){const t=new URLSearchParams(e);if(t.get(CM)===PM)return!0;const o=t.get("next");if(!o?.startsWith("/"))return!1;const a=o.indexOf("?");return a!==-1&&new URLSearchParams(o.slice(a)).get(CM)===PM}function ITe(e,t){if(MTe(e))try{(t??sessionStorage).setItem(Nr.legacyAdminArrival(),"1")}catch{}}function IEe(e){try{return(e??sessionStorage).getItem(Nr.legacyAdminArrival())==="1"}catch{return!1}}function LEe(e){try{(e??sessionStorage).removeItem(Nr.legacyAdminArrival())}catch{}}NTe(window.localStorage);ITe(window.location.search);const LTe=document.getElementById("root");AU.createRoot(LTe).render(y.jsx(A.StrictMode,{children:y.jsx(DTe,{children:y.jsx(TV,{router:Rb})})}));export{Ke as $,eke as A,yn as B,h3 as C,jye as D,L4 as E,t3 as F,g0e as G,$xe as H,Kye as I,rE as J,ca as K,Zl as L,Vxe as M,FTe as N,Sk as O,mn as P,HTe as Q,Bde as R,tke as S,mxe as T,vxe as U,Yi as V,uxe as W,Wie as X,Yie as Y,Kie as Z,Gie as _,fa as a,t0e as a$,Txe as a0,$s as a1,jTe as a2,z6 as a3,X0e as a4,Uxe as a5,Qi as a6,DE as a7,Wi as a8,l3 as a9,m3 as aA,i3 as aB,k0e as aC,x0e as aD,zTe as aE,Xn as aF,M0e as aG,as as aH,os as aI,Se as aJ,$ as aK,kz as aL,Ez as aM,xz as aN,pke as aO,tk as aP,Tz as aQ,Sz as aR,qye as aS,zye as aT,gC as aU,Kxe as aV,Gye as aW,e3 as aX,fxe as aY,Uwe as aZ,o3 as a_,p3 as aa,Mbe as ab,IJ as ac,Ake as ad,wt as ae,A0e as af,Ct as ag,O0e as ah,c3 as ai,YE as aj,u3 as ak,lue as al,$4 as am,Jk as an,gJ as ao,r3 as ap,n0e as aq,r0e as ar,a0e as as,E0e as at,Aee as au,OE as av,Nr as aw,o0e as ax,q4 as ay,Yde as az,$a as b,ike as b$,F0e as b0,$0e as b1,V0e as b2,Mke as b3,wk as b4,I0e as b5,Hl as b6,N0e as b7,g3 as b8,d3 as b9,uEe as bA,Pi as bB,iEe as bC,Qz as bD,oq as bE,je as bF,IEe as bG,LEe as bH,J0e as bI,oJ as bJ,yx as bK,Sx as bL,wx as bM,Ox as bN,Na as bO,Ex as bP,iJ as bQ,Dxe as bR,iK as bS,Rxe as bT,Mxe as bU,Axe as bV,Nxe as bW,Ixe as bX,Oxe as bY,cke as bZ,lke as b_,Xd as ba,Fe as bb,uke as bc,cE as bd,K0e as be,Uue as bf,H0e as bg,Zie as bh,W0e as bi,G0e as bj,Tke as bk,Y0e as bl,Z0e as bm,Lt as bn,Hz as bo,Kwe as bp,MC as bq,wn as br,OSe as bs,Lke as bt,XL as bu,SSe as bv,vke as bw,ESe as bx,e0e as by,Xxe as bz,ye as c,txe as c$,db as c0,Xl as c1,Oge as c2,gF as c3,vm as c4,HF as c5,zi as c6,$o as c7,_re as c8,Do as c9,nE as cA,ake as cB,v0e as cC,f0e as cD,cue as cE,D0e as cF,Aa as cG,tue as cH,aE as cI,F4 as cJ,$we as cK,kxe as cL,qTe as cM,J4 as cN,R0e as cO,R7 as cP,NL as cQ,BL as cR,LL as cS,zL as cT,ab as cU,$p as cV,UL as cW,$L as cX,HL as cY,axe as cZ,nxe as c_,mt as ca,Cr as cb,SE as cc,lm as cd,LF as ce,hF as cf,tfe as cg,Pr as ch,XF as ci,bF as cj,TE as ck,uE as cl,dE as cm,el as cn,Hp as co,Are as cp,Rre as cq,MF as cr,Vt as cs,Wt as ct,Dde as cu,eue as cv,_0e as cw,Nke as cx,Aue as cy,z0e as cz,Gv as d,uC as d$,oxe as d0,lK as d1,exe as d2,FL as d3,qL as d4,VL as d5,ixe as d6,jL as d7,Yl as d8,QQ as d9,es as dA,Ao as dB,lo as dC,wo as dD,RW as dE,IW as dF,_a as dG,Qe as dH,JTe as dI,Mk as dJ,aK as dK,wxe as dL,j0e as dM,q0e as dN,yxe as dO,a3 as dP,n3 as dQ,s3 as dR,mJ as dS,jZ as dT,Cxe as dU,qZ as dV,Exe as dW,Pxe as dX,cxe as dY,TB as dZ,Pm as d_,_xe as da,QL as db,sY as dc,XK as dd,IK as de,SK as df,XTe as dg,OL as dh,VY as di,JK as dj,HK as dk,AK as dl,DK as dm,MK as dn,aY as dp,lxe as dq,LY as dr,jY as ds,bY as dt,wY as du,yY as dv,sxe as dw,rxe as dx,oW as dy,WTe as dz,yf as e,lie as e$,mC as e0,hC as e1,fm as e2,RO as e3,qs as e4,Hae as e5,vI as e6,cI as e7,$Te as e8,UTe as e9,DSe as eA,RSe as eB,Ul as eC,fJ as eD,dxe as eE,pEe as eF,hEe as eG,fEe as eH,yke as eI,ASe as eJ,qxe as eK,fC as eL,vC as eM,Cm as eN,Ek as eO,ac as eP,ZTe as eQ,_z as eR,ywe as eS,NC as eT,dSe as eU,fke as eV,xwe as eW,ee as eX,uie as eY,lj as eZ,sie as e_,tge as ea,Xhe as eb,ege as ec,x5 as ed,i7 as ee,nr as ef,Yd as eg,ea as eh,qf as ei,tI as ej,o7 as ek,a7 as el,l7 as em,n7 as en,r7 as eo,na as ep,d7 as eq,xR as er,s7 as es,dke as et,ZL as eu,hue as ev,V4 as ew,uue as ex,Wxe as ey,xSe as ez,im as f,SM as f$,cie as f0,die as f1,pie as f2,mie as f3,hie as f4,gie as f5,fie as f6,vie as f7,yie as f8,wie as f9,Ywe as fA,wwe as fB,hke as fC,mke as fD,jke as fE,cSe as fF,lSe as fG,sE as fH,oSe as fI,rEe as fJ,nEe as fK,gEe as fL,PSe as fM,ik as fN,mEe as fO,la as fP,ok as fQ,vEe as fR,OEe as fS,MEe as fT,FSe as fU,NEe as fV,DEe as fW,jSe as fX,Ike as fY,gke as fZ,fbe as f_,iie as fa,rie as fb,bie as fc,sEe as fd,Lz as fe,Wl as ff,hSe as fg,Kz as fh,Fb as fi,Qwe as fj,zke as fk,Wz as fl,DC as fm,qke as fn,pSe as fo,Ga as fp,Zwe as fq,eEe as fr,wM as fs,oEe as ft,tEe as fu,jz as fv,Wwe as fw,lEe as fx,aEe as fy,Fke as fz,oke as g,fM as g$,NSe as g0,s6 as g1,l6 as g2,Gre as g3,Hre as g4,WF as g5,Ige as g6,G$ as g7,QM as g8,Oke as g9,zs as gA,Dr as gB,kF as gC,ore as gD,nre as gE,tre as gF,lre as gG,mre as gH,fre as gI,hre as gJ,qde as gK,jxe as gL,Fxe as gM,KTe as gN,YK as gO,ZK as gP,Gk as gQ,ob as gR,ML as gS,dY as gT,rY as gU,_K as gV,RK as gW,NK as gX,VK as gY,b0e as gZ,tZ as g_,G4 as ga,BTe as gb,Rke as gc,Dke as gd,yL as ge,Sxe as gf,aB as gg,H4 as gh,Gxe as gi,Jhe as gj,cb as gk,y0e as gl,w0e as gm,Gi as gn,uk as go,uJ as gp,tB as gq,mB as gr,xxe as gs,GO as gt,ure as gu,Rr as gv,Gp as gw,vE as gx,qd as gy,Hi as gz,Eae as h,YTe as h$,Fwe as h0,qwe as h1,Cke as h2,Eke as h3,pxe as h4,Lue as h5,Fue as h6,U0e as h7,Iue as h8,hxe as h9,Lxe as hA,K4 as hB,wue as hC,Eb as hD,S0e as hE,Qhe as hF,Q0e as hG,UZ as hH,rke as hI,_ke as hJ,Hxe as hK,en as hL,Ii as hM,wke as hN,Bke as hO,vue as hP,N0 as hQ,Yxe as hR,PL as hS,dEe as hT,GTe as hU,Jxe as hV,Nge as hW,Bxe as hX,OW as hY,Nk as hZ,vL as h_,L0e as ha,Z4 as hb,gue as hc,mue as hd,due as he,pue as hf,Rf as hg,B0e as hh,oZ as hi,gxe as hj,bke as hk,e7 as hl,t7 as hm,XY as hn,Pz as ho,are as hp,ZO as hq,rre as hr,Zxe as hs,sre as ht,Qxe as hu,bxe as hv,ple as hw,Vde as hx,kke as hy,xke as hz,Ki as i,LW as i0,Ik as i1,SL as i2,xL as i3,QTe as i4,yt as i5,sF as i6,zxe as i7,hB as i8,Jde as i9,Kke as iA,$ke as iB,Hke as iC,Uke as iD,AEe as iE,SEe as iF,_Ee as iG,qSe as iH,aq as iI,ISe as iJ,TEe as iK,nq as iL,EEe as iM,yEe as iN,kEe as iO,xEe as iP,Wke as iQ,USe as iR,PEe as iS,mSe as iT,Gde as ia,P0e as ib,C0e as ic,U4 as id,T0e as ie,Vke as ig,Jke as ih,cEe as ii,Ske as ij,Cwe as ik,CEe as il,bEe as im,REe as io,IC as ip,gSe as iq,nTe as ir,fSe as is,wEe as it,Xke as iu,Zke as iv,bSe as iw,Gke as ix,Qke as iy,Yke as iz,y as j,Mde as k,Tk as l,Je as m,Cd as n,Mf as o,Pke as p,Zd as q,A as r,nke as s,Fd as t,yk as u,$ye as v,Vye as w,Hye as x,ske as y,kSe as z};
|
|
269
|
+
`).trim()}const WSe={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'"};function KSe(e){if(typeof DOMParser<"u")return new DOMParser().parseFromString(e,"text/html").body.textContent??"";let t=e;for(let o="";o!==t;)o=t,t=t.replace(/<[^<>]*>/g,"");return t.replace(/<|>/g,"").replace(/&(nbsp|amp|lt|gt|quot|#39);/g,o=>WSe[o]??o)}function If(e){const t=e.replace(/\s+/g," ").trim();return t.length>TM?`${t.slice(0,TM-1)}…`:t}function YSe(e){if(e.startsWith("data:"))return"image";const t=e.split(/[?#]/)[0]??e;return decodeURIComponent(t.split("/").pop()||e)}function qv(e,t){if(e==null||e==="")return{kind:"empty"};if(typeof e=="string")return rq(e,t)?{kind:"image",src:e}:{kind:"text",text:ck(e,t)};if(typeof e=="number"||typeof e=="bigint")return{kind:"text",text:String(e)};if(typeof e=="boolean")return{kind:"yesNo",value:e};if(Array.isArray(e)){const o=t?.items??null;return{kind:"list",count:e.length,items:e.slice(0,GSe).map(a=>ZSe(a,o)??"")}}if(typeof e=="object"){const o=e;if("value"in o&&Object.keys(o).length<=2)return qv(o.value,t?.properties?.value??t);const a=Object.entries(o).filter(([n,r])=>!n.startsWith("__")&&r!==void 0).flatMap(([n,r])=>{const i=t?.properties?.[n]??null,c=qv(r,i);if(c.kind==="empty")return[];const d=c.kind==="text"?If(c.text):c.kind==="image"?YSe(c.src):c.kind==="yesNo"?c.value?"✓":"✗":c.kind==="list"?`${c.count}`:"…";return[{label:i?.title?.trim()||n,text:d}]}).slice(0,4);return a.length>0?{kind:"fields",entries:a}:{kind:"empty"}}return{kind:"text",text:String(e)}}function ZSe(e,t){if(typeof e=="string")return If(ck(e,t));if(!e||typeof e!="object"||Array.isArray(e))return null;const o=e,a=t?.titleBy,n=a?o[a]:void 0;if(typeof n=="string"&&n.trim())return If(n);for(const[r,i]of Object.entries(o))if(!(r.startsWith("__")||typeof i!="string"||!i.trim())&&!rq(i,t?.properties?.[r]??null))return If(ck(i,null));return null}const xM=1500;function QSe(e,t){const o=e.split(/(\s+)/).filter(m=>m!==""),a=t.split(/(\s+)/).filter(m=>m!=="");if(o.length>xM||a.length>xM)return{mine:[{text:e,kind:"changed"}],theirs:[{text:t,kind:"changed"}]};const n=Array.from({length:o.length+1},()=>new Array(a.length+1).fill(0));for(let m=o.length-1;m>=0;m--)for(let h=a.length-1;h>=0;h--){const f=n[m];f[h]=o[m]===a[h]?n[m+1][h+1]+1:Math.max(n[m+1][h],f[h+1])}const r=[],i=[],c=(m,h,f)=>{const v=m.at(-1);v&&(v.kind===f||f==="same"&&!h.trim())?v.text+=h:m.push({text:h,kind:f})};let d=0,u=0;for(;d<o.length&&u<a.length;)o[d]===a[u]?(c(r,o[d],"same"),c(i,a[u],"same"),d++,u++):n[d+1][u]>=n[d][u+1]?(c(r,o[d],"changed"),d++):(c(i,a[u],"changed"),u++);for(;d<o.length;d++)c(r,o[d],"changed");for(;u<a.length;u++)c(i,a[u],"changed");return{mine:r,theirs:i}}const JSe=700,XSe=new Set(["text","search","url","tel",""]);function eTe(e){if(!e)return!1;if(e.tagName==="TEXTAREA")return!e.readOnly;if(e.tagName!=="INPUT")return!1;const t=e;return XSe.has(t.type.toLowerCase())&&!t.readOnly&&!t.disabled}function tTe(e,t){const o=e.value,a=e.selectionStart??o.length,n=e.selectionEnd??a;let r,i;if(t==="Backspace"){const d=a===n?Math.max(0,a-1):a;r=o.slice(0,d)+o.slice(n),i=d}else r=o.slice(0,a)+t+o.slice(n),i=a+t.length;const c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value")?.set;c?c.call(e,r):e.value=r,e.setSelectionRange?.(i,i),e.dispatchEvent(new Event("input",{bubbles:!0}))}const oTe={now:()=>globalThis.performance.now(),typedAt:e=>e.timeStamp};function aTe(e,t){const o=ye.c(12),a=oTe,n=A.useRef(null),r=A.useRef(null);let i;o[0]!==a?(i=()=>{const h=globalThis.document;if(r.current||!h)return;const f=b=>{const w=n.current;if(!w||b.key==="Shift"||b.key==="CapsLock")return;const x=a.typedAt(b);if(!((b.key.length===1||b.key==="Backspace")&&!b.ctrlKey&&!b.metaKey&&!b.altKey&&!b.isComposing)||x-w.last>JSe||!w.field.isConnected||b.target===w.field){n.current=null;return}b.preventDefault(),b.stopPropagation(),w.last=Math.max(w.last,x),tTe(w.field,b.key)},v=()=>{n.current=null};h.addEventListener("keydown",f,!0),h.addEventListener("pointerdown",v,!0),r.current=()=>{h.removeEventListener("keydown",f,!0),h.removeEventListener("pointerdown",v,!0),r.current=null,n.current=null}},o[0]=a,o[1]=i):i=o[1];const c=i;let d;o[2]!==c||o[3]!==e?(d=()=>{if(e)return c(),()=>r.current?.()},o[2]=c,o[3]=e,o[4]=d):d=o[4];let u;o[5]!==a||o[6]!==e?(u=[e,a],o[5]=a,o[6]=e,o[7]=u):u=o[7],A.useEffect(d,u);let m;return o[8]!==c||o[9]!==a||o[10]!==e?(m=()=>{const h=globalThis.document?.activeElement??null;if(!e||!eTe(h)){n.current=null;return}c(),n.current={field:h,last:a.now()}},o[8]=c,o[9]=a,o[10]=e,o[11]=m):m=o[11],m}function nTe(e){const t=ye.c(20);let o,a,n,r,i;t[0]!==e?({open:o,authorPending:n,waitForAuthor:r,keepTyping:i,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=i):(o=t[1],a=t[2],n=t[3],r=t[4],i=t[5]);const c=n===void 0?!1:n,d=r===void 0?!1:r,u=i===void 0?!1:i,{data:m}=fa.useSession(),h=d&&c;let f;t[6]!==c||t[7]!==d?(f=()=>c&&!d,t[6]=c,t[7]=d,t[8]=f):f=t[8];const[v]=A.useState(f),b=aTe(u&&o&&!h),w=o&&!h;let x;t[9]===Symbol.for("react.memo_cache_sentinel")?(x=Je("max-h-[85vh] grid-rows-[auto_minmax(0,1fr)_auto] sm:max-w-lg"),t[9]=x):x=t[9];const T=a.anonymousTitle??v,k=m?.user??null;let C;t[10]!==a||t[11]!==T||t[12]!==k?(C=y.jsx(uTe,{...a,anonymousTitle:T,viewer:k,heading:rTe}),t[10]=a,t[11]=T,t[12]=k,t[13]=C):C=t[13];let E;t[14]!==b||t[15]!==C?(E=y.jsx(Tz,{className:x,"data-testid":"form-conflict-dialog",onOpenAutoFocus:b,onEscapeKeyDown:sTe,children:C}),t[14]=b,t[15]=C,t[16]=E):E=t[16];let _;return t[17]!==E||t[18]!==w?(_=y.jsx(Sz,{open:w,children:E}),t[17]=E,t[18]=w,t[19]=_):_=t[19],_}function rTe(e,t){return y.jsxs(xz,{className:"text-left",children:[y.jsx(kz,{children:e}),y.jsx(Ez,{children:t})]})}function sTe(e){return e.preventDefault()}const iTe={},lTe=(e,t)=>y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("h2",{className:"text-lg font-semibold",children:e}),y.jsx("p",{className:"text-sm text-muted-foreground",children:t})]});function cTe(e,t,o=0,a={},n=null,r,{anonymous:i=!1,asLabeled:c=!1}={}){const d=t[Math.min(o,t.length-1)],u=n?.you?void 0:n?.shortName??n?.name?.split(/\s+/)[0],m={field:d?r||c?d.label:dTe(d.label):"",label:d?.label??"",name:u??"",block:r??""},h=i&&!n?.you&&!u,f=(w,x,T,k)=>e(h?k:n?.you?T:u?x:w,m),v=d?.phrase,b=(w,x,T,k)=>e(h?k:n?.you?T:u?x:w,{thing:v??"",Thing:v?v.charAt(0).toLocaleUpperCase()+v.slice(1):"",label:d?.label??"",name:u??""});return v?t.length<=1?{title:b("sectionsEditor.formConflict.titlePhraseOne","sectionsEditor.formConflict.titlePhraseOneNamed","sectionsEditor.formConflict.titlePhraseOneYou","sectionsEditor.formConflict.titlePhraseOneAnonymous"),description:e("sectionsEditor.formConflict.descriptionOne")}:{title:b("sectionsEditor.formConflict.titlePhraseStep","sectionsEditor.formConflict.titlePhraseStepNamed","sectionsEditor.formConflict.titlePhraseStepYou","sectionsEditor.formConflict.titlePhraseStepAnonymous"),description:o>=t.length-1?y.jsx(kM,{t:e,fields:t,choices:a,name:u}):e("sectionsEditor.formConflict.descriptionStep")}:t.length<=1?{title:r?f("sectionsEditor.formConflict.titleOneIn","sectionsEditor.formConflict.titleOneInNamed","sectionsEditor.formConflict.titleOneInYou","sectionsEditor.formConflict.titleOneInAnonymous"):f("sectionsEditor.formConflict.titleOne","sectionsEditor.formConflict.titleOneNamed","sectionsEditor.formConflict.titleOneYou","sectionsEditor.formConflict.titleOneAnonymous"),description:e("sectionsEditor.formConflict.descriptionOne")}:{title:r?f("sectionsEditor.formConflict.titleStepIn","sectionsEditor.formConflict.titleStepInNamed","sectionsEditor.formConflict.titleStepInYou","sectionsEditor.formConflict.titleStepInAnonymous"):f("sectionsEditor.formConflict.titleStep","sectionsEditor.formConflict.titleStepNamed","sectionsEditor.formConflict.titleStepYou","sectionsEditor.formConflict.titleStepAnonymous"),description:o>=t.length-1?y.jsx(kM,{t:e,fields:t,choices:a,name:u}):e("sectionsEditor.formConflict.descriptionStep")}}function kM(e){const t=ye.c(11),{t:o,fields:a,choices:n,name:r}=e;let i;if(t[0]!==n||t[1]!==a||t[2]!==r||t[3]!==o){let d;t[5]!==n||t[6]!==r||t[7]!==o?(d=(u,m)=>y.jsxs(A.Fragment,{children:[m>0&&" · ",`${u.label}: `,y.jsx("span",{className:"font-medium text-foreground",children:o((n[u.pointer]??"mine")==="mine"?"sectionsEditor.formConflict.summaryYours":r?"sectionsEditor.formConflict.summaryTheirsNamed":"sectionsEditor.formConflict.summaryTheirs",{name:r??""})})]},u.pointer),t[5]=n,t[6]=r,t[7]=o,t[8]=d):d=t[8],i=a.map(d),t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=i}else i=t[4];let c;return t[9]!==i?(c=y.jsx("span",{"data-testid":"form-conflict-summary",children:i}),t[9]=i,t[10]=c):c=t[10],c}function dTe(e){return/^[A-Z][a-z]/.test(e)&&!e.includes("›")?e.charAt(0).toLowerCase()+e.slice(1):e}function uTe(e){const t=ye.c(68),o=$a(),{fields:a,choices:n,changedAgain:r,fresh:i,heading:c}=e,d=r===void 0?!1:r,u=i===void 0?iTe:i,m=c===void 0?lTe:c,h=a.length>1,[f,v]=A.useState(0),[b,w]=A.useState(pTe);let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x={},t[0]=x):x=t[0];const[T,k]=A.useState(x),C=Math.max(0,Math.min(f,a.length-1)),E=a[C],_=C===a.length-1;let D;t[1]!==C||t[2]!==a||t[3]!==u?(D=j=>{const X=a[C],de=a[j];!X||!de||j===C||(w(ue=>new Set(ue).add(X.pointer)),k(ue=>({...ue,[X.pointer]:u[X.pointer]??0,[de.pointer]:u[de.pointer]??0})),v(j))},t[1]=C,t[2]=a,t[3]=u,t[4]=D):D=t[4];const R=D;let O;t[5]!==C||t[6]!==R?(O=j=>{if(!j)return;const X=de=>{const ue={ArrowLeft:-1,ArrowRight:1}[de.key];!ue||de.defaultPrevented||de.altKey||de.ctrlKey||de.metaKey||de.shiftKey||$we(de.target)||(de.preventDefault(),R(C+ue))};return j.ownerDocument.addEventListener("keydown",X),()=>j.ownerDocument.removeEventListener("keydown",X)},t[5]=C,t[6]=R,t[7]=O):O=t[7];const L=O;if(!E)return null;let U,B,z,F,W;if(t[8]!==b||t[9]!==C||t[10]!==n||t[11]!==a||t[12]!==u||t[13]!==R||t[14]!==m||t[15]!==L||t[16]!==h||t[17]!==e||t[18]!==T||t[19]!==o){const{title:j,description:X}=cTe(o,a,C,n,e.author??null,e.block,{anonymous:e.anonymousTitle,asLabeled:e.fieldsAsLabeled});let de;t[25]!==e?(de=ue=>{ue.detail>1||e.onApply()},t[25]=e,t[26]=de):de=t[26],U=de,B=h?L:void 0,z="flex min-w-0 flex-col gap-3",t[27]!==b||t[28]!==C||t[29]!==a||t[30]!==u||t[31]!==R||t[32]!==h||t[33]!==T||t[34]!==o?(F=h&&y.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y.jsx("div",{role:"group","aria-label":o("sectionsEditor.formConflict.steps"),className:"-m-1 flex flex-wrap items-center",children:a.map((ue,Ee)=>{const qe=Ee!==C&&(u[ue.pointer]??0)>(T[ue.pointer]??0);return y.jsx("button",{type:"button","aria-label":qe?o("sectionsEditor.formConflict.stepChangedAgain",{label:ue.label}):ue.label,"aria-current":Ee===C?"step":void 0,"data-answered":Ee!==C&&b.has(ue.pointer)?"":void 0,"data-changed-again":qe?"":void 0,onClick:()=>R(Ee),className:"group cursor-pointer rounded-full p-1 focus-ring",children:y.jsx("span",{className:Je("block h-2 w-2 rounded-full bg-border transition-[width,background-color,box-shadow] motion-reduce:transition-none","group-hover:bg-muted-foreground/60","group-data-[answered]:bg-foreground/45","group-aria-[current=step]:w-5 group-aria-[current=step]:bg-foreground","group-data-[changed-again]:ring-2 group-data-[changed-again]:ring-warning group-data-[changed-again]:ring-offset-1 group-data-[changed-again]:ring-offset-background")})},ue.pointer)})}),y.jsx("span",{className:"shrink-0 text-xs tabular-nums text-muted-foreground",children:o("sectionsEditor.formConflict.stepCount",{step:String(C+1),count:String(a.length)})})]}),t[27]=b,t[28]=C,t[29]=a,t[30]=u,t[31]=R,t[32]=h,t[33]=T,t[34]=o,t[35]=F):F=t[35],W=m(j,X),t[8]=b,t[9]=C,t[10]=n,t[11]=a,t[12]=u,t[13]=R,t[14]=m,t[15]=L,t[16]=h,t[17]=e,t[18]=T,t[19]=o,t[20]=U,t[21]=B,t[22]=z,t[23]=F,t[24]=W}else U=t[20],B=t[21],z=t[22],F=t[23],W=t[24];let oe;t[36]!==B||t[37]!==z||t[38]!==F||t[39]!==W?(oe=y.jsxs("div",{ref:B,className:z,children:[F,W]}),t[36]=B,t[37]=z,t[38]=F,t[39]=W,t[40]=oe):oe=t[40];const H=!d&&"sr-only";let K;t[41]!==H?(K=Je("text-sm text-muted-foreground",H),t[41]=H,t[42]=K):K=t[42];let J;t[43]!==d||t[44]!==h||t[45]!==o?(J=d?o(h?"sectionsEditor.formConflict.changedAgainSteps":"sectionsEditor.formConflict.changedAgain"):"",t[43]=d,t[44]=h,t[45]=o,t[46]=J):J=t[46];let se;t[47]!==K||t[48]!==J?(se=y.jsx("p",{role:"status",className:K,children:J}),t[47]=K,t[48]=J,t[49]=se):se=t[49];const Q=h?"vertical":"all";let M;t[50]!==E||t[51]!==e||t[52]!==Q?(M=y.jsx(fTe,{field:E,...e,arrows:Q}),t[50]=E,t[51]=e,t[52]=Q,t[53]=M):M=t[53];let G;t[54]!==se||t[55]!==M?(G=y.jsxs("div",{className:"-mx-2 flex min-h-0 flex-col gap-3 overflow-y-auto px-2 py-1",children:[se,M]}),t[54]=se,t[55]=M,t[56]=G):G=t[56];let V;t[57]!==U||t[58]!==C||t[59]!==R||t[60]!==_||t[61]!==h||t[62]!==o?(V=h?y.jsxs(tk,{className:"flex-row flex-wrap items-center justify-between gap-2 sm:justify-between",children:[y.jsx(yn,{type:"button",variant:"outline","aria-disabled":C===0,onClick:()=>R(C-1),className:"aria-disabled:cursor-default aria-disabled:opacity-45",children:o("sectionsEditor.formConflict.back")}),y.jsx(yn,{type:"button","data-testid":"form-conflict-primary",onClick:_?U:()=>R(C+1),children:o(_?"sectionsEditor.formConflict.ok":"sectionsEditor.formConflict.next")})]}):y.jsx(tk,{className:"items-center gap-2",children:y.jsx(yn,{type:"button","data-testid":"form-conflict-primary",onClick:U,children:o("sectionsEditor.formConflict.ok")})}),t[57]=U,t[58]=C,t[59]=R,t[60]=_,t[61]=h,t[62]=o,t[63]=V):V=t[63];let I;return t[64]!==oe||t[65]!==G||t[66]!==V?(I=y.jsxs(y.Fragment,{children:[oe,G,V]}),t[64]=oe,t[65]=G,t[66]=V,t[67]=I):I=t[67],I}function pTe(){return new Set}function mTe(e){const t=qv(e.mine,e.schema),o=qv(e.theirs,e.schema),a=t.kind==="text"&&o.kind==="text"?QSe(t.text,o.text):null;return n=>a?y.jsx(bTe,{parts:a[n]}):y.jsx(wTe,{preview:n==="mine"?t:o})}const hTe={all:{ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1},vertical:{ArrowDown:1,ArrowUp:-1}};function gTe(e,t){const o=hTe[t][e.key];if(!o)return;const a=[...e.currentTarget.querySelectorAll('[role="radio"]')],n=a.indexOf(document.activeElement);if(n<0)return;e.preventDefault();const r=a[(n+o+a.length)%a.length];r?.focus(),r?.click()}function fTe(e){const t=ye.c(67),{field:o,choices:a,viewer:n,author:r,anonymousTitle:i,onChoose:c,arrows:d}=e,u=r===void 0?null:r,m=i===void 0?!1:i,h=$a(),[f]=rE(),{language:v}=f;let b,w,x,T,k,C,E,_,D,R,O,L,U,B;if(t[0]!==m||t[1]!==d||t[2]!==u||t[3]!==a||t[4]!==o||t[5]!==v||t[6]!==c||t[7]!==h||t[8]!==n?.image||t[9]!==n?.name){const W=mTe(o),oe=a[o.pointer]??"mine",H=n?.image??void 0;let K;t[24]!==h||t[25]!==n?.name?(K=n?.name?.trim()||h("sectionsEditor.formConflict.you"),t[24]=h,t[25]=n?.name,t[26]=K):K=t[26];let J;t[27]!==H||t[28]!==K?(J=y.jsx(Mf,{url:H,fallback:K,shape:"circle",size:"sm",className:"text-xs"}),t[27]=H,t[28]=K,t[29]=J):J=t[29];const se=J;let Q;t[30]!==u||t[31]!==se?(Q=u?.you?se:u?.name?y.jsx(Mf,{url:u.avatarUrl,fallback:u.name,shape:"circle",size:"sm",className:"text-xs"}):y.jsx(Mf,{url:"icon://user",fallback:"",muted:!0,shape:"circle",size:"sm"}),t[30]=u,t[31]=se,t[32]=Q):Q=t[32];const M=Q,G=u?new Date(u.at):null,V=m&&!u;T="radiogroup",k=o.label,C="flex flex-col gap-2",t[33]!==d?(E=de=>gTe(de,d),t[33]=d,t[34]=E):E=t[34];let I;t[35]!==o.pointer||t[36]!==c?(I=()=>c(o.pointer,"mine"),t[35]=o.pointer,t[36]=c,t[37]=I):I=t[37];let j;t[38]!==h?(j=h("sectionsEditor.formConflict.you"),t[38]=h,t[39]=j):j=t[39];let X;t[40]!==h?(X=h("sectionsEditor.formConflict.yourVersionNotSaved"),t[40]=h,t[41]=X):X=t[41],_=y.jsx(EM,{side:"mine",checked:oe==="mine",onChoose:I,avatar:se,who:j,meta:X,children:W("mine")}),b=EM,D="theirs",R=oe==="theirs",t[42]!==o.pointer||t[43]!==c?(O=()=>c(o.pointer,"theirs"),t[42]=o.pointer,t[43]=c,t[44]=O):O=t[44],L=M,t[45]!==u?.name||t[46]!==u?.you||t[47]!==V||t[48]!==h?(U=V?h("sectionsEditor.formConflict.theirVersion"):u?.you?h("sectionsEditor.formConflict.youElsewhere"):u?.name||h("sectionsEditor.formConflict.someoneElse"),t[45]=u?.name,t[46]=u?.you,t[47]=V,t[48]=h,t[49]=U):U=t[49],B=V?h("sectionsEditor.formConflict.alreadySaved"):G?h("sectionsEditor.formConflict.savedAt",{when:Uwe(G,v)}):h("sectionsEditor.formConflict.theirVersionSaved"),w=G?vTe(G,v):void 0,x=W("theirs"),t[0]=m,t[1]=d,t[2]=u,t[3]=a,t[4]=o,t[5]=v,t[6]=c,t[7]=h,t[8]=n?.image,t[9]=n?.name,t[10]=b,t[11]=w,t[12]=x,t[13]=T,t[14]=k,t[15]=C,t[16]=E,t[17]=_,t[18]=D,t[19]=R,t[20]=O,t[21]=L,t[22]=U,t[23]=B}else b=t[10],w=t[11],x=t[12],T=t[13],k=t[14],C=t[15],E=t[16],_=t[17],D=t[18],R=t[19],O=t[20],L=t[21],U=t[22],B=t[23];let z;t[50]!==b||t[51]!==w||t[52]!==x||t[53]!==D||t[54]!==R||t[55]!==O||t[56]!==L||t[57]!==U||t[58]!==B?(z=y.jsx(b,{side:D,checked:R,onChoose:O,avatar:L,who:U,meta:B,metaTitle:w,children:x}),t[50]=b,t[51]=w,t[52]=x,t[53]=D,t[54]=R,t[55]=O,t[56]=L,t[57]=U,t[58]=B,t[59]=z):z=t[59];let F;return t[60]!==T||t[61]!==k||t[62]!==C||t[63]!==E||t[64]!==_||t[65]!==z?(F=y.jsxs("div",{role:T,"aria-label":k,className:C,onKeyDown:E,children:[_,z]}),t[60]=T,t[61]=k,t[62]=C,t[63]=E,t[64]=_,t[65]=z,t[66]=F):F=t[66],F}const vTe=(e,t)=>e.toLocaleString(t,{dateStyle:"medium",timeStyle:"short"});function EM(e){const t=ye.c(28),{side:o,checked:a,onChoose:n,avatar:r,who:i,meta:c,metaTitle:d,children:u}=e,m=A.useId(),h=`${m}-who`,f=`${m}-meta ${m}-value`,v=a?0:-1,b=a?"border-primary bg-primary/5 ring-1 ring-primary":"hover:bg-accent";let w;t[0]!==b?(w=Je("grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)] items-start gap-3 rounded-xl border bg-background p-3 text-left transition-[border-color,box-shadow,background-color] focus-ring",b),t[0]=b,t[1]=w):w=t[1];const x=`${m}-who`;let T;t[2]!==x||t[3]!==i?(T=y.jsx("span",{id:x,className:"text-sm font-medium text-foreground",children:i}),t[2]=x,t[3]=i,t[4]=T):T=t[4];const k=`${m}-meta`;let C;t[5]!==c||t[6]!==d||t[7]!==k?(C=y.jsx("span",{id:k,title:d,children:c}),t[5]=c,t[6]=d,t[7]=k,t[8]=C):C=t[8];let E;t[9]!==T||t[10]!==C?(E=y.jsxs("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-xs text-muted-foreground",children:[T,C]}),t[9]=T,t[10]=C,t[11]=E):E=t[11];const _=`${m}-value`,D=`conflict-${o}`;let R;t[12]!==u||t[13]!==_||t[14]!==D?(R=y.jsx("span",{id:_,"data-testid":D,className:"min-w-0 text-sm",children:u}),t[12]=u,t[13]=_,t[14]=D,t[15]=R):R=t[15];let O;t[16]!==E||t[17]!==R?(O=y.jsxs("span",{className:"flex min-w-0 flex-col gap-1",children:[E,R]}),t[16]=E,t[17]=R,t[18]=O):O=t[18];let L;return t[19]!==r||t[20]!==a||t[21]!==n||t[22]!==h||t[23]!==O||t[24]!==f||t[25]!==v||t[26]!==w?(L=y.jsxs("button",{type:"button",role:"radio","aria-checked":a,"aria-labelledby":h,"aria-describedby":f,tabIndex:v,onClick:n,className:w,children:[r,O]}),t[19]=r,t[20]=a,t[21]=n,t[22]=h,t[23]=O,t[24]=f,t[25]=v,t[26]=w,t[27]=L):L=t[27],L}function bTe(e){const t=ye.c(4),{parts:o}=e;let a;t[0]!==o?(a=o.map(yTe),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==a?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:a}),t[2]=a,t[3]=n):n=t[3],n}function yTe(e,t){return e.kind==="changed"?y.jsx("mark",{className:"rounded-sm bg-warning/20 px-0.5 text-foreground",children:e.text},t):y.jsx("span",{children:e.text},t)}function wTe(e){const t=ye.c(29),{preview:o}=e,a=$a();switch(o.kind){case"empty":{let n;t[0]!==a?(n=a("sectionsEditor.formConflict.empty"),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==n?(r=y.jsx("span",{className:"italic text-muted-foreground",children:n}),t[2]=n,t[3]=r):r=t[3],r}case"text":{let n;return t[4]!==o.text?(n=y.jsx("span",{className:"whitespace-pre-wrap break-words",children:o.text}),t[4]=o.text,t[5]=n):n=t[5],n}case"image":{let n;return t[6]!==o.src?(n=y.jsx("img",{src:o.src,alt:"",className:"max-h-24 max-w-full rounded border object-contain"}),t[6]=o.src,t[7]=n):n=t[7],n}case"yesNo":{const n=o.value?"sectionsEditor.formConflict.yes":"sectionsEditor.formConflict.no";let r;t[8]!==a||t[9]!==n?(r=a(n),t[8]=a,t[9]=n,t[10]=r):r=t[10];let i;return t[11]!==r?(i=y.jsx("span",{children:r}),t[11]=r,t[12]=i):i=t[12],i}case"list":{const n=o.count===1?"sectionsEditor.formConflict.oneItem":"sectionsEditor.formConflict.items",r=String(o.count);let i;t[13]!==a||t[14]!==n||t[15]!==r?(i=a(n,{count:r}),t[13]=a,t[14]=n,t[15]=r,t[16]=i):i=t[16];let c;t[17]!==i?(c=y.jsx("span",{className:"text-muted-foreground",children:i}),t[17]=i,t[18]=c):c=t[18];let d;t[19]!==o.count||t[20]!==o.items?(d=o.items.some(Boolean)&&y.jsxs("span",{className:"flex flex-col",children:[o.items.map(TTe),o.count>o.items.length&&y.jsx("span",{children:"…"})]}),t[19]=o.count,t[20]=o.items,t[21]=d):d=t[21];let u;return t[22]!==c||t[23]!==d?(u=y.jsxs("span",{className:"flex flex-col gap-1",children:[c,d]}),t[22]=c,t[23]=d,t[24]=u):u=t[24],u}case"fields":{let n;t[25]!==o.entries?(n=o.entries.map(STe),t[25]=o.entries,t[26]=n):n=t[26];let r;return t[27]!==n?(r=y.jsx("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-2 gap-y-0.5",children:n}),t[27]=n,t[28]=r):r=t[28],r}}}function STe(e){return y.jsxs("div",{className:"contents",children:[y.jsx("dt",{className:"text-muted-foreground",children:e.label}),y.jsx("dd",{className:"truncate",children:e.text})]},e.label)}function TTe(e,t){return y.jsx("span",{className:"truncate",children:`${t+1}. ${e||"…"}`},t)}let sm=[],md=[],sq=0;const dk=new Set;function Uv(){for(const e of dk)e()}function xTe(e){return dk.add(e),()=>{dk.delete(e)}}function OEe(){return md.length>0}function iq(e){sm=[...sm,e],Uv()}function lq(e){sm=sm.filter(t=>t.id!==e),Uv()}function NEe(e,t,o){return new Promise(a=>{const n=++sq;iq({id:n,kind:"values",plan:e,fields:t,about:o,answer:r=>{lq(n),a(r)}})})}function MEe(e){return new Promise(t=>{const o=++sq;iq({id:o,kind:"deleted",conflict:e,answer:a=>{lq(o),t(a)}})})}function kTe(){const e=ye.c(9),[t]=A.useState(CTe);let o,a;e[0]!==t?(o=()=>(md=[...md,t],Uv(),()=>{md=md.filter(c=>c!==t),Uv()}),a=[t],e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]),A.useEffect(o,a);let n;e[3]!==t?(n=()=>md[0]===t?sm[0]??null:null,e[3]=t,e[4]=n):n=e[4];const r=A.useSyncExternalStore(xTe,n,ETe);if(!r)return null;if(r.kind==="deleted"){let c;return e[5]!==r?(c=y.jsx(PTe,{question:r},r.id),e[5]=r,e[6]=c):c=e[6],c}let i;return e[7]!==r?(i=y.jsx(ATe,{question:r},r.id),e[7]=r,e[8]=i):i=e[8],i}function ETe(){return null}function CTe(){return Symbol("named-rule-conflict-host")}function PTe(e){const t=ye.c(36),{question:o}=e,a=$a(),{kind:n,label:r}=o.conflict,i=n==="theyDeleted";let c;t[0]!==r||t[1]!==a||t[2]!==i?(c=i?a("sectionsEditor.deletedConflict.theyDeletedTitle",{name:r}):a("sectionsEditor.deletedConflict.youDeletedTitle",{name:r}),t[0]=r,t[1]=a,t[2]=i,t[3]=c):c=t[3];let d;t[4]!==c?(d=y.jsx(kz,{children:c}),t[4]=c,t[5]=d):d=t[5];let u;t[6]!==a||t[7]!==i?(u=a(i?"sectionsEditor.deletedConflict.theyDeletedDescription":"sectionsEditor.deletedConflict.youDeletedDescription"),t[6]=a,t[7]=i,t[8]=u):u=t[8];let m;t[9]!==u?(m=y.jsx(Ez,{children:u}),t[9]=u,t[10]=m):m=t[10];let h;t[11]!==d||t[12]!==m?(h=y.jsxs(xz,{className:"text-left",children:[d,m]}),t[11]=d,t[12]=m,t[13]=h):h=t[13];let f;t[14]!==o?(f=()=>o.answer("theirs"),t[14]=o,t[15]=f):f=t[15];let v;t[16]!==a||t[17]!==i?(v=a(i?"sectionsEditor.deletedConflict.leaveDeleted":"sectionsEditor.deletedConflict.keepTheirs"),t[16]=a,t[17]=i,t[18]=v):v=t[18];let b;t[19]!==f||t[20]!==v?(b=y.jsx(yn,{variant:"outline",onClick:f,children:v}),t[19]=f,t[20]=v,t[21]=b):b=t[21];let w;t[22]!==o?(w=()=>o.answer("mine"),t[22]=o,t[23]=w):w=t[23];let x;t[24]!==a||t[25]!==i?(x=a(i?"sectionsEditor.deletedConflict.keepMine":"sectionsEditor.deletedConflict.deleteAnyway"),t[24]=a,t[25]=i,t[26]=x):x=t[26];let T;t[27]!==x||t[28]!==w?(T=y.jsx(yn,{autoFocus:!0,onClick:w,children:x}),t[27]=x,t[28]=w,t[29]=T):T=t[29];let k;t[30]!==T||t[31]!==b?(k=y.jsxs(tk,{children:[b,T]}),t[30]=T,t[31]=b,t[32]=k):k=t[32];let C;return t[33]!==k||t[34]!==h?(C=y.jsx(Sz,{open:!0,children:y.jsxs(Tz,{className:"sm:max-w-md","data-testid":"deleted-conflict-dialog",onEscapeKeyDown:_Te,children:[h,k]})}),t[33]=k,t[34]=h,t[35]=C):C=t[35],C}function _Te(e){return e.preventDefault()}function ATe(e){const t=ye.c(16),{question:o}=e;let a;t[0]!==o.plan?(a=()=>nq(o.plan),t[0]=o.plan,t[1]=a):a=t[1];const[n,r]=A.useState(a),i=o.about?.author??null;let c;t[2]!==i||t[3]!==o.plan.theirs?(c=i?.keyed?Cwe(o.plan.theirs,i.blockKey):RC(la(o.plan.theirs)),t[2]=i,t[3]=o.plan.theirs,t[4]=c):c=t[4];const d=Pwe(i?.draft??null,i?.blockKey??null,c),u=d??null,m=d===void 0,h=o.about?.block;let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=(w,x)=>r(T=>({...T,[w]:x})),t[5]=f):f=t[5];let v;t[6]!==n||t[7]!==o?(v=()=>o.answer(n),t[6]=n,t[7]=o,t[8]=v):v=t[8];let b;return t[9]!==n||t[10]!==o.fields||t[11]!==u||t[12]!==m||t[13]!==h||t[14]!==v?(b=y.jsx(nTe,{open:!0,fields:o.fields,author:u,authorPending:m,waitForAuthor:!0,block:h,choices:n,onChoose:f,onApply:v}),t[9]=n,t[10]=o.fields,t[11]=u,t[12]=m,t[13]=h,t[14]=v,t[15]=b):b=t[15],b}function RTe({children:e}){const t=$a();return tv.feature=t("settings.paywall.serverRefusedFeature"),tv.budget=t("settings.paywall.serverRefusedBudget"),LZ({itemCreatedSuccessfully:t("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:t("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:t("collections.mutations.itemDeletedSuccessfully"),createItemFailed:t("collections.mutations.createItemFailed"),updateItemFailed:t("collections.mutations.updateItemFailed"),deleteItemFailed:t("collections.mutations.deleteItemFailed")}),y.jsx(y.Fragment,{children:e})}function DTe(e){const t=ye.c(8),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx(IZ,{}),t[0]=a):a=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=y.jsx(Iye,{}),t[1]=n):n=t[1];let r;t[2]!==o?(r=y.jsx(Nye,{children:o}),t[2]=o,t[3]=r):r=t[3];let i,c;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx(Qye,{}),c=y.jsx(kTe,{}),t[4]=i,t[5]=c):(i=t[4],c=t[5]);let d;return t[6]!==r?(d=y.jsxs(t7,{client:Jl,children:[a,y.jsx(A.Suspense,{fallback:n,children:y.jsx(Fye,{children:y.jsx(FJ,{children:y.jsx(Sye,{children:y.jsx(Rye,{children:y.jsxs(RTe,{children:[r,i,c]})})})})})})]}),t[6]=r,t[7]=d):d=t[7],d}const OTe=[["mesh:","studio:"],["mesh-","studio-"]];function NTe(e){const t=Array.from({length:e.length},(o,a)=>e.key(a)).filter(o=>o!==null);for(const o of t){const a=OTe.find(([d])=>o.startsWith(d));if(!a)continue;const[n,r]=a,i=`${r}${o.slice(n.length)}`;if(e.getItem(i)!==null)continue;const c=e.getItem(o);c!==null&&e.setItem(i,c)}}const CM="from",PM="legacy-admin";function MTe(e){const t=new URLSearchParams(e);if(t.get(CM)===PM)return!0;const o=t.get("next");if(!o?.startsWith("/"))return!1;const a=o.indexOf("?");return a!==-1&&new URLSearchParams(o.slice(a)).get(CM)===PM}function ITe(e,t){if(MTe(e))try{(t??sessionStorage).setItem(Nr.legacyAdminArrival(),"1")}catch{}}function IEe(e){try{return(e??sessionStorage).getItem(Nr.legacyAdminArrival())==="1"}catch{return!1}}function LEe(e){try{(e??sessionStorage).removeItem(Nr.legacyAdminArrival())}catch{}}NTe(window.localStorage);ITe(window.location.search);const LTe=document.getElementById("root");AU.createRoot(LTe).render(y.jsx(A.StrictMode,{children:y.jsx(DTe,{children:y.jsx(TV,{router:Rb})})}));export{Ke as $,eke as A,yn as B,h3 as C,jye as D,L4 as E,t3 as F,g0e as G,$xe as H,Kye as I,rE as J,ca as K,Zl as L,Vxe as M,FTe as N,Sk as O,mn as P,HTe as Q,Bde as R,tke as S,mxe as T,vxe as U,Yi as V,uxe as W,Wie as X,Yie as Y,Kie as Z,Gie as _,fa as a,t0e as a$,Txe as a0,$s as a1,jTe as a2,z6 as a3,X0e as a4,Uxe as a5,Qi as a6,DE as a7,Wi as a8,l3 as a9,m3 as aA,i3 as aB,k0e as aC,x0e as aD,zTe as aE,Xn as aF,M0e as aG,as as aH,os as aI,Se as aJ,$ as aK,kz as aL,Ez as aM,xz as aN,pke as aO,tk as aP,Tz as aQ,Sz as aR,qye as aS,zye as aT,gC as aU,Kxe as aV,Gye as aW,e3 as aX,fxe as aY,Uwe as aZ,o3 as a_,p3 as aa,Mbe as ab,IJ as ac,Ake as ad,wt as ae,A0e as af,Ct as ag,O0e as ah,c3 as ai,YE as aj,u3 as ak,lue as al,$4 as am,Jk as an,gJ as ao,r3 as ap,n0e as aq,r0e as ar,a0e as as,E0e as at,Aee as au,OE as av,Nr as aw,o0e as ax,q4 as ay,Yde as az,$a as b,ike as b$,F0e as b0,$0e as b1,V0e as b2,Mke as b3,wk as b4,I0e as b5,Hl as b6,N0e as b7,g3 as b8,d3 as b9,uEe as bA,Pi as bB,iEe as bC,Qz as bD,oq as bE,je as bF,IEe as bG,LEe as bH,J0e as bI,oJ as bJ,yx as bK,Sx as bL,wx as bM,Ox as bN,Na as bO,Ex as bP,iJ as bQ,Dxe as bR,iK as bS,Rxe as bT,Mxe as bU,Axe as bV,Nxe as bW,Ixe as bX,Oxe as bY,cke as bZ,lke as b_,Xd as ba,Fe as bb,uke as bc,cE as bd,K0e as be,Uue as bf,H0e as bg,Zie as bh,W0e as bi,G0e as bj,Tke as bk,Y0e as bl,Z0e as bm,Lt as bn,Hz as bo,Kwe as bp,MC as bq,wn as br,OSe as bs,Lke as bt,XL as bu,SSe as bv,vke as bw,ESe as bx,e0e as by,Xxe as bz,ye as c,txe as c$,db as c0,Xl as c1,Oge as c2,gF as c3,vm as c4,HF as c5,zi as c6,$o as c7,_re as c8,Do as c9,nE as cA,ake as cB,v0e as cC,f0e as cD,cue as cE,D0e as cF,Aa as cG,tue as cH,aE as cI,F4 as cJ,$we as cK,kxe as cL,qTe as cM,J4 as cN,R0e as cO,R7 as cP,NL as cQ,BL as cR,LL as cS,zL as cT,ab as cU,$p as cV,UL as cW,$L as cX,HL as cY,axe as cZ,nxe as c_,mt as ca,Cr as cb,SE as cc,lm as cd,LF as ce,hF as cf,tfe as cg,Pr as ch,XF as ci,bF as cj,TE as ck,uE as cl,dE as cm,el as cn,Hp as co,Are as cp,Rre as cq,MF as cr,Wt as cs,Vt as ct,Dde as cu,eue as cv,_0e as cw,Nke as cx,Aue as cy,z0e as cz,Gv as d,uC as d$,oxe as d0,lK as d1,exe as d2,FL as d3,qL as d4,VL as d5,ixe as d6,jL as d7,Yl as d8,QQ as d9,es as dA,Ao as dB,lo as dC,wo as dD,RW as dE,IW as dF,_a as dG,Qe as dH,JTe as dI,Mk as dJ,aK as dK,wxe as dL,j0e as dM,q0e as dN,yxe as dO,a3 as dP,n3 as dQ,s3 as dR,mJ as dS,jZ as dT,Cxe as dU,qZ as dV,Exe as dW,Pxe as dX,cxe as dY,TB as dZ,Pm as d_,_xe as da,QL as db,sY as dc,XK as dd,IK as de,SK as df,XTe as dg,OL as dh,VY as di,JK as dj,HK as dk,AK as dl,DK as dm,MK as dn,aY as dp,lxe as dq,LY as dr,jY as ds,bY as dt,wY as du,yY as dv,sxe as dw,rxe as dx,oW as dy,WTe as dz,yf as e,lie as e$,mC as e0,hC as e1,fm as e2,RO as e3,qs as e4,Hae as e5,vI as e6,cI as e7,$Te as e8,UTe as e9,DSe as eA,RSe as eB,Ul as eC,fJ as eD,dxe as eE,pEe as eF,hEe as eG,fEe as eH,yke as eI,ASe as eJ,qxe as eK,fC as eL,vC as eM,Cm as eN,Ek as eO,ac as eP,ZTe as eQ,_z as eR,ywe as eS,NC as eT,dSe as eU,fke as eV,xwe as eW,ee as eX,uie as eY,lj as eZ,sie as e_,tge as ea,Xhe as eb,ege as ec,x5 as ed,i7 as ee,nr as ef,Yd as eg,ea as eh,qf as ei,tI as ej,o7 as ek,a7 as el,l7 as em,n7 as en,r7 as eo,na as ep,d7 as eq,xR as er,s7 as es,dke as et,ZL as eu,hue as ev,V4 as ew,uue as ex,Wxe as ey,xSe as ez,im as f,SM as f$,cie as f0,die as f1,pie as f2,mie as f3,hie as f4,gie as f5,fie as f6,vie as f7,yie as f8,wie as f9,Ywe as fA,wwe as fB,hke as fC,mke as fD,jke as fE,cSe as fF,lSe as fG,sE as fH,oSe as fI,rEe as fJ,nEe as fK,gEe as fL,PSe as fM,ik as fN,mEe as fO,la as fP,ok as fQ,vEe as fR,OEe as fS,MEe as fT,FSe as fU,NEe as fV,DEe as fW,jSe as fX,Ike as fY,gke as fZ,fbe as f_,iie as fa,rie as fb,bie as fc,sEe as fd,Lz as fe,Wl as ff,hSe as fg,Kz as fh,Fb as fi,Qwe as fj,zke as fk,Wz as fl,DC as fm,qke as fn,pSe as fo,Ga as fp,Zwe as fq,eEe as fr,wM as fs,oEe as ft,tEe as fu,jz as fv,Wwe as fw,lEe as fx,aEe as fy,Fke as fz,oke as g,fM as g$,NSe as g0,s6 as g1,l6 as g2,Gre as g3,Hre as g4,WF as g5,Ige as g6,G$ as g7,QM as g8,Oke as g9,zs as gA,Dr as gB,kF as gC,ore as gD,nre as gE,tre as gF,lre as gG,mre as gH,fre as gI,hre as gJ,qde as gK,jxe as gL,Fxe as gM,KTe as gN,YK as gO,ZK as gP,Gk as gQ,ob as gR,ML as gS,dY as gT,rY as gU,_K as gV,RK as gW,NK as gX,VK as gY,b0e as gZ,tZ as g_,G4 as ga,BTe as gb,Rke as gc,Dke as gd,yL as ge,Sxe as gf,aB as gg,H4 as gh,Gxe as gi,Jhe as gj,cb as gk,y0e as gl,w0e as gm,Gi as gn,uk as go,uJ as gp,tB as gq,mB as gr,xxe as gs,GO as gt,ure as gu,Rr as gv,Gp as gw,vE as gx,qd as gy,Hi as gz,Eae as h,YTe as h$,Fwe as h0,qwe as h1,Cke as h2,Eke as h3,pxe as h4,Lue as h5,Fue as h6,U0e as h7,Iue as h8,hxe as h9,Lxe as hA,K4 as hB,wue as hC,Eb as hD,S0e as hE,Qhe as hF,Q0e as hG,UZ as hH,rke as hI,_ke as hJ,Hxe as hK,en as hL,Ii as hM,wke as hN,Bke as hO,vue as hP,N0 as hQ,Yxe as hR,PL as hS,dEe as hT,GTe as hU,Jxe as hV,Nge as hW,Bxe as hX,OW as hY,Nk as hZ,vL as h_,L0e as ha,Z4 as hb,gue as hc,mue as hd,due as he,pue as hf,Rf as hg,B0e as hh,oZ as hi,gxe as hj,bke as hk,e7 as hl,t7 as hm,XY as hn,Pz as ho,are as hp,ZO as hq,rre as hr,Zxe as hs,sre as ht,Qxe as hu,bxe as hv,ple as hw,Vde as hx,kke as hy,xke as hz,Ki as i,LW as i0,Ik as i1,SL as i2,xL as i3,QTe as i4,yt as i5,sF as i6,zxe as i7,hB as i8,Jde as i9,Kke as iA,$ke as iB,Hke as iC,Uke as iD,AEe as iE,SEe as iF,_Ee as iG,qSe as iH,aq as iI,ISe as iJ,TEe as iK,nq as iL,EEe as iM,yEe as iN,kEe as iO,xEe as iP,Wke as iQ,USe as iR,PEe as iS,mSe as iT,Gde as ia,P0e as ib,C0e as ic,U4 as id,T0e as ie,Vke as ig,Jke as ih,cEe as ii,Ske as ij,Cwe as ik,CEe as il,bEe as im,REe as io,IC as ip,gSe as iq,nTe as ir,fSe as is,wEe as it,Xke as iu,Zke as iv,bSe as iw,Gke as ix,Qke as iy,Yke as iz,y as j,Mde as k,Tk as l,Je as m,Cd as n,Mf as o,Pke as p,Zd as q,A as r,nke as s,Fd as t,yk as u,$ye as v,Vye as w,Hye as x,ske as y,kSe as z};
|